diff --git a/change/graphviz.go b/change/graphviz.go index 996ca9532..0b46d4996 100644 --- a/change/graphviz.go +++ b/change/graphviz.go @@ -1,10 +1,18 @@ -// +build !linux,!darwin android ios nographviz -// +build !amd64 +//go:build (!linux && !darwin) || android || ios || nographviz || (!arm64 && !amd64) +// +build !linux,!darwin android ios nographviz !arm64,!amd64 package change -import "fmt" +import ( + "fmt" + + "github.com/anytypeio/go-anytype-middleware/pkg/lib/core" +) func (t *Tree) Graphviz() (data string, err error) { return "", fmt.Errorf("not supported") } + +func CreateSvg(block core.SmartBlock, svgFilename string) (err error) { + return fmt.Errorf("graphviz is not supported on the current platform") +} diff --git a/change/graphviz_nix.go b/change/graphviz_nix.go index 79745c146..392a208e1 100644 --- a/change/graphviz_nix.go +++ b/change/graphviz_nix.go @@ -1,5 +1,8 @@ +//go:build (linux || darwin) && !android && !ios && !nographviz && (amd64 || arm64) // +build linux darwin -// +build !android,!ios,!nographviz +// +build !android +// +build !ios +// +build !nographviz // +build amd64 arm64 package change @@ -7,6 +10,9 @@ package change import ( "bytes" "fmt" + "github.com/anytypeio/go-anytype-middleware/pkg/lib/core" + "github.com/anytypeio/go-anytype-middleware/pkg/lib/logging" + "os" "strings" "time" "unicode" @@ -15,6 +21,8 @@ import ( "github.com/goccy/go-graphviz/cgraph" ) +var logger = logging.Logger("anytype-debug") + func (t *Tree) Graphviz() (data string, err error) { var order = make(map[string]string) var seq = 0 @@ -143,3 +151,34 @@ func (t *Tree) Graphviz() (data string, err error) { } return buf.String(), nil } + +// This will create SVG image of the SmartBlock (i.e a DAG) +func CreateSvg(block core.SmartBlock, svgFilename string) (err error) { + t, _, err := BuildTree(block) + if err != nil { + logger.Fatal("build tree error:", err) + return err + } + + gv, err := t.Graphviz() + if err != nil { + logger.Fatal("can't make graphviz data:", err) + return err + } + + gvo, err := graphviz.ParseBytes([]byte(gv)) + if err != nil { + logger.Fatal("can't open graphviz data:", err) + return err + } + + f, err := os.Create(svgFilename) + if err != nil { + logger.Fatal("can't create SVG file:", err) + return err + } + defer f.Close() + + g := graphviz.New() + return g.Render(gvo, graphviz.SVG, f) +} diff --git a/clientlibrary/clib/main.go b/clientlibrary/clib/main.go index 09e2df0ca..2ea082605 100644 --- a/clientlibrary/clib/main.go +++ b/clientlibrary/clib/main.go @@ -43,7 +43,7 @@ func Command(cmd *C.char, data unsafe.Pointer, dataLen C.int, callback C.proxyFu //export Shutdown func Shutdown() { - service.Shutdown(nil) + service.AppShutdown(nil) } func main() { diff --git a/clientlibrary/service/service.pb.go b/clientlibrary/service/service.pb.go index f7d2a078a..ac9c4cec8 100644 --- a/clientlibrary/service/service.pb.go +++ b/clientlibrary/service/service.pb.go @@ -24,202 +24,184 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package func init() { proto.RegisterFile("pb/protos/service/service.proto", fileDescriptor_93a29dc403579097) } var fileDescriptor_93a29dc403579097 = []byte{ - // 3106 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x9c, 0x5b, 0x73, 0xdc, 0xb6, - 0x15, 0x80, 0xb3, 0x33, 0x9d, 0x38, 0x45, 0x1c, 0xc7, 0x61, 0xeb, 0xc4, 0x96, 0x53, 0xf9, 0x12, - 0xcb, 0x17, 0xd9, 0xa2, 0x6c, 0xb9, 0x4d, 0xa7, 0xd7, 0x8c, 0xb4, 0xb2, 0x65, 0x4d, 0x64, 0x5b, - 0xd5, 0x4a, 0x56, 0x27, 0xbd, 0x52, 0x24, 0xbc, 0xcb, 0x88, 0x4b, 0x30, 0x24, 0x76, 0xe5, 0xed, - 0x4c, 0xef, 0x9d, 0xce, 0xf4, 0x2d, 0x33, 0x7d, 0xec, 0x53, 0x5f, 0xfb, 0x07, 0xfa, 0x17, 0xfa, - 0x98, 0xc7, 0x3e, 0x76, 0xec, 0x3f, 0xd2, 0x01, 0x71, 0x08, 0x10, 0x20, 0x00, 0x72, 0xfd, 0xe4, - 0x11, 0xcf, 0x77, 0x2e, 0x04, 0x0f, 0x0e, 0x0e, 0x48, 0xac, 0xd1, 0xa5, 0xec, 0x68, 0x35, 0xcb, - 0x09, 0x25, 0xc5, 0x6a, 0x81, 0xf3, 0x69, 0x1c, 0xe2, 0xea, 0x5f, 0xbf, 0xbc, 0xec, 0x9d, 0x0a, - 0xd2, 0x19, 0x9d, 0x65, 0x78, 0xe1, 0xbc, 0x24, 0x43, 0x32, 0x1e, 0x07, 0x69, 0x54, 0x70, 0x64, - 0xe1, 0x7d, 0x29, 0xc1, 0x53, 0x9c, 0x52, 0xb8, 0xbe, 0xf6, 0xef, 0xdf, 0xa3, 0x33, 0xfd, 0x24, - 0xc6, 0x29, 0xed, 0x83, 0x82, 0x97, 0xa3, 0x73, 0x4f, 0x8f, 0x3e, 0xc7, 0x21, 0x5d, 0x8f, 0xa2, - 0xc3, 0x98, 0x8e, 0xf8, 0x1f, 0xdb, 0x91, 0x77, 0xdb, 0x07, 0x3f, 0xfe, 0x5e, 0x16, 0xfa, 0xfc, - 0xb2, 0xaf, 0x41, 0xfe, 0x1e, 0xfe, 0x62, 0x82, 0x0b, 0xba, 0x70, 0xa7, 0x1b, 0x5c, 0x64, 0x24, - 0x2d, 0xb0, 0xf7, 0x1c, 0xbd, 0xc7, 0x2f, 0x0e, 0x46, 0x41, 0x8e, 0x37, 0x66, 0x3b, 0x71, 0x7a, - 0xec, 0xdd, 0x30, 0x99, 0xa8, 0x01, 0xc2, 0xd7, 0xcd, 0x76, 0x10, 0xfc, 0x1c, 0xa2, 0xd3, 0x87, - 0x41, 0x92, 0x60, 0xda, 0xcf, 0x71, 0x40, 0xb1, 0x77, 0x55, 0xd1, 0xe4, 0x22, 0x9f, 0xcb, 0x84, - 0xf5, 0x8f, 0x9c, 0x0c, 0x18, 0xfe, 0x0c, 0xbd, 0xc3, 0x25, 0x7b, 0x38, 0x24, 0x53, 0x9c, 0x7b, - 0x46, 0x2d, 0x10, 0x0a, 0xd3, 0xd7, 0xdc, 0x90, 0x6e, 0xbb, 0x4f, 0xd2, 0x29, 0xce, 0xa9, 0xd9, - 0x36, 0x08, 0xdd, 0xb6, 0x25, 0x04, 0xb6, 0x7f, 0x8d, 0xde, 0x3d, 0x24, 0xf9, 0x71, 0x91, 0x05, - 0x21, 0x86, 0x31, 0x59, 0x52, 0x15, 0x2b, 0xa9, 0x3e, 0x2c, 0xd7, 0xdb, 0x30, 0x83, 0x87, 0x01, - 0x4e, 0x70, 0x48, 0xad, 0x1e, 0xb8, 0xb8, 0xd5, 0x83, 0xc0, 0xc0, 0x43, 0x82, 0xbe, 0x21, 0x84, - 0x5b, 0x98, 0xf6, 0x27, 0x79, 0x8e, 0x53, 0xea, 0xdd, 0xb2, 0xa8, 0x4b, 0x44, 0x78, 0x5a, 0xee, - 0x82, 0x1a, 0xee, 0x67, 0x0b, 0xd3, 0xf5, 0x24, 0xb1, 0xde, 0x0f, 0x17, 0xb7, 0xde, 0x8f, 0xc0, - 0xc0, 0xc3, 0xef, 0xd0, 0x85, 0xda, 0x88, 0xd1, 0xed, 0xe2, 0x51, 0x3c, 0x1c, 0x25, 0xf1, 0x70, - 0x44, 0x71, 0xe4, 0xad, 0x5a, 0x07, 0x45, 0x05, 0x85, 0xd7, 0xbb, 0xdd, 0x15, 0xc0, 0xff, 0x2f, - 0xd0, 0x99, 0xf5, 0x30, 0x24, 0x93, 0x54, 0x24, 0xb3, 0x9a, 0x4b, 0x20, 0x6c, 0x64, 0xf3, 0x52, - 0x0b, 0x25, 0xd3, 0x19, 0x64, 0x90, 0x70, 0x1f, 0x19, 0xf5, 0xb4, 0x74, 0xbb, 0xe6, 0x86, 0x1a, - 0xb6, 0x37, 0x71, 0x82, 0xad, 0xb6, 0xb9, 0xb0, 0xc5, 0xb6, 0x80, 0x1a, 0xb6, 0x21, 0x8d, 0xcd, - 0xb6, 0xb5, 0x24, 0xbe, 0xe6, 0x86, 0xc0, 0xf6, 0x3e, 0x7a, 0xbb, 0xb2, 0x4d, 0x49, 0xe6, 0x5d, - 0x31, 0x2b, 0x51, 0x92, 0x09, 0xbb, 0x57, 0x5d, 0x88, 0xb4, 0xfa, 0x30, 0x4e, 0xf0, 0xd3, 0xe7, - 0xcf, 0x13, 0x12, 0x44, 0x9a, 0x55, 0x26, 0xf1, 0x41, 0x64, 0xb1, 0xaa, 0x21, 0x72, 0x02, 0x30, - 0xc1, 0x4e, 0x5c, 0xd0, 0xca, 0xf2, 0x52, 0x43, 0x8d, 0x49, 0x1b, 0xd6, 0xaf, 0xb7, 0x61, 0xe0, - 0xe1, 0x27, 0x08, 0x3d, 0xc3, 0x79, 0x11, 0x93, 0x74, 0x0b, 0x53, 0xef, 0xb2, 0xa2, 0x05, 0x02, - 0x36, 0x69, 0x84, 0xdd, 0x2b, 0x0e, 0x02, 0x4c, 0x3e, 0x42, 0xa7, 0x76, 0xc8, 0x70, 0x80, 0xd3, - 0xc8, 0xfb, 0x96, 0x42, 0xef, 0x90, 0xa1, 0xcf, 0x2e, 0x0b, 0x63, 0x8b, 0x36, 0x31, 0x58, 0x7a, - 0x82, 0xbe, 0xde, 0x27, 0xe9, 0xf3, 0x78, 0xc8, 0x62, 0xbb, 0xa4, 0xc0, 0xfc, 0xba, 0x12, 0xda, - 0x65, 0x3b, 0x00, 0xf6, 0xb6, 0xd1, 0x5b, 0x83, 0xd1, 0x84, 0x46, 0xe4, 0x24, 0xd5, 0x42, 0xab, - 0x2e, 0x5b, 0x42, 0xab, 0x89, 0xc1, 0xd4, 0x01, 0x3a, 0x33, 0xc0, 0x74, 0x13, 0xb3, 0xd6, 0x60, - 0x40, 0xd9, 0xd4, 0x52, 0xdd, 0xd7, 0x24, 0x96, 0xb1, 0x53, 0x09, 0xb9, 0x38, 0x3f, 0x78, 0x41, - 0x71, 0x9e, 0x06, 0xc9, 0x66, 0x4e, 0x32, 0xf6, 0xdc, 0x0a, 0x6d, 0x71, 0xae, 0xcb, 0xcb, 0x07, - 0x5b, 0x58, 0x16, 0x67, 0x23, 0x28, 0xeb, 0x78, 0x5d, 0xdc, 0x27, 0x29, 0x6d, 0xd6, 0x71, 0xc5, - 0x00, 0x20, 0x96, 0x3a, 0x6e, 0x41, 0xc1, 0xdb, 0x1e, 0x7a, 0x9b, 0xf5, 0x06, 0xbb, 0x39, 0x9e, - 0xc6, 0xf8, 0x44, 0x1b, 0xa9, 0x9a, 0xc4, 0x32, 0x52, 0x2a, 0x01, 0x36, 0x9f, 0x22, 0x74, 0x90, - 0xb1, 0x5c, 0x66, 0x77, 0xa6, 0x25, 0x87, 0x14, 0x58, 0x92, 0x43, 0x01, 0xc4, 0x13, 0x3d, 0xbd, - 0x49, 0x4e, 0x52, 0x61, 0x52, 0x7b, 0x5a, 0x35, 0x91, 0x65, 0x0a, 0x6b, 0x88, 0x2c, 0x0c, 0x1b, - 0x09, 0x09, 0x8f, 0xb9, 0x4b, 0xcd, 0x6a, 0x29, 0x81, 0x68, 0x2c, 0x56, 0x35, 0x44, 0x36, 0x57, - 0xa5, 0x60, 0x0f, 0x67, 0x49, 0x10, 0xea, 0xcd, 0x15, 0xd7, 0x01, 0x99, 0xa5, 0xb9, 0xd2, 0x19, - 0x30, 0x1c, 0x23, 0x0f, 0xc2, 0x8d, 0x02, 0x8a, 0xab, 0xbc, 0xb8, 0x69, 0x0c, 0xa9, 0x46, 0x08, - 0x27, 0xb7, 0x3a, 0x90, 0x72, 0x76, 0x97, 0xf2, 0xa7, 0x19, 0x4e, 0xb5, 0x07, 0xc8, 0xf5, 0x98, - 0xc0, 0xf2, 0x00, 0x15, 0x40, 0xb3, 0x37, 0x18, 0x91, 0x13, 0xa3, 0x3d, 0x26, 0x70, 0xda, 0x03, - 0x00, 0xec, 0x11, 0xf4, 0xcd, 0xf2, 0xf2, 0x16, 0xa6, 0xbb, 0x93, 0xa3, 0x24, 0x0e, 0x0f, 0xf1, - 0xd1, 0xc1, 0xde, 0x8e, 0xb7, 0x6c, 0xd0, 0xd4, 0x18, 0xe1, 0xe5, 0x76, 0x27, 0x56, 0x73, 0xc8, - 0x6e, 0x6b, 0x23, 0xc7, 0x41, 0x14, 0xe6, 0x93, 0xf1, 0x51, 0x61, 0x74, 0xa8, 0x31, 0x4e, 0x87, - 0x4d, 0x56, 0x56, 0x01, 0x3e, 0x62, 0x98, 0xd6, 0xfd, 0x99, 0x9e, 0xa1, 0x8a, 0x58, 0xaa, 0x80, - 0x05, 0xd5, 0x66, 0x02, 0xb4, 0x22, 0xa6, 0x99, 0xa0, 0x35, 0x22, 0x57, 0x5d, 0x88, 0x5c, 0x22, - 0x6b, 0x56, 0x77, 0x83, 0xa1, 0xde, 0x55, 0xd7, 0xd5, 0x98, 0xd8, 0xb2, 0x44, 0x1a, 0x30, 0xd9, - 0xa3, 0xd5, 0x3c, 0x0c, 0x30, 0xd5, 0x7a, 0xb4, 0xba, 0xe6, 0xa0, 0xb6, 0x1e, 0x2d, 0xb5, 0x50, - 0x7a, 0x81, 0x48, 0x13, 0xb6, 0x13, 0x33, 0x16, 0x88, 0x52, 0xe4, 0x2e, 0x10, 0x15, 0x22, 0xd7, - 0x75, 0x1e, 0x74, 0x42, 0x0a, 0x7d, 0x6d, 0x82, 0x50, 0x98, 0xc4, 0x52, 0x71, 0x55, 0x42, 0x36, - 0x65, 0xe5, 0xf5, 0xaa, 0xce, 0x79, 0xa6, 0x82, 0x52, 0x09, 0x2d, 0x4d, 0x59, 0x03, 0x02, 0xdb, - 0x3f, 0x07, 0xdb, 0x5b, 0x98, 0x3e, 0x0e, 0xf2, 0xe3, 0xc2, 0x38, 0xc4, 0x6c, 0x2d, 0x2f, 0xa5, - 0xce, 0x21, 0xae, 0x53, 0x5a, 0x65, 0x38, 0x48, 0x23, 0x62, 0xac, 0x0c, 0x4c, 0xe0, 0xac, 0x0c, - 0x00, 0x68, 0xf6, 0xf6, 0xb0, 0xc5, 0x1e, 0x13, 0x38, 0xed, 0x01, 0x00, 0xf6, 0x7e, 0x05, 0x19, - 0x36, 0xc0, 0xf4, 0x61, 0x8c, 0x93, 0xa8, 0x30, 0xa6, 0x30, 0xcb, 0x1a, 0x2e, 0x76, 0xa6, 0xb0, - 0x82, 0x81, 0x83, 0x2f, 0xa0, 0xb2, 0x0c, 0xd8, 0xa6, 0xb9, 0xa0, 0x79, 0x1c, 0xd2, 0x98, 0xa4, - 0x85, 0x77, 0xdb, 0xa2, 0x5f, 0x87, 0x2c, 0xaf, 0x19, 0xac, 0xb0, 0x96, 0x2d, 0xac, 0xed, 0x7c, - 0x4c, 0xa6, 0xd8, 0x94, 0x2d, 0x65, 0x4b, 0xca, 0x84, 0xae, 0x6c, 0xa9, 0x43, 0x60, 0x7b, 0x82, - 0xde, 0x57, 0x6c, 0xef, 0x93, 0x27, 0xf8, 0xa4, 0x9c, 0xfa, 0x77, 0x1c, 0xfa, 0x82, 0x12, 0xde, - 0x56, 0x3a, 0xd2, 0xe0, 0xf6, 0xcb, 0x1e, 0xba, 0x24, 0x20, 0xd8, 0xde, 0xf7, 0x47, 0x71, 0x12, - 0xe5, 0x38, 0xdd, 0x27, 0x8c, 0x2d, 0xbc, 0xef, 0x58, 0x4c, 0x9a, 0x71, 0x11, 0xc9, 0xc7, 0xf3, - 0xaa, 0x41, 0x48, 0xc7, 0xb0, 0x5c, 0x33, 0x58, 0x66, 0xcf, 0x2d, 0x8b, 0x35, 0x43, 0x06, 0x2d, - 0x77, 0x41, 0xc1, 0xd9, 0x14, 0x9d, 0xab, 0x3b, 0xdb, 0xc7, 0x2f, 0xe8, 0x80, 0xce, 0x12, 0xec, - 0xad, 0x38, 0x8c, 0x30, 0xca, 0x2f, 0x31, 0xe1, 0xd3, 0xef, 0x8a, 0x6b, 0x3d, 0x09, 0x83, 0x36, - 0x27, 0x59, 0x12, 0x87, 0x6c, 0xfd, 0xb8, 0x69, 0xb1, 0x22, 0x08, 0x57, 0x4f, 0xd2, 0x20, 0xc1, - 0xd5, 0x5f, 0x7b, 0xe8, 0x62, 0xfd, 0x1e, 0x37, 0x82, 0xf0, 0x78, 0x98, 0x93, 0x49, 0x1a, 0xf5, - 0x49, 0x42, 0x72, 0x6f, 0xcd, 0x11, 0xba, 0xc6, 0x0a, 0xf7, 0xf7, 0xe7, 0xd2, 0x81, 0x40, 0x46, - 0xe8, 0xbd, 0x7a, 0x1c, 0xeb, 0x49, 0x3c, 0x4c, 0xad, 0xb7, 0xcc, 0x2c, 0x95, 0x44, 0xeb, 0x2d, - 0xd7, 0x49, 0xf0, 0x54, 0x40, 0x6d, 0x00, 0x4f, 0x9b, 0xf1, 0x94, 0x3f, 0xd4, 0x3b, 0x0e, 0x13, - 0x9b, 0xf1, 0x54, 0x7b, 0xa6, 0x2b, 0x1d, 0x69, 0x73, 0x2a, 0xb1, 0x96, 0xb9, 0x3d, 0x95, 0xca, - 0xc6, 0xba, 0x7b, 0x2a, 0x29, 0xb8, 0xdc, 0x5f, 0x09, 0x68, 0x7f, 0x92, 0xa7, 0xdb, 0x29, 0x25, - 0xda, 0xfe, 0x4a, 0x1a, 0xa9, 0x00, 0xcb, 0xfe, 0xca, 0x08, 0x82, 0x9f, 0xcf, 0xc1, 0xcf, 0x00, - 0xd3, 0x9d, 0x80, 0xe2, 0x17, 0x2c, 0xad, 0x6d, 0x7d, 0x95, 0x5f, 0x12, 0x3c, 0xf3, 0x5b, 0xfa, - 0x2a, 0x15, 0x05, 0x5f, 0x43, 0x74, 0xb6, 0xf2, 0xc5, 0x04, 0xa5, 0xab, 0x9b, 0x16, 0xfd, 0x52, - 0x53, 0xf1, 0x74, 0xab, 0x03, 0xd9, 0xbc, 0x29, 0x26, 0xe0, 0x33, 0xc2, 0xa9, 0xaf, 0x4e, 0x84, - 0xe5, 0x2e, 0xa8, 0xbd, 0xd6, 0x70, 0x7f, 0xad, 0xb5, 0x46, 0xf5, 0xe9, 0x77, 0xc5, 0xcd, 0xb3, - 0x81, 0x21, 0xac, 0x99, 0x70, 0xce, 0x86, 0xd2, 0x0e, 0xa3, 0x3a, 0xcd, 0x86, 0x3a, 0x6d, 0x1e, - 0x58, 0x3e, 0x13, 0x9c, 0x03, 0xab, 0xce, 0x82, 0xe5, 0x2e, 0x28, 0xf8, 0xca, 0x64, 0xcf, 0x5f, - 0x0e, 0xea, 0x08, 0x87, 0xc7, 0x38, 0xb2, 0x76, 0x02, 0x7c, 0x8c, 0x38, 0xd4, 0xda, 0x09, 0x68, - 0xb0, 0x39, 0x3f, 0xb7, 0x43, 0x92, 0xba, 0xf3, 0x93, 0x11, 0xdd, 0xf2, 0x13, 0x48, 0xad, 0xe7, - 0x1d, 0x64, 0x49, 0x4c, 0x8d, 0x3d, 0x6f, 0x29, 0x71, 0xf6, 0xbc, 0x15, 0xa1, 0x99, 0x7c, 0x8c, - 0xf3, 0xa1, 0xb9, 0x8d, 0x2e, 0x25, 0x4e, 0x93, 0x15, 0xa1, 0x35, 0x8f, 0x7d, 0x92, 0xcd, 0x8c, - 0xcd, 0x23, 0x13, 0x38, 0x9b, 0x47, 0x00, 0xb4, 0x10, 0x77, 0x83, 0x82, 0x9a, 0x43, 0x2c, 0x25, - 0xce, 0x10, 0x2b, 0x02, 0x4c, 0x7e, 0x8a, 0xde, 0xe2, 0x21, 0x4e, 0xa8, 0xb7, 0x68, 0x0a, 0x60, - 0x22, 0x07, 0xf1, 0x92, 0x55, 0xae, 0xed, 0x6f, 0x1e, 0xbc, 0xc8, 0x48, 0x4e, 0x8d, 0xfb, 0x1b, - 0x2e, 0x72, 0xee, 0x6f, 0x04, 0xa2, 0x6d, 0x5d, 0xb7, 0xc7, 0xec, 0x3a, 0x9b, 0x4e, 0xe5, 0x5b, - 0x3d, 0x53, 0xb6, 0xa8, 0x88, 0x73, 0xd2, 0x34, 0xd0, 0x66, 0x0a, 0xb3, 0x55, 0xe5, 0x49, 0x30, - 0xc6, 0xd6, 0x14, 0x2e, 0x97, 0x1d, 0x46, 0xb4, 0xa6, 0x70, 0x9d, 0x6c, 0x56, 0x82, 0xed, 0x71, - 0x30, 0xe4, 0x9e, 0x6c, 0xfa, 0x25, 0xa1, 0xba, 0x5a, 0xee, 0x82, 0x82, 0xaf, 0x31, 0xb4, 0x55, - 0x95, 0xaf, 0xc3, 0x38, 0xa2, 0x23, 0xcf, 0x6d, 0xa1, 0x64, 0x9c, 0x2f, 0x1b, 0x9a, 0x6c, 0xf3, - 0xd6, 0x9e, 0xc5, 0x11, 0x26, 0xce, 0x5b, 0x2b, 0x89, 0x6e, 0xb7, 0xa6, 0xa0, 0xcd, 0x5b, 0x2b, - 0xc5, 0xee, 0x5b, 0xe3, 0x16, 0xba, 0xdd, 0x9a, 0xca, 0x82, 0xbb, 0x3f, 0xf5, 0xd0, 0x05, 0xb1, - 0xdc, 0xc7, 0xe9, 0xf1, 0x7e, 0x90, 0x0f, 0x31, 0xe5, 0xf9, 0x19, 0x79, 0xf7, 0x6c, 0x6b, 0x39, - 0xdb, 0xb0, 0x2b, 0xa8, 0xf0, 0xbe, 0x36, 0x8f, 0x8a, 0xb6, 0x15, 0xd8, 0x20, 0xe4, 0x78, 0x1c, - 0xe4, 0xc7, 0x0f, 0x31, 0x0d, 0x47, 0xc6, 0x01, 0xae, 0x08, 0xbf, 0x44, 0x9c, 0x03, 0xdc, 0x40, - 0xf5, 0x3e, 0xb9, 0x02, 0xf8, 0x8b, 0x8d, 0xf5, 0x34, 0xe2, 0x6e, 0xd7, 0x5c, 0xb6, 0x54, 0xd6, - 0xd5, 0x27, 0x3b, 0x74, 0x20, 0x90, 0xdf, 0xa2, 0xf3, 0x25, 0xc9, 0xe6, 0x92, 0x60, 0xe0, 0x5d, - 0xeb, 0xaa, 0xc1, 0x60, 0x39, 0xe7, 0x34, 0xd0, 0xf2, 0xfd, 0xce, 0xa9, 0x00, 0xee, 0x53, 0x28, - 0x43, 0x7b, 0x38, 0x09, 0xd8, 0x06, 0x78, 0x80, 0xe9, 0xa7, 0x78, 0x66, 0xcc, 0xb4, 0x0a, 0xf1, - 0x39, 0xe3, 0xcc, 0xb4, 0x26, 0x0b, 0xfe, 0x30, 0x14, 0xa2, 0x0a, 0x58, 0x8f, 0x22, 0x53, 0xfb, - 0x2a, 0x0d, 0xac, 0x47, 0x91, 0xab, 0x7d, 0xd5, 0x41, 0x70, 0xf3, 0x1b, 0xf4, 0x01, 0x7f, 0xd5, - 0x13, 0xd0, 0x60, 0x1a, 0xe3, 0x93, 0x67, 0x31, 0x3e, 0x81, 0xd7, 0x76, 0xbe, 0xe9, 0x7d, 0x0e, - 0x60, 0xbe, 0xe4, 0x84, 0xd3, 0xd5, 0xce, 0xbc, 0xc3, 0x37, 0x7c, 0x61, 0x6c, 0xf5, 0xad, 0x7d, - 0x6c, 0x5c, 0xed, 0xcc, 0x3b, 0x7c, 0xf3, 0xb7, 0xd7, 0xed, 0xbe, 0x39, 0xd7, 0xdd, 0xb7, 0xe0, - 0xc1, 0xf7, 0x9f, 0x7b, 0x68, 0xa1, 0xe1, 0x9c, 0x6d, 0xfd, 0x42, 0x1a, 0x4f, 0xb1, 0xb1, 0x8a, - 0x28, 0xf6, 0x04, 0xea, 0xac, 0x22, 0x56, 0x15, 0x88, 0xe2, 0x6f, 0x3d, 0xf4, 0xa1, 0x29, 0x8a, - 0x5d, 0x52, 0xc4, 0x2c, 0x4f, 0xbc, 0xfb, 0x1d, 0x8c, 0x56, 0xb0, 0x88, 0xe4, 0xdb, 0xf3, 0x29, - 0x41, 0x2c, 0x27, 0xf0, 0x9a, 0xa7, 0x22, 0x07, 0x98, 0x0e, 0xc8, 0x24, 0x0f, 0x8d, 0xbb, 0x44, - 0x69, 0x4f, 0x60, 0xae, 0x4d, 0x80, 0x19, 0xd7, 0x8a, 0x4a, 0xc5, 0xd4, 0x67, 0x9b, 0xf3, 0xb9, - 0xd6, 0x40, 0x67, 0x51, 0xb1, 0x28, 0xe8, 0xc5, 0x55, 0xf7, 0x0f, 0xa9, 0xb8, 0xd6, 0xc5, 0xa2, - 0x96, 0x8e, 0xf7, 0xe7, 0xd2, 0x69, 0x0b, 0x04, 0xe6, 0x63, 0xa7, 0x40, 0xb4, 0x39, 0x79, 0x7f, - 0x2e, 0x1d, 0x08, 0xe4, 0x1f, 0x3d, 0x74, 0xd5, 0x18, 0x08, 0xdb, 0x55, 0xad, 0x4f, 0x83, 0x38, - 0x09, 0x8e, 0x12, 0xec, 0x7d, 0xaf, 0x8b, 0x6d, 0x45, 0x45, 0x84, 0xf5, 0xfd, 0xd7, 0x51, 0x85, - 0xe8, 0xfe, 0x50, 0x2d, 0xff, 0x32, 0xba, 0x90, 0xe4, 0x11, 0x14, 0xcc, 0x96, 0xe7, 0x2f, 0x49, - 0x11, 0xcb, 0xbd, 0x39, 0x34, 0xdc, 0x21, 0x40, 0xc2, 0x74, 0x08, 0x41, 0x4b, 0x97, 0x7b, 0x73, - 0x68, 0xb8, 0x43, 0x80, 0x54, 0xe9, 0x10, 0x82, 0x96, 0x28, 0xf7, 0xe6, 0xd0, 0x80, 0x10, 0xfe, - 0xd9, 0x43, 0xd7, 0x0c, 0x21, 0x54, 0x8f, 0xef, 0x69, 0x56, 0x4d, 0xe2, 0x1f, 0xb4, 0xdb, 0x6e, - 0x28, 0x89, 0xc0, 0x7e, 0xf8, 0x7a, 0xca, 0x10, 0xe3, 0xbf, 0x7a, 0xe8, 0x46, 0x6b, 0x8c, 0xf0, - 0xdc, 0x7e, 0x3c, 0xaf, 0x27, 0xed, 0x29, 0x7e, 0xf2, 0xda, 0xfa, 0xf3, 0x04, 0x0b, 0x4f, 0x78, - 0xee, 0x60, 0xb5, 0xe7, 0xfd, 0xc9, 0x6b, 0xeb, 0x6b, 0x0d, 0x30, 0x3f, 0x94, 0xb8, 0x3f, 0xcb, - 0xca, 0x6f, 0x75, 0xa6, 0x06, 0x58, 0x12, 0x7e, 0xfd, 0x83, 0xdd, 0x72, 0x17, 0x14, 0x9c, 0xe5, - 0xe8, 0xdc, 0x93, 0x60, 0x1a, 0x0f, 0x45, 0x5d, 0xe0, 0xa0, 0xfe, 0x49, 0x45, 0x32, 0x7e, 0x0d, - 0xb2, 0xbc, 0x48, 0xb1, 0xc2, 0xe0, 0xf3, 0xef, 0x3d, 0x74, 0x59, 0x32, 0x5b, 0x18, 0x88, 0xed, - 0xf4, 0x39, 0x39, 0x8c, 0xe9, 0x88, 0x6d, 0x0e, 0x0a, 0xef, 0x63, 0x9b, 0x49, 0x33, 0x2f, 0x42, - 0xf9, 0xee, 0xdc, 0x7a, 0x72, 0x7f, 0xcf, 0xe5, 0x5b, 0x79, 0x90, 0x8d, 0xb4, 0xfd, 0x3d, 0x1c, - 0x10, 0x2d, 0x45, 0x96, 0xfd, 0xbd, 0x86, 0xc8, 0x03, 0x0e, 0x70, 0x4a, 0x15, 0x07, 0x79, 0x38, - 0xf2, 0x8c, 0x3a, 0x5c, 0x66, 0x39, 0xe0, 0xa0, 0x33, 0xf2, 0xc1, 0xd5, 0x0d, 0x0f, 0x26, 0x47, - 0x45, 0x98, 0xc7, 0x47, 0xd8, 0x7c, 0xe4, 0x56, 0x83, 0xdc, 0x47, 0x6e, 0x9b, 0xb0, 0xfc, 0x80, - 0x51, 0x9d, 0xc3, 0x2d, 0xa4, 0x43, 0xe3, 0x51, 0xda, 0x3a, 0x61, 0x79, 0x81, 0x60, 0x26, 0xc1, - 0xd5, 0x0b, 0xf4, 0x41, 0xfd, 0xf6, 0x0e, 0xd2, 0x42, 0xf8, 0x5b, 0xb1, 0xc7, 0x5c, 0xc3, 0x2c, - 0x4d, 0x93, 0x03, 0xd7, 0xcf, 0x15, 0xdb, 0xf7, 0x26, 0x60, 0xc4, 0xd4, 0x25, 0xdd, 0x6c, 0x07, - 0xe5, 0x29, 0x09, 0xd5, 0x0f, 0x14, 0xcb, 0x65, 0x97, 0x05, 0xad, 0x30, 0xde, 0xee, 0xc4, 0xda, - 0x1c, 0x42, 0xc1, 0x73, 0x3a, 0xd4, 0x8a, 0xdb, 0xed, 0x4e, 0xac, 0xfe, 0x0c, 0x9b, 0x0b, 0xd7, - 0x8a, 0xcb, 0x4e, 0x73, 0xa9, 0xf2, 0xbb, 0xe2, 0xe0, 0xf9, 0x8f, 0x3d, 0xb4, 0x60, 0x72, 0x6d, - 0xec, 0x23, 0x8c, 0xe6, 0x9c, 0x7d, 0x84, 0x5b, 0xa3, 0x25, 0x06, 0x63, 0x23, 0x61, 0xb4, 0xe8, - 0x6c, 0x24, 0xdc, 0x1a, 0x10, 0xc3, 0x5f, 0x7a, 0xe8, 0xa2, 0x1a, 0x83, 0xda, 0x68, 0x3a, 0x4d, - 0x9a, 0x1b, 0xcc, 0xb5, 0x79, 0x54, 0xe4, 0xd9, 0x96, 0x6a, 0x32, 0xd3, 0x9d, 0x60, 0x46, 0x26, - 0xfa, 0x79, 0x6e, 0x31, 0x2b, 0x41, 0x6c, 0x39, 0x18, 0x60, 0xc0, 0x6a, 0x4d, 0x1b, 0x97, 0x3e, - 0xc4, 0x01, 0x9d, 0xe4, 0x38, 0xaa, 0xcf, 0x5e, 0xe3, 0x58, 0xeb, 0xa0, 0xf2, 0x8a, 0xe1, 0xde, - 0x1c, 0x1a, 0xb5, 0x1d, 0xa7, 0x39, 0x84, 0x3d, 0x3c, 0x26, 0x53, 0xac, 0xed, 0x38, 0x6d, 0x36, - 0x39, 0x6c, 0xd9, 0x71, 0xb6, 0x2a, 0xc9, 0xb7, 0xca, 0x62, 0xc0, 0xb7, 0x8b, 0x87, 0xc1, 0x94, - 0xe4, 0x31, 0xd5, 0xdf, 0x52, 0xca, 0xd1, 0x94, 0x88, 0xa5, 0x87, 0xb0, 0xa0, 0x46, 0x6f, 0xeb, - 0x79, 0x38, 0x8a, 0xa7, 0x38, 0x72, 0x78, 0xab, 0x90, 0x0e, 0xde, 0x6a, 0xa8, 0xbe, 0x4e, 0xef, - 0x13, 0xd6, 0x17, 0x19, 0xd7, 0xe9, 0x52, 0xe4, 0x5e, 0xa7, 0x2b, 0x44, 0xbf, 0x07, 0xf5, 0xe3, - 0xbc, 0xe9, 0x1e, 0x2c, 0x5f, 0xe7, 0x97, 0xbb, 0xa0, 0xe0, 0x2d, 0x44, 0x67, 0x6b, 0xde, 0x78, - 0x41, 0xb8, 0x6e, 0xd5, 0x57, 0xcb, 0xc0, 0x8d, 0x56, 0x4e, 0xbe, 0x04, 0x92, 0x52, 0xf5, 0xd1, - 0xf8, 0x36, 0x1b, 0xe5, 0x5b, 0xef, 0xe6, 0xf3, 0x59, 0xed, 0xcc, 0x5b, 0x7d, 0x8b, 0x24, 0x6c, - 0xf1, 0xdd, 0xc8, 0xc4, 0xd5, 0xce, 0x3c, 0xf8, 0x3e, 0x82, 0x93, 0x74, 0xe5, 0xb9, 0x66, 0x1a, - 0xc4, 0x49, 0xe1, 0xd9, 0xce, 0x17, 0x81, 0xdc, 0x32, 0xb6, 0x26, 0x4e, 0x7e, 0xac, 0xda, 0x0d, - 0x86, 0xd5, 0xcf, 0x5f, 0xd4, 0x8f, 0x55, 0xe5, 0x61, 0x1b, 0x6d, 0x2b, 0x7c, 0xc5, 0x41, 0xc8, - 0xef, 0x69, 0x03, 0xf1, 0x23, 0x23, 0xf5, 0x6b, 0xd4, 0xa0, 0xf9, 0x0b, 0xa3, 0xcb, 0x76, 0x40, - 0x2e, 0xf7, 0x8f, 0x31, 0xcd, 0xe3, 0xb0, 0x18, 0x60, 0xba, 0x1b, 0xe4, 0xc1, 0x18, 0x53, 0x9c, - 0xeb, 0xa7, 0x30, 0x01, 0xf1, 0x15, 0xc6, 0xb2, 0xdc, 0xdb, 0x58, 0x3d, 0xa9, 0xd9, 0x2e, 0x03, - 0xee, 0xc3, 0x94, 0xd4, 0xe5, 0x26, 0x44, 0xbb, 0x9d, 0x1b, 0xad, 0x9c, 0x3c, 0xc4, 0x28, 0xa5, - 0x2c, 0x0d, 0xb4, 0x13, 0x76, 0x35, 0xd5, 0x32, 0x49, 0xcc, 0x27, 0xec, 0x9a, 0x94, 0x7c, 0x55, - 0x27, 0x65, 0xf5, 0x55, 0xcd, 0xd8, 0xb1, 0x94, 0x06, 0x44, 0x11, 0x56, 0xfc, 0xf9, 0x5d, 0x71, - 0x70, 0x4c, 0xab, 0x76, 0xbe, 0xee, 0x98, 0xad, 0x5d, 0x77, 0x5a, 0x0d, 0xd5, 0xd7, 0xad, 0x95, - 0x8e, 0xb4, 0x7c, 0x41, 0xd8, 0xf4, 0x0a, 0x4d, 0xd2, 0x6a, 0xab, 0x29, 0xad, 0x47, 0xba, 0xdb, - 0x5d, 0xc1, 0xe5, 0x1e, 0x56, 0xcb, 0x76, 0xf7, 0xda, 0x4a, 0x79, 0xb7, 0xbb, 0x02, 0xb8, 0xff, - 0x11, 0xfa, 0xda, 0x6e, 0x9c, 0x0e, 0xbd, 0x0b, 0xea, 0xe4, 0x8c, 0xd3, 0xa1, 0x30, 0xba, 0x60, - 0x12, 0xc9, 0x93, 0x81, 0xbb, 0x39, 0x09, 0x71, 0x51, 0xf4, 0x83, 0x34, 0xc4, 0x89, 0x76, 0x32, - 0x10, 0x64, 0x3e, 0x17, 0x5a, 0x4e, 0x06, 0x36, 0x20, 0xb9, 0xc8, 0x3d, 0x8a, 0x0b, 0x4a, 0xf2, - 0x59, 0x79, 0x0a, 0x5c, 0x2d, 0x1f, 0x20, 0x51, 0xcf, 0x81, 0x5f, 0x75, 0x21, 0xb2, 0x0f, 0x03, - 0x01, 0xfc, 0xe0, 0x45, 0x3f, 0xa0, 0x59, 0xa9, 0x55, 0x62, 0x4b, 0x1f, 0x66, 0xc0, 0xe4, 0xe6, - 0xa9, 0x8a, 0x1b, 0x53, 0x10, 0x6b, 0x9b, 0x27, 0x11, 0x9a, 0x00, 0x2c, 0x9b, 0x27, 0x23, 0x08, - 0x7e, 0xfa, 0xe8, 0x4d, 0xf8, 0x0e, 0x7f, 0x51, 0xfb, 0xfd, 0x86, 0xf2, 0x05, 0xfe, 0x43, 0xb3, - 0x10, 0x8c, 0xfc, 0x12, 0xbd, 0xcb, 0x2f, 0x89, 0x5f, 0xb8, 0x69, 0xc5, 0x44, 0x93, 0x5a, 0x8a, - 0x49, 0x93, 0xd2, 0xed, 0xef, 0xe3, 0x71, 0x96, 0x04, 0x14, 0x17, 0x46, 0xfb, 0x42, 0xea, 0xb4, - 0x5f, 0xa7, 0xc0, 0x7e, 0x80, 0xce, 0x72, 0xd9, 0x0e, 0x09, 0x83, 0x84, 0x0d, 0x96, 0x7e, 0x66, - 0x5c, 0x17, 0x5b, 0x9e, 0xa7, 0x01, 0x93, 0x3f, 0x26, 0x79, 0x1c, 0x1c, 0xe3, 0xca, 0xb9, 0x96, - 0x88, 0x75, 0x91, 0x25, 0x11, 0x35, 0x04, 0xcc, 0xce, 0xd0, 0xf9, 0xba, 0x60, 0x63, 0x26, 0xa7, - 0xab, 0x56, 0x68, 0x6d, 0x98, 0xa5, 0xd0, 0x3a, 0x70, 0x70, 0xfd, 0x53, 0xf4, 0x4e, 0x3f, 0x21, - 0xa9, 0xbc, 0x25, 0x35, 0x5e, 0x45, 0x66, 0x79, 0x23, 0xa3, 0x33, 0xf2, 0x71, 0x73, 0x87, 0xb2, - 0x7d, 0x34, 0xad, 0x4d, 0xcd, 0xce, 0x71, 0xa9, 0x85, 0x02, 0xfb, 0x3f, 0x43, 0x67, 0x0e, 0xd2, - 0x22, 0x4b, 0x82, 0x62, 0x04, 0x2f, 0x93, 0xd4, 0xb0, 0x54, 0xa1, 0xa5, 0xe0, 0x34, 0x20, 0x99, - 0x4b, 0x95, 0x48, 0x9c, 0x8b, 0x5f, 0x32, 0x6a, 0x36, 0x4e, 0xc6, 0x5f, 0x6f, 0xc3, 0xe4, 0xc8, - 0xaf, 0x67, 0x59, 0x32, 0xb3, 0x8c, 0xbc, 0x22, 0xb3, 0x8c, 0xbc, 0xce, 0xc8, 0xd6, 0x69, 0x13, - 0x1f, 0x4d, 0x86, 0x83, 0x59, 0x1a, 0x6a, 0xad, 0x53, 0x79, 0xdd, 0x67, 0x02, 0x4b, 0xeb, 0xa4, - 0x00, 0xb2, 0xfa, 0x96, 0x97, 0xf7, 0x47, 0x39, 0x6e, 0xfc, 0xd6, 0x89, 0x2b, 0x70, 0x91, 0xed, - 0x17, 0x54, 0x2a, 0xa2, 0x45, 0xb9, 0x9f, 0x63, 0x6c, 0x8c, 0x92, 0x09, 0x9c, 0x51, 0x02, 0x00, - 0xf6, 0xee, 0xa2, 0xd3, 0xac, 0x87, 0xc0, 0xe9, 0x83, 0xf2, 0xd7, 0xf9, 0xde, 0x19, 0xa1, 0xf1, - 0x60, 0x9c, 0xd1, 0xd9, 0x42, 0xed, 0x6f, 0x06, 0xdc, 0xed, 0x6d, 0x5c, 0xf9, 0xcf, 0xcb, 0xc5, - 0xde, 0x57, 0x2f, 0x17, 0x7b, 0xff, 0x7b, 0xb9, 0xd8, 0xfb, 0xf2, 0xd5, 0xe2, 0x1b, 0x5f, 0xbd, - 0x5a, 0x7c, 0xe3, 0xbf, 0xaf, 0x16, 0xdf, 0xf8, 0xec, 0x14, 0xfc, 0xef, 0x00, 0x47, 0x6f, 0x96, - 0xbf, 0xf1, 0xbf, 0xff, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0xf0, 0xcb, 0x55, 0x84, 0x41, 0x40, - 0x00, 0x00, + // 2826 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x9b, 0xcd, 0x8f, 0xdc, 0x48, + 0x15, 0xc0, 0xd3, 0x17, 0x02, 0xde, 0xdd, 0x00, 0x06, 0xb2, 0x61, 0xd8, 0x9d, 0x7c, 0xcf, 0x4c, + 0xbe, 0x3c, 0x93, 0x0c, 0x02, 0xf1, 0x21, 0x56, 0x3d, 0x33, 0x99, 0x64, 0xb4, 0xf9, 0x62, 0x7a, + 0x92, 0x48, 0x91, 0x90, 0xf0, 0xd8, 0x95, 0x6e, 0x33, 0x6e, 0x97, 0xb1, 0xab, 0x7b, 0xd2, 0x20, + 0x90, 0x10, 0x08, 0x04, 0x27, 0x24, 0x8e, 0x88, 0x03, 0x57, 0xfe, 0x12, 0x8e, 0x7b, 0xe4, 0x88, + 0x92, 0x7f, 0x64, 0x55, 0xae, 0xe7, 0x2a, 0xd7, 0x73, 0x55, 0xd9, 0x9d, 0xd3, 0x6e, 0xfc, 0x7e, + 0xef, 0xa3, 0xec, 0x57, 0x1f, 0xef, 0x55, 0x8f, 0x77, 0x31, 0x3f, 0xde, 0xcc, 0x0b, 0xca, 0x68, + 0xb9, 0x59, 0x92, 0x62, 0x9e, 0x44, 0xa4, 0xfe, 0x6f, 0x50, 0x3d, 0xf6, 0xcf, 0x86, 0xd9, 0x82, + 0x2d, 0x72, 0xb2, 0x72, 0x41, 0x91, 0x11, 0x9d, 0x4e, 0xc3, 0x2c, 0x2e, 0x05, 0xb2, 0x72, 0x5e, + 0x49, 0xc8, 0x9c, 0x64, 0x0c, 0x9e, 0xdf, 0xfb, 0xd7, 0xc2, 0x3b, 0xb7, 0x9b, 0x26, 0x24, 0x63, + 0xbb, 0xa0, 0xe0, 0xbf, 0xf2, 0x3e, 0x1a, 0xe6, 0xf9, 0x03, 0xc2, 0x5e, 0x90, 0xa2, 0x4c, 0x68, + 0xe6, 0x5f, 0x0d, 0xc0, 0x7e, 0x70, 0x98, 0x47, 0xc1, 0x30, 0xcf, 0x03, 0x25, 0x0c, 0x0e, 0xc9, + 0xaf, 0x67, 0xa4, 0x64, 0x2b, 0xd7, 0xdc, 0x50, 0x99, 0xd3, 0xac, 0x24, 0xfe, 0x6b, 0xef, 0x9b, + 0xc3, 0x3c, 0x1f, 0x11, 0xb6, 0x47, 0x78, 0xfc, 0x23, 0x16, 0x32, 0xe2, 0xaf, 0xb7, 0x54, 0x75, + 0x40, 0xfa, 0xd8, 0xe8, 0x06, 0xc1, 0xcf, 0x91, 0xf7, 0x01, 0xf7, 0x33, 0x99, 0xb1, 0x98, 0x9e, + 0x66, 0xfe, 0xe5, 0xb6, 0x22, 0x88, 0xa4, 0xed, 0x2b, 0x2e, 0x04, 0xac, 0xbe, 0xf4, 0x3e, 0x7c, + 0x19, 0xa6, 0x29, 0x61, 0xbb, 0x05, 0xe1, 0x81, 0xeb, 0x3a, 0x42, 0x14, 0x08, 0x99, 0xb4, 0x7b, + 0xd5, 0xc9, 0x80, 0xe1, 0x57, 0xde, 0x47, 0x42, 0x72, 0x48, 0x22, 0x3a, 0x27, 0x85, 0x6f, 0xd4, + 0x02, 0xa1, 0xe5, 0x95, 0xb7, 0x20, 0x6c, 0x7b, 0x97, 0x66, 0x73, 0x52, 0x30, 0xb3, 0x6d, 0x10, + 0xba, 0x6d, 0x2b, 0x08, 0x6c, 0xff, 0xd2, 0xfb, 0xfa, 0x4b, 0x5a, 0x9c, 0x94, 0x79, 0x18, 0x11, + 0x78, 0x27, 0xd7, 0x75, 0xc5, 0x5a, 0x8a, 0x5f, 0xcb, 0x5a, 0x17, 0x66, 0xf0, 0x30, 0x22, 0x29, + 0x89, 0x98, 0xd5, 0x83, 0x10, 0x77, 0x7a, 0x90, 0x18, 0x78, 0x48, 0xbd, 0x6f, 0x49, 0xe1, 0x03, + 0xc2, 0x76, 0x67, 0x45, 0x41, 0x32, 0xe6, 0xdf, 0xb0, 0xa8, 0x2b, 0x44, 0x7a, 0xba, 0xd9, 0x07, + 0x35, 0x8c, 0xe7, 0x01, 0x61, 0xc3, 0x34, 0xb5, 0x8e, 0x47, 0x88, 0x3b, 0xc7, 0x23, 0x31, 0xf0, + 0xf0, 0x7b, 0xef, 0xbb, 0x8d, 0x37, 0xc6, 0x0e, 0xca, 0x87, 0xc9, 0x78, 0x92, 0x26, 0xe3, 0x09, + 0x23, 0xb1, 0xbf, 0x69, 0x7d, 0x29, 0x3a, 0x28, 0xbd, 0x6e, 0xf5, 0x57, 0x30, 0x8c, 0xf0, 0xfe, + 0x9b, 0x9c, 0x16, 0xf6, 0x2f, 0x26, 0xc4, 0x9d, 0x23, 0x94, 0x18, 0x78, 0xf8, 0x85, 0x77, 0x6e, + 0x18, 0x45, 0x74, 0x96, 0xc9, 0xe9, 0x82, 0x16, 0x1f, 0x21, 0x6c, 0xcd, 0x97, 0xeb, 0x1d, 0x94, + 0x9a, 0x30, 0x20, 0x83, 0x94, 0xbe, 0x6a, 0xd4, 0x43, 0x09, 0x7d, 0xcd, 0x0d, 0xb5, 0x6c, 0xef, + 0x91, 0x94, 0x58, 0x6d, 0x0b, 0x61, 0x87, 0x6d, 0x09, 0xb5, 0x6c, 0xc3, 0x44, 0x31, 0xdb, 0x46, + 0xd3, 0xe4, 0x9a, 0x1b, 0x6a, 0xac, 0xa7, 0x60, 0x9b, 0xd1, 0x1c, 0xaf, 0xa7, 0xb5, 0x12, 0xa3, + 0xb9, 0x6d, 0x3d, 0xd5, 0x11, 0xb0, 0xfa, 0x73, 0xcf, 0x7b, 0x7a, 0xfc, 0x2b, 0x12, 0xb1, 0xa7, + 0x39, 0xc9, 0xfc, 0x4b, 0x9a, 0x86, 0x10, 0x04, 0x5c, 0x22, 0x6d, 0x5e, 0x76, 0x10, 0x2a, 0x50, + 0xf1, 0x7c, 0x37, 0xa5, 0x25, 0xf1, 0x8d, 0x1a, 0x95, 0xc8, 0x12, 0x28, 0x42, 0x70, 0xa0, 0xa3, + 0x09, 0x3d, 0x35, 0x07, 0xca, 0x25, 0xee, 0x40, 0x81, 0x50, 0x7b, 0x09, 0x04, 0x6a, 0xda, 0x4b, + 0xea, 0x30, 0x5c, 0x7b, 0x09, 0x66, 0xd4, 0xfc, 0x6b, 0x1a, 0x1e, 0x11, 0x3c, 0xff, 0x34, 0xbd, + 0x11, 0xb1, 0xcd, 0x3f, 0x03, 0x86, 0xdf, 0xf1, 0x83, 0x22, 0xcc, 0x27, 0xe6, 0x77, 0x5c, 0x89, + 0xdc, 0xef, 0xb8, 0x46, 0xf0, 0x0b, 0x19, 0x91, 0xb0, 0x88, 0x26, 0xe6, 0x17, 0x22, 0x64, 0xee, + 0x17, 0x22, 0x19, 0x30, 0x5c, 0x78, 0xdf, 0x69, 0x1a, 0x1e, 0xcd, 0x8e, 0xcb, 0xa8, 0x48, 0x8e, + 0x89, 0x7f, 0xcb, 0xae, 0x2d, 0x21, 0xe9, 0xea, 0x76, 0x3f, 0x18, 0x7c, 0x26, 0x9e, 0x0f, 0x3e, + 0x6b, 0xd9, 0x41, 0x5c, 0xfa, 0x1b, 0x46, 0x1b, 0x0d, 0x42, 0x7a, 0xbb, 0xd1, 0x83, 0x04, 0x57, + 0x6f, 0xbc, 0x8f, 0x9b, 0xc3, 0x7b, 0x9e, 0x95, 0x72, 0x80, 0x77, 0xec, 0x31, 0x37, 0x30, 0xe9, + 0x34, 0xe8, 0x8b, 0x83, 0xe7, 0xc8, 0xfb, 0x46, 0xed, 0x99, 0xed, 0x11, 0x16, 0x26, 0x69, 0xe9, + 0xaf, 0x99, 0x6d, 0xd4, 0x72, 0xe9, 0x6b, 0xbd, 0x93, 0xc3, 0xe9, 0xbc, 0x37, 0xcb, 0xd3, 0x24, + 0x6a, 0x1f, 0x31, 0x40, 0x57, 0x8a, 0xdd, 0xe9, 0xdc, 0xc4, 0xd4, 0x01, 0x40, 0x0e, 0x43, 0xfc, + 0xcf, 0xd1, 0x22, 0x27, 0xfe, 0x0d, 0x4b, 0x84, 0x0a, 0xb1, 0x1c, 0x00, 0x2c, 0x28, 0x1e, 0xcf, + 0x88, 0xb0, 0x47, 0xe1, 0x82, 0xce, 0x2c, 0xd3, 0x53, 0x8a, 0xdd, 0xe3, 0x69, 0x62, 0x86, 0xf1, + 0x1c, 0x94, 0xfb, 0xe1, 0x9c, 0x16, 0x09, 0xb3, 0x8f, 0x47, 0x21, 0x9d, 0xe3, 0xd1, 0x50, 0xa3, + 0xb7, 0x61, 0x11, 0x4d, 0x92, 0x39, 0x89, 0x1d, 0xde, 0x6a, 0xa4, 0x87, 0xb7, 0x06, 0x8a, 0xbd, + 0x3d, 0x4a, 0xca, 0x46, 0x46, 0x18, 0xbd, 0x69, 0x88, 0xdb, 0x1b, 0x46, 0x71, 0x82, 0x57, 0x72, + 0xb1, 0x61, 0xaf, 0x59, 0xf5, 0xf5, 0x3d, 0x7b, 0xbd, 0x93, 0xc3, 0xf3, 0x97, 0x0b, 0xf5, 0x97, + 0x78, 0xc7, 0x66, 0xc3, 0xfc, 0x22, 0x83, 0xbe, 0xb8, 0xd5, 0xb3, 0x4c, 0x16, 0xb7, 0xe7, 0x56, + 0xc2, 0x04, 0x7d, 0x71, 0xfc, 0x19, 0x87, 0x79, 0x9e, 0x2e, 0x8e, 0xc8, 0x34, 0x4f, 0xad, 0x9f, + 0x51, 0x43, 0xdc, 0x9f, 0x11, 0xa3, 0x78, 0xbf, 0x3a, 0xa2, 0x7c, 0x37, 0x34, 0xee, 0x57, 0x95, + 0xc8, 0xbd, 0x5f, 0xd5, 0x08, 0xde, 0x56, 0x86, 0x71, 0xfc, 0x32, 0x61, 0x13, 0xf1, 0x8f, 0x83, + 0xd8, 0xbc, 0xad, 0x20, 0xc8, 0xbd, 0xad, 0xb4, 0x61, 0x55, 0x3e, 0xd7, 0xe7, 0x90, 0xb0, 0x20, + 0x3b, 0x8b, 0x47, 0x49, 0x76, 0xe2, 0x9b, 0x97, 0x52, 0x05, 0x58, 0xca, 0x67, 0x23, 0x88, 0xc7, + 0xc6, 0x0f, 0x57, 0x3b, 0x05, 0x09, 0xe3, 0xa8, 0x98, 0x4d, 0x8f, 0x4b, 0xf3, 0xd8, 0x10, 0xe4, + 0x1e, 0x5b, 0x1b, 0x06, 0x9f, 0xd4, 0xfb, 0xb6, 0x5c, 0x48, 0x9a, 0x2e, 0x6d, 0xcb, 0x83, 0xc9, + 0xe3, 0xad, 0x5e, 0x2c, 0x3e, 0xd4, 0x3d, 0xcf, 0x62, 0x6a, 0x3e, 0xd4, 0x71, 0x89, 0xfb, 0x50, + 0x07, 0x04, 0x36, 0x79, 0x48, 0x6c, 0x26, 0xb9, 0xc4, 0x6d, 0x12, 0x08, 0xfc, 0x5a, 0x0e, 0xa6, + 0xbc, 0x0a, 0x7a, 0x1c, 0x16, 0x27, 0x55, 0x4b, 0xc3, 0xf8, 0x5a, 0x74, 0xc6, 0xfd, 0x5a, 0x5a, + 0xac, 0x69, 0xd1, 0x83, 0x02, 0xce, 0xba, 0xe8, 0xa1, 0x0a, 0x6e, 0xbd, 0x93, 0xc3, 0x89, 0x7c, + 0x48, 0xd2, 0x90, 0x25, 0x34, 0x1b, 0xc6, 0xb1, 0x31, 0x91, 0x6b, 0x39, 0x9f, 0x13, 0xce, 0x44, + 0x46, 0x20, 0x7e, 0x7b, 0xb5, 0xf8, 0x79, 0x1e, 0xf3, 0x95, 0xe6, 0xa6, 0xcb, 0x82, 0x60, 0x9c, + 0x6f, 0xaf, 0xcd, 0xda, 0x1c, 0xc2, 0xb6, 0xe1, 0x74, 0x88, 0xb6, 0x8e, 0x5b, 0xbd, 0x58, 0x55, + 0xee, 0xb7, 0xde, 0xe4, 0x3e, 0x09, 0xd9, 0xac, 0x68, 0x95, 0xfb, 0xed, 0x17, 0x55, 0x83, 0x96, + 0x72, 0xdf, 0xa9, 0x00, 0xfe, 0xff, 0x32, 0xf0, 0x3e, 0xd1, 0xb9, 0x43, 0x32, 0xa5, 0x73, 0x22, + 0x63, 0xb8, 0xe7, 0x32, 0xa9, 0xb3, 0x32, 0x8c, 0xed, 0xa5, 0x74, 0x20, 0x92, 0x3f, 0x0d, 0xbc, + 0xef, 0xe9, 0x28, 0xcf, 0xbc, 0xe1, 0x3c, 0x4c, 0xd2, 0xf0, 0x38, 0x25, 0xfe, 0x5d, 0x97, 0x51, + 0x0d, 0x95, 0x71, 0xdc, 0x5b, 0x46, 0x05, 0xef, 0xaa, 0x35, 0xf8, 0x34, 0xaf, 0x13, 0xfc, 0x8e, + 0xc3, 0x9c, 0xa0, 0xb4, 0x34, 0x0f, 0xfa, 0xe2, 0xe0, 0xf9, 0x0f, 0x03, 0x6f, 0xc5, 0x44, 0x41, + 0xce, 0x6f, 0x75, 0x9b, 0x43, 0x99, 0x7f, 0x77, 0x09, 0x8d, 0x8e, 0x18, 0x60, 0x1a, 0xf4, 0x88, + 0x01, 0x4d, 0x86, 0xbb, 0x4b, 0x68, 0xe0, 0x15, 0x8c, 0x9f, 0xbc, 0xa1, 0xbc, 0x36, 0xad, 0x60, + 0xd5, 0xc1, 0x1c, 0x95, 0xd8, 0xeb, 0x9d, 0x9c, 0x6a, 0x42, 0x29, 0x29, 0x4f, 0x05, 0xd4, 0x84, + 0x6a, 0xa8, 0x72, 0xa9, 0xa5, 0x09, 0xd5, 0xa6, 0xc0, 0xfc, 0xa9, 0x77, 0x5e, 0xc9, 0x9a, 0xf9, + 0x6c, 0x4c, 0x22, 0x28, 0x31, 0x1a, 0x89, 0xe9, 0x4c, 0x22, 0x23, 0x0e, 0x8e, 0x59, 0xbd, 0xf5, + 0x37, 0x1d, 0xf3, 0xe4, 0xbd, 0xdd, 0x69, 0xa8, 0x99, 0xbb, 0x77, 0x7a, 0xd2, 0xe0, 0xf5, 0x77, + 0xde, 0x85, 0xb6, 0x57, 0xc8, 0xdb, 0xcd, 0x4e, 0x53, 0x28, 0x6d, 0xb7, 0xfa, 0x2b, 0xb8, 0xdc, + 0x8b, 0x75, 0xa6, 0x87, 0x7b, 0x01, 0x2e, 0xe1, 0x5e, 0x2a, 0xa8, 0x6e, 0xc1, 0xc3, 0xa4, 0x64, + 0xb4, 0x58, 0x8c, 0x26, 0xf4, 0xb4, 0xbe, 0x76, 0xd1, 0x77, 0x39, 0x00, 0x82, 0x06, 0x61, 0xe9, + 0x16, 0x98, 0xc9, 0x96, 0x2b, 0x75, 0x3d, 0x53, 0x5a, 0x5c, 0x35, 0x88, 0x0e, 0x57, 0x3a, 0xa9, + 0xf6, 0xf8, 0x7a, 0x54, 0xea, 0x2e, 0x69, 0xdd, 0x1c, 0x6a, 0xfb, 0x3e, 0x69, 0xa3, 0x1b, 0x54, + 0xc7, 0xfb, 0xfd, 0x24, 0x25, 0x4f, 0x5f, 0xbf, 0x4e, 0x69, 0x18, 0xa3, 0xe3, 0x3d, 0x97, 0x04, + 0x20, 0xb2, 0x1c, 0xef, 0x11, 0xa2, 0xea, 0x74, 0x2e, 0xe0, 0x93, 0xa3, 0xb6, 0x7c, 0xbd, 0xad, + 0xd6, 0x10, 0x5b, 0xea, 0x74, 0x03, 0xa6, 0x0e, 0x8b, 0x5c, 0xf8, 0x3c, 0xaf, 0x8c, 0x5f, 0x6a, + 0x6b, 0x09, 0x89, 0xe5, 0xb0, 0xa8, 0x13, 0xaa, 0x87, 0xc6, 0x9f, 0xef, 0xd1, 0xd3, 0xac, 0x32, + 0x6a, 0x18, 0x68, 0x2d, 0xb3, 0xf4, 0xd0, 0x30, 0x03, 0x86, 0x3f, 0xf7, 0xbe, 0x5a, 0x19, 0x2e, + 0x68, 0xee, 0xaf, 0x1a, 0x14, 0x8a, 0x46, 0xe7, 0xf7, 0xa2, 0x55, 0xae, 0xaa, 0x8b, 0x27, 0xe1, + 0x3c, 0x19, 0xcb, 0x35, 0x4d, 0xcc, 0x11, 0x5c, 0x5d, 0x28, 0x26, 0x68, 0x40, 0x96, 0xea, 0xc2, + 0x0a, 0x83, 0xcf, 0x7f, 0x0c, 0xbc, 0x4b, 0x8a, 0x79, 0x50, 0xf7, 0x66, 0x0e, 0xb2, 0xd7, 0x94, + 0x97, 0x5a, 0xbc, 0xfc, 0x29, 0xfd, 0x1f, 0xd8, 0x4c, 0x9a, 0x79, 0x19, 0xca, 0x0f, 0x97, 0xd6, + 0x83, 0xa8, 0x7e, 0xeb, 0x5d, 0xa8, 0xcb, 0x55, 0xb1, 0xbf, 0xec, 0x17, 0x74, 0x2a, 0x34, 0x7c, + 0x7d, 0xe1, 0x96, 0x55, 0x2d, 0xe6, 0x64, 0x10, 0x9b, 0xbd, 0xf9, 0xc6, 0xc9, 0xcd, 0xe6, 0xbd, + 0xea, 0x80, 0xdd, 0xeb, 0x67, 0x51, 0x6b, 0x85, 0x6d, 0x2f, 0xa5, 0xa3, 0x6e, 0x2e, 0x64, 0x20, + 0x29, 0xcd, 0xf0, 0xad, 0x88, 0xb2, 0xc2, 0x85, 0x96, 0x9b, 0x8b, 0x16, 0xa4, 0x56, 0xa1, 0x5a, + 0x24, 0x8a, 0x90, 0x61, 0x9a, 0xa2, 0x55, 0x48, 0xaa, 0x4a, 0xc0, 0xb2, 0x0a, 0x19, 0x41, 0xf0, + 0x73, 0xe8, 0x7d, 0xc0, 0x3f, 0xee, 0xb3, 0x82, 0xcc, 0x13, 0x82, 0xef, 0x08, 0x1a, 0x12, 0xcb, + 0x74, 0xd6, 0x09, 0x75, 0xc6, 0x78, 0x9e, 0x95, 0x79, 0x1a, 0x96, 0x13, 0x68, 0x8a, 0xeb, 0x63, + 0xae, 0x85, 0xb8, 0x2d, 0x7e, 0xbd, 0x83, 0x52, 0xe7, 0xa4, 0x5a, 0x26, 0x57, 0x8c, 0x35, 0xb3, + 0x6a, 0x6b, 0xd5, 0x58, 0xef, 0xe4, 0xd4, 0xea, 0xbc, 0x93, 0xd2, 0xe8, 0x04, 0x96, 0x39, 0x7d, + 0xd4, 0x95, 0x04, 0xaf, 0x73, 0x57, 0x5c, 0x88, 0x5a, 0xe8, 0x2a, 0xc1, 0x21, 0xc9, 0xd3, 0x30, + 0xc2, 0xb7, 0x27, 0x42, 0x07, 0x64, 0x96, 0x85, 0x0e, 0x33, 0x28, 0x5c, 0x38, 0x36, 0x9a, 0xc2, + 0x45, 0x27, 0xc6, 0x2b, 0x2e, 0x44, 0x2d, 0xf5, 0x95, 0x60, 0x94, 0xa7, 0x09, 0x43, 0xb9, 0x21, + 0x34, 0x2a, 0x89, 0x25, 0x37, 0x74, 0x02, 0x99, 0x7c, 0x4c, 0x8a, 0x31, 0x31, 0x9a, 0xac, 0x24, + 0x4e, 0x93, 0x35, 0x01, 0x26, 0x9f, 0x78, 0x5f, 0x13, 0x63, 0xa7, 0xf9, 0xc2, 0xbf, 0x68, 0x1a, + 0x16, 0xcd, 0x17, 0xd2, 0xe0, 0x25, 0x3b, 0x80, 0x42, 0x7c, 0x16, 0x96, 0xcc, 0x1c, 0x62, 0x25, + 0x71, 0x86, 0x58, 0x13, 0x6a, 0x1f, 0x12, 0x21, 0xce, 0x18, 0xda, 0x87, 0x20, 0x80, 0x46, 0xbf, + 0xfc, 0xa2, 0x55, 0xae, 0xa6, 0x97, 0xf8, 0x2a, 0x84, 0xed, 0x27, 0x24, 0x8d, 0x4b, 0x34, 0xbd, + 0xe0, 0xbd, 0xd7, 0x52, 0xcb, 0xf4, 0x6a, 0x53, 0x28, 0x95, 0xa0, 0x87, 0x62, 0x1a, 0x1d, 0x6a, + 0x9f, 0x5c, 0x71, 0x21, 0xea, 0x5c, 0x52, 0x09, 0x1a, 0x2d, 0x69, 0x53, 0x3c, 0x86, 0x8e, 0xf4, + 0x5a, 0x17, 0x06, 0x1e, 0xfe, 0x36, 0xf0, 0x3e, 0x95, 0x2e, 0x1e, 0xd3, 0x39, 0x39, 0xa2, 0xf7, + 0xdf, 0x24, 0x25, 0x4b, 0xb2, 0x31, 0x6c, 0x4d, 0xdb, 0x16, 0x4b, 0x26, 0x58, 0xba, 0xff, 0xfe, + 0x72, 0x4a, 0x6a, 0x87, 0x44, 0xb1, 0x3c, 0x21, 0xa7, 0xc6, 0x1d, 0x12, 0x5b, 0x94, 0x9c, 0x65, + 0x87, 0x74, 0xf1, 0xaa, 0xb7, 0x22, 0x9d, 0xc3, 0x6f, 0x5f, 0x8e, 0x68, 0x7d, 0x58, 0xb1, 0x59, + 0xc3, 0xa0, 0xa5, 0x2e, 0x70, 0x2a, 0xa8, 0xc3, 0xba, 0xf4, 0xaf, 0x92, 0x74, 0xc3, 0x62, 0xa7, + 0x9d, 0xa8, 0x37, 0x7a, 0x90, 0x06, 0x57, 0xea, 0x5e, 0xc5, 0xe6, 0xaa, 0x7d, 0xad, 0x72, 0xa3, + 0x07, 0xd9, 0xe8, 0xd3, 0x34, 0x87, 0xb5, 0x13, 0x46, 0x27, 0xe3, 0x82, 0xce, 0xb2, 0x78, 0x97, + 0xa6, 0xb4, 0x40, 0x7d, 0x1a, 0x2d, 0x6a, 0x84, 0x5a, 0xfa, 0x34, 0x1d, 0x2a, 0xea, 0x60, 0xd0, + 0x8c, 0x62, 0x98, 0x26, 0x63, 0x5c, 0x9e, 0x68, 0x86, 0x2a, 0xc0, 0x72, 0x30, 0x30, 0x82, 0x06, + 0x3f, 0x47, 0xb3, 0x22, 0x3b, 0xc8, 0x18, 0xb5, 0xfa, 0xa9, 0x81, 0x4e, 0x3f, 0x0d, 0x50, 0xed, + 0xe6, 0x95, 0xf8, 0x88, 0xbc, 0xe1, 0x51, 0xf0, 0xff, 0xf8, 0x86, 0x29, 0xcf, 0x9f, 0x07, 0x20, + 0xb7, 0xec, 0xe6, 0x26, 0x0e, 0x0d, 0x06, 0x9c, 0x88, 0x0f, 0xe6, 0xd0, 0xd6, 0x3f, 0xd3, 0x46, + 0x37, 0x68, 0xf6, 0x33, 0x62, 0x8b, 0x94, 0xb8, 0xfc, 0x54, 0x40, 0x1f, 0x3f, 0x35, 0xa8, 0x2e, + 0xa2, 0xb4, 0xf1, 0x4c, 0x48, 0x74, 0xd2, 0xba, 0xbd, 0xd4, 0x03, 0x15, 0x88, 0xe5, 0x22, 0xca, + 0x82, 0x9a, 0x3f, 0xd1, 0x41, 0x44, 0x33, 0xd7, 0x27, 0xe2, 0xf2, 0x3e, 0x9f, 0x08, 0x38, 0x55, + 0x5d, 0x49, 0x29, 0x64, 0xa4, 0xf8, 0x4c, 0xb7, 0x2c, 0x16, 0x9a, 0x90, 0xa5, 0xba, 0xb2, 0xc2, + 0xaa, 0xeb, 0x8d, 0x7d, 0x3e, 0x0e, 0x8b, 0x13, 0xff, 0xa6, 0xdb, 0x0a, 0x67, 0x2c, 0x5d, 0x6f, + 0x1b, 0x6b, 0x1f, 0xa4, 0xc8, 0x91, 0x0e, 0x2b, 0x7a, 0x9e, 0xdc, 0xee, 0x07, 0xa3, 0xaf, 0xc7, + 0x2b, 0xda, 0x11, 0x61, 0x4f, 0xc2, 0x29, 0x31, 0x7d, 0xbd, 0xaa, 0xe0, 0x05, 0xb9, 0xeb, 0xeb, + 0x21, 0x0e, 0x25, 0xfe, 0xc1, 0x34, 0x1c, 0x4b, 0x2f, 0x06, 0xed, 0x4a, 0xde, 0x72, 0xb3, 0xd1, + 0x0d, 0x22, 0x3f, 0x2f, 0x92, 0x98, 0x50, 0x87, 0x9f, 0x4a, 0xde, 0xc7, 0x0f, 0x06, 0xd1, 0xfe, + 0xcd, 0x47, 0x2b, 0x4e, 0xc5, 0xc3, 0x2c, 0x86, 0x5a, 0x20, 0xb0, 0xbc, 0x14, 0xc4, 0xb9, 0xf6, + 0x6f, 0x0b, 0x8f, 0xb2, 0xa4, 0x6e, 0xe4, 0xb8, 0xb2, 0x44, 0xf6, 0x69, 0xfa, 0x64, 0x89, 0x09, + 0x06, 0x9f, 0xbf, 0xf1, 0x3e, 0xae, 0x90, 0xbd, 0x90, 0x85, 0xbc, 0x9a, 0x7b, 0x91, 0x90, 0x53, + 0x28, 0x26, 0x0c, 0xe3, 0xad, 0xa9, 0x80, 0x63, 0xb8, 0xb2, 0xd8, 0xec, 0xcd, 0x3b, 0x7c, 0xc3, + 0x19, 0xb1, 0xd3, 0x37, 0x3a, 0x2c, 0x6e, 0xf6, 0xe6, 0x1d, 0xbe, 0xa1, 0x81, 0xdb, 0xe9, 0x1b, + 0xf5, 0x6f, 0x37, 0x7b, 0xf3, 0xe0, 0xfb, 0x8f, 0x03, 0x6f, 0xa5, 0xe5, 0x9c, 0xef, 0xc4, 0x11, + 0x4b, 0xe6, 0xc4, 0x74, 0xa0, 0xd0, 0xed, 0x49, 0xd4, 0x75, 0xa0, 0xb0, 0xab, 0x40, 0x14, 0x7f, + 0x1d, 0x78, 0x9f, 0x98, 0xa2, 0x78, 0x46, 0xcb, 0x84, 0x25, 0x34, 0x33, 0x1d, 0x9b, 0x5b, 0x46, + 0x6b, 0xd8, 0x75, 0x6c, 0x76, 0x29, 0x41, 0x2c, 0x33, 0xef, 0xbc, 0x86, 0xf2, 0x3c, 0xa5, 0xb3, + 0x22, 0x22, 0xfe, 0x6d, 0x87, 0x3d, 0x49, 0x59, 0xda, 0xf8, 0x76, 0x5a, 0xf5, 0xd1, 0x35, 0xa6, + 0x79, 0x7f, 0xe0, 0xfa, 0xaa, 0xc6, 0x2b, 0x84, 0xad, 0xfe, 0x0a, 0xe0, 0xfe, 0xcf, 0xf5, 0xc9, + 0x12, 0xfb, 0x87, 0x44, 0xbc, 0xd7, 0xc7, 0x22, 0x4a, 0xc6, 0xed, 0xa5, 0x74, 0xba, 0x02, 0x81, + 0xd9, 0xd8, 0x2b, 0x10, 0x34, 0x23, 0xb7, 0x97, 0xd2, 0x81, 0x40, 0xfe, 0x39, 0xf0, 0xae, 0x18, + 0x03, 0xd1, 0xaf, 0x46, 0x7f, 0xd4, 0xc7, 0xb6, 0xf9, 0x8a, 0xf4, 0xc7, 0xef, 0xa3, 0x8a, 0xea, + 0x2b, 0x15, 0x5c, 0x44, 0x8b, 0x18, 0x56, 0x4b, 0x47, 0xbe, 0x08, 0x0e, 0x2f, 0x97, 0x5b, 0xfd, + 0x15, 0x9c, 0xfe, 0x8d, 0xd7, 0x4e, 0x26, 0x73, 0xce, 0x6b, 0x27, 0xa7, 0x82, 0xd3, 0x3f, 0xe4, + 0x48, 0xb7, 0x7f, 0x94, 0x20, 0x5b, 0xfd, 0x15, 0xc0, 0xff, 0xbf, 0x07, 0xde, 0x35, 0x03, 0xd7, + 0xbe, 0xb8, 0xfe, 0x49, 0xa7, 0x69, 0xc7, 0x35, 0xf6, 0x4f, 0xdf, 0x4f, 0x19, 0x62, 0xfc, 0xcf, + 0xc0, 0x5b, 0xef, 0x8c, 0x11, 0x3e, 0xd9, 0xcf, 0x96, 0xf5, 0x84, 0xbe, 0xe0, 0x67, 0xef, 0xad, + 0xbf, 0x4c, 0xb0, 0xf0, 0x7d, 0x97, 0x0e, 0x16, 0x7d, 0xee, 0xcf, 0xde, 0x5b, 0xbf, 0xd5, 0xdd, + 0xc8, 0xa0, 0xdd, 0xa9, 0x7e, 0x74, 0x66, 0xca, 0xbe, 0xea, 0x27, 0x62, 0x18, 0x74, 0x65, 0x9f, + 0x4d, 0xa1, 0xf1, 0x53, 0x01, 0xc9, 0xd5, 0xb5, 0x73, 0x9e, 0x93, 0xb0, 0x08, 0xb3, 0x08, 0xff, + 0x54, 0x40, 0x19, 0x6c, 0x91, 0x96, 0x9f, 0x0a, 0xb8, 0x35, 0x50, 0xdb, 0x63, 0x87, 0xd2, 0x93, + 0x69, 0x58, 0x9c, 0xec, 0x13, 0x16, 0x4d, 0x4c, 0x6d, 0x8f, 0x1a, 0x08, 0x2a, 0xc2, 0xd5, 0xf6, + 0x68, 0x91, 0xb8, 0xed, 0x51, 0x03, 0xf2, 0xd8, 0x2a, 0x9c, 0xde, 0x75, 0x98, 0xd2, 0x51, 0xd7, + 0x29, 0xc5, 0xae, 0x82, 0x2a, 0xde, 0x3a, 0x39, 0x46, 0x84, 0x7d, 0x4e, 0x16, 0xa6, 0x8a, 0x57, + 0xae, 0xde, 0x02, 0x71, 0x55, 0xbc, 0x6d, 0x14, 0xd5, 0x4c, 0xcd, 0x83, 0xc0, 0x9a, 0x43, 0xbf, + 0xb9, 0x6e, 0xac, 0x77, 0x72, 0xa8, 0xfa, 0xdc, 0x4b, 0xe6, 0xda, 0x29, 0xdf, 0x10, 0xe8, 0x5e, + 0x32, 0x37, 0x1f, 0xf2, 0x6f, 0xf5, 0x62, 0x71, 0x4b, 0x27, 0x64, 0xe4, 0x4d, 0xdd, 0x6b, 0x31, + 0x84, 0x5b, 0xc9, 0x5b, 0xcd, 0x96, 0x8d, 0x6e, 0x50, 0xdd, 0x8b, 0x3d, 0x2b, 0x68, 0x44, 0xca, + 0x72, 0x97, 0xa7, 0x6d, 0x8a, 0xee, 0xc5, 0x40, 0x16, 0x08, 0xa1, 0xe5, 0x5e, 0xac, 0x05, 0x81, + 0xed, 0x87, 0xde, 0xd9, 0x47, 0x74, 0x3c, 0x22, 0x59, 0xec, 0x7f, 0xaa, 0xdf, 0x44, 0xd1, 0x71, + 0xc0, 0x1f, 0x4b, 0x7b, 0xab, 0x36, 0xb1, 0xba, 0x36, 0xd8, 0x23, 0xc7, 0xb3, 0xf1, 0x68, 0x91, + 0x45, 0xe8, 0xda, 0xa0, 0x7a, 0x1e, 0x70, 0x81, 0xe5, 0xda, 0x40, 0x03, 0x54, 0xdf, 0xbc, 0x7a, + 0x7c, 0x34, 0x29, 0x48, 0xeb, 0xc6, 0x48, 0x28, 0x08, 0x91, 0xa5, 0x6f, 0x8e, 0x10, 0x14, 0xe5, + 0x51, 0x41, 0x88, 0x31, 0x4a, 0x2e, 0x70, 0x46, 0x09, 0x80, 0xaa, 0x2d, 0xab, 0xc7, 0xa2, 0x3f, + 0xff, 0x88, 0x46, 0x61, 0x5a, 0x32, 0x5a, 0xe0, 0xda, 0x52, 0xa8, 0x62, 0xc8, 0x52, 0x5b, 0x5a, + 0x61, 0x34, 0x86, 0x67, 0x49, 0x36, 0x36, 0x8e, 0x81, 0x0b, 0x9c, 0x63, 0x00, 0x40, 0x4d, 0x9c, + 0xc7, 0x84, 0x15, 0x49, 0x54, 0xf2, 0x22, 0x22, 0x2c, 0xc2, 0x29, 0x61, 0xa4, 0xc0, 0x3f, 0xb9, + 0x05, 0x24, 0xd0, 0x18, 0xcb, 0xc4, 0xb1, 0xb1, 0xe0, 0x70, 0xcb, 0xfb, 0x90, 0xcf, 0x28, 0x92, + 0xdd, 0xaf, 0xfe, 0x06, 0xd9, 0x3f, 0x27, 0x95, 0xef, 0x4f, 0x73, 0xb6, 0x58, 0x69, 0xfc, 0x9b, + 0x03, 0x5b, 0x83, 0x9d, 0xcb, 0xff, 0x7d, 0xbb, 0x3a, 0xf8, 0xe2, 0xed, 0xea, 0xe0, 0xff, 0x6f, + 0x57, 0x07, 0x7f, 0x7f, 0xb7, 0x7a, 0xe6, 0x8b, 0x77, 0xab, 0x67, 0xfe, 0xf7, 0x6e, 0xf5, 0xcc, + 0xab, 0xb3, 0xf0, 0x37, 0xd0, 0xc7, 0x5f, 0xa9, 0xfe, 0x92, 0x79, 0xfb, 0xcb, 0x00, 0x00, 0x00, + 0xff, 0xff, 0x56, 0x37, 0x5d, 0xa0, 0x27, 0x3d, 0x00, 0x00, } // This is a compile-time assertion to ensure that this generated file @@ -229,148 +211,78 @@ var fileDescriptor_93a29dc403579097 = []byte{ var clientCommandsHandler ClientCommandsHandler type ClientCommandsHandler interface { - ObjectAddWithObjectId(*pb.RpcObjectAddWithObjectIdRequest) *pb.RpcObjectAddWithObjectIdResponse - ObjectShareByLink(*pb.RpcObjectShareByLinkRequest) *pb.RpcObjectShareByLinkResponse + AppGetVersion(*pb.RpcAppGetVersionRequest) *pb.RpcAppGetVersionResponse + AppSetDeviceState(*pb.RpcAppSetDeviceStateRequest) *pb.RpcAppSetDeviceStateResponse + AppShutdown(*pb.RpcAppShutdownRequest) *pb.RpcAppShutdownResponse + // Wallet + // *** WalletCreate(*pb.RpcWalletCreateRequest) *pb.RpcWalletCreateResponse WalletRecover(*pb.RpcWalletRecoverRequest) *pb.RpcWalletRecoverResponse WalletConvert(*pb.RpcWalletConvertRequest) *pb.RpcWalletConvertResponse + // Workspace + // *** WorkspaceCreate(*pb.RpcWorkspaceCreateRequest) *pb.RpcWorkspaceCreateResponse WorkspaceSelect(*pb.RpcWorkspaceSelectRequest) *pb.RpcWorkspaceSelectResponse WorkspaceGetCurrent(*pb.RpcWorkspaceGetCurrentRequest) *pb.RpcWorkspaceGetCurrentResponse WorkspaceGetAll(*pb.RpcWorkspaceGetAllRequest) *pb.RpcWorkspaceGetAllResponse WorkspaceSetIsHighlighted(*pb.RpcWorkspaceSetIsHighlightedRequest) *pb.RpcWorkspaceSetIsHighlightedResponse + WorkspaceExport(*pb.RpcWorkspaceExportRequest) *pb.RpcWorkspaceExportResponse + // Account + // *** AccountRecover(*pb.RpcAccountRecoverRequest) *pb.RpcAccountRecoverResponse AccountCreate(*pb.RpcAccountCreateRequest) *pb.RpcAccountCreateResponse AccountDelete(*pb.RpcAccountDeleteRequest) *pb.RpcAccountDeleteResponse AccountSelect(*pb.RpcAccountSelectRequest) *pb.RpcAccountSelectResponse AccountStop(*pb.RpcAccountStopRequest) *pb.RpcAccountStopResponse - FileOffload(*pb.RpcFileOffloadRequest) *pb.RpcFileOffloadResponse - FileListOffload(*pb.RpcFileListOffloadRequest) *pb.RpcFileListOffloadResponse - VersionGet(*pb.RpcVersionGetRequest) *pb.RpcVersionGetResponse - LogSend(*pb.RpcLogSendRequest) *pb.RpcLogSendResponse - ConfigGet(*pb.RpcConfigGetRequest) *pb.RpcConfigGetResponse - Shutdown(*pb.RpcShutdownRequest) *pb.RpcShutdownResponse - SetDeviceState(*pb.RpcDeviceStateRequest) *pb.RpcDeviceStateResponse - ExternalDropFiles(*pb.RpcExternalDropFilesRequest) *pb.RpcExternalDropFilesResponse - ExternalDropContent(*pb.RpcExternalDropContentRequest) *pb.RpcExternalDropContentResponse - LinkPreview(*pb.RpcLinkPreviewRequest) *pb.RpcLinkPreviewResponse - UploadFile(*pb.RpcUploadFileRequest) *pb.RpcUploadFileResponse - DownloadFile(*pb.RpcDownloadFileRequest) *pb.RpcDownloadFileResponse - BlockUpload(*pb.RpcBlockUploadRequest) *pb.RpcBlockUploadResponse - BlockReplace(*pb.RpcBlockReplaceRequest) *pb.RpcBlockReplaceResponse - // BlockUpdateContent allows to update any simple block content to the new value of the same type - BlockUpdateContent(*pb.RpcBlockUpdateContentRequest) *pb.RpcBlockUpdateContentResponse - BlockOpen(*pb.RpcBlockOpenRequest) *pb.RpcBlockOpenResponse - BlockShow(*pb.RpcBlockShowRequest) *pb.RpcBlockShowResponse - BlockGetPublicWebURL(*pb.RpcBlockGetPublicWebURLRequest) *pb.RpcBlockGetPublicWebURLResponse - BlockOpenBreadcrumbs(*pb.RpcBlockOpenBreadcrumbsRequest) *pb.RpcBlockOpenBreadcrumbsResponse - BlockSetBreadcrumbs(*pb.RpcBlockSetBreadcrumbsRequest) *pb.RpcBlockSetBreadcrumbsResponse - BlockCreate(*pb.RpcBlockCreateRequest) *pb.RpcBlockCreateResponse - BlockCreatePage(*pb.RpcBlockCreatePageRequest) *pb.RpcBlockCreatePageResponse - BlockCreateSet(*pb.RpcBlockCreateSetRequest) *pb.RpcBlockCreateSetResponse - BlockUnlink(*pb.RpcBlockUnlinkRequest) *pb.RpcBlockUnlinkResponse - BlockClose(*pb.RpcBlockCloseRequest) *pb.RpcBlockCloseResponse - BlockDownload(*pb.RpcBlockDownloadRequest) *pb.RpcBlockDownloadResponse - BlockGetMarks(*pb.RpcBlockGetMarksRequest) *pb.RpcBlockGetMarksResponse - BlockUndo(*pb.RpcBlockUndoRequest) *pb.RpcBlockUndoResponse - BlockRedo(*pb.RpcBlockRedoRequest) *pb.RpcBlockRedoResponse - BlockSetFields(*pb.RpcBlockSetFieldsRequest) *pb.RpcBlockSetFieldsResponse - BlockSetRestrictions(*pb.RpcBlockSetRestrictionsRequest) *pb.RpcBlockSetRestrictionsResponse - BlockListMove(*pb.RpcBlockListMoveRequest) *pb.RpcBlockListMoveResponse - BlockListMoveToNewPage(*pb.RpcBlockListMoveToNewPageRequest) *pb.RpcBlockListMoveToNewPageResponse - BlockListConvertChildrenToPages(*pb.RpcBlockListConvertChildrenToPagesRequest) *pb.RpcBlockListConvertChildrenToPagesResponse - BlockListSetFields(*pb.RpcBlockListSetFieldsRequest) *pb.RpcBlockListSetFieldsResponse - BlockListSetTextStyle(*pb.RpcBlockListSetTextStyleRequest) *pb.RpcBlockListSetTextStyleResponse - BlockListDuplicate(*pb.RpcBlockListDuplicateRequest) *pb.RpcBlockListDuplicateResponse - BlockListSetBackgroundColor(*pb.RpcBlockListSetBackgroundColorRequest) *pb.RpcBlockListSetBackgroundColorResponse - BlockListSetAlign(*pb.RpcBlockListSetAlignRequest) *pb.RpcBlockListSetAlignResponse - BlockListSetDivStyle(*pb.RpcBlockListSetDivStyleRequest) *pb.RpcBlockListSetDivStyleResponse - BlockListSetFileStyle(*pb.RpcBlockListSetFileStyleRequest) *pb.RpcBlockListSetFileStyleResponse - BlockListTurnInto(*pb.RpcBlockListTurnIntoRequest) *pb.RpcBlockListTurnIntoResponse - BlockSetLatexText(*pb.RpcBlockSetLatexTextRequest) *pb.RpcBlockSetLatexTextResponse - BlockSetTextText(*pb.RpcBlockSetTextTextRequest) *pb.RpcBlockSetTextTextResponse - BlockSetTextColor(*pb.RpcBlockSetTextColorRequest) *pb.RpcBlockSetTextColorResponse - BlockListSetTextColor(*pb.RpcBlockListSetTextColorRequest) *pb.RpcBlockListSetTextColorResponse - BlockListSetTextMark(*pb.RpcBlockListSetTextMarkRequest) *pb.RpcBlockListSetTextMarkResponse - BlockSetTextStyle(*pb.RpcBlockSetTextStyleRequest) *pb.RpcBlockSetTextStyleResponse - BlockSetTextChecked(*pb.RpcBlockSetTextCheckedRequest) *pb.RpcBlockSetTextCheckedResponse - BlockSetTextIcon(*pb.RpcBlockSetTextIconRequest) *pb.RpcBlockSetTextIconResponse - BlockSplit(*pb.RpcBlockSplitRequest) *pb.RpcBlockSplitResponse - BlockMerge(*pb.RpcBlockMergeRequest) *pb.RpcBlockMergeResponse - BlockCopy(*pb.RpcBlockCopyRequest) *pb.RpcBlockCopyResponse - BlockPaste(*pb.RpcBlockPasteRequest) *pb.RpcBlockPasteResponse - BlockCut(*pb.RpcBlockCutRequest) *pb.RpcBlockCutResponse - BlockExport(*pb.RpcBlockExportRequest) *pb.RpcBlockExportResponse - BlockImportMarkdown(*pb.RpcBlockImportMarkdownRequest) *pb.RpcBlockImportMarkdownResponse - BlockSetFileName(*pb.RpcBlockSetFileNameRequest) *pb.RpcBlockSetFileNameResponse - BlockSetImageName(*pb.RpcBlockSetImageNameRequest) *pb.RpcBlockSetImageNameResponse - BlockSetImageWidth(*pb.RpcBlockSetImageWidthRequest) *pb.RpcBlockSetImageWidthResponse - BlockSetVideoName(*pb.RpcBlockSetVideoNameRequest) *pb.RpcBlockSetVideoNameResponse - BlockSetVideoWidth(*pb.RpcBlockSetVideoWidthRequest) *pb.RpcBlockSetVideoWidthResponse - BlockSetLinkTargetBlockId(*pb.RpcBlockSetLinkTargetBlockIdRequest) *pb.RpcBlockSetLinkTargetBlockIdResponse - BlockBookmarkFetch(*pb.RpcBlockBookmarkFetchRequest) *pb.RpcBlockBookmarkFetchResponse - BlockBookmarkCreateAndFetch(*pb.RpcBlockBookmarkCreateAndFetchRequest) *pb.RpcBlockBookmarkCreateAndFetchResponse - BlockFileCreateAndUpload(*pb.RpcBlockFileCreateAndUploadRequest) *pb.RpcBlockFileCreateAndUploadResponse - BlockRelationSetKey(*pb.RpcBlockRelationSetKeyRequest) *pb.RpcBlockRelationSetKeyResponse - BlockRelationAdd(*pb.RpcBlockRelationAddRequest) *pb.RpcBlockRelationAddResponse - // ## Dataview - // # View - BlockDataviewViewCreate(*pb.RpcBlockDataviewViewCreateRequest) *pb.RpcBlockDataviewViewCreateResponse - BlockDataviewViewDelete(*pb.RpcBlockDataviewViewDeleteRequest) *pb.RpcBlockDataviewViewDeleteResponse - BlockDataviewViewUpdate(*pb.RpcBlockDataviewViewUpdateRequest) *pb.RpcBlockDataviewViewUpdateResponse - BlockDataviewViewSetActive(*pb.RpcBlockDataviewViewSetActiveRequest) *pb.RpcBlockDataviewViewSetActiveResponse - BlockDataviewViewSetPosition(*pb.RpcBlockDataviewViewSetPositionRequest) *pb.RpcBlockDataviewViewSetPositionResponse - BlockDataviewSetSource(*pb.RpcBlockDataviewSetSourceRequest) *pb.RpcBlockDataviewSetSourceResponse - // # Relation - BlockDataviewRelationAdd(*pb.RpcBlockDataviewRelationAddRequest) *pb.RpcBlockDataviewRelationAddResponse - BlockDataviewRelationUpdate(*pb.RpcBlockDataviewRelationUpdateRequest) *pb.RpcBlockDataviewRelationUpdateResponse - BlockDataviewRelationDelete(*pb.RpcBlockDataviewRelationDeleteRequest) *pb.RpcBlockDataviewRelationDeleteResponse - BlockDataviewRelationListAvailable(*pb.RpcBlockDataviewRelationListAvailableRequest) *pb.RpcBlockDataviewRelationListAvailableResponse - // # Record - BlockDataviewRecordCreate(*pb.RpcBlockDataviewRecordCreateRequest) *pb.RpcBlockDataviewRecordCreateResponse - BlockDataviewRecordUpdate(*pb.RpcBlockDataviewRecordUpdateRequest) *pb.RpcBlockDataviewRecordUpdateResponse - BlockDataviewRecordDelete(*pb.RpcBlockDataviewRecordDeleteRequest) *pb.RpcBlockDataviewRecordDeleteResponse - BlockDataviewRecordRelationOptionAdd(*pb.RpcBlockDataviewRecordRelationOptionAddRequest) *pb.RpcBlockDataviewRecordRelationOptionAddResponse - BlockDataviewRecordRelationOptionUpdate(*pb.RpcBlockDataviewRecordRelationOptionUpdateRequest) *pb.RpcBlockDataviewRecordRelationOptionUpdateResponse - BlockDataviewRecordRelationOptionDelete(*pb.RpcBlockDataviewRecordRelationOptionDeleteRequest) *pb.RpcBlockDataviewRecordRelationOptionDeleteResponse - // ## Object's relations - // set an existing object type to the object so it will appear in sets and suggests relations from this type - // TODO: rename BlockObjectTypeSet -> ObjectObjectTypeSet - BlockObjectTypeSet(*pb.RpcBlockObjectTypeSetRequest) *pb.RpcBlockObjectTypeSetResponse - NavigationListObjects(*pb.RpcNavigationListObjectsRequest) *pb.RpcNavigationListObjectsResponse - NavigationGetObjectInfoWithLinks(*pb.RpcNavigationGetObjectInfoWithLinksRequest) *pb.RpcNavigationGetObjectInfoWithLinksResponse + // Object + // *** + ObjectOpen(*pb.RpcObjectOpenRequest) *pb.RpcObjectOpenResponse + ObjectClose(*pb.RpcObjectCloseRequest) *pb.RpcObjectCloseResponse + ObjectShow(*pb.RpcObjectShowRequest) *pb.RpcObjectShowResponse + // ObjectCreate just creates the new page, without adding the link to it from some other page + ObjectCreate(*pb.RpcObjectCreateRequest) *pb.RpcObjectCreateResponse + // ObjectCreateSet just creates the new set, without adding the link to it from some other page + ObjectCreateSet(*pb.RpcObjectCreateSetRequest) *pb.RpcObjectCreateSetResponse ObjectGraph(*pb.RpcObjectGraphRequest) *pb.RpcObjectGraphResponse ObjectSearch(*pb.RpcObjectSearchRequest) *pb.RpcObjectSearchResponse ObjectSearchSubscribe(*pb.RpcObjectSearchSubscribeRequest) *pb.RpcObjectSearchSubscribeResponse - ObjectIdsSubscribe(*pb.RpcObjectIdsSubscribeRequest) *pb.RpcObjectIdsSubscribeResponse + ObjectSubscribeIds(*pb.RpcObjectSubscribeIdsRequest) *pb.RpcObjectSubscribeIdsResponse ObjectSearchUnsubscribe(*pb.RpcObjectSearchUnsubscribeRequest) *pb.RpcObjectSearchUnsubscribeResponse - ObjectRelationAdd(*pb.RpcObjectRelationAddRequest) *pb.RpcObjectRelationAddResponse - ObjectRelationUpdate(*pb.RpcObjectRelationUpdateRequest) *pb.RpcObjectRelationUpdateResponse - ObjectRelationDelete(*pb.RpcObjectRelationDeleteRequest) *pb.RpcObjectRelationDeleteResponse - ObjectRelationOptionAdd(*pb.RpcObjectRelationOptionAddRequest) *pb.RpcObjectRelationOptionAddResponse - ObjectRelationOptionUpdate(*pb.RpcObjectRelationOptionUpdateRequest) *pb.RpcObjectRelationOptionUpdateResponse - ObjectRelationOptionDelete(*pb.RpcObjectRelationOptionDeleteRequest) *pb.RpcObjectRelationOptionDeleteResponse - ObjectRelationListAvailable(*pb.RpcObjectRelationListAvailableRequest) *pb.RpcObjectRelationListAvailableResponse + ObjectSetDetails(*pb.RpcObjectSetDetailsRequest) *pb.RpcObjectSetDetailsResponse + ObjectDuplicate(*pb.RpcObjectDuplicateRequest) *pb.RpcObjectDuplicateResponse + // ObjectSetObjectType sets an existing object type to the object so it will appear in sets and suggests relations from this type + ObjectSetObjectType(*pb.RpcObjectSetObjectTypeRequest) *pb.RpcObjectSetObjectTypeResponse ObjectSetLayout(*pb.RpcObjectSetLayoutRequest) *pb.RpcObjectSetLayoutResponse - ObjectFeaturedRelationAdd(*pb.RpcObjectFeaturedRelationAddRequest) *pb.RpcObjectFeaturedRelationAddResponse - ObjectFeaturedRelationRemove(*pb.RpcObjectFeaturedRelationRemoveRequest) *pb.RpcObjectFeaturedRelationRemoveResponse ObjectSetIsFavorite(*pb.RpcObjectSetIsFavoriteRequest) *pb.RpcObjectSetIsFavoriteResponse ObjectSetIsArchived(*pb.RpcObjectSetIsArchivedRequest) *pb.RpcObjectSetIsArchivedResponse - // ObjectToSet creates new set from given object and removes object - ObjectToSet(*pb.RpcObjectToSetRequest) *pb.RpcObjectToSetResponse ObjectListDuplicate(*pb.RpcObjectListDuplicateRequest) *pb.RpcObjectListDuplicateResponse ObjectListDelete(*pb.RpcObjectListDeleteRequest) *pb.RpcObjectListDeleteResponse ObjectListSetIsArchived(*pb.RpcObjectListSetIsArchivedRequest) *pb.RpcObjectListSetIsArchivedResponse ObjectListSetIsFavorite(*pb.RpcObjectListSetIsFavoriteRequest) *pb.RpcObjectListSetIsFavoriteResponse - // TODO: rename BlockSetDetails -> ObjectSetDetails - BlockSetDetails(*pb.RpcBlockSetDetailsRequest) *pb.RpcBlockSetDetailsResponse - // PageCreate just creates the new page, without adding the link to it from some other page - // TODO: rename PageCreate -> ObjectCreate - PageCreate(*pb.RpcPageCreateRequest) *pb.RpcPageCreateResponse - // SetCreate just creates the new set, without adding the link to it from some other page - SetCreate(*pb.RpcSetCreateRequest) *pb.RpcSetCreateResponse - MetricsSetParameters(*pb.RpcMetricsSetParametersRequest) *pb.RpcMetricsSetParametersResponse - // ## ObjectType + ObjectApplyTemplate(*pb.RpcObjectApplyTemplateRequest) *pb.RpcObjectApplyTemplateResponse + // ObjectToSet creates new set from given object and removes object + ObjectToSet(*pb.RpcObjectToSetRequest) *pb.RpcObjectToSetResponse + ObjectAddWithObjectId(*pb.RpcObjectAddWithObjectIdRequest) *pb.RpcObjectAddWithObjectIdResponse + ObjectShareByLink(*pb.RpcObjectShareByLinkRequest) *pb.RpcObjectShareByLinkResponse + ObjectOpenBreadcrumbs(*pb.RpcObjectOpenBreadcrumbsRequest) *pb.RpcObjectOpenBreadcrumbsResponse + ObjectSetBreadcrumbs(*pb.RpcObjectSetBreadcrumbsRequest) *pb.RpcObjectSetBreadcrumbsResponse + ObjectUndo(*pb.RpcObjectUndoRequest) *pb.RpcObjectUndoResponse + ObjectRedo(*pb.RpcObjectRedoRequest) *pb.RpcObjectRedoResponse + ObjectImportMarkdown(*pb.RpcObjectImportMarkdownRequest) *pb.RpcObjectImportMarkdownResponse + ObjectListExport(*pb.RpcObjectListExportRequest) *pb.RpcObjectListExportResponse + // Object Relations + // *** + ObjectRelationAdd(*pb.RpcObjectRelationAddRequest) *pb.RpcObjectRelationAddResponse + ObjectRelationUpdate(*pb.RpcObjectRelationUpdateRequest) *pb.RpcObjectRelationUpdateResponse + ObjectRelationDelete(*pb.RpcObjectRelationDeleteRequest) *pb.RpcObjectRelationDeleteResponse + ObjectRelationAddFeatured(*pb.RpcObjectRelationAddFeaturedRequest) *pb.RpcObjectRelationAddFeaturedResponse + ObjectRelationRemoveFeatured(*pb.RpcObjectRelationRemoveFeaturedRequest) *pb.RpcObjectRelationRemoveFeaturedResponse + ObjectRelationListAvailable(*pb.RpcObjectRelationListAvailableRequest) *pb.RpcObjectRelationListAvailableResponse + ObjectRelationOptionAdd(*pb.RpcObjectRelationOptionAddRequest) *pb.RpcObjectRelationOptionAddResponse + ObjectRelationOptionUpdate(*pb.RpcObjectRelationOptionUpdateRequest) *pb.RpcObjectRelationOptionUpdateResponse + ObjectRelationOptionDelete(*pb.RpcObjectRelationOptionDeleteRequest) *pb.RpcObjectRelationOptionDeleteResponse + // ObjectType commands + // *** ObjectTypeCreate(*pb.RpcObjectTypeCreateRequest) *pb.RpcObjectTypeCreateResponse // ObjectTypeList lists all object types both bundled and created by user ObjectTypeList(*pb.RpcObjectTypeListRequest) *pb.RpcObjectTypeListResponse @@ -378,27 +290,101 @@ type ClientCommandsHandler interface { ObjectTypeRelationAdd(*pb.RpcObjectTypeRelationAddRequest) *pb.RpcObjectTypeRelationAddResponse ObjectTypeRelationUpdate(*pb.RpcObjectTypeRelationUpdateRequest) *pb.RpcObjectTypeRelationUpdateResponse ObjectTypeRelationRemove(*pb.RpcObjectTypeRelationRemoveRequest) *pb.RpcObjectTypeRelationRemoveResponse - Ping(*pb.RpcPingRequest) *pb.RpcPingResponse - ProcessCancel(*pb.RpcProcessCancelRequest) *pb.RpcProcessCancelResponse - HistoryShow(*pb.RpcHistoryShowRequest) *pb.RpcHistoryShowResponse - HistoryVersions(*pb.RpcHistoryVersionsRequest) *pb.RpcHistoryVersionsResponse + HistoryShowVersion(*pb.RpcHistoryShowVersionRequest) *pb.RpcHistoryShowVersionResponse + HistoryGetVersions(*pb.RpcHistoryGetVersionsRequest) *pb.RpcHistoryGetVersionsResponse HistorySetVersion(*pb.RpcHistorySetVersionRequest) *pb.RpcHistorySetVersionResponse - Export(*pb.RpcExportRequest) *pb.RpcExportResponse - ExportWorkspace(*pb.RpcExportWorkspaceRequest) *pb.RpcExportWorkspaceResponse - ExportTemplates(*pb.RpcExportTemplatesRequest) *pb.RpcExportTemplatesResponse - ExportLocalstore(*pb.RpcExportLocalstoreRequest) *pb.RpcExportLocalstoreResponse - MakeTemplate(*pb.RpcMakeTemplateRequest) *pb.RpcMakeTemplateResponse - MakeTemplateByObjectType(*pb.RpcMakeTemplateByObjectTypeRequest) *pb.RpcMakeTemplateByObjectTypeResponse - CloneTemplate(*pb.RpcCloneTemplateRequest) *pb.RpcCloneTemplateResponse - ObjectDuplicate(*pb.RpcObjectDuplicateRequest) *pb.RpcObjectDuplicateResponse + // Files + // *** + FileOffload(*pb.RpcFileOffloadRequest) *pb.RpcFileOffloadResponse + FileListOffload(*pb.RpcFileListOffloadRequest) *pb.RpcFileListOffloadResponse + FileUpload(*pb.RpcFileUploadRequest) *pb.RpcFileUploadResponse + FileDownload(*pb.RpcFileDownloadRequest) *pb.RpcFileDownloadResponse + FileDrop(*pb.RpcFileDropRequest) *pb.RpcFileDropResponse + NavigationListObjects(*pb.RpcNavigationListObjectsRequest) *pb.RpcNavigationListObjectsResponse + NavigationGetObjectInfoWithLinks(*pb.RpcNavigationGetObjectInfoWithLinksRequest) *pb.RpcNavigationGetObjectInfoWithLinksResponse + TemplateCreateFromObject(*pb.RpcTemplateCreateFromObjectRequest) *pb.RpcTemplateCreateFromObjectResponse + TemplateCreateFromObjectType(*pb.RpcTemplateCreateFromObjectTypeRequest) *pb.RpcTemplateCreateFromObjectTypeResponse + TemplateClone(*pb.RpcTemplateCloneRequest) *pb.RpcTemplateCloneResponse + TemplateExportAll(*pb.RpcTemplateExportAllRequest) *pb.RpcTemplateExportAllResponse + LinkPreview(*pb.RpcLinkPreviewRequest) *pb.RpcLinkPreviewResponse UnsplashSearch(*pb.RpcUnsplashSearchRequest) *pb.RpcUnsplashSearchResponse // UnsplashDownload downloads picture from unsplash by ID, put it to the IPFS and returns the hash. // The artist info is available in the object details UnsplashDownload(*pb.RpcUnsplashDownloadRequest) *pb.RpcUnsplashDownloadResponse - ApplyTemplate(*pb.RpcApplyTemplateRequest) *pb.RpcApplyTemplateResponse + // General Block commands + // *** + BlockUpload(*pb.RpcBlockUploadRequest) *pb.RpcBlockUploadResponse + BlockReplace(*pb.RpcBlockReplaceRequest) *pb.RpcBlockReplaceResponse + BlockCreate(*pb.RpcBlockCreateRequest) *pb.RpcBlockCreateResponse + BlockSplit(*pb.RpcBlockSplitRequest) *pb.RpcBlockSplitResponse + BlockMerge(*pb.RpcBlockMergeRequest) *pb.RpcBlockMergeResponse + BlockCopy(*pb.RpcBlockCopyRequest) *pb.RpcBlockCopyResponse + BlockPaste(*pb.RpcBlockPasteRequest) *pb.RpcBlockPasteResponse + BlockCut(*pb.RpcBlockCutRequest) *pb.RpcBlockCutResponse + BlockSetFields(*pb.RpcBlockSetFieldsRequest) *pb.RpcBlockSetFieldsResponse + BlockExport(*pb.RpcBlockExportRequest) *pb.RpcBlockExportResponse + BlockListDelete(*pb.RpcBlockListDeleteRequest) *pb.RpcBlockListDeleteResponse + BlockListMoveToExistingObject(*pb.RpcBlockListMoveToExistingObjectRequest) *pb.RpcBlockListMoveToExistingObjectResponse + BlockListMoveToNewObject(*pb.RpcBlockListMoveToNewObjectRequest) *pb.RpcBlockListMoveToNewObjectResponse + BlockListConvertToObjects(*pb.RpcBlockListConvertToObjectsRequest) *pb.RpcBlockListConvertToObjectsResponse + BlockListSetFields(*pb.RpcBlockListSetFieldsRequest) *pb.RpcBlockListSetFieldsResponse + BlockListDuplicate(*pb.RpcBlockListDuplicateRequest) *pb.RpcBlockListDuplicateResponse + BlockListSetBackgroundColor(*pb.RpcBlockListSetBackgroundColorRequest) *pb.RpcBlockListSetBackgroundColorResponse + BlockListSetAlign(*pb.RpcBlockListSetAlignRequest) *pb.RpcBlockListSetAlignResponse + BlockListTurnInto(*pb.RpcBlockListTurnIntoRequest) *pb.RpcBlockListTurnIntoResponse + // Text Block commands + // *** + BlockTextSetText(*pb.RpcBlockTextSetTextRequest) *pb.RpcBlockTextSetTextResponse + BlockTextSetColor(*pb.RpcBlockTextSetColorRequest) *pb.RpcBlockTextSetColorResponse + BlockTextSetStyle(*pb.RpcBlockTextSetStyleRequest) *pb.RpcBlockTextSetStyleResponse + BlockTextSetChecked(*pb.RpcBlockTextSetCheckedRequest) *pb.RpcBlockTextSetCheckedResponse + BlockTextSetIcon(*pb.RpcBlockTextSetIconRequest) *pb.RpcBlockTextSetIconResponse + BlockTextListSetColor(*pb.RpcBlockTextListSetColorRequest) *pb.RpcBlockTextListSetColorResponse + BlockTextListSetMark(*pb.RpcBlockTextListSetMarkRequest) *pb.RpcBlockTextListSetMarkResponse + BlockTextListSetStyle(*pb.RpcBlockTextListSetStyleRequest) *pb.RpcBlockTextListSetStyleResponse + // File block commands + // *** + BlockFileSetName(*pb.RpcBlockFileSetNameRequest) *pb.RpcBlockFileSetNameResponse + BlockImageSetName(*pb.RpcBlockImageSetNameRequest) *pb.RpcBlockImageSetNameResponse + BlockVideoSetName(*pb.RpcBlockVideoSetNameRequest) *pb.RpcBlockVideoSetNameResponse + BlockFileCreateAndUpload(*pb.RpcBlockFileCreateAndUploadRequest) *pb.RpcBlockFileCreateAndUploadResponse + BlockFileListSetStyle(*pb.RpcBlockFileListSetStyleRequest) *pb.RpcBlockFileListSetStyleResponse + // Dataview block commands + // *** + BlockDataviewViewCreate(*pb.RpcBlockDataviewViewCreateRequest) *pb.RpcBlockDataviewViewCreateResponse + BlockDataviewViewDelete(*pb.RpcBlockDataviewViewDeleteRequest) *pb.RpcBlockDataviewViewDeleteResponse + BlockDataviewViewUpdate(*pb.RpcBlockDataviewViewUpdateRequest) *pb.RpcBlockDataviewViewUpdateResponse + BlockDataviewViewSetActive(*pb.RpcBlockDataviewViewSetActiveRequest) *pb.RpcBlockDataviewViewSetActiveResponse + BlockDataviewViewSetPosition(*pb.RpcBlockDataviewViewSetPositionRequest) *pb.RpcBlockDataviewViewSetPositionResponse + BlockDataviewSetSource(*pb.RpcBlockDataviewSetSourceRequest) *pb.RpcBlockDataviewSetSourceResponse + BlockDataviewRelationAdd(*pb.RpcBlockDataviewRelationAddRequest) *pb.RpcBlockDataviewRelationAddResponse + BlockDataviewRelationUpdate(*pb.RpcBlockDataviewRelationUpdateRequest) *pb.RpcBlockDataviewRelationUpdateResponse + BlockDataviewRelationDelete(*pb.RpcBlockDataviewRelationDeleteRequest) *pb.RpcBlockDataviewRelationDeleteResponse + BlockDataviewRelationListAvailable(*pb.RpcBlockDataviewRelationListAvailableRequest) *pb.RpcBlockDataviewRelationListAvailableResponse + BlockDataviewRecordCreate(*pb.RpcBlockDataviewRecordCreateRequest) *pb.RpcBlockDataviewRecordCreateResponse + BlockDataviewRecordUpdate(*pb.RpcBlockDataviewRecordUpdateRequest) *pb.RpcBlockDataviewRecordUpdateResponse + BlockDataviewRecordDelete(*pb.RpcBlockDataviewRecordDeleteRequest) *pb.RpcBlockDataviewRecordDeleteResponse + BlockDataviewRecordRelationOptionAdd(*pb.RpcBlockDataviewRecordRelationOptionAddRequest) *pb.RpcBlockDataviewRecordRelationOptionAddResponse + BlockDataviewRecordRelationOptionUpdate(*pb.RpcBlockDataviewRecordRelationOptionUpdateRequest) *pb.RpcBlockDataviewRecordRelationOptionUpdateResponse + BlockDataviewRecordRelationOptionDelete(*pb.RpcBlockDataviewRecordRelationOptionDeleteRequest) *pb.RpcBlockDataviewRecordRelationOptionDeleteResponse + // Other specific block commands + // *** + BlockLinkCreateWithObject(*pb.RpcBlockLinkCreateWithObjectRequest) *pb.RpcBlockLinkCreateWithObjectResponse + BlockLinkListSetAppearance(*pb.RpcBlockLinkListSetAppearanceRequest) *pb.RpcBlockLinkListSetAppearanceResponse + BlockBookmarkFetch(*pb.RpcBlockBookmarkFetchRequest) *pb.RpcBlockBookmarkFetchResponse + BlockBookmarkCreateAndFetch(*pb.RpcBlockBookmarkCreateAndFetchRequest) *pb.RpcBlockBookmarkCreateAndFetchResponse + BlockRelationSetKey(*pb.RpcBlockRelationSetKeyRequest) *pb.RpcBlockRelationSetKeyResponse + BlockRelationAdd(*pb.RpcBlockRelationAddRequest) *pb.RpcBlockRelationAddResponse + BlockDivListSetStyle(*pb.RpcBlockDivListSetStyleRequest) *pb.RpcBlockDivListSetStyleResponse + BlockLatexSetText(*pb.RpcBlockLatexSetTextRequest) *pb.RpcBlockLatexSetTextResponse + ProcessCancel(*pb.RpcProcessCancelRequest) *pb.RpcProcessCancelResponse + LogSend(*pb.RpcLogSendRequest) *pb.RpcLogSendResponse DebugSync(*pb.RpcDebugSyncRequest) *pb.RpcDebugSyncResponse DebugThread(*pb.RpcDebugThreadRequest) *pb.RpcDebugThreadResponse DebugTree(*pb.RpcDebugTreeRequest) *pb.RpcDebugTreeResponse + DebugExportLocalstore(*pb.RpcDebugExportLocalstoreRequest) *pb.RpcDebugExportLocalstoreResponse + DebugPing(*pb.RpcDebugPingRequest) *pb.RpcDebugPingResponse + MetricsSetParameters(*pb.RpcMetricsSetParametersRequest) *pb.RpcMetricsSetParametersResponse // used only for lib-server via grpc // Streams not supported ### ListenEvents(*pb.Empty) } @@ -407,43 +393,63 @@ func registerClientCommandsHandler(srv ClientCommandsHandler) { clientCommandsHandler = srv } -func ObjectAddWithObjectId(b []byte) (resp []byte) { +func AppGetVersion(b []byte) (resp []byte) { defer func() { if PanicHandler != nil { if r := recover(); r != nil { - resp, _ = (&pb.RpcObjectAddWithObjectIdResponse{Error: &pb.RpcObjectAddWithObjectIdResponseError{Code: pb.RpcObjectAddWithObjectIdResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + resp, _ = (&pb.RpcAppGetVersionResponse{Error: &pb.RpcAppGetVersionResponseError{Code: pb.RpcAppGetVersionResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() PanicHandler(r) } } }() - in := new(pb.RpcObjectAddWithObjectIdRequest) + in := new(pb.RpcAppGetVersionRequest) if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcObjectAddWithObjectIdResponse{Error: &pb.RpcObjectAddWithObjectIdResponseError{Code: pb.RpcObjectAddWithObjectIdResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ = (&pb.RpcAppGetVersionResponse{Error: &pb.RpcAppGetVersionResponseError{Code: pb.RpcAppGetVersionResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } - resp, _ = clientCommandsHandler.ObjectAddWithObjectId(in).Marshal() + resp, _ = clientCommandsHandler.AppGetVersion(in).Marshal() return resp } -func ObjectShareByLink(b []byte) (resp []byte) { +func AppSetDeviceState(b []byte) (resp []byte) { defer func() { if PanicHandler != nil { if r := recover(); r != nil { - resp, _ = (&pb.RpcObjectShareByLinkResponse{Error: &pb.RpcObjectShareByLinkResponseError{Code: pb.RpcObjectShareByLinkResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + resp, _ = (&pb.RpcAppSetDeviceStateResponse{Error: &pb.RpcAppSetDeviceStateResponseError{Code: pb.RpcAppSetDeviceStateResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() PanicHandler(r) } } }() - in := new(pb.RpcObjectShareByLinkRequest) + in := new(pb.RpcAppSetDeviceStateRequest) if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcObjectShareByLinkResponse{Error: &pb.RpcObjectShareByLinkResponseError{Code: pb.RpcObjectShareByLinkResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ = (&pb.RpcAppSetDeviceStateResponse{Error: &pb.RpcAppSetDeviceStateResponseError{Code: pb.RpcAppSetDeviceStateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } - resp, _ = clientCommandsHandler.ObjectShareByLink(in).Marshal() + resp, _ = clientCommandsHandler.AppSetDeviceState(in).Marshal() + return resp +} + +func AppShutdown(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcAppShutdownResponse{Error: &pb.RpcAppShutdownResponseError{Code: pb.RpcAppShutdownResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcAppShutdownRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcAppShutdownResponse{Error: &pb.RpcAppShutdownResponseError{Code: pb.RpcAppShutdownResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.AppShutdown(in).Marshal() return resp } @@ -607,6 +613,26 @@ func WorkspaceSetIsHighlighted(b []byte) (resp []byte) { return resp } +func WorkspaceExport(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcWorkspaceExportResponse{Error: &pb.RpcWorkspaceExportResponseError{Code: pb.RpcWorkspaceExportResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcWorkspaceExportRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcWorkspaceExportResponse{Error: &pb.RpcWorkspaceExportResponseError{Code: pb.RpcWorkspaceExportResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.WorkspaceExport(in).Marshal() + return resp +} + func AccountRecover(b []byte) (resp []byte) { defer func() { if PanicHandler != nil { @@ -707,6 +733,966 @@ func AccountStop(b []byte) (resp []byte) { return resp } +func ObjectOpen(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcObjectOpenResponse{Error: &pb.RpcObjectOpenResponseError{Code: pb.RpcObjectOpenResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcObjectOpenRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcObjectOpenResponse{Error: &pb.RpcObjectOpenResponseError{Code: pb.RpcObjectOpenResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.ObjectOpen(in).Marshal() + return resp +} + +func ObjectClose(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcObjectCloseResponse{Error: &pb.RpcObjectCloseResponseError{Code: pb.RpcObjectCloseResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcObjectCloseRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcObjectCloseResponse{Error: &pb.RpcObjectCloseResponseError{Code: pb.RpcObjectCloseResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.ObjectClose(in).Marshal() + return resp +} + +func ObjectShow(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcObjectShowResponse{Error: &pb.RpcObjectShowResponseError{Code: pb.RpcObjectShowResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcObjectShowRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcObjectShowResponse{Error: &pb.RpcObjectShowResponseError{Code: pb.RpcObjectShowResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.ObjectShow(in).Marshal() + return resp +} + +func ObjectCreate(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcObjectCreateResponse{Error: &pb.RpcObjectCreateResponseError{Code: pb.RpcObjectCreateResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcObjectCreateRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcObjectCreateResponse{Error: &pb.RpcObjectCreateResponseError{Code: pb.RpcObjectCreateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.ObjectCreate(in).Marshal() + return resp +} + +func ObjectCreateSet(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcObjectCreateSetResponse{Error: &pb.RpcObjectCreateSetResponseError{Code: pb.RpcObjectCreateSetResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcObjectCreateSetRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcObjectCreateSetResponse{Error: &pb.RpcObjectCreateSetResponseError{Code: pb.RpcObjectCreateSetResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.ObjectCreateSet(in).Marshal() + return resp +} + +func ObjectGraph(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcObjectGraphResponse{Error: &pb.RpcObjectGraphResponseError{Code: pb.RpcObjectGraphResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcObjectGraphRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcObjectGraphResponse{Error: &pb.RpcObjectGraphResponseError{Code: pb.RpcObjectGraphResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.ObjectGraph(in).Marshal() + return resp +} + +func ObjectSearch(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcObjectSearchResponse{Error: &pb.RpcObjectSearchResponseError{Code: pb.RpcObjectSearchResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcObjectSearchRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcObjectSearchResponse{Error: &pb.RpcObjectSearchResponseError{Code: pb.RpcObjectSearchResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.ObjectSearch(in).Marshal() + return resp +} + +func ObjectSearchSubscribe(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcObjectSearchSubscribeResponse{Error: &pb.RpcObjectSearchSubscribeResponseError{Code: pb.RpcObjectSearchSubscribeResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcObjectSearchSubscribeRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcObjectSearchSubscribeResponse{Error: &pb.RpcObjectSearchSubscribeResponseError{Code: pb.RpcObjectSearchSubscribeResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.ObjectSearchSubscribe(in).Marshal() + return resp +} + +func ObjectSubscribeIds(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcObjectSubscribeIdsResponse{Error: &pb.RpcObjectSubscribeIdsResponseError{Code: pb.RpcObjectSubscribeIdsResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcObjectSubscribeIdsRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcObjectSubscribeIdsResponse{Error: &pb.RpcObjectSubscribeIdsResponseError{Code: pb.RpcObjectSubscribeIdsResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.ObjectSubscribeIds(in).Marshal() + return resp +} + +func ObjectSearchUnsubscribe(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcObjectSearchUnsubscribeResponse{Error: &pb.RpcObjectSearchUnsubscribeResponseError{Code: pb.RpcObjectSearchUnsubscribeResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcObjectSearchUnsubscribeRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcObjectSearchUnsubscribeResponse{Error: &pb.RpcObjectSearchUnsubscribeResponseError{Code: pb.RpcObjectSearchUnsubscribeResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.ObjectSearchUnsubscribe(in).Marshal() + return resp +} + +func ObjectSetDetails(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcObjectSetDetailsResponse{Error: &pb.RpcObjectSetDetailsResponseError{Code: pb.RpcObjectSetDetailsResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcObjectSetDetailsRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcObjectSetDetailsResponse{Error: &pb.RpcObjectSetDetailsResponseError{Code: pb.RpcObjectSetDetailsResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.ObjectSetDetails(in).Marshal() + return resp +} + +func ObjectDuplicate(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcObjectDuplicateResponse{Error: &pb.RpcObjectDuplicateResponseError{Code: pb.RpcObjectDuplicateResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcObjectDuplicateRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcObjectDuplicateResponse{Error: &pb.RpcObjectDuplicateResponseError{Code: pb.RpcObjectDuplicateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.ObjectDuplicate(in).Marshal() + return resp +} + +func ObjectSetObjectType(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcObjectSetObjectTypeResponse{Error: &pb.RpcObjectSetObjectTypeResponseError{Code: pb.RpcObjectSetObjectTypeResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcObjectSetObjectTypeRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcObjectSetObjectTypeResponse{Error: &pb.RpcObjectSetObjectTypeResponseError{Code: pb.RpcObjectSetObjectTypeResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.ObjectSetObjectType(in).Marshal() + return resp +} + +func ObjectSetLayout(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcObjectSetLayoutResponse{Error: &pb.RpcObjectSetLayoutResponseError{Code: pb.RpcObjectSetLayoutResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcObjectSetLayoutRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcObjectSetLayoutResponse{Error: &pb.RpcObjectSetLayoutResponseError{Code: pb.RpcObjectSetLayoutResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.ObjectSetLayout(in).Marshal() + return resp +} + +func ObjectSetIsFavorite(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcObjectSetIsFavoriteResponse{Error: &pb.RpcObjectSetIsFavoriteResponseError{Code: pb.RpcObjectSetIsFavoriteResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcObjectSetIsFavoriteRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcObjectSetIsFavoriteResponse{Error: &pb.RpcObjectSetIsFavoriteResponseError{Code: pb.RpcObjectSetIsFavoriteResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.ObjectSetIsFavorite(in).Marshal() + return resp +} + +func ObjectSetIsArchived(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcObjectSetIsArchivedResponse{Error: &pb.RpcObjectSetIsArchivedResponseError{Code: pb.RpcObjectSetIsArchivedResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcObjectSetIsArchivedRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcObjectSetIsArchivedResponse{Error: &pb.RpcObjectSetIsArchivedResponseError{Code: pb.RpcObjectSetIsArchivedResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.ObjectSetIsArchived(in).Marshal() + return resp +} + +func ObjectListDuplicate(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcObjectListDuplicateResponse{Error: &pb.RpcObjectListDuplicateResponseError{Code: pb.RpcObjectListDuplicateResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcObjectListDuplicateRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcObjectListDuplicateResponse{Error: &pb.RpcObjectListDuplicateResponseError{Code: pb.RpcObjectListDuplicateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.ObjectListDuplicate(in).Marshal() + return resp +} + +func ObjectListDelete(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcObjectListDeleteResponse{Error: &pb.RpcObjectListDeleteResponseError{Code: pb.RpcObjectListDeleteResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcObjectListDeleteRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcObjectListDeleteResponse{Error: &pb.RpcObjectListDeleteResponseError{Code: pb.RpcObjectListDeleteResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.ObjectListDelete(in).Marshal() + return resp +} + +func ObjectListSetIsArchived(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcObjectListSetIsArchivedResponse{Error: &pb.RpcObjectListSetIsArchivedResponseError{Code: pb.RpcObjectListSetIsArchivedResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcObjectListSetIsArchivedRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcObjectListSetIsArchivedResponse{Error: &pb.RpcObjectListSetIsArchivedResponseError{Code: pb.RpcObjectListSetIsArchivedResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.ObjectListSetIsArchived(in).Marshal() + return resp +} + +func ObjectListSetIsFavorite(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcObjectListSetIsFavoriteResponse{Error: &pb.RpcObjectListSetIsFavoriteResponseError{Code: pb.RpcObjectListSetIsFavoriteResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcObjectListSetIsFavoriteRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcObjectListSetIsFavoriteResponse{Error: &pb.RpcObjectListSetIsFavoriteResponseError{Code: pb.RpcObjectListSetIsFavoriteResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.ObjectListSetIsFavorite(in).Marshal() + return resp +} + +func ObjectApplyTemplate(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcObjectApplyTemplateResponse{Error: &pb.RpcObjectApplyTemplateResponseError{Code: pb.RpcObjectApplyTemplateResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcObjectApplyTemplateRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcObjectApplyTemplateResponse{Error: &pb.RpcObjectApplyTemplateResponseError{Code: pb.RpcObjectApplyTemplateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.ObjectApplyTemplate(in).Marshal() + return resp +} + +func ObjectToSet(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcObjectToSetResponse{Error: &pb.RpcObjectToSetResponseError{Code: pb.RpcObjectToSetResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcObjectToSetRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcObjectToSetResponse{Error: &pb.RpcObjectToSetResponseError{Code: pb.RpcObjectToSetResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.ObjectToSet(in).Marshal() + return resp +} + +func ObjectAddWithObjectId(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcObjectAddWithObjectIdResponse{Error: &pb.RpcObjectAddWithObjectIdResponseError{Code: pb.RpcObjectAddWithObjectIdResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcObjectAddWithObjectIdRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcObjectAddWithObjectIdResponse{Error: &pb.RpcObjectAddWithObjectIdResponseError{Code: pb.RpcObjectAddWithObjectIdResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.ObjectAddWithObjectId(in).Marshal() + return resp +} + +func ObjectShareByLink(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcObjectShareByLinkResponse{Error: &pb.RpcObjectShareByLinkResponseError{Code: pb.RpcObjectShareByLinkResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcObjectShareByLinkRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcObjectShareByLinkResponse{Error: &pb.RpcObjectShareByLinkResponseError{Code: pb.RpcObjectShareByLinkResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.ObjectShareByLink(in).Marshal() + return resp +} + +func ObjectOpenBreadcrumbs(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcObjectOpenBreadcrumbsResponse{Error: &pb.RpcObjectOpenBreadcrumbsResponseError{Code: pb.RpcObjectOpenBreadcrumbsResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcObjectOpenBreadcrumbsRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcObjectOpenBreadcrumbsResponse{Error: &pb.RpcObjectOpenBreadcrumbsResponseError{Code: pb.RpcObjectOpenBreadcrumbsResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.ObjectOpenBreadcrumbs(in).Marshal() + return resp +} + +func ObjectSetBreadcrumbs(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcObjectSetBreadcrumbsResponse{Error: &pb.RpcObjectSetBreadcrumbsResponseError{Code: pb.RpcObjectSetBreadcrumbsResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcObjectSetBreadcrumbsRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcObjectSetBreadcrumbsResponse{Error: &pb.RpcObjectSetBreadcrumbsResponseError{Code: pb.RpcObjectSetBreadcrumbsResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.ObjectSetBreadcrumbs(in).Marshal() + return resp +} + +func ObjectUndo(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcObjectUndoResponse{Error: &pb.RpcObjectUndoResponseError{Code: pb.RpcObjectUndoResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcObjectUndoRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcObjectUndoResponse{Error: &pb.RpcObjectUndoResponseError{Code: pb.RpcObjectUndoResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.ObjectUndo(in).Marshal() + return resp +} + +func ObjectRedo(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcObjectRedoResponse{Error: &pb.RpcObjectRedoResponseError{Code: pb.RpcObjectRedoResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcObjectRedoRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcObjectRedoResponse{Error: &pb.RpcObjectRedoResponseError{Code: pb.RpcObjectRedoResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.ObjectRedo(in).Marshal() + return resp +} + +func ObjectImportMarkdown(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcObjectImportMarkdownResponse{Error: &pb.RpcObjectImportMarkdownResponseError{Code: pb.RpcObjectImportMarkdownResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcObjectImportMarkdownRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcObjectImportMarkdownResponse{Error: &pb.RpcObjectImportMarkdownResponseError{Code: pb.RpcObjectImportMarkdownResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.ObjectImportMarkdown(in).Marshal() + return resp +} + +func ObjectListExport(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcObjectListExportResponse{Error: &pb.RpcObjectListExportResponseError{Code: pb.RpcObjectListExportResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcObjectListExportRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcObjectListExportResponse{Error: &pb.RpcObjectListExportResponseError{Code: pb.RpcObjectListExportResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.ObjectListExport(in).Marshal() + return resp +} + +func ObjectRelationAdd(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcObjectRelationAddResponse{Error: &pb.RpcObjectRelationAddResponseError{Code: pb.RpcObjectRelationAddResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcObjectRelationAddRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcObjectRelationAddResponse{Error: &pb.RpcObjectRelationAddResponseError{Code: pb.RpcObjectRelationAddResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.ObjectRelationAdd(in).Marshal() + return resp +} + +func ObjectRelationUpdate(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcObjectRelationUpdateResponse{Error: &pb.RpcObjectRelationUpdateResponseError{Code: pb.RpcObjectRelationUpdateResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcObjectRelationUpdateRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcObjectRelationUpdateResponse{Error: &pb.RpcObjectRelationUpdateResponseError{Code: pb.RpcObjectRelationUpdateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.ObjectRelationUpdate(in).Marshal() + return resp +} + +func ObjectRelationDelete(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcObjectRelationDeleteResponse{Error: &pb.RpcObjectRelationDeleteResponseError{Code: pb.RpcObjectRelationDeleteResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcObjectRelationDeleteRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcObjectRelationDeleteResponse{Error: &pb.RpcObjectRelationDeleteResponseError{Code: pb.RpcObjectRelationDeleteResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.ObjectRelationDelete(in).Marshal() + return resp +} + +func ObjectRelationAddFeatured(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcObjectRelationAddFeaturedResponse{Error: &pb.RpcObjectRelationAddFeaturedResponseError{Code: pb.RpcObjectRelationAddFeaturedResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcObjectRelationAddFeaturedRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcObjectRelationAddFeaturedResponse{Error: &pb.RpcObjectRelationAddFeaturedResponseError{Code: pb.RpcObjectRelationAddFeaturedResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.ObjectRelationAddFeatured(in).Marshal() + return resp +} + +func ObjectRelationRemoveFeatured(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcObjectRelationRemoveFeaturedResponse{Error: &pb.RpcObjectRelationRemoveFeaturedResponseError{Code: pb.RpcObjectRelationRemoveFeaturedResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcObjectRelationRemoveFeaturedRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcObjectRelationRemoveFeaturedResponse{Error: &pb.RpcObjectRelationRemoveFeaturedResponseError{Code: pb.RpcObjectRelationRemoveFeaturedResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.ObjectRelationRemoveFeatured(in).Marshal() + return resp +} + +func ObjectRelationListAvailable(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcObjectRelationListAvailableResponse{Error: &pb.RpcObjectRelationListAvailableResponseError{Code: pb.RpcObjectRelationListAvailableResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcObjectRelationListAvailableRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcObjectRelationListAvailableResponse{Error: &pb.RpcObjectRelationListAvailableResponseError{Code: pb.RpcObjectRelationListAvailableResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.ObjectRelationListAvailable(in).Marshal() + return resp +} + +func ObjectRelationOptionAdd(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcObjectRelationOptionAddResponse{Error: &pb.RpcObjectRelationOptionAddResponseError{Code: pb.RpcObjectRelationOptionAddResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcObjectRelationOptionAddRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcObjectRelationOptionAddResponse{Error: &pb.RpcObjectRelationOptionAddResponseError{Code: pb.RpcObjectRelationOptionAddResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.ObjectRelationOptionAdd(in).Marshal() + return resp +} + +func ObjectRelationOptionUpdate(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcObjectRelationOptionUpdateResponse{Error: &pb.RpcObjectRelationOptionUpdateResponseError{Code: pb.RpcObjectRelationOptionUpdateResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcObjectRelationOptionUpdateRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcObjectRelationOptionUpdateResponse{Error: &pb.RpcObjectRelationOptionUpdateResponseError{Code: pb.RpcObjectRelationOptionUpdateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.ObjectRelationOptionUpdate(in).Marshal() + return resp +} + +func ObjectRelationOptionDelete(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcObjectRelationOptionDeleteResponse{Error: &pb.RpcObjectRelationOptionDeleteResponseError{Code: pb.RpcObjectRelationOptionDeleteResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcObjectRelationOptionDeleteRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcObjectRelationOptionDeleteResponse{Error: &pb.RpcObjectRelationOptionDeleteResponseError{Code: pb.RpcObjectRelationOptionDeleteResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.ObjectRelationOptionDelete(in).Marshal() + return resp +} + +func ObjectTypeCreate(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcObjectTypeCreateResponse{Error: &pb.RpcObjectTypeCreateResponseError{Code: pb.RpcObjectTypeCreateResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcObjectTypeCreateRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcObjectTypeCreateResponse{Error: &pb.RpcObjectTypeCreateResponseError{Code: pb.RpcObjectTypeCreateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.ObjectTypeCreate(in).Marshal() + return resp +} + +func ObjectTypeList(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcObjectTypeListResponse{Error: &pb.RpcObjectTypeListResponseError{Code: pb.RpcObjectTypeListResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcObjectTypeListRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcObjectTypeListResponse{Error: &pb.RpcObjectTypeListResponseError{Code: pb.RpcObjectTypeListResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.ObjectTypeList(in).Marshal() + return resp +} + +func ObjectTypeRelationList(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcObjectTypeRelationListResponse{Error: &pb.RpcObjectTypeRelationListResponseError{Code: pb.RpcObjectTypeRelationListResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcObjectTypeRelationListRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcObjectTypeRelationListResponse{Error: &pb.RpcObjectTypeRelationListResponseError{Code: pb.RpcObjectTypeRelationListResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.ObjectTypeRelationList(in).Marshal() + return resp +} + +func ObjectTypeRelationAdd(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcObjectTypeRelationAddResponse{Error: &pb.RpcObjectTypeRelationAddResponseError{Code: pb.RpcObjectTypeRelationAddResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcObjectTypeRelationAddRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcObjectTypeRelationAddResponse{Error: &pb.RpcObjectTypeRelationAddResponseError{Code: pb.RpcObjectTypeRelationAddResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.ObjectTypeRelationAdd(in).Marshal() + return resp +} + +func ObjectTypeRelationUpdate(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcObjectTypeRelationUpdateResponse{Error: &pb.RpcObjectTypeRelationUpdateResponseError{Code: pb.RpcObjectTypeRelationUpdateResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcObjectTypeRelationUpdateRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcObjectTypeRelationUpdateResponse{Error: &pb.RpcObjectTypeRelationUpdateResponseError{Code: pb.RpcObjectTypeRelationUpdateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.ObjectTypeRelationUpdate(in).Marshal() + return resp +} + +func ObjectTypeRelationRemove(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcObjectTypeRelationRemoveResponse{Error: &pb.RpcObjectTypeRelationRemoveResponseError{Code: pb.RpcObjectTypeRelationRemoveResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcObjectTypeRelationRemoveRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcObjectTypeRelationRemoveResponse{Error: &pb.RpcObjectTypeRelationRemoveResponseError{Code: pb.RpcObjectTypeRelationRemoveResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.ObjectTypeRelationRemove(in).Marshal() + return resp +} + +func HistoryShowVersion(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcHistoryShowVersionResponse{Error: &pb.RpcHistoryShowVersionResponseError{Code: pb.RpcHistoryShowVersionResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcHistoryShowVersionRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcHistoryShowVersionResponse{Error: &pb.RpcHistoryShowVersionResponseError{Code: pb.RpcHistoryShowVersionResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.HistoryShowVersion(in).Marshal() + return resp +} + +func HistoryGetVersions(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcHistoryGetVersionsResponse{Error: &pb.RpcHistoryGetVersionsResponseError{Code: pb.RpcHistoryGetVersionsResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcHistoryGetVersionsRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcHistoryGetVersionsResponse{Error: &pb.RpcHistoryGetVersionsResponseError{Code: pb.RpcHistoryGetVersionsResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.HistoryGetVersions(in).Marshal() + return resp +} + +func HistorySetVersion(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcHistorySetVersionResponse{Error: &pb.RpcHistorySetVersionResponseError{Code: pb.RpcHistorySetVersionResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcHistorySetVersionRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcHistorySetVersionResponse{Error: &pb.RpcHistorySetVersionResponseError{Code: pb.RpcHistorySetVersionResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.HistorySetVersion(in).Marshal() + return resp +} + func FileOffload(b []byte) (resp []byte) { defer func() { if PanicHandler != nil { @@ -747,143 +1733,183 @@ func FileListOffload(b []byte) (resp []byte) { return resp } -func VersionGet(b []byte) (resp []byte) { +func FileUpload(b []byte) (resp []byte) { defer func() { if PanicHandler != nil { if r := recover(); r != nil { - resp, _ = (&pb.RpcVersionGetResponse{Error: &pb.RpcVersionGetResponseError{Code: pb.RpcVersionGetResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + resp, _ = (&pb.RpcFileUploadResponse{Error: &pb.RpcFileUploadResponseError{Code: pb.RpcFileUploadResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() PanicHandler(r) } } }() - in := new(pb.RpcVersionGetRequest) + in := new(pb.RpcFileUploadRequest) if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcVersionGetResponse{Error: &pb.RpcVersionGetResponseError{Code: pb.RpcVersionGetResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ = (&pb.RpcFileUploadResponse{Error: &pb.RpcFileUploadResponseError{Code: pb.RpcFileUploadResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } - resp, _ = clientCommandsHandler.VersionGet(in).Marshal() + resp, _ = clientCommandsHandler.FileUpload(in).Marshal() return resp } -func LogSend(b []byte) (resp []byte) { +func FileDownload(b []byte) (resp []byte) { defer func() { if PanicHandler != nil { if r := recover(); r != nil { - resp, _ = (&pb.RpcLogSendResponse{Error: &pb.RpcLogSendResponseError{Code: pb.RpcLogSendResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + resp, _ = (&pb.RpcFileDownloadResponse{Error: &pb.RpcFileDownloadResponseError{Code: pb.RpcFileDownloadResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() PanicHandler(r) } } }() - in := new(pb.RpcLogSendRequest) + in := new(pb.RpcFileDownloadRequest) if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcLogSendResponse{Error: &pb.RpcLogSendResponseError{Code: pb.RpcLogSendResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ = (&pb.RpcFileDownloadResponse{Error: &pb.RpcFileDownloadResponseError{Code: pb.RpcFileDownloadResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } - resp, _ = clientCommandsHandler.LogSend(in).Marshal() + resp, _ = clientCommandsHandler.FileDownload(in).Marshal() return resp } -func ConfigGet(b []byte) (resp []byte) { +func FileDrop(b []byte) (resp []byte) { defer func() { if PanicHandler != nil { if r := recover(); r != nil { - resp, _ = (&pb.RpcConfigGetResponse{Error: &pb.RpcConfigGetResponseError{Code: pb.RpcConfigGetResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + resp, _ = (&pb.RpcFileDropResponse{Error: &pb.RpcFileDropResponseError{Code: pb.RpcFileDropResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() PanicHandler(r) } } }() - in := new(pb.RpcConfigGetRequest) + in := new(pb.RpcFileDropRequest) if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcConfigGetResponse{Error: &pb.RpcConfigGetResponseError{Code: pb.RpcConfigGetResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ = (&pb.RpcFileDropResponse{Error: &pb.RpcFileDropResponseError{Code: pb.RpcFileDropResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } - resp, _ = clientCommandsHandler.ConfigGet(in).Marshal() + resp, _ = clientCommandsHandler.FileDrop(in).Marshal() return resp } -func Shutdown(b []byte) (resp []byte) { +func NavigationListObjects(b []byte) (resp []byte) { defer func() { if PanicHandler != nil { if r := recover(); r != nil { - resp, _ = (&pb.RpcShutdownResponse{Error: &pb.RpcShutdownResponseError{Code: pb.RpcShutdownResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + resp, _ = (&pb.RpcNavigationListObjectsResponse{Error: &pb.RpcNavigationListObjectsResponseError{Code: pb.RpcNavigationListObjectsResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() PanicHandler(r) } } }() - in := new(pb.RpcShutdownRequest) + in := new(pb.RpcNavigationListObjectsRequest) if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcShutdownResponse{Error: &pb.RpcShutdownResponseError{Code: pb.RpcShutdownResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ = (&pb.RpcNavigationListObjectsResponse{Error: &pb.RpcNavigationListObjectsResponseError{Code: pb.RpcNavigationListObjectsResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } - resp, _ = clientCommandsHandler.Shutdown(in).Marshal() + resp, _ = clientCommandsHandler.NavigationListObjects(in).Marshal() return resp } -func SetDeviceState(b []byte) (resp []byte) { +func NavigationGetObjectInfoWithLinks(b []byte) (resp []byte) { defer func() { if PanicHandler != nil { if r := recover(); r != nil { - resp, _ = (&pb.RpcDeviceStateResponse{Error: &pb.RpcDeviceStateResponseError{Code: pb.RpcDeviceStateResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + resp, _ = (&pb.RpcNavigationGetObjectInfoWithLinksResponse{Error: &pb.RpcNavigationGetObjectInfoWithLinksResponseError{Code: pb.RpcNavigationGetObjectInfoWithLinksResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() PanicHandler(r) } } }() - in := new(pb.RpcDeviceStateRequest) + in := new(pb.RpcNavigationGetObjectInfoWithLinksRequest) if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcDeviceStateResponse{Error: &pb.RpcDeviceStateResponseError{Code: pb.RpcDeviceStateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ = (&pb.RpcNavigationGetObjectInfoWithLinksResponse{Error: &pb.RpcNavigationGetObjectInfoWithLinksResponseError{Code: pb.RpcNavigationGetObjectInfoWithLinksResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } - resp, _ = clientCommandsHandler.SetDeviceState(in).Marshal() + resp, _ = clientCommandsHandler.NavigationGetObjectInfoWithLinks(in).Marshal() return resp } -func ExternalDropFiles(b []byte) (resp []byte) { +func TemplateCreateFromObject(b []byte) (resp []byte) { defer func() { if PanicHandler != nil { if r := recover(); r != nil { - resp, _ = (&pb.RpcExternalDropFilesResponse{Error: &pb.RpcExternalDropFilesResponseError{Code: pb.RpcExternalDropFilesResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + resp, _ = (&pb.RpcTemplateCreateFromObjectResponse{Error: &pb.RpcTemplateCreateFromObjectResponseError{Code: pb.RpcTemplateCreateFromObjectResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() PanicHandler(r) } } }() - in := new(pb.RpcExternalDropFilesRequest) + in := new(pb.RpcTemplateCreateFromObjectRequest) if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcExternalDropFilesResponse{Error: &pb.RpcExternalDropFilesResponseError{Code: pb.RpcExternalDropFilesResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ = (&pb.RpcTemplateCreateFromObjectResponse{Error: &pb.RpcTemplateCreateFromObjectResponseError{Code: pb.RpcTemplateCreateFromObjectResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } - resp, _ = clientCommandsHandler.ExternalDropFiles(in).Marshal() + resp, _ = clientCommandsHandler.TemplateCreateFromObject(in).Marshal() return resp } -func ExternalDropContent(b []byte) (resp []byte) { +func TemplateCreateFromObjectType(b []byte) (resp []byte) { defer func() { if PanicHandler != nil { if r := recover(); r != nil { - resp, _ = (&pb.RpcExternalDropContentResponse{Error: &pb.RpcExternalDropContentResponseError{Code: pb.RpcExternalDropContentResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + resp, _ = (&pb.RpcTemplateCreateFromObjectTypeResponse{Error: &pb.RpcTemplateCreateFromObjectTypeResponseError{Code: pb.RpcTemplateCreateFromObjectTypeResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() PanicHandler(r) } } }() - in := new(pb.RpcExternalDropContentRequest) + in := new(pb.RpcTemplateCreateFromObjectTypeRequest) if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcExternalDropContentResponse{Error: &pb.RpcExternalDropContentResponseError{Code: pb.RpcExternalDropContentResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ = (&pb.RpcTemplateCreateFromObjectTypeResponse{Error: &pb.RpcTemplateCreateFromObjectTypeResponseError{Code: pb.RpcTemplateCreateFromObjectTypeResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } - resp, _ = clientCommandsHandler.ExternalDropContent(in).Marshal() + resp, _ = clientCommandsHandler.TemplateCreateFromObjectType(in).Marshal() + return resp +} + +func TemplateClone(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcTemplateCloneResponse{Error: &pb.RpcTemplateCloneResponseError{Code: pb.RpcTemplateCloneResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcTemplateCloneRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcTemplateCloneResponse{Error: &pb.RpcTemplateCloneResponseError{Code: pb.RpcTemplateCloneResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.TemplateClone(in).Marshal() + return resp +} + +func TemplateExportAll(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcTemplateExportAllResponse{Error: &pb.RpcTemplateExportAllResponseError{Code: pb.RpcTemplateExportAllResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcTemplateExportAllRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcTemplateExportAllResponse{Error: &pb.RpcTemplateExportAllResponseError{Code: pb.RpcTemplateExportAllResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.TemplateExportAll(in).Marshal() return resp } @@ -907,43 +1933,43 @@ func LinkPreview(b []byte) (resp []byte) { return resp } -func UploadFile(b []byte) (resp []byte) { +func UnsplashSearch(b []byte) (resp []byte) { defer func() { if PanicHandler != nil { if r := recover(); r != nil { - resp, _ = (&pb.RpcUploadFileResponse{Error: &pb.RpcUploadFileResponseError{Code: pb.RpcUploadFileResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + resp, _ = (&pb.RpcUnsplashSearchResponse{Error: &pb.RpcUnsplashSearchResponseError{Code: pb.RpcUnsplashSearchResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() PanicHandler(r) } } }() - in := new(pb.RpcUploadFileRequest) + in := new(pb.RpcUnsplashSearchRequest) if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcUploadFileResponse{Error: &pb.RpcUploadFileResponseError{Code: pb.RpcUploadFileResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ = (&pb.RpcUnsplashSearchResponse{Error: &pb.RpcUnsplashSearchResponseError{Code: pb.RpcUnsplashSearchResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } - resp, _ = clientCommandsHandler.UploadFile(in).Marshal() + resp, _ = clientCommandsHandler.UnsplashSearch(in).Marshal() return resp } -func DownloadFile(b []byte) (resp []byte) { +func UnsplashDownload(b []byte) (resp []byte) { defer func() { if PanicHandler != nil { if r := recover(); r != nil { - resp, _ = (&pb.RpcDownloadFileResponse{Error: &pb.RpcDownloadFileResponseError{Code: pb.RpcDownloadFileResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + resp, _ = (&pb.RpcUnsplashDownloadResponse{Error: &pb.RpcUnsplashDownloadResponseError{Code: pb.RpcUnsplashDownloadResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() PanicHandler(r) } } }() - in := new(pb.RpcDownloadFileRequest) + in := new(pb.RpcUnsplashDownloadRequest) if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcDownloadFileResponse{Error: &pb.RpcDownloadFileResponseError{Code: pb.RpcDownloadFileResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ = (&pb.RpcUnsplashDownloadResponse{Error: &pb.RpcUnsplashDownloadResponseError{Code: pb.RpcUnsplashDownloadResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } - resp, _ = clientCommandsHandler.DownloadFile(in).Marshal() + resp, _ = clientCommandsHandler.UnsplashDownload(in).Marshal() return resp } @@ -987,126 +2013,6 @@ func BlockReplace(b []byte) (resp []byte) { return resp } -func BlockUpdateContent(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockUpdateContentResponse{Error: &pb.RpcBlockUpdateContentResponseError{Code: pb.RpcBlockUpdateContentResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcBlockUpdateContentRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockUpdateContentResponse{Error: &pb.RpcBlockUpdateContentResponseError{Code: pb.RpcBlockUpdateContentResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.BlockUpdateContent(in).Marshal() - return resp -} - -func BlockOpen(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockOpenResponse{Error: &pb.RpcBlockOpenResponseError{Code: pb.RpcBlockOpenResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcBlockOpenRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockOpenResponse{Error: &pb.RpcBlockOpenResponseError{Code: pb.RpcBlockOpenResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.BlockOpen(in).Marshal() - return resp -} - -func BlockShow(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockShowResponse{Error: &pb.RpcBlockShowResponseError{Code: pb.RpcBlockShowResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcBlockShowRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockShowResponse{Error: &pb.RpcBlockShowResponseError{Code: pb.RpcBlockShowResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.BlockShow(in).Marshal() - return resp -} - -func BlockGetPublicWebURL(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockGetPublicWebURLResponse{Error: &pb.RpcBlockGetPublicWebURLResponseError{Code: pb.RpcBlockGetPublicWebURLResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcBlockGetPublicWebURLRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockGetPublicWebURLResponse{Error: &pb.RpcBlockGetPublicWebURLResponseError{Code: pb.RpcBlockGetPublicWebURLResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.BlockGetPublicWebURL(in).Marshal() - return resp -} - -func BlockOpenBreadcrumbs(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockOpenBreadcrumbsResponse{Error: &pb.RpcBlockOpenBreadcrumbsResponseError{Code: pb.RpcBlockOpenBreadcrumbsResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcBlockOpenBreadcrumbsRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockOpenBreadcrumbsResponse{Error: &pb.RpcBlockOpenBreadcrumbsResponseError{Code: pb.RpcBlockOpenBreadcrumbsResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.BlockOpenBreadcrumbs(in).Marshal() - return resp -} - -func BlockSetBreadcrumbs(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockSetBreadcrumbsResponse{Error: &pb.RpcBlockSetBreadcrumbsResponseError{Code: pb.RpcBlockSetBreadcrumbsResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcBlockSetBreadcrumbsRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockSetBreadcrumbsResponse{Error: &pb.RpcBlockSetBreadcrumbsResponseError{Code: pb.RpcBlockSetBreadcrumbsResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.BlockSetBreadcrumbs(in).Marshal() - return resp -} - func BlockCreate(b []byte) (resp []byte) { defer func() { if PanicHandler != nil { @@ -1127,586 +2033,6 @@ func BlockCreate(b []byte) (resp []byte) { return resp } -func BlockCreatePage(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockCreatePageResponse{Error: &pb.RpcBlockCreatePageResponseError{Code: pb.RpcBlockCreatePageResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcBlockCreatePageRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockCreatePageResponse{Error: &pb.RpcBlockCreatePageResponseError{Code: pb.RpcBlockCreatePageResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.BlockCreatePage(in).Marshal() - return resp -} - -func BlockCreateSet(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockCreateSetResponse{Error: &pb.RpcBlockCreateSetResponseError{Code: pb.RpcBlockCreateSetResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcBlockCreateSetRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockCreateSetResponse{Error: &pb.RpcBlockCreateSetResponseError{Code: pb.RpcBlockCreateSetResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.BlockCreateSet(in).Marshal() - return resp -} - -func BlockUnlink(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockUnlinkResponse{Error: &pb.RpcBlockUnlinkResponseError{Code: pb.RpcBlockUnlinkResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcBlockUnlinkRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockUnlinkResponse{Error: &pb.RpcBlockUnlinkResponseError{Code: pb.RpcBlockUnlinkResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.BlockUnlink(in).Marshal() - return resp -} - -func BlockClose(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockCloseResponse{Error: &pb.RpcBlockCloseResponseError{Code: pb.RpcBlockCloseResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcBlockCloseRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockCloseResponse{Error: &pb.RpcBlockCloseResponseError{Code: pb.RpcBlockCloseResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.BlockClose(in).Marshal() - return resp -} - -func BlockDownload(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockDownloadResponse{Error: &pb.RpcBlockDownloadResponseError{Code: pb.RpcBlockDownloadResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcBlockDownloadRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockDownloadResponse{Error: &pb.RpcBlockDownloadResponseError{Code: pb.RpcBlockDownloadResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.BlockDownload(in).Marshal() - return resp -} - -func BlockGetMarks(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockGetMarksResponse{Error: &pb.RpcBlockGetMarksResponseError{Code: pb.RpcBlockGetMarksResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcBlockGetMarksRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockGetMarksResponse{Error: &pb.RpcBlockGetMarksResponseError{Code: pb.RpcBlockGetMarksResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.BlockGetMarks(in).Marshal() - return resp -} - -func BlockUndo(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockUndoResponse{Error: &pb.RpcBlockUndoResponseError{Code: pb.RpcBlockUndoResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcBlockUndoRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockUndoResponse{Error: &pb.RpcBlockUndoResponseError{Code: pb.RpcBlockUndoResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.BlockUndo(in).Marshal() - return resp -} - -func BlockRedo(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockRedoResponse{Error: &pb.RpcBlockRedoResponseError{Code: pb.RpcBlockRedoResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcBlockRedoRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockRedoResponse{Error: &pb.RpcBlockRedoResponseError{Code: pb.RpcBlockRedoResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.BlockRedo(in).Marshal() - return resp -} - -func BlockSetFields(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockSetFieldsResponse{Error: &pb.RpcBlockSetFieldsResponseError{Code: pb.RpcBlockSetFieldsResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcBlockSetFieldsRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockSetFieldsResponse{Error: &pb.RpcBlockSetFieldsResponseError{Code: pb.RpcBlockSetFieldsResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.BlockSetFields(in).Marshal() - return resp -} - -func BlockSetRestrictions(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockSetRestrictionsResponse{Error: &pb.RpcBlockSetRestrictionsResponseError{Code: pb.RpcBlockSetRestrictionsResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcBlockSetRestrictionsRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockSetRestrictionsResponse{Error: &pb.RpcBlockSetRestrictionsResponseError{Code: pb.RpcBlockSetRestrictionsResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.BlockSetRestrictions(in).Marshal() - return resp -} - -func BlockListMove(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockListMoveResponse{Error: &pb.RpcBlockListMoveResponseError{Code: pb.RpcBlockListMoveResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcBlockListMoveRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockListMoveResponse{Error: &pb.RpcBlockListMoveResponseError{Code: pb.RpcBlockListMoveResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.BlockListMove(in).Marshal() - return resp -} - -func BlockListMoveToNewPage(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockListMoveToNewPageResponse{Error: &pb.RpcBlockListMoveToNewPageResponseError{Code: pb.RpcBlockListMoveToNewPageResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcBlockListMoveToNewPageRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockListMoveToNewPageResponse{Error: &pb.RpcBlockListMoveToNewPageResponseError{Code: pb.RpcBlockListMoveToNewPageResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.BlockListMoveToNewPage(in).Marshal() - return resp -} - -func BlockListConvertChildrenToPages(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockListConvertChildrenToPagesResponse{Error: &pb.RpcBlockListConvertChildrenToPagesResponseError{Code: pb.RpcBlockListConvertChildrenToPagesResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcBlockListConvertChildrenToPagesRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockListConvertChildrenToPagesResponse{Error: &pb.RpcBlockListConvertChildrenToPagesResponseError{Code: pb.RpcBlockListConvertChildrenToPagesResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.BlockListConvertChildrenToPages(in).Marshal() - return resp -} - -func BlockListSetFields(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockListSetFieldsResponse{Error: &pb.RpcBlockListSetFieldsResponseError{Code: pb.RpcBlockListSetFieldsResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcBlockListSetFieldsRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockListSetFieldsResponse{Error: &pb.RpcBlockListSetFieldsResponseError{Code: pb.RpcBlockListSetFieldsResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.BlockListSetFields(in).Marshal() - return resp -} - -func BlockListSetTextStyle(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockListSetTextStyleResponse{Error: &pb.RpcBlockListSetTextStyleResponseError{Code: pb.RpcBlockListSetTextStyleResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcBlockListSetTextStyleRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockListSetTextStyleResponse{Error: &pb.RpcBlockListSetTextStyleResponseError{Code: pb.RpcBlockListSetTextStyleResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.BlockListSetTextStyle(in).Marshal() - return resp -} - -func BlockListDuplicate(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockListDuplicateResponse{Error: &pb.RpcBlockListDuplicateResponseError{Code: pb.RpcBlockListDuplicateResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcBlockListDuplicateRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockListDuplicateResponse{Error: &pb.RpcBlockListDuplicateResponseError{Code: pb.RpcBlockListDuplicateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.BlockListDuplicate(in).Marshal() - return resp -} - -func BlockListSetBackgroundColor(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockListSetBackgroundColorResponse{Error: &pb.RpcBlockListSetBackgroundColorResponseError{Code: pb.RpcBlockListSetBackgroundColorResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcBlockListSetBackgroundColorRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockListSetBackgroundColorResponse{Error: &pb.RpcBlockListSetBackgroundColorResponseError{Code: pb.RpcBlockListSetBackgroundColorResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.BlockListSetBackgroundColor(in).Marshal() - return resp -} - -func BlockListSetAlign(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockListSetAlignResponse{Error: &pb.RpcBlockListSetAlignResponseError{Code: pb.RpcBlockListSetAlignResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcBlockListSetAlignRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockListSetAlignResponse{Error: &pb.RpcBlockListSetAlignResponseError{Code: pb.RpcBlockListSetAlignResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.BlockListSetAlign(in).Marshal() - return resp -} - -func BlockListSetDivStyle(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockListSetDivStyleResponse{Error: &pb.RpcBlockListSetDivStyleResponseError{Code: pb.RpcBlockListSetDivStyleResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcBlockListSetDivStyleRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockListSetDivStyleResponse{Error: &pb.RpcBlockListSetDivStyleResponseError{Code: pb.RpcBlockListSetDivStyleResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.BlockListSetDivStyle(in).Marshal() - return resp -} - -func BlockListSetFileStyle(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockListSetFileStyleResponse{Error: &pb.RpcBlockListSetFileStyleResponseError{Code: pb.RpcBlockListSetFileStyleResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcBlockListSetFileStyleRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockListSetFileStyleResponse{Error: &pb.RpcBlockListSetFileStyleResponseError{Code: pb.RpcBlockListSetFileStyleResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.BlockListSetFileStyle(in).Marshal() - return resp -} - -func BlockListTurnInto(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockListTurnIntoResponse{Error: &pb.RpcBlockListTurnIntoResponseError{Code: pb.RpcBlockListTurnIntoResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcBlockListTurnIntoRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockListTurnIntoResponse{Error: &pb.RpcBlockListTurnIntoResponseError{Code: pb.RpcBlockListTurnIntoResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.BlockListTurnInto(in).Marshal() - return resp -} - -func BlockSetLatexText(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockSetLatexTextResponse{Error: &pb.RpcBlockSetLatexTextResponseError{Code: pb.RpcBlockSetLatexTextResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcBlockSetLatexTextRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockSetLatexTextResponse{Error: &pb.RpcBlockSetLatexTextResponseError{Code: pb.RpcBlockSetLatexTextResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.BlockSetLatexText(in).Marshal() - return resp -} - -func BlockSetTextText(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockSetTextTextResponse{Error: &pb.RpcBlockSetTextTextResponseError{Code: pb.RpcBlockSetTextTextResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcBlockSetTextTextRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockSetTextTextResponse{Error: &pb.RpcBlockSetTextTextResponseError{Code: pb.RpcBlockSetTextTextResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.BlockSetTextText(in).Marshal() - return resp -} - -func BlockSetTextColor(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockSetTextColorResponse{Error: &pb.RpcBlockSetTextColorResponseError{Code: pb.RpcBlockSetTextColorResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcBlockSetTextColorRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockSetTextColorResponse{Error: &pb.RpcBlockSetTextColorResponseError{Code: pb.RpcBlockSetTextColorResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.BlockSetTextColor(in).Marshal() - return resp -} - -func BlockListSetTextColor(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockListSetTextColorResponse{Error: &pb.RpcBlockListSetTextColorResponseError{Code: pb.RpcBlockListSetTextColorResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcBlockListSetTextColorRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockListSetTextColorResponse{Error: &pb.RpcBlockListSetTextColorResponseError{Code: pb.RpcBlockListSetTextColorResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.BlockListSetTextColor(in).Marshal() - return resp -} - -func BlockListSetTextMark(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockListSetTextMarkResponse{Error: &pb.RpcBlockListSetTextMarkResponseError{Code: pb.RpcBlockListSetTextMarkResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcBlockListSetTextMarkRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockListSetTextMarkResponse{Error: &pb.RpcBlockListSetTextMarkResponseError{Code: pb.RpcBlockListSetTextMarkResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.BlockListSetTextMark(in).Marshal() - return resp -} - -func BlockSetTextStyle(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockSetTextStyleResponse{Error: &pb.RpcBlockSetTextStyleResponseError{Code: pb.RpcBlockSetTextStyleResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcBlockSetTextStyleRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockSetTextStyleResponse{Error: &pb.RpcBlockSetTextStyleResponseError{Code: pb.RpcBlockSetTextStyleResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.BlockSetTextStyle(in).Marshal() - return resp -} - -func BlockSetTextChecked(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockSetTextCheckedResponse{Error: &pb.RpcBlockSetTextCheckedResponseError{Code: pb.RpcBlockSetTextCheckedResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcBlockSetTextCheckedRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockSetTextCheckedResponse{Error: &pb.RpcBlockSetTextCheckedResponseError{Code: pb.RpcBlockSetTextCheckedResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.BlockSetTextChecked(in).Marshal() - return resp -} - -func BlockSetTextIcon(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockSetTextIconResponse{Error: &pb.RpcBlockSetTextIconResponseError{Code: pb.RpcBlockSetTextIconResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcBlockSetTextIconRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockSetTextIconResponse{Error: &pb.RpcBlockSetTextIconResponseError{Code: pb.RpcBlockSetTextIconResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.BlockSetTextIcon(in).Marshal() - return resp -} - func BlockSplit(b []byte) (resp []byte) { defer func() { if PanicHandler != nil { @@ -1807,6 +2133,26 @@ func BlockCut(b []byte) (resp []byte) { return resp } +func BlockSetFields(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcBlockSetFieldsResponse{Error: &pb.RpcBlockSetFieldsResponseError{Code: pb.RpcBlockSetFieldsResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcBlockSetFieldsRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcBlockSetFieldsResponse{Error: &pb.RpcBlockSetFieldsResponseError{Code: pb.RpcBlockSetFieldsResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.BlockSetFields(in).Marshal() + return resp +} + func BlockExport(b []byte) (resp []byte) { defer func() { if PanicHandler != nil { @@ -1827,183 +2173,403 @@ func BlockExport(b []byte) (resp []byte) { return resp } -func BlockImportMarkdown(b []byte) (resp []byte) { +func BlockListDelete(b []byte) (resp []byte) { defer func() { if PanicHandler != nil { if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockImportMarkdownResponse{Error: &pb.RpcBlockImportMarkdownResponseError{Code: pb.RpcBlockImportMarkdownResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + resp, _ = (&pb.RpcBlockListDeleteResponse{Error: &pb.RpcBlockListDeleteResponseError{Code: pb.RpcBlockListDeleteResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() PanicHandler(r) } } }() - in := new(pb.RpcBlockImportMarkdownRequest) + in := new(pb.RpcBlockListDeleteRequest) if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockImportMarkdownResponse{Error: &pb.RpcBlockImportMarkdownResponseError{Code: pb.RpcBlockImportMarkdownResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ = (&pb.RpcBlockListDeleteResponse{Error: &pb.RpcBlockListDeleteResponseError{Code: pb.RpcBlockListDeleteResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } - resp, _ = clientCommandsHandler.BlockImportMarkdown(in).Marshal() + resp, _ = clientCommandsHandler.BlockListDelete(in).Marshal() return resp } -func BlockSetFileName(b []byte) (resp []byte) { +func BlockListMoveToExistingObject(b []byte) (resp []byte) { defer func() { if PanicHandler != nil { if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockSetFileNameResponse{Error: &pb.RpcBlockSetFileNameResponseError{Code: pb.RpcBlockSetFileNameResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + resp, _ = (&pb.RpcBlockListMoveToExistingObjectResponse{Error: &pb.RpcBlockListMoveToExistingObjectResponseError{Code: pb.RpcBlockListMoveToExistingObjectResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() PanicHandler(r) } } }() - in := new(pb.RpcBlockSetFileNameRequest) + in := new(pb.RpcBlockListMoveToExistingObjectRequest) if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockSetFileNameResponse{Error: &pb.RpcBlockSetFileNameResponseError{Code: pb.RpcBlockSetFileNameResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ = (&pb.RpcBlockListMoveToExistingObjectResponse{Error: &pb.RpcBlockListMoveToExistingObjectResponseError{Code: pb.RpcBlockListMoveToExistingObjectResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } - resp, _ = clientCommandsHandler.BlockSetFileName(in).Marshal() + resp, _ = clientCommandsHandler.BlockListMoveToExistingObject(in).Marshal() return resp } -func BlockSetImageName(b []byte) (resp []byte) { +func BlockListMoveToNewObject(b []byte) (resp []byte) { defer func() { if PanicHandler != nil { if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockSetImageNameResponse{Error: &pb.RpcBlockSetImageNameResponseError{Code: pb.RpcBlockSetImageNameResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + resp, _ = (&pb.RpcBlockListMoveToNewObjectResponse{Error: &pb.RpcBlockListMoveToNewObjectResponseError{Code: pb.RpcBlockListMoveToNewObjectResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() PanicHandler(r) } } }() - in := new(pb.RpcBlockSetImageNameRequest) + in := new(pb.RpcBlockListMoveToNewObjectRequest) if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockSetImageNameResponse{Error: &pb.RpcBlockSetImageNameResponseError{Code: pb.RpcBlockSetImageNameResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ = (&pb.RpcBlockListMoveToNewObjectResponse{Error: &pb.RpcBlockListMoveToNewObjectResponseError{Code: pb.RpcBlockListMoveToNewObjectResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } - resp, _ = clientCommandsHandler.BlockSetImageName(in).Marshal() + resp, _ = clientCommandsHandler.BlockListMoveToNewObject(in).Marshal() return resp } -func BlockSetImageWidth(b []byte) (resp []byte) { +func BlockListConvertToObjects(b []byte) (resp []byte) { defer func() { if PanicHandler != nil { if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockSetImageWidthResponse{Error: &pb.RpcBlockSetImageWidthResponseError{Code: pb.RpcBlockSetImageWidthResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + resp, _ = (&pb.RpcBlockListConvertToObjectsResponse{Error: &pb.RpcBlockListConvertToObjectsResponseError{Code: pb.RpcBlockListConvertToObjectsResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() PanicHandler(r) } } }() - in := new(pb.RpcBlockSetImageWidthRequest) + in := new(pb.RpcBlockListConvertToObjectsRequest) if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockSetImageWidthResponse{Error: &pb.RpcBlockSetImageWidthResponseError{Code: pb.RpcBlockSetImageWidthResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ = (&pb.RpcBlockListConvertToObjectsResponse{Error: &pb.RpcBlockListConvertToObjectsResponseError{Code: pb.RpcBlockListConvertToObjectsResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } - resp, _ = clientCommandsHandler.BlockSetImageWidth(in).Marshal() + resp, _ = clientCommandsHandler.BlockListConvertToObjects(in).Marshal() return resp } -func BlockSetVideoName(b []byte) (resp []byte) { +func BlockListSetFields(b []byte) (resp []byte) { defer func() { if PanicHandler != nil { if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockSetVideoNameResponse{Error: &pb.RpcBlockSetVideoNameResponseError{Code: pb.RpcBlockSetVideoNameResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + resp, _ = (&pb.RpcBlockListSetFieldsResponse{Error: &pb.RpcBlockListSetFieldsResponseError{Code: pb.RpcBlockListSetFieldsResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() PanicHandler(r) } } }() - in := new(pb.RpcBlockSetVideoNameRequest) + in := new(pb.RpcBlockListSetFieldsRequest) if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockSetVideoNameResponse{Error: &pb.RpcBlockSetVideoNameResponseError{Code: pb.RpcBlockSetVideoNameResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ = (&pb.RpcBlockListSetFieldsResponse{Error: &pb.RpcBlockListSetFieldsResponseError{Code: pb.RpcBlockListSetFieldsResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } - resp, _ = clientCommandsHandler.BlockSetVideoName(in).Marshal() + resp, _ = clientCommandsHandler.BlockListSetFields(in).Marshal() return resp } -func BlockSetVideoWidth(b []byte) (resp []byte) { +func BlockListDuplicate(b []byte) (resp []byte) { defer func() { if PanicHandler != nil { if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockSetVideoWidthResponse{Error: &pb.RpcBlockSetVideoWidthResponseError{Code: pb.RpcBlockSetVideoWidthResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + resp, _ = (&pb.RpcBlockListDuplicateResponse{Error: &pb.RpcBlockListDuplicateResponseError{Code: pb.RpcBlockListDuplicateResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() PanicHandler(r) } } }() - in := new(pb.RpcBlockSetVideoWidthRequest) + in := new(pb.RpcBlockListDuplicateRequest) if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockSetVideoWidthResponse{Error: &pb.RpcBlockSetVideoWidthResponseError{Code: pb.RpcBlockSetVideoWidthResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ = (&pb.RpcBlockListDuplicateResponse{Error: &pb.RpcBlockListDuplicateResponseError{Code: pb.RpcBlockListDuplicateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } - resp, _ = clientCommandsHandler.BlockSetVideoWidth(in).Marshal() + resp, _ = clientCommandsHandler.BlockListDuplicate(in).Marshal() return resp } -func BlockSetLinkTargetBlockId(b []byte) (resp []byte) { +func BlockListSetBackgroundColor(b []byte) (resp []byte) { defer func() { if PanicHandler != nil { if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockSetLinkTargetBlockIdResponse{Error: &pb.RpcBlockSetLinkTargetBlockIdResponseError{Code: pb.RpcBlockSetLinkTargetBlockIdResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + resp, _ = (&pb.RpcBlockListSetBackgroundColorResponse{Error: &pb.RpcBlockListSetBackgroundColorResponseError{Code: pb.RpcBlockListSetBackgroundColorResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() PanicHandler(r) } } }() - in := new(pb.RpcBlockSetLinkTargetBlockIdRequest) + in := new(pb.RpcBlockListSetBackgroundColorRequest) if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockSetLinkTargetBlockIdResponse{Error: &pb.RpcBlockSetLinkTargetBlockIdResponseError{Code: pb.RpcBlockSetLinkTargetBlockIdResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ = (&pb.RpcBlockListSetBackgroundColorResponse{Error: &pb.RpcBlockListSetBackgroundColorResponseError{Code: pb.RpcBlockListSetBackgroundColorResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } - resp, _ = clientCommandsHandler.BlockSetLinkTargetBlockId(in).Marshal() + resp, _ = clientCommandsHandler.BlockListSetBackgroundColor(in).Marshal() return resp } -func BlockBookmarkFetch(b []byte) (resp []byte) { +func BlockListSetAlign(b []byte) (resp []byte) { defer func() { if PanicHandler != nil { if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockBookmarkFetchResponse{Error: &pb.RpcBlockBookmarkFetchResponseError{Code: pb.RpcBlockBookmarkFetchResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + resp, _ = (&pb.RpcBlockListSetAlignResponse{Error: &pb.RpcBlockListSetAlignResponseError{Code: pb.RpcBlockListSetAlignResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() PanicHandler(r) } } }() - in := new(pb.RpcBlockBookmarkFetchRequest) + in := new(pb.RpcBlockListSetAlignRequest) if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockBookmarkFetchResponse{Error: &pb.RpcBlockBookmarkFetchResponseError{Code: pb.RpcBlockBookmarkFetchResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ = (&pb.RpcBlockListSetAlignResponse{Error: &pb.RpcBlockListSetAlignResponseError{Code: pb.RpcBlockListSetAlignResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } - resp, _ = clientCommandsHandler.BlockBookmarkFetch(in).Marshal() + resp, _ = clientCommandsHandler.BlockListSetAlign(in).Marshal() return resp } -func BlockBookmarkCreateAndFetch(b []byte) (resp []byte) { +func BlockListTurnInto(b []byte) (resp []byte) { defer func() { if PanicHandler != nil { if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockBookmarkCreateAndFetchResponse{Error: &pb.RpcBlockBookmarkCreateAndFetchResponseError{Code: pb.RpcBlockBookmarkCreateAndFetchResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + resp, _ = (&pb.RpcBlockListTurnIntoResponse{Error: &pb.RpcBlockListTurnIntoResponseError{Code: pb.RpcBlockListTurnIntoResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() PanicHandler(r) } } }() - in := new(pb.RpcBlockBookmarkCreateAndFetchRequest) + in := new(pb.RpcBlockListTurnIntoRequest) if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockBookmarkCreateAndFetchResponse{Error: &pb.RpcBlockBookmarkCreateAndFetchResponseError{Code: pb.RpcBlockBookmarkCreateAndFetchResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ = (&pb.RpcBlockListTurnIntoResponse{Error: &pb.RpcBlockListTurnIntoResponseError{Code: pb.RpcBlockListTurnIntoResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } - resp, _ = clientCommandsHandler.BlockBookmarkCreateAndFetch(in).Marshal() + resp, _ = clientCommandsHandler.BlockListTurnInto(in).Marshal() + return resp +} + +func BlockTextSetText(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcBlockTextSetTextResponse{Error: &pb.RpcBlockTextSetTextResponseError{Code: pb.RpcBlockTextSetTextResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcBlockTextSetTextRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcBlockTextSetTextResponse{Error: &pb.RpcBlockTextSetTextResponseError{Code: pb.RpcBlockTextSetTextResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.BlockTextSetText(in).Marshal() + return resp +} + +func BlockTextSetColor(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcBlockTextSetColorResponse{Error: &pb.RpcBlockTextSetColorResponseError{Code: pb.RpcBlockTextSetColorResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcBlockTextSetColorRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcBlockTextSetColorResponse{Error: &pb.RpcBlockTextSetColorResponseError{Code: pb.RpcBlockTextSetColorResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.BlockTextSetColor(in).Marshal() + return resp +} + +func BlockTextSetStyle(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcBlockTextSetStyleResponse{Error: &pb.RpcBlockTextSetStyleResponseError{Code: pb.RpcBlockTextSetStyleResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcBlockTextSetStyleRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcBlockTextSetStyleResponse{Error: &pb.RpcBlockTextSetStyleResponseError{Code: pb.RpcBlockTextSetStyleResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.BlockTextSetStyle(in).Marshal() + return resp +} + +func BlockTextSetChecked(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcBlockTextSetCheckedResponse{Error: &pb.RpcBlockTextSetCheckedResponseError{Code: pb.RpcBlockTextSetCheckedResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcBlockTextSetCheckedRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcBlockTextSetCheckedResponse{Error: &pb.RpcBlockTextSetCheckedResponseError{Code: pb.RpcBlockTextSetCheckedResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.BlockTextSetChecked(in).Marshal() + return resp +} + +func BlockTextSetIcon(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcBlockTextSetIconResponse{Error: &pb.RpcBlockTextSetIconResponseError{Code: pb.RpcBlockTextSetIconResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcBlockTextSetIconRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcBlockTextSetIconResponse{Error: &pb.RpcBlockTextSetIconResponseError{Code: pb.RpcBlockTextSetIconResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.BlockTextSetIcon(in).Marshal() + return resp +} + +func BlockTextListSetColor(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcBlockTextListSetColorResponse{Error: &pb.RpcBlockTextListSetColorResponseError{Code: pb.RpcBlockTextListSetColorResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcBlockTextListSetColorRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcBlockTextListSetColorResponse{Error: &pb.RpcBlockTextListSetColorResponseError{Code: pb.RpcBlockTextListSetColorResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.BlockTextListSetColor(in).Marshal() + return resp +} + +func BlockTextListSetMark(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcBlockTextListSetMarkResponse{Error: &pb.RpcBlockTextListSetMarkResponseError{Code: pb.RpcBlockTextListSetMarkResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcBlockTextListSetMarkRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcBlockTextListSetMarkResponse{Error: &pb.RpcBlockTextListSetMarkResponseError{Code: pb.RpcBlockTextListSetMarkResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.BlockTextListSetMark(in).Marshal() + return resp +} + +func BlockTextListSetStyle(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcBlockTextListSetStyleResponse{Error: &pb.RpcBlockTextListSetStyleResponseError{Code: pb.RpcBlockTextListSetStyleResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcBlockTextListSetStyleRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcBlockTextListSetStyleResponse{Error: &pb.RpcBlockTextListSetStyleResponseError{Code: pb.RpcBlockTextListSetStyleResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.BlockTextListSetStyle(in).Marshal() + return resp +} + +func BlockFileSetName(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcBlockFileSetNameResponse{Error: &pb.RpcBlockFileSetNameResponseError{Code: pb.RpcBlockFileSetNameResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcBlockFileSetNameRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcBlockFileSetNameResponse{Error: &pb.RpcBlockFileSetNameResponseError{Code: pb.RpcBlockFileSetNameResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.BlockFileSetName(in).Marshal() + return resp +} + +func BlockImageSetName(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcBlockImageSetNameResponse{Error: &pb.RpcBlockImageSetNameResponseError{Code: pb.RpcBlockImageSetNameResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcBlockImageSetNameRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcBlockImageSetNameResponse{Error: &pb.RpcBlockImageSetNameResponseError{Code: pb.RpcBlockImageSetNameResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.BlockImageSetName(in).Marshal() + return resp +} + +func BlockVideoSetName(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcBlockVideoSetNameResponse{Error: &pb.RpcBlockVideoSetNameResponseError{Code: pb.RpcBlockVideoSetNameResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcBlockVideoSetNameRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcBlockVideoSetNameResponse{Error: &pb.RpcBlockVideoSetNameResponseError{Code: pb.RpcBlockVideoSetNameResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.BlockVideoSetName(in).Marshal() return resp } @@ -2027,43 +2593,23 @@ func BlockFileCreateAndUpload(b []byte) (resp []byte) { return resp } -func BlockRelationSetKey(b []byte) (resp []byte) { +func BlockFileListSetStyle(b []byte) (resp []byte) { defer func() { if PanicHandler != nil { if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockRelationSetKeyResponse{Error: &pb.RpcBlockRelationSetKeyResponseError{Code: pb.RpcBlockRelationSetKeyResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + resp, _ = (&pb.RpcBlockFileListSetStyleResponse{Error: &pb.RpcBlockFileListSetStyleResponseError{Code: pb.RpcBlockFileListSetStyleResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() PanicHandler(r) } } }() - in := new(pb.RpcBlockRelationSetKeyRequest) + in := new(pb.RpcBlockFileListSetStyleRequest) if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockRelationSetKeyResponse{Error: &pb.RpcBlockRelationSetKeyResponseError{Code: pb.RpcBlockRelationSetKeyResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ = (&pb.RpcBlockFileListSetStyleResponse{Error: &pb.RpcBlockFileListSetStyleResponseError{Code: pb.RpcBlockFileListSetStyleResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } - resp, _ = clientCommandsHandler.BlockRelationSetKey(in).Marshal() - return resp -} - -func BlockRelationAdd(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockRelationAddResponse{Error: &pb.RpcBlockRelationAddResponseError{Code: pb.RpcBlockRelationAddResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcBlockRelationAddRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockRelationAddResponse{Error: &pb.RpcBlockRelationAddResponseError{Code: pb.RpcBlockRelationAddResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.BlockRelationAdd(in).Marshal() + resp, _ = clientCommandsHandler.BlockFileListSetStyle(in).Marshal() return resp } @@ -2387,723 +2933,163 @@ func BlockDataviewRecordRelationOptionDelete(b []byte) (resp []byte) { return resp } -func BlockObjectTypeSet(b []byte) (resp []byte) { +func BlockLinkCreateWithObject(b []byte) (resp []byte) { defer func() { if PanicHandler != nil { if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockObjectTypeSetResponse{Error: &pb.RpcBlockObjectTypeSetResponseError{Code: pb.RpcBlockObjectTypeSetResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + resp, _ = (&pb.RpcBlockLinkCreateWithObjectResponse{Error: &pb.RpcBlockLinkCreateWithObjectResponseError{Code: pb.RpcBlockLinkCreateWithObjectResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() PanicHandler(r) } } }() - in := new(pb.RpcBlockObjectTypeSetRequest) + in := new(pb.RpcBlockLinkCreateWithObjectRequest) if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockObjectTypeSetResponse{Error: &pb.RpcBlockObjectTypeSetResponseError{Code: pb.RpcBlockObjectTypeSetResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ = (&pb.RpcBlockLinkCreateWithObjectResponse{Error: &pb.RpcBlockLinkCreateWithObjectResponseError{Code: pb.RpcBlockLinkCreateWithObjectResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } - resp, _ = clientCommandsHandler.BlockObjectTypeSet(in).Marshal() + resp, _ = clientCommandsHandler.BlockLinkCreateWithObject(in).Marshal() return resp } -func NavigationListObjects(b []byte) (resp []byte) { +func BlockLinkListSetAppearance(b []byte) (resp []byte) { defer func() { if PanicHandler != nil { if r := recover(); r != nil { - resp, _ = (&pb.RpcNavigationListObjectsResponse{Error: &pb.RpcNavigationListObjectsResponseError{Code: pb.RpcNavigationListObjectsResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + resp, _ = (&pb.RpcBlockLinkListSetAppearanceResponse{Error: &pb.RpcBlockLinkListSetAppearanceResponseError{Code: pb.RpcBlockLinkListSetAppearanceResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() PanicHandler(r) } } }() - in := new(pb.RpcNavigationListObjectsRequest) + in := new(pb.RpcBlockLinkListSetAppearanceRequest) if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcNavigationListObjectsResponse{Error: &pb.RpcNavigationListObjectsResponseError{Code: pb.RpcNavigationListObjectsResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ = (&pb.RpcBlockLinkListSetAppearanceResponse{Error: &pb.RpcBlockLinkListSetAppearanceResponseError{Code: pb.RpcBlockLinkListSetAppearanceResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } - resp, _ = clientCommandsHandler.NavigationListObjects(in).Marshal() + resp, _ = clientCommandsHandler.BlockLinkListSetAppearance(in).Marshal() return resp } -func NavigationGetObjectInfoWithLinks(b []byte) (resp []byte) { +func BlockBookmarkFetch(b []byte) (resp []byte) { defer func() { if PanicHandler != nil { if r := recover(); r != nil { - resp, _ = (&pb.RpcNavigationGetObjectInfoWithLinksResponse{Error: &pb.RpcNavigationGetObjectInfoWithLinksResponseError{Code: pb.RpcNavigationGetObjectInfoWithLinksResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + resp, _ = (&pb.RpcBlockBookmarkFetchResponse{Error: &pb.RpcBlockBookmarkFetchResponseError{Code: pb.RpcBlockBookmarkFetchResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() PanicHandler(r) } } }() - in := new(pb.RpcNavigationGetObjectInfoWithLinksRequest) + in := new(pb.RpcBlockBookmarkFetchRequest) if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcNavigationGetObjectInfoWithLinksResponse{Error: &pb.RpcNavigationGetObjectInfoWithLinksResponseError{Code: pb.RpcNavigationGetObjectInfoWithLinksResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ = (&pb.RpcBlockBookmarkFetchResponse{Error: &pb.RpcBlockBookmarkFetchResponseError{Code: pb.RpcBlockBookmarkFetchResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } - resp, _ = clientCommandsHandler.NavigationGetObjectInfoWithLinks(in).Marshal() + resp, _ = clientCommandsHandler.BlockBookmarkFetch(in).Marshal() return resp } -func ObjectGraph(b []byte) (resp []byte) { +func BlockBookmarkCreateAndFetch(b []byte) (resp []byte) { defer func() { if PanicHandler != nil { if r := recover(); r != nil { - resp, _ = (&pb.RpcObjectGraphResponse{Error: &pb.RpcObjectGraphResponseError{Code: pb.RpcObjectGraphResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + resp, _ = (&pb.RpcBlockBookmarkCreateAndFetchResponse{Error: &pb.RpcBlockBookmarkCreateAndFetchResponseError{Code: pb.RpcBlockBookmarkCreateAndFetchResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() PanicHandler(r) } } }() - in := new(pb.RpcObjectGraphRequest) + in := new(pb.RpcBlockBookmarkCreateAndFetchRequest) if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcObjectGraphResponse{Error: &pb.RpcObjectGraphResponseError{Code: pb.RpcObjectGraphResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ = (&pb.RpcBlockBookmarkCreateAndFetchResponse{Error: &pb.RpcBlockBookmarkCreateAndFetchResponseError{Code: pb.RpcBlockBookmarkCreateAndFetchResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } - resp, _ = clientCommandsHandler.ObjectGraph(in).Marshal() + resp, _ = clientCommandsHandler.BlockBookmarkCreateAndFetch(in).Marshal() return resp } -func ObjectSearch(b []byte) (resp []byte) { +func BlockRelationSetKey(b []byte) (resp []byte) { defer func() { if PanicHandler != nil { if r := recover(); r != nil { - resp, _ = (&pb.RpcObjectSearchResponse{Error: &pb.RpcObjectSearchResponseError{Code: pb.RpcObjectSearchResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + resp, _ = (&pb.RpcBlockRelationSetKeyResponse{Error: &pb.RpcBlockRelationSetKeyResponseError{Code: pb.RpcBlockRelationSetKeyResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() PanicHandler(r) } } }() - in := new(pb.RpcObjectSearchRequest) + in := new(pb.RpcBlockRelationSetKeyRequest) if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcObjectSearchResponse{Error: &pb.RpcObjectSearchResponseError{Code: pb.RpcObjectSearchResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ = (&pb.RpcBlockRelationSetKeyResponse{Error: &pb.RpcBlockRelationSetKeyResponseError{Code: pb.RpcBlockRelationSetKeyResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } - resp, _ = clientCommandsHandler.ObjectSearch(in).Marshal() + resp, _ = clientCommandsHandler.BlockRelationSetKey(in).Marshal() return resp } -func ObjectSearchSubscribe(b []byte) (resp []byte) { +func BlockRelationAdd(b []byte) (resp []byte) { defer func() { if PanicHandler != nil { if r := recover(); r != nil { - resp, _ = (&pb.RpcObjectSearchSubscribeResponse{Error: &pb.RpcObjectSearchSubscribeResponseError{Code: pb.RpcObjectSearchSubscribeResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + resp, _ = (&pb.RpcBlockRelationAddResponse{Error: &pb.RpcBlockRelationAddResponseError{Code: pb.RpcBlockRelationAddResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() PanicHandler(r) } } }() - in := new(pb.RpcObjectSearchSubscribeRequest) + in := new(pb.RpcBlockRelationAddRequest) if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcObjectSearchSubscribeResponse{Error: &pb.RpcObjectSearchSubscribeResponseError{Code: pb.RpcObjectSearchSubscribeResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ = (&pb.RpcBlockRelationAddResponse{Error: &pb.RpcBlockRelationAddResponseError{Code: pb.RpcBlockRelationAddResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } - resp, _ = clientCommandsHandler.ObjectSearchSubscribe(in).Marshal() + resp, _ = clientCommandsHandler.BlockRelationAdd(in).Marshal() return resp } -func ObjectIdsSubscribe(b []byte) (resp []byte) { +func BlockDivListSetStyle(b []byte) (resp []byte) { defer func() { if PanicHandler != nil { if r := recover(); r != nil { - resp, _ = (&pb.RpcObjectIdsSubscribeResponse{Error: &pb.RpcObjectIdsSubscribeResponseError{Code: pb.RpcObjectIdsSubscribeResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + resp, _ = (&pb.RpcBlockDivListSetStyleResponse{Error: &pb.RpcBlockDivListSetStyleResponseError{Code: pb.RpcBlockDivListSetStyleResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() PanicHandler(r) } } }() - in := new(pb.RpcObjectIdsSubscribeRequest) + in := new(pb.RpcBlockDivListSetStyleRequest) if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcObjectIdsSubscribeResponse{Error: &pb.RpcObjectIdsSubscribeResponseError{Code: pb.RpcObjectIdsSubscribeResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ = (&pb.RpcBlockDivListSetStyleResponse{Error: &pb.RpcBlockDivListSetStyleResponseError{Code: pb.RpcBlockDivListSetStyleResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } - resp, _ = clientCommandsHandler.ObjectIdsSubscribe(in).Marshal() + resp, _ = clientCommandsHandler.BlockDivListSetStyle(in).Marshal() return resp } -func ObjectSearchUnsubscribe(b []byte) (resp []byte) { +func BlockLatexSetText(b []byte) (resp []byte) { defer func() { if PanicHandler != nil { if r := recover(); r != nil { - resp, _ = (&pb.RpcObjectSearchUnsubscribeResponse{Error: &pb.RpcObjectSearchUnsubscribeResponseError{Code: pb.RpcObjectSearchUnsubscribeResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + resp, _ = (&pb.RpcBlockLatexSetTextResponse{Error: &pb.RpcBlockLatexSetTextResponseError{Code: pb.RpcBlockLatexSetTextResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() PanicHandler(r) } } }() - in := new(pb.RpcObjectSearchUnsubscribeRequest) + in := new(pb.RpcBlockLatexSetTextRequest) if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcObjectSearchUnsubscribeResponse{Error: &pb.RpcObjectSearchUnsubscribeResponseError{Code: pb.RpcObjectSearchUnsubscribeResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + resp, _ = (&pb.RpcBlockLatexSetTextResponse{Error: &pb.RpcBlockLatexSetTextResponseError{Code: pb.RpcBlockLatexSetTextResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() return resp } - resp, _ = clientCommandsHandler.ObjectSearchUnsubscribe(in).Marshal() - return resp -} - -func ObjectRelationAdd(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcObjectRelationAddResponse{Error: &pb.RpcObjectRelationAddResponseError{Code: pb.RpcObjectRelationAddResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcObjectRelationAddRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcObjectRelationAddResponse{Error: &pb.RpcObjectRelationAddResponseError{Code: pb.RpcObjectRelationAddResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.ObjectRelationAdd(in).Marshal() - return resp -} - -func ObjectRelationUpdate(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcObjectRelationUpdateResponse{Error: &pb.RpcObjectRelationUpdateResponseError{Code: pb.RpcObjectRelationUpdateResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcObjectRelationUpdateRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcObjectRelationUpdateResponse{Error: &pb.RpcObjectRelationUpdateResponseError{Code: pb.RpcObjectRelationUpdateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.ObjectRelationUpdate(in).Marshal() - return resp -} - -func ObjectRelationDelete(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcObjectRelationDeleteResponse{Error: &pb.RpcObjectRelationDeleteResponseError{Code: pb.RpcObjectRelationDeleteResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcObjectRelationDeleteRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcObjectRelationDeleteResponse{Error: &pb.RpcObjectRelationDeleteResponseError{Code: pb.RpcObjectRelationDeleteResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.ObjectRelationDelete(in).Marshal() - return resp -} - -func ObjectRelationOptionAdd(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcObjectRelationOptionAddResponse{Error: &pb.RpcObjectRelationOptionAddResponseError{Code: pb.RpcObjectRelationOptionAddResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcObjectRelationOptionAddRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcObjectRelationOptionAddResponse{Error: &pb.RpcObjectRelationOptionAddResponseError{Code: pb.RpcObjectRelationOptionAddResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.ObjectRelationOptionAdd(in).Marshal() - return resp -} - -func ObjectRelationOptionUpdate(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcObjectRelationOptionUpdateResponse{Error: &pb.RpcObjectRelationOptionUpdateResponseError{Code: pb.RpcObjectRelationOptionUpdateResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcObjectRelationOptionUpdateRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcObjectRelationOptionUpdateResponse{Error: &pb.RpcObjectRelationOptionUpdateResponseError{Code: pb.RpcObjectRelationOptionUpdateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.ObjectRelationOptionUpdate(in).Marshal() - return resp -} - -func ObjectRelationOptionDelete(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcObjectRelationOptionDeleteResponse{Error: &pb.RpcObjectRelationOptionDeleteResponseError{Code: pb.RpcObjectRelationOptionDeleteResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcObjectRelationOptionDeleteRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcObjectRelationOptionDeleteResponse{Error: &pb.RpcObjectRelationOptionDeleteResponseError{Code: pb.RpcObjectRelationOptionDeleteResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.ObjectRelationOptionDelete(in).Marshal() - return resp -} - -func ObjectRelationListAvailable(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcObjectRelationListAvailableResponse{Error: &pb.RpcObjectRelationListAvailableResponseError{Code: pb.RpcObjectRelationListAvailableResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcObjectRelationListAvailableRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcObjectRelationListAvailableResponse{Error: &pb.RpcObjectRelationListAvailableResponseError{Code: pb.RpcObjectRelationListAvailableResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.ObjectRelationListAvailable(in).Marshal() - return resp -} - -func ObjectSetLayout(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcObjectSetLayoutResponse{Error: &pb.RpcObjectSetLayoutResponseError{Code: pb.RpcObjectSetLayoutResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcObjectSetLayoutRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcObjectSetLayoutResponse{Error: &pb.RpcObjectSetLayoutResponseError{Code: pb.RpcObjectSetLayoutResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.ObjectSetLayout(in).Marshal() - return resp -} - -func ObjectFeaturedRelationAdd(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcObjectFeaturedRelationAddResponse{Error: &pb.RpcObjectFeaturedRelationAddResponseError{Code: pb.RpcObjectFeaturedRelationAddResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcObjectFeaturedRelationAddRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcObjectFeaturedRelationAddResponse{Error: &pb.RpcObjectFeaturedRelationAddResponseError{Code: pb.RpcObjectFeaturedRelationAddResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.ObjectFeaturedRelationAdd(in).Marshal() - return resp -} - -func ObjectFeaturedRelationRemove(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcObjectFeaturedRelationRemoveResponse{Error: &pb.RpcObjectFeaturedRelationRemoveResponseError{Code: pb.RpcObjectFeaturedRelationRemoveResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcObjectFeaturedRelationRemoveRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcObjectFeaturedRelationRemoveResponse{Error: &pb.RpcObjectFeaturedRelationRemoveResponseError{Code: pb.RpcObjectFeaturedRelationRemoveResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.ObjectFeaturedRelationRemove(in).Marshal() - return resp -} - -func ObjectSetIsFavorite(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcObjectSetIsFavoriteResponse{Error: &pb.RpcObjectSetIsFavoriteResponseError{Code: pb.RpcObjectSetIsFavoriteResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcObjectSetIsFavoriteRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcObjectSetIsFavoriteResponse{Error: &pb.RpcObjectSetIsFavoriteResponseError{Code: pb.RpcObjectSetIsFavoriteResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.ObjectSetIsFavorite(in).Marshal() - return resp -} - -func ObjectSetIsArchived(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcObjectSetIsArchivedResponse{Error: &pb.RpcObjectSetIsArchivedResponseError{Code: pb.RpcObjectSetIsArchivedResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcObjectSetIsArchivedRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcObjectSetIsArchivedResponse{Error: &pb.RpcObjectSetIsArchivedResponseError{Code: pb.RpcObjectSetIsArchivedResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.ObjectSetIsArchived(in).Marshal() - return resp -} - -func ObjectToSet(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcObjectToSetResponse{Error: &pb.RpcObjectToSetResponseError{Code: pb.RpcObjectToSetResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcObjectToSetRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcObjectToSetResponse{Error: &pb.RpcObjectToSetResponseError{Code: pb.RpcObjectToSetResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.ObjectToSet(in).Marshal() - return resp -} - -func ObjectListDuplicate(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcObjectListDuplicateResponse{Error: &pb.RpcObjectListDuplicateResponseError{Code: pb.RpcObjectListDuplicateResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcObjectListDuplicateRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcObjectListDuplicateResponse{Error: &pb.RpcObjectListDuplicateResponseError{Code: pb.RpcObjectListDuplicateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.ObjectListDuplicate(in).Marshal() - return resp -} - -func ObjectListDelete(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcObjectListDeleteResponse{Error: &pb.RpcObjectListDeleteResponseError{Code: pb.RpcObjectListDeleteResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcObjectListDeleteRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcObjectListDeleteResponse{Error: &pb.RpcObjectListDeleteResponseError{Code: pb.RpcObjectListDeleteResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.ObjectListDelete(in).Marshal() - return resp -} - -func ObjectListSetIsArchived(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcObjectListSetIsArchivedResponse{Error: &pb.RpcObjectListSetIsArchivedResponseError{Code: pb.RpcObjectListSetIsArchivedResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcObjectListSetIsArchivedRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcObjectListSetIsArchivedResponse{Error: &pb.RpcObjectListSetIsArchivedResponseError{Code: pb.RpcObjectListSetIsArchivedResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.ObjectListSetIsArchived(in).Marshal() - return resp -} - -func ObjectListSetIsFavorite(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcObjectListSetIsFavoriteResponse{Error: &pb.RpcObjectListSetIsFavoriteResponseError{Code: pb.RpcObjectListSetIsFavoriteResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcObjectListSetIsFavoriteRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcObjectListSetIsFavoriteResponse{Error: &pb.RpcObjectListSetIsFavoriteResponseError{Code: pb.RpcObjectListSetIsFavoriteResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.ObjectListSetIsFavorite(in).Marshal() - return resp -} - -func BlockSetDetails(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcBlockSetDetailsResponse{Error: &pb.RpcBlockSetDetailsResponseError{Code: pb.RpcBlockSetDetailsResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcBlockSetDetailsRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcBlockSetDetailsResponse{Error: &pb.RpcBlockSetDetailsResponseError{Code: pb.RpcBlockSetDetailsResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.BlockSetDetails(in).Marshal() - return resp -} - -func PageCreate(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcPageCreateResponse{Error: &pb.RpcPageCreateResponseError{Code: pb.RpcPageCreateResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcPageCreateRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcPageCreateResponse{Error: &pb.RpcPageCreateResponseError{Code: pb.RpcPageCreateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.PageCreate(in).Marshal() - return resp -} - -func SetCreate(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcSetCreateResponse{Error: &pb.RpcSetCreateResponseError{Code: pb.RpcSetCreateResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcSetCreateRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcSetCreateResponse{Error: &pb.RpcSetCreateResponseError{Code: pb.RpcSetCreateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.SetCreate(in).Marshal() - return resp -} - -func MetricsSetParameters(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcMetricsSetParametersResponse{Error: &pb.RpcMetricsSetParametersResponseError{Code: pb.RpcMetricsSetParametersResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcMetricsSetParametersRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcMetricsSetParametersResponse{Error: &pb.RpcMetricsSetParametersResponseError{Code: pb.RpcMetricsSetParametersResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.MetricsSetParameters(in).Marshal() - return resp -} - -func ObjectTypeCreate(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcObjectTypeCreateResponse{Error: &pb.RpcObjectTypeCreateResponseError{Code: pb.RpcObjectTypeCreateResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcObjectTypeCreateRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcObjectTypeCreateResponse{Error: &pb.RpcObjectTypeCreateResponseError{Code: pb.RpcObjectTypeCreateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.ObjectTypeCreate(in).Marshal() - return resp -} - -func ObjectTypeList(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcObjectTypeListResponse{Error: &pb.RpcObjectTypeListResponseError{Code: pb.RpcObjectTypeListResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcObjectTypeListRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcObjectTypeListResponse{Error: &pb.RpcObjectTypeListResponseError{Code: pb.RpcObjectTypeListResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.ObjectTypeList(in).Marshal() - return resp -} - -func ObjectTypeRelationList(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcObjectTypeRelationListResponse{Error: &pb.RpcObjectTypeRelationListResponseError{Code: pb.RpcObjectTypeRelationListResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcObjectTypeRelationListRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcObjectTypeRelationListResponse{Error: &pb.RpcObjectTypeRelationListResponseError{Code: pb.RpcObjectTypeRelationListResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.ObjectTypeRelationList(in).Marshal() - return resp -} - -func ObjectTypeRelationAdd(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcObjectTypeRelationAddResponse{Error: &pb.RpcObjectTypeRelationAddResponseError{Code: pb.RpcObjectTypeRelationAddResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcObjectTypeRelationAddRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcObjectTypeRelationAddResponse{Error: &pb.RpcObjectTypeRelationAddResponseError{Code: pb.RpcObjectTypeRelationAddResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.ObjectTypeRelationAdd(in).Marshal() - return resp -} - -func ObjectTypeRelationUpdate(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcObjectTypeRelationUpdateResponse{Error: &pb.RpcObjectTypeRelationUpdateResponseError{Code: pb.RpcObjectTypeRelationUpdateResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcObjectTypeRelationUpdateRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcObjectTypeRelationUpdateResponse{Error: &pb.RpcObjectTypeRelationUpdateResponseError{Code: pb.RpcObjectTypeRelationUpdateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.ObjectTypeRelationUpdate(in).Marshal() - return resp -} - -func ObjectTypeRelationRemove(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcObjectTypeRelationRemoveResponse{Error: &pb.RpcObjectTypeRelationRemoveResponseError{Code: pb.RpcObjectTypeRelationRemoveResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcObjectTypeRelationRemoveRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcObjectTypeRelationRemoveResponse{Error: &pb.RpcObjectTypeRelationRemoveResponseError{Code: pb.RpcObjectTypeRelationRemoveResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.ObjectTypeRelationRemove(in).Marshal() - return resp -} - -func Ping(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcPingResponse{Error: &pb.RpcPingResponseError{Code: pb.RpcPingResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcPingRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcPingResponse{Error: &pb.RpcPingResponseError{Code: pb.RpcPingResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.Ping(in).Marshal() + resp, _ = clientCommandsHandler.BlockLatexSetText(in).Marshal() return resp } @@ -3127,283 +3113,23 @@ func ProcessCancel(b []byte) (resp []byte) { return resp } -func HistoryShow(b []byte) (resp []byte) { +func LogSend(b []byte) (resp []byte) { defer func() { if PanicHandler != nil { if r := recover(); r != nil { - resp, _ = (&pb.RpcHistoryShowResponse{Error: &pb.RpcHistoryShowResponseError{Code: pb.RpcHistoryShowResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + resp, _ = (&pb.RpcLogSendResponse{Error: &pb.RpcLogSendResponseError{Code: pb.RpcLogSendResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() PanicHandler(r) } } }() - in := new(pb.RpcHistoryShowRequest) + in := new(pb.RpcLogSendRequest) if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcHistoryShowResponse{Error: &pb.RpcHistoryShowResponseError{Code: pb.RpcHistoryShowResponseError_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.HistoryShow(in).Marshal() - return resp -} - -func HistoryVersions(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcHistoryVersionsResponse{Error: &pb.RpcHistoryVersionsResponseError{Code: pb.RpcHistoryVersionsResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcHistoryVersionsRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcHistoryVersionsResponse{Error: &pb.RpcHistoryVersionsResponseError{Code: pb.RpcHistoryVersionsResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.HistoryVersions(in).Marshal() - return resp -} - -func HistorySetVersion(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcHistorySetVersionResponse{Error: &pb.RpcHistorySetVersionResponseError{Code: pb.RpcHistorySetVersionResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcHistorySetVersionRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcHistorySetVersionResponse{Error: &pb.RpcHistorySetVersionResponseError{Code: pb.RpcHistorySetVersionResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.HistorySetVersion(in).Marshal() - return resp -} - -func Export(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcExportResponse{Error: &pb.RpcExportResponseError{Code: pb.RpcExportResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcExportRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcExportResponse{Error: &pb.RpcExportResponseError{Code: pb.RpcExportResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.Export(in).Marshal() - return resp -} - -func ExportWorkspace(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcExportWorkspaceResponse{Error: &pb.RpcExportWorkspaceResponseError{Code: pb.RpcExportWorkspaceResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcExportWorkspaceRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcExportWorkspaceResponse{Error: &pb.RpcExportWorkspaceResponseError{Code: pb.RpcExportWorkspaceResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.ExportWorkspace(in).Marshal() - return resp -} - -func ExportTemplates(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcExportTemplatesResponse{Error: &pb.RpcExportTemplatesResponseError{Code: pb.RpcExportTemplatesResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcExportTemplatesRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcExportTemplatesResponse{Error: &pb.RpcExportTemplatesResponseError{Code: pb.RpcExportTemplatesResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.ExportTemplates(in).Marshal() - return resp -} - -func ExportLocalstore(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcExportLocalstoreResponse{Error: &pb.RpcExportLocalstoreResponseError{Code: pb.RpcExportLocalstoreResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcExportLocalstoreRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcExportLocalstoreResponse{Error: &pb.RpcExportLocalstoreResponseError{Code: pb.RpcExportLocalstoreResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.ExportLocalstore(in).Marshal() - return resp -} - -func MakeTemplate(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcMakeTemplateResponse{Error: &pb.RpcMakeTemplateResponseError{Code: pb.RpcMakeTemplateResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcMakeTemplateRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcMakeTemplateResponse{Error: &pb.RpcMakeTemplateResponseError{Code: pb.RpcMakeTemplateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.MakeTemplate(in).Marshal() - return resp -} - -func MakeTemplateByObjectType(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcMakeTemplateByObjectTypeResponse{Error: &pb.RpcMakeTemplateByObjectTypeResponseError{Code: pb.RpcMakeTemplateByObjectTypeResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcMakeTemplateByObjectTypeRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcMakeTemplateByObjectTypeResponse{Error: &pb.RpcMakeTemplateByObjectTypeResponseError{Code: pb.RpcMakeTemplateByObjectTypeResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.MakeTemplateByObjectType(in).Marshal() - return resp -} - -func CloneTemplate(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcCloneTemplateResponse{Error: &pb.RpcCloneTemplateResponseError{Code: pb.RpcCloneTemplateResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcCloneTemplateRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcCloneTemplateResponse{Error: &pb.RpcCloneTemplateResponseError{Code: pb.RpcCloneTemplateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.CloneTemplate(in).Marshal() - return resp -} - -func ObjectDuplicate(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcObjectDuplicateResponse{Error: &pb.RpcObjectDuplicateResponseError{Code: pb.RpcObjectDuplicateResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcObjectDuplicateRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcObjectDuplicateResponse{Error: &pb.RpcObjectDuplicateResponseError{Code: pb.RpcObjectDuplicateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.ObjectDuplicate(in).Marshal() - return resp -} - -func UnsplashSearch(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcUnsplashSearchResponse{Error: &pb.RpcUnsplashSearchResponseError{Code: pb.RpcUnsplashSearchResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcUnsplashSearchRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcUnsplashSearchResponse{Error: &pb.RpcUnsplashSearchResponseError{Code: pb.RpcUnsplashSearchResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.UnsplashSearch(in).Marshal() - return resp -} - -func UnsplashDownload(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcUnsplashDownloadResponse{Error: &pb.RpcUnsplashDownloadResponseError{Code: pb.RpcUnsplashDownloadResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcUnsplashDownloadRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcUnsplashDownloadResponse{Error: &pb.RpcUnsplashDownloadResponseError{Code: pb.RpcUnsplashDownloadResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.UnsplashDownload(in).Marshal() - return resp -} - -func ApplyTemplate(b []byte) (resp []byte) { - defer func() { - if PanicHandler != nil { - if r := recover(); r != nil { - resp, _ = (&pb.RpcApplyTemplateResponse{Error: &pb.RpcApplyTemplateResponseError{Code: pb.RpcApplyTemplateResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() - PanicHandler(r) - } - } - }() - - in := new(pb.RpcApplyTemplateRequest) - if err := in.Unmarshal(b); err != nil { - resp, _ = (&pb.RpcApplyTemplateResponse{Error: &pb.RpcApplyTemplateResponseError{Code: pb.RpcApplyTemplateResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() - return resp - } - - resp, _ = clientCommandsHandler.ApplyTemplate(in).Marshal() + resp, _ = clientCommandsHandler.LogSend(in).Marshal() return resp } @@ -3467,16 +3193,78 @@ func DebugTree(b []byte) (resp []byte) { return resp } +func DebugExportLocalstore(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcDebugExportLocalstoreResponse{Error: &pb.RpcDebugExportLocalstoreResponseError{Code: pb.RpcDebugExportLocalstoreResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcDebugExportLocalstoreRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcDebugExportLocalstoreResponse{Error: &pb.RpcDebugExportLocalstoreResponseError{Code: pb.RpcDebugExportLocalstoreResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.DebugExportLocalstore(in).Marshal() + return resp +} + +func DebugPing(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcDebugPingResponse{Error: &pb.RpcDebugPingResponseError{Code: pb.RpcDebugPingResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcDebugPingRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcDebugPingResponse{Error: &pb.RpcDebugPingResponseError{Code: pb.RpcDebugPingResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.DebugPing(in).Marshal() + return resp +} + +func MetricsSetParameters(b []byte) (resp []byte) { + defer func() { + if PanicHandler != nil { + if r := recover(); r != nil { + resp, _ = (&pb.RpcMetricsSetParametersResponse{Error: &pb.RpcMetricsSetParametersResponseError{Code: pb.RpcMetricsSetParametersResponseError_UNKNOWN_ERROR, Description: "panic recovered"}}).Marshal() + PanicHandler(r) + } + } + }() + + in := new(pb.RpcMetricsSetParametersRequest) + if err := in.Unmarshal(b); err != nil { + resp, _ = (&pb.RpcMetricsSetParametersResponse{Error: &pb.RpcMetricsSetParametersResponseError{Code: pb.RpcMetricsSetParametersResponseError_BAD_INPUT, Description: err.Error()}}).Marshal() + return resp + } + + resp, _ = clientCommandsHandler.MetricsSetParameters(in).Marshal() + return resp +} + var PanicHandler func(v interface{}) func CommandAsync(cmd string, data []byte, callback func(data []byte)) { go func() { var cd []byte switch cmd { - case "ObjectAddWithObjectId": - cd = ObjectAddWithObjectId(data) - case "ObjectShareByLink": - cd = ObjectShareByLink(data) + case "AppGetVersion": + cd = AppGetVersion(data) + case "AppSetDeviceState": + cd = AppSetDeviceState(data) + case "AppShutdown": + cd = AppShutdown(data) case "WalletCreate": cd = WalletCreate(data) case "WalletRecover": @@ -3493,6 +3281,8 @@ func CommandAsync(cmd string, data []byte, callback func(data []byte)) { cd = WorkspaceGetAll(data) case "WorkspaceSetIsHighlighted": cd = WorkspaceSetIsHighlighted(data) + case "WorkspaceExport": + cd = WorkspaceExport(data) case "AccountRecover": cd = AccountRecover(data) case "AccountCreate": @@ -3503,106 +3293,136 @@ func CommandAsync(cmd string, data []byte, callback func(data []byte)) { cd = AccountSelect(data) case "AccountStop": cd = AccountStop(data) + case "ObjectOpen": + cd = ObjectOpen(data) + case "ObjectClose": + cd = ObjectClose(data) + case "ObjectShow": + cd = ObjectShow(data) + case "ObjectCreate": + cd = ObjectCreate(data) + case "ObjectCreateSet": + cd = ObjectCreateSet(data) + case "ObjectGraph": + cd = ObjectGraph(data) + case "ObjectSearch": + cd = ObjectSearch(data) + case "ObjectSearchSubscribe": + cd = ObjectSearchSubscribe(data) + case "ObjectSubscribeIds": + cd = ObjectSubscribeIds(data) + case "ObjectSearchUnsubscribe": + cd = ObjectSearchUnsubscribe(data) + case "ObjectSetDetails": + cd = ObjectSetDetails(data) + case "ObjectDuplicate": + cd = ObjectDuplicate(data) + case "ObjectSetObjectType": + cd = ObjectSetObjectType(data) + case "ObjectSetLayout": + cd = ObjectSetLayout(data) + case "ObjectSetIsFavorite": + cd = ObjectSetIsFavorite(data) + case "ObjectSetIsArchived": + cd = ObjectSetIsArchived(data) + case "ObjectListDuplicate": + cd = ObjectListDuplicate(data) + case "ObjectListDelete": + cd = ObjectListDelete(data) + case "ObjectListSetIsArchived": + cd = ObjectListSetIsArchived(data) + case "ObjectListSetIsFavorite": + cd = ObjectListSetIsFavorite(data) + case "ObjectApplyTemplate": + cd = ObjectApplyTemplate(data) + case "ObjectToSet": + cd = ObjectToSet(data) + case "ObjectAddWithObjectId": + cd = ObjectAddWithObjectId(data) + case "ObjectShareByLink": + cd = ObjectShareByLink(data) + case "ObjectOpenBreadcrumbs": + cd = ObjectOpenBreadcrumbs(data) + case "ObjectSetBreadcrumbs": + cd = ObjectSetBreadcrumbs(data) + case "ObjectUndo": + cd = ObjectUndo(data) + case "ObjectRedo": + cd = ObjectRedo(data) + case "ObjectImportMarkdown": + cd = ObjectImportMarkdown(data) + case "ObjectListExport": + cd = ObjectListExport(data) + case "ObjectRelationAdd": + cd = ObjectRelationAdd(data) + case "ObjectRelationUpdate": + cd = ObjectRelationUpdate(data) + case "ObjectRelationDelete": + cd = ObjectRelationDelete(data) + case "ObjectRelationAddFeatured": + cd = ObjectRelationAddFeatured(data) + case "ObjectRelationRemoveFeatured": + cd = ObjectRelationRemoveFeatured(data) + case "ObjectRelationListAvailable": + cd = ObjectRelationListAvailable(data) + case "ObjectRelationOptionAdd": + cd = ObjectRelationOptionAdd(data) + case "ObjectRelationOptionUpdate": + cd = ObjectRelationOptionUpdate(data) + case "ObjectRelationOptionDelete": + cd = ObjectRelationOptionDelete(data) + case "ObjectTypeCreate": + cd = ObjectTypeCreate(data) + case "ObjectTypeList": + cd = ObjectTypeList(data) + case "ObjectTypeRelationList": + cd = ObjectTypeRelationList(data) + case "ObjectTypeRelationAdd": + cd = ObjectTypeRelationAdd(data) + case "ObjectTypeRelationUpdate": + cd = ObjectTypeRelationUpdate(data) + case "ObjectTypeRelationRemove": + cd = ObjectTypeRelationRemove(data) + case "HistoryShowVersion": + cd = HistoryShowVersion(data) + case "HistoryGetVersions": + cd = HistoryGetVersions(data) + case "HistorySetVersion": + cd = HistorySetVersion(data) case "FileOffload": cd = FileOffload(data) case "FileListOffload": cd = FileListOffload(data) - case "VersionGet": - cd = VersionGet(data) - case "LogSend": - cd = LogSend(data) - case "ConfigGet": - cd = ConfigGet(data) - case "Shutdown": - cd = Shutdown(data) - case "SetDeviceState": - cd = SetDeviceState(data) - case "ExternalDropFiles": - cd = ExternalDropFiles(data) - case "ExternalDropContent": - cd = ExternalDropContent(data) + case "FileUpload": + cd = FileUpload(data) + case "FileDownload": + cd = FileDownload(data) + case "FileDrop": + cd = FileDrop(data) + case "NavigationListObjects": + cd = NavigationListObjects(data) + case "NavigationGetObjectInfoWithLinks": + cd = NavigationGetObjectInfoWithLinks(data) + case "TemplateCreateFromObject": + cd = TemplateCreateFromObject(data) + case "TemplateCreateFromObjectType": + cd = TemplateCreateFromObjectType(data) + case "TemplateClone": + cd = TemplateClone(data) + case "TemplateExportAll": + cd = TemplateExportAll(data) case "LinkPreview": cd = LinkPreview(data) - case "UploadFile": - cd = UploadFile(data) - case "DownloadFile": - cd = DownloadFile(data) + case "UnsplashSearch": + cd = UnsplashSearch(data) + case "UnsplashDownload": + cd = UnsplashDownload(data) case "BlockUpload": cd = BlockUpload(data) case "BlockReplace": cd = BlockReplace(data) - case "BlockUpdateContent": - cd = BlockUpdateContent(data) - case "BlockOpen": - cd = BlockOpen(data) - case "BlockShow": - cd = BlockShow(data) - case "BlockGetPublicWebURL": - cd = BlockGetPublicWebURL(data) - case "BlockOpenBreadcrumbs": - cd = BlockOpenBreadcrumbs(data) - case "BlockSetBreadcrumbs": - cd = BlockSetBreadcrumbs(data) case "BlockCreate": cd = BlockCreate(data) - case "BlockCreatePage": - cd = BlockCreatePage(data) - case "BlockCreateSet": - cd = BlockCreateSet(data) - case "BlockUnlink": - cd = BlockUnlink(data) - case "BlockClose": - cd = BlockClose(data) - case "BlockDownload": - cd = BlockDownload(data) - case "BlockGetMarks": - cd = BlockGetMarks(data) - case "BlockUndo": - cd = BlockUndo(data) - case "BlockRedo": - cd = BlockRedo(data) - case "BlockSetFields": - cd = BlockSetFields(data) - case "BlockSetRestrictions": - cd = BlockSetRestrictions(data) - case "BlockListMove": - cd = BlockListMove(data) - case "BlockListMoveToNewPage": - cd = BlockListMoveToNewPage(data) - case "BlockListConvertChildrenToPages": - cd = BlockListConvertChildrenToPages(data) - case "BlockListSetFields": - cd = BlockListSetFields(data) - case "BlockListSetTextStyle": - cd = BlockListSetTextStyle(data) - case "BlockListDuplicate": - cd = BlockListDuplicate(data) - case "BlockListSetBackgroundColor": - cd = BlockListSetBackgroundColor(data) - case "BlockListSetAlign": - cd = BlockListSetAlign(data) - case "BlockListSetDivStyle": - cd = BlockListSetDivStyle(data) - case "BlockListSetFileStyle": - cd = BlockListSetFileStyle(data) - case "BlockListTurnInto": - cd = BlockListTurnInto(data) - case "BlockSetLatexText": - cd = BlockSetLatexText(data) - case "BlockSetTextText": - cd = BlockSetTextText(data) - case "BlockSetTextColor": - cd = BlockSetTextColor(data) - case "BlockListSetTextColor": - cd = BlockListSetTextColor(data) - case "BlockListSetTextMark": - cd = BlockListSetTextMark(data) - case "BlockSetTextStyle": - cd = BlockSetTextStyle(data) - case "BlockSetTextChecked": - cd = BlockSetTextChecked(data) - case "BlockSetTextIcon": - cd = BlockSetTextIcon(data) case "BlockSplit": cd = BlockSplit(data) case "BlockMerge": @@ -3613,32 +3433,54 @@ func CommandAsync(cmd string, data []byte, callback func(data []byte)) { cd = BlockPaste(data) case "BlockCut": cd = BlockCut(data) + case "BlockSetFields": + cd = BlockSetFields(data) case "BlockExport": cd = BlockExport(data) - case "BlockImportMarkdown": - cd = BlockImportMarkdown(data) - case "BlockSetFileName": - cd = BlockSetFileName(data) - case "BlockSetImageName": - cd = BlockSetImageName(data) - case "BlockSetImageWidth": - cd = BlockSetImageWidth(data) - case "BlockSetVideoName": - cd = BlockSetVideoName(data) - case "BlockSetVideoWidth": - cd = BlockSetVideoWidth(data) - case "BlockSetLinkTargetBlockId": - cd = BlockSetLinkTargetBlockId(data) - case "BlockBookmarkFetch": - cd = BlockBookmarkFetch(data) - case "BlockBookmarkCreateAndFetch": - cd = BlockBookmarkCreateAndFetch(data) + case "BlockListDelete": + cd = BlockListDelete(data) + case "BlockListMoveToExistingObject": + cd = BlockListMoveToExistingObject(data) + case "BlockListMoveToNewObject": + cd = BlockListMoveToNewObject(data) + case "BlockListConvertToObjects": + cd = BlockListConvertToObjects(data) + case "BlockListSetFields": + cd = BlockListSetFields(data) + case "BlockListDuplicate": + cd = BlockListDuplicate(data) + case "BlockListSetBackgroundColor": + cd = BlockListSetBackgroundColor(data) + case "BlockListSetAlign": + cd = BlockListSetAlign(data) + case "BlockListTurnInto": + cd = BlockListTurnInto(data) + case "BlockTextSetText": + cd = BlockTextSetText(data) + case "BlockTextSetColor": + cd = BlockTextSetColor(data) + case "BlockTextSetStyle": + cd = BlockTextSetStyle(data) + case "BlockTextSetChecked": + cd = BlockTextSetChecked(data) + case "BlockTextSetIcon": + cd = BlockTextSetIcon(data) + case "BlockTextListSetColor": + cd = BlockTextListSetColor(data) + case "BlockTextListSetMark": + cd = BlockTextListSetMark(data) + case "BlockTextListSetStyle": + cd = BlockTextListSetStyle(data) + case "BlockFileSetName": + cd = BlockFileSetName(data) + case "BlockImageSetName": + cd = BlockImageSetName(data) + case "BlockVideoSetName": + cd = BlockVideoSetName(data) case "BlockFileCreateAndUpload": cd = BlockFileCreateAndUpload(data) - case "BlockRelationSetKey": - cd = BlockRelationSetKey(data) - case "BlockRelationAdd": - cd = BlockRelationAdd(data) + case "BlockFileListSetStyle": + cd = BlockFileListSetStyle(data) case "BlockDataviewViewCreate": cd = BlockDataviewViewCreate(data) case "BlockDataviewViewDelete": @@ -3671,114 +3513,38 @@ func CommandAsync(cmd string, data []byte, callback func(data []byte)) { cd = BlockDataviewRecordRelationOptionUpdate(data) case "BlockDataviewRecordRelationOptionDelete": cd = BlockDataviewRecordRelationOptionDelete(data) - case "BlockObjectTypeSet": - cd = BlockObjectTypeSet(data) - case "NavigationListObjects": - cd = NavigationListObjects(data) - case "NavigationGetObjectInfoWithLinks": - cd = NavigationGetObjectInfoWithLinks(data) - case "ObjectGraph": - cd = ObjectGraph(data) - case "ObjectSearch": - cd = ObjectSearch(data) - case "ObjectSearchSubscribe": - cd = ObjectSearchSubscribe(data) - case "ObjectIdsSubscribe": - cd = ObjectIdsSubscribe(data) - case "ObjectSearchUnsubscribe": - cd = ObjectSearchUnsubscribe(data) - case "ObjectRelationAdd": - cd = ObjectRelationAdd(data) - case "ObjectRelationUpdate": - cd = ObjectRelationUpdate(data) - case "ObjectRelationDelete": - cd = ObjectRelationDelete(data) - case "ObjectRelationOptionAdd": - cd = ObjectRelationOptionAdd(data) - case "ObjectRelationOptionUpdate": - cd = ObjectRelationOptionUpdate(data) - case "ObjectRelationOptionDelete": - cd = ObjectRelationOptionDelete(data) - case "ObjectRelationListAvailable": - cd = ObjectRelationListAvailable(data) - case "ObjectSetLayout": - cd = ObjectSetLayout(data) - case "ObjectFeaturedRelationAdd": - cd = ObjectFeaturedRelationAdd(data) - case "ObjectFeaturedRelationRemove": - cd = ObjectFeaturedRelationRemove(data) - case "ObjectSetIsFavorite": - cd = ObjectSetIsFavorite(data) - case "ObjectSetIsArchived": - cd = ObjectSetIsArchived(data) - case "ObjectToSet": - cd = ObjectToSet(data) - case "ObjectListDuplicate": - cd = ObjectListDuplicate(data) - case "ObjectListDelete": - cd = ObjectListDelete(data) - case "ObjectListSetIsArchived": - cd = ObjectListSetIsArchived(data) - case "ObjectListSetIsFavorite": - cd = ObjectListSetIsFavorite(data) - case "BlockSetDetails": - cd = BlockSetDetails(data) - case "PageCreate": - cd = PageCreate(data) - case "SetCreate": - cd = SetCreate(data) - case "MetricsSetParameters": - cd = MetricsSetParameters(data) - case "ObjectTypeCreate": - cd = ObjectTypeCreate(data) - case "ObjectTypeList": - cd = ObjectTypeList(data) - case "ObjectTypeRelationList": - cd = ObjectTypeRelationList(data) - case "ObjectTypeRelationAdd": - cd = ObjectTypeRelationAdd(data) - case "ObjectTypeRelationUpdate": - cd = ObjectTypeRelationUpdate(data) - case "ObjectTypeRelationRemove": - cd = ObjectTypeRelationRemove(data) - case "Ping": - cd = Ping(data) + case "BlockLinkCreateWithObject": + cd = BlockLinkCreateWithObject(data) + case "BlockLinkListSetAppearance": + cd = BlockLinkListSetAppearance(data) + case "BlockBookmarkFetch": + cd = BlockBookmarkFetch(data) + case "BlockBookmarkCreateAndFetch": + cd = BlockBookmarkCreateAndFetch(data) + case "BlockRelationSetKey": + cd = BlockRelationSetKey(data) + case "BlockRelationAdd": + cd = BlockRelationAdd(data) + case "BlockDivListSetStyle": + cd = BlockDivListSetStyle(data) + case "BlockLatexSetText": + cd = BlockLatexSetText(data) case "ProcessCancel": cd = ProcessCancel(data) - case "HistoryShow": - cd = HistoryShow(data) - case "HistoryVersions": - cd = HistoryVersions(data) - case "HistorySetVersion": - cd = HistorySetVersion(data) - case "Export": - cd = Export(data) - case "ExportWorkspace": - cd = ExportWorkspace(data) - case "ExportTemplates": - cd = ExportTemplates(data) - case "ExportLocalstore": - cd = ExportLocalstore(data) - case "MakeTemplate": - cd = MakeTemplate(data) - case "MakeTemplateByObjectType": - cd = MakeTemplateByObjectType(data) - case "CloneTemplate": - cd = CloneTemplate(data) - case "ObjectDuplicate": - cd = ObjectDuplicate(data) - case "UnsplashSearch": - cd = UnsplashSearch(data) - case "UnsplashDownload": - cd = UnsplashDownload(data) - case "ApplyTemplate": - cd = ApplyTemplate(data) + case "LogSend": + cd = LogSend(data) case "DebugSync": cd = DebugSync(data) case "DebugThread": cd = DebugThread(data) case "DebugTree": cd = DebugTree(data) + case "DebugExportLocalstore": + cd = DebugExportLocalstore(data) + case "DebugPing": + cd = DebugPing(data) + case "MetricsSetParameters": + cd = MetricsSetParameters(data) default: log.Errorf("unknown command type: %s\n", cmd) } diff --git a/cmd/cli/debug.go b/cmd/cli/debug.go index 4c6589cd3..70e46a838 100644 --- a/cmd/cli/debug.go +++ b/cmd/cli/debug.go @@ -47,7 +47,9 @@ var dumpTree = &cobra.Command{ dbg := app.MustComponent(debug.CName).(debug.Debug) - filename, err := dbg.DumpTree(debugThread, debugOutputFile, false) + isAnonymize := false + dumpWithSvg := false + filename, err := dbg.DumpTree(debugThread, debugOutputFile, isAnonymize, dumpWithSvg) if err != nil { console.Fatal("failed to dump tree: %s", err.Error()) } diff --git a/cmd/dbbenchmark/dbbenchmark.go b/cmd/dbbenchmark/dbbenchmark.go index 6f5aed8d2..508d29604 100644 --- a/cmd/dbbenchmark/dbbenchmark.go +++ b/cmd/dbbenchmark/dbbenchmark.go @@ -11,7 +11,6 @@ import ( "github.com/anytypeio/go-anytype-middleware/util/pbtypes" dsbadgerv3 "github.com/anytypeio/go-ds-badger3" "github.com/gogo/protobuf/types" - dsbadgerv1 "github.com/ipfs/go-ds-badger" "math/rand" "os" "path/filepath" @@ -67,10 +66,10 @@ func initBadgerV3(o *options) (*dsbadgerv3.Datastore, error) { return localstoreDS, nil } -func initBadgerV1(o *options) (*dsbadgerv1.Datastore, error) { - cfg := clientds.DefaultConfig.Logstore +func initBadgerV1(o *options) (*dsbadgerv3.Datastore, error) { + cfg := clientds.DefaultConfig.Localstore cfg.SyncWrites = o.sync - localstoreDS, err := dsbadgerv1.NewDatastore(filepath.Join(o.path, localstoreDir), &cfg) + localstoreDS, err := dsbadgerv3.NewDatastore(filepath.Join(o.path, localstoreDir), &cfg) if err != nil { return nil, err } diff --git a/cmd/fileuploader/main.go b/cmd/fileuploader/main.go index 5ff8f29c9..ad9b105b0 100644 --- a/cmd/fileuploader/main.go +++ b/cmd/fileuploader/main.go @@ -1,3 +1,4 @@ +//go:build !nogrpcserver && !_test // +build !nogrpcserver,!_test package main @@ -45,7 +46,7 @@ func main() { return nil } - resp := mw.UploadFile(&pb.RpcUploadFileRequest{LocalPath: path, DisableEncryption: true}) + resp := mw.FileUpload(&pb.RpcFileUploadRequest{LocalPath: path, DisableEncryption: true}) if int(resp.Error.Code) != 0 { return fmt.Errorf(resp.Error.Description) } diff --git a/cmd/grpcserver/grpc.go b/cmd/grpcserver/grpc.go index 989c77757..ceda48b56 100644 --- a/cmd/grpcserver/grpc.go +++ b/cmd/grpcserver/grpc.go @@ -227,7 +227,7 @@ func main() { case <-stopChan: server.Stop() proxy.Close() - mw.Shutdown(&pb.RpcShutdownRequest{}) + mw.AppShutdown(&pb.RpcAppShutdownRequest{}) return } } diff --git a/core/account.go b/core/account.go index 9161e6c08..4904a5e41 100644 --- a/core/account.go +++ b/core/account.go @@ -8,6 +8,7 @@ import ( "fmt" "github.com/anytypeio/go-anytype-middleware/core/account" cafePb "github.com/anytypeio/go-anytype-middleware/pkg/lib/cafe/pb" + "github.com/anytypeio/go-anytype-middleware/pkg/lib/gateway" "github.com/gogo/status" "io/ioutil" "net" @@ -24,6 +25,8 @@ import ( "github.com/anytypeio/go-anytype-middleware/core/anytype" "github.com/anytypeio/go-anytype-middleware/core/anytype/config" "github.com/anytypeio/go-anytype-middleware/core/block" + walletComp "github.com/anytypeio/go-anytype-middleware/core/wallet" + "github.com/anytypeio/go-anytype-middleware/core/configfetcher" "github.com/anytypeio/go-anytype-middleware/metrics" "github.com/anytypeio/go-anytype-middleware/pb" @@ -165,6 +168,33 @@ func (mw *Middleware) refetch() { fetcher.Refetch() } +func (mw *Middleware) getInfo() *model.AccountInfo { + at := mw.app.MustComponent(core.CName).(core.Service) + gwAddr := mw.app.MustComponent(gateway.CName).(gateway.Gateway).Addr() + wallet := mw.app.MustComponent(walletComp.CName).(walletComp.Wallet) + var deviceId string + deviceKey, err := wallet.GetDevicePrivkey() + if err == nil { + deviceId = deviceKey.Address() + } + + if gwAddr != "" { + gwAddr = "http://" + gwAddr + } + + pBlocks := at.PredefinedBlocks() + return &model.AccountInfo{ + HomeObjectId: pBlocks.Home, + ArchiveObjectId: pBlocks.Archive, + ProfileObjectId: pBlocks.Profile, + MarketplaceTypeObjectId: pBlocks.MarketplaceType, + MarketplaceRelationObjectId: pBlocks.MarketplaceRelation, + MarketplaceTemplateObjectId: pBlocks.MarketplaceTemplate, + GatewayUrl: gwAddr, + DeviceId: deviceId, + } +} + func (mw *Middleware) AccountCreate(req *pb.RpcAccountCreateRequest) *pb.RpcAccountCreateResponse { mw.accountSearchCancel() mw.m.Lock() @@ -249,9 +279,9 @@ func (mw *Middleware) AccountCreate(req *pb.RpcAccountCreateRequest) *pb.RpcAcco newAcc.Name = req.Name bs := mw.app.MustComponent(block.CName).(block.Service) - details := []*pb.RpcBlockSetDetailsDetail{{Key: "name", Value: pbtypes.String(req.Name)}} + details := []*pb.RpcObjectSetDetailsDetail{{Key: "name", Value: pbtypes.String(req.Name)}} if req.GetAvatarLocalPath() != "" { - hash, err := bs.UploadFile(pb.RpcUploadFileRequest{ + hash, err := bs.UploadFile(pb.RpcFileUploadRequest{ LocalPath: req.GetAvatarLocalPath(), Type: model.BlockContentFile_Image, }) @@ -259,14 +289,15 @@ func (mw *Middleware) AccountCreate(req *pb.RpcAccountCreateRequest) *pb.RpcAcco log.Warnf("can't add avatar: %v", err) } else { newAcc.Avatar = &model.AccountAvatar{Avatar: &model.AccountAvatarAvatarOfImage{Image: &model.BlockContentFile{Hash: hash}}} - details = append(details, &pb.RpcBlockSetDetailsDetail{ + details = append(details, &pb.RpcObjectSetDetailsDetail{ Key: "iconImage", Value: pbtypes.String(hash), }) } } + newAcc.Info = mw.getInfo() - if err = bs.SetDetails(nil, pb.RpcBlockSetDetailsRequest{ + if err = bs.SetDetails(nil, pb.RpcObjectSetDetailsRequest{ ContextId: coreService.PredefinedBlocks().Profile, Details: details, }); err != nil { @@ -476,7 +507,9 @@ func (mw *Middleware) AccountSelect(req *pb.RpcAccountSelectRequest) *pb.RpcAcco // we already have this account running, lets just stop events if mw.app != nil && req.Id == mw.app.MustComponent(core.CName).(core.Service).Account() { mw.app.MustComponent("blockService").(block.Service).CloseBlocks() - return response(&model.Account{Id: req.Id}, pb.RpcAccountSelectResponseError_NULL, nil) + acc := &model.Account{Id: req.Id} + acc.Info = mw.getInfo() + return response(acc, pb.RpcAccountSelectResponseError_NULL, nil) } // in case user selected account other than the first one(used to perform search) @@ -551,12 +584,15 @@ func (mw *Middleware) AccountSelect(req *pb.RpcAccountSelectRequest) *pb.RpcAcco log.Errorf("AccountSelect app start takes %dms: %v", stat.SpentMsTotal, stat.SpentMsPerComp) } + acc := &model.Account{Id: req.Id} + acc.Info = mw.getInfo() + metrics.SharedClient.RecordEvent(metrics.AppStart{ Type: "select", TotalMs: stat.SpentMsTotal, PerCompMs: stat.SpentMsPerComp}) - return response(&model.Account{Id: req.Id}, pb.RpcAccountSelectResponseError_NULL, nil) + return response(acc, pb.RpcAccountSelectResponseError_NULL, nil) } func (mw *Middleware) AccountStop(req *pb.RpcAccountStopRequest) *pb.RpcAccountStopResponse { diff --git a/core/block.go b/core/block.go index 1b036aed9..d47ed9d93 100644 --- a/core/block.go +++ b/core/block.go @@ -2,7 +2,6 @@ package core import ( "context" - "fmt" "os" "time" @@ -41,10 +40,10 @@ func (mw *Middleware) BlockCreate(req *pb.RpcBlockCreateRequest) *pb.RpcBlockCre return response(pb.RpcBlockCreateResponseError_NULL, id, nil) } -func (mw *Middleware) BlockCreatePage(req *pb.RpcBlockCreatePageRequest) *pb.RpcBlockCreatePageResponse { +func (mw *Middleware) BlockLinkCreateWithObject(req *pb.RpcBlockLinkCreateWithObjectRequest) *pb.RpcBlockLinkCreateWithObjectResponse { ctx := state.NewContext(nil) - response := func(code pb.RpcBlockCreatePageResponseErrorCode, id, targetId string, err error) *pb.RpcBlockCreatePageResponse { - m := &pb.RpcBlockCreatePageResponse{Error: &pb.RpcBlockCreatePageResponseError{Code: code}, BlockId: id, TargetId: targetId} + response := func(code pb.RpcBlockLinkCreateWithObjectResponseErrorCode, id, targetId string, err error) *pb.RpcBlockLinkCreateWithObjectResponse { + m := &pb.RpcBlockLinkCreateWithObjectResponse{Error: &pb.RpcBlockLinkCreateWithObjectResponseError{Code: code}, BlockId: id, TargetId: targetId} if err != nil { m.Error.Description = err.Error() } else { @@ -54,46 +53,19 @@ func (mw *Middleware) BlockCreatePage(req *pb.RpcBlockCreatePageRequest) *pb.Rpc } var id, targetId string err := mw.doBlockService(func(bs block.Service) (err error) { - id, targetId, err = bs.CreatePage(ctx, "", *req) + id, targetId, err = bs.CreateLinkToTheNewObject(ctx, "", *req) return }) if err != nil { - return response(pb.RpcBlockCreatePageResponseError_UNKNOWN_ERROR, "", "", err) + return response(pb.RpcBlockLinkCreateWithObjectResponseError_UNKNOWN_ERROR, "", "", err) } - return response(pb.RpcBlockCreatePageResponseError_NULL, id, targetId, nil) + return response(pb.RpcBlockLinkCreateWithObjectResponseError_NULL, id, targetId, nil) } -func (mw *Middleware) BlockCreateSet(req *pb.RpcBlockCreateSetRequest) *pb.RpcBlockCreateSetResponse { +func (mw *Middleware) ObjectOpen(req *pb.RpcObjectOpenRequest) *pb.RpcObjectOpenResponse { ctx := state.NewContext(nil) - response := func(code pb.RpcBlockCreateSetResponseErrorCode, id, targetId string, err error) *pb.RpcBlockCreateSetResponse { - m := &pb.RpcBlockCreateSetResponse{Error: &pb.RpcBlockCreateSetResponseError{Code: code}, BlockId: id, TargetId: targetId} - if err != nil { - m.Error.Description = err.Error() - } else { - m.Event = ctx.GetResponseEvent() - } - return m - } - var id, targetId string - err := mw.doBlockService(func(bs block.Service) (err error) { - id, targetId, err = bs.CreateSet(ctx, *req) - return - }) - - if err != nil { - if err == block.ErrUnknownObjectType { - return response(pb.RpcBlockCreateSetResponseError_UNKNOWN_OBJECT_TYPE_URL, "", "", err) - } - - return response(pb.RpcBlockCreateSetResponseError_UNKNOWN_ERROR, "", "", err) - } - return response(pb.RpcBlockCreateSetResponseError_NULL, id, targetId, nil) -} - -func (mw *Middleware) BlockOpen(req *pb.RpcBlockOpenRequest) *pb.RpcBlockOpenResponse { - ctx := state.NewContext(nil) - response := func(code pb.RpcBlockOpenResponseErrorCode, err error) *pb.RpcBlockOpenResponse { - m := &pb.RpcBlockOpenResponse{Error: &pb.RpcBlockOpenResponseError{Code: code}} + response := func(code pb.RpcObjectOpenResponseErrorCode, err error) *pb.RpcObjectOpenResponse { + m := &pb.RpcObjectOpenResponse{Error: &pb.RpcObjectOpenResponseError{Code: code}} if err != nil { m.Error.Description = err.Error() } else { @@ -103,24 +75,24 @@ func (mw *Middleware) BlockOpen(req *pb.RpcBlockOpenRequest) *pb.RpcBlockOpenRes } err := mw.doBlockService(func(bs block.Service) (err error) { - return bs.OpenBlock(ctx, req.BlockId) + return bs.OpenBlock(ctx, req.ObjectId) }) if err != nil { if err == source.ErrUnknownDataFormat { - return response(pb.RpcBlockOpenResponseError_ANYTYPE_NEEDS_UPGRADE, err) + return response(pb.RpcObjectOpenResponseError_ANYTYPE_NEEDS_UPGRADE, err) } else if err == source.ErrObjectNotFound { - return response(pb.RpcBlockOpenResponseError_NOT_FOUND, err) + return response(pb.RpcObjectOpenResponseError_NOT_FOUND, err) } - return response(pb.RpcBlockOpenResponseError_UNKNOWN_ERROR, err) + return response(pb.RpcObjectOpenResponseError_UNKNOWN_ERROR, err) } - return response(pb.RpcBlockOpenResponseError_NULL, nil) + return response(pb.RpcObjectOpenResponseError_NULL, nil) } -func (mw *Middleware) BlockShow(req *pb.RpcBlockShowRequest) *pb.RpcBlockShowResponse { +func (mw *Middleware) ObjectShow(req *pb.RpcObjectShowRequest) *pb.RpcObjectShowResponse { ctx := state.NewContextTrace(req.TraceId, nil) - response := func(code pb.RpcBlockShowResponseErrorCode, err error) *pb.RpcBlockShowResponse { - m := &pb.RpcBlockShowResponse{Error: &pb.RpcBlockShowResponseError{Code: code}} + response := func(code pb.RpcObjectShowResponseErrorCode, err error) *pb.RpcObjectShowResponse { + m := &pb.RpcObjectShowResponse{Error: &pb.RpcObjectShowResponseError{Code: code}} if err != nil { m.Error.Description = err.Error() } else { @@ -130,55 +102,24 @@ func (mw *Middleware) BlockShow(req *pb.RpcBlockShowRequest) *pb.RpcBlockShowRes } err := mw.doBlockService(func(bs block.Service) (err error) { - return bs.ShowBlock(ctx, req.BlockId) + return bs.ShowBlock(ctx, req.ObjectId) }) if err != nil { if err == source.ErrUnknownDataFormat { - return response(pb.RpcBlockShowResponseError_ANYTYPE_NEEDS_UPGRADE, err) + return response(pb.RpcObjectShowResponseError_ANYTYPE_NEEDS_UPGRADE, err) } else if err == source.ErrObjectNotFound { - return response(pb.RpcBlockShowResponseError_NOT_FOUND, err) + return response(pb.RpcObjectShowResponseError_NOT_FOUND, err) } - return response(pb.RpcBlockShowResponseError_UNKNOWN_ERROR, err) + return response(pb.RpcObjectShowResponseError_UNKNOWN_ERROR, err) } - return response(pb.RpcBlockShowResponseError_NULL, nil) + return response(pb.RpcObjectShowResponseError_NULL, nil) } -func (mw *Middleware) BlockGetPublicWebURL(req *pb.RpcBlockGetPublicWebURLRequest) *pb.RpcBlockGetPublicWebURLResponse { - response := func(url string, code pb.RpcBlockGetPublicWebURLResponseErrorCode, err error) *pb.RpcBlockGetPublicWebURLResponse { - m := &pb.RpcBlockGetPublicWebURLResponse{Url: url, Error: &pb.RpcBlockGetPublicWebURLResponseError{Code: code}} - if err != nil { - m.Error.Description = err.Error() - } - return m - } - /* - b, err := mw.Anytype.GetBlock(req.BlockId) - if err != nil { - return response("", pb.RpcBlockGetPublicWebURLResponseError_UNKNOWN_ERROR, err) - } - - snap, err := b.GetLastSnapshot() - if err != nil { - return response("", pb.RpcBlockGetPublicWebURLResponseError_UNKNOWN_ERROR, err) - } - - u, err := snap.PublicWebURL() - if err != nil { - return response("", pb.RpcBlockGetPublicWebURLResponseError_UNKNOWN_ERROR, err) - } - - return response(u, pb.RpcBlockGetPublicWebURLResponseError_NULL, nil) - - */ - // TODO: make with changes - return response("", pb.RpcBlockGetPublicWebURLResponseError_UNKNOWN_ERROR, fmt.Errorf("disabled")) -} - -func (mw *Middleware) BlockOpenBreadcrumbs(req *pb.RpcBlockOpenBreadcrumbsRequest) *pb.RpcBlockOpenBreadcrumbsResponse { +func (mw *Middleware) ObjectOpenBreadcrumbs(req *pb.RpcObjectOpenBreadcrumbsRequest) *pb.RpcObjectOpenBreadcrumbsResponse { ctx := state.NewContextTrace(req.TraceId, nil) - response := func(code pb.RpcBlockOpenBreadcrumbsResponseErrorCode, id string, err error) *pb.RpcBlockOpenBreadcrumbsResponse { - m := &pb.RpcBlockOpenBreadcrumbsResponse{Error: &pb.RpcBlockOpenBreadcrumbsResponseError{Code: code}, BlockId: id} + response := func(code pb.RpcObjectOpenBreadcrumbsResponseErrorCode, id string, err error) *pb.RpcObjectOpenBreadcrumbsResponse { + m := &pb.RpcObjectOpenBreadcrumbsResponse{Error: &pb.RpcObjectOpenBreadcrumbsResponseError{Code: code}, ObjectId: id} if err != nil { m.Error.Description = err.Error() } else { @@ -192,16 +133,16 @@ func (mw *Middleware) BlockOpenBreadcrumbs(req *pb.RpcBlockOpenBreadcrumbsReques return }) if err != nil { - return response(pb.RpcBlockOpenBreadcrumbsResponseError_UNKNOWN_ERROR, "", err) + return response(pb.RpcObjectOpenBreadcrumbsResponseError_UNKNOWN_ERROR, "", err) } - return response(pb.RpcBlockOpenBreadcrumbsResponseError_NULL, id, nil) + return response(pb.RpcObjectOpenBreadcrumbsResponseError_NULL, id, nil) } -func (mw *Middleware) BlockSetBreadcrumbs(req *pb.RpcBlockSetBreadcrumbsRequest) *pb.RpcBlockSetBreadcrumbsResponse { +func (mw *Middleware) ObjectSetBreadcrumbs(req *pb.RpcObjectSetBreadcrumbsRequest) *pb.RpcObjectSetBreadcrumbsResponse { ctx := state.NewContext(nil) - response := func(code pb.RpcBlockSetBreadcrumbsResponseErrorCode, err error) *pb.RpcBlockSetBreadcrumbsResponse { - m := &pb.RpcBlockSetBreadcrumbsResponse{Error: &pb.RpcBlockSetBreadcrumbsResponseError{Code: code}} + response := func(code pb.RpcObjectSetBreadcrumbsResponseErrorCode, err error) *pb.RpcObjectSetBreadcrumbsResponse { + m := &pb.RpcObjectSetBreadcrumbsResponse{Error: &pb.RpcObjectSetBreadcrumbsResponseError{Code: code}} if err != nil { m.Error.Description = err.Error() } else { @@ -213,27 +154,27 @@ func (mw *Middleware) BlockSetBreadcrumbs(req *pb.RpcBlockSetBreadcrumbsRequest) return bs.SetBreadcrumbs(ctx, *req) }) if err != nil { - return response(pb.RpcBlockSetBreadcrumbsResponseError_UNKNOWN_ERROR, err) + return response(pb.RpcObjectSetBreadcrumbsResponseError_UNKNOWN_ERROR, err) } - return response(pb.RpcBlockSetBreadcrumbsResponseError_NULL, nil) + return response(pb.RpcObjectSetBreadcrumbsResponseError_NULL, nil) } -func (mw *Middleware) BlockClose(req *pb.RpcBlockCloseRequest) *pb.RpcBlockCloseResponse { - response := func(code pb.RpcBlockCloseResponseErrorCode, err error) *pb.RpcBlockCloseResponse { - m := &pb.RpcBlockCloseResponse{Error: &pb.RpcBlockCloseResponseError{Code: code}} +func (mw *Middleware) ObjectClose(req *pb.RpcObjectCloseRequest) *pb.RpcObjectCloseResponse { + response := func(code pb.RpcObjectCloseResponseErrorCode, err error) *pb.RpcObjectCloseResponse { + m := &pb.RpcObjectCloseResponse{Error: &pb.RpcObjectCloseResponseError{Code: code}} if err != nil { m.Error.Description = err.Error() } return m } err := mw.doBlockService(func(bs block.Service) (err error) { - return bs.CloseBlock(req.BlockId) + return bs.CloseBlock(req.ObjectId) }) if err != nil { - return response(pb.RpcBlockCloseResponseError_UNKNOWN_ERROR, err) + return response(pb.RpcObjectCloseResponseError_UNKNOWN_ERROR, err) } - return response(pb.RpcBlockCloseResponseError_NULL, nil) + return response(pb.RpcObjectCloseResponseError_NULL, nil) } func (mw *Middleware) BlockCopy(req *pb.RpcBlockCopyRequest) *pb.RpcBlockCopyResponse { response := func(code pb.RpcBlockCopyResponseErrorCode, textSlot string, htmlSlot string, anySlot []*model.Block, err error) *pb.RpcBlockCopyResponse { @@ -332,11 +273,11 @@ func (mw *Middleware) BlockCut(req *pb.RpcBlockCutRequest) *pb.RpcBlockCutRespon return response(pb.RpcBlockCutResponseError_NULL, textSlot, htmlSlot, anySlot, nil) } -func (mw *Middleware) BlockImportMarkdown(req *pb.RpcBlockImportMarkdownRequest) *pb.RpcBlockImportMarkdownResponse { +func (mw *Middleware) ObjectImportMarkdown(req *pb.RpcObjectImportMarkdownRequest) *pb.RpcObjectImportMarkdownResponse { ctx := state.NewContext(nil) - response := func(code pb.RpcBlockImportMarkdownResponseErrorCode, rootLinkIds []string, err error) *pb.RpcBlockImportMarkdownResponse { - m := &pb.RpcBlockImportMarkdownResponse{ - Error: &pb.RpcBlockImportMarkdownResponseError{Code: code}, + response := func(code pb.RpcObjectImportMarkdownResponseErrorCode, rootLinkIds []string, err error) *pb.RpcObjectImportMarkdownResponse { + m := &pb.RpcObjectImportMarkdownResponse{ + Error: &pb.RpcObjectImportMarkdownResponseError{Code: code}, RootLinkIds: rootLinkIds, } if err != nil { @@ -354,10 +295,10 @@ func (mw *Middleware) BlockImportMarkdown(req *pb.RpcBlockImportMarkdownRequest) }) if err != nil { - return response(pb.RpcBlockImportMarkdownResponseError_UNKNOWN_ERROR, rootLinkIds, err) + return response(pb.RpcObjectImportMarkdownResponseError_UNKNOWN_ERROR, rootLinkIds, err) } - return response(pb.RpcBlockImportMarkdownResponseError_NULL, rootLinkIds, nil) + return response(pb.RpcObjectImportMarkdownResponseError_NULL, rootLinkIds, nil) } func (mw *Middleware) BlockExport(req *pb.RpcBlockExportRequest) *pb.RpcBlockExportResponse { @@ -406,10 +347,10 @@ func (mw *Middleware) BlockUpload(req *pb.RpcBlockUploadRequest) *pb.RpcBlockUpl return response(pb.RpcBlockUploadResponseError_NULL, nil) } -func (mw *Middleware) BlockUnlink(req *pb.RpcBlockUnlinkRequest) *pb.RpcBlockUnlinkResponse { +func (mw *Middleware) BlockListDelete(req *pb.RpcBlockListDeleteRequest) *pb.RpcBlockListDeleteResponse { ctx := state.NewContext(nil) - response := func(code pb.RpcBlockUnlinkResponseErrorCode, err error) *pb.RpcBlockUnlinkResponse { - m := &pb.RpcBlockUnlinkResponse{Error: &pb.RpcBlockUnlinkResponseError{Code: code}} + response := func(code pb.RpcBlockListDeleteResponseErrorCode, err error) *pb.RpcBlockListDeleteResponse { + m := &pb.RpcBlockListDeleteResponse{Error: &pb.RpcBlockListDeleteResponseError{Code: code}} if err != nil { m.Error.Description = err.Error() } else { @@ -421,9 +362,9 @@ func (mw *Middleware) BlockUnlink(req *pb.RpcBlockUnlinkRequest) *pb.RpcBlockUnl return bs.UnlinkBlock(ctx, *req) }) if err != nil { - return response(pb.RpcBlockUnlinkResponseError_UNKNOWN_ERROR, err) + return response(pb.RpcBlockListDeleteResponseError_UNKNOWN_ERROR, err) } - return response(pb.RpcBlockUnlinkResponseError_NULL, nil) + return response(pb.RpcBlockListDeleteResponseError_NULL, nil) } func (mw *Middleware) BlockListDuplicate(req *pb.RpcBlockListDuplicateRequest) *pb.RpcBlockListDuplicateResponse { @@ -448,32 +389,6 @@ func (mw *Middleware) BlockListDuplicate(req *pb.RpcBlockListDuplicateRequest) * return response(ids, pb.RpcBlockListDuplicateResponseError_NULL, nil) } -func (mw *Middleware) BlockDownload(req *pb.RpcBlockDownloadRequest) *pb.RpcBlockDownloadResponse { - response := func(code pb.RpcBlockDownloadResponseErrorCode, err error) *pb.RpcBlockDownloadResponse { - m := &pb.RpcBlockDownloadResponse{Error: &pb.RpcBlockDownloadResponseError{Code: code}} - if err != nil { - m.Error.Description = err.Error() - } - - return m - } - // TODO - return response(pb.RpcBlockDownloadResponseError_NULL, nil) -} - -func (mw *Middleware) BlockGetMarks(req *pb.RpcBlockGetMarksRequest) *pb.RpcBlockGetMarksResponse { - response := func(code pb.RpcBlockGetMarksResponseErrorCode, err error) *pb.RpcBlockGetMarksResponse { - m := &pb.RpcBlockGetMarksResponse{Error: &pb.RpcBlockGetMarksResponseError{Code: code}} - if err != nil { - m.Error.Description = err.Error() - } - - return m - } - // TODO - return response(pb.RpcBlockGetMarksResponseError_NULL, nil) -} - func (mw *Middleware) BlockSetFields(req *pb.RpcBlockSetFieldsRequest) *pb.RpcBlockSetFieldsResponse { ctx := state.NewContext(nil) response := func(code pb.RpcBlockSetFieldsResponseErrorCode, err error) *pb.RpcBlockSetFieldsResponse { @@ -514,19 +429,6 @@ func (mw *Middleware) BlockListSetFields(req *pb.RpcBlockListSetFieldsRequest) * return response(pb.RpcBlockListSetFieldsResponseError_NULL, nil) } -func (mw *Middleware) BlockSetRestrictions(req *pb.RpcBlockSetRestrictionsRequest) *pb.RpcBlockSetRestrictionsResponse { - response := func(code pb.RpcBlockSetRestrictionsResponseErrorCode, err error) *pb.RpcBlockSetRestrictionsResponse { - m := &pb.RpcBlockSetRestrictionsResponse{Error: &pb.RpcBlockSetRestrictionsResponseError{Code: code}} - if err != nil { - m.Error.Description = err.Error() - } - - return m - } - // TODO - return response(pb.RpcBlockSetRestrictionsResponseError_NULL, nil) -} - func (mw *Middleware) ObjectListDelete(req *pb.RpcObjectListDeleteRequest) *pb.RpcObjectListDeleteResponse { response := func(code pb.RpcObjectListDeleteResponseErrorCode, err error) *pb.RpcObjectListDeleteResponse { m := &pb.RpcObjectListDeleteResponse{Error: &pb.RpcObjectListDeleteResponseError{Code: code}} @@ -599,31 +501,10 @@ func (mw *Middleware) BlockReplace(req *pb.RpcBlockReplaceRequest) *pb.RpcBlockR return response(pb.RpcBlockReplaceResponseError_NULL, blockId, nil) } -func (mw *Middleware) BlockUpdateContent(req *pb.RpcBlockUpdateContentRequest) *pb.RpcBlockUpdateContentResponse { +func (mw *Middleware) BlockTextSetColor(req *pb.RpcBlockTextSetColorRequest) *pb.RpcBlockTextSetColorResponse { ctx := state.NewContext(nil) - response := func(code pb.RpcBlockUpdateContentResponseErrorCode, blockId string, err error) *pb.RpcBlockUpdateContentResponse { - m := &pb.RpcBlockUpdateContentResponse{Error: &pb.RpcBlockUpdateContentResponseError{Code: code}} - if err != nil { - m.Error.Description = err.Error() - } else { - m.Event = ctx.GetResponseEvent() - } - return m - } - var blockId string - err := mw.doBlockService(func(bs block.Service) (err error) { - return bs.UpdateBlockContent(ctx, *req) - }) - if err != nil { - return response(pb.RpcBlockUpdateContentResponseError_UNKNOWN_ERROR, "", err) - } - return response(pb.RpcBlockUpdateContentResponseError_NULL, blockId, nil) -} - -func (mw *Middleware) BlockSetTextColor(req *pb.RpcBlockSetTextColorRequest) *pb.RpcBlockSetTextColorResponse { - ctx := state.NewContext(nil) - response := func(code pb.RpcBlockSetTextColorResponseErrorCode, err error) *pb.RpcBlockSetTextColorResponse { - m := &pb.RpcBlockSetTextColorResponse{Error: &pb.RpcBlockSetTextColorResponseError{Code: code}} + response := func(code pb.RpcBlockTextSetColorResponseErrorCode, err error) *pb.RpcBlockTextSetColorResponse { + m := &pb.RpcBlockTextSetColorResponse{Error: &pb.RpcBlockTextSetColorResponseError{Code: code}} if err != nil { m.Error.Description = err.Error() } else { @@ -635,9 +516,9 @@ func (mw *Middleware) BlockSetTextColor(req *pb.RpcBlockSetTextColorRequest) *pb return bs.SetTextColor(nil, req.ContextId, req.Color, req.BlockId) }) if err != nil { - return response(pb.RpcBlockSetTextColorResponseError_UNKNOWN_ERROR, err) + return response(pb.RpcBlockTextSetColorResponseError_UNKNOWN_ERROR, err) } - return response(pb.RpcBlockSetTextColorResponseError_NULL, nil) + return response(pb.RpcBlockTextSetColorResponseError_NULL, nil) } func (mw *Middleware) BlockListSetBackgroundColor(req *pb.RpcBlockListSetBackgroundColorRequest) *pb.RpcBlockListSetBackgroundColorResponse { @@ -660,6 +541,26 @@ func (mw *Middleware) BlockListSetBackgroundColor(req *pb.RpcBlockListSetBackgro return response(pb.RpcBlockListSetBackgroundColorResponseError_NULL, nil) } +func (mw *Middleware) BlockLinkListSetAppearance(req *pb.RpcBlockLinkListSetAppearanceRequest) *pb.RpcBlockLinkListSetAppearanceResponse { + ctx := state.NewContext(nil) + response := func(code pb.RpcBlockLinkListSetAppearanceResponseErrorCode, err error) *pb.RpcBlockLinkListSetAppearanceResponse { + m := &pb.RpcBlockLinkListSetAppearanceResponse{Error: &pb.RpcBlockLinkListSetAppearanceResponseError{Code: code}} + if err != nil { + m.Error.Description = err.Error() + } else { + m.Event = ctx.GetResponseEvent() + } + return m + } + err := mw.doBlockService(func(bs block.Service) (err error) { + return bs.SetLinkAppearance(ctx, *req) + }) + if err != nil { + return response(pb.RpcBlockLinkListSetAppearanceResponseError_UNKNOWN_ERROR, err) + } + return response(pb.RpcBlockLinkListSetAppearanceResponseError_NULL, nil) +} + func (mw *Middleware) BlockListSetAlign(req *pb.RpcBlockListSetAlignRequest) *pb.RpcBlockListSetAlignResponse { ctx := state.NewContext(nil) response := func(code pb.RpcBlockListSetAlignResponseErrorCode, err error) *pb.RpcBlockListSetAlignResponse { @@ -680,10 +581,10 @@ func (mw *Middleware) BlockListSetAlign(req *pb.RpcBlockListSetAlignRequest) *pb return response(pb.RpcBlockListSetAlignResponseError_NULL, nil) } -func (mw *Middleware) ExternalDropFiles(req *pb.RpcExternalDropFilesRequest) *pb.RpcExternalDropFilesResponse { +func (mw *Middleware) FileDrop(req *pb.RpcFileDropRequest) *pb.RpcFileDropResponse { ctx := state.NewContext(nil) - response := func(code pb.RpcExternalDropFilesResponseErrorCode, err error) *pb.RpcExternalDropFilesResponse { - m := &pb.RpcExternalDropFilesResponse{Error: &pb.RpcExternalDropFilesResponseError{Code: code}} + response := func(code pb.RpcFileDropResponseErrorCode, err error) *pb.RpcFileDropResponse { + m := &pb.RpcFileDropResponse{Error: &pb.RpcFileDropResponseError{Code: code}} if err != nil { m.Error.Description = err.Error() } else { @@ -695,27 +596,15 @@ func (mw *Middleware) ExternalDropFiles(req *pb.RpcExternalDropFilesRequest) *pb return bs.DropFiles(*req) }) if err != nil { - return response(pb.RpcExternalDropFilesResponseError_UNKNOWN_ERROR, err) + return response(pb.RpcFileDropResponseError_UNKNOWN_ERROR, err) } - return response(pb.RpcExternalDropFilesResponseError_NULL, nil) + return response(pb.RpcFileDropResponseError_NULL, nil) } -func (mw *Middleware) ExternalDropContent(req *pb.RpcExternalDropContentRequest) *pb.RpcExternalDropContentResponse { - response := func(code pb.RpcExternalDropContentResponseErrorCode, err error) *pb.RpcExternalDropContentResponse { - m := &pb.RpcExternalDropContentResponse{Error: &pb.RpcExternalDropContentResponseError{Code: code}} - if err != nil { - m.Error.Description = err.Error() - } - return m - } - // TODO - return response(pb.RpcExternalDropContentResponseError_NULL, nil) -} - -func (mw *Middleware) BlockListMove(req *pb.RpcBlockListMoveRequest) *pb.RpcBlockListMoveResponse { +func (mw *Middleware) BlockListMoveToExistingObject(req *pb.RpcBlockListMoveToExistingObjectRequest) *pb.RpcBlockListMoveToExistingObjectResponse { ctx := state.NewContext(nil) - response := func(code pb.RpcBlockListMoveResponseErrorCode, err error) *pb.RpcBlockListMoveResponse { - m := &pb.RpcBlockListMoveResponse{Error: &pb.RpcBlockListMoveResponseError{Code: code}} + response := func(code pb.RpcBlockListMoveToExistingObjectResponseErrorCode, err error) *pb.RpcBlockListMoveToExistingObjectResponse { + m := &pb.RpcBlockListMoveToExistingObjectResponse{Error: &pb.RpcBlockListMoveToExistingObjectResponseError{Code: code}} if err != nil { m.Error.Description = err.Error() } else { @@ -727,15 +616,15 @@ func (mw *Middleware) BlockListMove(req *pb.RpcBlockListMoveRequest) *pb.RpcBloc return bs.MoveBlocks(ctx, *req) }) if err != nil { - return response(pb.RpcBlockListMoveResponseError_UNKNOWN_ERROR, err) + return response(pb.RpcBlockListMoveToExistingObjectResponseError_UNKNOWN_ERROR, err) } - return response(pb.RpcBlockListMoveResponseError_NULL, nil) + return response(pb.RpcBlockListMoveToExistingObjectResponseError_NULL, nil) } -func (mw *Middleware) BlockListMoveToNewPage(req *pb.RpcBlockListMoveToNewPageRequest) *pb.RpcBlockListMoveToNewPageResponse { +func (mw *Middleware) BlockListMoveToNewObject(req *pb.RpcBlockListMoveToNewObjectRequest) *pb.RpcBlockListMoveToNewObjectResponse { ctx := state.NewContext(nil) - response := func(code pb.RpcBlockListMoveToNewPageResponseErrorCode, linkId string, err error) *pb.RpcBlockListMoveToNewPageResponse { - m := &pb.RpcBlockListMoveToNewPageResponse{Error: &pb.RpcBlockListMoveToNewPageResponseError{Code: code}, LinkId: linkId} + response := func(code pb.RpcBlockListMoveToNewObjectResponseErrorCode, linkId string, err error) *pb.RpcBlockListMoveToNewObjectResponse { + m := &pb.RpcBlockListMoveToNewObjectResponse{Error: &pb.RpcBlockListMoveToNewObjectResponseError{Code: code}, LinkId: linkId} if err != nil { m.Error.Description = err.Error() } else { @@ -751,15 +640,15 @@ func (mw *Middleware) BlockListMoveToNewPage(req *pb.RpcBlockListMoveToNewPageRe }) if err != nil { - return response(pb.RpcBlockListMoveToNewPageResponseError_UNKNOWN_ERROR, "", err) + return response(pb.RpcBlockListMoveToNewObjectResponseError_UNKNOWN_ERROR, "", err) } - return response(pb.RpcBlockListMoveToNewPageResponseError_NULL, linkId, nil) + return response(pb.RpcBlockListMoveToNewObjectResponseError_NULL, linkId, nil) } -func (mw *Middleware) BlockListConvertChildrenToPages(req *pb.RpcBlockListConvertChildrenToPagesRequest) *pb.RpcBlockListConvertChildrenToPagesResponse { +func (mw *Middleware) BlockListConvertToObjects(req *pb.RpcBlockListConvertToObjectsRequest) *pb.RpcBlockListConvertToObjectsResponse { ctx := state.NewContext(nil) - response := func(code pb.RpcBlockListConvertChildrenToPagesResponseErrorCode, linkIds []string, err error) *pb.RpcBlockListConvertChildrenToPagesResponse { - m := &pb.RpcBlockListConvertChildrenToPagesResponse{Error: &pb.RpcBlockListConvertChildrenToPagesResponseError{Code: code}, LinkIds: linkIds} + response := func(code pb.RpcBlockListConvertToObjectsResponseErrorCode, linkIds []string, err error) *pb.RpcBlockListConvertToObjectsResponse { + m := &pb.RpcBlockListConvertToObjectsResponse{Error: &pb.RpcBlockListConvertToObjectsResponseError{Code: code}, LinkIds: linkIds} if err != nil { m.Error.Description = err.Error() } else { @@ -773,15 +662,15 @@ func (mw *Middleware) BlockListConvertChildrenToPages(req *pb.RpcBlockListConver return }) if err != nil { - return response(pb.RpcBlockListConvertChildrenToPagesResponseError_UNKNOWN_ERROR, []string{}, err) + return response(pb.RpcBlockListConvertToObjectsResponseError_UNKNOWN_ERROR, []string{}, err) } - return response(pb.RpcBlockListConvertChildrenToPagesResponseError_NULL, linkIds, nil) + return response(pb.RpcBlockListConvertToObjectsResponseError_NULL, linkIds, nil) } -func (mw *Middleware) BlockListSetTextStyle(req *pb.RpcBlockListSetTextStyleRequest) *pb.RpcBlockListSetTextStyleResponse { +func (mw *Middleware) BlockTextListSetStyle(req *pb.RpcBlockTextListSetStyleRequest) *pb.RpcBlockTextListSetStyleResponse { ctx := state.NewContext(nil) - response := func(code pb.RpcBlockListSetTextStyleResponseErrorCode, err error) *pb.RpcBlockListSetTextStyleResponse { - m := &pb.RpcBlockListSetTextStyleResponse{Error: &pb.RpcBlockListSetTextStyleResponseError{Code: code}} + response := func(code pb.RpcBlockTextListSetStyleResponseErrorCode, err error) *pb.RpcBlockTextListSetStyleResponse { + m := &pb.RpcBlockTextListSetStyleResponse{Error: &pb.RpcBlockTextListSetStyleResponseError{Code: code}} if err != nil { m.Error.Description = err.Error() } else { @@ -793,15 +682,15 @@ func (mw *Middleware) BlockListSetTextStyle(req *pb.RpcBlockListSetTextStyleRequ return bs.SetTextStyle(ctx, req.ContextId, req.Style, req.BlockIds...) }) if err != nil { - return response(pb.RpcBlockListSetTextStyleResponseError_UNKNOWN_ERROR, err) + return response(pb.RpcBlockTextListSetStyleResponseError_UNKNOWN_ERROR, err) } - return response(pb.RpcBlockListSetTextStyleResponseError_NULL, nil) + return response(pb.RpcBlockTextListSetStyleResponseError_NULL, nil) } -func (mw *Middleware) BlockListSetDivStyle(req *pb.RpcBlockListSetDivStyleRequest) *pb.RpcBlockListSetDivStyleResponse { +func (mw *Middleware) BlockDivListSetStyle(req *pb.RpcBlockDivListSetStyleRequest) *pb.RpcBlockDivListSetStyleResponse { ctx := state.NewContext(nil) - response := func(code pb.RpcBlockListSetDivStyleResponseErrorCode, err error) *pb.RpcBlockListSetDivStyleResponse { - m := &pb.RpcBlockListSetDivStyleResponse{Error: &pb.RpcBlockListSetDivStyleResponseError{Code: code}} + response := func(code pb.RpcBlockDivListSetStyleResponseErrorCode, err error) *pb.RpcBlockDivListSetStyleResponse { + m := &pb.RpcBlockDivListSetStyleResponse{Error: &pb.RpcBlockDivListSetStyleResponseError{Code: code}} if err != nil { m.Error.Description = err.Error() } else { @@ -813,15 +702,15 @@ func (mw *Middleware) BlockListSetDivStyle(req *pb.RpcBlockListSetDivStyleReques return bs.SetDivStyle(ctx, req.ContextId, req.Style, req.BlockIds...) }) if err != nil { - return response(pb.RpcBlockListSetDivStyleResponseError_UNKNOWN_ERROR, err) + return response(pb.RpcBlockDivListSetStyleResponseError_UNKNOWN_ERROR, err) } - return response(pb.RpcBlockListSetDivStyleResponseError_NULL, nil) + return response(pb.RpcBlockDivListSetStyleResponseError_NULL, nil) } -func (mw *Middleware) BlockListSetTextColor(req *pb.RpcBlockListSetTextColorRequest) *pb.RpcBlockListSetTextColorResponse { +func (mw *Middleware) BlockTextListSetColor(req *pb.RpcBlockTextListSetColorRequest) *pb.RpcBlockTextListSetColorResponse { ctx := state.NewContext(nil) - response := func(code pb.RpcBlockListSetTextColorResponseErrorCode, err error) *pb.RpcBlockListSetTextColorResponse { - m := &pb.RpcBlockListSetTextColorResponse{Error: &pb.RpcBlockListSetTextColorResponseError{Code: code}} + response := func(code pb.RpcBlockTextListSetColorResponseErrorCode, err error) *pb.RpcBlockTextListSetColorResponse { + m := &pb.RpcBlockTextListSetColorResponse{Error: &pb.RpcBlockTextListSetColorResponseError{Code: code}} if err != nil { m.Error.Description = err.Error() } else { @@ -833,15 +722,15 @@ func (mw *Middleware) BlockListSetTextColor(req *pb.RpcBlockListSetTextColorRequ return bs.SetTextColor(ctx, req.ContextId, req.Color, req.BlockIds...) }) if err != nil { - return response(pb.RpcBlockListSetTextColorResponseError_UNKNOWN_ERROR, err) + return response(pb.RpcBlockTextListSetColorResponseError_UNKNOWN_ERROR, err) } - return response(pb.RpcBlockListSetTextColorResponseError_NULL, nil) + return response(pb.RpcBlockTextListSetColorResponseError_NULL, nil) } -func (mw *Middleware) BlockListSetTextMark(req *pb.RpcBlockListSetTextMarkRequest) *pb.RpcBlockListSetTextMarkResponse { +func (mw *Middleware) BlockTextListSetMark(req *pb.RpcBlockTextListSetMarkRequest) *pb.RpcBlockTextListSetMarkResponse { ctx := state.NewContext(nil) - response := func(code pb.RpcBlockListSetTextMarkResponseErrorCode, err error) *pb.RpcBlockListSetTextMarkResponse { - m := &pb.RpcBlockListSetTextMarkResponse{Error: &pb.RpcBlockListSetTextMarkResponseError{Code: code}} + response := func(code pb.RpcBlockTextListSetMarkResponseErrorCode, err error) *pb.RpcBlockTextListSetMarkResponse { + m := &pb.RpcBlockTextListSetMarkResponse{Error: &pb.RpcBlockTextListSetMarkResponseError{Code: code}} if err != nil { m.Error.Description = err.Error() } else { @@ -853,15 +742,15 @@ func (mw *Middleware) BlockListSetTextMark(req *pb.RpcBlockListSetTextMarkReques return bs.SetTextMark(ctx, req.ContextId, req.Mark, req.BlockIds...) }) if err != nil { - return response(pb.RpcBlockListSetTextMarkResponseError_UNKNOWN_ERROR, err) + return response(pb.RpcBlockTextListSetMarkResponseError_UNKNOWN_ERROR, err) } - return response(pb.RpcBlockListSetTextMarkResponseError_NULL, nil) + return response(pb.RpcBlockTextListSetMarkResponseError_NULL, nil) } -func (mw *Middleware) BlockSetTextText(req *pb.RpcBlockSetTextTextRequest) *pb.RpcBlockSetTextTextResponse { +func (mw *Middleware) BlockTextSetText(req *pb.RpcBlockTextSetTextRequest) *pb.RpcBlockTextSetTextResponse { ctx := state.NewContext(nil) - response := func(code pb.RpcBlockSetTextTextResponseErrorCode, err error) *pb.RpcBlockSetTextTextResponse { - m := &pb.RpcBlockSetTextTextResponse{Error: &pb.RpcBlockSetTextTextResponseError{Code: code}} + response := func(code pb.RpcBlockTextSetTextResponseErrorCode, err error) *pb.RpcBlockTextSetTextResponse { + m := &pb.RpcBlockTextSetTextResponse{Error: &pb.RpcBlockTextSetTextResponseError{Code: code}} if err != nil { m.Error.Description = err.Error() } else { @@ -873,15 +762,15 @@ func (mw *Middleware) BlockSetTextText(req *pb.RpcBlockSetTextTextRequest) *pb.R return bs.SetTextText(ctx, *req) }) if err != nil { - return response(pb.RpcBlockSetTextTextResponseError_UNKNOWN_ERROR, err) + return response(pb.RpcBlockTextSetTextResponseError_UNKNOWN_ERROR, err) } - return response(pb.RpcBlockSetTextTextResponseError_NULL, nil) + return response(pb.RpcBlockTextSetTextResponseError_NULL, nil) } -func (mw *Middleware) BlockSetLatexText(req *pb.RpcBlockSetLatexTextRequest) *pb.RpcBlockSetLatexTextResponse { +func (mw *Middleware) BlockLatexSetText(req *pb.RpcBlockLatexSetTextRequest) *pb.RpcBlockLatexSetTextResponse { ctx := state.NewContext(nil) - response := func(code pb.RpcBlockSetLatexTextResponseErrorCode, err error) *pb.RpcBlockSetLatexTextResponse { - m := &pb.RpcBlockSetLatexTextResponse{Error: &pb.RpcBlockSetLatexTextResponseError{Code: code}} + response := func(code pb.RpcBlockLatexSetTextResponseErrorCode, err error) *pb.RpcBlockLatexSetTextResponse { + m := &pb.RpcBlockLatexSetTextResponse{Error: &pb.RpcBlockLatexSetTextResponseError{Code: code}} if err != nil { m.Error.Description = err.Error() } else { @@ -893,15 +782,15 @@ func (mw *Middleware) BlockSetLatexText(req *pb.RpcBlockSetLatexTextRequest) *pb return bs.SetLatexText(ctx, *req) }) if err != nil { - return response(pb.RpcBlockSetLatexTextResponseError_UNKNOWN_ERROR, err) + return response(pb.RpcBlockLatexSetTextResponseError_UNKNOWN_ERROR, err) } - return response(pb.RpcBlockSetLatexTextResponseError_NULL, nil) + return response(pb.RpcBlockLatexSetTextResponseError_NULL, nil) } -func (mw *Middleware) BlockSetTextStyle(req *pb.RpcBlockSetTextStyleRequest) *pb.RpcBlockSetTextStyleResponse { +func (mw *Middleware) BlockTextSetStyle(req *pb.RpcBlockTextSetStyleRequest) *pb.RpcBlockTextSetStyleResponse { ctx := state.NewContext(nil) - response := func(code pb.RpcBlockSetTextStyleResponseErrorCode, err error) *pb.RpcBlockSetTextStyleResponse { - m := &pb.RpcBlockSetTextStyleResponse{Error: &pb.RpcBlockSetTextStyleResponseError{Code: code}} + response := func(code pb.RpcBlockTextSetStyleResponseErrorCode, err error) *pb.RpcBlockTextSetStyleResponse { + m := &pb.RpcBlockTextSetStyleResponse{Error: &pb.RpcBlockTextSetStyleResponseError{Code: code}} if err != nil { m.Error.Description = err.Error() } else { @@ -913,15 +802,15 @@ func (mw *Middleware) BlockSetTextStyle(req *pb.RpcBlockSetTextStyleRequest) *pb return bs.SetTextStyle(ctx, req.ContextId, req.Style, req.BlockId) }) if err != nil { - return response(pb.RpcBlockSetTextStyleResponseError_UNKNOWN_ERROR, err) + return response(pb.RpcBlockTextSetStyleResponseError_UNKNOWN_ERROR, err) } - return response(pb.RpcBlockSetTextStyleResponseError_NULL, nil) + return response(pb.RpcBlockTextSetStyleResponseError_NULL, nil) } -func (mw *Middleware) BlockSetTextIcon(req *pb.RpcBlockSetTextIconRequest) *pb.RpcBlockSetTextIconResponse { +func (mw *Middleware) BlockTextSetIcon(req *pb.RpcBlockTextSetIconRequest) *pb.RpcBlockTextSetIconResponse { ctx := state.NewContext(nil) - response := func(code pb.RpcBlockSetTextIconResponseErrorCode, err error) *pb.RpcBlockSetTextIconResponse { - m := &pb.RpcBlockSetTextIconResponse{Error: &pb.RpcBlockSetTextIconResponseError{Code: code}} + response := func(code pb.RpcBlockTextSetIconResponseErrorCode, err error) *pb.RpcBlockTextSetIconResponse { + m := &pb.RpcBlockTextSetIconResponse{Error: &pb.RpcBlockTextSetIconResponseError{Code: code}} if err != nil { m.Error.Description = err.Error() } else { @@ -933,15 +822,15 @@ func (mw *Middleware) BlockSetTextIcon(req *pb.RpcBlockSetTextIconRequest) *pb.R return bs.SetTextIcon(ctx, req.ContextId, req.IconImage, req.IconEmoji, req.BlockId) }) if err != nil { - return response(pb.RpcBlockSetTextIconResponseError_UNKNOWN_ERROR, err) + return response(pb.RpcBlockTextSetIconResponseError_UNKNOWN_ERROR, err) } - return response(pb.RpcBlockSetTextIconResponseError_NULL, nil) + return response(pb.RpcBlockTextSetIconResponseError_NULL, nil) } -func (mw *Middleware) BlockSetTextChecked(req *pb.RpcBlockSetTextCheckedRequest) *pb.RpcBlockSetTextCheckedResponse { +func (mw *Middleware) BlockTextSetChecked(req *pb.RpcBlockTextSetCheckedRequest) *pb.RpcBlockTextSetCheckedResponse { ctx := state.NewContext(nil) - response := func(code pb.RpcBlockSetTextCheckedResponseErrorCode, err error) *pb.RpcBlockSetTextCheckedResponse { - m := &pb.RpcBlockSetTextCheckedResponse{Error: &pb.RpcBlockSetTextCheckedResponseError{Code: code}} + response := func(code pb.RpcBlockTextSetCheckedResponseErrorCode, err error) *pb.RpcBlockTextSetCheckedResponse { + m := &pb.RpcBlockTextSetCheckedResponse{Error: &pb.RpcBlockTextSetCheckedResponseError{Code: code}} if err != nil { m.Error.Description = err.Error() } else { @@ -953,14 +842,14 @@ func (mw *Middleware) BlockSetTextChecked(req *pb.RpcBlockSetTextCheckedRequest) return bs.SetTextChecked(ctx, *req) }) if err != nil { - return response(pb.RpcBlockSetTextCheckedResponseError_UNKNOWN_ERROR, err) + return response(pb.RpcBlockTextSetCheckedResponseError_UNKNOWN_ERROR, err) } - return response(pb.RpcBlockSetTextCheckedResponseError_NULL, nil) + return response(pb.RpcBlockTextSetCheckedResponseError_NULL, nil) } -func (mw *Middleware) BlockSetFileName(req *pb.RpcBlockSetFileNameRequest) *pb.RpcBlockSetFileNameResponse { - response := func(code pb.RpcBlockSetFileNameResponseErrorCode, err error) *pb.RpcBlockSetFileNameResponse { - m := &pb.RpcBlockSetFileNameResponse{Error: &pb.RpcBlockSetFileNameResponseError{Code: code}} +func (mw *Middleware) BlockFileSetName(req *pb.RpcBlockFileSetNameRequest) *pb.RpcBlockFileSetNameResponse { + response := func(code pb.RpcBlockFileSetNameResponseErrorCode, err error) *pb.RpcBlockFileSetNameResponse { + m := &pb.RpcBlockFileSetNameResponse{Error: &pb.RpcBlockFileSetNameResponseError{Code: code}} if err != nil { m.Error.Description = err.Error() } @@ -968,13 +857,13 @@ func (mw *Middleware) BlockSetFileName(req *pb.RpcBlockSetFileNameRequest) *pb.R return m } // TODO - return response(pb.RpcBlockSetFileNameResponseError_NULL, nil) + return response(pb.RpcBlockFileSetNameResponseError_NULL, nil) } -func (mw *Middleware) BlockListSetFileStyle(req *pb.RpcBlockListSetFileStyleRequest) *pb.RpcBlockListSetFileStyleResponse { +func (mw *Middleware) BlockFileListSetStyle(req *pb.RpcBlockFileListSetStyleRequest) *pb.RpcBlockFileListSetStyleResponse { ctx := state.NewContext(nil) - response := func(code pb.RpcBlockListSetFileStyleResponseErrorCode, err error) *pb.RpcBlockListSetFileStyleResponse { - m := &pb.RpcBlockListSetFileStyleResponse{Error: &pb.RpcBlockListSetFileStyleResponseError{Code: code}} + response := func(code pb.RpcBlockFileListSetStyleResponseErrorCode, err error) *pb.RpcBlockFileListSetStyleResponse { + m := &pb.RpcBlockFileListSetStyleResponse{Error: &pb.RpcBlockFileListSetStyleResponseError{Code: code}} if err != nil { m.Error.Description = err.Error() } else { @@ -987,15 +876,15 @@ func (mw *Middleware) BlockListSetFileStyle(req *pb.RpcBlockListSetFileStyleRequ return bs.SetFileStyle(ctx, req.ContextId, req.Style, req.BlockIds...) }) if err != nil { - return response(pb.RpcBlockListSetFileStyleResponseError_UNKNOWN_ERROR, err) + return response(pb.RpcBlockFileListSetStyleResponseError_UNKNOWN_ERROR, err) } - return response(pb.RpcBlockListSetFileStyleResponseError_NULL, nil) + return response(pb.RpcBlockFileListSetStyleResponseError_NULL, nil) } -func (mw *Middleware) BlockSetImageName(req *pb.RpcBlockSetImageNameRequest) *pb.RpcBlockSetImageNameResponse { - response := func(code pb.RpcBlockSetImageNameResponseErrorCode, err error) *pb.RpcBlockSetImageNameResponse { - m := &pb.RpcBlockSetImageNameResponse{Error: &pb.RpcBlockSetImageNameResponseError{Code: code}} +func (mw *Middleware) BlockImageSetName(req *pb.RpcBlockImageSetNameRequest) *pb.RpcBlockImageSetNameResponse { + response := func(code pb.RpcBlockImageSetNameResponseErrorCode, err error) *pb.RpcBlockImageSetNameResponse { + m := &pb.RpcBlockImageSetNameResponse{Error: &pb.RpcBlockImageSetNameResponseError{Code: code}} if err != nil { m.Error.Description = err.Error() } @@ -1003,12 +892,12 @@ func (mw *Middleware) BlockSetImageName(req *pb.RpcBlockSetImageNameRequest) *pb return m } // TODO - return response(pb.RpcBlockSetImageNameResponseError_NULL, nil) + return response(pb.RpcBlockImageSetNameResponseError_NULL, nil) } -func (mw *Middleware) BlockSetImageWidth(req *pb.RpcBlockSetImageWidthRequest) *pb.RpcBlockSetImageWidthResponse { - response := func(code pb.RpcBlockSetImageWidthResponseErrorCode, err error) *pb.RpcBlockSetImageWidthResponse { - m := &pb.RpcBlockSetImageWidthResponse{Error: &pb.RpcBlockSetImageWidthResponseError{Code: code}} +func (mw *Middleware) BlockVideoSetName(req *pb.RpcBlockVideoSetNameRequest) *pb.RpcBlockVideoSetNameResponse { + response := func(code pb.RpcBlockVideoSetNameResponseErrorCode, err error) *pb.RpcBlockVideoSetNameResponse { + m := &pb.RpcBlockVideoSetNameResponse{Error: &pb.RpcBlockVideoSetNameResponseError{Code: code}} if err != nil { m.Error.Description = err.Error() } @@ -1016,33 +905,7 @@ func (mw *Middleware) BlockSetImageWidth(req *pb.RpcBlockSetImageWidthRequest) * return m } // TODO - return response(pb.RpcBlockSetImageWidthResponseError_NULL, nil) -} - -func (mw *Middleware) BlockSetVideoName(req *pb.RpcBlockSetVideoNameRequest) *pb.RpcBlockSetVideoNameResponse { - response := func(code pb.RpcBlockSetVideoNameResponseErrorCode, err error) *pb.RpcBlockSetVideoNameResponse { - m := &pb.RpcBlockSetVideoNameResponse{Error: &pb.RpcBlockSetVideoNameResponseError{Code: code}} - if err != nil { - m.Error.Description = err.Error() - } - - return m - } - // TODO - return response(pb.RpcBlockSetVideoNameResponseError_NULL, nil) -} - -func (mw *Middleware) BlockSetVideoWidth(req *pb.RpcBlockSetVideoWidthRequest) *pb.RpcBlockSetVideoWidthResponse { - response := func(code pb.RpcBlockSetVideoWidthResponseErrorCode, err error) *pb.RpcBlockSetVideoWidthResponse { - m := &pb.RpcBlockSetVideoWidthResponse{Error: &pb.RpcBlockSetVideoWidthResponseError{Code: code}} - if err != nil { - m.Error.Description = err.Error() - } - - return m - } - // TODO - return response(pb.RpcBlockSetVideoWidthResponseError_NULL, nil) + return response(pb.RpcBlockVideoSetNameResponseError_NULL, nil) } func (mw *Middleware) BlockSplit(req *pb.RpcBlockSplitRequest) *pb.RpcBlockSplitResponse { @@ -1087,18 +950,6 @@ func (mw *Middleware) BlockMerge(req *pb.RpcBlockMergeRequest) *pb.RpcBlockMerge return response(pb.RpcBlockMergeResponseError_NULL, nil) } -func (mw *Middleware) BlockSetLinkTargetBlockId(req *pb.RpcBlockSetLinkTargetBlockIdRequest) *pb.RpcBlockSetLinkTargetBlockIdResponse { - response := func(code pb.RpcBlockSetLinkTargetBlockIdResponseErrorCode, err error) *pb.RpcBlockSetLinkTargetBlockIdResponse { - m := &pb.RpcBlockSetLinkTargetBlockIdResponse{Error: &pb.RpcBlockSetLinkTargetBlockIdResponseError{Code: code}} - if err != nil { - m.Error.Description = err.Error() - } - return m - } - // TODO - return response(pb.RpcBlockSetLinkTargetBlockIdResponseError_NULL, nil) -} - func (mw *Middleware) BlockBookmarkFetch(req *pb.RpcBlockBookmarkFetchRequest) *pb.RpcBlockBookmarkFetchResponse { ctx := state.NewContext(nil) response := func(code pb.RpcBlockBookmarkFetchResponseErrorCode, err error) *pb.RpcBlockBookmarkFetchResponse { @@ -1119,9 +970,9 @@ func (mw *Middleware) BlockBookmarkFetch(req *pb.RpcBlockBookmarkFetchRequest) * return response(pb.RpcBlockBookmarkFetchResponseError_NULL, nil) } -func (mw *Middleware) UploadFile(req *pb.RpcUploadFileRequest) *pb.RpcUploadFileResponse { - response := func(hash string, code pb.RpcUploadFileResponseErrorCode, err error) *pb.RpcUploadFileResponse { - m := &pb.RpcUploadFileResponse{Error: &pb.RpcUploadFileResponseError{Code: code}, Hash: hash} +func (mw *Middleware) FileUpload(req *pb.RpcFileUploadRequest) *pb.RpcFileUploadResponse { + response := func(hash string, code pb.RpcFileUploadResponseErrorCode, err error) *pb.RpcFileUploadResponse { + m := &pb.RpcFileUploadResponse{Error: &pb.RpcFileUploadResponseError{Code: code}, Hash: hash} if err != nil { m.Error.Description = err.Error() } @@ -1133,14 +984,14 @@ func (mw *Middleware) UploadFile(req *pb.RpcUploadFileRequest) *pb.RpcUploadFile return }) if err != nil { - return response("", pb.RpcUploadFileResponseError_UNKNOWN_ERROR, err) + return response("", pb.RpcFileUploadResponseError_UNKNOWN_ERROR, err) } - return response(hash, pb.RpcUploadFileResponseError_NULL, nil) + return response(hash, pb.RpcFileUploadResponseError_NULL, nil) } -func (mw *Middleware) DownloadFile(req *pb.RpcDownloadFileRequest) *pb.RpcDownloadFileResponse { - response := func(path string, code pb.RpcDownloadFileResponseErrorCode, err error) *pb.RpcDownloadFileResponse { - m := &pb.RpcDownloadFileResponse{Error: &pb.RpcDownloadFileResponseError{Code: code}, LocalPath: path} +func (mw *Middleware) FileDownload(req *pb.RpcFileDownloadRequest) *pb.RpcFileDownloadResponse { + response := func(path string, code pb.RpcFileDownloadResponseErrorCode, err error) *pb.RpcFileDownloadResponse { + m := &pb.RpcFileDownloadResponse{Error: &pb.RpcFileDownloadResponseError{Code: code}, LocalPath: path} if err != nil { m.Error.Description = err.Error() } @@ -1153,7 +1004,7 @@ func (mw *Middleware) DownloadFile(req *pb.RpcDownloadFileRequest) *pb.RpcDownlo err := os.MkdirAll(req.Path, 0755) if err != nil { - return response("", pb.RpcDownloadFileResponseError_BAD_INPUT, err) + return response("", pb.RpcFileDownloadResponseError_BAD_INPUT, err) } progress := process.NewProgress(pb.ModelProcess_SaveFile) defer progress.Finish() @@ -1162,7 +1013,7 @@ func (mw *Middleware) DownloadFile(req *pb.RpcDownloadFileRequest) *pb.RpcDownlo return bs.ProcessAdd(progress) }) if err != nil { - return response("", pb.RpcDownloadFileResponseError_BAD_INPUT, err) + return response("", pb.RpcFileDownloadResponseError_BAD_INPUT, err) } progress.SetProgressMessage("saving file") @@ -1186,14 +1037,14 @@ func (mw *Middleware) DownloadFile(req *pb.RpcDownloadFileRequest) *pb.RpcDownlo f, err := mw.getFileOrLargestImage(ctx, req.Hash) if err != nil { - return response("", pb.RpcDownloadFileResponseError_BAD_INPUT, err) + return response("", pb.RpcFileDownloadResponseError_BAD_INPUT, err) } progress.SetTotal(f.Meta().Size) r, err := f.Reader() if err != nil { - return response("", pb.RpcDownloadFileResponseError_BAD_INPUT, err) + return response("", pb.RpcFileDownloadResponseError_BAD_INPUT, err) } countReader = datacounter.NewReaderCounter(r) fileName := f.Meta().Name @@ -1203,12 +1054,12 @@ func (mw *Middleware) DownloadFile(req *pb.RpcDownloadFileRequest) *pb.RpcDownlo path, err := files.WriteReaderIntoFileReuseSameExistingFile(req.Path+string(os.PathSeparator)+fileName, countReader) if err != nil { - return response("", pb.RpcDownloadFileResponseError_UNKNOWN_ERROR, err) + return response("", pb.RpcFileDownloadResponseError_UNKNOWN_ERROR, err) } progress.SetDone(f.Meta().Size) - return response(path, pb.RpcDownloadFileResponseError_NULL, nil) + return response(path, pb.RpcFileDownloadResponseError_NULL, nil) } func (mw *Middleware) getFileOrLargestImage(ctx context.Context, hash string) (core.File, error) { @@ -1269,10 +1120,10 @@ func (mw *Middleware) BlockFileCreateAndUpload(req *pb.RpcBlockFileCreateAndUplo return response(pb.RpcBlockFileCreateAndUploadResponseError_NULL, id, nil) } -func (mw *Middleware) BlockObjectTypeSet(req *pb.RpcBlockObjectTypeSetRequest) *pb.RpcBlockObjectTypeSetResponse { +func (mw *Middleware) ObjectSetObjectType(req *pb.RpcObjectSetObjectTypeRequest) *pb.RpcObjectSetObjectTypeResponse { ctx := state.NewContext(nil) - response := func(code pb.RpcBlockObjectTypeSetResponseErrorCode, err error) *pb.RpcBlockObjectTypeSetResponse { - m := &pb.RpcBlockObjectTypeSetResponse{Error: &pb.RpcBlockObjectTypeSetResponseError{Code: code}} + response := func(code pb.RpcObjectSetObjectTypeResponseErrorCode, err error) *pb.RpcObjectSetObjectTypeResponse { + m := &pb.RpcObjectSetObjectTypeResponse{Error: &pb.RpcObjectSetObjectTypeResponseError{Code: code}} if err != nil { m.Error.Description = err.Error() } else { @@ -1284,10 +1135,10 @@ func (mw *Middleware) BlockObjectTypeSet(req *pb.RpcBlockObjectTypeSetRequest) * if err := mw.doBlockService(func(bs block.Service) (err error) { return bs.SetObjectTypes(ctx, req.ContextId, []string{req.ObjectTypeUrl}) }); err != nil { - return response(pb.RpcBlockObjectTypeSetResponseError_UNKNOWN_ERROR, err) + return response(pb.RpcObjectSetObjectTypeResponseError_UNKNOWN_ERROR, err) } - return response(pb.RpcBlockObjectTypeSetResponseError_NULL, nil) + return response(pb.RpcObjectSetObjectTypeResponseError_NULL, nil) } func (mw *Middleware) BlockRelationSetKey(req *pb.RpcBlockRelationSetKeyRequest) *pb.RpcBlockRelationSetKeyResponse { diff --git a/core/block/database/database.go b/core/block/database/database.go index 8e9a620aa..dc7f76ae9 100644 --- a/core/block/database/database.go +++ b/core/block/database/database.go @@ -17,7 +17,7 @@ import ( type Ctrl interface { Anytype() core.Service - SetDetails(ctx *state.Context, req pb.RpcBlockSetDetailsRequest) error + SetDetails(ctx *state.Context, req pb.RpcObjectSetDetailsRequest) error GetRelations(objectId string) (relations []*model.Relation, err error) CreateSmartBlockFromTemplate(ctx context.Context, sbType coresb.SmartBlockType, details *types.Struct, relations []*model.Relation, templateId string) (id string, newDetails *types.Struct, err error) @@ -44,7 +44,7 @@ type router struct{ s Ctrl } func (r router) Get(objectType *model.ObjectType) (database.Database, error) { // todo: wrap into iface - setDetailsNoContext := func(req pb.RpcBlockSetDetailsRequest) error { + setDetailsNoContext := func(req pb.RpcObjectSetDetailsRequest) error { return r.s.SetDetails(nil, req) } diff --git a/core/block/database/objects/objects.go b/core/block/database/objects/objects.go index bd1e6e0f7..e369ec192 100644 --- a/core/block/database/objects/objects.go +++ b/core/block/database/objects/objects.go @@ -25,7 +25,7 @@ var log = logging.Logger("anytype-core-db") func New( pageStore objectstore.ObjectStore, objectType *model.ObjectType, - setDetails func(req pb.RpcBlockSetDetailsRequest) error, + setDetails func(req pb.RpcObjectSetDetailsRequest) error, getRelations func(objectId string) (relations []*model.Relation, err error), setRelations func(id string, relations []*model.Relation) (err error), modifyExtraRelations func(id string, modifier func(current []*model.Relation) ([]*model.Relation, error)) error, @@ -49,7 +49,7 @@ func New( type setOfObjects struct { objectstore.ObjectStore objectType *model.ObjectType - setDetails func(req pb.RpcBlockSetDetailsRequest) error + setDetails func(req pb.RpcObjectSetDetailsRequest) error getRelations func(objectId string) (relations []*model.Relation, err error) setRelations func(id string, relations []*model.Relation) (err error) modifyExtraRelations func(id string, modifier func(current []*model.Relation) ([]*model.Relation, error)) error @@ -123,14 +123,14 @@ func (sp setOfObjects) Create(ctx context.Context, relations []*model.Relation, } func (sp *setOfObjects) Update(id string, rels []*model.Relation, rec database.Record) error { - var details []*pb.RpcBlockSetDetailsDetail + var details []*pb.RpcObjectSetDetailsDetail if rec.Details != nil && rec.Details.Fields != nil { for k, v := range rec.Details.Fields { if _, ok := v.Kind.(*types.Value_NullValue); ok { v = nil } - details = append(details, &pb.RpcBlockSetDetailsDetail{Key: k, Value: v}) + details = append(details, &pb.RpcObjectSetDetailsDetail{Key: k, Value: v}) } } @@ -143,7 +143,7 @@ func (sp *setOfObjects) Update(id string, rels []*model.Relation, rec database.R return nil } - return sp.setDetails(pb.RpcBlockSetDetailsRequest{ + return sp.setDetails(pb.RpcObjectSetDetailsRequest{ ContextId: id, // not sure? Details: details, }) diff --git a/core/block/editor.go b/core/block/editor.go index 292d33628..9b699db32 100644 --- a/core/block/editor.go +++ b/core/block/editor.go @@ -5,9 +5,11 @@ import ( "fmt" "time" + "github.com/anytypeio/go-anytype-middleware/core/block/simple/link" "github.com/anytypeio/go-anytype-middleware/core/block/source" "github.com/anytypeio/go-anytype-middleware/metrics" "github.com/anytypeio/go-anytype-middleware/pkg/lib/core" + "github.com/anytypeio/go-anytype-middleware/pkg/lib/schema" "github.com/anytypeio/go-anytype-middleware/util/ocache" ds "github.com/ipfs/go-datastore" "github.com/textileio/go-threads/core/thread" @@ -30,7 +32,6 @@ import ( coresb "github.com/anytypeio/go-anytype-middleware/pkg/lib/core/smartblock" "github.com/anytypeio/go-anytype-middleware/pkg/lib/localstore/objectstore" "github.com/anytypeio/go-anytype-middleware/pkg/lib/pb/model" - "github.com/anytypeio/go-anytype-middleware/pkg/lib/schema" "github.com/anytypeio/go-anytype-middleware/pkg/lib/threads" "github.com/anytypeio/go-anytype-middleware/util/pbtypes" "github.com/gogo/protobuf/types" @@ -40,7 +41,7 @@ var ErrOptionUsedByOtherObjects = fmt.Errorf("option is used by other objects") func (s *service) MarkArchived(id string, archived bool) (err error) { return s.Do(id, func(b smartblock.SmartBlock) error { - return b.SetDetails(nil, []*pb.RpcBlockSetDetailsDetail{ + return b.SetDetails(nil, []*pb.RpcObjectSetDetailsDetail{ { Key: "isArchived", Value: pbtypes.Bool(archived), @@ -49,7 +50,7 @@ func (s *service) MarkArchived(id string, archived bool) (err error) { }) } -func (s *service) SetBreadcrumbs(ctx *state.Context, req pb.RpcBlockSetBreadcrumbsRequest) (err error) { +func (s *service) SetBreadcrumbs(ctx *state.Context, req pb.RpcObjectSetBreadcrumbsRequest) (err error) { return s.Do(req.BreadcrumbsId, func(b smartblock.SmartBlock) error { if breadcrumbs, ok := b.(*editor.Breadcrumbs); ok { return breadcrumbs.SetCrumbs(req.Ids) @@ -75,7 +76,7 @@ func (s *service) DuplicateBlocks(ctx *state.Context, req pb.RpcBlockListDuplica return } -func (s *service) UnlinkBlock(ctx *state.Context, req pb.RpcBlockUnlinkRequest) (err error) { +func (s *service) UnlinkBlock(ctx *state.Context, req pb.RpcBlockListDeleteRequest) (err error) { return s.DoBasic(req.ContextId, func(b basic.Basic) error { return b.Unlink(ctx, req.BlockIds...) }) @@ -119,30 +120,6 @@ func (s *service) SimplePaste(contextId string, anySlot []*model.Block) (err err }) } -func (s *service) UpdateBlockContent(ctx *state.Context, req pb.RpcBlockUpdateContentRequest) (err error) { - err = s.DoBasic(req.ContextId, func(b basic.Basic) error { - var found bool - err = b.Update(ctx, func(b simple.Block) error { - found = true - expectedType := fmt.Sprintf("%T", b.Model().GetContent()) - gotType := fmt.Sprintf("%T", req.GetBlock().Content) - if gotType != expectedType { - return fmt.Errorf("block content should have %s type, got %s instead", expectedType, gotType) - } - b.Model().Content = req.GetBlock().Content - return nil - }, req.BlockId) - if err != nil { - return err - } else if !found { - return smartblock.ErrSimpleBlockNotFound - } - - return nil - }) - return -} - func (s *service) ReplaceBlock(ctx *state.Context, req pb.RpcBlockReplaceRequest) (newId string, err error) { err = s.DoBasic(req.ContextId, func(b basic.Basic) error { newId, err = b.Replace(ctx, req.BlockId, req.Block) @@ -160,7 +137,7 @@ func (s *service) SetFields(ctx *state.Context, req pb.RpcBlockSetFieldsRequest) }) } -func (s *service) SetDetails(ctx *state.Context, req pb.RpcBlockSetDetailsRequest) (err error) { +func (s *service) SetDetails(ctx *state.Context, req pb.RpcObjectSetDetailsRequest) (err error) { return s.Do(req.ContextId, func(b smartblock.SmartBlock) error { return b.SetDetails(ctx, req.Details, true) }) @@ -381,7 +358,7 @@ func (s *service) Export(req pb.RpcBlockExportRequest) (path string, err error) return path, err } -func (s *service) ImportMarkdown(ctx *state.Context, req pb.RpcBlockImportMarkdownRequest) (rootLinkIds []string, err error) { +func (s *service) ImportMarkdown(ctx *state.Context, req pb.RpcObjectImportMarkdownRequest) (rootLinkIds []string, err error) { var rootLinks []*model.Block err = s.DoImport(req.ContextId, func(imp _import.Import) error { rootLinks, err = imp.ImportMarkdown(ctx, req) @@ -398,7 +375,7 @@ func (s *service) ImportMarkdown(ctx *state.Context, req pb.RpcBlockImportMarkdo return rootLinkIds, err } } else { - _, pageId, err := s.CreatePage(ctx, "", pb.RpcBlockCreatePageRequest{ + _, pageId, err := s.CreateLinkToTheNewObject(ctx, "", pb.RpcBlockLinkCreateWithObjectRequest{ ContextId: req.ContextId, Details: &types.Struct{Fields: map[string]*types.Value{ "name": pbtypes.String("Import from Notion"), @@ -420,13 +397,13 @@ func (s *service) ImportMarkdown(ctx *state.Context, req pb.RpcBlockImportMarkdo return rootLinkIds, err } -func (s *service) SetTextText(ctx *state.Context, req pb.RpcBlockSetTextTextRequest) error { +func (s *service) SetTextText(ctx *state.Context, req pb.RpcBlockTextSetTextRequest) error { return s.DoText(req.ContextId, func(b stext.Text) error { return b.SetText(req) }) } -func (s *service) SetLatexText(ctx *state.Context, req pb.RpcBlockSetLatexTextRequest) error { +func (s *service) SetLatexText(ctx *state.Context, req pb.RpcBlockLatexSetTextRequest) error { return s.Do(req.ContextId, func(b smartblock.SmartBlock) error { return b.(basic.Basic).SetLatexText(ctx, req) }) @@ -441,7 +418,7 @@ func (s *service) SetTextStyle(ctx *state.Context, contextId string, style model }) } -func (s *service) SetTextChecked(ctx *state.Context, req pb.RpcBlockSetTextCheckedRequest) error { +func (s *service) SetTextChecked(ctx *state.Context, req pb.RpcBlockTextSetCheckedRequest) error { return s.DoText(req.ContextId, func(b stext.Text) error { return b.UpdateTextBlocks(ctx, []string{req.BlockId}, true, func(t text.Block) error { t.SetChecked(req.Checked) @@ -480,6 +457,22 @@ func (s *service) SetBackgroundColor(ctx *state.Context, contextId string, color }) } +func (s *service) SetLinkAppearance(ctx *state.Context, req pb.RpcBlockLinkListSetAppearanceRequest) (err error) { + return s.DoBasic(req.ContextId, func(b basic.Basic) error { + return b.Update(ctx, func(b simple.Block) error { + if linkBlock, ok := b.(link.Block); ok { + return linkBlock.SetAppearance(&model.BlockContentLink{ + IconSize: req.IconSize, + CardStyle: req.CardStyle, + Description: req.Description, + Relations: req.Relations, + }) + } + return nil + }, req.BlockIds...) + }) +} + func (s *service) SetAlign(ctx *state.Context, contextId string, align model.BlockAlign, blockIds ...string) (err error) { return s.Do(contextId, func(sb smartblock.SmartBlock) error { return sb.SetAlign(ctx, align, blockIds...) @@ -533,7 +526,7 @@ func (s *service) CreateAndUploadFile(ctx *state.Context, req pb.RpcBlockFileCre return } -func (s *service) UploadFile(req pb.RpcUploadFileRequest) (hash string, err error) { +func (s *service) UploadFile(req pb.RpcFileUploadRequest) (hash string, err error) { upl := file.NewUploader(s) if req.DisableEncryption { log.Errorf("DisableEncryption is deprecated and has no effect") @@ -552,7 +545,7 @@ func (s *service) UploadFile(req pb.RpcUploadFileRequest) (hash string, err erro return res.Hash, nil } -func (s *service) DropFiles(req pb.RpcExternalDropFilesRequest) (err error) { +func (s *service) DropFiles(req pb.RpcFileDropRequest) (err error) { return s.DoFileNonLock(req.ContextId, func(b file.File) error { return b.DropFiles(req) }) @@ -564,7 +557,7 @@ func (s *service) SetFileStyle(ctx *state.Context, contextId string, style model }) } -func (s *service) Undo(ctx *state.Context, req pb.RpcBlockUndoRequest) (counters pb.RpcBlockUndoRedoCounter, err error) { +func (s *service) Undo(ctx *state.Context, req pb.RpcObjectUndoRequest) (counters pb.RpcObjectUndoRedoCounter, err error) { err = s.DoHistory(req.ContextId, func(b basic.IHistory) error { counters, err = b.Undo(ctx) return err @@ -572,7 +565,7 @@ func (s *service) Undo(ctx *state.Context, req pb.RpcBlockUndoRequest) (counters return } -func (s *service) Redo(ctx *state.Context, req pb.RpcBlockRedoRequest) (counters pb.RpcBlockUndoRedoCounter, err error) { +func (s *service) Redo(ctx *state.Context, req pb.RpcObjectRedoRequest) (counters pb.RpcObjectUndoRedoCounter, err error) { err = s.DoHistory(req.ContextId, func(b basic.IHistory) error { counters, err = b.Redo(ctx) return err @@ -842,7 +835,7 @@ func (s *service) DeleteObjectFromWorkspace(workspaceId string, objectId string) }) } -func (s *service) CreateSet(ctx *state.Context, req pb.RpcBlockCreateSetRequest) (linkId string, setId string, err error) { +func (s *service) CreateSet(req pb.RpcObjectCreateSetRequest) (setId string, err error) { var dvContent model.BlockContentOfDataview var dvSchema schema.Schema if len(req.Source) != 0 { @@ -850,16 +843,12 @@ func (s *service) CreateSet(ctx *state.Context, req pb.RpcBlockCreateSetRequest) return } } - var workspaceId string - if req.ContextId != "" { - workspaceId, _ = s.anytype.GetWorkspaceIdForObject(req.ContextId) - } else { - workspaceId = s.anytype.PredefinedBlocks().Account - } + workspaceId := s.anytype.PredefinedBlocks().Account + // TODO: here can be a deadlock if this is somehow created from workspace (as set) csm, err := s.CreateObjectInWorkspace(context.TODO(), workspaceId, thread.Undef, coresb.SmartBlockTypeSet) if err != nil { - return "", "", err + return "", err } setId = csm.ID() @@ -873,11 +862,11 @@ func (s *service) CreateSet(ctx *state.Context, req pb.RpcBlockCreateSetRequest) State: state, }) if err != nil { - return "", "", err + return "", err } set, ok := sb.(*editor.Set) if !ok { - return "", setId, fmt.Errorf("unexpected set block type: %T", sb) + return setId, fmt.Errorf("unexpected set block type: %T", sb) } name := pbtypes.GetString(req.Details, bundle.RelationKeyName.String()) @@ -891,35 +880,8 @@ func (s *service) CreateSet(ctx *state.Context, req pb.RpcBlockCreateSetRequest) } else { err = set.InitDataview(nil, name, icon) } - if err != nil { - return "", setId, err - } - if req.ContextId == "" && req.TargetId == "" { - // do not create a link - return "", setId, nil - } - - err = s.DoBasic(req.ContextId, func(b basic.Basic) error { - linkId, err = b.Create(ctx, "", pb.RpcBlockCreateRequest{ - TargetId: req.TargetId, - Block: &model.Block{ - Content: &model.BlockContentOfLink{ - Link: &model.BlockContentLink{ - TargetBlockId: setId, - Style: model.BlockContentLink_Dataview, - }, - }, - }, - Position: req.Position, - }) - if err != nil { - err = fmt.Errorf("link create error: %v", err) - } - return err - }) - - return linkId, setId, nil + return setId, err } func (s *service) ObjectToSet(id string, source []string) (newId string, err error) { @@ -931,7 +893,8 @@ func (s *service) ObjectToSet(id string, source []string) (newId string, err err return } - _, newId, err = s.CreateSet(nil, pb.RpcBlockCreateSetRequest{ + details.Fields[bundle.RelationKeySetOf.String()] = pbtypes.StringList(source) + newId, err = s.CreateSet(pb.RpcObjectCreateSetRequest{ Source: source, Details: details, }) @@ -986,7 +949,7 @@ func (s *service) ListAvailableRelations(objectId string) (aggregatedRelations [ return } -func (s *service) ConvertChildrenToPages(ctx *state.Context, req pb.RpcBlockListConvertChildrenToPagesRequest) (linkIds []string, err error) { +func (s *service) ConvertChildrenToPages(ctx *state.Context, req pb.RpcBlockListConvertToObjectsRequest) (linkIds []string, err error) { err = s.DoBasic(req.ContextId, func(b basic.Basic) error { linkIds, err = b.ExtractBlocksToPages(ctx, s, req) return err @@ -994,9 +957,9 @@ func (s *service) ConvertChildrenToPages(ctx *state.Context, req pb.RpcBlockList return } -func (s *service) MoveBlocksToNewPage(ctx *state.Context, req pb.RpcBlockListMoveToNewPageRequest) (linkId string, err error) { +func (s *service) MoveBlocksToNewPage(ctx *state.Context, req pb.RpcBlockListMoveToNewObjectRequest) (linkId string, err error) { // 1. Create new page, link - linkId, pageId, err := s.CreatePage(ctx, "", pb.RpcBlockCreatePageRequest{ + linkId, pageId, err := s.CreateLinkToTheNewObject(ctx, "", pb.RpcBlockLinkCreateWithObjectRequest{ ContextId: req.ContextId, TargetId: req.DropTargetId, Position: req.Position, @@ -1008,7 +971,7 @@ func (s *service) MoveBlocksToNewPage(ctx *state.Context, req pb.RpcBlockListMov } // 2. Move blocks to new page - err = s.MoveBlocks(nil, pb.RpcBlockListMoveRequest{ + err = s.MoveBlocks(nil, pb.RpcBlockListMoveToExistingObjectRequest{ ContextId: req.ContextId, BlockIds: req.BlockIds, TargetContextId: pageId, @@ -1023,7 +986,7 @@ func (s *service) MoveBlocksToNewPage(ctx *state.Context, req pb.RpcBlockListMov return linkId, err } -func (s *service) MoveBlocks(ctx *state.Context, req pb.RpcBlockListMoveRequest) error { +func (s *service) MoveBlocks(ctx *state.Context, req pb.RpcBlockListMoveToExistingObjectRequest) error { if req.ContextId == req.TargetContextId { return s.DoBasic(req.ContextId, func(b basic.Basic) error { return b.Move(ctx, req) diff --git a/core/block/editor/archive.go b/core/block/editor/archive.go index dd299885b..71ac67b81 100644 --- a/core/block/editor/archive.go +++ b/core/block/editor/archive.go @@ -38,7 +38,7 @@ func (p *Archive) Init(ctx *smartblock.InitContext) (err error) { } p.SmartBlock.DisableLayouts() p.AddHook(p.updateObjects, smartblock.HookAfterApply) - return smartblock.ApplyTemplate(p, ctx.State, template.WithEmpty, template.WithNoDuplicateLinks(), template.WithNoObjectTypes(), template.WithDetailName("Archive"), template.WithDetailIconEmoji("🗑")) + return smartblock.ObjectApplyTemplate(p, ctx.State, template.WithEmpty, template.WithNoDuplicateLinks(), template.WithNoObjectTypes(), template.WithDetailName("Archive"), template.WithDetailIconEmoji("🗑")) } func (p *Archive) Relations() []*model.Relation { diff --git a/core/block/editor/basic/basic.go b/core/block/editor/basic/basic.go index 7c0b67acd..7670fbf42 100644 --- a/core/block/editor/basic/basic.go +++ b/core/block/editor/basic/basic.go @@ -24,7 +24,7 @@ type Basic interface { Create(ctx *state.Context, groupId string, req pb.RpcBlockCreateRequest) (id string, err error) Duplicate(ctx *state.Context, req pb.RpcBlockListDuplicateRequest) (newIds []string, err error) Unlink(ctx *state.Context, id ...string) (err error) - Move(ctx *state.Context, req pb.RpcBlockListMoveRequest) error + Move(ctx *state.Context, req pb.RpcBlockListMoveToExistingObjectRequest) error Replace(ctx *state.Context, id string, block *model.Block) (newId string, err error) SetFields(ctx *state.Context, fields ...*pb.RpcBlockListSetFieldsRequestBlockField) (err error) Update(ctx *state.Context, apply func(b simple.Block) error, blockIds ...string) (err error) @@ -32,13 +32,13 @@ type Basic interface { PasteBlocks(blocks []simple.Block) (err error) SetRelationKey(ctx *state.Context, req pb.RpcBlockRelationSetKeyRequest) error - SetLatexText(ctx *state.Context, req pb.RpcBlockSetLatexTextRequest) error + SetLatexText(ctx *state.Context, req pb.RpcBlockLatexSetTextRequest) error AddRelationAndSet(ctx *state.Context, req pb.RpcBlockRelationAddRequest) error FeaturedRelationAdd(ctx *state.Context, relations ...string) error FeaturedRelationRemove(ctx *state.Context, relations ...string) error ReplaceLink(oldId, newId string) error - ExtractBlocksToPages(ctx *state.Context, s PageCreator, req pb.RpcBlockListConvertChildrenToPagesRequest) (linkIds []string, err error) + ExtractBlocksToPages(ctx *state.Context, s PageCreator, req pb.RpcBlockListConvertToObjectsRequest) (linkIds []string, err error) } var ErrNotSupported = fmt.Errorf("operation not supported for this type of smartblock") @@ -137,7 +137,7 @@ func (bs *basic) Unlink(ctx *state.Context, ids ...string) (err error) { return bs.Apply(s) } -func (bs *basic) Move(ctx *state.Context, req pb.RpcBlockListMoveRequest) (err error) { +func (bs *basic) Move(ctx *state.Context, req pb.RpcBlockListMoveToExistingObjectRequest) (err error) { if bs.Type() == model.SmartBlockType_Set { return ErrNotSupported } @@ -274,7 +274,7 @@ func (bs *basic) SetRelationKey(ctx *state.Context, req pb.RpcBlockRelationSetKe return bs.Apply(s) } -func (bs *basic) SetLatexText(ctx *state.Context, req pb.RpcBlockSetLatexTextRequest) (err error) { +func (bs *basic) SetLatexText(ctx *state.Context, req pb.RpcBlockLatexSetTextRequest) (err error) { s := bs.NewStateCtx(ctx) b := s.Get(req.BlockId) if b == nil { diff --git a/core/block/editor/basic/basic_test.go b/core/block/editor/basic/basic_test.go index ef6b0d264..9c17868a7 100644 --- a/core/block/editor/basic/basic_test.go +++ b/core/block/editor/basic/basic_test.go @@ -3,14 +3,13 @@ package basic import ( "testing" - "github.com/anytypeio/go-anytype-middleware/core/block/simple/text" - "github.com/anytypeio/go-anytype-middleware/core/block/editor/smartblock" "github.com/anytypeio/go-anytype-middleware/core/block/editor/smartblock/smarttest" "github.com/anytypeio/go-anytype-middleware/core/block/editor/template" "github.com/anytypeio/go-anytype-middleware/core/block/restriction" "github.com/anytypeio/go-anytype-middleware/core/block/simple" _ "github.com/anytypeio/go-anytype-middleware/core/block/simple/base" + "github.com/anytypeio/go-anytype-middleware/core/block/simple/text" "github.com/anytypeio/go-anytype-middleware/pb" "github.com/anytypeio/go-anytype-middleware/pkg/lib/bundle" "github.com/anytypeio/go-anytype-middleware/pkg/lib/pb/model" @@ -47,7 +46,7 @@ func TestBasic_Create(t *testing.T) { t.Run("title", func(t *testing.T) { sb := smarttest.New("test") sb.AddBlock(simple.New(&model.Block{Id: "test"})) - require.NoError(t, smartblock.ApplyTemplate(sb, sb.NewState(), template.WithTitle)) + require.NoError(t, smartblock.ObjectApplyTemplate(sb, sb.NewState(), template.WithTitle)) b := NewBasic(sb) id, err := b.Create(nil, "", pb.RpcBlockCreateRequest{ TargetId: template.TitleBlockId, @@ -67,7 +66,7 @@ func TestBasic_Create(t *testing.T) { }, } sb.AddBlock(simple.New(&model.Block{Id: "test"})) - require.NoError(t, smartblock.ApplyTemplate(sb, sb.NewState(), template.WithTitle)) + require.NoError(t, smartblock.ObjectApplyTemplate(sb, sb.NewState(), template.WithTitle)) b := NewBasic(sb) _, err := b.Create(nil, "", pb.RpcBlockCreateRequest{}) assert.Equal(t, restriction.ErrRestricted, err) @@ -116,7 +115,7 @@ func TestBasic_Move(t *testing.T) { b := NewBasic(sb) - err := b.Move(nil, pb.RpcBlockListMoveRequest{ + err := b.Move(nil, pb.RpcBlockListMoveToExistingObjectRequest{ BlockIds: []string{"3"}, DropTargetId: "4", Position: model.Block_Inner, @@ -129,7 +128,7 @@ func TestBasic_Move(t *testing.T) { t.Run("header", func(t *testing.T) { sb := smarttest.New("test") sb.AddBlock(simple.New(&model.Block{Id: "test"})) - require.NoError(t, smartblock.ApplyTemplate(sb, sb.NewState(), template.WithTitle)) + require.NoError(t, smartblock.ObjectApplyTemplate(sb, sb.NewState(), template.WithTitle)) b := NewBasic(sb) id1, err := b.Create(nil, "", pb.RpcBlockCreateRequest{ TargetId: template.HeaderLayoutId, @@ -146,7 +145,7 @@ func TestBasic_Move(t *testing.T) { require.NoError(t, err) require.NotEmpty(t, id0) - err = b.Move(nil, pb.RpcBlockListMoveRequest{ + err = b.Move(nil, pb.RpcBlockListMoveToExistingObjectRequest{ BlockIds: []string{id0}, DropTargetId: template.TitleBlockId, Position: model.Block_Top, @@ -163,7 +162,7 @@ func TestBasic_Move(t *testing.T) { b := NewBasic(sb) - err := b.Move(nil, pb.RpcBlockListMoveRequest{ + err := b.Move(nil, pb.RpcBlockListMoveToExistingObjectRequest{ BlockIds: []string{"2"}, DropTargetId: "1", Position: model.Block_InnerFirst, @@ -186,7 +185,7 @@ func TestBasic_Move(t *testing.T) { b := NewBasic(sb) - err := b.Move(nil, pb.RpcBlockListMoveRequest{ + err := b.Move(nil, pb.RpcBlockListMoveToExistingObjectRequest{ BlockIds: []string{"2"}, DropTargetId: "1", Position: model.Block_InnerFirst, diff --git a/core/block/editor/basic/extract_pages.go b/core/block/editor/basic/extract_pages.go index a810d8e38..a45d0061f 100644 --- a/core/block/editor/basic/extract_pages.go +++ b/core/block/editor/basic/extract_pages.go @@ -16,12 +16,12 @@ import ( ) type PageCreator interface { - CreatePageFromState(ctx *state.Context, contextBlock smartblock.SmartBlock, groupId string, req pb.RpcBlockCreatePageRequest, state *state.State) (linkId string, pageId string, err error) + CreatePageFromState(ctx *state.Context, contextBlock smartblock.SmartBlock, groupId string, req pb.RpcBlockLinkCreateWithObjectRequest, state *state.State) (linkId string, pageId string, err error) } // ExtractBlocksToPages extracts child blocks from the page to separate pages and // replaces these blocks to the links to these pages -func (bs *basic) ExtractBlocksToPages(ctx *state.Context, s PageCreator, req pb.RpcBlockListConvertChildrenToPagesRequest) (linkIds []string, err error) { +func (bs *basic) ExtractBlocksToPages(ctx *state.Context, s PageCreator, req pb.RpcBlockListConvertToObjectsRequest) (linkIds []string, err error) { st := bs.NewStateCtx(ctx) roots := listRoots(st, req.BlockIds) @@ -51,7 +51,7 @@ func (bs *basic) ExtractBlocksToPages(ctx *state.Context, s PageCreator, req pb. if req.ObjectType != "" { fields[bundle.RelationKeyType.String()] = pbtypes.String(req.ObjectType) } - _, pageId, err := s.CreatePageFromState(nil, bs, "", pb.RpcBlockCreatePageRequest{ + _, pageId, err := s.CreatePageFromState(nil, bs, "", pb.RpcBlockLinkCreateWithObjectRequest{ ContextId: req.ContextId, Details: &types.Struct{ Fields: fields, diff --git a/core/block/editor/basic/extract_pages_test.go b/core/block/editor/basic/extract_pages_test.go index 27ff9d933..b5c16f5cf 100644 --- a/core/block/editor/basic/extract_pages_test.go +++ b/core/block/editor/basic/extract_pages_test.go @@ -21,7 +21,7 @@ func (t testExtractPages) Add(page *smarttest.SmartTest) { t.pages[page.Id()] = page } -func (t testExtractPages) CreatePageFromState(ctx *state.Context, _ smartblock.SmartBlock, _ string, req pb.RpcBlockCreatePageRequest, state *state.State) (linkId string, pageId string, err error) { +func (t testExtractPages) CreatePageFromState(ctx *state.Context, _ smartblock.SmartBlock, _ string, req pb.RpcBlockLinkCreateWithObjectRequest, state *state.State) (linkId string, pageId string, err error) { id := bson.NewObjectId().Hex() page := smarttest.New(id) t.pages[id] = page @@ -169,7 +169,7 @@ func TestExtractPages(t *testing.T) { sb := makeTestPage() ts.Add(sb) - req := pb.RpcBlockListConvertChildrenToPagesRequest{ + req := pb.RpcBlockListConvertToObjectsRequest{ ContextId: "test", BlockIds: tc.blockIds, ObjectType: "page", diff --git a/core/block/editor/basic/history.go b/core/block/editor/basic/history.go index 7f7ba22af..5d5e02d37 100644 --- a/core/block/editor/basic/history.go +++ b/core/block/editor/basic/history.go @@ -8,8 +8,8 @@ import ( ) type IHistory interface { - Undo(*state.Context) (counters pb.RpcBlockUndoRedoCounter, err error) - Redo(*state.Context) (counters pb.RpcBlockUndoRedoCounter, err error) + Undo(*state.Context) (counters pb.RpcObjectUndoRedoCounter, err error) + Redo(*state.Context) (counters pb.RpcObjectUndoRedoCounter, err error) } func NewHistory(sb smartblock.SmartBlock) IHistory { @@ -20,7 +20,7 @@ type history struct { smartblock.SmartBlock } -func (h *history) Undo(ctx *state.Context) (counters pb.RpcBlockUndoRedoCounter, err error) { +func (h *history) Undo(ctx *state.Context) (counters pb.RpcObjectUndoRedoCounter, err error) { s := h.NewStateCtx(ctx) action, err := h.History().Previous() if err != nil { @@ -54,7 +54,7 @@ func (h *history) Undo(ctx *state.Context) (counters pb.RpcBlockUndoRedoCounter, return } -func (h *history) Redo(ctx *state.Context) (counters pb.RpcBlockUndoRedoCounter, err error) { +func (h *history) Redo(ctx *state.Context) (counters pb.RpcObjectUndoRedoCounter, err error) { s := h.NewStateCtx(ctx) action, err := h.History().Next() if err != nil { diff --git a/core/block/editor/breadcrumbs.go b/core/block/editor/breadcrumbs.go index 9209a9e04..695492e73 100644 --- a/core/block/editor/breadcrumbs.go +++ b/core/block/editor/breadcrumbs.go @@ -25,7 +25,7 @@ func (p *Breadcrumbs) Init(ctx *smartblock.InitContext) (err error) { return } p.SmartBlock.DisableLayouts() - return smartblock.ApplyTemplate(p, ctx.State, template.WithEmpty, template.WithNoObjectTypes()) + return smartblock.ObjectApplyTemplate(p, ctx.State, template.WithEmpty, template.WithNoObjectTypes()) } func (p *Breadcrumbs) Relations() []*model.Relation { diff --git a/core/block/editor/clipboard/clipboard_test.go b/core/block/editor/clipboard/clipboard_test.go index 28684a134..3126dfe25 100644 --- a/core/block/editor/clipboard/clipboard_test.go +++ b/core/block/editor/clipboard/clipboard_test.go @@ -633,7 +633,7 @@ func TestClipboard_TitleOps(t *testing.T) { func TestClipboard_PasteToCodeBock(t *testing.T) { sb := smarttest.New("text") - require.NoError(t, smartblock.ApplyTemplate(sb, nil, template.WithTitle)) + require.NoError(t, smartblock.ObjectApplyTemplate(sb, nil, template.WithTitle)) s := sb.NewState() codeBlock := simple.New(&model.Block{ Content: &model.BlockContentOfText{ @@ -660,7 +660,7 @@ func TestClipboard_PasteToCodeBock(t *testing.T) { func Test_PasteText(t *testing.T) { sb := smarttest.New("text") - require.NoError(t, smartblock.ApplyTemplate(sb, nil, template.WithEmpty)) + require.NoError(t, smartblock.ObjectApplyTemplate(sb, nil, template.WithEmpty)) s := sb.NewState() b1 := simple.New(&model.Block{ Id: "1", diff --git a/core/block/editor/dashboard.go b/core/block/editor/dashboard.go index 3bac6607c..9648ca202 100644 --- a/core/block/editor/dashboard.go +++ b/core/block/editor/dashboard.go @@ -46,7 +46,7 @@ func (p *Dashboard) Init(ctx *smartblock.InitContext) (err error) { func (p *Dashboard) init(s *state.State) (err error) { state.CleanupLayouts(s) p.AddHook(p.updateObjects, smartblock.HookAfterApply) - if err = smartblock.ApplyTemplate(p, s, + if err = smartblock.ObjectApplyTemplate(p, s, template.WithObjectTypesAndLayout([]string{bundle.TypeKeyDashboard.URL()}), template.WithEmpty, template.WithDetailName("Home"), diff --git a/core/block/editor/dataview/dataview.go b/core/block/editor/dataview/dataview.go index ea04e602f..02235cc38 100644 --- a/core/block/editor/dataview/dataview.go +++ b/core/block/editor/dataview/dataview.go @@ -63,7 +63,7 @@ type Dataview interface { WithSystemObjects(yes bool) SetNewRecordDefaultFields(blockId string, defaultRecordFields *types.Struct) error - smartblock.SmartblockOpenListner + smartblock.SmartObjectOpenListner } func NewDataview(sb smartblock.SmartBlock) Dataview { @@ -892,7 +892,7 @@ func (d *dataviewCollectionImpl) fillAggregatedOptions(b dataview.Block) { } } -func (d *dataviewCollectionImpl) SmartblockOpened(ctx *state.Context) { +func (d *dataviewCollectionImpl) SmartObjectOpened(ctx *state.Context) { st := d.NewStateCtx(ctx) st.Iterate(func(b simple.Block) (isContinue bool) { if dvBlock, ok := b.(dataview.Block); !ok { diff --git a/core/block/editor/dataview_test.go b/core/block/editor/dataview_test.go index 7831c8fd9..700162454 100644 --- a/core/block/editor/dataview_test.go +++ b/core/block/editor/dataview_test.go @@ -16,7 +16,7 @@ func TestDataview_SetDetails(t *testing.T) { }) p.SmartBlock = smarttest.New("1") - err := p.SetDetails(nil, []*pb.RpcBlockSetDetailsDetail{ + err := p.SetDetails(nil, []*pb.RpcObjectSetDetailsDetail{ { Key: "key", Value: pbtypes.String("value"), diff --git a/core/block/editor/file/file.go b/core/block/editor/file/file.go index 6a93520e7..ead4f0204 100644 --- a/core/block/editor/file/file.go +++ b/core/block/editor/file/file.go @@ -36,13 +36,13 @@ func NewFile(sb smartblock.SmartBlock, source BlockService) File { type BlockService interface { DoFile(id string, apply func(f File) error) error - CreatePage(ctx *state.Context, groupId string, req pb.RpcBlockCreatePageRequest) (linkId string, pageId string, err error) + CreateLinkToTheNewObject(ctx *state.Context, groupId string, req pb.RpcBlockLinkCreateWithObjectRequest) (linkId string, pageId string, err error) ProcessAdd(p process.Process) (err error) Anytype() core.Service } type File interface { - DropFiles(req pb.RpcExternalDropFilesRequest) (err error) + DropFiles(req pb.RpcFileDropRequest) (err error) Upload(ctx *state.Context, id string, source FileSource, isSync bool) (err error) UploadState(s *state.State, id string, source FileSource, isSync bool) (err error) UpdateFile(id, groupId string, apply func(b file.Block) error) (err error) @@ -167,7 +167,7 @@ func (sf *sfile) UpdateFile(id, groupId string, apply func(b file.Block) error) return sf.Apply(s) } -func (sf *sfile) DropFiles(req pb.RpcExternalDropFilesRequest) (err error) { +func (sf *sfile) DropFiles(req pb.RpcFileDropRequest) (err error) { process := &dropFilesProcess{s: sf.fileSource} if err = process.Init(req.LocalFilePaths); err != nil { return @@ -187,7 +187,7 @@ func (sf *sfile) dropFilesCreateStructure(groupId, targetId string, pos model.Bl return } sf.Unlock() - blockId, pageId, err = sf.fileSource.CreatePage(nil, groupId, pb.RpcBlockCreatePageRequest{ + blockId, pageId, err = sf.fileSource.CreateLinkToTheNewObject(nil, groupId, pb.RpcBlockLinkCreateWithObjectRequest{ ContextId: sf.Id(), TargetId: targetId, Position: pos, diff --git a/core/block/editor/files.go b/core/block/editor/files.go index 618d220e8..60347edad 100644 --- a/core/block/editor/files.go +++ b/core/block/editor/files.go @@ -158,7 +158,7 @@ func (p *Files) Init(ctx *smartblock.InitContext) (err error) { }...) } - return smartblock.ApplyTemplate(p, ctx.State, + return smartblock.ObjectApplyTemplate(p, ctx.State, template.WithObjectTypesAndLayout([]string{bundle.TypeKeyFile.URL()}), template.WithEmpty, template.WithTitle, diff --git a/core/block/editor/import/import.go b/core/block/editor/import/import.go index e0caffa38..bfa3aa53e 100644 --- a/core/block/editor/import/import.go +++ b/core/block/editor/import/import.go @@ -40,7 +40,7 @@ var ( ) type Import interface { - ImportMarkdown(ctx *state.Context, req pb.RpcBlockImportMarkdownRequest) (rootLinks []*model.Block, err error) + ImportMarkdown(ctx *state.Context, req pb.RpcObjectImportMarkdownRequest) (rootLinks []*model.Block, err error) } func NewImport(sb smartblock.SmartBlock, ctrl Services) Import { @@ -64,14 +64,14 @@ type fileInfo struct { type Services interface { CreateSmartBlock(ctx context.Context, sbType coresb.SmartBlockType, details *types.Struct, relations []*model.Relation) (id string, newDetails *types.Struct, err error) - SetDetails(ctx *state.Context, req pb.RpcBlockSetDetailsRequest) (err error) + SetDetails(ctx *state.Context, req pb.RpcObjectSetDetailsRequest) (err error) SimplePaste(contextId string, anySlot []*model.Block) (err error) UploadBlockFileSync(ctx *state.Context, req pb.RpcBlockUploadRequest) error BookmarkFetchSync(ctx *state.Context, req pb.RpcBlockBookmarkFetchRequest) error ProcessAdd(p process.Process) (err error) } -func (imp *importImpl) ImportMarkdown(ctx *state.Context, req pb.RpcBlockImportMarkdownRequest) (rootLinks []*model.Block, err error) { +func (imp *importImpl) ImportMarkdown(ctx *state.Context, req pb.RpcObjectImportMarkdownRequest) (rootLinks []*model.Block, err error) { progress := process.NewProgress(pb.ModelProcess_Import) defer progress.Finish() imp.ctrl.ProcessAdd(progress) @@ -195,16 +195,16 @@ func (imp *importImpl) ImportMarkdown(ctx *state.Context, req pb.RpcBlockImportM file.title = title - var details = []*pb.RpcBlockSetDetailsDetail{} + var details = []*pb.RpcObjectSetDetailsDetail{} for name, val := range fields { - details = append(details, &pb.RpcBlockSetDetailsDetail{ + details = append(details, &pb.RpcObjectSetDetailsDetail{ Key: name, Value: val, }) } - err = imp.ctrl.SetDetails(nil, pb.RpcBlockSetDetailsRequest{ + err = imp.ctrl.SetDetails(nil, pb.RpcObjectSetDetailsRequest{ ContextId: file.pageID, Details: details, }) @@ -279,16 +279,16 @@ func (imp *importImpl) ImportMarkdown(ctx *state.Context, req pb.RpcBlockImportM "iconEmoji": pbtypes.String(slice.GetRandomString(dbIcons, name)), } - var details = []*pb.RpcBlockSetDetailsDetail{} + var details = []*pb.RpcObjectSetDetailsDetail{} for name, val := range fields { - details = append(details, &pb.RpcBlockSetDetailsDetail{ + details = append(details, &pb.RpcObjectSetDetailsDetail{ Key: name, Value: val, }) } - err = imp.ctrl.SetDetails(nil, pb.RpcBlockSetDetailsRequest{ + err = imp.ctrl.SetDetails(nil, pb.RpcObjectSetDetailsRequest{ ContextId: pageID, Details: details, }) diff --git a/core/block/editor/marketplace.go b/core/block/editor/marketplace.go index 489afc9ec..21f08df5c 100644 --- a/core/block/editor/marketplace.go +++ b/core/block/editor/marketplace.go @@ -80,7 +80,7 @@ func (p *MarketplaceType) Init(ctx *smartblock.InitContext) (err error) { } templates = append(templates, template.WithDataview(dataview, true), template.WithDetailName("Types"), template.WithDetailIconEmoji("📒"), template.WithRequiredRelations()) - if err = smartblock.ApplyTemplate(p, ctx.State, templates...); err != nil { + if err = smartblock.ObjectApplyTemplate(p, ctx.State, templates...); err != nil { return } p.WithSystemObjects(true) @@ -148,7 +148,7 @@ func (p *MarketplaceRelation) Init(ctx *smartblock.InitContext) (err error) { } templates = append(templates, template.WithDataview(dataview, true), template.WithDetailName("Relations"), template.WithDetailIconEmoji("📒"), template.WithRequiredRelations()) - if err = smartblock.ApplyTemplate(p, ctx.State, templates...); err != nil { + if err = smartblock.ObjectApplyTemplate(p, ctx.State, templates...); err != nil { return } @@ -216,7 +216,7 @@ func (p *MarketplaceTemplate) Init(ctx *smartblock.InitContext) (err error) { } templates = append(templates, template.WithDataview(dataview, true), template.WithDetailName("Relations"), template.WithDetailIconEmoji("📒")) - if err = smartblock.ApplyTemplate(p, ctx.State, templates...); err != nil { + if err = smartblock.ObjectApplyTemplate(p, ctx.State, templates...); err != nil { return } diff --git a/core/block/editor/objecttype.go b/core/block/editor/objecttype.go index b1442b9ca..fd314f080 100644 --- a/core/block/editor/objecttype.go +++ b/core/block/editor/objecttype.go @@ -127,7 +127,7 @@ func (p *ObjectType) Init(ctx *smartblock.InitContext) (err error) { }) } - err = smartblock.ApplyTemplate(p, ctx.State, + err = smartblock.ObjectApplyTemplate(p, ctx.State, template.WithObjectTypesAndLayout([]string{bundle.TypeKeyObjectType.URL()}), template.WithEmpty, template.WithTitle, diff --git a/core/block/editor/page.go b/core/block/editor/page.go index 55f57b8a6..afefc5dd5 100644 --- a/core/block/editor/page.go +++ b/core/block/editor/page.go @@ -75,7 +75,7 @@ func (p *Page) Init(ctx *smartblock.InitContext) (err error) { } } - return smartblock.ApplyTemplate(p, ctx.State, + return smartblock.ObjectApplyTemplate(p, ctx.State, template.ByLayout( layout, tmpls..., diff --git a/core/block/editor/profile.go b/core/block/editor/profile.go index 9d8c4d2a8..99e23d877 100644 --- a/core/block/editor/profile.go +++ b/core/block/editor/profile.go @@ -47,7 +47,7 @@ func (p *Profile) Init(ctx *smartblock.InitContext) (err error) { if err = p.SmartBlock.Init(ctx); err != nil { return } - return smartblock.ApplyTemplate(p, ctx.State, + return smartblock.ObjectApplyTemplate(p, ctx.State, template.WithObjectTypesAndLayout([]string{bundle.TypeKeyProfile.URL()}), template.WithDetail(bundle.RelationKeyLayoutAlign, pbtypes.Float64(float64(model.Block_AlignCenter))), template.WithTitle, @@ -58,7 +58,7 @@ func (p *Profile) Init(ctx *smartblock.InitContext) (err error) { ) } -func (p *Profile) SetDetails(ctx *state.Context, details []*pb.RpcBlockSetDetailsDetail, showEvent bool) (err error) { +func (p *Profile) SetDetails(ctx *state.Context, details []*pb.RpcObjectSetDetailsDetail, showEvent bool) (err error) { if err = p.SmartBlock.SetDetails(ctx, details, showEvent); err != nil { return } diff --git a/core/block/editor/profile_test.go b/core/block/editor/profile_test.go index 4c85a626b..7abfa51cd 100644 --- a/core/block/editor/profile_test.go +++ b/core/block/editor/profile_test.go @@ -16,7 +16,7 @@ func TestProfile_SetDetails(t *testing.T) { }) p.SmartBlock = smarttest.New("1") - err := p.SetDetails(nil, []*pb.RpcBlockSetDetailsDetail{ + err := p.SetDetails(nil, []*pb.RpcObjectSetDetailsDetail{ { Key: "key", Value: pbtypes.String("value"), diff --git a/core/block/editor/relation.go b/core/block/editor/relation.go index 65e636335..14d8c38c4 100644 --- a/core/block/editor/relation.go +++ b/core/block/editor/relation.go @@ -45,7 +45,7 @@ func (p *Relation) Init(ctx *smartblock.InitContext) (err error) { }, } - return smartblock.ApplyTemplate(p, ctx.State, + return smartblock.ObjectApplyTemplate(p, ctx.State, template.WithObjectTypesAndLayout([]string{bundle.TypeKeyRelation.URL()}), template.WithEmpty, template.WithTitle, diff --git a/core/block/editor/set.go b/core/block/editor/set.go index f3dda0230..c111b925d 100644 --- a/core/block/editor/set.go +++ b/core/block/editor/set.go @@ -105,7 +105,7 @@ func (p *Set) Init(ctx *smartblock.InitContext) (err error) { templates = append(templates, template.WithDataviewRequiredRelation(template.DataviewBlockId, bundle.RelationKeyDone)) } templates = append(templates, template.WithTitle) - if err = smartblock.ApplyTemplate(p, ctx.State, templates...); err != nil { + if err = smartblock.ObjectApplyTemplate(p, ctx.State, templates...); err != nil { return } p.applyRestrictions(ctx.State) @@ -133,7 +133,7 @@ func (p *Set) InitDataview(blockContent *model.BlockContentOfDataview, name, ico ) } - if err := smartblock.ApplyTemplate(p, s, tmpls...); err != nil { + if err := smartblock.ObjectApplyTemplate(p, s, tmpls...); err != nil { return err } p.applyRestrictions(s) diff --git a/core/block/editor/smartblock/smartblock.go b/core/block/editor/smartblock/smartblock.go index 18b706a18..8964c6f0a 100644 --- a/core/block/editor/smartblock/smartblock.go +++ b/core/block/editor/smartblock/smartblock.go @@ -75,9 +75,9 @@ func New() SmartBlock { return &smartBlock{} } -type SmartblockOpenListner interface { +type SmartObjectOpenListner interface { // should not do any Do operations inside - SmartblockOpened(*state.Context) + SmartObjectOpened(*state.Context) } type SmartBlock interface { @@ -90,7 +90,7 @@ type SmartBlock interface { Apply(s *state.State, flags ...ApplyFlag) error History() undo.History Anytype() core.Service - SetDetails(ctx *state.Context, details []*pb.RpcBlockSetDetailsDetail, showEvent bool) (err error) + SetDetails(ctx *state.Context, details []*pb.RpcObjectSetDetailsDetail, showEvent bool) (err error) Relations() []*model.Relation RelationsState(s *state.State, aggregateFromDS bool) []*model.Relation HasRelation(relationKey string) bool @@ -101,7 +101,7 @@ type SmartBlock interface { AddExtraRelationOption(ctx *state.Context, relationKey string, option model.RelationOption, showEvent bool) (*model.RelationOption, error) UpdateExtraRelationOption(ctx *state.Context, relationKey string, option model.RelationOption, showEvent bool) error DeleteExtraRelationOption(ctx *state.Context, relationKey string, optionId string, showEvent bool) error - MakeTemplateState() (*state.State, error) + TemplateCreateFromObjectState() (*state.State, error) SetObjectTypes(ctx *state.Context, objectTypes []string) (err error) SetAlign(ctx *state.Context, align model.BlockAlign, ids ...string) error SetLayout(ctx *state.Context, layout model.ObjectTypeLayout) error @@ -118,7 +118,7 @@ type SmartBlock interface { ObjectStore() objectstore.ObjectStore Restrictions() restriction.Restrictions SetRestrictions(r restriction.Restrictions) - BlockClose() + ObjectClose() Close() (err error) state.Doc @@ -784,7 +784,7 @@ func (sb *smartBlock) Anytype() core.Service { return sb.source.Anytype() } -func (sb *smartBlock) SetDetails(ctx *state.Context, details []*pb.RpcBlockSetDetailsDetail, showEvent bool) (err error) { +func (sb *smartBlock) SetDetails(ctx *state.Context, details []*pb.RpcObjectSetDetailsDetail, showEvent bool) (err error) { s := sb.NewStateCtx(ctx) detCopy := pbtypes.CopyStruct(s.CombinedDetails()) if detCopy == nil || detCopy.Fields == nil { @@ -1092,7 +1092,7 @@ func (sb *smartBlock) setLayout(s *state.State, layout model.ObjectTypeLayout) ( return template.InitTemplate(s, template.ByLayout(layout)...) } -func (sb *smartBlock) MakeTemplateState() (*state.State, error) { +func (sb *smartBlock) TemplateCreateFromObjectState() (*state.State, error) { st := sb.NewState().Copy() st.SetLocalDetails(nil) st.SetDetail(bundle.RelationKeyTargetObjectType.String(), pbtypes.String(st.ObjectType())) @@ -1404,7 +1404,7 @@ func (sb *smartBlock) DocService() doc.Service { return sb.doc } -func (sb *smartBlock) BlockClose() { +func (sb *smartBlock) ObjectClose() { sb.execHooks(HookOnBlockClose) sb.SetEventFunc(nil) } @@ -1719,7 +1719,7 @@ func msgsToEvents(msgs []simple.EventMessage) []*pb.EventMessage { return events } -func ApplyTemplate(sb SmartBlock, s *state.State, templates ...template.StateTransformer) (err error) { +func ObjectApplyTemplate(sb SmartBlock, s *state.State, templates ...template.StateTransformer) (err error) { if s == nil { s = sb.NewState() } diff --git a/core/block/editor/smartblock/smarttest/smarttest.go b/core/block/editor/smartblock/smarttest/smarttest.go index 36c1ec92b..ef7bdf844 100644 --- a/core/block/editor/smartblock/smarttest/smarttest.go +++ b/core/block/editor/smartblock/smarttest/smarttest.go @@ -99,7 +99,7 @@ func (st *SmartTest) DefaultObjectTypeUrl() string { return "" } -func (st *SmartTest) MakeTemplateState() (*state.State, error) { +func (st *SmartTest) TemplateCreateFromObjectState() (*state.State, error) { return st.Doc.NewState().Copy(), nil } @@ -235,7 +235,7 @@ func (st *SmartTest) SendEvent(msgs []*pb.EventMessage) { return } -func (st *SmartTest) SetDetails(ctx *state.Context, details []*pb.RpcBlockSetDetailsDetail, showEvent bool) (err error) { +func (st *SmartTest) SetDetails(ctx *state.Context, details []*pb.RpcObjectSetDetailsDetail, showEvent bool) (err error) { if st.meta == nil { st.meta = &core.SmartBlockMeta{ Relations: st.ExtraRelations(), @@ -333,7 +333,7 @@ func (st *SmartTest) FileRelationKeys() []string { return nil } -func (st *SmartTest) BlockClose() { +func (st *SmartTest) ObjectClose() { st.SetEventFunc(nil) } diff --git a/core/block/editor/state/event.go b/core/block/editor/state/event.go index c5ae111d6..0e33fac47 100644 --- a/core/block/editor/state/event.go +++ b/core/block/editor/state/event.go @@ -146,6 +146,7 @@ func (s *State) applyEvent(ev *pb.EventMessage) (err error) { }); err != nil { return } + case *pb.EventMessageValueOfBlockDataviewRelationDelete: if err = apply(o.BlockDataviewRelationDelete.Id, func(b simple.Block) error { if f, ok := b.(dataview.Block); ok { @@ -220,7 +221,7 @@ func StructDiffIntoEventsWithSubIds(contextId string, diff *types.Struct, keys [ ObjectDetailsAmend: &pb.EventObjectDetailsAmend{ Id: contextId, Details: details, - SubIds: subIds, + SubIds: subIds, }, }, }) @@ -229,8 +230,8 @@ func StructDiffIntoEventsWithSubIds(contextId string, diff *types.Struct, keys [ msgs = append(msgs, &pb.EventMessage{ Value: &pb.EventMessageValueOfObjectDetailsUnset{ ObjectDetailsUnset: &pb.EventObjectDetailsUnset{ - Id: contextId, - Keys: removed, + Id: contextId, + Keys: removed, SubIds: subIds, }, }, diff --git a/core/block/editor/stext/text.go b/core/block/editor/stext/text.go index 5da083b9c..3afc7fed7 100644 --- a/core/block/editor/stext/text.go +++ b/core/block/editor/stext/text.go @@ -2,7 +2,6 @@ package stext import ( "fmt" - "github.com/anytypeio/go-anytype-middleware/metrics" "sort" "strings" "time" @@ -12,6 +11,7 @@ import ( "github.com/anytypeio/go-anytype-middleware/core/block/editor/template" "github.com/anytypeio/go-anytype-middleware/core/block/simple/link" "github.com/anytypeio/go-anytype-middleware/core/block/simple/text" + "github.com/anytypeio/go-anytype-middleware/metrics" "github.com/anytypeio/go-anytype-middleware/pb" "github.com/anytypeio/go-anytype-middleware/pkg/lib/logging" "github.com/anytypeio/go-anytype-middleware/pkg/lib/pb/model" @@ -27,7 +27,7 @@ type Text interface { Merge(ctx *state.Context, firstId, secondId string) (err error) SetMark(ctx *state.Context, mark *model.BlockContentTextMark, blockIds ...string) error SetIcon(ctx *state.Context, image, emoji string, blockIds ...string) error - SetText(req pb.RpcBlockSetTextTextRequest) (err error) + SetText(req pb.RpcBlockTextSetTextRequest) (err error) TurnInto(ctx *state.Context, style model.BlockContentTextStyle, ids ...string) error } @@ -156,6 +156,12 @@ func (t *textImpl) Split(ctx *state.Context, req pb.RpcBlockSplitRequest) (newId func (t *textImpl) Merge(ctx *state.Context, firstId, secondId string) (err error) { startTime := time.Now() s := t.NewStateCtx(ctx) + + // Don't merge blocks inside header block + if s.IsParentOf(template.HeaderLayoutId, secondId) { + return + } + first, err := getText(s, firstId) if err != nil { return @@ -275,7 +281,7 @@ func (t *textImpl) cancelSetTextState() { } } -func (t *textImpl) SetText(req pb.RpcBlockSetTextTextRequest) (err error) { +func (t *textImpl) SetText(req pb.RpcBlockTextSetTextRequest) (err error) { defer func() { if err != nil { t.cancelSetTextState() diff --git a/core/block/editor/stext/text_test.go b/core/block/editor/stext/text_test.go index 68ebf6327..323d59bd8 100644 --- a/core/block/editor/stext/text_test.go +++ b/core/block/editor/stext/text_test.go @@ -5,6 +5,7 @@ import ( "time" "github.com/anytypeio/go-anytype-middleware/core/block/editor/smartblock/smarttest" + "github.com/anytypeio/go-anytype-middleware/core/block/editor/template" "github.com/anytypeio/go-anytype-middleware/core/block/simple" "github.com/anytypeio/go-anytype-middleware/core/block/simple/link" "github.com/anytypeio/go-anytype-middleware/core/block/simple/text" @@ -130,27 +131,56 @@ func TestTextImpl_Split(t *testing.T) { } func TestTextImpl_Merge(t *testing.T) { - sb := smarttest.New("test") - tb1 := newTextBlock("1", "one") - tb1.Model().ChildrenIds = []string{"ch1"} - tb2 := newTextBlock("2", "two") - tb2.Model().ChildrenIds = []string{"ch2"} - sb.AddBlock(simple.New(&model.Block{Id: "test", ChildrenIds: []string{"1", "2"}})). - AddBlock(tb1). - AddBlock(tb2). - AddBlock(simple.New(&model.Block{Id: "ch1"})). - AddBlock(simple.New(&model.Block{Id: "ch2"})) - tb := NewText(sb) + t.Run("should merge two text blocks", func(t *testing.T) { + sb := smarttest.New("test") + tb1 := newTextBlock("1", "one") + tb1.Model().ChildrenIds = []string{"ch1"} + tb2 := newTextBlock("2", "two") + tb2.Model().ChildrenIds = []string{"ch2"} + sb.AddBlock(simple.New(&model.Block{Id: "test", ChildrenIds: []string{"1", "2"}})). + AddBlock(tb1). + AddBlock(tb2). + AddBlock(simple.New(&model.Block{Id: "ch1"})). + AddBlock(simple.New(&model.Block{Id: "ch2"})) + tb := NewText(sb) - err := tb.Merge(nil, "1", "2") - require.NoError(t, err) + err := tb.Merge(nil, "1", "2") + require.NoError(t, err) - r := sb.NewState() - assert.False(t, r.Exists("2")) - require.True(t, r.Exists("1")) + r := sb.NewState() + assert.False(t, r.Exists("2")) + require.True(t, r.Exists("1")) - assert.Equal(t, "onetwo", r.Pick("1").Model().GetText().Text) - assert.Equal(t, []string{"ch1", "ch2"}, r.Pick("1").Model().ChildrenIds) + assert.Equal(t, "onetwo", r.Pick("1").Model().GetText().Text) + assert.Equal(t, []string{"ch1", "ch2"}, r.Pick("1").Model().ChildrenIds) + }) + + t.Run("shouldn't merge blocks inside header block", func(t *testing.T) { + sb := smarttest.New("test") + tb1 := newTextBlock("1", "one") + tb1.Model().ChildrenIds = []string{"ch1"} + tb2 := newTextBlock("2", "two") + tb2.Model().ChildrenIds = []string{"ch2"} + sb.AddBlock(simple.New(&model.Block{Id: template.HeaderLayoutId, ChildrenIds: []string{"1", "2"}})). + AddBlock(tb1). + AddBlock(tb2). + AddBlock(simple.New(&model.Block{Id: "ch1"})). + AddBlock(simple.New(&model.Block{Id: "ch2"})) + + tb := NewText(sb) + + err := tb.Merge(nil, "1", "2") + require.NoError(t, err) + + r := sb.NewState() + require.True(t, r.Exists("1")) + require.True(t, r.Exists("2")) + + assert.Equal(t, "one", r.Pick("1").Model().GetText().Text) + assert.Equal(t, "two", r.Pick("2").Model().GetText().Text) + assert.Equal(t, []string{"ch1"}, r.Pick("1").Model().ChildrenIds) + assert.Equal(t, []string{"ch2"}, r.Pick("2").Model().ChildrenIds) + }) } func TestTextImpl_SetMark(t *testing.T) { @@ -210,11 +240,11 @@ func TestTextImpl_SetText(t *testing.T) { AddBlock(newTextBlock("2", " ")) tb := NewText(sb) - require.NoError(t, tb.SetText(pb.RpcBlockSetTextTextRequest{ + require.NoError(t, tb.SetText(pb.RpcBlockTextSetTextRequest{ BlockId: "1", Text: "1", })) - require.NoError(t, tb.SetText(pb.RpcBlockSetTextTextRequest{ + require.NoError(t, tb.SetText(pb.RpcBlockTextSetTextRequest{ BlockId: "1", Text: "12", })) @@ -230,11 +260,11 @@ func TestTextImpl_SetText(t *testing.T) { AddBlock(newTextBlock("2", " ")) tb := NewText(sb) - require.NoError(t, tb.SetText(pb.RpcBlockSetTextTextRequest{ + require.NoError(t, tb.SetText(pb.RpcBlockTextSetTextRequest{ BlockId: "1", Text: "1", })) - require.NoError(t, tb.SetText(pb.RpcBlockSetTextTextRequest{ + require.NoError(t, tb.SetText(pb.RpcBlockTextSetTextRequest{ BlockId: "1", Text: "12", })) @@ -252,12 +282,12 @@ func TestTextImpl_SetText(t *testing.T) { AddBlock(newTextBlock("2", "")) tb := NewText(sb) - require.NoError(t, tb.SetText(pb.RpcBlockSetTextTextRequest{ + require.NoError(t, tb.SetText(pb.RpcBlockTextSetTextRequest{ BlockId: "1", Text: "1", })) tb.(*textImpl).flushSetTextState() - require.NoError(t, tb.SetText(pb.RpcBlockSetTextTextRequest{ + require.NoError(t, tb.SetText(pb.RpcBlockTextSetTextRequest{ BlockId: "2", Text: "2", })) @@ -274,7 +304,7 @@ func TestTextImpl_SetText(t *testing.T) { AddBlock(newTextBlock("2", "")) tb := NewText(sb) - require.NoError(t, tb.SetText(pb.RpcBlockSetTextTextRequest{ + require.NoError(t, tb.SetText(pb.RpcBlockTextSetTextRequest{ BlockId: "1", Text: "1", Marks: &model.BlockContentTextMarks{ @@ -296,7 +326,7 @@ func TestTextImpl_SetText(t *testing.T) { AddBlock(newTextBlock("1", "")). AddBlock(simple.New(&model.Block{Id: "2"})) tb := NewText(sb) - assert.Error(t, tb.SetText(pb.RpcBlockSetTextTextRequest{ + assert.Error(t, tb.SetText(pb.RpcBlockTextSetTextRequest{ BlockId: "2", Text: "", })) diff --git a/core/block/editor/template/layout.go b/core/block/editor/template/layout.go index 10a32d23f..64a28a073 100644 --- a/core/block/editor/template/layout.go +++ b/core/block/editor/template/layout.go @@ -13,6 +13,7 @@ func ByLayout(layout model.ObjectTypeLayout, templates ...StateTransformer) []St WithFeaturedRelations, WithRequiredRelations(), WithMaxCountMigration, + WithLinkFieldsMigration, ) switch layout { diff --git a/core/block/editor/template/template.go b/core/block/editor/template/template.go index 46ba549b8..30f6f1ab1 100644 --- a/core/block/editor/template/template.go +++ b/core/block/editor/template/template.go @@ -683,3 +683,47 @@ func InitTemplate(s *state.State, templates ...StateTransformer) (err error) { return } + +var WithLinkFieldsMigration = func(s *state.State) { + const linkMigratedKey = "_link_migrated" + s.Iterate(func(b simple.Block) (isContinue bool) { + if _, ok := b.(*link.Link); !ok { + return true + } else { + if b.Model().GetFields().GetFields() != nil && !pbtypes.GetBool(b.Model().GetFields(), linkMigratedKey) { + link := s.Get(b.Model().Id).(*link.Link).GetLink() + + if cardStyle, ok := b.Model().GetFields().Fields["style"]; ok { + link.CardStyle = model.BlockContentLinkCardStyle(cardStyle.GetNumberValue()) + } + + if iconSize, ok := b.Model().GetFields().Fields["iconSize"]; ok { + if int(iconSize.GetNumberValue()) < 2 { + link.IconSize = model.BlockContentLink_Small + } else { + link.IconSize = model.BlockContentLink_Medium + } + } + + if description, ok := b.Model().GetFields().Fields["description"]; ok { + link.Description = model.BlockContentLinkDescription(description.GetNumberValue()) + } + + featuredRelations := map[string]string{"withCover": "cover", "withIcon": "icon", "withName": "name", "withType": "type"} + for key, relName := range featuredRelations { + if rel, ok := b.Model().GetFields().Fields[key]; ok { + if rel.GetBoolValue() { + link.Relations = append(link.Relations, relName) + } + } + } + + b.Model().Fields.Fields[linkMigratedKey] = pbtypes.Bool(true) + } + + return true + } + }) + + return +} diff --git a/core/block/editor/threaddb.go b/core/block/editor/threaddb.go index 1115c839e..60adb2603 100644 --- a/core/block/editor/threaddb.go +++ b/core/block/editor/threaddb.go @@ -38,7 +38,7 @@ func (p *ThreadDB) Init(ctx *smartblock.InitContext) (err error) { } p.AddHook(p.updateObjects, smartblock.HookAfterApply) - return smartblock.ApplyTemplate(p, ctx.State, + return smartblock.ObjectApplyTemplate(p, ctx.State, template.WithEmpty, template.WithTitle, ) diff --git a/core/block/editor/workspaces.go b/core/block/editor/workspaces.go index da97388f7..40a92e39f 100644 --- a/core/block/editor/workspaces.go +++ b/core/block/editor/workspaces.go @@ -284,7 +284,7 @@ func (p *Workspaces) Init(ctx *smartblock.InitContext) (err error) { } p.AddHook(p.updateObjects, smartblock.HookAfterApply) - err = smartblock.ApplyTemplate(p, ctx.State, + err = smartblock.ObjectApplyTemplate(p, ctx.State, template.WithEmpty, template.WithTitle, template.WithFeaturedRelations, diff --git a/core/block/export/export.go b/core/block/export/export.go index 8ebb66bea..f1d445670 100644 --- a/core/block/export/export.go +++ b/core/block/export/export.go @@ -41,7 +41,7 @@ func New() Export { } type Export interface { - Export(req pb.RpcExportRequest) (path string, succeed int, err error) + Export(req pb.RpcObjectListExportRequest) (path string, succeed int, err error) app.Component } @@ -60,7 +60,7 @@ func (e *export) Name() (name string) { return CName } -func (e *export) Export(req pb.RpcExportRequest) (path string, succeed int, err error) { +func (e *export) Export(req pb.RpcObjectListExportRequest) (path string, succeed int, err error) { queue := e.bs.Process().NewQueue(pb.ModelProcess{ Id: bson.NewObjectId().Hex(), Type: pb.ModelProcess_Export, @@ -73,7 +73,7 @@ func (e *export) Export(req pb.RpcExportRequest) (path string, succeed int, err } defer queue.Stop(err) - docs, err := e.docsForExport(req.DocIds, req.IncludeNested) + docs, err := e.docsForExport(req.ObjectIds, req.IncludeNested) if err != nil { return } @@ -92,9 +92,9 @@ func (e *export) Export(req pb.RpcExportRequest) (path string, succeed int, err defer wr.Close() queue.SetMessage("export docs") - if req.Format == pb.RpcExport_DOT || req.Format == pb.RpcExport_SVG { + if req.Format == pb.RpcObjectListExport_DOT || req.Format == pb.RpcObjectListExport_SVG { var format = dot.ExportFormatDOT - if req.Format == pb.RpcExport_SVG { + if req.Format == pb.RpcObjectListExport_SVG { format = dot.ExportFormatSVG } mc := dot.NewMultiConverter(format) @@ -103,7 +103,7 @@ func (e *export) Export(req pb.RpcExportRequest) (path string, succeed int, err if succeed, werr = e.writeMultiDoc(mc, wr, docs, queue); werr != nil { log.Warnf("can't export docs: %v", werr) } - } else if req.Format == pb.RpcExport_GRAPH_JSON { + } else if req.Format == pb.RpcObjectListExport_GRAPH_JSON { mc := graphjson.NewMultiConverter() mc.SetKnownDocs(docs) var werr error @@ -276,7 +276,7 @@ func (e *export) writeMultiDoc(mw converter.MultiConverter, wr writer, docs map[ return } -func (e *export) writeDoc(format pb.RpcExportFormat, wr writer, docInfo map[string]*types.Struct, queue process.Queue, docId string, exportFiles bool) (err error) { +func (e *export) writeDoc(format pb.RpcObjectListExportFormat, wr writer, docInfo map[string]*types.Struct, queue process.Queue, docId string, exportFiles bool) (err error) { return e.bs.Do(docId, func(b sb.SmartBlock) error { if pbtypes.GetBool(b.CombinedDetails(), bundle.RelationKeyIsArchived.String()) { return nil @@ -286,17 +286,17 @@ func (e *export) writeDoc(format pb.RpcExportFormat, wr writer, docInfo map[stri } var conv converter.Converter switch format { - case pb.RpcExport_Markdown: + case pb.RpcObjectListExport_Markdown: conv = md.NewMDConverter(e.a, b.NewState(), wr.Namer()) - case pb.RpcExport_Protobuf: + case pb.RpcObjectListExport_Protobuf: conv = pbc.NewConverter(b) - case pb.RpcExport_JSON: + case pb.RpcObjectListExport_JSON: conv = pbjson.NewConverter(b) } conv.SetKnownDocs(docInfo) result := conv.Convert() filename := docId + conv.Ext() - if format == pb.RpcExport_Markdown { + if format == pb.RpcObjectListExport_Markdown { s := b.NewState() name := pbtypes.GetString(s.Details(), bundle.RelationKeyName.String()) if name == "" { diff --git a/core/block/service.go b/core/block/service.go index 437c4e346..78f0ca5b1 100644 --- a/core/block/service.go +++ b/core/block/service.go @@ -90,28 +90,27 @@ type Service interface { OpenBlock(ctx *state.Context, id string) error ShowBlock(ctx *state.Context, id string) error OpenBreadcrumbsBlock(ctx *state.Context) (blockId string, err error) - SetBreadcrumbs(ctx *state.Context, req pb.RpcBlockSetBreadcrumbsRequest) (err error) + SetBreadcrumbs(ctx *state.Context, req pb.RpcObjectSetBreadcrumbsRequest) (err error) CloseBlock(id string) error CloseBlocks() CreateBlock(ctx *state.Context, req pb.RpcBlockCreateRequest) (string, error) - CreatePage(ctx *state.Context, groupId string, req pb.RpcBlockCreatePageRequest) (linkId string, pageId string, err error) - CreatePageFromState(ctx *state.Context, contextBlock smartblock.SmartBlock, groupId string, req pb.RpcBlockCreatePageRequest, st *state.State) (linkId string, pageId string, err error) + CreateLinkToTheNewObject(ctx *state.Context, groupId string, req pb.RpcBlockLinkCreateWithObjectRequest) (linkId string, pageId string, err error) + CreatePageFromState(ctx *state.Context, contextBlock smartblock.SmartBlock, groupId string, req pb.RpcBlockLinkCreateWithObjectRequest, st *state.State) (linkId string, pageId string, err error) CreateSmartBlock(ctx context.Context, sbType coresb.SmartBlockType, details *types.Struct, relations []*model.Relation) (id string, newDetails *types.Struct, err error) CreateSmartBlockFromTemplate(ctx context.Context, sbType coresb.SmartBlockType, details *types.Struct, relations []*model.Relation, templateId string) (id string, newDetails *types.Struct, err error) CreateSmartBlockFromState(ctx context.Context, sbType coresb.SmartBlockType, details *types.Struct, relations []*model.Relation, createState *state.State) (id string, newDetails *types.Struct, err error) DuplicateBlocks(ctx *state.Context, req pb.RpcBlockListDuplicateRequest) ([]string, error) - UnlinkBlock(ctx *state.Context, req pb.RpcBlockUnlinkRequest) error + UnlinkBlock(ctx *state.Context, req pb.RpcBlockListDeleteRequest) error ReplaceBlock(ctx *state.Context, req pb.RpcBlockReplaceRequest) (newId string, err error) ObjectToSet(id string, source []string) (newId string, err error) - UpdateBlockContent(ctx *state.Context, req pb.RpcBlockUpdateContentRequest) (err error) - MoveBlocks(ctx *state.Context, req pb.RpcBlockListMoveRequest) error - MoveBlocksToNewPage(ctx *state.Context, req pb.RpcBlockListMoveToNewPageRequest) (linkId string, err error) - ConvertChildrenToPages(ctx *state.Context, req pb.RpcBlockListConvertChildrenToPagesRequest) (linkIds []string, err error) + MoveBlocks(ctx *state.Context, req pb.RpcBlockListMoveToExistingObjectRequest) error + MoveBlocksToNewPage(ctx *state.Context, req pb.RpcBlockListMoveToNewObjectRequest) (linkId string, err error) + ConvertChildrenToPages(ctx *state.Context, req pb.RpcBlockListConvertToObjectsRequest) (linkIds []string, err error) SetFields(ctx *state.Context, req pb.RpcBlockSetFieldsRequest) error SetFieldsList(ctx *state.Context, req pb.RpcBlockListSetFieldsRequest) error - SetDetails(ctx *state.Context, req pb.RpcBlockSetDetailsRequest) (err error) + SetDetails(ctx *state.Context, req pb.RpcObjectSetDetailsRequest) (err error) ModifyDetails(objectId string, modifier func(current *types.Struct) (*types.Struct, error)) (err error) // you must copy original struct within the modifier in order to modify it GetRelations(objectId string) (relations []*model.Relation, err error) @@ -119,7 +118,7 @@ type Service interface { ModifyExtraRelations(ctx *state.Context, objectId string, modifier func(current []*model.Relation) ([]*model.Relation, error)) (err error) AddExtraRelations(ctx *state.Context, id string, relations []*model.Relation) (relationsWithKeys []*model.Relation, err error) RemoveExtraRelations(ctx *state.Context, id string, relationKeys []string) (err error) - CreateSet(ctx *state.Context, req pb.RpcBlockCreateSetRequest) (linkId string, setId string, err error) + CreateSet(req pb.RpcObjectCreateSetRequest) (setId string, err error) SetDataviewSource(ctx *state.Context, contextId, blockId string, source []string) error ListAvailableRelations(objectId string) (aggregatedRelations []*model.Relation, err error) @@ -133,20 +132,21 @@ type Service interface { Copy(req pb.RpcBlockCopyRequest) (textSlot string, htmlSlot string, anySlot []*model.Block, err error) Cut(ctx *state.Context, req pb.RpcBlockCutRequest) (textSlot string, htmlSlot string, anySlot []*model.Block, err error) Export(req pb.RpcBlockExportRequest) (path string, err error) - ImportMarkdown(ctx *state.Context, req pb.RpcBlockImportMarkdownRequest) (rootLinkIds []string, err error) + ImportMarkdown(ctx *state.Context, req pb.RpcObjectImportMarkdownRequest) (rootLinkIds []string, err error) SplitBlock(ctx *state.Context, req pb.RpcBlockSplitRequest) (blockId string, err error) MergeBlock(ctx *state.Context, req pb.RpcBlockMergeRequest) error - SetLatexText(ctx *state.Context, req pb.RpcBlockSetLatexTextRequest) error - SetTextText(ctx *state.Context, req pb.RpcBlockSetTextTextRequest) error + SetLatexText(ctx *state.Context, req pb.RpcBlockLatexSetTextRequest) error + SetTextText(ctx *state.Context, req pb.RpcBlockTextSetTextRequest) error SetTextStyle(ctx *state.Context, contextId string, style model.BlockContentTextStyle, blockIds ...string) error - SetTextChecked(ctx *state.Context, req pb.RpcBlockSetTextCheckedRequest) error + SetTextChecked(ctx *state.Context, req pb.RpcBlockTextSetCheckedRequest) error SetTextColor(ctx *state.Context, contextId string, color string, blockIds ...string) error SetTextMark(ctx *state.Context, id string, mark *model.BlockContentTextMark, ids ...string) error SetTextIcon(ctx *state.Context, contextId, image, emoji string, blockIds ...string) error SetBackgroundColor(ctx *state.Context, contextId string, color string, blockIds ...string) error SetAlign(ctx *state.Context, contextId string, align model.BlockAlign, blockIds ...string) (err error) SetLayout(ctx *state.Context, id string, layout model.ObjectTypeLayout) error + SetLinkAppearance(ctx *state.Context, req pb.RpcBlockLinkListSetAppearanceRequest) (err error) FeaturedRelationAdd(ctx *state.Context, contextId string, relations ...string) error FeaturedRelationRemove(ctx *state.Context, contextId string, relations ...string) error @@ -156,14 +156,14 @@ type Service interface { SetDivStyle(ctx *state.Context, contextId string, style model.BlockContentDivStyle, ids ...string) (err error) SetFileStyle(ctx *state.Context, contextId string, style model.BlockContentFileStyle, blockIds ...string) error - UploadFile(req pb.RpcUploadFileRequest) (hash string, err error) + UploadFile(req pb.RpcFileUploadRequest) (hash string, err error) UploadBlockFile(ctx *state.Context, req pb.RpcBlockUploadRequest, groupId string) error UploadBlockFileSync(ctx *state.Context, req pb.RpcBlockUploadRequest) (err error) CreateAndUploadFile(ctx *state.Context, req pb.RpcBlockFileCreateAndUploadRequest) (id string, err error) - DropFiles(req pb.RpcExternalDropFilesRequest) (err error) + DropFiles(req pb.RpcFileDropRequest) (err error) - Undo(ctx *state.Context, req pb.RpcBlockUndoRequest) (pb.RpcBlockUndoRedoCounter, error) - Redo(ctx *state.Context, req pb.RpcBlockRedoRequest) (pb.RpcBlockUndoRedoCounter, error) + Undo(ctx *state.Context, req pb.RpcObjectUndoRequest) (pb.RpcObjectUndoRedoCounter, error) + Redo(ctx *state.Context, req pb.RpcObjectRedoRequest) (pb.RpcObjectUndoRedoCounter, error) SetPagesIsArchived(req pb.RpcObjectListSetIsArchivedRequest) error SetPagesIsFavorite(req pb.RpcObjectListSetIsFavoriteRequest) error @@ -206,12 +206,11 @@ type Service interface { GetDocInfo(ctx context.Context, id string) (info doc.DocInfo, err error) Wakeup(id string) (err error) - MakeTemplate(id string) (templateId string, err error) - MakeTemplateByObjectType(otId string) (templateId string, err error) - CloneTemplate(id string) (templateId string, err error) - ObjectDuplicate(id string) (objectId string, err error) + TemplateCreateFromObject(id string) (templateId string, err error) + TemplateCreateFromObjectByObjectType(otId string) (templateId string, err error) + TemplateClone(id string) (templateId string, err error) ObjectsDuplicate(ids []string) (newIds []string, err error) - ApplyTemplate(contextId, templateId string) error + ObjectApplyTemplate(contextId, templateId string) error CreateWorkspace(req *pb.RpcWorkspaceCreateRequest) (string, error) SelectWorkspace(req *pb.RpcWorkspaceSelectRequest) error @@ -353,8 +352,8 @@ func (s *service) OpenBlock(ctx *state.Context, id string) (err error) { ob.Lock() defer ob.Unlock() ob.SetEventFunc(s.sendEvent) - if v, hasOpenListner := ob.SmartBlock.(smartblock.SmartblockOpenListner); hasOpenListner { - v.SmartblockOpened(ctx) + if v, hasOpenListner := ob.SmartBlock.(smartblock.SmartObjectOpenListner); hasOpenListner { + v.SmartObjectOpened(ctx) } afterDataviewTime := time.Now() st := ob.NewState() @@ -434,7 +433,7 @@ func (s *service) CloseBlock(id string) error { workspaceId string ) err := s.Do(id, func(b smartblock.SmartBlock) error { - b.BlockClose() + b.ObjectClose() s := b.NewState() isDraft = pbtypes.GetBool(s.LocalDetails(), bundle.RelationKeyIsDraft.String()) workspaceId = pbtypes.GetString(s.LocalDetails(), bundle.RelationKeyWorkspaceId.String()) @@ -460,7 +459,7 @@ func (s *service) CloseBlocks() { s.cache.ForEach(func(v ocache.Object) (isContinue bool) { ob := v.(*openedBlock) ob.Lock() - ob.BlockClose() + ob.ObjectClose() ob.Unlock() s.cache.Reset(ob.Id()) return true @@ -574,18 +573,22 @@ func (s *service) SetPagesIsArchived(req pb.RpcObjectListSetIsArchivedRequest) ( } anySucceed := false - for _, blockId := range req.ObjectIds { - if restrErr := s.checkArchivedRestriction(req.IsArchived, blockId); restrErr != nil { + ids, err := s.objectStore.HasIDs(req.ObjectIds...) + if err != nil { + return err + } + for _, id := range ids { + if restrErr := s.checkArchivedRestriction(req.IsArchived, id); restrErr != nil { err = restrErr } else { if req.IsArchived { - err = archive.AddObject(blockId) + err = archive.AddObject(id) } else { - err = archive.RemoveObject(blockId) + err = archive.RemoveObject(id) } } if err != nil { - log.Errorf("failed to archive %s: %s", blockId, err.Error()) + log.Errorf("failed to archive %s: %s", id, err.Error()) } else { anySucceed = true } @@ -608,14 +611,18 @@ func (s *service) SetPagesIsFavorite(req pb.RpcObjectListSetIsFavoriteRequest) ( } anySucceed := false - for _, blockId := range req.ObjectIds { + ids, err := s.objectStore.HasIDs(req.ObjectIds...) + if err != nil { + return err + } + for _, id := range ids { if req.IsFavorite { - err = fav.AddObject(blockId) + err = fav.AddObject(id) } else { - err = fav.RemoveObject(blockId) + err = fav.RemoveObject(id) } if err != nil { - log.Errorf("failed to favorite object %s: %s", blockId, err.Error()) + log.Errorf("failed to favorite object %s: %s", id, err.Error()) } else { anySucceed = true } @@ -751,7 +758,7 @@ func (s *service) DeleteObject(id string) (err error) { if err = b.Restrictions().Object.Check(model.Restrictions_Delete); err != nil { return err } - b.BlockClose() + b.ObjectClose() st := b.NewState() fileHashes = st.GetAllFileHashes(st.FileRelationKeys()) workspaceId, err = s.anytype.GetWorkspaceIdForObject(id) @@ -932,8 +939,8 @@ func (s *service) CreateSmartBlockFromState(ctx context.Context, sbType coresb.S return id, sb.CombinedDetails(), nil } -// CreatePage creates a page and stores a link to it in the context block -func (s *service) CreatePage(ctx *state.Context, groupId string, req pb.RpcBlockCreatePageRequest) (linkId string, pageId string, err error) { +// CreateLinkToTheNewObject creates an object and stores the link to it in the context block +func (s *service) CreateLinkToTheNewObject(ctx *state.Context, groupId string, req pb.RpcBlockLinkCreateWithObjectRequest) (linkId string, pageId string, err error) { pageCreator := func(ctx context.Context) (string, error) { pageId, _, err = s.CreateSmartBlockFromTemplate(ctx, coresb.SmartBlockTypePage, req.Details, nil, req.TemplateId) if err != nil { @@ -953,7 +960,7 @@ func (s *service) CreatePage(ctx *state.Context, groupId string, req pb.RpcBlock return s.createPage(ctx, nil, groupId, req, true, pageCreator) } -func (s *service) CreatePageFromState(ctx *state.Context, contextBlock smartblock.SmartBlock, groupId string, req pb.RpcBlockCreatePageRequest, state *state.State) (linkId string, pageId string, err error) { +func (s *service) CreatePageFromState(ctx *state.Context, contextBlock smartblock.SmartBlock, groupId string, req pb.RpcBlockLinkCreateWithObjectRequest, state *state.State) (linkId string, pageId string, err error) { return s.createPage(ctx, contextBlock, groupId, req, false, func(ctx context.Context) (string, error) { pageId, _, err = s.CreateSmartBlockFromState(ctx, coresb.SmartBlockTypePage, req.Details, nil, state) if err != nil { @@ -963,7 +970,7 @@ func (s *service) CreatePageFromState(ctx *state.Context, contextBlock smartbloc }) } -func (s *service) createPage(ctx *state.Context, contextBlock smartblock.SmartBlock, groupId string, req pb.RpcBlockCreatePageRequest, storeLink bool, create func(context.Context) (pageId string, err error)) (linkId string, pageId string, err error) { +func (s *service) createPage(ctx *state.Context, contextBlock smartblock.SmartBlock, groupId string, req pb.RpcBlockLinkCreateWithObjectRequest, storeLink bool, create func(context.Context) (pageId string, err error)) (linkId string, pageId string, err error) { if contextBlock != nil { if contextBlock.Type() == model.SmartBlockType_Set { return "", "", basic.ErrNotSupported @@ -1301,13 +1308,13 @@ func (s *service) DoWithContext(ctx context.Context, id string, apply func(b sma return apply(sb) } -func (s *service) MakeTemplate(id string) (templateId string, err error) { +func (s *service) TemplateCreateFromObject(id string) (templateId string, err error) { var st *state.State if err = s.Do(id, func(b smartblock.SmartBlock) error { if b.Type() != model.SmartBlockType_Page { return fmt.Errorf("can't make template from this obect type") } - st, err = b.MakeTemplateState() + st, err = b.TemplateCreateFromObjectState() return err }); err != nil { return @@ -1320,7 +1327,7 @@ func (s *service) MakeTemplate(id string) (templateId string, err error) { return } -func (s *service) MakeTemplateByObjectType(otId string) (templateId string, err error) { +func (s *service) TemplateCreateFromObjectByObjectType(otId string) (templateId string, err error) { if err = s.Do(otId, func(_ smartblock.SmartBlock) error { return nil }); err != nil { return "", fmt.Errorf("can't open objectType: %v", err) } @@ -1334,7 +1341,7 @@ func (s *service) MakeTemplateByObjectType(otId string) (templateId string, err return } -func (s *service) CloneTemplate(id string) (templateId string, err error) { +func (s *service) TemplateClone(id string) (templateId string, err error) { var st *state.State if err = s.Do(id, func(b smartblock.SmartBlock) error { if b.Type() != model.SmartBlockType_BundledTemplate { @@ -1379,7 +1386,7 @@ func (s *service) ObjectDuplicate(id string) (objectId string, err error) { return } -func (s *service) ApplyTemplate(contextId, templateId string) error { +func (s *service) ObjectApplyTemplate(contextId, templateId string) error { return s.Do(contextId, func(b smartblock.SmartBlock) error { orig := b.NewState().ParentState() ts, err := s.stateFromTemplate(templateId, pbtypes.GetString(orig.Details(), bundle.RelationKeyName.String())) @@ -1417,9 +1424,12 @@ func (s *service) getSmartblock(ctx context.Context, id string) (ob *openedBlock if err != nil { return } - ob = val.(*openedBlock) - if err != nil { - return nil, err + var ok bool + ob, ok = val.(*openedBlock) + if !ok { + return nil, fmt.Errorf("got unexpected object from cache: %t", val) + } else if ob == nil { + return nil, fmt.Errorf("got nil object from cache") } return ob, nil } diff --git a/core/block/simple/link/link.go b/core/block/simple/link/link.go index 6adcb42fa..97987e55d 100644 --- a/core/block/simple/link/link.go +++ b/core/block/simple/link/link.go @@ -2,6 +2,7 @@ package link import ( "fmt" + "github.com/anytypeio/go-anytype-middleware/util/slice" "unicode/utf8" "github.com/anytypeio/go-anytype-middleware/core/block/simple" @@ -33,6 +34,7 @@ type Block interface { HasSmartIds() bool ApplyEvent(e *pb.EventBlockSetLink) error ToText(targetDetails *types.Struct) simple.Block + SetAppearance(content *model.BlockContentLink) error } type Link struct { @@ -55,6 +57,14 @@ func (l *Link) Validate() error { return nil } +func (l *Link) SetAppearance(content *model.BlockContentLink) error { + l.content.IconSize = content.IconSize + l.content.CardStyle = content.CardStyle + l.content.Description = content.Description + l.content.Relations = content.Relations + return nil +} + func (l *Link) Diff(b simple.Block) (msgs []simple.EventMessage, err error) { link, ok := b.(*Link) if !ok { @@ -77,6 +87,26 @@ func (l *Link) Diff(b simple.Block) (msgs []simple.EventMessage, err error) { changes.TargetBlockId = &pb.EventBlockSetLinkTargetBlockId{Value: link.content.TargetBlockId} } + if l.content.IconSize != link.content.IconSize { + hasChanges = true + changes.IconSize = &pb.EventBlockSetLinkIconSize{Value: link.content.IconSize} + } + + if l.content.CardStyle != link.content.CardStyle { + hasChanges = true + changes.CardStyle = &pb.EventBlockSetLinkCardStyle{Value: link.content.CardStyle} + } + + if l.content.Description != link.content.Description { + hasChanges = true + changes.Description = &pb.EventBlockSetLinkDescription{Value: link.content.Description} + } + + if !slice.SortedEquals(l.content.Relations, link.content.Relations) { + hasChanges = true + changes.Relations = &pb.EventBlockSetLinkRelations{Value: link.content.Relations} + } + if hasChanges { msgs = append(msgs, simple.EventMessage{Msg: &pb.EventMessage{Value: &pb.EventMessageValueOfBlockSetLink{BlockSetLink: changes}}}) } diff --git a/core/config.go b/core/config.go deleted file mode 100644 index d4fc99f96..000000000 --- a/core/config.go +++ /dev/null @@ -1,41 +0,0 @@ -package core - -import ( - "github.com/anytypeio/go-anytype-middleware/core/wallet" - "github.com/anytypeio/go-anytype-middleware/pb" - "github.com/anytypeio/go-anytype-middleware/pkg/lib/core" - "github.com/anytypeio/go-anytype-middleware/pkg/lib/gateway" -) - -func (mw *Middleware) ConfigGet(*pb.RpcConfigGetRequest) *pb.RpcConfigGetResponse { - mw.m.RLock() - defer mw.m.RUnlock() - if mw.app == nil { - return &pb.RpcConfigGetResponse{Error: &pb.RpcConfigGetResponseError{pb.RpcConfigGetResponseError_NODE_NOT_STARTED, "account not started"}} - } - at := mw.app.MustComponent(core.CName).(core.Service) - gwAddr := mw.app.MustComponent(gateway.CName).(gateway.Gateway).Addr() - wallet := mw.app.MustComponent(wallet.CName).(wallet.Wallet) - var deviceId string - deviceKey, err := wallet.GetDevicePrivkey() - if err == nil { - deviceId = deviceKey.Address() - } - - if gwAddr != "" { - gwAddr = "http://" + gwAddr - } - - pBlocks := at.PredefinedBlocks() - return &pb.RpcConfigGetResponse{ - Error: &pb.RpcConfigGetResponseError{pb.RpcConfigGetResponseError_NULL, ""}, - HomeBlockId: pBlocks.Home, - ArchiveBlockId: pBlocks.Archive, - ProfileBlockId: pBlocks.Profile, - MarketplaceTypeId: pBlocks.MarketplaceType, - MarketplaceRelationId: pBlocks.MarketplaceRelation, - MarketplaceTemplateId: pBlocks.MarketplaceTemplate, - GatewayUrl: gwAddr, - DeviceId: deviceId, - } -} diff --git a/core/core.go b/core/core.go index 17b6ea0e8..32a6c478d 100644 --- a/core/core.go +++ b/core/core.go @@ -43,23 +43,23 @@ func New() *Middleware { return mw } -func (mw *Middleware) Shutdown(request *pb.RpcShutdownRequest) *pb.RpcShutdownResponse { +func (mw *Middleware) AppShutdown(request *pb.RpcAppShutdownRequest) *pb.RpcAppShutdownResponse { mw.m.Lock() defer mw.m.Unlock() mw.stop() - return &pb.RpcShutdownResponse{ - Error: &pb.RpcShutdownResponseError{ - Code: pb.RpcShutdownResponseError_NULL, + return &pb.RpcAppShutdownResponse{ + Error: &pb.RpcAppShutdownResponseError{ + Code: pb.RpcAppShutdownResponseError_NULL, }, } } -func (mw *Middleware) SetDeviceState(req *pb.RpcDeviceStateRequest) *pb.RpcDeviceStateResponse { +func (mw *Middleware) AppSetDeviceState(req *pb.RpcAppSetDeviceStateRequest) *pb.RpcAppSetDeviceStateResponse { mw.app.SetDeviceState(int(req.DeviceState)) - return &pb.RpcDeviceStateResponse{ - Error: &pb.RpcDeviceStateResponseError{ - Code: pb.RpcDeviceStateResponseError_NULL, + return &pb.RpcAppSetDeviceStateResponse{ + Error: &pb.RpcAppSetDeviceStateResponseError{ + Code: pb.RpcAppSetDeviceStateResponseError_NULL, }, } } diff --git a/core/debug.go b/core/debug.go index da9185e8f..1afec8892 100644 --- a/core/debug.go +++ b/core/debug.go @@ -134,19 +134,19 @@ func (mw *Middleware) DebugTree(req *pb.RpcDebugTreeRequest) *pb.RpcDebugTreeRes } dbg := app.MustComponent(debug.CName).(debug.Debug) - filename, err := dbg.DumpTree(req.BlockId, req.Path, !req.Unanonymized) + filename, err := dbg.DumpTree(req.ObjectId, req.Path, !req.Unanonymized, req.GenerateSvg) return response(err, filename) } -func (mw *Middleware) ExportLocalstore(req *pb.RpcExportLocalstoreRequest) *pb.RpcExportLocalstoreResponse { - response := func(path string, err error) (res *pb.RpcExportLocalstoreResponse) { - res = &pb.RpcExportLocalstoreResponse{ - Error: &pb.RpcExportLocalstoreResponseError{ - Code: pb.RpcExportLocalstoreResponseError_NULL, +func (mw *Middleware) DebugExportLocalstore(req *pb.RpcDebugExportLocalstoreRequest) *pb.RpcDebugExportLocalstoreResponse { + response := func(path string, err error) (res *pb.RpcDebugExportLocalstoreResponse) { + res = &pb.RpcDebugExportLocalstoreResponse{ + Error: &pb.RpcDebugExportLocalstoreResponseError{ + Code: pb.RpcDebugExportLocalstoreResponseError_NULL, }, } if err != nil { - res.Error.Code = pb.RpcExportLocalstoreResponseError_UNKNOWN_ERROR + res.Error.Code = pb.RpcDebugExportLocalstoreResponseError_UNKNOWN_ERROR res.Error.Description = err.Error() return } else { diff --git a/core/debug/service.go b/core/debug/service.go index fca75034a..efa7853d1 100644 --- a/core/debug/service.go +++ b/core/debug/service.go @@ -4,24 +4,29 @@ import ( "archive/zip" "fmt" "github.com/anytypeio/go-anytype-middleware/app" + "github.com/anytypeio/go-anytype-middleware/change" "github.com/anytypeio/go-anytype-middleware/pkg/lib/core" "github.com/anytypeio/go-anytype-middleware/pkg/lib/localstore/objectstore" + "github.com/anytypeio/go-anytype-middleware/pkg/lib/logging" "github.com/gogo/protobuf/jsonpb" "io" "os" "path/filepath" + "strings" "time" ) const CName = "debug" +var logger = logging.Logger("anytype-debug") + func New() Debug { return new(debug) } type Debug interface { app.Component - DumpTree(blockId, path string, anonymize bool) (filename string, err error) + DumpTree(blockId, path string, anonymize bool, withSvg bool) (filename string, err error) DumpLocalstore(objectIds []string, path string) (filename string, err error) } @@ -40,13 +45,43 @@ func (d *debug) Name() (name string) { return CName } -func (d *debug) DumpTree(blockId, path string, anonymize bool) (filename string, err error) { +func (d *debug) DumpTree(blockId, path string, anonymize bool, withSvg bool) (filename string, err error) { + // 0 - get first block block, err := d.core.GetBlock(blockId) if err != nil { return } + + // 1 - create ZIP file + // /at.dbg.bafkudtugh626rrqzah3kam4yj4lqbaw4bjayn2rz4ah4n5fpayppbvmq.20220322.121049.23.zip builder := &treeBuilder{b: block, s: d.store, anonymized: anonymize} - return builder.Build(path) + zipFilename, err := builder.Build(path) + if err != nil { + logger.Fatal("build tree error:", err) + return "", err + } + + // if client never asked for SVG generation -> return + if !withSvg { + return zipFilename, err + } + + // 2 - create SVG file near ZIP + // /at.dbg.bafkudtugh626rrqzah3kam4yj4lqbaw4bjayn2rz4ah4n5fpayppbvmq.20220322.121049.23.svg + // + // this will return "graphviz is not supported on the current platform" error if no graphviz! + // generate a filename just like zip file had + maxReplacements := 1 + svgFilename := strings.Replace(zipFilename, ".zip", ".svg", maxReplacements) + + err = change.CreateSvg(block, svgFilename) + if err != nil { + logger.Fatal("svg build error:", err) + return "", err + } + + // return zip filename, but not svgFilename + return zipFilename, nil } func (d *debug) DumpLocalstore(objIds []string, path string) (filename string, err error) { diff --git a/core/export.go b/core/export.go index be2e54a6f..1b6d84e1f 100644 --- a/core/export.go +++ b/core/export.go @@ -6,15 +6,15 @@ import ( "github.com/anytypeio/go-anytype-middleware/pb" ) -func (mw *Middleware) Export(req *pb.RpcExportRequest) *pb.RpcExportResponse { - response := func(path string, succeed int, err error) (res *pb.RpcExportResponse) { - res = &pb.RpcExportResponse{ - Error: &pb.RpcExportResponseError{ - Code: pb.RpcExportResponseError_NULL, +func (mw *Middleware) ObjectListExport(req *pb.RpcObjectListExportRequest) *pb.RpcObjectListExportResponse { + response := func(path string, succeed int, err error) (res *pb.RpcObjectListExportResponse) { + res = &pb.RpcObjectListExportResponse{ + Error: &pb.RpcObjectListExportResponseError{ + Code: pb.RpcObjectListExportResponseError_NULL, }, } if err != nil { - res.Error.Code = pb.RpcExportResponseError_UNKNOWN_ERROR + res.Error.Code = pb.RpcObjectListExportResponseError_UNKNOWN_ERROR res.Error.Description = err.Error() return } else { diff --git a/core/external.go b/core/external.go index c9abf55bb..c6c0593dc 100644 --- a/core/external.go +++ b/core/external.go @@ -72,7 +72,7 @@ func (mw *Middleware) UnsplashDownload(req *pb.RpcUnsplashDownloadRequest) *pb.R defer os.Remove(imagePath) err = mw.doBlockService(func(bs block.Service) (err error) { - hash, err = bs.UploadFile(pb.RpcUploadFileRequest{ + hash, err = bs.UploadFile(pb.RpcFileUploadRequest{ LocalPath: imagePath, Type: model.BlockContentFile_Image, Style: model.BlockContentFile_Embed, diff --git a/core/files_test.go b/core/files_test.go index 96286c120..cccba6487 100644 --- a/core/files_test.go +++ b/core/files_test.go @@ -87,26 +87,25 @@ func TestFile(t *testing.T) { require.NoError(t, err) require.Equal(t, int64(1024*1024*3), f.Meta().Size) } - m, err := getMetrics(filepath.Join(rootPath, coreService.Account(), "ipfslite")) + m, err := getMetrics(filepath.Join(rootPath, coreService.Account(), "ipfslite_v3")) require.NoError(t, err) require.Equal(t, 10, m.NumVLOG) fmt.Printf("BADGER METRICS AFTER ADD: %+v\n", m) resp := mw.FileListOffload(&pb.RpcFileListOffloadRequest{IncludeNotPinned: true}) require.Equal(t, 0, int(resp.Error.Code), resp.Error.Description) - require.Equal(t, int32(200), resp.FilesOffloaded) + require.Equal(t, int32(201), resp.FilesOffloaded) require.Equal(t, uint64(1024*1024*3*200+247400), resp.BytesOffloaded) // 247400 is the overhead for the links and meta - m, err = getMetrics(filepath.Join(rootPath, coreService.Account(), "ipfslite")) + m, err = getMetrics(filepath.Join(rootPath, coreService.Account(), "ipfslite_v3")) require.NoError(t, err) fmt.Printf("BADGER METRICS AFTER OFFLOAD: %+v\n", m) require.LessOrEqual(t, m.NumVLOG, 3) - }) t.Run("image_should_open_as_object", func(t *testing.T) { - respUploadImage := mw.UploadFile(&pb.RpcUploadFileRequest{LocalPath: "./block/testdata/testdir/a.jpg"}) + respUploadImage := mw.FileUpload(&pb.RpcFileUploadRequest{LocalPath: "./block/testdata/testdir/a.jpg"}) require.Equal(t, 0, int(respUploadImage.Error.Code), respUploadImage.Error.Description) - respOpenImage := mw.BlockOpen(&pb.RpcBlockOpenRequest{BlockId: respUploadImage.Hash}) + respOpenImage := mw.ObjectOpen(&pb.RpcObjectOpenRequest{ObjectId: respUploadImage.Hash}) require.Equal(t, 0, int(respOpenImage.Error.Code), respOpenImage.Error.Description) require.Len(t, respOpenImage.Event.Messages, 1) show := getEventObjectShow(respOpenImage.Event.Messages) @@ -122,19 +121,19 @@ func TestFile(t *testing.T) { }) t.Run("file_should_be_reused", func(t *testing.T) { - respUploadFile1 := mw.UploadFile(&pb.RpcUploadFileRequest{LocalPath: "./block/testdata/testdir/a/a.txt"}) - require.Equal(t, 0, int(respUploadFile1.Error.Code), respUploadFile1.Error.Description) - respUploadFile2 := mw.UploadFile(&pb.RpcUploadFileRequest{LocalPath: "./block/testdata/testdir/a/a.txt"}) - require.Equal(t, 0, int(respUploadFile1.Error.Code), respUploadFile1.Error.Description) - require.Equal(t, respUploadFile1.Hash, respUploadFile2.Hash) + respFileUpload1 := mw.FileUpload(&pb.RpcFileUploadRequest{LocalPath: "./block/testdata/testdir/a/a.txt"}) + require.Equal(t, 0, int(respFileUpload1.Error.Code), respFileUpload1.Error.Description) + respFileUpload2 := mw.FileUpload(&pb.RpcFileUploadRequest{LocalPath: "./block/testdata/testdir/a/a.txt"}) + require.Equal(t, 0, int(respFileUpload1.Error.Code), respFileUpload1.Error.Description) + require.Equal(t, respFileUpload1.Hash, respFileUpload2.Hash) }) t.Run("image_should_be_reused", func(t *testing.T) { - respUploadFile1 := mw.UploadFile(&pb.RpcUploadFileRequest{LocalPath: "./block/testdata/testdir/a.jpg"}) - require.Equal(t, 0, int(respUploadFile1.Error.Code), respUploadFile1.Error.Description) - respUploadFile2 := mw.UploadFile(&pb.RpcUploadFileRequest{LocalPath: "./block/testdata/testdir/a.jpg"}) - require.Equal(t, 0, int(respUploadFile1.Error.Code), respUploadFile1.Error.Description) - require.Equal(t, respUploadFile1.Hash, respUploadFile2.Hash) + respFileUpload1 := mw.FileUpload(&pb.RpcFileUploadRequest{LocalPath: "./block/testdata/testdir/a.jpg"}) + require.Equal(t, 0, int(respFileUpload1.Error.Code), respFileUpload1.Error.Description) + respFileUpload2 := mw.FileUpload(&pb.RpcFileUploadRequest{LocalPath: "./block/testdata/testdir/a.jpg"}) + require.Equal(t, 0, int(respFileUpload1.Error.Code), respFileUpload1.Error.Description) + require.Equal(t, respFileUpload1.Hash, respFileUpload2.Hash) }) } diff --git a/core/history.go b/core/history.go index 83d0cf33f..ffa1e15a0 100644 --- a/core/history.go +++ b/core/history.go @@ -6,15 +6,15 @@ import ( "github.com/anytypeio/go-anytype-middleware/pb" ) -func (mw *Middleware) HistoryShow(req *pb.RpcHistoryShowRequest) *pb.RpcHistoryShowResponse { - response := func(show *pb.EventObjectShow, ver *pb.RpcHistoryVersionsVersion, err error) (res *pb.RpcHistoryShowResponse) { - res = &pb.RpcHistoryShowResponse{ - Error: &pb.RpcHistoryShowResponseError{ - Code: pb.RpcHistoryShowResponseError_NULL, +func (mw *Middleware) HistoryShowVersion(req *pb.RpcHistoryShowVersionRequest) *pb.RpcHistoryShowVersionResponse { + response := func(show *pb.EventObjectShow, ver *pb.RpcHistoryVersion, err error) (res *pb.RpcHistoryShowVersionResponse) { + res = &pb.RpcHistoryShowVersionResponse{ + Error: &pb.RpcHistoryShowVersionResponseError{ + Code: pb.RpcHistoryShowVersionResponseError_NULL, }, } if err != nil { - res.Error.Code = pb.RpcHistoryShowResponseError_UNKNOWN_ERROR + res.Error.Code = pb.RpcHistoryShowVersionResponseError_UNKNOWN_ERROR res.Error.Description = err.Error() return } else { @@ -26,7 +26,7 @@ func (mw *Middleware) HistoryShow(req *pb.RpcHistoryShowRequest) *pb.RpcHistoryS } var ( show *pb.EventObjectShow - ver *pb.RpcHistoryVersionsVersion + ver *pb.RpcHistoryVersion err error ) if err = mw.doBlockService(func(bs block.Service) (err error) { @@ -40,15 +40,15 @@ func (mw *Middleware) HistoryShow(req *pb.RpcHistoryShowRequest) *pb.RpcHistoryS return response(show, ver, nil) } -func (mw *Middleware) HistoryVersions(req *pb.RpcHistoryVersionsRequest) *pb.RpcHistoryVersionsResponse { - response := func(vers []*pb.RpcHistoryVersionsVersion, err error) (res *pb.RpcHistoryVersionsResponse) { - res = &pb.RpcHistoryVersionsResponse{ - Error: &pb.RpcHistoryVersionsResponseError{ - Code: pb.RpcHistoryVersionsResponseError_NULL, +func (mw *Middleware) HistoryGetVersions(req *pb.RpcHistoryGetVersionsRequest) *pb.RpcHistoryGetVersionsResponse { + response := func(vers []*pb.RpcHistoryVersion, err error) (res *pb.RpcHistoryGetVersionsResponse) { + res = &pb.RpcHistoryGetVersionsResponse{ + Error: &pb.RpcHistoryGetVersionsResponseError{ + Code: pb.RpcHistoryGetVersionsResponseError_NULL, }, } if err != nil { - res.Error.Code = pb.RpcHistoryVersionsResponseError_UNKNOWN_ERROR + res.Error.Code = pb.RpcHistoryGetVersionsResponseError_UNKNOWN_ERROR res.Error.Description = err.Error() return } else { @@ -57,7 +57,7 @@ func (mw *Middleware) HistoryVersions(req *pb.RpcHistoryVersionsRequest) *pb.Rpc return res } var ( - vers []*pb.RpcHistoryVersionsVersion + vers []*pb.RpcHistoryVersion err error ) if err = mw.doBlockService(func(bs block.Service) (err error) { diff --git a/core/history/history.go b/core/history/history.go index 91b87d71b..42bc5bc4f 100644 --- a/core/history/history.go +++ b/core/history/history.go @@ -32,8 +32,8 @@ func New() History { } type History interface { - Show(pageId, versionId string) (bs *pb.EventObjectShow, ver *pb.RpcHistoryVersionsVersion, err error) - Versions(pageId, lastVersionId string, limit int) (resp []*pb.RpcHistoryVersionsVersion, err error) + Show(pageId, versionId string) (bs *pb.EventObjectShow, ver *pb.RpcHistoryVersion, err error) + Versions(pageId, lastVersionId string, limit int) (resp []*pb.RpcHistoryVersion, err error) SetVersion(pageId, versionId string) (err error) app.Component } @@ -59,7 +59,7 @@ func (h *history) Name() (name string) { return CName } -func (h *history) Show(pageId, versionId string) (bs *pb.EventObjectShow, ver *pb.RpcHistoryVersionsVersion, err error) { +func (h *history) Show(pageId, versionId string) (bs *pb.EventObjectShow, ver *pb.RpcHistoryVersion, err error) { s, ver, err := h.buildState(pageId, versionId) if err != nil { return @@ -98,7 +98,7 @@ func (h *history) Show(pageId, versionId string) (bs *pb.EventObjectShow, ver *p }, ver, nil } -func (h *history) Versions(pageId, lastVersionId string, limit int) (resp []*pb.RpcHistoryVersionsVersion, err error) { +func (h *history) Versions(pageId, lastVersionId string, limit int) (resp []*pb.RpcHistoryVersion, err error) { if limit <= 0 { limit = 100 } @@ -108,7 +108,7 @@ func (h *history) Versions(pageId, lastVersionId string, limit int) (resp []*pb. } var includeLastId = true - reverse := func(vers []*pb.RpcHistoryVersionsVersion) []*pb.RpcHistoryVersionsVersion { + reverse := func(vers []*pb.RpcHistoryVersion) []*pb.RpcHistoryVersion { for i, j := 0, len(vers)-1; i < j; i, j = i+1, j-1 { vers[i], vers[j] = vers[j], vers[i] } @@ -120,10 +120,10 @@ func (h *history) Versions(pageId, lastVersionId string, limit int) (resp []*pb. if e != nil { return nil, e } - var data []*pb.RpcHistoryVersionsVersion + var data []*pb.RpcHistoryVersion tree.Iterate(tree.RootId(), func(c *change.Change) (isContinue bool) { - data = append(data, &pb.RpcHistoryVersionsVersion{ + data = append(data, &pb.RpcHistoryVersion{ Id: c.Id, PreviousIds: c.PreviousIds, AuthorId: profileId, @@ -207,7 +207,7 @@ func (h *history) buildTree(pageId, versionId string, includeLastId bool) (tree return tree, sb.Type(), nil } -func (h *history) buildState(pageId, versionId string) (s *state.State, ver *pb.RpcHistoryVersionsVersion, err error) { +func (h *history) buildState(pageId, versionId string) (s *state.State, ver *pb.RpcHistoryVersion, err error) { tree, sbType, err := h.buildTree(pageId, versionId, true) if err != nil { return @@ -237,7 +237,7 @@ func (h *history) buildState(pageId, versionId string) (s *state.State, ver *pb. err = e return } - ver = &pb.RpcHistoryVersionsVersion{ + ver = &pb.RpcHistoryVersion{ Id: ch.Id, PreviousIds: ch.PreviousIds, AuthorId: profileId, diff --git a/core/navigation.go b/core/navigation.go index 188f7c643..c6472f575 100644 --- a/core/navigation.go +++ b/core/navigation.go @@ -100,10 +100,10 @@ func (mw *Middleware) NavigationGetObjectInfoWithLinks(req *pb.RpcNavigationGetO return response(pb.RpcNavigationGetObjectInfoWithLinksResponseError_NULL, page, nil) } -func (mw *Middleware) PageCreate(req *pb.RpcPageCreateRequest) *pb.RpcPageCreateResponse { +func (mw *Middleware) ObjectCreate(req *pb.RpcObjectCreateRequest) *pb.RpcObjectCreateResponse { ctx := state.NewContext(nil) - response := func(code pb.RpcPageCreateResponseErrorCode, id string, err error) *pb.RpcPageCreateResponse { - m := &pb.RpcPageCreateResponse{Error: &pb.RpcPageCreateResponseError{Code: code}, PageId: id} + response := func(code pb.RpcObjectCreateResponseErrorCode, id string, err error) *pb.RpcObjectCreateResponse { + m := &pb.RpcObjectCreateResponse{Error: &pb.RpcObjectCreateResponseError{Code: code}, PageId: id} if err != nil { m.Error.Description = err.Error() } else { @@ -119,7 +119,7 @@ func (mw *Middleware) PageCreate(req *pb.RpcPageCreateRequest) *pb.RpcPageCreate }) if err != nil { - return response(pb.RpcPageCreateResponseError_UNKNOWN_ERROR, "", err) + return response(pb.RpcObjectCreateResponseError_UNKNOWN_ERROR, "", err) } - return response(pb.RpcPageCreateResponseError_NULL, id, nil) + return response(pb.RpcObjectCreateResponseError_NULL, id, nil) } diff --git a/core/object.go b/core/object.go index 9131eb2e3..d0a3f74d3 100644 --- a/core/object.go +++ b/core/object.go @@ -24,10 +24,10 @@ import ( ) // To be renamed to ObjectSetDetails -func (mw *Middleware) BlockSetDetails(req *pb.RpcBlockSetDetailsRequest) *pb.RpcBlockSetDetailsResponse { +func (mw *Middleware) ObjectSetDetails(req *pb.RpcObjectSetDetailsRequest) *pb.RpcObjectSetDetailsResponse { ctx := state.NewContext(nil) - response := func(code pb.RpcBlockSetDetailsResponseErrorCode, err error) *pb.RpcBlockSetDetailsResponse { - m := &pb.RpcBlockSetDetailsResponse{Error: &pb.RpcBlockSetDetailsResponseError{Code: code}} + response := func(code pb.RpcObjectSetDetailsResponseErrorCode, err error) *pb.RpcObjectSetDetailsResponse { + m := &pb.RpcObjectSetDetailsResponse{Error: &pb.RpcObjectSetDetailsResponseError{Code: code}} if err != nil { m.Error.Description = err.Error() } else { @@ -39,9 +39,9 @@ func (mw *Middleware) BlockSetDetails(req *pb.RpcBlockSetDetailsRequest) *pb.Rpc return bs.SetDetails(ctx, *req) }) if err != nil { - return response(pb.RpcBlockSetDetailsResponseError_UNKNOWN_ERROR, err) + return response(pb.RpcObjectSetDetailsResponseError_UNKNOWN_ERROR, err) } - return response(pb.RpcBlockSetDetailsResponseError_NULL, nil) + return response(pb.RpcObjectSetDetailsResponseError_NULL, nil) } func (mw *Middleware) ObjectDuplicate(req *pb.RpcObjectDuplicateRequest) *pb.RpcObjectDuplicateResponse { @@ -56,12 +56,15 @@ func (mw *Middleware) ObjectDuplicate(req *pb.RpcObjectDuplicateRequest) *pb.Rpc } return m } - var objectId string + var objectIds []string err := mw.doBlockService(func(bs block.Service) (err error) { - objectId, err = bs.ObjectDuplicate(req.ContextId) + objectIds, err = bs.ObjectsDuplicate([]string{req.ContextId}) return }) - return response(objectId, err) + if len(objectIds) == 0 { + return response("", err) + } + return response(objectIds[0], err) } func (mw *Middleware) ObjectListDuplicate(req *pb.RpcObjectListDuplicateRequest) *pb.RpcObjectListDuplicateResponse { @@ -185,11 +188,11 @@ func (mw *Middleware) ObjectSearchSubscribe(req *pb.RpcObjectSearchSubscribeRequ return resp } -func (mw *Middleware) ObjectIdsSubscribe(req *pb.RpcObjectIdsSubscribeRequest) *pb.RpcObjectIdsSubscribeResponse { - errResponse := func(err error) *pb.RpcObjectIdsSubscribeResponse { - r := &pb.RpcObjectIdsSubscribeResponse{ - Error: &pb.RpcObjectIdsSubscribeResponseError{ - Code: pb.RpcObjectIdsSubscribeResponseError_UNKNOWN_ERROR, +func (mw *Middleware) ObjectSubscribeIds(req *pb.RpcObjectSubscribeIdsRequest) *pb.RpcObjectSubscribeIdsResponse { + errResponse := func(err error) *pb.RpcObjectSubscribeIdsResponse { + r := &pb.RpcObjectSubscribeIdsResponse{ + Error: &pb.RpcObjectSubscribeIdsResponseError{ + Code: pb.RpcObjectSubscribeIdsResponseError_UNKNOWN_ERROR, }, } if err != nil { @@ -391,7 +394,7 @@ func (mw *Middleware) ObjectRelationAdd(req *pb.RpcObjectRelationAddRequest) *pb } if len(relations) == 0 { - return response(nil, pb.RpcObjectRelationAddResponseError_ALREADY_EXISTS, nil) + return response(nil, pb.RpcObjectRelationAddResponseError_BAD_INPUT, nil) } return response(relations[0], pb.RpcObjectRelationAddResponseError_NULL, nil) @@ -585,10 +588,10 @@ func (mw *Middleware) ObjectSetIsFavorite(req *pb.RpcObjectSetIsFavoriteRequest) return response(pb.RpcObjectSetIsFavoriteResponseError_NULL, nil) } -func (mw *Middleware) ObjectFeaturedRelationAdd(req *pb.RpcObjectFeaturedRelationAddRequest) *pb.RpcObjectFeaturedRelationAddResponse { +func (mw *Middleware) ObjectRelationAddFeatured(req *pb.RpcObjectRelationAddFeaturedRequest) *pb.RpcObjectRelationAddFeaturedResponse { ctx := state.NewContext(nil) - response := func(code pb.RpcObjectFeaturedRelationAddResponseErrorCode, err error) *pb.RpcObjectFeaturedRelationAddResponse { - m := &pb.RpcObjectFeaturedRelationAddResponse{Error: &pb.RpcObjectFeaturedRelationAddResponseError{Code: code}} + response := func(code pb.RpcObjectRelationAddFeaturedResponseErrorCode, err error) *pb.RpcObjectRelationAddFeaturedResponse { + m := &pb.RpcObjectRelationAddFeaturedResponse{Error: &pb.RpcObjectRelationAddFeaturedResponseError{Code: code}} if err != nil { m.Error.Description = err.Error() } else { @@ -600,15 +603,15 @@ func (mw *Middleware) ObjectFeaturedRelationAdd(req *pb.RpcObjectFeaturedRelatio return bs.FeaturedRelationAdd(ctx, req.ContextId, req.Relations...) }) if err != nil { - return response(pb.RpcObjectFeaturedRelationAddResponseError_UNKNOWN_ERROR, err) + return response(pb.RpcObjectRelationAddFeaturedResponseError_UNKNOWN_ERROR, err) } - return response(pb.RpcObjectFeaturedRelationAddResponseError_NULL, nil) + return response(pb.RpcObjectRelationAddFeaturedResponseError_NULL, nil) } -func (mw *Middleware) ObjectFeaturedRelationRemove(req *pb.RpcObjectFeaturedRelationRemoveRequest) *pb.RpcObjectFeaturedRelationRemoveResponse { +func (mw *Middleware) ObjectRelationRemoveFeatured(req *pb.RpcObjectRelationRemoveFeaturedRequest) *pb.RpcObjectRelationRemoveFeaturedResponse { ctx := state.NewContext(nil) - response := func(code pb.RpcObjectFeaturedRelationRemoveResponseErrorCode, err error) *pb.RpcObjectFeaturedRelationRemoveResponse { - m := &pb.RpcObjectFeaturedRelationRemoveResponse{Error: &pb.RpcObjectFeaturedRelationRemoveResponseError{Code: code}} + response := func(code pb.RpcObjectRelationRemoveFeaturedResponseErrorCode, err error) *pb.RpcObjectRelationRemoveFeaturedResponse { + m := &pb.RpcObjectRelationRemoveFeaturedResponse{Error: &pb.RpcObjectRelationRemoveFeaturedResponseError{Code: code}} if err != nil { m.Error.Description = err.Error() } else { @@ -620,9 +623,9 @@ func (mw *Middleware) ObjectFeaturedRelationRemove(req *pb.RpcObjectFeaturedRela return bs.FeaturedRelationRemove(ctx, req.ContextId, req.Relations...) }) if err != nil { - return response(pb.RpcObjectFeaturedRelationRemoveResponseError_UNKNOWN_ERROR, err) + return response(pb.RpcObjectRelationRemoveFeaturedResponseError_UNKNOWN_ERROR, err) } - return response(pb.RpcObjectFeaturedRelationRemoveResponseError_NULL, nil) + return response(pb.RpcObjectRelationRemoveFeaturedResponseError_NULL, nil) } func (mw *Middleware) ObjectToSet(req *pb.RpcObjectToSetRequest) *pb.RpcObjectToSetResponse { diff --git a/core/oldaccount_test.go b/core/oldaccount_test.go index 3b84216eb..505af46db 100644 --- a/core/oldaccount_test.go +++ b/core/oldaccount_test.go @@ -7,8 +7,8 @@ package core // // t.Run("account_should_open", func(t *testing.T) { // accId := mw.GetAnytype().PredefinedBlocks().Account -// mw.PageCreate(&pb.RpcPageCreateRequest{}) -// resp := mw.BlockOpen(&pb.RpcBlockOpenRequest{BlockId: accId}) +// mw.ObjectCreate(&pb.RpcObjectCreateRequest{}) +// resp := mw.ObjectOpen(&pb.RpcObjectOpenRequest{ObjectId: accId}) // require.Equal(t, 0, int(resp.Error.Code), resp.Error.Description) // show := getEventObjectShow(resp.Event.Messages) // }) diff --git a/core/ping.go b/core/ping.go index 8e690a6de..58d3df812 100644 --- a/core/ping.go +++ b/core/ping.go @@ -12,12 +12,12 @@ func nsToMs(n int64) int64 { return (n - int64(n/1000000)*1000000) } -func (mw *Middleware) Ping(req *pb.RpcPingRequest) *pb.RpcPingResponse { +func (mw *Middleware) DebugPing(req *pb.RpcDebugPingRequest) *pb.RpcDebugPingResponse { n := time.Now() fmt.Printf("%d.%d go got ping req\n", n.Unix(), nsToMs(n.UnixNano())) - response := func(index int32, code pb.RpcPingResponseErrorCode, err error) *pb.RpcPingResponse { - m := &pb.RpcPingResponse{Index: index, Error: &pb.RpcPingResponseError{Code: code}} + response := func(index int32, code pb.RpcDebugPingResponseErrorCode, err error) *pb.RpcDebugPingResponse { + m := &pb.RpcDebugPingResponse{Index: index, Error: &pb.RpcDebugPingResponseError{Code: code}} if err != nil { m.Error.Description = err.Error() } @@ -42,5 +42,5 @@ func (mw *Middleware) Ping(req *pb.RpcPingRequest) *pb.RpcPingResponse { }) } - return response(req.Index, pb.RpcPingResponseError_NULL, nil) + return response(req.Index, pb.RpcDebugPingResponseError_NULL, nil) } diff --git a/core/relations.go b/core/relations.go index 5767bfb12..08935c3c6 100644 --- a/core/relations.go +++ b/core/relations.go @@ -334,10 +334,10 @@ func (mw *Middleware) ObjectTypeList(_ *pb.RpcObjectTypeListRequest) *pb.RpcObje return response(pb.RpcObjectTypeListResponseError_NULL, otypes, nil) } -func (mw *Middleware) SetCreate(req *pb.RpcSetCreateRequest) *pb.RpcSetCreateResponse { +func (mw *Middleware) ObjectCreateSet(req *pb.RpcObjectCreateSetRequest) *pb.RpcObjectCreateSetResponse { ctx := state.NewContext(nil) - response := func(code pb.RpcSetCreateResponseErrorCode, id string, err error) *pb.RpcSetCreateResponse { - m := &pb.RpcSetCreateResponse{Error: &pb.RpcSetCreateResponseError{Code: code}, Id: id} + response := func(code pb.RpcObjectCreateSetResponseErrorCode, id string, err error) *pb.RpcObjectCreateSetResponse { + m := &pb.RpcObjectCreateSetResponse{Error: &pb.RpcObjectCreateSetResponseError{Code: code}, Id: id} if err != nil { m.Error.Description = err.Error() } else { @@ -348,18 +348,22 @@ func (mw *Middleware) SetCreate(req *pb.RpcSetCreateRequest) *pb.RpcSetCreateRes var id string err := mw.doBlockService(func(bs block.Service) (err error) { - _, id, err = bs.CreateSet(ctx, pb.RpcBlockCreateSetRequest{Source: req.Source, Details: req.Details}) + if req.GetDetails().GetFields() == nil { + req.Details = &types.Struct{Fields: map[string]*types.Value{}} + } + req.Details.Fields[bundle.RelationKeySetOf.String()] = pbtypes.StringList(req.Source) + id, err = bs.CreateSet(*req) return err }) if err != nil { if err == block.ErrUnknownObjectType { - return response(pb.RpcSetCreateResponseError_UNKNOWN_OBJECT_TYPE_URL, "", err) + return response(pb.RpcObjectCreateSetResponseError_UNKNOWN_OBJECT_TYPE_URL, "", err) } - return response(pb.RpcSetCreateResponseError_UNKNOWN_ERROR, "", err) + return response(pb.RpcObjectCreateSetResponseError_UNKNOWN_ERROR, "", err) } - return response(pb.RpcSetCreateResponseError_NULL, id, nil) + return response(pb.RpcObjectCreateSetResponseError_NULL, id, nil) } func (mw *Middleware) getObjectType(at core.Service, url string) (*model.ObjectType, error) { diff --git a/core/relations_test.go b/core/relations_test.go index 147c917ff..0d2f4220f 100644 --- a/core/relations_test.go +++ b/core/relations_test.go @@ -97,7 +97,7 @@ func TestRelationAdd(t *testing.T) { })) defer appClose() - respOpenNewPage := mw.BlockOpen(&pb.RpcBlockOpenRequest{BlockId: mw.GetAnytype().PredefinedBlocks().SetPages}) + respOpenNewPage := mw.ObjectOpen(&pb.RpcObjectOpenRequest{ObjectId: mw.GetAnytype().PredefinedBlocks().SetPages}) require.Equal(t, 0, int(respOpenNewPage.Error.Code), respOpenNewPage.Error.Description) block := getBlockById("dataview", getEventObjectShow(respOpenNewPage.Event.Messages).Blocks) @@ -121,7 +121,7 @@ func TestRelationAdd(t *testing.T) { }, }) require.Equal(t, pb.RpcBlockDataviewRelationAddResponseError_BAD_INPUT, respDataviewRelationAdd.Error.Code, respDataviewRelationAdd.Error.Description) - respOpenNewPage = mw.BlockOpen(&pb.RpcBlockOpenRequest{BlockId: mw.GetAnytype().PredefinedBlocks().SetPages}) + respOpenNewPage = mw.ObjectOpen(&pb.RpcObjectOpenRequest{ObjectId: mw.GetAnytype().PredefinedBlocks().SetPages}) require.Equal(t, 0, int(respOpenNewPage.Error.Code), respOpenNewPage.Error.Description) block = getBlockById("dataview", getEventObjectShow(respOpenNewPage.Event.Messages).Blocks) @@ -141,28 +141,28 @@ func TestRelationAdd(t *testing.T) { }) require.Equal(t, 0, int(respDataviewRelationAdd.Error.Code), respDataviewRelationAdd.Error.Description) - respOpenNewPage = mw.BlockOpen(&pb.RpcBlockOpenRequest{BlockId: mw.GetAnytype().PredefinedBlocks().SetPages}) + respOpenNewPage = mw.ObjectOpen(&pb.RpcObjectOpenRequest{ObjectId: mw.GetAnytype().PredefinedBlocks().SetPages}) require.Equal(t, 0, int(respOpenNewPage.Error.Code), respOpenNewPage.Error.Description) block = getBlockById("dataview", getEventObjectShow(respOpenNewPage.Event.Messages).Blocks) require.Len(t, block.GetDataview().Relations, len(bundle.MergeRelationsKeys(bundle.GetRelationsKeys(bundle.MustGetType(bundle.TypeKeyPage).Relations), dataview.DefaultDataviewRelations))+1) respAccountCreate := mw.AccountSelect(&pb.RpcAccountSelectRequest{Id: mw.GetAnytype().Account(), RootPath: rootPath}) require.Equal(t, 0, int(respAccountCreate.Error.Code)) - respOpenNewPage = mw.BlockOpen(&pb.RpcBlockOpenRequest{BlockId: mw.GetAnytype().PredefinedBlocks().SetPages}) + respOpenNewPage = mw.ObjectOpen(&pb.RpcObjectOpenRequest{ObjectId: mw.GetAnytype().PredefinedBlocks().SetPages}) require.Equal(t, 0, int(respOpenNewPage.Error.Code), respOpenNewPage.Error.Description) block = getBlockById("dataview", getEventObjectShow(respOpenNewPage.Event.Messages).Blocks) require.Len(t, block.GetDataview().Relations, len(bundle.MergeRelationsKeys(bundle.GetRelationsKeys(bundle.MustGetType(bundle.TypeKeyPage).Relations), dataview.DefaultDataviewRelations))+1) }) t.Run("relation_aggregate_scope", func(t *testing.T) { - respSet1 := mw.SetCreate(&pb.RpcSetCreateRequest{ + respSet1 := mw.ObjectCreateSet(&pb.RpcObjectCreateSetRequest{ Source: []string{bundle.TypeKeyIdea.URL()}, Details: nil, }) require.Equal(t, 0, int(respSet1.Error.Code), respSet1.Error.Description) - respSet2 := mw.SetCreate(&pb.RpcSetCreateRequest{ + respSet2 := mw.ObjectCreateSet(&pb.RpcObjectCreateSetRequest{ Source: []string{bundle.TypeKeyIdea.URL()}, Details: nil, }) @@ -174,7 +174,7 @@ func TestRelationAdd(t *testing.T) { Relation: &model.Relation{Format: model.RelationFormat_shorttext, Name: "from set1"}, }) if respSetRelCreate1.Error.Code != 0 { - t.Fatalf(pbtypes.Sprint(respSet1)) + t.Fatalf(pbtypes.Sprint(respSetRelCreate1)) } require.Equal(t, 0, int(respSetRelCreate1.Error.Code), respSetRelCreate1.Error.Description) @@ -188,41 +188,41 @@ func TestRelationAdd(t *testing.T) { } require.Equal(t, 0, int(respSetRelCreate2.Error.Code), respSetRelCreate2.Error.Description) - respPageCreate := mw.PageCreate(&pb.RpcPageCreateRequest{Details: &types2.Struct{Fields: map[string]*types2.Value{ + respObjectCreate := mw.ObjectCreate(&pb.RpcObjectCreateRequest{Details: &types2.Struct{Fields: map[string]*types2.Value{ bundle.RelationKeyType.String(): pbtypes.String(bundle.TypeKeyIdea.URL()), }}}) - require.Equal(t, 0, int(respPageCreate.Error.Code), respPageCreate.Error.Description) + require.Equal(t, 0, int(respObjectCreate.Error.Code), respObjectCreate.Error.Description) //time.sleep(time.Millisecond * 200) - respOpenNewPage = mw.BlockOpen(&pb.RpcBlockOpenRequest{BlockId: respPageCreate.PageId}) + respOpenNewPage = mw.ObjectOpen(&pb.RpcObjectOpenRequest{ObjectId: respObjectCreate.PageId}) require.Equal(t, 0, int(respOpenNewPage.Error.Code), respOpenNewPage.Error.Description) - blockShow := getEventObjectShow(respOpenNewPage.Event.Messages) - log.Debugf("block relations: %v", blockShow.Relations) + ObjectShow := getEventObjectShow(respOpenNewPage.Event.Messages) + log.Debugf("block relations: %v", ObjectShow.Relations) - relFromSet1 := pbtypes.GetRelation(blockShow.Relations, respSetRelCreate1.RelationKey) + relFromSet1 := pbtypes.GetRelation(ObjectShow.Relations, respSetRelCreate1.RelationKey) require.NotNil(t, relFromSet1) require.Equal(t, model.Relation_setOfTheSameType, relFromSet1.Scope) - relFromSet2 := pbtypes.GetRelation(blockShow.Relations, respSetRelCreate2.RelationKey) + relFromSet2 := pbtypes.GetRelation(ObjectShow.Relations, respSetRelCreate2.RelationKey) require.NotNil(t, relFromSet2) require.Equal(t, model.Relation_setOfTheSameType, relFromSet2.Scope) }) t.Run("relation_scope_becomes_object", func(t *testing.T) { - respPageCreate := mw.PageCreate(&pb.RpcPageCreateRequest{Details: &types2.Struct{Fields: map[string]*types2.Value{ + respObjectCreate := mw.ObjectCreate(&pb.RpcObjectCreateRequest{Details: &types2.Struct{Fields: map[string]*types2.Value{ bundle.RelationKeyType.String(): pbtypes.StringList([]string{bundle.TypeKeyTask.URL()}), }}}) - require.Equal(t, 0, int(respPageCreate.Error.Code), respPageCreate.Error.Description) + require.Equal(t, 0, int(respObjectCreate.Error.Code), respObjectCreate.Error.Description) - respOpenNewPage = mw.BlockOpen(&pb.RpcBlockOpenRequest{BlockId: respPageCreate.PageId}) + respOpenNewPage = mw.ObjectOpen(&pb.RpcObjectOpenRequest{ObjectId: respObjectCreate.PageId}) require.Equal(t, 0, int(respOpenNewPage.Error.Code), respOpenNewPage.Error.Description) - blockShow := getEventObjectShow(respOpenNewPage.Event.Messages) + ObjectShow := getEventObjectShow(respOpenNewPage.Event.Messages) for _, rel := range bundle.MustGetType(bundle.TypeKeyTask).Relations { var found bool - for _, relInObj := range blockShow.Relations { + for _, relInObj := range ObjectShow.Relations { if relInObj.Key == rel.Key { found = true break @@ -235,7 +235,7 @@ func TestRelationAdd(t *testing.T) { } optionAddResp := mw.ObjectRelationOptionAdd(&pb.RpcObjectRelationOptionAddRequest{ - ContextId: respPageCreate.PageId, + ContextId: respObjectCreate.PageId, RelationKey: bundle.RelationKeyStatus.String(), Option: &model.RelationOption{ Text: "Done", @@ -244,18 +244,18 @@ func TestRelationAdd(t *testing.T) { }) require.Equal(t, 0, int(optionAddResp.Error.Code), optionAddResp.Error.Description) - setDetailsResp := mw.BlockSetDetails(&pb.RpcBlockSetDetailsRequest{ContextId: respPageCreate.PageId, Details: []*pb.RpcBlockSetDetailsDetail{ + setDetailsResp := mw.ObjectSetDetails(&pb.RpcObjectSetDetailsRequest{ContextId: respObjectCreate.PageId, Details: []*pb.RpcObjectSetDetailsDetail{ {Key: bundle.RelationKeyStatus.String(), Value: pbtypes.StringList([]string{optionAddResp.Option.Id})}, }}) require.Equal(t, 0, int(setDetailsResp.Error.Code), setDetailsResp.Error.Description) - respOpenNewPage = mw.BlockOpen(&pb.RpcBlockOpenRequest{BlockId: respPageCreate.PageId}) + respOpenNewPage = mw.ObjectOpen(&pb.RpcObjectOpenRequest{ObjectId: respObjectCreate.PageId}) require.Equal(t, 0, int(respOpenNewPage.Error.Code), respOpenNewPage.Error.Description) - blockShow = getEventObjectShow(respOpenNewPage.Event.Messages) + ObjectShow = getEventObjectShow(respOpenNewPage.Event.Messages) for _, rel := range bundle.MustGetType(bundle.TypeKeyTask).Relations { var found bool - for _, relInObj := range blockShow.Relations { + for _, relInObj := range ObjectShow.Relations { if relInObj.Key == rel.Key { found = true if rel.Key == bundle.RelationKeyStatus.String() { @@ -277,7 +277,7 @@ func TestRelationAdd(t *testing.T) { Relation: &model.Relation{Key: "ffff"}, }) require.Equal(t, pb.RpcBlockDataviewRelationUpdateResponseError_BAD_INPUT, respUpdate.Error.Code, respUpdate.Error.Description) - respOpenNewPage = mw.BlockOpen(&pb.RpcBlockOpenRequest{BlockId: mw.GetAnytype().PredefinedBlocks().SetPages}) + respOpenNewPage = mw.ObjectOpen(&pb.RpcObjectOpenRequest{ObjectId: mw.GetAnytype().PredefinedBlocks().SetPages}) require.Equal(t, 0, int(respOpenNewPage.Error.Code), respOpenNewPage.Error.Description) block = getBlockById("dataview", getEventObjectShow(respOpenNewPage.Event.Messages).Blocks) }) @@ -296,7 +296,7 @@ func TestRelationAdd(t *testing.T) { }, }) require.Equal(t, pb.RpcBlockDataviewRelationUpdateResponseError_BAD_INPUT, respUpdate.Error.Code, respUpdate.Error.Description) - respOpenNewPage = mw.BlockOpen(&pb.RpcBlockOpenRequest{BlockId: mw.GetAnytype().PredefinedBlocks().SetPages}) + respOpenNewPage = mw.ObjectOpen(&pb.RpcObjectOpenRequest{ObjectId: mw.GetAnytype().PredefinedBlocks().SetPages}) require.Equal(t, 0, int(respOpenNewPage.Error.Code), respOpenNewPage.Error.Description) block = getBlockById("dataview", getEventObjectShow(respOpenNewPage.Event.Messages).Blocks) @@ -318,7 +318,7 @@ func TestRelationAdd(t *testing.T) { }, }) require.Equal(t, pb.RpcBlockDataviewRelationUpdateResponseError_NULL, respUpdate.Error.Code, respUpdate.Error.Description) - respOpenNewPage = mw.BlockOpen(&pb.RpcBlockOpenRequest{BlockId: mw.GetAnytype().PredefinedBlocks().SetPages}) + respOpenNewPage = mw.ObjectOpen(&pb.RpcObjectOpenRequest{ObjectId: mw.GetAnytype().PredefinedBlocks().SetPages}) require.Equal(t, 0, int(respOpenNewPage.Error.Code), respOpenNewPage.Error.Description) block = getBlockById("dataview", getEventObjectShow(respOpenNewPage.Event.Messages).Blocks) @@ -332,7 +332,7 @@ func TestRelationAdd(t *testing.T) { RelationKey: "not_existing_key", }) require.Equal(t, pb.RpcBlockDataviewRelationDeleteResponseError_BAD_INPUT, respDataviewRelationAdd.Error.Code, respDataviewRelationAdd.Error.Description) - respOpenNewPage = mw.BlockOpen(&pb.RpcBlockOpenRequest{BlockId: mw.GetAnytype().PredefinedBlocks().SetPages}) + respOpenNewPage = mw.ObjectOpen(&pb.RpcObjectOpenRequest{ObjectId: mw.GetAnytype().PredefinedBlocks().SetPages}) require.Equal(t, 0, int(respOpenNewPage.Error.Code), respOpenNewPage.Error.Description) block = getBlockById("dataview", getEventObjectShow(respOpenNewPage.Event.Messages).Blocks) }) @@ -350,7 +350,7 @@ func TestRelationAdd(t *testing.T) { require.Equal(t, 0, int(respAccountCreate.Error.Code)) require.Equal(t, 0, int(respDataviewRelationDelete.Error.Code), respDataviewRelationDelete.Error.Description) - respOpenNewPage = mw.BlockOpen(&pb.RpcBlockOpenRequest{BlockId: mw.GetAnytype().PredefinedBlocks().SetPages}) + respOpenNewPage = mw.ObjectOpen(&pb.RpcObjectOpenRequest{ObjectId: mw.GetAnytype().PredefinedBlocks().SetPages}) require.Equal(t, 0, int(respOpenNewPage.Error.Code), respOpenNewPage.Error.Description) block = getBlockById("dataview", getEventObjectShow(respOpenNewPage.Event.Messages).Blocks) @@ -424,7 +424,7 @@ func TestRelationAdd(t *testing.T) { require.Equal(t, 0, int(respRecordUpdate.Error.Code), respRecordUpdate.Error.Description) - respOpenNewPage = mw.BlockOpen(&pb.RpcBlockOpenRequest{BlockId: newPageId}) + respOpenNewPage = mw.ObjectOpen(&pb.RpcObjectOpenRequest{ObjectId: newPageId}) require.Equal(t, 0, int(respOpenNewPage.Error.Code), respOpenNewPage.Error.Description) require.Len(t, respOpenNewPage.Event.Messages, 1) @@ -457,7 +457,7 @@ func TestRelationAdd(t *testing.T) { }, }) require.Equal(t, 0, int(respRecordUpdate2.Error.Code), respRecordUpdate2.Error.Description) - respOpenNewPage = mw.BlockOpen(&pb.RpcBlockOpenRequest{BlockId: newPageId}) + respOpenNewPage = mw.ObjectOpen(&pb.RpcObjectOpenRequest{ObjectId: newPageId}) require.Equal(t, 0, int(respOpenNewPage.Error.Code), respOpenNewPage.Error.Description) require.Len(t, respOpenNewPage.Event.Messages, 1) @@ -533,7 +533,7 @@ func TestRelationAdd(t *testing.T) { require.Equal(t, 0, int(respRecordUpdate.Error.Code), respRecordUpdate.Error.Description) - respOpenNewPage = mw.BlockOpen(&pb.RpcBlockOpenRequest{BlockId: newPageId}) + respOpenNewPage = mw.ObjectOpen(&pb.RpcObjectOpenRequest{ObjectId: newPageId}) require.Equal(t, 0, int(respOpenNewPage.Error.Code), respOpenNewPage.Error.Description) require.Len(t, respOpenNewPage.Event.Messages, 1) @@ -582,7 +582,7 @@ func TestRelationAdd(t *testing.T) { require.Equal(t, 0, int(respOptUpdate.Error.Code), respOptUpdate.Error.Description) //time.sleep(time.Millisecond * 200) - respOpenNewPage = mw.BlockOpen(&pb.RpcBlockOpenRequest{BlockId: newPageId}) + respOpenNewPage = mw.ObjectOpen(&pb.RpcObjectOpenRequest{ObjectId: newPageId}) require.Equal(t, 0, int(respOpenNewPage.Error.Code), respOpenNewPage.Error.Description) require.Len(t, respOpenNewPage.Event.Messages, 1) @@ -594,11 +594,11 @@ func TestRelationAdd(t *testing.T) { }) t.Run("relation_object_change_option_name", func(t *testing.T) { - pageCreateResp := mw.PageCreate(&pb.RpcPageCreateRequest{}) + pageCreateResp := mw.ObjectCreate(&pb.RpcObjectCreateRequest{}) require.Equal(t, 0, int(pageCreateResp.Error.Code), pageCreateResp.Error.Description) - pageOpenResp := mw.BlockOpen(&pb.RpcBlockOpenRequest{ - BlockId: pageCreateResp.PageId, + pageOpenResp := mw.ObjectOpen(&pb.RpcObjectOpenRequest{ + ObjectId: pageCreateResp.PageId, }) optCreateResp := mw.ObjectRelationOptionAdd(&pb.RpcObjectRelationOptionAddRequest{ @@ -611,9 +611,9 @@ func TestRelationAdd(t *testing.T) { }, }) - setDetailsResp := mw.BlockSetDetails(&pb.RpcBlockSetDetailsRequest{ + setDetailsResp := mw.ObjectSetDetails(&pb.RpcObjectSetDetailsRequest{ ContextId: pageCreateResp.PageId, - Details: []*pb.RpcBlockSetDetailsDetail{{ + Details: []*pb.RpcObjectSetDetailsDetail{{ Key: bundle.RelationKeyTag.String(), Value: pbtypes.StringList([]string{optCreateResp.Option.Id}), }}, @@ -722,7 +722,7 @@ func TestRelationAdd(t *testing.T) { require.Equal(t, 0, int(respRecordUpdate.Error.Code), respRecordUpdate.Error.Description) - respOpenNewPage = mw.BlockOpen(&pb.RpcBlockOpenRequest{BlockId: newPageId}) + respOpenNewPage = mw.ObjectOpen(&pb.RpcObjectOpenRequest{ObjectId: newPageId}) require.Equal(t, 0, int(respOpenNewPage.Error.Code), respOpenNewPage.Error.Description) require.Len(t, respOpenNewPage.Event.Messages, 1) @@ -771,19 +771,19 @@ func TestRelationAdd(t *testing.T) { ReadOnly: false, } - respPage1Create := mw.PageCreate(&pb.RpcPageCreateRequest{ + respPage1Create := mw.ObjectCreate(&pb.RpcObjectCreateRequest{ Details: &types2.Struct{Fields: map[string]*types2.Value{ bundle.RelationKeyType.String(): pbtypes.StringList([]string{bundle.TypeKeyNote.URL()}), }}, }) require.Equal(t, 0, int(respPage1Create.Error.Code), respPage1Create.Error.Description) - respPage2Create := mw.PageCreate(&pb.RpcPageCreateRequest{ + respPage2Create := mw.ObjectCreate(&pb.RpcObjectCreateRequest{ Details: &types2.Struct{Fields: map[string]*types2.Value{ bundle.RelationKeyType.String(): pbtypes.StringList([]string{bundle.TypeKeyNote.URL()}), }}, }) require.Equal(t, 0, int(respPage1Create.Error.Code), respPage1Create.Error.Description) - respTask1Create := mw.PageCreate(&pb.RpcPageCreateRequest{ + respTask1Create := mw.ObjectCreate(&pb.RpcObjectCreateRequest{ Details: &types2.Struct{Fields: map[string]*types2.Value{ bundle.RelationKeyType.String(): pbtypes.StringList([]string{bundle.TypeKeyTask.URL()}), }}, @@ -926,7 +926,7 @@ func TestRelationAdd(t *testing.T) { }) require.Equal(t, 0, int(respDvRelAdd.Error.Code), respDvRelAdd.Error.Description) - respOpenNewPage := mw.BlockOpen(&pb.RpcBlockOpenRequest{BlockId: mw.GetAnytype().PredefinedBlocks().SetPages}) + respOpenNewPage := mw.ObjectOpen(&pb.RpcObjectOpenRequest{ObjectId: mw.GetAnytype().PredefinedBlocks().SetPages}) require.Equal(t, 0, int(respOpenNewPage.Error.Code), respOpenNewPage.Error.Description) block := getBlockById("dataview", getEventObjectShow(respOpenNewPage.Event.Messages).Blocks) for _, test := range tests { @@ -968,19 +968,19 @@ func TestRelationAdd(t *testing.T) { ReadOnly: false, } - respPage1Create := mw.PageCreate(&pb.RpcPageCreateRequest{ + respPage1Create := mw.ObjectCreate(&pb.RpcObjectCreateRequest{ Details: &types2.Struct{Fields: map[string]*types2.Value{ bundle.RelationKeyType.String(): pbtypes.StringList([]string{bundle.TypeKeyPage.URL()}), }}, }) require.Equal(t, 0, int(respPage1Create.Error.Code), respPage1Create.Error.Description) - respPage2Create := mw.PageCreate(&pb.RpcPageCreateRequest{ + respPage2Create := mw.ObjectCreate(&pb.RpcObjectCreateRequest{ Details: &types2.Struct{Fields: map[string]*types2.Value{ bundle.RelationKeyType.String(): pbtypes.StringList([]string{bundle.TypeKeyPage.URL()}), }}, }) require.Equal(t, 0, int(respPage1Create.Error.Code), respPage1Create.Error.Description) - respTask1Create := mw.PageCreate(&pb.RpcPageCreateRequest{ + respTask1Create := mw.ObjectCreate(&pb.RpcObjectCreateRequest{ Details: &types2.Struct{Fields: map[string]*types2.Value{ bundle.RelationKeyType.String(): pbtypes.StringList([]string{bundle.TypeKeyTask.URL()}), }}, @@ -1011,9 +1011,9 @@ func TestRelationAdd(t *testing.T) { }) require.Equal(t, 0, int(respOptionAdd1.Error.Code), respOptionAdd1.Error.Description) - respSetDetails := mw.BlockSetDetails(&pb.RpcBlockSetDetailsRequest{ + respSetDetails := mw.ObjectSetDetails(&pb.RpcObjectSetDetailsRequest{ ContextId: respPage2Create.PageId, - Details: []*pb.RpcBlockSetDetailsDetail{{Key: rel1.Key, Value: pbtypes.StringList([]string{respOptionAdd1.Option.Id})}}, + Details: []*pb.RpcObjectSetDetailsDetail{{Key: rel1.Key, Value: pbtypes.StringList([]string{respOptionAdd1.Option.Id})}}, }) require.Equal(t, 0, int(respSetDetails.Error.Code), respSetDetails.Error.Description) @@ -1111,13 +1111,13 @@ func TestRelationAdd(t *testing.T) { }, }) require.Equal(t, pb.RpcBlockDataviewRelationUpdateResponseError_NULL, respUpdate.Error.Code, respUpdate.Error.Description) - respOpenNewPage = mw.BlockOpen(&pb.RpcBlockOpenRequest{BlockId: mw.GetAnytype().PredefinedBlocks().SetPages}) + respOpenNewPage = mw.ObjectOpen(&pb.RpcObjectOpenRequest{ObjectId: mw.GetAnytype().PredefinedBlocks().SetPages}) require.Equal(t, 0, int(respOpenNewPage.Error.Code), respOpenNewPage.Error.Description) block = getBlockById("dataview", getEventObjectShow(respOpenNewPage.Event.Messages).Blocks) require.Equal(t, "new_changed", block.GetDataview().Relations[len(block.GetDataview().Relations)-1].Name) //time.sleep(time.Millisecond*200) - respOpenNewRecord := mw.BlockOpen(&pb.RpcBlockOpenRequest{BlockId: pbtypes.GetString(recCreate.Record, "id")}) + respOpenNewRecord := mw.ObjectOpen(&pb.RpcObjectOpenRequest{ObjectId: pbtypes.GetString(recCreate.Record, "id")}) rel := pbtypes.GetRelation(getEventObjectShow(respOpenNewRecord.Event.Messages).Relations, relKey) require.NotNil(t, rel) require.Equal(t, "new_changed", rel.Name) @@ -1173,19 +1173,19 @@ func TestCustomType(t *testing.T) { } require.True(t, found2, "new object type not found in search") - respCreateCustomTypeSet := mw.SetCreate(&pb.RpcSetCreateRequest{ + respCreateCustomTypeSet := mw.ObjectCreateSet(&pb.RpcObjectCreateSetRequest{ Source: []string{respObjectTypeCreate.ObjectType.Url}, }) require.Equal(t, 0, int(respCreateCustomTypeSet.Error.Code), respCreateCustomTypeSet.Error.Description) require.NotEmpty(t, respCreateCustomTypeSet.Id) - respOpenCustomTypeSet := mw.BlockOpen(&pb.RpcBlockOpenRequest{BlockId: respCreateCustomTypeSet.Id}) + respOpenCustomTypeSet := mw.ObjectOpen(&pb.RpcObjectOpenRequest{ObjectId: respCreateCustomTypeSet.Id}) require.Equal(t, 0, int(respOpenCustomTypeSet.Error.Code), respOpenCustomTypeSet.Error.Description) respCreateRecordInCustomTypeSet := mw.BlockDataviewRecordCreate(&pb.RpcBlockDataviewRecordCreateRequest{ContextId: respCreateCustomTypeSet.Id, BlockId: "dataview", Record: &types2.Struct{Fields: map[string]*types2.Value{"name": pbtypes.String("custom1"), newRelation.Key: pbtypes.String("newRelationVal")}}}) require.Equal(t, 0, int(respCreateRecordInCustomTypeSet.Error.Code), respCreateRecordInCustomTypeSet.Error.Description) customObjectId := respCreateRecordInCustomTypeSet.Record.Fields["id"].GetStringValue() - respOpenCustomTypeObject := mw.BlockOpen(&pb.RpcBlockOpenRequest{BlockId: customObjectId}) + respOpenCustomTypeObject := mw.ObjectOpen(&pb.RpcObjectOpenRequest{ObjectId: customObjectId}) require.Equal(t, 0, int(respOpenCustomTypeObject.Error.Code), respOpenCustomTypeObject.Error.Description) show := getEventObjectShow(respOpenCustomTypeObject.Event.Messages) require.NotNil(t, show) @@ -1217,7 +1217,7 @@ func TestCustomType(t *testing.T) { require.NotNil(t, customObjectDetails.Fields[newRelation.Key]) require.Equal(t, "newRelationVal", customObjectDetails.Fields[newRelation.Key].GetStringValue()) for i := 0; i <= 20; i++ { - respOpenCustomTypeSet = mw.BlockOpen(&pb.RpcBlockOpenRequest{BlockId: respCreateCustomTypeSet.Id}) + respOpenCustomTypeSet = mw.ObjectOpen(&pb.RpcObjectOpenRequest{ObjectId: respCreateCustomTypeSet.Id}) require.Equal(t, 0, int(respOpenCustomTypeSet.Error.Code), respOpenCustomTypeSet.Error.Description) recordsSet := getEventRecordsSet(respOpenCustomTypeSet.Event.Messages) @@ -1289,27 +1289,27 @@ func TestRelationSet(t *testing.T) { //time.sleep(time.Millisecond*100) for relUrl, relToCreate := range rels { - customTypeObject := mw.PageCreate(&pb.RpcPageCreateRequest{Details: &types2.Struct{Fields: map[string]*types2.Value{ + customTypeObject := mw.ObjectCreate(&pb.RpcObjectCreateRequest{Details: &types2.Struct{Fields: map[string]*types2.Value{ bundle.RelationKeyType.String(): pbtypes.String(respObjectTypeCreate.ObjectType.Url), bundle.RelationKeyName.String(): pbtypes.String("custom1"), }}}) require.Equal(t, 0, int(customTypeObject.Error.Code), customTypeObject.Error.Description) - taskTypeObject := mw.PageCreate(&pb.RpcPageCreateRequest{Details: &types2.Struct{Fields: map[string]*types2.Value{ + taskTypeObject := mw.ObjectCreate(&pb.RpcObjectCreateRequest{Details: &types2.Struct{Fields: map[string]*types2.Value{ bundle.RelationKeyType.String(): pbtypes.String(bundle.TypeKeyTask.URL()), bundle.RelationKeyName.String(): pbtypes.String("task1"), }}}) require.Equal(t, 0, int(taskTypeObject.Error.Code), taskTypeObject.Error.Description) - respCreateRelationSet := mw.SetCreate(&pb.RpcSetCreateRequest{ + respCreateRelationSet := mw.ObjectCreateSet(&pb.RpcObjectCreateSetRequest{ Source: []string{relUrl}, }) require.Equal(t, 0, int(respCreateRelationSet.Error.Code), respCreateRelationSet.Error.Description) require.NotEmpty(t, respCreateRelationSet.Id) - respOpenRelationSet := mw.BlockOpen(&pb.RpcBlockOpenRequest{BlockId: respCreateRelationSet.Id}) + respOpenRelationSet := mw.ObjectOpen(&pb.RpcObjectOpenRequest{ObjectId: respCreateRelationSet.Id}) require.Equal(t, 0, int(respOpenRelationSet.Error.Code), respOpenRelationSet.Error.Description) respCreateRecordInRelationSetWithoutType := mw.BlockDataviewRecordCreate(&pb.RpcBlockDataviewRecordCreateRequest{ContextId: respCreateRelationSet.Id, BlockId: "dataview", Record: &types2.Struct{Fields: map[string]*types2.Value{"name": pbtypes.String("custom2"), relToCreate.Key: pbtypes.String("newRelationVal")}}}) @@ -1319,10 +1319,10 @@ func TestRelationSet(t *testing.T) { require.Equal(t, 0, int(respCreateRecordInRelationSetWithType.Error.Code), respCreateRecordInRelationSetWithType.Error.Description) customObjectId := respCreateRecordInRelationSetWithType.Record.Fields["id"].GetStringValue() - respOpenCustomTypeObject := mw.BlockOpen(&pb.RpcBlockOpenRequest{BlockId: customObjectId}) + respOpenCustomTypeObject := mw.ObjectOpen(&pb.RpcObjectOpenRequest{ObjectId: customObjectId}) require.Equal(t, 0, int(respOpenCustomTypeObject.Error.Code), respOpenCustomTypeObject.Error.Description) - pageTypeObject := mw.PageCreate(&pb.RpcPageCreateRequest{Details: &types2.Struct{Fields: map[string]*types2.Value{ + pageTypeObject := mw.ObjectCreate(&pb.RpcObjectCreateRequest{Details: &types2.Struct{Fields: map[string]*types2.Value{ bundle.RelationKeyName.String(): pbtypes.String("page1"), bundle.RelationKeyType.String(): pbtypes.String(bundle.TypeKeyPage.URL()), }}}) @@ -1334,9 +1334,9 @@ func TestRelationSet(t *testing.T) { }) require.Equal(t, 0, int(r1.Error.Code), r1.Error.Description) - r2 := mw.BlockSetDetails(&pb.RpcBlockSetDetailsRequest{ + r2 := mw.ObjectSetDetails(&pb.RpcObjectSetDetailsRequest{ ContextId: pageTypeObject.PageId, - Details: []*pb.RpcBlockSetDetailsDetail{{ + Details: []*pb.RpcObjectSetDetailsDetail{{ Key: relToCreate.Key, Value: pbtypes.StringList([]string{"_anytype_profile"}), }}, @@ -1344,7 +1344,7 @@ func TestRelationSet(t *testing.T) { require.Equal(t, 0, int(r2.Error.Code), r2.Error.Description) for i := 0; i <= 20; i++ { - respOpenRelationSet = mw.BlockOpen(&pb.RpcBlockOpenRequest{BlockId: respCreateRelationSet.Id}) + respOpenRelationSet = mw.ObjectOpen(&pb.RpcObjectOpenRequest{ObjectId: respCreateRelationSet.Id}) require.Equal(t, 0, int(respOpenRelationSet.Error.Code), respOpenRelationSet.Error.Description) recordsSet := getEventRecordsSet(respOpenRelationSet.Event.Messages) @@ -1391,10 +1391,10 @@ func TestBundledType(t *testing.T) { _, mw, close := start(t, nil) defer close() - respCreatePage := mw.PageCreate(&pb.RpcPageCreateRequest{Details: &types2.Struct{Fields: map[string]*types2.Value{"name": pbtypes.String("test1"), "type": pbtypes.String("_otnote")}}}) + respCreatePage := mw.ObjectCreate(&pb.RpcObjectCreateRequest{Details: &types2.Struct{Fields: map[string]*types2.Value{"name": pbtypes.String("test1"), "type": pbtypes.String("_otnote")}}}) require.Equal(t, 0, int(respCreatePage.Error.Code), respCreatePage.Error.Description) log.Errorf("page %s created", respCreatePage.PageId) - respOpenPage := mw.BlockOpen(&pb.RpcBlockOpenRequest{BlockId: respCreatePage.PageId}) + respOpenPage := mw.ObjectOpen(&pb.RpcObjectOpenRequest{ObjectId: respCreatePage.PageId}) require.Equal(t, 0, int(respOpenPage.Error.Code), respOpenPage.Error.Description) show := getEventObjectShow(respOpenPage.Event.Messages) @@ -1408,7 +1408,7 @@ func TestBundledType(t *testing.T) { //time.sleep(time.Millisecond * 200) - respOpenPagesSet := mw.BlockOpen(&pb.RpcBlockOpenRequest{BlockId: mw.GetAnytype().PredefinedBlocks().SetPages}) + respOpenPagesSet := mw.ObjectOpen(&pb.RpcObjectOpenRequest{ObjectId: mw.GetAnytype().PredefinedBlocks().SetPages}) require.Equal(t, 0, int(respOpenPagesSet.Error.Code), respOpenPagesSet.Error.Description) show = getEventObjectShow(respOpenPagesSet.Event.Messages) @@ -1429,11 +1429,11 @@ func TestBundledType(t *testing.T) { require.Len(t, recordsSet.Records, 1) require.Equal(t, respCreatePage.PageId, getEventRecordsSet(respSetActive.Event.Messages).Records[0].Fields["id"].GetStringValue()) - respCreatePage = mw.PageCreate(&pb.RpcPageCreateRequest{Details: &types2.Struct{Fields: map[string]*types2.Value{"name": pbtypes.String("test2"), "type": pbtypes.String("_otnote")}}}) + respCreatePage = mw.ObjectCreate(&pb.RpcObjectCreateRequest{Details: &types2.Struct{Fields: map[string]*types2.Value{"name": pbtypes.String("test2"), "type": pbtypes.String("_otnote")}}}) require.Equal(t, 0, int(respCreatePage.Error.Code), respCreatePage.Error.Description) //time.sleep(time.Millisecond * 200) - respOpenPagesSet = mw.BlockOpen(&pb.RpcBlockOpenRequest{BlockId: mw.GetAnytype().PredefinedBlocks().SetPages}) + respOpenPagesSet = mw.ObjectOpen(&pb.RpcObjectOpenRequest{ObjectId: mw.GetAnytype().PredefinedBlocks().SetPages}) require.Equal(t, 0, int(respOpenPagesSet.Error.Code), respOpenPagesSet.Error.Description) show = getEventObjectShow(respOpenPagesSet.Event.Messages) @@ -1452,7 +1452,7 @@ func TestArchiveIndex(t *testing.T) { _, mw, close := start(t, nil) defer close() - resp := mw.BlockCreatePage(&pb.RpcBlockCreatePageRequest{}) + resp := mw.BlockLinkCreateWithObject(&pb.RpcBlockLinkCreateWithObjectRequest{}) require.Equal(t, int(resp.Error.Code), 0, resp.Error.Description) respArchive := mw.ObjectListSetIsArchived(&pb.RpcObjectListSetIsArchivedRequest{ diff --git a/core/subscription/service.go b/core/subscription/service.go index 7ca4d9f65..b5a8585dd 100644 --- a/core/subscription/service.go +++ b/core/subscription/service.go @@ -35,7 +35,7 @@ func New() Service { type Service interface { Search(req pb.RpcObjectSearchSubscribeRequest) (resp *pb.RpcObjectSearchSubscribeResponse, err error) - SubscribeIdsReq(req pb.RpcObjectIdsSubscribeRequest) (resp *pb.RpcObjectIdsSubscribeResponse, err error) + SubscribeIdsReq(req pb.RpcObjectSubscribeIdsRequest) (resp *pb.RpcObjectSubscribeIdsResponse, err error) SubscribeIds(subId string, ids []string) (records []*types.Struct, err error) Unsubscribe(subIds ...string) (err error) UnsubscribeAll() (err error) @@ -171,7 +171,7 @@ func (s *service) Search(req pb.RpcObjectSearchSubscribeRequest) (resp *pb.RpcOb return } -func (s *service) SubscribeIdsReq(req pb.RpcObjectIdsSubscribeRequest) (resp *pb.RpcObjectIdsSubscribeResponse, err error) { +func (s *service) SubscribeIdsReq(req pb.RpcObjectSubscribeIdsRequest) (resp *pb.RpcObjectSubscribeIdsResponse, err error) { records, err := s.objectStore.QueryById(req.Ids) if err != nil { return @@ -205,8 +205,8 @@ func (s *service) SubscribeIdsReq(req pb.RpcObjectIdsSubscribeRequest) (resp *pb depRecords = sub.depSub.getActiveRecords() } - return &pb.RpcObjectIdsSubscribeResponse{ - Error: &pb.RpcObjectIdsSubscribeResponseError{}, + return &pb.RpcObjectSubscribeIdsResponse{ + Error: &pb.RpcObjectSubscribeIdsResponseError{}, Records: subRecords, Dependencies: depRecords, SubId: req.SubId, diff --git a/core/template.go b/core/template.go index b4cc7ab60..d4aed83d0 100644 --- a/core/template.go +++ b/core/template.go @@ -14,92 +14,92 @@ import ( "github.com/anytypeio/go-anytype-middleware/util/pbtypes" ) -func (mw *Middleware) MakeTemplate(req *pb.RpcMakeTemplateRequest) *pb.RpcMakeTemplateResponse { - response := func(templateId string, err error) *pb.RpcMakeTemplateResponse { - m := &pb.RpcMakeTemplateResponse{ - Error: &pb.RpcMakeTemplateResponseError{Code: pb.RpcMakeTemplateResponseError_NULL}, +func (mw *Middleware) TemplateCreateFromObject(req *pb.RpcTemplateCreateFromObjectRequest) *pb.RpcTemplateCreateFromObjectResponse { + response := func(templateId string, err error) *pb.RpcTemplateCreateFromObjectResponse { + m := &pb.RpcTemplateCreateFromObjectResponse{ + Error: &pb.RpcTemplateCreateFromObjectResponseError{Code: pb.RpcTemplateCreateFromObjectResponseError_NULL}, Id: templateId, } if err != nil { - m.Error.Code = pb.RpcMakeTemplateResponseError_UNKNOWN_ERROR + m.Error.Code = pb.RpcTemplateCreateFromObjectResponseError_UNKNOWN_ERROR m.Error.Description = err.Error() } return m } var templateId string err := mw.doBlockService(func(bs block.Service) (err error) { - templateId, err = bs.MakeTemplate(req.ContextId) + templateId, err = bs.TemplateCreateFromObject(req.ContextId) return }) return response(templateId, err) } -func (mw *Middleware) CloneTemplate(req *pb.RpcCloneTemplateRequest) *pb.RpcCloneTemplateResponse { - response := func(templateId string, err error) *pb.RpcCloneTemplateResponse { - m := &pb.RpcCloneTemplateResponse{ - Error: &pb.RpcCloneTemplateResponseError{Code: pb.RpcCloneTemplateResponseError_NULL}, +func (mw *Middleware) TemplateClone(req *pb.RpcTemplateCloneRequest) *pb.RpcTemplateCloneResponse { + response := func(templateId string, err error) *pb.RpcTemplateCloneResponse { + m := &pb.RpcTemplateCloneResponse{ + Error: &pb.RpcTemplateCloneResponseError{Code: pb.RpcTemplateCloneResponseError_NULL}, Id: templateId, } if err != nil { - m.Error.Code = pb.RpcCloneTemplateResponseError_UNKNOWN_ERROR + m.Error.Code = pb.RpcTemplateCloneResponseError_UNKNOWN_ERROR m.Error.Description = err.Error() } return m } var templateId string err := mw.doBlockService(func(bs block.Service) (err error) { - templateId, err = bs.CloneTemplate(req.ContextId) + templateId, err = bs.TemplateClone(req.ContextId) return }) return response(templateId, err) } -func (mw *Middleware) ApplyTemplate(req *pb.RpcApplyTemplateRequest) *pb.RpcApplyTemplateResponse { - response := func(err error) *pb.RpcApplyTemplateResponse { - m := &pb.RpcApplyTemplateResponse{ - Error: &pb.RpcApplyTemplateResponseError{Code: pb.RpcApplyTemplateResponseError_NULL}, +func (mw *Middleware) ObjectApplyTemplate(req *pb.RpcObjectApplyTemplateRequest) *pb.RpcObjectApplyTemplateResponse { + response := func(err error) *pb.RpcObjectApplyTemplateResponse { + m := &pb.RpcObjectApplyTemplateResponse{ + Error: &pb.RpcObjectApplyTemplateResponseError{Code: pb.RpcObjectApplyTemplateResponseError_NULL}, } if err != nil { - m.Error.Code = pb.RpcApplyTemplateResponseError_UNKNOWN_ERROR + m.Error.Code = pb.RpcObjectApplyTemplateResponseError_UNKNOWN_ERROR m.Error.Description = err.Error() } return m } err := mw.doBlockService(func(bs block.Service) (err error) { - return bs.ApplyTemplate(req.ContextId, req.TemplateId) + return bs.ObjectApplyTemplate(req.ContextId, req.TemplateId) }) return response(err) } -func (mw *Middleware) MakeTemplateByObjectType(req *pb.RpcMakeTemplateByObjectTypeRequest) *pb.RpcMakeTemplateByObjectTypeResponse { - response := func(templateId string, err error) *pb.RpcMakeTemplateByObjectTypeResponse { - m := &pb.RpcMakeTemplateByObjectTypeResponse{ - Error: &pb.RpcMakeTemplateByObjectTypeResponseError{Code: pb.RpcMakeTemplateByObjectTypeResponseError_NULL}, +func (mw *Middleware) TemplateCreateFromObjectType(req *pb.RpcTemplateCreateFromObjectTypeRequest) *pb.RpcTemplateCreateFromObjectTypeResponse { + response := func(templateId string, err error) *pb.RpcTemplateCreateFromObjectTypeResponse { + m := &pb.RpcTemplateCreateFromObjectTypeResponse{ + Error: &pb.RpcTemplateCreateFromObjectTypeResponseError{Code: pb.RpcTemplateCreateFromObjectTypeResponseError_NULL}, Id: templateId, } if err != nil { - m.Error.Code = pb.RpcMakeTemplateByObjectTypeResponseError_UNKNOWN_ERROR + m.Error.Code = pb.RpcTemplateCreateFromObjectTypeResponseError_UNKNOWN_ERROR m.Error.Description = err.Error() } return m } var templateId string err := mw.doBlockService(func(bs block.Service) (err error) { - templateId, err = bs.MakeTemplateByObjectType(req.ObjectType) + templateId, err = bs.TemplateCreateFromObjectByObjectType(req.ObjectType) return }) return response(templateId, err) } -func (mw *Middleware) ExportTemplates(req *pb.RpcExportTemplatesRequest) *pb.RpcExportTemplatesResponse { - response := func(path string, err error) (res *pb.RpcExportTemplatesResponse) { - res = &pb.RpcExportTemplatesResponse{ - Error: &pb.RpcExportTemplatesResponseError{ - Code: pb.RpcExportTemplatesResponseError_NULL, +func (mw *Middleware) TemplateExportAll(req *pb.RpcTemplateExportAllRequest) *pb.RpcTemplateExportAllResponse { + response := func(path string, err error) (res *pb.RpcTemplateExportAllResponse) { + res = &pb.RpcTemplateExportAllResponse{ + Error: &pb.RpcTemplateExportAllResponseError{ + Code: pb.RpcTemplateExportAllResponseError_NULL, }, } if err != nil { - res.Error.Code = pb.RpcExportTemplatesResponseError_UNKNOWN_ERROR + res.Error.Code = pb.RpcTemplateExportAllResponseError_UNKNOWN_ERROR res.Error.Description = err.Error() return } else { @@ -133,26 +133,26 @@ func (mw *Middleware) ExportTemplates(req *pb.RpcExportTemplatesRequest) *pb.Rpc if len(docIds) == 0 { return fmt.Errorf("no templates") } - path, _, err = es.Export(pb.RpcExportRequest{ - Path: req.Path, - DocIds: docIds, - Format: pb.RpcExport_Protobuf, - Zip: true, + path, _, err = es.Export(pb.RpcObjectListExportRequest{ + Path: req.Path, + ObjectIds: docIds, + Format: pb.RpcObjectListExport_Protobuf, + Zip: true, }) return err }) return response(path, err) } -func (mw *Middleware) ExportWorkspace(req *pb.RpcExportWorkspaceRequest) *pb.RpcExportWorkspaceResponse { - response := func(path string, err error) (res *pb.RpcExportWorkspaceResponse) { - res = &pb.RpcExportWorkspaceResponse{ - Error: &pb.RpcExportWorkspaceResponseError{ - Code: pb.RpcExportWorkspaceResponseError_NULL, +func (mw *Middleware) WorkspaceExport(req *pb.RpcWorkspaceExportRequest) *pb.RpcWorkspaceExportResponse { + response := func(path string, err error) (res *pb.RpcWorkspaceExportResponse) { + res = &pb.RpcWorkspaceExportResponse{ + Error: &pb.RpcWorkspaceExportResponseError{ + Code: pb.RpcWorkspaceExportResponseError_NULL, }, } if err != nil { - res.Error.Code = pb.RpcExportWorkspaceResponseError_UNKNOWN_ERROR + res.Error.Code = pb.RpcWorkspaceExportResponseError_UNKNOWN_ERROR res.Error.Description = err.Error() return } else { @@ -191,10 +191,10 @@ func (mw *Middleware) ExportWorkspace(req *pb.RpcExportWorkspaceRequest) *pb.Rpc if len(docIds) == 0 { return fmt.Errorf("no objects in workspace") } - path, _, err = es.Export(pb.RpcExportRequest{ + path, _, err = es.Export(pb.RpcObjectListExportRequest{ Path: req.Path, - DocIds: docIds, - Format: pb.RpcExport_Protobuf, + ObjectIds: docIds, + Format: pb.RpcObjectListExport_Protobuf, Zip: true, IncludeNested: false, }) diff --git a/core/undo.go b/core/undo.go index feb19ce5f..946d526a8 100644 --- a/core/undo.go +++ b/core/undo.go @@ -7,14 +7,14 @@ import ( "github.com/anytypeio/go-anytype-middleware/pb" ) -func (mw *Middleware) BlockUndo(req *pb.RpcBlockUndoRequest) *pb.RpcBlockUndoResponse { +func (mw *Middleware) ObjectUndo(req *pb.RpcObjectUndoRequest) *pb.RpcObjectUndoResponse { ctx := state.NewContext(nil) var ( - counters pb.RpcBlockUndoRedoCounter + counters pb.RpcObjectUndoRedoCounter err error ) - response := func(code pb.RpcBlockUndoResponseErrorCode, err error) *pb.RpcBlockUndoResponse { - m := &pb.RpcBlockUndoResponse{Error: &pb.RpcBlockUndoResponseError{Code: code}} + response := func(code pb.RpcObjectUndoResponseErrorCode, err error) *pb.RpcObjectUndoResponse { + m := &pb.RpcObjectUndoResponse{Error: &pb.RpcObjectUndoResponseError{Code: code}} if err != nil { m.Error.Description = err.Error() } else { @@ -29,21 +29,21 @@ func (mw *Middleware) BlockUndo(req *pb.RpcBlockUndoRequest) *pb.RpcBlockUndoRes }) if err != nil { if err == undo.ErrNoHistory { - return response(pb.RpcBlockUndoResponseError_CAN_NOT_MOVE, err) + return response(pb.RpcObjectUndoResponseError_CAN_NOT_MOVE, err) } - return response(pb.RpcBlockUndoResponseError_UNKNOWN_ERROR, err) + return response(pb.RpcObjectUndoResponseError_UNKNOWN_ERROR, err) } - return response(pb.RpcBlockUndoResponseError_NULL, nil) + return response(pb.RpcObjectUndoResponseError_NULL, nil) } -func (mw *Middleware) BlockRedo(req *pb.RpcBlockRedoRequest) *pb.RpcBlockRedoResponse { +func (mw *Middleware) ObjectRedo(req *pb.RpcObjectRedoRequest) *pb.RpcObjectRedoResponse { ctx := state.NewContext(nil) var ( - counters pb.RpcBlockUndoRedoCounter + counters pb.RpcObjectUndoRedoCounter err error ) - response := func(code pb.RpcBlockRedoResponseErrorCode, err error) *pb.RpcBlockRedoResponse { - m := &pb.RpcBlockRedoResponse{Error: &pb.RpcBlockRedoResponseError{Code: code}} + response := func(code pb.RpcObjectRedoResponseErrorCode, err error) *pb.RpcObjectRedoResponse { + m := &pb.RpcObjectRedoResponse{Error: &pb.RpcObjectRedoResponseError{Code: code}} if err != nil { m.Error.Description = err.Error() } else { @@ -59,9 +59,9 @@ func (mw *Middleware) BlockRedo(req *pb.RpcBlockRedoRequest) *pb.RpcBlockRedoRes }) if err != nil { if err == undo.ErrNoHistory { - return response(pb.RpcBlockRedoResponseError_CAN_NOT_MOVE, err) + return response(pb.RpcObjectRedoResponseError_CAN_NOT_MOVE, err) } - return response(pb.RpcBlockRedoResponseError_UNKNOWN_ERROR, err) + return response(pb.RpcObjectRedoResponseError_UNKNOWN_ERROR, err) } - return response(pb.RpcBlockRedoResponseError_NULL, nil) + return response(pb.RpcObjectRedoResponseError_NULL, nil) } diff --git a/core/version.go b/core/version.go index ffa2949a6..c28db0200 100644 --- a/core/version.go +++ b/core/version.go @@ -4,9 +4,9 @@ import ( "github.com/anytypeio/go-anytype-middleware/pb" ) -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, Details: details, Error: &pb.RpcVersionGetResponseError{Code: code}} +func (mw *Middleware) AppGetVersion(req *pb.RpcAppGetVersionRequest) *pb.RpcAppGetVersionResponse { + response := func(version, details string, code pb.RpcAppGetVersionResponseErrorCode, err error) *pb.RpcAppGetVersionResponse { + m := &pb.RpcAppGetVersionResponse{Version: version, Details: details, Error: &pb.RpcAppGetVersionResponseError{Code: code}} if err != nil { m.Error.Description = err.Error() } @@ -14,5 +14,5 @@ func (mw *Middleware) VersionGet(req *pb.RpcVersionGetRequest) *pb.RpcVersionGet return m } - return response(mw.app.Version(), mw.app.VersionDescription(), pb.RpcVersionGetResponseError_NULL, nil) + return response(mw.app.Version(), mw.app.VersionDescription(), pb.RpcAppGetVersionResponseError_NULL, nil) } diff --git a/docs/proto.md b/docs/proto.md index c59098edd..fc3e5848b 100644 --- a/docs/proto.md +++ b/docs/proto.md @@ -43,6 +43,9 @@ - [Rpc.Account.Delete.Request](#anytype-Rpc-Account-Delete-Request) - [Rpc.Account.Delete.Response](#anytype-Rpc-Account-Delete-Response) - [Rpc.Account.Delete.Response.Error](#anytype-Rpc-Account-Delete-Response-Error) + - [Rpc.Account.GetConfig](#anytype-Rpc-Account-GetConfig) + - [Rpc.Account.GetConfig.Get](#anytype-Rpc-Account-GetConfig-Get) + - [Rpc.Account.GetConfig.Get.Request](#anytype-Rpc-Account-GetConfig-Get-Request) - [Rpc.Account.Recover](#anytype-Rpc-Account-Recover) - [Rpc.Account.Recover.Request](#anytype-Rpc-Account-Recover-Request) - [Rpc.Account.Recover.Response](#anytype-Rpc-Account-Recover-Response) @@ -55,24 +58,20 @@ - [Rpc.Account.Stop.Request](#anytype-Rpc-Account-Stop-Request) - [Rpc.Account.Stop.Response](#anytype-Rpc-Account-Stop-Response) - [Rpc.Account.Stop.Response.Error](#anytype-Rpc-Account-Stop-Response-Error) - - [Rpc.ApplyTemplate](#anytype-Rpc-ApplyTemplate) - - [Rpc.ApplyTemplate.Request](#anytype-Rpc-ApplyTemplate-Request) - - [Rpc.ApplyTemplate.Response](#anytype-Rpc-ApplyTemplate-Response) - - [Rpc.ApplyTemplate.Response.Error](#anytype-Rpc-ApplyTemplate-Response-Error) + - [Rpc.App](#anytype-Rpc-App) + - [Rpc.App.GetVersion](#anytype-Rpc-App-GetVersion) + - [Rpc.App.GetVersion.Request](#anytype-Rpc-App-GetVersion-Request) + - [Rpc.App.GetVersion.Response](#anytype-Rpc-App-GetVersion-Response) + - [Rpc.App.GetVersion.Response.Error](#anytype-Rpc-App-GetVersion-Response-Error) + - [Rpc.App.SetDeviceState](#anytype-Rpc-App-SetDeviceState) + - [Rpc.App.SetDeviceState.Request](#anytype-Rpc-App-SetDeviceState-Request) + - [Rpc.App.SetDeviceState.Response](#anytype-Rpc-App-SetDeviceState-Response) + - [Rpc.App.SetDeviceState.Response.Error](#anytype-Rpc-App-SetDeviceState-Response-Error) + - [Rpc.App.Shutdown](#anytype-Rpc-App-Shutdown) + - [Rpc.App.Shutdown.Request](#anytype-Rpc-App-Shutdown-Request) + - [Rpc.App.Shutdown.Response](#anytype-Rpc-App-Shutdown-Response) + - [Rpc.App.Shutdown.Response.Error](#anytype-Rpc-App-Shutdown-Response-Error) - [Rpc.Block](#anytype-Rpc-Block) - - [Rpc.Block.Bookmark](#anytype-Rpc-Block-Bookmark) - - [Rpc.Block.Bookmark.CreateAndFetch](#anytype-Rpc-Block-Bookmark-CreateAndFetch) - - [Rpc.Block.Bookmark.CreateAndFetch.Request](#anytype-Rpc-Block-Bookmark-CreateAndFetch-Request) - - [Rpc.Block.Bookmark.CreateAndFetch.Response](#anytype-Rpc-Block-Bookmark-CreateAndFetch-Response) - - [Rpc.Block.Bookmark.CreateAndFetch.Response.Error](#anytype-Rpc-Block-Bookmark-CreateAndFetch-Response-Error) - - [Rpc.Block.Bookmark.Fetch](#anytype-Rpc-Block-Bookmark-Fetch) - - [Rpc.Block.Bookmark.Fetch.Request](#anytype-Rpc-Block-Bookmark-Fetch-Request) - - [Rpc.Block.Bookmark.Fetch.Response](#anytype-Rpc-Block-Bookmark-Fetch-Response) - - [Rpc.Block.Bookmark.Fetch.Response.Error](#anytype-Rpc-Block-Bookmark-Fetch-Response-Error) - - [Rpc.Block.Close](#anytype-Rpc-Block-Close) - - [Rpc.Block.Close.Request](#anytype-Rpc-Block-Close-Request) - - [Rpc.Block.Close.Response](#anytype-Rpc-Block-Close-Response) - - [Rpc.Block.Close.Response.Error](#anytype-Rpc-Block-Close-Response-Error) - [Rpc.Block.Copy](#anytype-Rpc-Block-Copy) - [Rpc.Block.Copy.Request](#anytype-Rpc-Block-Copy-Request) - [Rpc.Block.Copy.Response](#anytype-Rpc-Block-Copy-Response) @@ -81,83 +80,10 @@ - [Rpc.Block.Create.Request](#anytype-Rpc-Block-Create-Request) - [Rpc.Block.Create.Response](#anytype-Rpc-Block-Create-Response) - [Rpc.Block.Create.Response.Error](#anytype-Rpc-Block-Create-Response-Error) - - [Rpc.Block.CreatePage](#anytype-Rpc-Block-CreatePage) - - [Rpc.Block.CreatePage.Request](#anytype-Rpc-Block-CreatePage-Request) - - [Rpc.Block.CreatePage.Response](#anytype-Rpc-Block-CreatePage-Response) - - [Rpc.Block.CreatePage.Response.Error](#anytype-Rpc-Block-CreatePage-Response-Error) - - [Rpc.Block.CreateSet](#anytype-Rpc-Block-CreateSet) - - [Rpc.Block.CreateSet.Request](#anytype-Rpc-Block-CreateSet-Request) - - [Rpc.Block.CreateSet.Response](#anytype-Rpc-Block-CreateSet-Response) - - [Rpc.Block.CreateSet.Response.Error](#anytype-Rpc-Block-CreateSet-Response-Error) - [Rpc.Block.Cut](#anytype-Rpc-Block-Cut) - [Rpc.Block.Cut.Request](#anytype-Rpc-Block-Cut-Request) - [Rpc.Block.Cut.Response](#anytype-Rpc-Block-Cut-Response) - [Rpc.Block.Cut.Response.Error](#anytype-Rpc-Block-Cut-Response-Error) - - [Rpc.Block.Dataview](#anytype-Rpc-Block-Dataview) - - [Rpc.Block.Dataview.RecordCreate](#anytype-Rpc-Block-Dataview-RecordCreate) - - [Rpc.Block.Dataview.RecordCreate.Request](#anytype-Rpc-Block-Dataview-RecordCreate-Request) - - [Rpc.Block.Dataview.RecordCreate.Response](#anytype-Rpc-Block-Dataview-RecordCreate-Response) - - [Rpc.Block.Dataview.RecordCreate.Response.Error](#anytype-Rpc-Block-Dataview-RecordCreate-Response-Error) - - [Rpc.Block.Dataview.RecordDelete](#anytype-Rpc-Block-Dataview-RecordDelete) - - [Rpc.Block.Dataview.RecordDelete.Request](#anytype-Rpc-Block-Dataview-RecordDelete-Request) - - [Rpc.Block.Dataview.RecordDelete.Response](#anytype-Rpc-Block-Dataview-RecordDelete-Response) - - [Rpc.Block.Dataview.RecordDelete.Response.Error](#anytype-Rpc-Block-Dataview-RecordDelete-Response-Error) - - [Rpc.Block.Dataview.RecordRelationOptionAdd](#anytype-Rpc-Block-Dataview-RecordRelationOptionAdd) - - [Rpc.Block.Dataview.RecordRelationOptionAdd.Request](#anytype-Rpc-Block-Dataview-RecordRelationOptionAdd-Request) - - [Rpc.Block.Dataview.RecordRelationOptionAdd.Response](#anytype-Rpc-Block-Dataview-RecordRelationOptionAdd-Response) - - [Rpc.Block.Dataview.RecordRelationOptionAdd.Response.Error](#anytype-Rpc-Block-Dataview-RecordRelationOptionAdd-Response-Error) - - [Rpc.Block.Dataview.RecordRelationOptionDelete](#anytype-Rpc-Block-Dataview-RecordRelationOptionDelete) - - [Rpc.Block.Dataview.RecordRelationOptionDelete.Request](#anytype-Rpc-Block-Dataview-RecordRelationOptionDelete-Request) - - [Rpc.Block.Dataview.RecordRelationOptionDelete.Response](#anytype-Rpc-Block-Dataview-RecordRelationOptionDelete-Response) - - [Rpc.Block.Dataview.RecordRelationOptionDelete.Response.Error](#anytype-Rpc-Block-Dataview-RecordRelationOptionDelete-Response-Error) - - [Rpc.Block.Dataview.RecordRelationOptionUpdate](#anytype-Rpc-Block-Dataview-RecordRelationOptionUpdate) - - [Rpc.Block.Dataview.RecordRelationOptionUpdate.Request](#anytype-Rpc-Block-Dataview-RecordRelationOptionUpdate-Request) - - [Rpc.Block.Dataview.RecordRelationOptionUpdate.Response](#anytype-Rpc-Block-Dataview-RecordRelationOptionUpdate-Response) - - [Rpc.Block.Dataview.RecordRelationOptionUpdate.Response.Error](#anytype-Rpc-Block-Dataview-RecordRelationOptionUpdate-Response-Error) - - [Rpc.Block.Dataview.RecordUpdate](#anytype-Rpc-Block-Dataview-RecordUpdate) - - [Rpc.Block.Dataview.RecordUpdate.Request](#anytype-Rpc-Block-Dataview-RecordUpdate-Request) - - [Rpc.Block.Dataview.RecordUpdate.Response](#anytype-Rpc-Block-Dataview-RecordUpdate-Response) - - [Rpc.Block.Dataview.RecordUpdate.Response.Error](#anytype-Rpc-Block-Dataview-RecordUpdate-Response-Error) - - [Rpc.Block.Dataview.RelationAdd](#anytype-Rpc-Block-Dataview-RelationAdd) - - [Rpc.Block.Dataview.RelationAdd.Request](#anytype-Rpc-Block-Dataview-RelationAdd-Request) - - [Rpc.Block.Dataview.RelationAdd.Response](#anytype-Rpc-Block-Dataview-RelationAdd-Response) - - [Rpc.Block.Dataview.RelationAdd.Response.Error](#anytype-Rpc-Block-Dataview-RelationAdd-Response-Error) - - [Rpc.Block.Dataview.RelationDelete](#anytype-Rpc-Block-Dataview-RelationDelete) - - [Rpc.Block.Dataview.RelationDelete.Request](#anytype-Rpc-Block-Dataview-RelationDelete-Request) - - [Rpc.Block.Dataview.RelationDelete.Response](#anytype-Rpc-Block-Dataview-RelationDelete-Response) - - [Rpc.Block.Dataview.RelationDelete.Response.Error](#anytype-Rpc-Block-Dataview-RelationDelete-Response-Error) - - [Rpc.Block.Dataview.RelationListAvailable](#anytype-Rpc-Block-Dataview-RelationListAvailable) - - [Rpc.Block.Dataview.RelationListAvailable.Request](#anytype-Rpc-Block-Dataview-RelationListAvailable-Request) - - [Rpc.Block.Dataview.RelationListAvailable.Response](#anytype-Rpc-Block-Dataview-RelationListAvailable-Response) - - [Rpc.Block.Dataview.RelationListAvailable.Response.Error](#anytype-Rpc-Block-Dataview-RelationListAvailable-Response-Error) - - [Rpc.Block.Dataview.RelationUpdate](#anytype-Rpc-Block-Dataview-RelationUpdate) - - [Rpc.Block.Dataview.RelationUpdate.Request](#anytype-Rpc-Block-Dataview-RelationUpdate-Request) - - [Rpc.Block.Dataview.RelationUpdate.Response](#anytype-Rpc-Block-Dataview-RelationUpdate-Response) - - [Rpc.Block.Dataview.RelationUpdate.Response.Error](#anytype-Rpc-Block-Dataview-RelationUpdate-Response-Error) - - [Rpc.Block.Dataview.SetSource](#anytype-Rpc-Block-Dataview-SetSource) - - [Rpc.Block.Dataview.SetSource.Request](#anytype-Rpc-Block-Dataview-SetSource-Request) - - [Rpc.Block.Dataview.SetSource.Response](#anytype-Rpc-Block-Dataview-SetSource-Response) - - [Rpc.Block.Dataview.SetSource.Response.Error](#anytype-Rpc-Block-Dataview-SetSource-Response-Error) - - [Rpc.Block.Dataview.ViewCreate](#anytype-Rpc-Block-Dataview-ViewCreate) - - [Rpc.Block.Dataview.ViewCreate.Request](#anytype-Rpc-Block-Dataview-ViewCreate-Request) - - [Rpc.Block.Dataview.ViewCreate.Response](#anytype-Rpc-Block-Dataview-ViewCreate-Response) - - [Rpc.Block.Dataview.ViewCreate.Response.Error](#anytype-Rpc-Block-Dataview-ViewCreate-Response-Error) - - [Rpc.Block.Dataview.ViewDelete](#anytype-Rpc-Block-Dataview-ViewDelete) - - [Rpc.Block.Dataview.ViewDelete.Request](#anytype-Rpc-Block-Dataview-ViewDelete-Request) - - [Rpc.Block.Dataview.ViewDelete.Response](#anytype-Rpc-Block-Dataview-ViewDelete-Response) - - [Rpc.Block.Dataview.ViewDelete.Response.Error](#anytype-Rpc-Block-Dataview-ViewDelete-Response-Error) - - [Rpc.Block.Dataview.ViewSetActive](#anytype-Rpc-Block-Dataview-ViewSetActive) - - [Rpc.Block.Dataview.ViewSetActive.Request](#anytype-Rpc-Block-Dataview-ViewSetActive-Request) - - [Rpc.Block.Dataview.ViewSetActive.Response](#anytype-Rpc-Block-Dataview-ViewSetActive-Response) - - [Rpc.Block.Dataview.ViewSetActive.Response.Error](#anytype-Rpc-Block-Dataview-ViewSetActive-Response-Error) - - [Rpc.Block.Dataview.ViewSetPosition](#anytype-Rpc-Block-Dataview-ViewSetPosition) - - [Rpc.Block.Dataview.ViewSetPosition.Request](#anytype-Rpc-Block-Dataview-ViewSetPosition-Request) - - [Rpc.Block.Dataview.ViewSetPosition.Response](#anytype-Rpc-Block-Dataview-ViewSetPosition-Response) - - [Rpc.Block.Dataview.ViewSetPosition.Response.Error](#anytype-Rpc-Block-Dataview-ViewSetPosition-Response-Error) - - [Rpc.Block.Dataview.ViewUpdate](#anytype-Rpc-Block-Dataview-ViewUpdate) - - [Rpc.Block.Dataview.ViewUpdate.Request](#anytype-Rpc-Block-Dataview-ViewUpdate-Request) - - [Rpc.Block.Dataview.ViewUpdate.Response](#anytype-Rpc-Block-Dataview-ViewUpdate-Response) - - [Rpc.Block.Dataview.ViewUpdate.Response.Error](#anytype-Rpc-Block-Dataview-ViewUpdate-Response-Error) - [Rpc.Block.Download](#anytype-Rpc-Block-Download) - [Rpc.Block.Download.Request](#anytype-Rpc-Block-Download-Request) - [Rpc.Block.Download.Response](#anytype-Rpc-Block-Download-Response) @@ -166,233 +92,255 @@ - [Rpc.Block.Export.Request](#anytype-Rpc-Block-Export-Request) - [Rpc.Block.Export.Response](#anytype-Rpc-Block-Export-Response) - [Rpc.Block.Export.Response.Error](#anytype-Rpc-Block-Export-Response-Error) - - [Rpc.Block.File](#anytype-Rpc-Block-File) - - [Rpc.Block.File.CreateAndUpload](#anytype-Rpc-Block-File-CreateAndUpload) - - [Rpc.Block.File.CreateAndUpload.Request](#anytype-Rpc-Block-File-CreateAndUpload-Request) - - [Rpc.Block.File.CreateAndUpload.Response](#anytype-Rpc-Block-File-CreateAndUpload-Response) - - [Rpc.Block.File.CreateAndUpload.Response.Error](#anytype-Rpc-Block-File-CreateAndUpload-Response-Error) - - [Rpc.Block.Get](#anytype-Rpc-Block-Get) - - [Rpc.Block.Get.Marks](#anytype-Rpc-Block-Get-Marks) - - [Rpc.Block.Get.Marks.Request](#anytype-Rpc-Block-Get-Marks-Request) - - [Rpc.Block.Get.Marks.Response](#anytype-Rpc-Block-Get-Marks-Response) - - [Rpc.Block.Get.Marks.Response.Error](#anytype-Rpc-Block-Get-Marks-Response-Error) - - [Rpc.Block.GetPublicWebURL](#anytype-Rpc-Block-GetPublicWebURL) - - [Rpc.Block.GetPublicWebURL.Request](#anytype-Rpc-Block-GetPublicWebURL-Request) - - [Rpc.Block.GetPublicWebURL.Response](#anytype-Rpc-Block-GetPublicWebURL-Response) - - [Rpc.Block.GetPublicWebURL.Response.Error](#anytype-Rpc-Block-GetPublicWebURL-Response-Error) - - [Rpc.Block.ImportMarkdown](#anytype-Rpc-Block-ImportMarkdown) - - [Rpc.Block.ImportMarkdown.Request](#anytype-Rpc-Block-ImportMarkdown-Request) - - [Rpc.Block.ImportMarkdown.Response](#anytype-Rpc-Block-ImportMarkdown-Response) - - [Rpc.Block.ImportMarkdown.Response.Error](#anytype-Rpc-Block-ImportMarkdown-Response-Error) + - [Rpc.Block.ListConvertToObjects](#anytype-Rpc-Block-ListConvertToObjects) + - [Rpc.Block.ListConvertToObjects.Request](#anytype-Rpc-Block-ListConvertToObjects-Request) + - [Rpc.Block.ListConvertToObjects.Response](#anytype-Rpc-Block-ListConvertToObjects-Response) + - [Rpc.Block.ListConvertToObjects.Response.Error](#anytype-Rpc-Block-ListConvertToObjects-Response-Error) + - [Rpc.Block.ListDelete](#anytype-Rpc-Block-ListDelete) + - [Rpc.Block.ListDelete.Request](#anytype-Rpc-Block-ListDelete-Request) + - [Rpc.Block.ListDelete.Response](#anytype-Rpc-Block-ListDelete-Response) + - [Rpc.Block.ListDelete.Response.Error](#anytype-Rpc-Block-ListDelete-Response-Error) + - [Rpc.Block.ListDuplicate](#anytype-Rpc-Block-ListDuplicate) + - [Rpc.Block.ListDuplicate.Request](#anytype-Rpc-Block-ListDuplicate-Request) + - [Rpc.Block.ListDuplicate.Response](#anytype-Rpc-Block-ListDuplicate-Response) + - [Rpc.Block.ListDuplicate.Response.Error](#anytype-Rpc-Block-ListDuplicate-Response-Error) + - [Rpc.Block.ListMoveToExistingObject](#anytype-Rpc-Block-ListMoveToExistingObject) + - [Rpc.Block.ListMoveToExistingObject.Request](#anytype-Rpc-Block-ListMoveToExistingObject-Request) + - [Rpc.Block.ListMoveToExistingObject.Response](#anytype-Rpc-Block-ListMoveToExistingObject-Response) + - [Rpc.Block.ListMoveToExistingObject.Response.Error](#anytype-Rpc-Block-ListMoveToExistingObject-Response-Error) + - [Rpc.Block.ListMoveToNewObject](#anytype-Rpc-Block-ListMoveToNewObject) + - [Rpc.Block.ListMoveToNewObject.Request](#anytype-Rpc-Block-ListMoveToNewObject-Request) + - [Rpc.Block.ListMoveToNewObject.Response](#anytype-Rpc-Block-ListMoveToNewObject-Response) + - [Rpc.Block.ListMoveToNewObject.Response.Error](#anytype-Rpc-Block-ListMoveToNewObject-Response-Error) + - [Rpc.Block.ListSetAlign](#anytype-Rpc-Block-ListSetAlign) + - [Rpc.Block.ListSetAlign.Request](#anytype-Rpc-Block-ListSetAlign-Request) + - [Rpc.Block.ListSetAlign.Response](#anytype-Rpc-Block-ListSetAlign-Response) + - [Rpc.Block.ListSetAlign.Response.Error](#anytype-Rpc-Block-ListSetAlign-Response-Error) + - [Rpc.Block.ListSetBackgroundColor](#anytype-Rpc-Block-ListSetBackgroundColor) + - [Rpc.Block.ListSetBackgroundColor.Request](#anytype-Rpc-Block-ListSetBackgroundColor-Request) + - [Rpc.Block.ListSetBackgroundColor.Response](#anytype-Rpc-Block-ListSetBackgroundColor-Response) + - [Rpc.Block.ListSetBackgroundColor.Response.Error](#anytype-Rpc-Block-ListSetBackgroundColor-Response-Error) + - [Rpc.Block.ListSetFields](#anytype-Rpc-Block-ListSetFields) + - [Rpc.Block.ListSetFields.Request](#anytype-Rpc-Block-ListSetFields-Request) + - [Rpc.Block.ListSetFields.Request.BlockField](#anytype-Rpc-Block-ListSetFields-Request-BlockField) + - [Rpc.Block.ListSetFields.Response](#anytype-Rpc-Block-ListSetFields-Response) + - [Rpc.Block.ListSetFields.Response.Error](#anytype-Rpc-Block-ListSetFields-Response-Error) + - [Rpc.Block.ListTurnInto](#anytype-Rpc-Block-ListTurnInto) + - [Rpc.Block.ListTurnInto.Request](#anytype-Rpc-Block-ListTurnInto-Request) + - [Rpc.Block.ListTurnInto.Response](#anytype-Rpc-Block-ListTurnInto-Response) + - [Rpc.Block.ListTurnInto.Response.Error](#anytype-Rpc-Block-ListTurnInto-Response-Error) + - [Rpc.Block.ListUpdate](#anytype-Rpc-Block-ListUpdate) + - [Rpc.Block.ListUpdate.Request](#anytype-Rpc-Block-ListUpdate-Request) + - [Rpc.Block.ListUpdate.Request.Text](#anytype-Rpc-Block-ListUpdate-Request-Text) - [Rpc.Block.Merge](#anytype-Rpc-Block-Merge) - [Rpc.Block.Merge.Request](#anytype-Rpc-Block-Merge-Request) - [Rpc.Block.Merge.Response](#anytype-Rpc-Block-Merge-Response) - [Rpc.Block.Merge.Response.Error](#anytype-Rpc-Block-Merge-Response-Error) - - [Rpc.Block.ObjectType](#anytype-Rpc-Block-ObjectType) - - [Rpc.Block.ObjectType.Set](#anytype-Rpc-Block-ObjectType-Set) - - [Rpc.Block.ObjectType.Set.Request](#anytype-Rpc-Block-ObjectType-Set-Request) - - [Rpc.Block.ObjectType.Set.Response](#anytype-Rpc-Block-ObjectType-Set-Response) - - [Rpc.Block.ObjectType.Set.Response.Error](#anytype-Rpc-Block-ObjectType-Set-Response-Error) - - [Rpc.Block.Open](#anytype-Rpc-Block-Open) - - [Rpc.Block.Open.Request](#anytype-Rpc-Block-Open-Request) - - [Rpc.Block.Open.Response](#anytype-Rpc-Block-Open-Response) - - [Rpc.Block.Open.Response.Error](#anytype-Rpc-Block-Open-Response-Error) - - [Rpc.Block.OpenBreadcrumbs](#anytype-Rpc-Block-OpenBreadcrumbs) - - [Rpc.Block.OpenBreadcrumbs.Request](#anytype-Rpc-Block-OpenBreadcrumbs-Request) - - [Rpc.Block.OpenBreadcrumbs.Response](#anytype-Rpc-Block-OpenBreadcrumbs-Response) - - [Rpc.Block.OpenBreadcrumbs.Response.Error](#anytype-Rpc-Block-OpenBreadcrumbs-Response-Error) - [Rpc.Block.Paste](#anytype-Rpc-Block-Paste) - [Rpc.Block.Paste.Request](#anytype-Rpc-Block-Paste-Request) - [Rpc.Block.Paste.Request.File](#anytype-Rpc-Block-Paste-Request-File) - [Rpc.Block.Paste.Response](#anytype-Rpc-Block-Paste-Response) - [Rpc.Block.Paste.Response.Error](#anytype-Rpc-Block-Paste-Response-Error) - - [Rpc.Block.Redo](#anytype-Rpc-Block-Redo) - - [Rpc.Block.Redo.Request](#anytype-Rpc-Block-Redo-Request) - - [Rpc.Block.Redo.Response](#anytype-Rpc-Block-Redo-Response) - - [Rpc.Block.Redo.Response.Error](#anytype-Rpc-Block-Redo-Response-Error) - - [Rpc.Block.Relation](#anytype-Rpc-Block-Relation) - - [Rpc.Block.Relation.Add](#anytype-Rpc-Block-Relation-Add) - - [Rpc.Block.Relation.Add.Request](#anytype-Rpc-Block-Relation-Add-Request) - - [Rpc.Block.Relation.Add.Response](#anytype-Rpc-Block-Relation-Add-Response) - - [Rpc.Block.Relation.Add.Response.Error](#anytype-Rpc-Block-Relation-Add-Response-Error) - - [Rpc.Block.Relation.SetKey](#anytype-Rpc-Block-Relation-SetKey) - - [Rpc.Block.Relation.SetKey.Request](#anytype-Rpc-Block-Relation-SetKey-Request) - - [Rpc.Block.Relation.SetKey.Response](#anytype-Rpc-Block-Relation-SetKey-Response) - - [Rpc.Block.Relation.SetKey.Response.Error](#anytype-Rpc-Block-Relation-SetKey-Response-Error) - [Rpc.Block.Replace](#anytype-Rpc-Block-Replace) - [Rpc.Block.Replace.Request](#anytype-Rpc-Block-Replace-Request) - [Rpc.Block.Replace.Response](#anytype-Rpc-Block-Replace-Response) - [Rpc.Block.Replace.Response.Error](#anytype-Rpc-Block-Replace-Response-Error) - - [Rpc.Block.Set](#anytype-Rpc-Block-Set) - - [Rpc.Block.Set.Details](#anytype-Rpc-Block-Set-Details) - - [Rpc.Block.Set.Details.Detail](#anytype-Rpc-Block-Set-Details-Detail) - - [Rpc.Block.Set.Details.Request](#anytype-Rpc-Block-Set-Details-Request) - - [Rpc.Block.Set.Details.Response](#anytype-Rpc-Block-Set-Details-Response) - - [Rpc.Block.Set.Details.Response.Error](#anytype-Rpc-Block-Set-Details-Response-Error) - - [Rpc.Block.Set.Fields](#anytype-Rpc-Block-Set-Fields) - - [Rpc.Block.Set.Fields.Request](#anytype-Rpc-Block-Set-Fields-Request) - - [Rpc.Block.Set.Fields.Response](#anytype-Rpc-Block-Set-Fields-Response) - - [Rpc.Block.Set.Fields.Response.Error](#anytype-Rpc-Block-Set-Fields-Response-Error) - - [Rpc.Block.Set.File](#anytype-Rpc-Block-Set-File) - - [Rpc.Block.Set.File.Name](#anytype-Rpc-Block-Set-File-Name) - - [Rpc.Block.Set.File.Name.Request](#anytype-Rpc-Block-Set-File-Name-Request) - - [Rpc.Block.Set.File.Name.Response](#anytype-Rpc-Block-Set-File-Name-Response) - - [Rpc.Block.Set.File.Name.Response.Error](#anytype-Rpc-Block-Set-File-Name-Response-Error) - - [Rpc.Block.Set.Image](#anytype-Rpc-Block-Set-Image) - - [Rpc.Block.Set.Image.Name](#anytype-Rpc-Block-Set-Image-Name) - - [Rpc.Block.Set.Image.Name.Request](#anytype-Rpc-Block-Set-Image-Name-Request) - - [Rpc.Block.Set.Image.Name.Response](#anytype-Rpc-Block-Set-Image-Name-Response) - - [Rpc.Block.Set.Image.Name.Response.Error](#anytype-Rpc-Block-Set-Image-Name-Response-Error) - - [Rpc.Block.Set.Image.Width](#anytype-Rpc-Block-Set-Image-Width) - - [Rpc.Block.Set.Image.Width.Request](#anytype-Rpc-Block-Set-Image-Width-Request) - - [Rpc.Block.Set.Image.Width.Response](#anytype-Rpc-Block-Set-Image-Width-Response) - - [Rpc.Block.Set.Image.Width.Response.Error](#anytype-Rpc-Block-Set-Image-Width-Response-Error) - - [Rpc.Block.Set.Latex](#anytype-Rpc-Block-Set-Latex) - - [Rpc.Block.Set.Latex.Text](#anytype-Rpc-Block-Set-Latex-Text) - - [Rpc.Block.Set.Latex.Text.Request](#anytype-Rpc-Block-Set-Latex-Text-Request) - - [Rpc.Block.Set.Latex.Text.Response](#anytype-Rpc-Block-Set-Latex-Text-Response) - - [Rpc.Block.Set.Latex.Text.Response.Error](#anytype-Rpc-Block-Set-Latex-Text-Response-Error) - - [Rpc.Block.Set.Link](#anytype-Rpc-Block-Set-Link) - - [Rpc.Block.Set.Link.TargetBlockId](#anytype-Rpc-Block-Set-Link-TargetBlockId) - - [Rpc.Block.Set.Link.TargetBlockId.Request](#anytype-Rpc-Block-Set-Link-TargetBlockId-Request) - - [Rpc.Block.Set.Link.TargetBlockId.Response](#anytype-Rpc-Block-Set-Link-TargetBlockId-Response) - - [Rpc.Block.Set.Link.TargetBlockId.Response.Error](#anytype-Rpc-Block-Set-Link-TargetBlockId-Response-Error) - - [Rpc.Block.Set.Page](#anytype-Rpc-Block-Set-Page) - - [Rpc.Block.Set.Page.IsArchived](#anytype-Rpc-Block-Set-Page-IsArchived) - - [Rpc.Block.Set.Page.IsArchived.Request](#anytype-Rpc-Block-Set-Page-IsArchived-Request) - - [Rpc.Block.Set.Page.IsArchived.Response](#anytype-Rpc-Block-Set-Page-IsArchived-Response) - - [Rpc.Block.Set.Page.IsArchived.Response.Error](#anytype-Rpc-Block-Set-Page-IsArchived-Response-Error) - - [Rpc.Block.Set.Restrictions](#anytype-Rpc-Block-Set-Restrictions) - - [Rpc.Block.Set.Restrictions.Request](#anytype-Rpc-Block-Set-Restrictions-Request) - - [Rpc.Block.Set.Restrictions.Response](#anytype-Rpc-Block-Set-Restrictions-Response) - - [Rpc.Block.Set.Restrictions.Response.Error](#anytype-Rpc-Block-Set-Restrictions-Response-Error) - - [Rpc.Block.Set.Text](#anytype-Rpc-Block-Set-Text) - - [Rpc.Block.Set.Text.Checked](#anytype-Rpc-Block-Set-Text-Checked) - - [Rpc.Block.Set.Text.Checked.Request](#anytype-Rpc-Block-Set-Text-Checked-Request) - - [Rpc.Block.Set.Text.Checked.Response](#anytype-Rpc-Block-Set-Text-Checked-Response) - - [Rpc.Block.Set.Text.Checked.Response.Error](#anytype-Rpc-Block-Set-Text-Checked-Response-Error) - - [Rpc.Block.Set.Text.Color](#anytype-Rpc-Block-Set-Text-Color) - - [Rpc.Block.Set.Text.Color.Request](#anytype-Rpc-Block-Set-Text-Color-Request) - - [Rpc.Block.Set.Text.Color.Response](#anytype-Rpc-Block-Set-Text-Color-Response) - - [Rpc.Block.Set.Text.Color.Response.Error](#anytype-Rpc-Block-Set-Text-Color-Response-Error) - - [Rpc.Block.Set.Text.Icon](#anytype-Rpc-Block-Set-Text-Icon) - - [Rpc.Block.Set.Text.Icon.Request](#anytype-Rpc-Block-Set-Text-Icon-Request) - - [Rpc.Block.Set.Text.Icon.Response](#anytype-Rpc-Block-Set-Text-Icon-Response) - - [Rpc.Block.Set.Text.Icon.Response.Error](#anytype-Rpc-Block-Set-Text-Icon-Response-Error) - - [Rpc.Block.Set.Text.Style](#anytype-Rpc-Block-Set-Text-Style) - - [Rpc.Block.Set.Text.Style.Request](#anytype-Rpc-Block-Set-Text-Style-Request) - - [Rpc.Block.Set.Text.Style.Response](#anytype-Rpc-Block-Set-Text-Style-Response) - - [Rpc.Block.Set.Text.Style.Response.Error](#anytype-Rpc-Block-Set-Text-Style-Response-Error) - - [Rpc.Block.Set.Text.Text](#anytype-Rpc-Block-Set-Text-Text) - - [Rpc.Block.Set.Text.Text.Request](#anytype-Rpc-Block-Set-Text-Text-Request) - - [Rpc.Block.Set.Text.Text.Response](#anytype-Rpc-Block-Set-Text-Text-Response) - - [Rpc.Block.Set.Text.Text.Response.Error](#anytype-Rpc-Block-Set-Text-Text-Response-Error) - - [Rpc.Block.Set.Video](#anytype-Rpc-Block-Set-Video) - - [Rpc.Block.Set.Video.Name](#anytype-Rpc-Block-Set-Video-Name) - - [Rpc.Block.Set.Video.Name.Request](#anytype-Rpc-Block-Set-Video-Name-Request) - - [Rpc.Block.Set.Video.Name.Response](#anytype-Rpc-Block-Set-Video-Name-Response) - - [Rpc.Block.Set.Video.Name.Response.Error](#anytype-Rpc-Block-Set-Video-Name-Response-Error) - - [Rpc.Block.Set.Video.Width](#anytype-Rpc-Block-Set-Video-Width) - - [Rpc.Block.Set.Video.Width.Request](#anytype-Rpc-Block-Set-Video-Width-Request) - - [Rpc.Block.Set.Video.Width.Response](#anytype-Rpc-Block-Set-Video-Width-Response) - - [Rpc.Block.Set.Video.Width.Response.Error](#anytype-Rpc-Block-Set-Video-Width-Response-Error) - - [Rpc.Block.SetBreadcrumbs](#anytype-Rpc-Block-SetBreadcrumbs) - - [Rpc.Block.SetBreadcrumbs.Request](#anytype-Rpc-Block-SetBreadcrumbs-Request) - - [Rpc.Block.SetBreadcrumbs.Response](#anytype-Rpc-Block-SetBreadcrumbs-Response) - - [Rpc.Block.SetBreadcrumbs.Response.Error](#anytype-Rpc-Block-SetBreadcrumbs-Response-Error) - - [Rpc.Block.Show](#anytype-Rpc-Block-Show) - - [Rpc.Block.Show.Request](#anytype-Rpc-Block-Show-Request) - - [Rpc.Block.Show.Response](#anytype-Rpc-Block-Show-Response) - - [Rpc.Block.Show.Response.Error](#anytype-Rpc-Block-Show-Response-Error) + - [Rpc.Block.SetFields](#anytype-Rpc-Block-SetFields) + - [Rpc.Block.SetFields.Request](#anytype-Rpc-Block-SetFields-Request) + - [Rpc.Block.SetFields.Response](#anytype-Rpc-Block-SetFields-Response) + - [Rpc.Block.SetFields.Response.Error](#anytype-Rpc-Block-SetFields-Response-Error) - [Rpc.Block.Split](#anytype-Rpc-Block-Split) - [Rpc.Block.Split.Request](#anytype-Rpc-Block-Split-Request) - [Rpc.Block.Split.Response](#anytype-Rpc-Block-Split-Response) - [Rpc.Block.Split.Response.Error](#anytype-Rpc-Block-Split-Response-Error) - - [Rpc.Block.Undo](#anytype-Rpc-Block-Undo) - - [Rpc.Block.Undo.Request](#anytype-Rpc-Block-Undo-Request) - - [Rpc.Block.Undo.Response](#anytype-Rpc-Block-Undo-Response) - - [Rpc.Block.Undo.Response.Error](#anytype-Rpc-Block-Undo-Response-Error) - - [Rpc.Block.UndoRedoCounter](#anytype-Rpc-Block-UndoRedoCounter) - - [Rpc.Block.Unlink](#anytype-Rpc-Block-Unlink) - - [Rpc.Block.Unlink.Request](#anytype-Rpc-Block-Unlink-Request) - - [Rpc.Block.Unlink.Response](#anytype-Rpc-Block-Unlink-Response) - - [Rpc.Block.Unlink.Response.Error](#anytype-Rpc-Block-Unlink-Response-Error) - - [Rpc.Block.UpdateContent](#anytype-Rpc-Block-UpdateContent) - - [Rpc.Block.UpdateContent.Request](#anytype-Rpc-Block-UpdateContent-Request) - - [Rpc.Block.UpdateContent.Response](#anytype-Rpc-Block-UpdateContent-Response) - - [Rpc.Block.UpdateContent.Response.Error](#anytype-Rpc-Block-UpdateContent-Response-Error) - [Rpc.Block.Upload](#anytype-Rpc-Block-Upload) - [Rpc.Block.Upload.Request](#anytype-Rpc-Block-Upload-Request) - [Rpc.Block.Upload.Response](#anytype-Rpc-Block-Upload-Response) - [Rpc.Block.Upload.Response.Error](#anytype-Rpc-Block-Upload-Response-Error) - - [Rpc.BlockList](#anytype-Rpc-BlockList) - - [Rpc.BlockList.ConvertChildrenToPages](#anytype-Rpc-BlockList-ConvertChildrenToPages) - - [Rpc.BlockList.ConvertChildrenToPages.Request](#anytype-Rpc-BlockList-ConvertChildrenToPages-Request) - - [Rpc.BlockList.ConvertChildrenToPages.Response](#anytype-Rpc-BlockList-ConvertChildrenToPages-Response) - - [Rpc.BlockList.ConvertChildrenToPages.Response.Error](#anytype-Rpc-BlockList-ConvertChildrenToPages-Response-Error) - - [Rpc.BlockList.Duplicate](#anytype-Rpc-BlockList-Duplicate) - - [Rpc.BlockList.Duplicate.Request](#anytype-Rpc-BlockList-Duplicate-Request) - - [Rpc.BlockList.Duplicate.Response](#anytype-Rpc-BlockList-Duplicate-Response) - - [Rpc.BlockList.Duplicate.Response.Error](#anytype-Rpc-BlockList-Duplicate-Response-Error) - - [Rpc.BlockList.Move](#anytype-Rpc-BlockList-Move) - - [Rpc.BlockList.Move.Request](#anytype-Rpc-BlockList-Move-Request) - - [Rpc.BlockList.Move.Response](#anytype-Rpc-BlockList-Move-Response) - - [Rpc.BlockList.Move.Response.Error](#anytype-Rpc-BlockList-Move-Response-Error) - - [Rpc.BlockList.MoveToNewPage](#anytype-Rpc-BlockList-MoveToNewPage) - - [Rpc.BlockList.MoveToNewPage.Request](#anytype-Rpc-BlockList-MoveToNewPage-Request) - - [Rpc.BlockList.MoveToNewPage.Response](#anytype-Rpc-BlockList-MoveToNewPage-Response) - - [Rpc.BlockList.MoveToNewPage.Response.Error](#anytype-Rpc-BlockList-MoveToNewPage-Response-Error) - - [Rpc.BlockList.Set](#anytype-Rpc-BlockList-Set) - - [Rpc.BlockList.Set.Align](#anytype-Rpc-BlockList-Set-Align) - - [Rpc.BlockList.Set.Align.Request](#anytype-Rpc-BlockList-Set-Align-Request) - - [Rpc.BlockList.Set.Align.Response](#anytype-Rpc-BlockList-Set-Align-Response) - - [Rpc.BlockList.Set.Align.Response.Error](#anytype-Rpc-BlockList-Set-Align-Response-Error) - - [Rpc.BlockList.Set.BackgroundColor](#anytype-Rpc-BlockList-Set-BackgroundColor) - - [Rpc.BlockList.Set.BackgroundColor.Request](#anytype-Rpc-BlockList-Set-BackgroundColor-Request) - - [Rpc.BlockList.Set.BackgroundColor.Response](#anytype-Rpc-BlockList-Set-BackgroundColor-Response) - - [Rpc.BlockList.Set.BackgroundColor.Response.Error](#anytype-Rpc-BlockList-Set-BackgroundColor-Response-Error) - - [Rpc.BlockList.Set.Div](#anytype-Rpc-BlockList-Set-Div) - - [Rpc.BlockList.Set.Div.Style](#anytype-Rpc-BlockList-Set-Div-Style) - - [Rpc.BlockList.Set.Div.Style.Request](#anytype-Rpc-BlockList-Set-Div-Style-Request) - - [Rpc.BlockList.Set.Div.Style.Response](#anytype-Rpc-BlockList-Set-Div-Style-Response) - - [Rpc.BlockList.Set.Div.Style.Response.Error](#anytype-Rpc-BlockList-Set-Div-Style-Response-Error) - - [Rpc.BlockList.Set.Fields](#anytype-Rpc-BlockList-Set-Fields) - - [Rpc.BlockList.Set.Fields.Request](#anytype-Rpc-BlockList-Set-Fields-Request) - - [Rpc.BlockList.Set.Fields.Request.BlockField](#anytype-Rpc-BlockList-Set-Fields-Request-BlockField) - - [Rpc.BlockList.Set.Fields.Response](#anytype-Rpc-BlockList-Set-Fields-Response) - - [Rpc.BlockList.Set.Fields.Response.Error](#anytype-Rpc-BlockList-Set-Fields-Response-Error) - - [Rpc.BlockList.Set.File](#anytype-Rpc-BlockList-Set-File) - - [Rpc.BlockList.Set.File.Style](#anytype-Rpc-BlockList-Set-File-Style) - - [Rpc.BlockList.Set.File.Style.Request](#anytype-Rpc-BlockList-Set-File-Style-Request) - - [Rpc.BlockList.Set.File.Style.Response](#anytype-Rpc-BlockList-Set-File-Style-Response) - - [Rpc.BlockList.Set.File.Style.Response.Error](#anytype-Rpc-BlockList-Set-File-Style-Response-Error) - - [Rpc.BlockList.Set.Text](#anytype-Rpc-BlockList-Set-Text) - - [Rpc.BlockList.Set.Text.Color](#anytype-Rpc-BlockList-Set-Text-Color) - - [Rpc.BlockList.Set.Text.Color.Request](#anytype-Rpc-BlockList-Set-Text-Color-Request) - - [Rpc.BlockList.Set.Text.Color.Response](#anytype-Rpc-BlockList-Set-Text-Color-Response) - - [Rpc.BlockList.Set.Text.Color.Response.Error](#anytype-Rpc-BlockList-Set-Text-Color-Response-Error) - - [Rpc.BlockList.Set.Text.Mark](#anytype-Rpc-BlockList-Set-Text-Mark) - - [Rpc.BlockList.Set.Text.Mark.Request](#anytype-Rpc-BlockList-Set-Text-Mark-Request) - - [Rpc.BlockList.Set.Text.Mark.Response](#anytype-Rpc-BlockList-Set-Text-Mark-Response) - - [Rpc.BlockList.Set.Text.Mark.Response.Error](#anytype-Rpc-BlockList-Set-Text-Mark-Response-Error) - - [Rpc.BlockList.Set.Text.Style](#anytype-Rpc-BlockList-Set-Text-Style) - - [Rpc.BlockList.Set.Text.Style.Request](#anytype-Rpc-BlockList-Set-Text-Style-Request) - - [Rpc.BlockList.Set.Text.Style.Response](#anytype-Rpc-BlockList-Set-Text-Style-Response) - - [Rpc.BlockList.Set.Text.Style.Response.Error](#anytype-Rpc-BlockList-Set-Text-Style-Response-Error) - - [Rpc.BlockList.TurnInto](#anytype-Rpc-BlockList-TurnInto) - - [Rpc.BlockList.TurnInto.Request](#anytype-Rpc-BlockList-TurnInto-Request) - - [Rpc.BlockList.TurnInto.Response](#anytype-Rpc-BlockList-TurnInto-Response) - - [Rpc.BlockList.TurnInto.Response.Error](#anytype-Rpc-BlockList-TurnInto-Response-Error) - - [Rpc.CloneTemplate](#anytype-Rpc-CloneTemplate) - - [Rpc.CloneTemplate.Request](#anytype-Rpc-CloneTemplate-Request) - - [Rpc.CloneTemplate.Response](#anytype-Rpc-CloneTemplate-Response) - - [Rpc.CloneTemplate.Response.Error](#anytype-Rpc-CloneTemplate-Response-Error) - - [Rpc.Config](#anytype-Rpc-Config) - - [Rpc.Config.Get](#anytype-Rpc-Config-Get) - - [Rpc.Config.Get.Request](#anytype-Rpc-Config-Get-Request) - - [Rpc.Config.Get.Response](#anytype-Rpc-Config-Get-Response) - - [Rpc.Config.Get.Response.Error](#anytype-Rpc-Config-Get-Response-Error) + - [Rpc.BlockBookmark](#anytype-Rpc-BlockBookmark) + - [Rpc.BlockBookmark.CreateAndFetch](#anytype-Rpc-BlockBookmark-CreateAndFetch) + - [Rpc.BlockBookmark.CreateAndFetch.Request](#anytype-Rpc-BlockBookmark-CreateAndFetch-Request) + - [Rpc.BlockBookmark.CreateAndFetch.Response](#anytype-Rpc-BlockBookmark-CreateAndFetch-Response) + - [Rpc.BlockBookmark.CreateAndFetch.Response.Error](#anytype-Rpc-BlockBookmark-CreateAndFetch-Response-Error) + - [Rpc.BlockBookmark.Fetch](#anytype-Rpc-BlockBookmark-Fetch) + - [Rpc.BlockBookmark.Fetch.Request](#anytype-Rpc-BlockBookmark-Fetch-Request) + - [Rpc.BlockBookmark.Fetch.Response](#anytype-Rpc-BlockBookmark-Fetch-Response) + - [Rpc.BlockBookmark.Fetch.Response.Error](#anytype-Rpc-BlockBookmark-Fetch-Response-Error) + - [Rpc.BlockDataview](#anytype-Rpc-BlockDataview) + - [Rpc.BlockDataview.Relation](#anytype-Rpc-BlockDataview-Relation) + - [Rpc.BlockDataview.Relation.Add](#anytype-Rpc-BlockDataview-Relation-Add) + - [Rpc.BlockDataview.Relation.Add.Request](#anytype-Rpc-BlockDataview-Relation-Add-Request) + - [Rpc.BlockDataview.Relation.Add.Response](#anytype-Rpc-BlockDataview-Relation-Add-Response) + - [Rpc.BlockDataview.Relation.Add.Response.Error](#anytype-Rpc-BlockDataview-Relation-Add-Response-Error) + - [Rpc.BlockDataview.Relation.Delete](#anytype-Rpc-BlockDataview-Relation-Delete) + - [Rpc.BlockDataview.Relation.Delete.Request](#anytype-Rpc-BlockDataview-Relation-Delete-Request) + - [Rpc.BlockDataview.Relation.Delete.Response](#anytype-Rpc-BlockDataview-Relation-Delete-Response) + - [Rpc.BlockDataview.Relation.Delete.Response.Error](#anytype-Rpc-BlockDataview-Relation-Delete-Response-Error) + - [Rpc.BlockDataview.Relation.ListAvailable](#anytype-Rpc-BlockDataview-Relation-ListAvailable) + - [Rpc.BlockDataview.Relation.ListAvailable.Request](#anytype-Rpc-BlockDataview-Relation-ListAvailable-Request) + - [Rpc.BlockDataview.Relation.ListAvailable.Response](#anytype-Rpc-BlockDataview-Relation-ListAvailable-Response) + - [Rpc.BlockDataview.Relation.ListAvailable.Response.Error](#anytype-Rpc-BlockDataview-Relation-ListAvailable-Response-Error) + - [Rpc.BlockDataview.Relation.Update](#anytype-Rpc-BlockDataview-Relation-Update) + - [Rpc.BlockDataview.Relation.Update.Request](#anytype-Rpc-BlockDataview-Relation-Update-Request) + - [Rpc.BlockDataview.Relation.Update.Response](#anytype-Rpc-BlockDataview-Relation-Update-Response) + - [Rpc.BlockDataview.Relation.Update.Response.Error](#anytype-Rpc-BlockDataview-Relation-Update-Response-Error) + - [Rpc.BlockDataview.SetSource](#anytype-Rpc-BlockDataview-SetSource) + - [Rpc.BlockDataview.SetSource.Request](#anytype-Rpc-BlockDataview-SetSource-Request) + - [Rpc.BlockDataview.SetSource.Response](#anytype-Rpc-BlockDataview-SetSource-Response) + - [Rpc.BlockDataview.SetSource.Response.Error](#anytype-Rpc-BlockDataview-SetSource-Response-Error) + - [Rpc.BlockDataview.View](#anytype-Rpc-BlockDataview-View) + - [Rpc.BlockDataview.View.Create](#anytype-Rpc-BlockDataview-View-Create) + - [Rpc.BlockDataview.View.Create.Request](#anytype-Rpc-BlockDataview-View-Create-Request) + - [Rpc.BlockDataview.View.Create.Response](#anytype-Rpc-BlockDataview-View-Create-Response) + - [Rpc.BlockDataview.View.Create.Response.Error](#anytype-Rpc-BlockDataview-View-Create-Response-Error) + - [Rpc.BlockDataview.View.Delete](#anytype-Rpc-BlockDataview-View-Delete) + - [Rpc.BlockDataview.View.Delete.Request](#anytype-Rpc-BlockDataview-View-Delete-Request) + - [Rpc.BlockDataview.View.Delete.Response](#anytype-Rpc-BlockDataview-View-Delete-Response) + - [Rpc.BlockDataview.View.Delete.Response.Error](#anytype-Rpc-BlockDataview-View-Delete-Response-Error) + - [Rpc.BlockDataview.View.SetActive](#anytype-Rpc-BlockDataview-View-SetActive) + - [Rpc.BlockDataview.View.SetActive.Request](#anytype-Rpc-BlockDataview-View-SetActive-Request) + - [Rpc.BlockDataview.View.SetActive.Response](#anytype-Rpc-BlockDataview-View-SetActive-Response) + - [Rpc.BlockDataview.View.SetActive.Response.Error](#anytype-Rpc-BlockDataview-View-SetActive-Response-Error) + - [Rpc.BlockDataview.View.SetPosition](#anytype-Rpc-BlockDataview-View-SetPosition) + - [Rpc.BlockDataview.View.SetPosition.Request](#anytype-Rpc-BlockDataview-View-SetPosition-Request) + - [Rpc.BlockDataview.View.SetPosition.Response](#anytype-Rpc-BlockDataview-View-SetPosition-Response) + - [Rpc.BlockDataview.View.SetPosition.Response.Error](#anytype-Rpc-BlockDataview-View-SetPosition-Response-Error) + - [Rpc.BlockDataview.View.Update](#anytype-Rpc-BlockDataview-View-Update) + - [Rpc.BlockDataview.View.Update.Request](#anytype-Rpc-BlockDataview-View-Update-Request) + - [Rpc.BlockDataview.View.Update.Response](#anytype-Rpc-BlockDataview-View-Update-Response) + - [Rpc.BlockDataview.View.Update.Response.Error](#anytype-Rpc-BlockDataview-View-Update-Response-Error) + - [Rpc.BlockDataviewRecord](#anytype-Rpc-BlockDataviewRecord) + - [Rpc.BlockDataviewRecord.Create](#anytype-Rpc-BlockDataviewRecord-Create) + - [Rpc.BlockDataviewRecord.Create.Request](#anytype-Rpc-BlockDataviewRecord-Create-Request) + - [Rpc.BlockDataviewRecord.Create.Response](#anytype-Rpc-BlockDataviewRecord-Create-Response) + - [Rpc.BlockDataviewRecord.Create.Response.Error](#anytype-Rpc-BlockDataviewRecord-Create-Response-Error) + - [Rpc.BlockDataviewRecord.Delete](#anytype-Rpc-BlockDataviewRecord-Delete) + - [Rpc.BlockDataviewRecord.Delete.Request](#anytype-Rpc-BlockDataviewRecord-Delete-Request) + - [Rpc.BlockDataviewRecord.Delete.Response](#anytype-Rpc-BlockDataviewRecord-Delete-Response) + - [Rpc.BlockDataviewRecord.Delete.Response.Error](#anytype-Rpc-BlockDataviewRecord-Delete-Response-Error) + - [Rpc.BlockDataviewRecord.RelationOption](#anytype-Rpc-BlockDataviewRecord-RelationOption) + - [Rpc.BlockDataviewRecord.RelationOption.Add](#anytype-Rpc-BlockDataviewRecord-RelationOption-Add) + - [Rpc.BlockDataviewRecord.RelationOption.Add.Request](#anytype-Rpc-BlockDataviewRecord-RelationOption-Add-Request) + - [Rpc.BlockDataviewRecord.RelationOption.Add.Response](#anytype-Rpc-BlockDataviewRecord-RelationOption-Add-Response) + - [Rpc.BlockDataviewRecord.RelationOption.Add.Response.Error](#anytype-Rpc-BlockDataviewRecord-RelationOption-Add-Response-Error) + - [Rpc.BlockDataviewRecord.RelationOption.Delete](#anytype-Rpc-BlockDataviewRecord-RelationOption-Delete) + - [Rpc.BlockDataviewRecord.RelationOption.Delete.Request](#anytype-Rpc-BlockDataviewRecord-RelationOption-Delete-Request) + - [Rpc.BlockDataviewRecord.RelationOption.Delete.Response](#anytype-Rpc-BlockDataviewRecord-RelationOption-Delete-Response) + - [Rpc.BlockDataviewRecord.RelationOption.Delete.Response.Error](#anytype-Rpc-BlockDataviewRecord-RelationOption-Delete-Response-Error) + - [Rpc.BlockDataviewRecord.RelationOption.Update](#anytype-Rpc-BlockDataviewRecord-RelationOption-Update) + - [Rpc.BlockDataviewRecord.RelationOption.Update.Request](#anytype-Rpc-BlockDataviewRecord-RelationOption-Update-Request) + - [Rpc.BlockDataviewRecord.RelationOption.Update.Response](#anytype-Rpc-BlockDataviewRecord-RelationOption-Update-Response) + - [Rpc.BlockDataviewRecord.RelationOption.Update.Response.Error](#anytype-Rpc-BlockDataviewRecord-RelationOption-Update-Response-Error) + - [Rpc.BlockDataviewRecord.Update](#anytype-Rpc-BlockDataviewRecord-Update) + - [Rpc.BlockDataviewRecord.Update.Request](#anytype-Rpc-BlockDataviewRecord-Update-Request) + - [Rpc.BlockDataviewRecord.Update.Response](#anytype-Rpc-BlockDataviewRecord-Update-Response) + - [Rpc.BlockDataviewRecord.Update.Response.Error](#anytype-Rpc-BlockDataviewRecord-Update-Response-Error) + - [Rpc.BlockDiv](#anytype-Rpc-BlockDiv) + - [Rpc.BlockDiv.ListSetStyle](#anytype-Rpc-BlockDiv-ListSetStyle) + - [Rpc.BlockDiv.ListSetStyle.Request](#anytype-Rpc-BlockDiv-ListSetStyle-Request) + - [Rpc.BlockDiv.ListSetStyle.Response](#anytype-Rpc-BlockDiv-ListSetStyle-Response) + - [Rpc.BlockDiv.ListSetStyle.Response.Error](#anytype-Rpc-BlockDiv-ListSetStyle-Response-Error) + - [Rpc.BlockFile](#anytype-Rpc-BlockFile) + - [Rpc.BlockFile.CreateAndUpload](#anytype-Rpc-BlockFile-CreateAndUpload) + - [Rpc.BlockFile.CreateAndUpload.Request](#anytype-Rpc-BlockFile-CreateAndUpload-Request) + - [Rpc.BlockFile.CreateAndUpload.Response](#anytype-Rpc-BlockFile-CreateAndUpload-Response) + - [Rpc.BlockFile.CreateAndUpload.Response.Error](#anytype-Rpc-BlockFile-CreateAndUpload-Response-Error) + - [Rpc.BlockFile.ListSetStyle](#anytype-Rpc-BlockFile-ListSetStyle) + - [Rpc.BlockFile.ListSetStyle.Request](#anytype-Rpc-BlockFile-ListSetStyle-Request) + - [Rpc.BlockFile.ListSetStyle.Response](#anytype-Rpc-BlockFile-ListSetStyle-Response) + - [Rpc.BlockFile.ListSetStyle.Response.Error](#anytype-Rpc-BlockFile-ListSetStyle-Response-Error) + - [Rpc.BlockFile.SetName](#anytype-Rpc-BlockFile-SetName) + - [Rpc.BlockFile.SetName.Request](#anytype-Rpc-BlockFile-SetName-Request) + - [Rpc.BlockFile.SetName.Response](#anytype-Rpc-BlockFile-SetName-Response) + - [Rpc.BlockFile.SetName.Response.Error](#anytype-Rpc-BlockFile-SetName-Response-Error) + - [Rpc.BlockImage](#anytype-Rpc-BlockImage) + - [Rpc.BlockImage.SetName](#anytype-Rpc-BlockImage-SetName) + - [Rpc.BlockImage.SetName.Request](#anytype-Rpc-BlockImage-SetName-Request) + - [Rpc.BlockImage.SetName.Response](#anytype-Rpc-BlockImage-SetName-Response) + - [Rpc.BlockImage.SetName.Response.Error](#anytype-Rpc-BlockImage-SetName-Response-Error) + - [Rpc.BlockImage.SetWidth](#anytype-Rpc-BlockImage-SetWidth) + - [Rpc.BlockImage.SetWidth.Request](#anytype-Rpc-BlockImage-SetWidth-Request) + - [Rpc.BlockImage.SetWidth.Response](#anytype-Rpc-BlockImage-SetWidth-Response) + - [Rpc.BlockImage.SetWidth.Response.Error](#anytype-Rpc-BlockImage-SetWidth-Response-Error) + - [Rpc.BlockLatex](#anytype-Rpc-BlockLatex) + - [Rpc.BlockLatex.SetText](#anytype-Rpc-BlockLatex-SetText) + - [Rpc.BlockLatex.SetText.Request](#anytype-Rpc-BlockLatex-SetText-Request) + - [Rpc.BlockLatex.SetText.Response](#anytype-Rpc-BlockLatex-SetText-Response) + - [Rpc.BlockLatex.SetText.Response.Error](#anytype-Rpc-BlockLatex-SetText-Response-Error) + - [Rpc.BlockLink](#anytype-Rpc-BlockLink) + - [Rpc.BlockLink.CreateWithObject](#anytype-Rpc-BlockLink-CreateWithObject) + - [Rpc.BlockLink.CreateWithObject.Request](#anytype-Rpc-BlockLink-CreateWithObject-Request) + - [Rpc.BlockLink.CreateWithObject.Response](#anytype-Rpc-BlockLink-CreateWithObject-Response) + - [Rpc.BlockLink.CreateWithObject.Response.Error](#anytype-Rpc-BlockLink-CreateWithObject-Response-Error) + - [Rpc.BlockLink.ListSetAppearance](#anytype-Rpc-BlockLink-ListSetAppearance) + - [Rpc.BlockLink.ListSetAppearance.Request](#anytype-Rpc-BlockLink-ListSetAppearance-Request) + - [Rpc.BlockLink.ListSetAppearance.Response](#anytype-Rpc-BlockLink-ListSetAppearance-Response) + - [Rpc.BlockLink.ListSetAppearance.Response.Error](#anytype-Rpc-BlockLink-ListSetAppearance-Response-Error) + - [Rpc.BlockRelation](#anytype-Rpc-BlockRelation) + - [Rpc.BlockRelation.Add](#anytype-Rpc-BlockRelation-Add) + - [Rpc.BlockRelation.Add.Request](#anytype-Rpc-BlockRelation-Add-Request) + - [Rpc.BlockRelation.Add.Response](#anytype-Rpc-BlockRelation-Add-Response) + - [Rpc.BlockRelation.Add.Response.Error](#anytype-Rpc-BlockRelation-Add-Response-Error) + - [Rpc.BlockRelation.SetKey](#anytype-Rpc-BlockRelation-SetKey) + - [Rpc.BlockRelation.SetKey.Request](#anytype-Rpc-BlockRelation-SetKey-Request) + - [Rpc.BlockRelation.SetKey.Response](#anytype-Rpc-BlockRelation-SetKey-Response) + - [Rpc.BlockRelation.SetKey.Response.Error](#anytype-Rpc-BlockRelation-SetKey-Response-Error) + - [Rpc.BlockText](#anytype-Rpc-BlockText) + - [Rpc.BlockText.ListSetColor](#anytype-Rpc-BlockText-ListSetColor) + - [Rpc.BlockText.ListSetColor.Request](#anytype-Rpc-BlockText-ListSetColor-Request) + - [Rpc.BlockText.ListSetColor.Response](#anytype-Rpc-BlockText-ListSetColor-Response) + - [Rpc.BlockText.ListSetColor.Response.Error](#anytype-Rpc-BlockText-ListSetColor-Response-Error) + - [Rpc.BlockText.ListSetMark](#anytype-Rpc-BlockText-ListSetMark) + - [Rpc.BlockText.ListSetMark.Request](#anytype-Rpc-BlockText-ListSetMark-Request) + - [Rpc.BlockText.ListSetMark.Response](#anytype-Rpc-BlockText-ListSetMark-Response) + - [Rpc.BlockText.ListSetMark.Response.Error](#anytype-Rpc-BlockText-ListSetMark-Response-Error) + - [Rpc.BlockText.ListSetStyle](#anytype-Rpc-BlockText-ListSetStyle) + - [Rpc.BlockText.ListSetStyle.Request](#anytype-Rpc-BlockText-ListSetStyle-Request) + - [Rpc.BlockText.ListSetStyle.Response](#anytype-Rpc-BlockText-ListSetStyle-Response) + - [Rpc.BlockText.ListSetStyle.Response.Error](#anytype-Rpc-BlockText-ListSetStyle-Response-Error) + - [Rpc.BlockText.SetChecked](#anytype-Rpc-BlockText-SetChecked) + - [Rpc.BlockText.SetChecked.Request](#anytype-Rpc-BlockText-SetChecked-Request) + - [Rpc.BlockText.SetChecked.Response](#anytype-Rpc-BlockText-SetChecked-Response) + - [Rpc.BlockText.SetChecked.Response.Error](#anytype-Rpc-BlockText-SetChecked-Response-Error) + - [Rpc.BlockText.SetColor](#anytype-Rpc-BlockText-SetColor) + - [Rpc.BlockText.SetColor.Request](#anytype-Rpc-BlockText-SetColor-Request) + - [Rpc.BlockText.SetColor.Response](#anytype-Rpc-BlockText-SetColor-Response) + - [Rpc.BlockText.SetColor.Response.Error](#anytype-Rpc-BlockText-SetColor-Response-Error) + - [Rpc.BlockText.SetIcon](#anytype-Rpc-BlockText-SetIcon) + - [Rpc.BlockText.SetIcon.Request](#anytype-Rpc-BlockText-SetIcon-Request) + - [Rpc.BlockText.SetIcon.Response](#anytype-Rpc-BlockText-SetIcon-Response) + - [Rpc.BlockText.SetIcon.Response.Error](#anytype-Rpc-BlockText-SetIcon-Response-Error) + - [Rpc.BlockText.SetMarks](#anytype-Rpc-BlockText-SetMarks) + - [Rpc.BlockText.SetMarks.Get](#anytype-Rpc-BlockText-SetMarks-Get) + - [Rpc.BlockText.SetMarks.Get.Request](#anytype-Rpc-BlockText-SetMarks-Get-Request) + - [Rpc.BlockText.SetMarks.Get.Response](#anytype-Rpc-BlockText-SetMarks-Get-Response) + - [Rpc.BlockText.SetMarks.Get.Response.Error](#anytype-Rpc-BlockText-SetMarks-Get-Response-Error) + - [Rpc.BlockText.SetStyle](#anytype-Rpc-BlockText-SetStyle) + - [Rpc.BlockText.SetStyle.Request](#anytype-Rpc-BlockText-SetStyle-Request) + - [Rpc.BlockText.SetStyle.Response](#anytype-Rpc-BlockText-SetStyle-Response) + - [Rpc.BlockText.SetStyle.Response.Error](#anytype-Rpc-BlockText-SetStyle-Response-Error) + - [Rpc.BlockText.SetText](#anytype-Rpc-BlockText-SetText) + - [Rpc.BlockText.SetText.Request](#anytype-Rpc-BlockText-SetText-Request) + - [Rpc.BlockText.SetText.Response](#anytype-Rpc-BlockText-SetText-Response) + - [Rpc.BlockText.SetText.Response.Error](#anytype-Rpc-BlockText-SetText-Response-Error) + - [Rpc.BlockVideo](#anytype-Rpc-BlockVideo) + - [Rpc.BlockVideo.SetName](#anytype-Rpc-BlockVideo-SetName) + - [Rpc.BlockVideo.SetName.Request](#anytype-Rpc-BlockVideo-SetName-Request) + - [Rpc.BlockVideo.SetName.Response](#anytype-Rpc-BlockVideo-SetName-Response) + - [Rpc.BlockVideo.SetName.Response.Error](#anytype-Rpc-BlockVideo-SetName-Response-Error) + - [Rpc.BlockVideo.SetWidth](#anytype-Rpc-BlockVideo-SetWidth) + - [Rpc.BlockVideo.SetWidth.Request](#anytype-Rpc-BlockVideo-SetWidth-Request) + - [Rpc.BlockVideo.SetWidth.Response](#anytype-Rpc-BlockVideo-SetWidth-Response) + - [Rpc.BlockVideo.SetWidth.Response.Error](#anytype-Rpc-BlockVideo-SetWidth-Response-Error) - [Rpc.Debug](#anytype-Rpc-Debug) + - [Rpc.Debug.ExportLocalstore](#anytype-Rpc-Debug-ExportLocalstore) + - [Rpc.Debug.ExportLocalstore.Request](#anytype-Rpc-Debug-ExportLocalstore-Request) + - [Rpc.Debug.ExportLocalstore.Response](#anytype-Rpc-Debug-ExportLocalstore-Response) + - [Rpc.Debug.ExportLocalstore.Response.Error](#anytype-Rpc-Debug-ExportLocalstore-Response-Error) + - [Rpc.Debug.Ping](#anytype-Rpc-Debug-Ping) + - [Rpc.Debug.Ping.Request](#anytype-Rpc-Debug-Ping-Request) + - [Rpc.Debug.Ping.Response](#anytype-Rpc-Debug-Ping-Response) + - [Rpc.Debug.Ping.Response.Error](#anytype-Rpc-Debug-Ping-Response-Error) - [Rpc.Debug.Sync](#anytype-Rpc-Debug-Sync) - [Rpc.Debug.Sync.Request](#anytype-Rpc-Debug-Sync-Request) - [Rpc.Debug.Sync.Response](#anytype-Rpc-Debug-Sync-Response) @@ -407,65 +355,43 @@ - [Rpc.Debug.Tree.Response.Error](#anytype-Rpc-Debug-Tree-Response-Error) - [Rpc.Debug.logInfo](#anytype-Rpc-Debug-logInfo) - [Rpc.Debug.threadInfo](#anytype-Rpc-Debug-threadInfo) - - [Rpc.DeviceState](#anytype-Rpc-DeviceState) - - [Rpc.DeviceState.Request](#anytype-Rpc-DeviceState-Request) - - [Rpc.DeviceState.Response](#anytype-Rpc-DeviceState-Response) - - [Rpc.DeviceState.Response.Error](#anytype-Rpc-DeviceState-Response-Error) - - [Rpc.DownloadFile](#anytype-Rpc-DownloadFile) - - [Rpc.DownloadFile.Request](#anytype-Rpc-DownloadFile-Request) - - [Rpc.DownloadFile.Response](#anytype-Rpc-DownloadFile-Response) - - [Rpc.DownloadFile.Response.Error](#anytype-Rpc-DownloadFile-Response-Error) - - [Rpc.Export](#anytype-Rpc-Export) - - [Rpc.Export.Request](#anytype-Rpc-Export-Request) - - [Rpc.Export.Response](#anytype-Rpc-Export-Response) - - [Rpc.Export.Response.Error](#anytype-Rpc-Export-Response-Error) - - [Rpc.ExportLocalstore](#anytype-Rpc-ExportLocalstore) - - [Rpc.ExportLocalstore.Request](#anytype-Rpc-ExportLocalstore-Request) - - [Rpc.ExportLocalstore.Response](#anytype-Rpc-ExportLocalstore-Response) - - [Rpc.ExportLocalstore.Response.Error](#anytype-Rpc-ExportLocalstore-Response-Error) - - [Rpc.ExportTemplates](#anytype-Rpc-ExportTemplates) - - [Rpc.ExportTemplates.Request](#anytype-Rpc-ExportTemplates-Request) - - [Rpc.ExportTemplates.Response](#anytype-Rpc-ExportTemplates-Response) - - [Rpc.ExportTemplates.Response.Error](#anytype-Rpc-ExportTemplates-Response-Error) - - [Rpc.ExportWorkspace](#anytype-Rpc-ExportWorkspace) - - [Rpc.ExportWorkspace.Request](#anytype-Rpc-ExportWorkspace-Request) - - [Rpc.ExportWorkspace.Response](#anytype-Rpc-ExportWorkspace-Response) - - [Rpc.ExportWorkspace.Response.Error](#anytype-Rpc-ExportWorkspace-Response-Error) - - [Rpc.ExternalDrop](#anytype-Rpc-ExternalDrop) - - [Rpc.ExternalDrop.Content](#anytype-Rpc-ExternalDrop-Content) - - [Rpc.ExternalDrop.Content.Request](#anytype-Rpc-ExternalDrop-Content-Request) - - [Rpc.ExternalDrop.Content.Response](#anytype-Rpc-ExternalDrop-Content-Response) - - [Rpc.ExternalDrop.Content.Response.Error](#anytype-Rpc-ExternalDrop-Content-Response-Error) - - [Rpc.ExternalDrop.Files](#anytype-Rpc-ExternalDrop-Files) - - [Rpc.ExternalDrop.Files.Request](#anytype-Rpc-ExternalDrop-Files-Request) - - [Rpc.ExternalDrop.Files.Response](#anytype-Rpc-ExternalDrop-Files-Response) - - [Rpc.ExternalDrop.Files.Response.Error](#anytype-Rpc-ExternalDrop-Files-Response-Error) - [Rpc.File](#anytype-Rpc-File) + - [Rpc.File.Download](#anytype-Rpc-File-Download) + - [Rpc.File.Download.Request](#anytype-Rpc-File-Download-Request) + - [Rpc.File.Download.Response](#anytype-Rpc-File-Download-Response) + - [Rpc.File.Download.Response.Error](#anytype-Rpc-File-Download-Response-Error) + - [Rpc.File.Drop](#anytype-Rpc-File-Drop) + - [Rpc.File.Drop.Request](#anytype-Rpc-File-Drop-Request) + - [Rpc.File.Drop.Response](#anytype-Rpc-File-Drop-Response) + - [Rpc.File.Drop.Response.Error](#anytype-Rpc-File-Drop-Response-Error) + - [Rpc.File.ListOffload](#anytype-Rpc-File-ListOffload) + - [Rpc.File.ListOffload.Request](#anytype-Rpc-File-ListOffload-Request) + - [Rpc.File.ListOffload.Response](#anytype-Rpc-File-ListOffload-Response) + - [Rpc.File.ListOffload.Response.Error](#anytype-Rpc-File-ListOffload-Response-Error) - [Rpc.File.Offload](#anytype-Rpc-File-Offload) - [Rpc.File.Offload.Request](#anytype-Rpc-File-Offload-Request) - [Rpc.File.Offload.Response](#anytype-Rpc-File-Offload-Response) - [Rpc.File.Offload.Response.Error](#anytype-Rpc-File-Offload-Response-Error) - - [Rpc.FileList](#anytype-Rpc-FileList) - - [Rpc.FileList.Offload](#anytype-Rpc-FileList-Offload) - - [Rpc.FileList.Offload.Request](#anytype-Rpc-FileList-Offload-Request) - - [Rpc.FileList.Offload.Response](#anytype-Rpc-FileList-Offload-Response) - - [Rpc.FileList.Offload.Response.Error](#anytype-Rpc-FileList-Offload-Response-Error) + - [Rpc.File.Upload](#anytype-Rpc-File-Upload) + - [Rpc.File.Upload.Request](#anytype-Rpc-File-Upload-Request) + - [Rpc.File.Upload.Response](#anytype-Rpc-File-Upload-Response) + - [Rpc.File.Upload.Response.Error](#anytype-Rpc-File-Upload-Response-Error) - [Rpc.GenericErrorResponse](#anytype-Rpc-GenericErrorResponse) - [Rpc.GenericErrorResponse.Error](#anytype-Rpc-GenericErrorResponse-Error) - [Rpc.History](#anytype-Rpc-History) + - [Rpc.History.GetVersions](#anytype-Rpc-History-GetVersions) + - [Rpc.History.GetVersions.Request](#anytype-Rpc-History-GetVersions-Request) + - [Rpc.History.GetVersions.Response](#anytype-Rpc-History-GetVersions-Response) + - [Rpc.History.GetVersions.Response.Error](#anytype-Rpc-History-GetVersions-Response-Error) - [Rpc.History.SetVersion](#anytype-Rpc-History-SetVersion) - [Rpc.History.SetVersion.Request](#anytype-Rpc-History-SetVersion-Request) - [Rpc.History.SetVersion.Response](#anytype-Rpc-History-SetVersion-Response) - [Rpc.History.SetVersion.Response.Error](#anytype-Rpc-History-SetVersion-Response-Error) - - [Rpc.History.Show](#anytype-Rpc-History-Show) - - [Rpc.History.Show.Request](#anytype-Rpc-History-Show-Request) - - [Rpc.History.Show.Response](#anytype-Rpc-History-Show-Response) - - [Rpc.History.Show.Response.Error](#anytype-Rpc-History-Show-Response-Error) - - [Rpc.History.Versions](#anytype-Rpc-History-Versions) - - [Rpc.History.Versions.Request](#anytype-Rpc-History-Versions-Request) - - [Rpc.History.Versions.Response](#anytype-Rpc-History-Versions-Response) - - [Rpc.History.Versions.Response.Error](#anytype-Rpc-History-Versions-Response-Error) - - [Rpc.History.Versions.Version](#anytype-Rpc-History-Versions-Version) + - [Rpc.History.ShowVersion](#anytype-Rpc-History-ShowVersion) + - [Rpc.History.ShowVersion.Request](#anytype-Rpc-History-ShowVersion-Request) + - [Rpc.History.ShowVersion.Response](#anytype-Rpc-History-ShowVersion-Response) + - [Rpc.History.ShowVersion.Response.Error](#anytype-Rpc-History-ShowVersion-Response-Error) + - [Rpc.History.Version](#anytype-Rpc-History-Version) - [Rpc.LinkPreview](#anytype-Rpc-LinkPreview) - [Rpc.LinkPreview.Request](#anytype-Rpc-LinkPreview-Request) - [Rpc.LinkPreview.Response](#anytype-Rpc-LinkPreview-Response) @@ -475,14 +401,6 @@ - [Rpc.Log.Send.Request](#anytype-Rpc-Log-Send-Request) - [Rpc.Log.Send.Response](#anytype-Rpc-Log-Send-Response) - [Rpc.Log.Send.Response.Error](#anytype-Rpc-Log-Send-Response-Error) - - [Rpc.MakeTemplate](#anytype-Rpc-MakeTemplate) - - [Rpc.MakeTemplate.Request](#anytype-Rpc-MakeTemplate-Request) - - [Rpc.MakeTemplate.Response](#anytype-Rpc-MakeTemplate-Response) - - [Rpc.MakeTemplate.Response.Error](#anytype-Rpc-MakeTemplate-Response-Error) - - [Rpc.MakeTemplateByObjectType](#anytype-Rpc-MakeTemplateByObjectType) - - [Rpc.MakeTemplateByObjectType.Request](#anytype-Rpc-MakeTemplateByObjectType-Request) - - [Rpc.MakeTemplateByObjectType.Response](#anytype-Rpc-MakeTemplateByObjectType-Response) - - [Rpc.MakeTemplateByObjectType.Response.Error](#anytype-Rpc-MakeTemplateByObjectType-Response-Error) - [Rpc.Metrics](#anytype-Rpc-Metrics) - [Rpc.Metrics.SetParameters](#anytype-Rpc-Metrics-SetParameters) - [Rpc.Metrics.SetParameters.Request](#anytype-Rpc-Metrics-SetParameters-Request) @@ -502,52 +420,67 @@ - [Rpc.Object.AddWithObjectId.Request](#anytype-Rpc-Object-AddWithObjectId-Request) - [Rpc.Object.AddWithObjectId.Response](#anytype-Rpc-Object-AddWithObjectId-Response) - [Rpc.Object.AddWithObjectId.Response.Error](#anytype-Rpc-Object-AddWithObjectId-Response-Error) - - [Rpc.Object.FeaturedRelation](#anytype-Rpc-Object-FeaturedRelation) - - [Rpc.Object.FeaturedRelation.Add](#anytype-Rpc-Object-FeaturedRelation-Add) - - [Rpc.Object.FeaturedRelation.Add.Request](#anytype-Rpc-Object-FeaturedRelation-Add-Request) - - [Rpc.Object.FeaturedRelation.Add.Response](#anytype-Rpc-Object-FeaturedRelation-Add-Response) - - [Rpc.Object.FeaturedRelation.Add.Response.Error](#anytype-Rpc-Object-FeaturedRelation-Add-Response-Error) - - [Rpc.Object.FeaturedRelation.Remove](#anytype-Rpc-Object-FeaturedRelation-Remove) - - [Rpc.Object.FeaturedRelation.Remove.Request](#anytype-Rpc-Object-FeaturedRelation-Remove-Request) - - [Rpc.Object.FeaturedRelation.Remove.Response](#anytype-Rpc-Object-FeaturedRelation-Remove-Response) - - [Rpc.Object.FeaturedRelation.Remove.Response.Error](#anytype-Rpc-Object-FeaturedRelation-Remove-Response-Error) + - [Rpc.Object.ApplyTemplate](#anytype-Rpc-Object-ApplyTemplate) + - [Rpc.Object.ApplyTemplate.Request](#anytype-Rpc-Object-ApplyTemplate-Request) + - [Rpc.Object.ApplyTemplate.Response](#anytype-Rpc-Object-ApplyTemplate-Response) + - [Rpc.Object.ApplyTemplate.Response.Error](#anytype-Rpc-Object-ApplyTemplate-Response-Error) + - [Rpc.Object.Close](#anytype-Rpc-Object-Close) + - [Rpc.Object.Close.Request](#anytype-Rpc-Object-Close-Request) + - [Rpc.Object.Close.Response](#anytype-Rpc-Object-Close-Response) + - [Rpc.Object.Close.Response.Error](#anytype-Rpc-Object-Close-Response-Error) + - [Rpc.Object.Create](#anytype-Rpc-Object-Create) + - [Rpc.Object.Create.Request](#anytype-Rpc-Object-Create-Request) + - [Rpc.Object.Create.Response](#anytype-Rpc-Object-Create-Response) + - [Rpc.Object.Create.Response.Error](#anytype-Rpc-Object-Create-Response-Error) + - [Rpc.Object.CreateSet](#anytype-Rpc-Object-CreateSet) + - [Rpc.Object.CreateSet.Request](#anytype-Rpc-Object-CreateSet-Request) + - [Rpc.Object.CreateSet.Response](#anytype-Rpc-Object-CreateSet-Response) + - [Rpc.Object.CreateSet.Response.Error](#anytype-Rpc-Object-CreateSet-Response-Error) + - [Rpc.Object.Duplicate](#anytype-Rpc-Object-Duplicate) + - [Rpc.Object.Duplicate.Request](#anytype-Rpc-Object-Duplicate-Request) + - [Rpc.Object.Duplicate.Response](#anytype-Rpc-Object-Duplicate-Response) + - [Rpc.Object.Duplicate.Response.Error](#anytype-Rpc-Object-Duplicate-Response-Error) - [Rpc.Object.Graph](#anytype-Rpc-Object-Graph) - [Rpc.Object.Graph.Edge](#anytype-Rpc-Object-Graph-Edge) - [Rpc.Object.Graph.Request](#anytype-Rpc-Object-Graph-Request) - [Rpc.Object.Graph.Response](#anytype-Rpc-Object-Graph-Response) - [Rpc.Object.Graph.Response.Error](#anytype-Rpc-Object-Graph-Response-Error) - - [Rpc.Object.IdsSubscribe](#anytype-Rpc-Object-IdsSubscribe) - - [Rpc.Object.IdsSubscribe.Request](#anytype-Rpc-Object-IdsSubscribe-Request) - - [Rpc.Object.IdsSubscribe.Response](#anytype-Rpc-Object-IdsSubscribe-Response) - - [Rpc.Object.IdsSubscribe.Response.Error](#anytype-Rpc-Object-IdsSubscribe-Response-Error) - - [Rpc.Object.RelationAdd](#anytype-Rpc-Object-RelationAdd) - - [Rpc.Object.RelationAdd.Request](#anytype-Rpc-Object-RelationAdd-Request) - - [Rpc.Object.RelationAdd.Response](#anytype-Rpc-Object-RelationAdd-Response) - - [Rpc.Object.RelationAdd.Response.Error](#anytype-Rpc-Object-RelationAdd-Response-Error) - - [Rpc.Object.RelationDelete](#anytype-Rpc-Object-RelationDelete) - - [Rpc.Object.RelationDelete.Request](#anytype-Rpc-Object-RelationDelete-Request) - - [Rpc.Object.RelationDelete.Response](#anytype-Rpc-Object-RelationDelete-Response) - - [Rpc.Object.RelationDelete.Response.Error](#anytype-Rpc-Object-RelationDelete-Response-Error) - - [Rpc.Object.RelationListAvailable](#anytype-Rpc-Object-RelationListAvailable) - - [Rpc.Object.RelationListAvailable.Request](#anytype-Rpc-Object-RelationListAvailable-Request) - - [Rpc.Object.RelationListAvailable.Response](#anytype-Rpc-Object-RelationListAvailable-Response) - - [Rpc.Object.RelationListAvailable.Response.Error](#anytype-Rpc-Object-RelationListAvailable-Response-Error) - - [Rpc.Object.RelationOptionAdd](#anytype-Rpc-Object-RelationOptionAdd) - - [Rpc.Object.RelationOptionAdd.Request](#anytype-Rpc-Object-RelationOptionAdd-Request) - - [Rpc.Object.RelationOptionAdd.Response](#anytype-Rpc-Object-RelationOptionAdd-Response) - - [Rpc.Object.RelationOptionAdd.Response.Error](#anytype-Rpc-Object-RelationOptionAdd-Response-Error) - - [Rpc.Object.RelationOptionDelete](#anytype-Rpc-Object-RelationOptionDelete) - - [Rpc.Object.RelationOptionDelete.Request](#anytype-Rpc-Object-RelationOptionDelete-Request) - - [Rpc.Object.RelationOptionDelete.Response](#anytype-Rpc-Object-RelationOptionDelete-Response) - - [Rpc.Object.RelationOptionDelete.Response.Error](#anytype-Rpc-Object-RelationOptionDelete-Response-Error) - - [Rpc.Object.RelationOptionUpdate](#anytype-Rpc-Object-RelationOptionUpdate) - - [Rpc.Object.RelationOptionUpdate.Request](#anytype-Rpc-Object-RelationOptionUpdate-Request) - - [Rpc.Object.RelationOptionUpdate.Response](#anytype-Rpc-Object-RelationOptionUpdate-Response) - - [Rpc.Object.RelationOptionUpdate.Response.Error](#anytype-Rpc-Object-RelationOptionUpdate-Response-Error) - - [Rpc.Object.RelationUpdate](#anytype-Rpc-Object-RelationUpdate) - - [Rpc.Object.RelationUpdate.Request](#anytype-Rpc-Object-RelationUpdate-Request) - - [Rpc.Object.RelationUpdate.Response](#anytype-Rpc-Object-RelationUpdate-Response) - - [Rpc.Object.RelationUpdate.Response.Error](#anytype-Rpc-Object-RelationUpdate-Response-Error) + - [Rpc.Object.ImportMarkdown](#anytype-Rpc-Object-ImportMarkdown) + - [Rpc.Object.ImportMarkdown.Request](#anytype-Rpc-Object-ImportMarkdown-Request) + - [Rpc.Object.ImportMarkdown.Response](#anytype-Rpc-Object-ImportMarkdown-Response) + - [Rpc.Object.ImportMarkdown.Response.Error](#anytype-Rpc-Object-ImportMarkdown-Response-Error) + - [Rpc.Object.ListDelete](#anytype-Rpc-Object-ListDelete) + - [Rpc.Object.ListDelete.Request](#anytype-Rpc-Object-ListDelete-Request) + - [Rpc.Object.ListDelete.Response](#anytype-Rpc-Object-ListDelete-Response) + - [Rpc.Object.ListDelete.Response.Error](#anytype-Rpc-Object-ListDelete-Response-Error) + - [Rpc.Object.ListDuplicate](#anytype-Rpc-Object-ListDuplicate) + - [Rpc.Object.ListDuplicate.Request](#anytype-Rpc-Object-ListDuplicate-Request) + - [Rpc.Object.ListDuplicate.Response](#anytype-Rpc-Object-ListDuplicate-Response) + - [Rpc.Object.ListDuplicate.Response.Error](#anytype-Rpc-Object-ListDuplicate-Response-Error) + - [Rpc.Object.ListExport](#anytype-Rpc-Object-ListExport) + - [Rpc.Object.ListExport.Request](#anytype-Rpc-Object-ListExport-Request) + - [Rpc.Object.ListExport.Response](#anytype-Rpc-Object-ListExport-Response) + - [Rpc.Object.ListExport.Response.Error](#anytype-Rpc-Object-ListExport-Response-Error) + - [Rpc.Object.ListSetIsArchived](#anytype-Rpc-Object-ListSetIsArchived) + - [Rpc.Object.ListSetIsArchived.Request](#anytype-Rpc-Object-ListSetIsArchived-Request) + - [Rpc.Object.ListSetIsArchived.Response](#anytype-Rpc-Object-ListSetIsArchived-Response) + - [Rpc.Object.ListSetIsArchived.Response.Error](#anytype-Rpc-Object-ListSetIsArchived-Response-Error) + - [Rpc.Object.ListSetIsFavorite](#anytype-Rpc-Object-ListSetIsFavorite) + - [Rpc.Object.ListSetIsFavorite.Request](#anytype-Rpc-Object-ListSetIsFavorite-Request) + - [Rpc.Object.ListSetIsFavorite.Response](#anytype-Rpc-Object-ListSetIsFavorite-Response) + - [Rpc.Object.ListSetIsFavorite.Response.Error](#anytype-Rpc-Object-ListSetIsFavorite-Response-Error) + - [Rpc.Object.Open](#anytype-Rpc-Object-Open) + - [Rpc.Object.Open.Request](#anytype-Rpc-Object-Open-Request) + - [Rpc.Object.Open.Response](#anytype-Rpc-Object-Open-Response) + - [Rpc.Object.Open.Response.Error](#anytype-Rpc-Object-Open-Response-Error) + - [Rpc.Object.OpenBreadcrumbs](#anytype-Rpc-Object-OpenBreadcrumbs) + - [Rpc.Object.OpenBreadcrumbs.Request](#anytype-Rpc-Object-OpenBreadcrumbs-Request) + - [Rpc.Object.OpenBreadcrumbs.Response](#anytype-Rpc-Object-OpenBreadcrumbs-Response) + - [Rpc.Object.OpenBreadcrumbs.Response.Error](#anytype-Rpc-Object-OpenBreadcrumbs-Response-Error) + - [Rpc.Object.Redo](#anytype-Rpc-Object-Redo) + - [Rpc.Object.Redo.Request](#anytype-Rpc-Object-Redo-Request) + - [Rpc.Object.Redo.Response](#anytype-Rpc-Object-Redo-Response) + - [Rpc.Object.Redo.Response.Error](#anytype-Rpc-Object-Redo-Response-Error) - [Rpc.Object.Search](#anytype-Rpc-Object-Search) - [Rpc.Object.Search.Request](#anytype-Rpc-Object-Search-Request) - [Rpc.Object.Search.Response](#anytype-Rpc-Object-Search-Response) @@ -560,6 +493,15 @@ - [Rpc.Object.SearchUnsubscribe.Request](#anytype-Rpc-Object-SearchUnsubscribe-Request) - [Rpc.Object.SearchUnsubscribe.Response](#anytype-Rpc-Object-SearchUnsubscribe-Response) - [Rpc.Object.SearchUnsubscribe.Response.Error](#anytype-Rpc-Object-SearchUnsubscribe-Response-Error) + - [Rpc.Object.SetBreadcrumbs](#anytype-Rpc-Object-SetBreadcrumbs) + - [Rpc.Object.SetBreadcrumbs.Request](#anytype-Rpc-Object-SetBreadcrumbs-Request) + - [Rpc.Object.SetBreadcrumbs.Response](#anytype-Rpc-Object-SetBreadcrumbs-Response) + - [Rpc.Object.SetBreadcrumbs.Response.Error](#anytype-Rpc-Object-SetBreadcrumbs-Response-Error) + - [Rpc.Object.SetDetails](#anytype-Rpc-Object-SetDetails) + - [Rpc.Object.SetDetails.Detail](#anytype-Rpc-Object-SetDetails-Detail) + - [Rpc.Object.SetDetails.Request](#anytype-Rpc-Object-SetDetails-Request) + - [Rpc.Object.SetDetails.Response](#anytype-Rpc-Object-SetDetails-Response) + - [Rpc.Object.SetDetails.Response.Error](#anytype-Rpc-Object-SetDetails-Response-Error) - [Rpc.Object.SetIsArchived](#anytype-Rpc-Object-SetIsArchived) - [Rpc.Object.SetIsArchived.Request](#anytype-Rpc-Object-SetIsArchived-Request) - [Rpc.Object.SetIsArchived.Response](#anytype-Rpc-Object-SetIsArchived-Response) @@ -572,36 +514,69 @@ - [Rpc.Object.SetLayout.Request](#anytype-Rpc-Object-SetLayout-Request) - [Rpc.Object.SetLayout.Response](#anytype-Rpc-Object-SetLayout-Response) - [Rpc.Object.SetLayout.Response.Error](#anytype-Rpc-Object-SetLayout-Response-Error) + - [Rpc.Object.SetObjectType](#anytype-Rpc-Object-SetObjectType) + - [Rpc.Object.SetObjectType.Request](#anytype-Rpc-Object-SetObjectType-Request) + - [Rpc.Object.SetObjectType.Response](#anytype-Rpc-Object-SetObjectType-Response) + - [Rpc.Object.SetObjectType.Response.Error](#anytype-Rpc-Object-SetObjectType-Response-Error) - [Rpc.Object.ShareByLink](#anytype-Rpc-Object-ShareByLink) - [Rpc.Object.ShareByLink.Request](#anytype-Rpc-Object-ShareByLink-Request) - [Rpc.Object.ShareByLink.Response](#anytype-Rpc-Object-ShareByLink-Response) - [Rpc.Object.ShareByLink.Response.Error](#anytype-Rpc-Object-ShareByLink-Response-Error) + - [Rpc.Object.Show](#anytype-Rpc-Object-Show) + - [Rpc.Object.Show.Request](#anytype-Rpc-Object-Show-Request) + - [Rpc.Object.Show.Response](#anytype-Rpc-Object-Show-Response) + - [Rpc.Object.Show.Response.Error](#anytype-Rpc-Object-Show-Response-Error) + - [Rpc.Object.SubscribeIds](#anytype-Rpc-Object-SubscribeIds) + - [Rpc.Object.SubscribeIds.Request](#anytype-Rpc-Object-SubscribeIds-Request) + - [Rpc.Object.SubscribeIds.Response](#anytype-Rpc-Object-SubscribeIds-Response) + - [Rpc.Object.SubscribeIds.Response.Error](#anytype-Rpc-Object-SubscribeIds-Response-Error) - [Rpc.Object.ToSet](#anytype-Rpc-Object-ToSet) - [Rpc.Object.ToSet.Request](#anytype-Rpc-Object-ToSet-Request) - [Rpc.Object.ToSet.Response](#anytype-Rpc-Object-ToSet-Response) - [Rpc.Object.ToSet.Response.Error](#anytype-Rpc-Object-ToSet-Response-Error) - - [Rpc.ObjectDuplicate](#anytype-Rpc-ObjectDuplicate) - - [Rpc.ObjectDuplicate.Request](#anytype-Rpc-ObjectDuplicate-Request) - - [Rpc.ObjectDuplicate.Response](#anytype-Rpc-ObjectDuplicate-Response) - - [Rpc.ObjectDuplicate.Response.Error](#anytype-Rpc-ObjectDuplicate-Response-Error) - - [Rpc.ObjectList](#anytype-Rpc-ObjectList) - - [Rpc.ObjectList.Delete](#anytype-Rpc-ObjectList-Delete) - - [Rpc.ObjectList.Delete.Request](#anytype-Rpc-ObjectList-Delete-Request) - - [Rpc.ObjectList.Delete.Response](#anytype-Rpc-ObjectList-Delete-Response) - - [Rpc.ObjectList.Delete.Response.Error](#anytype-Rpc-ObjectList-Delete-Response-Error) - - [Rpc.ObjectList.Duplicate](#anytype-Rpc-ObjectList-Duplicate) - - [Rpc.ObjectList.Duplicate.Request](#anytype-Rpc-ObjectList-Duplicate-Request) - - [Rpc.ObjectList.Duplicate.Response](#anytype-Rpc-ObjectList-Duplicate-Response) - - [Rpc.ObjectList.Duplicate.Response.Error](#anytype-Rpc-ObjectList-Duplicate-Response-Error) - - [Rpc.ObjectList.Set](#anytype-Rpc-ObjectList-Set) - - [Rpc.ObjectList.Set.IsArchived](#anytype-Rpc-ObjectList-Set-IsArchived) - - [Rpc.ObjectList.Set.IsArchived.Request](#anytype-Rpc-ObjectList-Set-IsArchived-Request) - - [Rpc.ObjectList.Set.IsArchived.Response](#anytype-Rpc-ObjectList-Set-IsArchived-Response) - - [Rpc.ObjectList.Set.IsArchived.Response.Error](#anytype-Rpc-ObjectList-Set-IsArchived-Response-Error) - - [Rpc.ObjectList.Set.IsFavorite](#anytype-Rpc-ObjectList-Set-IsFavorite) - - [Rpc.ObjectList.Set.IsFavorite.Request](#anytype-Rpc-ObjectList-Set-IsFavorite-Request) - - [Rpc.ObjectList.Set.IsFavorite.Response](#anytype-Rpc-ObjectList-Set-IsFavorite-Response) - - [Rpc.ObjectList.Set.IsFavorite.Response.Error](#anytype-Rpc-ObjectList-Set-IsFavorite-Response-Error) + - [Rpc.Object.Undo](#anytype-Rpc-Object-Undo) + - [Rpc.Object.Undo.Request](#anytype-Rpc-Object-Undo-Request) + - [Rpc.Object.Undo.Response](#anytype-Rpc-Object-Undo-Response) + - [Rpc.Object.Undo.Response.Error](#anytype-Rpc-Object-Undo-Response-Error) + - [Rpc.Object.UndoRedoCounter](#anytype-Rpc-Object-UndoRedoCounter) + - [Rpc.ObjectRelation](#anytype-Rpc-ObjectRelation) + - [Rpc.ObjectRelation.Add](#anytype-Rpc-ObjectRelation-Add) + - [Rpc.ObjectRelation.Add.Request](#anytype-Rpc-ObjectRelation-Add-Request) + - [Rpc.ObjectRelation.Add.Response](#anytype-Rpc-ObjectRelation-Add-Response) + - [Rpc.ObjectRelation.Add.Response.Error](#anytype-Rpc-ObjectRelation-Add-Response-Error) + - [Rpc.ObjectRelation.AddFeatured](#anytype-Rpc-ObjectRelation-AddFeatured) + - [Rpc.ObjectRelation.AddFeatured.Request](#anytype-Rpc-ObjectRelation-AddFeatured-Request) + - [Rpc.ObjectRelation.AddFeatured.Response](#anytype-Rpc-ObjectRelation-AddFeatured-Response) + - [Rpc.ObjectRelation.AddFeatured.Response.Error](#anytype-Rpc-ObjectRelation-AddFeatured-Response-Error) + - [Rpc.ObjectRelation.Delete](#anytype-Rpc-ObjectRelation-Delete) + - [Rpc.ObjectRelation.Delete.Request](#anytype-Rpc-ObjectRelation-Delete-Request) + - [Rpc.ObjectRelation.Delete.Response](#anytype-Rpc-ObjectRelation-Delete-Response) + - [Rpc.ObjectRelation.Delete.Response.Error](#anytype-Rpc-ObjectRelation-Delete-Response-Error) + - [Rpc.ObjectRelation.ListAvailable](#anytype-Rpc-ObjectRelation-ListAvailable) + - [Rpc.ObjectRelation.ListAvailable.Request](#anytype-Rpc-ObjectRelation-ListAvailable-Request) + - [Rpc.ObjectRelation.ListAvailable.Response](#anytype-Rpc-ObjectRelation-ListAvailable-Response) + - [Rpc.ObjectRelation.ListAvailable.Response.Error](#anytype-Rpc-ObjectRelation-ListAvailable-Response-Error) + - [Rpc.ObjectRelation.RemoveFeatured](#anytype-Rpc-ObjectRelation-RemoveFeatured) + - [Rpc.ObjectRelation.RemoveFeatured.Request](#anytype-Rpc-ObjectRelation-RemoveFeatured-Request) + - [Rpc.ObjectRelation.RemoveFeatured.Response](#anytype-Rpc-ObjectRelation-RemoveFeatured-Response) + - [Rpc.ObjectRelation.RemoveFeatured.Response.Error](#anytype-Rpc-ObjectRelation-RemoveFeatured-Response-Error) + - [Rpc.ObjectRelation.Update](#anytype-Rpc-ObjectRelation-Update) + - [Rpc.ObjectRelation.Update.Request](#anytype-Rpc-ObjectRelation-Update-Request) + - [Rpc.ObjectRelation.Update.Response](#anytype-Rpc-ObjectRelation-Update-Response) + - [Rpc.ObjectRelation.Update.Response.Error](#anytype-Rpc-ObjectRelation-Update-Response-Error) + - [Rpc.ObjectRelationOption](#anytype-Rpc-ObjectRelationOption) + - [Rpc.ObjectRelationOption.Add](#anytype-Rpc-ObjectRelationOption-Add) + - [Rpc.ObjectRelationOption.Add.Request](#anytype-Rpc-ObjectRelationOption-Add-Request) + - [Rpc.ObjectRelationOption.Add.Response](#anytype-Rpc-ObjectRelationOption-Add-Response) + - [Rpc.ObjectRelationOption.Add.Response.Error](#anytype-Rpc-ObjectRelationOption-Add-Response-Error) + - [Rpc.ObjectRelationOption.Delete](#anytype-Rpc-ObjectRelationOption-Delete) + - [Rpc.ObjectRelationOption.Delete.Request](#anytype-Rpc-ObjectRelationOption-Delete-Request) + - [Rpc.ObjectRelationOption.Delete.Response](#anytype-Rpc-ObjectRelationOption-Delete-Response) + - [Rpc.ObjectRelationOption.Delete.Response.Error](#anytype-Rpc-ObjectRelationOption-Delete-Response-Error) + - [Rpc.ObjectRelationOption.Update](#anytype-Rpc-ObjectRelationOption-Update) + - [Rpc.ObjectRelationOption.Update.Request](#anytype-Rpc-ObjectRelationOption-Update-Request) + - [Rpc.ObjectRelationOption.Update.Response](#anytype-Rpc-ObjectRelationOption-Update-Response) + - [Rpc.ObjectRelationOption.Update.Response.Error](#anytype-Rpc-ObjectRelationOption-Update-Response-Error) - [Rpc.ObjectType](#anytype-Rpc-ObjectType) - [Rpc.ObjectType.Create](#anytype-Rpc-ObjectType-Create) - [Rpc.ObjectType.Create.Request](#anytype-Rpc-ObjectType-Create-Request) @@ -628,47 +603,38 @@ - [Rpc.ObjectType.Relation.Update.Request](#anytype-Rpc-ObjectType-Relation-Update-Request) - [Rpc.ObjectType.Relation.Update.Response](#anytype-Rpc-ObjectType-Relation-Update-Response) - [Rpc.ObjectType.Relation.Update.Response.Error](#anytype-Rpc-ObjectType-Relation-Update-Response-Error) - - [Rpc.Page](#anytype-Rpc-Page) - - [Rpc.Page.Create](#anytype-Rpc-Page-Create) - - [Rpc.Page.Create.Request](#anytype-Rpc-Page-Create-Request) - - [Rpc.Page.Create.Response](#anytype-Rpc-Page-Create-Response) - - [Rpc.Page.Create.Response.Error](#anytype-Rpc-Page-Create-Response-Error) - - [Rpc.Ping](#anytype-Rpc-Ping) - - [Rpc.Ping.Request](#anytype-Rpc-Ping-Request) - - [Rpc.Ping.Response](#anytype-Rpc-Ping-Response) - - [Rpc.Ping.Response.Error](#anytype-Rpc-Ping-Response-Error) - [Rpc.Process](#anytype-Rpc-Process) - [Rpc.Process.Cancel](#anytype-Rpc-Process-Cancel) - [Rpc.Process.Cancel.Request](#anytype-Rpc-Process-Cancel-Request) - [Rpc.Process.Cancel.Response](#anytype-Rpc-Process-Cancel-Response) - [Rpc.Process.Cancel.Response.Error](#anytype-Rpc-Process-Cancel-Response-Error) - - [Rpc.Set](#anytype-Rpc-Set) - - [Rpc.Set.Create](#anytype-Rpc-Set-Create) - - [Rpc.Set.Create.Request](#anytype-Rpc-Set-Create-Request) - - [Rpc.Set.Create.Response](#anytype-Rpc-Set-Create-Response) - - [Rpc.Set.Create.Response.Error](#anytype-Rpc-Set-Create-Response-Error) - - [Rpc.Shutdown](#anytype-Rpc-Shutdown) - - [Rpc.Shutdown.Request](#anytype-Rpc-Shutdown-Request) - - [Rpc.Shutdown.Response](#anytype-Rpc-Shutdown-Response) - - [Rpc.Shutdown.Response.Error](#anytype-Rpc-Shutdown-Response-Error) - - [Rpc.UnsplashDownload](#anytype-Rpc-UnsplashDownload) - - [Rpc.UnsplashDownload.Request](#anytype-Rpc-UnsplashDownload-Request) - - [Rpc.UnsplashDownload.Response](#anytype-Rpc-UnsplashDownload-Response) - - [Rpc.UnsplashDownload.Response.Error](#anytype-Rpc-UnsplashDownload-Response-Error) - - [Rpc.UnsplashSearch](#anytype-Rpc-UnsplashSearch) - - [Rpc.UnsplashSearch.Request](#anytype-Rpc-UnsplashSearch-Request) - - [Rpc.UnsplashSearch.Response](#anytype-Rpc-UnsplashSearch-Response) - - [Rpc.UnsplashSearch.Response.Error](#anytype-Rpc-UnsplashSearch-Response-Error) - - [Rpc.UnsplashSearch.Response.Picture](#anytype-Rpc-UnsplashSearch-Response-Picture) - - [Rpc.UploadFile](#anytype-Rpc-UploadFile) - - [Rpc.UploadFile.Request](#anytype-Rpc-UploadFile-Request) - - [Rpc.UploadFile.Response](#anytype-Rpc-UploadFile-Response) - - [Rpc.UploadFile.Response.Error](#anytype-Rpc-UploadFile-Response-Error) - - [Rpc.Version](#anytype-Rpc-Version) - - [Rpc.Version.Get](#anytype-Rpc-Version-Get) - - [Rpc.Version.Get.Request](#anytype-Rpc-Version-Get-Request) - - [Rpc.Version.Get.Response](#anytype-Rpc-Version-Get-Response) - - [Rpc.Version.Get.Response.Error](#anytype-Rpc-Version-Get-Response-Error) + - [Rpc.Template](#anytype-Rpc-Template) + - [Rpc.Template.Clone](#anytype-Rpc-Template-Clone) + - [Rpc.Template.Clone.Request](#anytype-Rpc-Template-Clone-Request) + - [Rpc.Template.Clone.Response](#anytype-Rpc-Template-Clone-Response) + - [Rpc.Template.Clone.Response.Error](#anytype-Rpc-Template-Clone-Response-Error) + - [Rpc.Template.CreateFromObject](#anytype-Rpc-Template-CreateFromObject) + - [Rpc.Template.CreateFromObject.Request](#anytype-Rpc-Template-CreateFromObject-Request) + - [Rpc.Template.CreateFromObject.Response](#anytype-Rpc-Template-CreateFromObject-Response) + - [Rpc.Template.CreateFromObject.Response.Error](#anytype-Rpc-Template-CreateFromObject-Response-Error) + - [Rpc.Template.CreateFromObjectType](#anytype-Rpc-Template-CreateFromObjectType) + - [Rpc.Template.CreateFromObjectType.Request](#anytype-Rpc-Template-CreateFromObjectType-Request) + - [Rpc.Template.CreateFromObjectType.Response](#anytype-Rpc-Template-CreateFromObjectType-Response) + - [Rpc.Template.CreateFromObjectType.Response.Error](#anytype-Rpc-Template-CreateFromObjectType-Response-Error) + - [Rpc.Template.ExportAll](#anytype-Rpc-Template-ExportAll) + - [Rpc.Template.ExportAll.Request](#anytype-Rpc-Template-ExportAll-Request) + - [Rpc.Template.ExportAll.Response](#anytype-Rpc-Template-ExportAll-Response) + - [Rpc.Template.ExportAll.Response.Error](#anytype-Rpc-Template-ExportAll-Response-Error) + - [Rpc.Unsplash](#anytype-Rpc-Unsplash) + - [Rpc.Unsplash.Download](#anytype-Rpc-Unsplash-Download) + - [Rpc.Unsplash.Download.Request](#anytype-Rpc-Unsplash-Download-Request) + - [Rpc.Unsplash.Download.Response](#anytype-Rpc-Unsplash-Download-Response) + - [Rpc.Unsplash.Download.Response.Error](#anytype-Rpc-Unsplash-Download-Response-Error) + - [Rpc.Unsplash.Search](#anytype-Rpc-Unsplash-Search) + - [Rpc.Unsplash.Search.Request](#anytype-Rpc-Unsplash-Search-Request) + - [Rpc.Unsplash.Search.Response](#anytype-Rpc-Unsplash-Search-Response) + - [Rpc.Unsplash.Search.Response.Error](#anytype-Rpc-Unsplash-Search-Response-Error) + - [Rpc.Unsplash.Search.Response.Picture](#anytype-Rpc-Unsplash-Search-Response-Picture) - [Rpc.Wallet](#anytype-Rpc-Wallet) - [Rpc.Wallet.Convert](#anytype-Rpc-Wallet-Convert) - [Rpc.Wallet.Convert.Request](#anytype-Rpc-Wallet-Convert-Request) @@ -687,6 +653,10 @@ - [Rpc.Workspace.Create.Request](#anytype-Rpc-Workspace-Create-Request) - [Rpc.Workspace.Create.Response](#anytype-Rpc-Workspace-Create-Response) - [Rpc.Workspace.Create.Response.Error](#anytype-Rpc-Workspace-Create-Response-Error) + - [Rpc.Workspace.Export](#anytype-Rpc-Workspace-Export) + - [Rpc.Workspace.Export.Request](#anytype-Rpc-Workspace-Export-Request) + - [Rpc.Workspace.Export.Response](#anytype-Rpc-Workspace-Export-Response) + - [Rpc.Workspace.Export.Response.Error](#anytype-Rpc-Workspace-Export-Response-Error) - [Rpc.Workspace.GetAll](#anytype-Rpc-Workspace-GetAll) - [Rpc.Workspace.GetAll.Request](#anytype-Rpc-Workspace-GetAll-Request) - [Rpc.Workspace.GetAll.Response](#anytype-Rpc-Workspace-GetAll-Response) @@ -709,158 +679,151 @@ - [Rpc.Account.Recover.Response.Error.Code](#anytype-Rpc-Account-Recover-Response-Error-Code) - [Rpc.Account.Select.Response.Error.Code](#anytype-Rpc-Account-Select-Response-Error-Code) - [Rpc.Account.Stop.Response.Error.Code](#anytype-Rpc-Account-Stop-Response-Error-Code) - - [Rpc.ApplyTemplate.Response.Error.Code](#anytype-Rpc-ApplyTemplate-Response-Error-Code) - - [Rpc.Block.Bookmark.CreateAndFetch.Response.Error.Code](#anytype-Rpc-Block-Bookmark-CreateAndFetch-Response-Error-Code) - - [Rpc.Block.Bookmark.Fetch.Response.Error.Code](#anytype-Rpc-Block-Bookmark-Fetch-Response-Error-Code) - - [Rpc.Block.Close.Response.Error.Code](#anytype-Rpc-Block-Close-Response-Error-Code) + - [Rpc.App.GetVersion.Response.Error.Code](#anytype-Rpc-App-GetVersion-Response-Error-Code) + - [Rpc.App.SetDeviceState.Request.DeviceState](#anytype-Rpc-App-SetDeviceState-Request-DeviceState) + - [Rpc.App.SetDeviceState.Response.Error.Code](#anytype-Rpc-App-SetDeviceState-Response-Error-Code) + - [Rpc.App.Shutdown.Response.Error.Code](#anytype-Rpc-App-Shutdown-Response-Error-Code) - [Rpc.Block.Copy.Response.Error.Code](#anytype-Rpc-Block-Copy-Response-Error-Code) - [Rpc.Block.Create.Response.Error.Code](#anytype-Rpc-Block-Create-Response-Error-Code) - - [Rpc.Block.CreatePage.Response.Error.Code](#anytype-Rpc-Block-CreatePage-Response-Error-Code) - - [Rpc.Block.CreateSet.Response.Error.Code](#anytype-Rpc-Block-CreateSet-Response-Error-Code) - [Rpc.Block.Cut.Response.Error.Code](#anytype-Rpc-Block-Cut-Response-Error-Code) - - [Rpc.Block.Dataview.RecordCreate.Response.Error.Code](#anytype-Rpc-Block-Dataview-RecordCreate-Response-Error-Code) - - [Rpc.Block.Dataview.RecordDelete.Response.Error.Code](#anytype-Rpc-Block-Dataview-RecordDelete-Response-Error-Code) - - [Rpc.Block.Dataview.RecordRelationOptionAdd.Response.Error.Code](#anytype-Rpc-Block-Dataview-RecordRelationOptionAdd-Response-Error-Code) - - [Rpc.Block.Dataview.RecordRelationOptionDelete.Response.Error.Code](#anytype-Rpc-Block-Dataview-RecordRelationOptionDelete-Response-Error-Code) - - [Rpc.Block.Dataview.RecordRelationOptionUpdate.Response.Error.Code](#anytype-Rpc-Block-Dataview-RecordRelationOptionUpdate-Response-Error-Code) - - [Rpc.Block.Dataview.RecordUpdate.Response.Error.Code](#anytype-Rpc-Block-Dataview-RecordUpdate-Response-Error-Code) - - [Rpc.Block.Dataview.RelationAdd.Response.Error.Code](#anytype-Rpc-Block-Dataview-RelationAdd-Response-Error-Code) - - [Rpc.Block.Dataview.RelationDelete.Response.Error.Code](#anytype-Rpc-Block-Dataview-RelationDelete-Response-Error-Code) - - [Rpc.Block.Dataview.RelationListAvailable.Response.Error.Code](#anytype-Rpc-Block-Dataview-RelationListAvailable-Response-Error-Code) - - [Rpc.Block.Dataview.RelationUpdate.Response.Error.Code](#anytype-Rpc-Block-Dataview-RelationUpdate-Response-Error-Code) - - [Rpc.Block.Dataview.SetSource.Response.Error.Code](#anytype-Rpc-Block-Dataview-SetSource-Response-Error-Code) - - [Rpc.Block.Dataview.ViewCreate.Response.Error.Code](#anytype-Rpc-Block-Dataview-ViewCreate-Response-Error-Code) - - [Rpc.Block.Dataview.ViewDelete.Response.Error.Code](#anytype-Rpc-Block-Dataview-ViewDelete-Response-Error-Code) - - [Rpc.Block.Dataview.ViewSetActive.Response.Error.Code](#anytype-Rpc-Block-Dataview-ViewSetActive-Response-Error-Code) - - [Rpc.Block.Dataview.ViewSetPosition.Response.Error.Code](#anytype-Rpc-Block-Dataview-ViewSetPosition-Response-Error-Code) - - [Rpc.Block.Dataview.ViewUpdate.Response.Error.Code](#anytype-Rpc-Block-Dataview-ViewUpdate-Response-Error-Code) - [Rpc.Block.Download.Response.Error.Code](#anytype-Rpc-Block-Download-Response-Error-Code) - [Rpc.Block.Export.Response.Error.Code](#anytype-Rpc-Block-Export-Response-Error-Code) - - [Rpc.Block.File.CreateAndUpload.Response.Error.Code](#anytype-Rpc-Block-File-CreateAndUpload-Response-Error-Code) - - [Rpc.Block.Get.Marks.Response.Error.Code](#anytype-Rpc-Block-Get-Marks-Response-Error-Code) - - [Rpc.Block.GetPublicWebURL.Response.Error.Code](#anytype-Rpc-Block-GetPublicWebURL-Response-Error-Code) - - [Rpc.Block.ImportMarkdown.Response.Error.Code](#anytype-Rpc-Block-ImportMarkdown-Response-Error-Code) + - [Rpc.Block.ListConvertToObjects.Response.Error.Code](#anytype-Rpc-Block-ListConvertToObjects-Response-Error-Code) + - [Rpc.Block.ListDelete.Response.Error.Code](#anytype-Rpc-Block-ListDelete-Response-Error-Code) + - [Rpc.Block.ListDuplicate.Response.Error.Code](#anytype-Rpc-Block-ListDuplicate-Response-Error-Code) + - [Rpc.Block.ListMoveToExistingObject.Response.Error.Code](#anytype-Rpc-Block-ListMoveToExistingObject-Response-Error-Code) + - [Rpc.Block.ListMoveToNewObject.Response.Error.Code](#anytype-Rpc-Block-ListMoveToNewObject-Response-Error-Code) + - [Rpc.Block.ListSetAlign.Response.Error.Code](#anytype-Rpc-Block-ListSetAlign-Response-Error-Code) + - [Rpc.Block.ListSetBackgroundColor.Response.Error.Code](#anytype-Rpc-Block-ListSetBackgroundColor-Response-Error-Code) + - [Rpc.Block.ListSetFields.Response.Error.Code](#anytype-Rpc-Block-ListSetFields-Response-Error-Code) + - [Rpc.Block.ListTurnInto.Response.Error.Code](#anytype-Rpc-Block-ListTurnInto-Response-Error-Code) - [Rpc.Block.Merge.Response.Error.Code](#anytype-Rpc-Block-Merge-Response-Error-Code) - - [Rpc.Block.ObjectType.Set.Response.Error.Code](#anytype-Rpc-Block-ObjectType-Set-Response-Error-Code) - - [Rpc.Block.Open.Response.Error.Code](#anytype-Rpc-Block-Open-Response-Error-Code) - - [Rpc.Block.OpenBreadcrumbs.Response.Error.Code](#anytype-Rpc-Block-OpenBreadcrumbs-Response-Error-Code) - [Rpc.Block.Paste.Response.Error.Code](#anytype-Rpc-Block-Paste-Response-Error-Code) - - [Rpc.Block.Redo.Response.Error.Code](#anytype-Rpc-Block-Redo-Response-Error-Code) - - [Rpc.Block.Relation.Add.Response.Error.Code](#anytype-Rpc-Block-Relation-Add-Response-Error-Code) - - [Rpc.Block.Relation.SetKey.Response.Error.Code](#anytype-Rpc-Block-Relation-SetKey-Response-Error-Code) - [Rpc.Block.Replace.Response.Error.Code](#anytype-Rpc-Block-Replace-Response-Error-Code) - - [Rpc.Block.Set.Details.Response.Error.Code](#anytype-Rpc-Block-Set-Details-Response-Error-Code) - - [Rpc.Block.Set.Fields.Response.Error.Code](#anytype-Rpc-Block-Set-Fields-Response-Error-Code) - - [Rpc.Block.Set.File.Name.Response.Error.Code](#anytype-Rpc-Block-Set-File-Name-Response-Error-Code) - - [Rpc.Block.Set.Image.Name.Response.Error.Code](#anytype-Rpc-Block-Set-Image-Name-Response-Error-Code) - - [Rpc.Block.Set.Image.Width.Response.Error.Code](#anytype-Rpc-Block-Set-Image-Width-Response-Error-Code) - - [Rpc.Block.Set.Latex.Text.Response.Error.Code](#anytype-Rpc-Block-Set-Latex-Text-Response-Error-Code) - - [Rpc.Block.Set.Link.TargetBlockId.Response.Error.Code](#anytype-Rpc-Block-Set-Link-TargetBlockId-Response-Error-Code) - - [Rpc.Block.Set.Page.IsArchived.Response.Error.Code](#anytype-Rpc-Block-Set-Page-IsArchived-Response-Error-Code) - - [Rpc.Block.Set.Restrictions.Response.Error.Code](#anytype-Rpc-Block-Set-Restrictions-Response-Error-Code) - - [Rpc.Block.Set.Text.Checked.Response.Error.Code](#anytype-Rpc-Block-Set-Text-Checked-Response-Error-Code) - - [Rpc.Block.Set.Text.Color.Response.Error.Code](#anytype-Rpc-Block-Set-Text-Color-Response-Error-Code) - - [Rpc.Block.Set.Text.Icon.Response.Error.Code](#anytype-Rpc-Block-Set-Text-Icon-Response-Error-Code) - - [Rpc.Block.Set.Text.Style.Response.Error.Code](#anytype-Rpc-Block-Set-Text-Style-Response-Error-Code) - - [Rpc.Block.Set.Text.Text.Response.Error.Code](#anytype-Rpc-Block-Set-Text-Text-Response-Error-Code) - - [Rpc.Block.Set.Video.Name.Response.Error.Code](#anytype-Rpc-Block-Set-Video-Name-Response-Error-Code) - - [Rpc.Block.Set.Video.Width.Response.Error.Code](#anytype-Rpc-Block-Set-Video-Width-Response-Error-Code) - - [Rpc.Block.SetBreadcrumbs.Response.Error.Code](#anytype-Rpc-Block-SetBreadcrumbs-Response-Error-Code) - - [Rpc.Block.Show.Response.Error.Code](#anytype-Rpc-Block-Show-Response-Error-Code) + - [Rpc.Block.SetFields.Response.Error.Code](#anytype-Rpc-Block-SetFields-Response-Error-Code) - [Rpc.Block.Split.Request.Mode](#anytype-Rpc-Block-Split-Request-Mode) - [Rpc.Block.Split.Response.Error.Code](#anytype-Rpc-Block-Split-Response-Error-Code) - - [Rpc.Block.Undo.Response.Error.Code](#anytype-Rpc-Block-Undo-Response-Error-Code) - - [Rpc.Block.Unlink.Response.Error.Code](#anytype-Rpc-Block-Unlink-Response-Error-Code) - - [Rpc.Block.UpdateContent.Response.Error.Code](#anytype-Rpc-Block-UpdateContent-Response-Error-Code) - [Rpc.Block.Upload.Response.Error.Code](#anytype-Rpc-Block-Upload-Response-Error-Code) - - [Rpc.BlockList.ConvertChildrenToPages.Response.Error.Code](#anytype-Rpc-BlockList-ConvertChildrenToPages-Response-Error-Code) - - [Rpc.BlockList.Duplicate.Response.Error.Code](#anytype-Rpc-BlockList-Duplicate-Response-Error-Code) - - [Rpc.BlockList.Move.Response.Error.Code](#anytype-Rpc-BlockList-Move-Response-Error-Code) - - [Rpc.BlockList.MoveToNewPage.Response.Error.Code](#anytype-Rpc-BlockList-MoveToNewPage-Response-Error-Code) - - [Rpc.BlockList.Set.Align.Response.Error.Code](#anytype-Rpc-BlockList-Set-Align-Response-Error-Code) - - [Rpc.BlockList.Set.BackgroundColor.Response.Error.Code](#anytype-Rpc-BlockList-Set-BackgroundColor-Response-Error-Code) - - [Rpc.BlockList.Set.Div.Style.Response.Error.Code](#anytype-Rpc-BlockList-Set-Div-Style-Response-Error-Code) - - [Rpc.BlockList.Set.Fields.Response.Error.Code](#anytype-Rpc-BlockList-Set-Fields-Response-Error-Code) - - [Rpc.BlockList.Set.File.Style.Response.Error.Code](#anytype-Rpc-BlockList-Set-File-Style-Response-Error-Code) - - [Rpc.BlockList.Set.Text.Color.Response.Error.Code](#anytype-Rpc-BlockList-Set-Text-Color-Response-Error-Code) - - [Rpc.BlockList.Set.Text.Mark.Response.Error.Code](#anytype-Rpc-BlockList-Set-Text-Mark-Response-Error-Code) - - [Rpc.BlockList.Set.Text.Style.Response.Error.Code](#anytype-Rpc-BlockList-Set-Text-Style-Response-Error-Code) - - [Rpc.BlockList.TurnInto.Response.Error.Code](#anytype-Rpc-BlockList-TurnInto-Response-Error-Code) - - [Rpc.CloneTemplate.Response.Error.Code](#anytype-Rpc-CloneTemplate-Response-Error-Code) - - [Rpc.Config.Get.Response.Error.Code](#anytype-Rpc-Config-Get-Response-Error-Code) + - [Rpc.BlockBookmark.CreateAndFetch.Response.Error.Code](#anytype-Rpc-BlockBookmark-CreateAndFetch-Response-Error-Code) + - [Rpc.BlockBookmark.Fetch.Response.Error.Code](#anytype-Rpc-BlockBookmark-Fetch-Response-Error-Code) + - [Rpc.BlockDataview.Relation.Add.Response.Error.Code](#anytype-Rpc-BlockDataview-Relation-Add-Response-Error-Code) + - [Rpc.BlockDataview.Relation.Delete.Response.Error.Code](#anytype-Rpc-BlockDataview-Relation-Delete-Response-Error-Code) + - [Rpc.BlockDataview.Relation.ListAvailable.Response.Error.Code](#anytype-Rpc-BlockDataview-Relation-ListAvailable-Response-Error-Code) + - [Rpc.BlockDataview.Relation.Update.Response.Error.Code](#anytype-Rpc-BlockDataview-Relation-Update-Response-Error-Code) + - [Rpc.BlockDataview.SetSource.Response.Error.Code](#anytype-Rpc-BlockDataview-SetSource-Response-Error-Code) + - [Rpc.BlockDataview.View.Create.Response.Error.Code](#anytype-Rpc-BlockDataview-View-Create-Response-Error-Code) + - [Rpc.BlockDataview.View.Delete.Response.Error.Code](#anytype-Rpc-BlockDataview-View-Delete-Response-Error-Code) + - [Rpc.BlockDataview.View.SetActive.Response.Error.Code](#anytype-Rpc-BlockDataview-View-SetActive-Response-Error-Code) + - [Rpc.BlockDataview.View.SetPosition.Response.Error.Code](#anytype-Rpc-BlockDataview-View-SetPosition-Response-Error-Code) + - [Rpc.BlockDataview.View.Update.Response.Error.Code](#anytype-Rpc-BlockDataview-View-Update-Response-Error-Code) + - [Rpc.BlockDataviewRecord.Create.Response.Error.Code](#anytype-Rpc-BlockDataviewRecord-Create-Response-Error-Code) + - [Rpc.BlockDataviewRecord.Delete.Response.Error.Code](#anytype-Rpc-BlockDataviewRecord-Delete-Response-Error-Code) + - [Rpc.BlockDataviewRecord.RelationOption.Add.Response.Error.Code](#anytype-Rpc-BlockDataviewRecord-RelationOption-Add-Response-Error-Code) + - [Rpc.BlockDataviewRecord.RelationOption.Delete.Response.Error.Code](#anytype-Rpc-BlockDataviewRecord-RelationOption-Delete-Response-Error-Code) + - [Rpc.BlockDataviewRecord.RelationOption.Update.Response.Error.Code](#anytype-Rpc-BlockDataviewRecord-RelationOption-Update-Response-Error-Code) + - [Rpc.BlockDataviewRecord.Update.Response.Error.Code](#anytype-Rpc-BlockDataviewRecord-Update-Response-Error-Code) + - [Rpc.BlockDiv.ListSetStyle.Response.Error.Code](#anytype-Rpc-BlockDiv-ListSetStyle-Response-Error-Code) + - [Rpc.BlockFile.CreateAndUpload.Response.Error.Code](#anytype-Rpc-BlockFile-CreateAndUpload-Response-Error-Code) + - [Rpc.BlockFile.ListSetStyle.Response.Error.Code](#anytype-Rpc-BlockFile-ListSetStyle-Response-Error-Code) + - [Rpc.BlockFile.SetName.Response.Error.Code](#anytype-Rpc-BlockFile-SetName-Response-Error-Code) + - [Rpc.BlockImage.SetName.Response.Error.Code](#anytype-Rpc-BlockImage-SetName-Response-Error-Code) + - [Rpc.BlockImage.SetWidth.Response.Error.Code](#anytype-Rpc-BlockImage-SetWidth-Response-Error-Code) + - [Rpc.BlockLatex.SetText.Response.Error.Code](#anytype-Rpc-BlockLatex-SetText-Response-Error-Code) + - [Rpc.BlockLink.CreateWithObject.Response.Error.Code](#anytype-Rpc-BlockLink-CreateWithObject-Response-Error-Code) + - [Rpc.BlockLink.ListSetAppearance.Response.Error.Code](#anytype-Rpc-BlockLink-ListSetAppearance-Response-Error-Code) + - [Rpc.BlockRelation.Add.Response.Error.Code](#anytype-Rpc-BlockRelation-Add-Response-Error-Code) + - [Rpc.BlockRelation.SetKey.Response.Error.Code](#anytype-Rpc-BlockRelation-SetKey-Response-Error-Code) + - [Rpc.BlockText.ListSetColor.Response.Error.Code](#anytype-Rpc-BlockText-ListSetColor-Response-Error-Code) + - [Rpc.BlockText.ListSetMark.Response.Error.Code](#anytype-Rpc-BlockText-ListSetMark-Response-Error-Code) + - [Rpc.BlockText.ListSetStyle.Response.Error.Code](#anytype-Rpc-BlockText-ListSetStyle-Response-Error-Code) + - [Rpc.BlockText.SetChecked.Response.Error.Code](#anytype-Rpc-BlockText-SetChecked-Response-Error-Code) + - [Rpc.BlockText.SetColor.Response.Error.Code](#anytype-Rpc-BlockText-SetColor-Response-Error-Code) + - [Rpc.BlockText.SetIcon.Response.Error.Code](#anytype-Rpc-BlockText-SetIcon-Response-Error-Code) + - [Rpc.BlockText.SetMarks.Get.Response.Error.Code](#anytype-Rpc-BlockText-SetMarks-Get-Response-Error-Code) + - [Rpc.BlockText.SetStyle.Response.Error.Code](#anytype-Rpc-BlockText-SetStyle-Response-Error-Code) + - [Rpc.BlockText.SetText.Response.Error.Code](#anytype-Rpc-BlockText-SetText-Response-Error-Code) + - [Rpc.BlockVideo.SetName.Response.Error.Code](#anytype-Rpc-BlockVideo-SetName-Response-Error-Code) + - [Rpc.BlockVideo.SetWidth.Response.Error.Code](#anytype-Rpc-BlockVideo-SetWidth-Response-Error-Code) + - [Rpc.Debug.ExportLocalstore.Response.Error.Code](#anytype-Rpc-Debug-ExportLocalstore-Response-Error-Code) + - [Rpc.Debug.Ping.Response.Error.Code](#anytype-Rpc-Debug-Ping-Response-Error-Code) - [Rpc.Debug.Sync.Response.Error.Code](#anytype-Rpc-Debug-Sync-Response-Error-Code) - [Rpc.Debug.Thread.Response.Error.Code](#anytype-Rpc-Debug-Thread-Response-Error-Code) - [Rpc.Debug.Tree.Response.Error.Code](#anytype-Rpc-Debug-Tree-Response-Error-Code) - - [Rpc.DeviceState.Request.DeviceState](#anytype-Rpc-DeviceState-Request-DeviceState) - - [Rpc.DeviceState.Response.Error.Code](#anytype-Rpc-DeviceState-Response-Error-Code) - - [Rpc.DownloadFile.Response.Error.Code](#anytype-Rpc-DownloadFile-Response-Error-Code) - - [Rpc.Export.Format](#anytype-Rpc-Export-Format) - - [Rpc.Export.Response.Error.Code](#anytype-Rpc-Export-Response-Error-Code) - - [Rpc.ExportLocalstore.Response.Error.Code](#anytype-Rpc-ExportLocalstore-Response-Error-Code) - - [Rpc.ExportTemplates.Response.Error.Code](#anytype-Rpc-ExportTemplates-Response-Error-Code) - - [Rpc.ExportWorkspace.Response.Error.Code](#anytype-Rpc-ExportWorkspace-Response-Error-Code) - - [Rpc.ExternalDrop.Content.Response.Error.Code](#anytype-Rpc-ExternalDrop-Content-Response-Error-Code) - - [Rpc.ExternalDrop.Files.Response.Error.Code](#anytype-Rpc-ExternalDrop-Files-Response-Error-Code) + - [Rpc.File.Download.Response.Error.Code](#anytype-Rpc-File-Download-Response-Error-Code) + - [Rpc.File.Drop.Response.Error.Code](#anytype-Rpc-File-Drop-Response-Error-Code) + - [Rpc.File.ListOffload.Response.Error.Code](#anytype-Rpc-File-ListOffload-Response-Error-Code) - [Rpc.File.Offload.Response.Error.Code](#anytype-Rpc-File-Offload-Response-Error-Code) - - [Rpc.FileList.Offload.Response.Error.Code](#anytype-Rpc-FileList-Offload-Response-Error-Code) + - [Rpc.File.Upload.Response.Error.Code](#anytype-Rpc-File-Upload-Response-Error-Code) - [Rpc.GenericErrorResponse.Error.Code](#anytype-Rpc-GenericErrorResponse-Error-Code) + - [Rpc.History.GetVersions.Response.Error.Code](#anytype-Rpc-History-GetVersions-Response-Error-Code) - [Rpc.History.SetVersion.Response.Error.Code](#anytype-Rpc-History-SetVersion-Response-Error-Code) - - [Rpc.History.Show.Response.Error.Code](#anytype-Rpc-History-Show-Response-Error-Code) - - [Rpc.History.Versions.Response.Error.Code](#anytype-Rpc-History-Versions-Response-Error-Code) + - [Rpc.History.ShowVersion.Response.Error.Code](#anytype-Rpc-History-ShowVersion-Response-Error-Code) - [Rpc.LinkPreview.Response.Error.Code](#anytype-Rpc-LinkPreview-Response-Error-Code) - [Rpc.Log.Send.Request.Level](#anytype-Rpc-Log-Send-Request-Level) - [Rpc.Log.Send.Response.Error.Code](#anytype-Rpc-Log-Send-Response-Error-Code) - - [Rpc.MakeTemplate.Response.Error.Code](#anytype-Rpc-MakeTemplate-Response-Error-Code) - - [Rpc.MakeTemplateByObjectType.Response.Error.Code](#anytype-Rpc-MakeTemplateByObjectType-Response-Error-Code) - [Rpc.Metrics.SetParameters.Response.Error.Code](#anytype-Rpc-Metrics-SetParameters-Response-Error-Code) - [Rpc.Navigation.Context](#anytype-Rpc-Navigation-Context) - [Rpc.Navigation.GetObjectInfoWithLinks.Response.Error.Code](#anytype-Rpc-Navigation-GetObjectInfoWithLinks-Response-Error-Code) - [Rpc.Navigation.ListObjects.Response.Error.Code](#anytype-Rpc-Navigation-ListObjects-Response-Error-Code) - [Rpc.Object.AddWithObjectId.Response.Error.Code](#anytype-Rpc-Object-AddWithObjectId-Response-Error-Code) - - [Rpc.Object.FeaturedRelation.Add.Response.Error.Code](#anytype-Rpc-Object-FeaturedRelation-Add-Response-Error-Code) - - [Rpc.Object.FeaturedRelation.Remove.Response.Error.Code](#anytype-Rpc-Object-FeaturedRelation-Remove-Response-Error-Code) + - [Rpc.Object.ApplyTemplate.Response.Error.Code](#anytype-Rpc-Object-ApplyTemplate-Response-Error-Code) + - [Rpc.Object.Close.Response.Error.Code](#anytype-Rpc-Object-Close-Response-Error-Code) + - [Rpc.Object.Create.Response.Error.Code](#anytype-Rpc-Object-Create-Response-Error-Code) + - [Rpc.Object.CreateSet.Response.Error.Code](#anytype-Rpc-Object-CreateSet-Response-Error-Code) + - [Rpc.Object.Duplicate.Response.Error.Code](#anytype-Rpc-Object-Duplicate-Response-Error-Code) - [Rpc.Object.Graph.Edge.Type](#anytype-Rpc-Object-Graph-Edge-Type) - [Rpc.Object.Graph.Response.Error.Code](#anytype-Rpc-Object-Graph-Response-Error-Code) - - [Rpc.Object.IdsSubscribe.Response.Error.Code](#anytype-Rpc-Object-IdsSubscribe-Response-Error-Code) - - [Rpc.Object.RelationAdd.Response.Error.Code](#anytype-Rpc-Object-RelationAdd-Response-Error-Code) - - [Rpc.Object.RelationDelete.Response.Error.Code](#anytype-Rpc-Object-RelationDelete-Response-Error-Code) - - [Rpc.Object.RelationListAvailable.Response.Error.Code](#anytype-Rpc-Object-RelationListAvailable-Response-Error-Code) - - [Rpc.Object.RelationOptionAdd.Response.Error.Code](#anytype-Rpc-Object-RelationOptionAdd-Response-Error-Code) - - [Rpc.Object.RelationOptionDelete.Response.Error.Code](#anytype-Rpc-Object-RelationOptionDelete-Response-Error-Code) - - [Rpc.Object.RelationOptionUpdate.Response.Error.Code](#anytype-Rpc-Object-RelationOptionUpdate-Response-Error-Code) - - [Rpc.Object.RelationUpdate.Response.Error.Code](#anytype-Rpc-Object-RelationUpdate-Response-Error-Code) + - [Rpc.Object.ImportMarkdown.Response.Error.Code](#anytype-Rpc-Object-ImportMarkdown-Response-Error-Code) + - [Rpc.Object.ListDelete.Response.Error.Code](#anytype-Rpc-Object-ListDelete-Response-Error-Code) + - [Rpc.Object.ListDuplicate.Response.Error.Code](#anytype-Rpc-Object-ListDuplicate-Response-Error-Code) + - [Rpc.Object.ListExport.Format](#anytype-Rpc-Object-ListExport-Format) + - [Rpc.Object.ListExport.Response.Error.Code](#anytype-Rpc-Object-ListExport-Response-Error-Code) + - [Rpc.Object.ListSetIsArchived.Response.Error.Code](#anytype-Rpc-Object-ListSetIsArchived-Response-Error-Code) + - [Rpc.Object.ListSetIsFavorite.Response.Error.Code](#anytype-Rpc-Object-ListSetIsFavorite-Response-Error-Code) + - [Rpc.Object.Open.Response.Error.Code](#anytype-Rpc-Object-Open-Response-Error-Code) + - [Rpc.Object.OpenBreadcrumbs.Response.Error.Code](#anytype-Rpc-Object-OpenBreadcrumbs-Response-Error-Code) + - [Rpc.Object.Redo.Response.Error.Code](#anytype-Rpc-Object-Redo-Response-Error-Code) - [Rpc.Object.Search.Response.Error.Code](#anytype-Rpc-Object-Search-Response-Error-Code) - [Rpc.Object.SearchSubscribe.Response.Error.Code](#anytype-Rpc-Object-SearchSubscribe-Response-Error-Code) - [Rpc.Object.SearchUnsubscribe.Response.Error.Code](#anytype-Rpc-Object-SearchUnsubscribe-Response-Error-Code) + - [Rpc.Object.SetBreadcrumbs.Response.Error.Code](#anytype-Rpc-Object-SetBreadcrumbs-Response-Error-Code) + - [Rpc.Object.SetDetails.Response.Error.Code](#anytype-Rpc-Object-SetDetails-Response-Error-Code) - [Rpc.Object.SetIsArchived.Response.Error.Code](#anytype-Rpc-Object-SetIsArchived-Response-Error-Code) - [Rpc.Object.SetIsFavorite.Response.Error.Code](#anytype-Rpc-Object-SetIsFavorite-Response-Error-Code) - [Rpc.Object.SetLayout.Response.Error.Code](#anytype-Rpc-Object-SetLayout-Response-Error-Code) + - [Rpc.Object.SetObjectType.Response.Error.Code](#anytype-Rpc-Object-SetObjectType-Response-Error-Code) - [Rpc.Object.ShareByLink.Response.Error.Code](#anytype-Rpc-Object-ShareByLink-Response-Error-Code) + - [Rpc.Object.Show.Response.Error.Code](#anytype-Rpc-Object-Show-Response-Error-Code) + - [Rpc.Object.SubscribeIds.Response.Error.Code](#anytype-Rpc-Object-SubscribeIds-Response-Error-Code) - [Rpc.Object.ToSet.Response.Error.Code](#anytype-Rpc-Object-ToSet-Response-Error-Code) - - [Rpc.ObjectDuplicate.Response.Error.Code](#anytype-Rpc-ObjectDuplicate-Response-Error-Code) - - [Rpc.ObjectList.Delete.Response.Error.Code](#anytype-Rpc-ObjectList-Delete-Response-Error-Code) - - [Rpc.ObjectList.Duplicate.Response.Error.Code](#anytype-Rpc-ObjectList-Duplicate-Response-Error-Code) - - [Rpc.ObjectList.Set.IsArchived.Response.Error.Code](#anytype-Rpc-ObjectList-Set-IsArchived-Response-Error-Code) - - [Rpc.ObjectList.Set.IsFavorite.Response.Error.Code](#anytype-Rpc-ObjectList-Set-IsFavorite-Response-Error-Code) + - [Rpc.Object.Undo.Response.Error.Code](#anytype-Rpc-Object-Undo-Response-Error-Code) + - [Rpc.ObjectRelation.Add.Response.Error.Code](#anytype-Rpc-ObjectRelation-Add-Response-Error-Code) + - [Rpc.ObjectRelation.AddFeatured.Response.Error.Code](#anytype-Rpc-ObjectRelation-AddFeatured-Response-Error-Code) + - [Rpc.ObjectRelation.Delete.Response.Error.Code](#anytype-Rpc-ObjectRelation-Delete-Response-Error-Code) + - [Rpc.ObjectRelation.ListAvailable.Response.Error.Code](#anytype-Rpc-ObjectRelation-ListAvailable-Response-Error-Code) + - [Rpc.ObjectRelation.RemoveFeatured.Response.Error.Code](#anytype-Rpc-ObjectRelation-RemoveFeatured-Response-Error-Code) + - [Rpc.ObjectRelation.Update.Response.Error.Code](#anytype-Rpc-ObjectRelation-Update-Response-Error-Code) + - [Rpc.ObjectRelationOption.Add.Response.Error.Code](#anytype-Rpc-ObjectRelationOption-Add-Response-Error-Code) + - [Rpc.ObjectRelationOption.Delete.Response.Error.Code](#anytype-Rpc-ObjectRelationOption-Delete-Response-Error-Code) + - [Rpc.ObjectRelationOption.Update.Response.Error.Code](#anytype-Rpc-ObjectRelationOption-Update-Response-Error-Code) - [Rpc.ObjectType.Create.Response.Error.Code](#anytype-Rpc-ObjectType-Create-Response-Error-Code) - [Rpc.ObjectType.List.Response.Error.Code](#anytype-Rpc-ObjectType-List-Response-Error-Code) - [Rpc.ObjectType.Relation.Add.Response.Error.Code](#anytype-Rpc-ObjectType-Relation-Add-Response-Error-Code) - [Rpc.ObjectType.Relation.List.Response.Error.Code](#anytype-Rpc-ObjectType-Relation-List-Response-Error-Code) - [Rpc.ObjectType.Relation.Remove.Response.Error.Code](#anytype-Rpc-ObjectType-Relation-Remove-Response-Error-Code) - [Rpc.ObjectType.Relation.Update.Response.Error.Code](#anytype-Rpc-ObjectType-Relation-Update-Response-Error-Code) - - [Rpc.Page.Create.Response.Error.Code](#anytype-Rpc-Page-Create-Response-Error-Code) - - [Rpc.Ping.Response.Error.Code](#anytype-Rpc-Ping-Response-Error-Code) - [Rpc.Process.Cancel.Response.Error.Code](#anytype-Rpc-Process-Cancel-Response-Error-Code) - - [Rpc.Set.Create.Response.Error.Code](#anytype-Rpc-Set-Create-Response-Error-Code) - - [Rpc.Shutdown.Response.Error.Code](#anytype-Rpc-Shutdown-Response-Error-Code) - - [Rpc.UnsplashDownload.Response.Error.Code](#anytype-Rpc-UnsplashDownload-Response-Error-Code) - - [Rpc.UnsplashSearch.Response.Error.Code](#anytype-Rpc-UnsplashSearch-Response-Error-Code) - - [Rpc.UploadFile.Response.Error.Code](#anytype-Rpc-UploadFile-Response-Error-Code) - - [Rpc.Version.Get.Response.Error.Code](#anytype-Rpc-Version-Get-Response-Error-Code) + - [Rpc.Template.Clone.Response.Error.Code](#anytype-Rpc-Template-Clone-Response-Error-Code) + - [Rpc.Template.CreateFromObject.Response.Error.Code](#anytype-Rpc-Template-CreateFromObject-Response-Error-Code) + - [Rpc.Template.CreateFromObjectType.Response.Error.Code](#anytype-Rpc-Template-CreateFromObjectType-Response-Error-Code) + - [Rpc.Template.ExportAll.Response.Error.Code](#anytype-Rpc-Template-ExportAll-Response-Error-Code) + - [Rpc.Unsplash.Download.Response.Error.Code](#anytype-Rpc-Unsplash-Download-Response-Error-Code) + - [Rpc.Unsplash.Search.Response.Error.Code](#anytype-Rpc-Unsplash-Search-Response-Error-Code) - [Rpc.Wallet.Convert.Response.Error.Code](#anytype-Rpc-Wallet-Convert-Response-Error-Code) - [Rpc.Wallet.Create.Response.Error.Code](#anytype-Rpc-Wallet-Create-Response-Error-Code) - [Rpc.Wallet.Recover.Response.Error.Code](#anytype-Rpc-Wallet-Recover-Response-Error-Code) - [Rpc.Workspace.Create.Response.Error.Code](#anytype-Rpc-Workspace-Create-Response-Error-Code) + - [Rpc.Workspace.Export.Response.Error.Code](#anytype-Rpc-Workspace-Export-Response-Error-Code) - [Rpc.Workspace.GetAll.Response.Error.Code](#anytype-Rpc-Workspace-GetAll-Response-Error-Code) - [Rpc.Workspace.GetCurrent.Response.Error.Code](#anytype-Rpc-Workspace-GetCurrent-Response-Error-Code) - [Rpc.Workspace.Select.Response.Error.Code](#anytype-Rpc-Workspace-Select-Response-Error-Code) @@ -952,7 +915,11 @@ - [Event.Block.Set.Latex](#anytype-Event-Block-Set-Latex) - [Event.Block.Set.Latex.Text](#anytype-Event-Block-Set-Latex-Text) - [Event.Block.Set.Link](#anytype-Event-Block-Set-Link) + - [Event.Block.Set.Link.CardStyle](#anytype-Event-Block-Set-Link-CardStyle) + - [Event.Block.Set.Link.Description](#anytype-Event-Block-Set-Link-Description) - [Event.Block.Set.Link.Fields](#anytype-Event-Block-Set-Link-Fields) + - [Event.Block.Set.Link.IconSize](#anytype-Event-Block-Set-Link-IconSize) + - [Event.Block.Set.Link.Relations](#anytype-Event-Block-Set-Link-Relations) - [Event.Block.Set.Link.Style](#anytype-Event-Block-Set-Link-Style) - [Event.Block.Set.Link.TargetBlockId](#anytype-Event-Block-Set-Link-TargetBlockId) - [Event.Block.Set.Relation](#anytype-Event-Block-Set-Relation) @@ -1029,6 +996,7 @@ - [Account](#anytype-model-Account) - [Account.Avatar](#anytype-model-Account-Avatar) - [Account.Config](#anytype-model-Account-Config) + - [Account.Info](#anytype-model-Account-Info) - [Account.Status](#anytype-model-Account-Status) - [Block](#anytype-model-Block) - [Block.Content](#anytype-model-Block-Content) @@ -1082,6 +1050,9 @@ - [Block.Content.File.Style](#anytype-model-Block-Content-File-Style) - [Block.Content.File.Type](#anytype-model-Block-Content-File-Type) - [Block.Content.Layout.Style](#anytype-model-Block-Content-Layout-Style) + - [Block.Content.Link.CardStyle](#anytype-model-Block-Content-Link-CardStyle) + - [Block.Content.Link.Description](#anytype-model-Block-Content-Link-Description) + - [Block.Content.Link.IconSize](#anytype-model-Block-Content-Link-IconSize) - [Block.Content.Link.Style](#anytype-model-Block-Content-Link-Style) - [Block.Content.Text.Mark.Type](#anytype-model-Block-Content-Text-Mark-Type) - [Block.Content.Text.Style](#anytype-model-Block-Content-Text-Style) @@ -1120,159 +1091,149 @@ | Method Name | Request Type | Response Type | Description | | ----------- | ------------ | ------------- | ------------| -| ObjectAddWithObjectId | [Rpc.Object.AddWithObjectId.Request](#anytype-Rpc-Object-AddWithObjectId-Request) | [Rpc.Object.AddWithObjectId.Response](#anytype-Rpc-Object-AddWithObjectId-Response) | | -| ObjectShareByLink | [Rpc.Object.ShareByLink.Request](#anytype-Rpc-Object-ShareByLink-Request) | [Rpc.Object.ShareByLink.Response](#anytype-Rpc-Object-ShareByLink-Response) | | -| WalletCreate | [Rpc.Wallet.Create.Request](#anytype-Rpc-Wallet-Create-Request) | [Rpc.Wallet.Create.Response](#anytype-Rpc-Wallet-Create-Response) | | +| AppGetVersion | [Rpc.App.GetVersion.Request](#anytype-Rpc-App-GetVersion-Request) | [Rpc.App.GetVersion.Response](#anytype-Rpc-App-GetVersion-Response) | | +| AppSetDeviceState | [Rpc.App.SetDeviceState.Request](#anytype-Rpc-App-SetDeviceState-Request) | [Rpc.App.SetDeviceState.Response](#anytype-Rpc-App-SetDeviceState-Response) | | +| AppShutdown | [Rpc.App.Shutdown.Request](#anytype-Rpc-App-Shutdown-Request) | [Rpc.App.Shutdown.Response](#anytype-Rpc-App-Shutdown-Response) | | +| WalletCreate | [Rpc.Wallet.Create.Request](#anytype-Rpc-Wallet-Create-Request) | [Rpc.Wallet.Create.Response](#anytype-Rpc-Wallet-Create-Response) | Wallet *** | | WalletRecover | [Rpc.Wallet.Recover.Request](#anytype-Rpc-Wallet-Recover-Request) | [Rpc.Wallet.Recover.Response](#anytype-Rpc-Wallet-Recover-Response) | | | WalletConvert | [Rpc.Wallet.Convert.Request](#anytype-Rpc-Wallet-Convert-Request) | [Rpc.Wallet.Convert.Response](#anytype-Rpc-Wallet-Convert-Response) | | -| WorkspaceCreate | [Rpc.Workspace.Create.Request](#anytype-Rpc-Workspace-Create-Request) | [Rpc.Workspace.Create.Response](#anytype-Rpc-Workspace-Create-Response) | | +| WorkspaceCreate | [Rpc.Workspace.Create.Request](#anytype-Rpc-Workspace-Create-Request) | [Rpc.Workspace.Create.Response](#anytype-Rpc-Workspace-Create-Response) | Workspace *** | | WorkspaceSelect | [Rpc.Workspace.Select.Request](#anytype-Rpc-Workspace-Select-Request) | [Rpc.Workspace.Select.Response](#anytype-Rpc-Workspace-Select-Response) | | | WorkspaceGetCurrent | [Rpc.Workspace.GetCurrent.Request](#anytype-Rpc-Workspace-GetCurrent-Request) | [Rpc.Workspace.GetCurrent.Response](#anytype-Rpc-Workspace-GetCurrent-Response) | | | WorkspaceGetAll | [Rpc.Workspace.GetAll.Request](#anytype-Rpc-Workspace-GetAll-Request) | [Rpc.Workspace.GetAll.Response](#anytype-Rpc-Workspace-GetAll-Response) | | | WorkspaceSetIsHighlighted | [Rpc.Workspace.SetIsHighlighted.Request](#anytype-Rpc-Workspace-SetIsHighlighted-Request) | [Rpc.Workspace.SetIsHighlighted.Response](#anytype-Rpc-Workspace-SetIsHighlighted-Response) | | -| AccountRecover | [Rpc.Account.Recover.Request](#anytype-Rpc-Account-Recover-Request) | [Rpc.Account.Recover.Response](#anytype-Rpc-Account-Recover-Response) | | +| WorkspaceExport | [Rpc.Workspace.Export.Request](#anytype-Rpc-Workspace-Export-Request) | [Rpc.Workspace.Export.Response](#anytype-Rpc-Workspace-Export-Response) | | +| AccountRecover | [Rpc.Account.Recover.Request](#anytype-Rpc-Account-Recover-Request) | [Rpc.Account.Recover.Response](#anytype-Rpc-Account-Recover-Response) | Account *** | | AccountCreate | [Rpc.Account.Create.Request](#anytype-Rpc-Account-Create-Request) | [Rpc.Account.Create.Response](#anytype-Rpc-Account-Create-Response) | | | AccountDelete | [Rpc.Account.Delete.Request](#anytype-Rpc-Account-Delete-Request) | [Rpc.Account.Delete.Response](#anytype-Rpc-Account-Delete-Response) | | | AccountSelect | [Rpc.Account.Select.Request](#anytype-Rpc-Account-Select-Request) | [Rpc.Account.Select.Response](#anytype-Rpc-Account-Select-Response) | | | AccountStop | [Rpc.Account.Stop.Request](#anytype-Rpc-Account-Stop-Request) | [Rpc.Account.Stop.Response](#anytype-Rpc-Account-Stop-Response) | | -| FileOffload | [Rpc.File.Offload.Request](#anytype-Rpc-File-Offload-Request) | [Rpc.File.Offload.Response](#anytype-Rpc-File-Offload-Response) | | -| FileListOffload | [Rpc.FileList.Offload.Request](#anytype-Rpc-FileList-Offload-Request) | [Rpc.FileList.Offload.Response](#anytype-Rpc-FileList-Offload-Response) | | -| VersionGet | [Rpc.Version.Get.Request](#anytype-Rpc-Version-Get-Request) | [Rpc.Version.Get.Response](#anytype-Rpc-Version-Get-Response) | | -| LogSend | [Rpc.Log.Send.Request](#anytype-Rpc-Log-Send-Request) | [Rpc.Log.Send.Response](#anytype-Rpc-Log-Send-Response) | | -| ConfigGet | [Rpc.Config.Get.Request](#anytype-Rpc-Config-Get-Request) | [Rpc.Config.Get.Response](#anytype-Rpc-Config-Get-Response) | | -| Shutdown | [Rpc.Shutdown.Request](#anytype-Rpc-Shutdown-Request) | [Rpc.Shutdown.Response](#anytype-Rpc-Shutdown-Response) | | -| SetDeviceState | [Rpc.DeviceState.Request](#anytype-Rpc-DeviceState-Request) | [Rpc.DeviceState.Response](#anytype-Rpc-DeviceState-Response) | | -| ExternalDropFiles | [Rpc.ExternalDrop.Files.Request](#anytype-Rpc-ExternalDrop-Files-Request) | [Rpc.ExternalDrop.Files.Response](#anytype-Rpc-ExternalDrop-Files-Response) | | -| ExternalDropContent | [Rpc.ExternalDrop.Content.Request](#anytype-Rpc-ExternalDrop-Content-Request) | [Rpc.ExternalDrop.Content.Response](#anytype-Rpc-ExternalDrop-Content-Response) | | -| LinkPreview | [Rpc.LinkPreview.Request](#anytype-Rpc-LinkPreview-Request) | [Rpc.LinkPreview.Response](#anytype-Rpc-LinkPreview-Response) | | -| UploadFile | [Rpc.UploadFile.Request](#anytype-Rpc-UploadFile-Request) | [Rpc.UploadFile.Response](#anytype-Rpc-UploadFile-Response) | | -| DownloadFile | [Rpc.DownloadFile.Request](#anytype-Rpc-DownloadFile-Request) | [Rpc.DownloadFile.Response](#anytype-Rpc-DownloadFile-Response) | | -| BlockUpload | [Rpc.Block.Upload.Request](#anytype-Rpc-Block-Upload-Request) | [Rpc.Block.Upload.Response](#anytype-Rpc-Block-Upload-Response) | | -| BlockReplace | [Rpc.Block.Replace.Request](#anytype-Rpc-Block-Replace-Request) | [Rpc.Block.Replace.Response](#anytype-Rpc-Block-Replace-Response) | | -| BlockUpdateContent | [Rpc.Block.UpdateContent.Request](#anytype-Rpc-Block-UpdateContent-Request) | [Rpc.Block.UpdateContent.Response](#anytype-Rpc-Block-UpdateContent-Response) | BlockUpdateContent allows to update any simple block content to the new value of the same type | -| BlockOpen | [Rpc.Block.Open.Request](#anytype-Rpc-Block-Open-Request) | [Rpc.Block.Open.Response](#anytype-Rpc-Block-Open-Response) | | -| BlockShow | [Rpc.Block.Show.Request](#anytype-Rpc-Block-Show-Request) | [Rpc.Block.Show.Response](#anytype-Rpc-Block-Show-Response) | | -| BlockGetPublicWebURL | [Rpc.Block.GetPublicWebURL.Request](#anytype-Rpc-Block-GetPublicWebURL-Request) | [Rpc.Block.GetPublicWebURL.Response](#anytype-Rpc-Block-GetPublicWebURL-Response) | | -| BlockOpenBreadcrumbs | [Rpc.Block.OpenBreadcrumbs.Request](#anytype-Rpc-Block-OpenBreadcrumbs-Request) | [Rpc.Block.OpenBreadcrumbs.Response](#anytype-Rpc-Block-OpenBreadcrumbs-Response) | | -| BlockSetBreadcrumbs | [Rpc.Block.SetBreadcrumbs.Request](#anytype-Rpc-Block-SetBreadcrumbs-Request) | [Rpc.Block.SetBreadcrumbs.Response](#anytype-Rpc-Block-SetBreadcrumbs-Response) | | -| BlockCreate | [Rpc.Block.Create.Request](#anytype-Rpc-Block-Create-Request) | [Rpc.Block.Create.Response](#anytype-Rpc-Block-Create-Response) | | -| BlockCreatePage | [Rpc.Block.CreatePage.Request](#anytype-Rpc-Block-CreatePage-Request) | [Rpc.Block.CreatePage.Response](#anytype-Rpc-Block-CreatePage-Response) | | -| BlockCreateSet | [Rpc.Block.CreateSet.Request](#anytype-Rpc-Block-CreateSet-Request) | [Rpc.Block.CreateSet.Response](#anytype-Rpc-Block-CreateSet-Response) | | -| BlockUnlink | [Rpc.Block.Unlink.Request](#anytype-Rpc-Block-Unlink-Request) | [Rpc.Block.Unlink.Response](#anytype-Rpc-Block-Unlink-Response) | | -| BlockClose | [Rpc.Block.Close.Request](#anytype-Rpc-Block-Close-Request) | [Rpc.Block.Close.Response](#anytype-Rpc-Block-Close-Response) | | -| BlockDownload | [Rpc.Block.Download.Request](#anytype-Rpc-Block-Download-Request) | [Rpc.Block.Download.Response](#anytype-Rpc-Block-Download-Response) | | -| BlockGetMarks | [Rpc.Block.Get.Marks.Request](#anytype-Rpc-Block-Get-Marks-Request) | [Rpc.Block.Get.Marks.Response](#anytype-Rpc-Block-Get-Marks-Response) | | -| BlockUndo | [Rpc.Block.Undo.Request](#anytype-Rpc-Block-Undo-Request) | [Rpc.Block.Undo.Response](#anytype-Rpc-Block-Undo-Response) | | -| BlockRedo | [Rpc.Block.Redo.Request](#anytype-Rpc-Block-Redo-Request) | [Rpc.Block.Redo.Response](#anytype-Rpc-Block-Redo-Response) | | -| BlockSetFields | [Rpc.Block.Set.Fields.Request](#anytype-Rpc-Block-Set-Fields-Request) | [Rpc.Block.Set.Fields.Response](#anytype-Rpc-Block-Set-Fields-Response) | | -| BlockSetRestrictions | [Rpc.Block.Set.Restrictions.Request](#anytype-Rpc-Block-Set-Restrictions-Request) | [Rpc.Block.Set.Restrictions.Response](#anytype-Rpc-Block-Set-Restrictions-Response) | | -| BlockListMove | [Rpc.BlockList.Move.Request](#anytype-Rpc-BlockList-Move-Request) | [Rpc.BlockList.Move.Response](#anytype-Rpc-BlockList-Move-Response) | | -| BlockListMoveToNewPage | [Rpc.BlockList.MoveToNewPage.Request](#anytype-Rpc-BlockList-MoveToNewPage-Request) | [Rpc.BlockList.MoveToNewPage.Response](#anytype-Rpc-BlockList-MoveToNewPage-Response) | | -| BlockListConvertChildrenToPages | [Rpc.BlockList.ConvertChildrenToPages.Request](#anytype-Rpc-BlockList-ConvertChildrenToPages-Request) | [Rpc.BlockList.ConvertChildrenToPages.Response](#anytype-Rpc-BlockList-ConvertChildrenToPages-Response) | | -| BlockListSetFields | [Rpc.BlockList.Set.Fields.Request](#anytype-Rpc-BlockList-Set-Fields-Request) | [Rpc.BlockList.Set.Fields.Response](#anytype-Rpc-BlockList-Set-Fields-Response) | | -| BlockListSetTextStyle | [Rpc.BlockList.Set.Text.Style.Request](#anytype-Rpc-BlockList-Set-Text-Style-Request) | [Rpc.BlockList.Set.Text.Style.Response](#anytype-Rpc-BlockList-Set-Text-Style-Response) | | -| BlockListDuplicate | [Rpc.BlockList.Duplicate.Request](#anytype-Rpc-BlockList-Duplicate-Request) | [Rpc.BlockList.Duplicate.Response](#anytype-Rpc-BlockList-Duplicate-Response) | | -| BlockListSetBackgroundColor | [Rpc.BlockList.Set.BackgroundColor.Request](#anytype-Rpc-BlockList-Set-BackgroundColor-Request) | [Rpc.BlockList.Set.BackgroundColor.Response](#anytype-Rpc-BlockList-Set-BackgroundColor-Response) | | -| BlockListSetAlign | [Rpc.BlockList.Set.Align.Request](#anytype-Rpc-BlockList-Set-Align-Request) | [Rpc.BlockList.Set.Align.Response](#anytype-Rpc-BlockList-Set-Align-Response) | | -| BlockListSetDivStyle | [Rpc.BlockList.Set.Div.Style.Request](#anytype-Rpc-BlockList-Set-Div-Style-Request) | [Rpc.BlockList.Set.Div.Style.Response](#anytype-Rpc-BlockList-Set-Div-Style-Response) | | -| BlockListSetFileStyle | [Rpc.BlockList.Set.File.Style.Request](#anytype-Rpc-BlockList-Set-File-Style-Request) | [Rpc.BlockList.Set.File.Style.Response](#anytype-Rpc-BlockList-Set-File-Style-Response) | | -| BlockListTurnInto | [Rpc.BlockList.TurnInto.Request](#anytype-Rpc-BlockList-TurnInto-Request) | [Rpc.BlockList.TurnInto.Response](#anytype-Rpc-BlockList-TurnInto-Response) | | -| BlockSetLatexText | [Rpc.Block.Set.Latex.Text.Request](#anytype-Rpc-Block-Set-Latex-Text-Request) | [Rpc.Block.Set.Latex.Text.Response](#anytype-Rpc-Block-Set-Latex-Text-Response) | | -| BlockSetTextText | [Rpc.Block.Set.Text.Text.Request](#anytype-Rpc-Block-Set-Text-Text-Request) | [Rpc.Block.Set.Text.Text.Response](#anytype-Rpc-Block-Set-Text-Text-Response) | | -| BlockSetTextColor | [Rpc.Block.Set.Text.Color.Request](#anytype-Rpc-Block-Set-Text-Color-Request) | [Rpc.Block.Set.Text.Color.Response](#anytype-Rpc-Block-Set-Text-Color-Response) | | -| BlockListSetTextColor | [Rpc.BlockList.Set.Text.Color.Request](#anytype-Rpc-BlockList-Set-Text-Color-Request) | [Rpc.BlockList.Set.Text.Color.Response](#anytype-Rpc-BlockList-Set-Text-Color-Response) | | -| BlockListSetTextMark | [Rpc.BlockList.Set.Text.Mark.Request](#anytype-Rpc-BlockList-Set-Text-Mark-Request) | [Rpc.BlockList.Set.Text.Mark.Response](#anytype-Rpc-BlockList-Set-Text-Mark-Response) | | -| BlockSetTextStyle | [Rpc.Block.Set.Text.Style.Request](#anytype-Rpc-Block-Set-Text-Style-Request) | [Rpc.Block.Set.Text.Style.Response](#anytype-Rpc-Block-Set-Text-Style-Response) | | -| BlockSetTextChecked | [Rpc.Block.Set.Text.Checked.Request](#anytype-Rpc-Block-Set-Text-Checked-Request) | [Rpc.Block.Set.Text.Checked.Response](#anytype-Rpc-Block-Set-Text-Checked-Response) | | -| BlockSetTextIcon | [Rpc.Block.Set.Text.Icon.Request](#anytype-Rpc-Block-Set-Text-Icon-Request) | [Rpc.Block.Set.Text.Icon.Response](#anytype-Rpc-Block-Set-Text-Icon-Response) | | -| BlockSplit | [Rpc.Block.Split.Request](#anytype-Rpc-Block-Split-Request) | [Rpc.Block.Split.Response](#anytype-Rpc-Block-Split-Response) | | -| BlockMerge | [Rpc.Block.Merge.Request](#anytype-Rpc-Block-Merge-Request) | [Rpc.Block.Merge.Response](#anytype-Rpc-Block-Merge-Response) | | -| BlockCopy | [Rpc.Block.Copy.Request](#anytype-Rpc-Block-Copy-Request) | [Rpc.Block.Copy.Response](#anytype-Rpc-Block-Copy-Response) | | -| BlockPaste | [Rpc.Block.Paste.Request](#anytype-Rpc-Block-Paste-Request) | [Rpc.Block.Paste.Response](#anytype-Rpc-Block-Paste-Response) | | -| BlockCut | [Rpc.Block.Cut.Request](#anytype-Rpc-Block-Cut-Request) | [Rpc.Block.Cut.Response](#anytype-Rpc-Block-Cut-Response) | | -| BlockExport | [Rpc.Block.Export.Request](#anytype-Rpc-Block-Export-Request) | [Rpc.Block.Export.Response](#anytype-Rpc-Block-Export-Response) | | -| BlockImportMarkdown | [Rpc.Block.ImportMarkdown.Request](#anytype-Rpc-Block-ImportMarkdown-Request) | [Rpc.Block.ImportMarkdown.Response](#anytype-Rpc-Block-ImportMarkdown-Response) | | -| BlockSetFileName | [Rpc.Block.Set.File.Name.Request](#anytype-Rpc-Block-Set-File-Name-Request) | [Rpc.Block.Set.File.Name.Response](#anytype-Rpc-Block-Set-File-Name-Response) | | -| BlockSetImageName | [Rpc.Block.Set.Image.Name.Request](#anytype-Rpc-Block-Set-Image-Name-Request) | [Rpc.Block.Set.Image.Name.Response](#anytype-Rpc-Block-Set-Image-Name-Response) | | -| BlockSetImageWidth | [Rpc.Block.Set.Image.Width.Request](#anytype-Rpc-Block-Set-Image-Width-Request) | [Rpc.Block.Set.Image.Width.Response](#anytype-Rpc-Block-Set-Image-Width-Response) | | -| BlockSetVideoName | [Rpc.Block.Set.Video.Name.Request](#anytype-Rpc-Block-Set-Video-Name-Request) | [Rpc.Block.Set.Video.Name.Response](#anytype-Rpc-Block-Set-Video-Name-Response) | | -| BlockSetVideoWidth | [Rpc.Block.Set.Video.Width.Request](#anytype-Rpc-Block-Set-Video-Width-Request) | [Rpc.Block.Set.Video.Width.Response](#anytype-Rpc-Block-Set-Video-Width-Response) | | -| BlockSetLinkTargetBlockId | [Rpc.Block.Set.Link.TargetBlockId.Request](#anytype-Rpc-Block-Set-Link-TargetBlockId-Request) | [Rpc.Block.Set.Link.TargetBlockId.Response](#anytype-Rpc-Block-Set-Link-TargetBlockId-Response) | | -| BlockBookmarkFetch | [Rpc.Block.Bookmark.Fetch.Request](#anytype-Rpc-Block-Bookmark-Fetch-Request) | [Rpc.Block.Bookmark.Fetch.Response](#anytype-Rpc-Block-Bookmark-Fetch-Response) | | -| BlockBookmarkCreateAndFetch | [Rpc.Block.Bookmark.CreateAndFetch.Request](#anytype-Rpc-Block-Bookmark-CreateAndFetch-Request) | [Rpc.Block.Bookmark.CreateAndFetch.Response](#anytype-Rpc-Block-Bookmark-CreateAndFetch-Response) | | -| BlockFileCreateAndUpload | [Rpc.Block.File.CreateAndUpload.Request](#anytype-Rpc-Block-File-CreateAndUpload-Request) | [Rpc.Block.File.CreateAndUpload.Response](#anytype-Rpc-Block-File-CreateAndUpload-Response) | | -| BlockRelationSetKey | [Rpc.Block.Relation.SetKey.Request](#anytype-Rpc-Block-Relation-SetKey-Request) | [Rpc.Block.Relation.SetKey.Response](#anytype-Rpc-Block-Relation-SetKey-Response) | | -| BlockRelationAdd | [Rpc.Block.Relation.Add.Request](#anytype-Rpc-Block-Relation-Add-Request) | [Rpc.Block.Relation.Add.Response](#anytype-Rpc-Block-Relation-Add-Response) | | -| BlockDataviewViewCreate | [Rpc.Block.Dataview.ViewCreate.Request](#anytype-Rpc-Block-Dataview-ViewCreate-Request) | [Rpc.Block.Dataview.ViewCreate.Response](#anytype-Rpc-Block-Dataview-ViewCreate-Response) | ## Dataview # View | -| BlockDataviewViewDelete | [Rpc.Block.Dataview.ViewDelete.Request](#anytype-Rpc-Block-Dataview-ViewDelete-Request) | [Rpc.Block.Dataview.ViewDelete.Response](#anytype-Rpc-Block-Dataview-ViewDelete-Response) | | -| BlockDataviewViewUpdate | [Rpc.Block.Dataview.ViewUpdate.Request](#anytype-Rpc-Block-Dataview-ViewUpdate-Request) | [Rpc.Block.Dataview.ViewUpdate.Response](#anytype-Rpc-Block-Dataview-ViewUpdate-Response) | | -| BlockDataviewViewSetActive | [Rpc.Block.Dataview.ViewSetActive.Request](#anytype-Rpc-Block-Dataview-ViewSetActive-Request) | [Rpc.Block.Dataview.ViewSetActive.Response](#anytype-Rpc-Block-Dataview-ViewSetActive-Response) | | -| BlockDataviewViewSetPosition | [Rpc.Block.Dataview.ViewSetPosition.Request](#anytype-Rpc-Block-Dataview-ViewSetPosition-Request) | [Rpc.Block.Dataview.ViewSetPosition.Response](#anytype-Rpc-Block-Dataview-ViewSetPosition-Response) | | -| BlockDataviewSetSource | [Rpc.Block.Dataview.SetSource.Request](#anytype-Rpc-Block-Dataview-SetSource-Request) | [Rpc.Block.Dataview.SetSource.Response](#anytype-Rpc-Block-Dataview-SetSource-Response) | | -| BlockDataviewRelationAdd | [Rpc.Block.Dataview.RelationAdd.Request](#anytype-Rpc-Block-Dataview-RelationAdd-Request) | [Rpc.Block.Dataview.RelationAdd.Response](#anytype-Rpc-Block-Dataview-RelationAdd-Response) | # Relation | -| BlockDataviewRelationUpdate | [Rpc.Block.Dataview.RelationUpdate.Request](#anytype-Rpc-Block-Dataview-RelationUpdate-Request) | [Rpc.Block.Dataview.RelationUpdate.Response](#anytype-Rpc-Block-Dataview-RelationUpdate-Response) | | -| BlockDataviewRelationDelete | [Rpc.Block.Dataview.RelationDelete.Request](#anytype-Rpc-Block-Dataview-RelationDelete-Request) | [Rpc.Block.Dataview.RelationDelete.Response](#anytype-Rpc-Block-Dataview-RelationDelete-Response) | | -| BlockDataviewRelationListAvailable | [Rpc.Block.Dataview.RelationListAvailable.Request](#anytype-Rpc-Block-Dataview-RelationListAvailable-Request) | [Rpc.Block.Dataview.RelationListAvailable.Response](#anytype-Rpc-Block-Dataview-RelationListAvailable-Response) | | -| BlockDataviewRecordCreate | [Rpc.Block.Dataview.RecordCreate.Request](#anytype-Rpc-Block-Dataview-RecordCreate-Request) | [Rpc.Block.Dataview.RecordCreate.Response](#anytype-Rpc-Block-Dataview-RecordCreate-Response) | # Record | -| BlockDataviewRecordUpdate | [Rpc.Block.Dataview.RecordUpdate.Request](#anytype-Rpc-Block-Dataview-RecordUpdate-Request) | [Rpc.Block.Dataview.RecordUpdate.Response](#anytype-Rpc-Block-Dataview-RecordUpdate-Response) | | -| BlockDataviewRecordDelete | [Rpc.Block.Dataview.RecordDelete.Request](#anytype-Rpc-Block-Dataview-RecordDelete-Request) | [Rpc.Block.Dataview.RecordDelete.Response](#anytype-Rpc-Block-Dataview-RecordDelete-Response) | | -| BlockDataviewRecordRelationOptionAdd | [Rpc.Block.Dataview.RecordRelationOptionAdd.Request](#anytype-Rpc-Block-Dataview-RecordRelationOptionAdd-Request) | [Rpc.Block.Dataview.RecordRelationOptionAdd.Response](#anytype-Rpc-Block-Dataview-RecordRelationOptionAdd-Response) | | -| BlockDataviewRecordRelationOptionUpdate | [Rpc.Block.Dataview.RecordRelationOptionUpdate.Request](#anytype-Rpc-Block-Dataview-RecordRelationOptionUpdate-Request) | [Rpc.Block.Dataview.RecordRelationOptionUpdate.Response](#anytype-Rpc-Block-Dataview-RecordRelationOptionUpdate-Response) | | -| BlockDataviewRecordRelationOptionDelete | [Rpc.Block.Dataview.RecordRelationOptionDelete.Request](#anytype-Rpc-Block-Dataview-RecordRelationOptionDelete-Request) | [Rpc.Block.Dataview.RecordRelationOptionDelete.Response](#anytype-Rpc-Block-Dataview-RecordRelationOptionDelete-Response) | | -| BlockObjectTypeSet | [Rpc.Block.ObjectType.Set.Request](#anytype-Rpc-Block-ObjectType-Set-Request) | [Rpc.Block.ObjectType.Set.Response](#anytype-Rpc-Block-ObjectType-Set-Response) | ## Object's relations set an existing object type to the object so it will appear in sets and suggests relations from this type TODO: rename BlockObjectTypeSet -> ObjectObjectTypeSet | -| NavigationListObjects | [Rpc.Navigation.ListObjects.Request](#anytype-Rpc-Navigation-ListObjects-Request) | [Rpc.Navigation.ListObjects.Response](#anytype-Rpc-Navigation-ListObjects-Response) | | -| NavigationGetObjectInfoWithLinks | [Rpc.Navigation.GetObjectInfoWithLinks.Request](#anytype-Rpc-Navigation-GetObjectInfoWithLinks-Request) | [Rpc.Navigation.GetObjectInfoWithLinks.Response](#anytype-Rpc-Navigation-GetObjectInfoWithLinks-Response) | | +| ObjectOpen | [Rpc.Object.Open.Request](#anytype-Rpc-Object-Open-Request) | [Rpc.Object.Open.Response](#anytype-Rpc-Object-Open-Response) | Object *** | +| ObjectClose | [Rpc.Object.Close.Request](#anytype-Rpc-Object-Close-Request) | [Rpc.Object.Close.Response](#anytype-Rpc-Object-Close-Response) | | +| ObjectShow | [Rpc.Object.Show.Request](#anytype-Rpc-Object-Show-Request) | [Rpc.Object.Show.Response](#anytype-Rpc-Object-Show-Response) | | +| ObjectCreate | [Rpc.Object.Create.Request](#anytype-Rpc-Object-Create-Request) | [Rpc.Object.Create.Response](#anytype-Rpc-Object-Create-Response) | ObjectCreate just creates the new page, without adding the link to it from some other page | +| ObjectCreateSet | [Rpc.Object.CreateSet.Request](#anytype-Rpc-Object-CreateSet-Request) | [Rpc.Object.CreateSet.Response](#anytype-Rpc-Object-CreateSet-Response) | ObjectCreateSet just creates the new set, without adding the link to it from some other page | | ObjectGraph | [Rpc.Object.Graph.Request](#anytype-Rpc-Object-Graph-Request) | [Rpc.Object.Graph.Response](#anytype-Rpc-Object-Graph-Response) | | | ObjectSearch | [Rpc.Object.Search.Request](#anytype-Rpc-Object-Search-Request) | [Rpc.Object.Search.Response](#anytype-Rpc-Object-Search-Response) | | | ObjectSearchSubscribe | [Rpc.Object.SearchSubscribe.Request](#anytype-Rpc-Object-SearchSubscribe-Request) | [Rpc.Object.SearchSubscribe.Response](#anytype-Rpc-Object-SearchSubscribe-Response) | | -| ObjectIdsSubscribe | [Rpc.Object.IdsSubscribe.Request](#anytype-Rpc-Object-IdsSubscribe-Request) | [Rpc.Object.IdsSubscribe.Response](#anytype-Rpc-Object-IdsSubscribe-Response) | | +| ObjectSubscribeIds | [Rpc.Object.SubscribeIds.Request](#anytype-Rpc-Object-SubscribeIds-Request) | [Rpc.Object.SubscribeIds.Response](#anytype-Rpc-Object-SubscribeIds-Response) | | | ObjectSearchUnsubscribe | [Rpc.Object.SearchUnsubscribe.Request](#anytype-Rpc-Object-SearchUnsubscribe-Request) | [Rpc.Object.SearchUnsubscribe.Response](#anytype-Rpc-Object-SearchUnsubscribe-Response) | | -| ObjectRelationAdd | [Rpc.Object.RelationAdd.Request](#anytype-Rpc-Object-RelationAdd-Request) | [Rpc.Object.RelationAdd.Response](#anytype-Rpc-Object-RelationAdd-Response) | | -| ObjectRelationUpdate | [Rpc.Object.RelationUpdate.Request](#anytype-Rpc-Object-RelationUpdate-Request) | [Rpc.Object.RelationUpdate.Response](#anytype-Rpc-Object-RelationUpdate-Response) | | -| ObjectRelationDelete | [Rpc.Object.RelationDelete.Request](#anytype-Rpc-Object-RelationDelete-Request) | [Rpc.Object.RelationDelete.Response](#anytype-Rpc-Object-RelationDelete-Response) | | -| ObjectRelationOptionAdd | [Rpc.Object.RelationOptionAdd.Request](#anytype-Rpc-Object-RelationOptionAdd-Request) | [Rpc.Object.RelationOptionAdd.Response](#anytype-Rpc-Object-RelationOptionAdd-Response) | | -| ObjectRelationOptionUpdate | [Rpc.Object.RelationOptionUpdate.Request](#anytype-Rpc-Object-RelationOptionUpdate-Request) | [Rpc.Object.RelationOptionUpdate.Response](#anytype-Rpc-Object-RelationOptionUpdate-Response) | | -| ObjectRelationOptionDelete | [Rpc.Object.RelationOptionDelete.Request](#anytype-Rpc-Object-RelationOptionDelete-Request) | [Rpc.Object.RelationOptionDelete.Response](#anytype-Rpc-Object-RelationOptionDelete-Response) | | -| ObjectRelationListAvailable | [Rpc.Object.RelationListAvailable.Request](#anytype-Rpc-Object-RelationListAvailable-Request) | [Rpc.Object.RelationListAvailable.Response](#anytype-Rpc-Object-RelationListAvailable-Response) | | +| ObjectSetDetails | [Rpc.Object.SetDetails.Request](#anytype-Rpc-Object-SetDetails-Request) | [Rpc.Object.SetDetails.Response](#anytype-Rpc-Object-SetDetails-Response) | | +| ObjectDuplicate | [Rpc.Object.Duplicate.Request](#anytype-Rpc-Object-Duplicate-Request) | [Rpc.Object.Duplicate.Response](#anytype-Rpc-Object-Duplicate-Response) | | +| ObjectSetObjectType | [Rpc.Object.SetObjectType.Request](#anytype-Rpc-Object-SetObjectType-Request) | [Rpc.Object.SetObjectType.Response](#anytype-Rpc-Object-SetObjectType-Response) | ObjectSetObjectType sets an existing object type to the object so it will appear in sets and suggests relations from this type | | ObjectSetLayout | [Rpc.Object.SetLayout.Request](#anytype-Rpc-Object-SetLayout-Request) | [Rpc.Object.SetLayout.Response](#anytype-Rpc-Object-SetLayout-Response) | | -| ObjectFeaturedRelationAdd | [Rpc.Object.FeaturedRelation.Add.Request](#anytype-Rpc-Object-FeaturedRelation-Add-Request) | [Rpc.Object.FeaturedRelation.Add.Response](#anytype-Rpc-Object-FeaturedRelation-Add-Response) | | -| ObjectFeaturedRelationRemove | [Rpc.Object.FeaturedRelation.Remove.Request](#anytype-Rpc-Object-FeaturedRelation-Remove-Request) | [Rpc.Object.FeaturedRelation.Remove.Response](#anytype-Rpc-Object-FeaturedRelation-Remove-Response) | | | ObjectSetIsFavorite | [Rpc.Object.SetIsFavorite.Request](#anytype-Rpc-Object-SetIsFavorite-Request) | [Rpc.Object.SetIsFavorite.Response](#anytype-Rpc-Object-SetIsFavorite-Response) | | | ObjectSetIsArchived | [Rpc.Object.SetIsArchived.Request](#anytype-Rpc-Object-SetIsArchived-Request) | [Rpc.Object.SetIsArchived.Response](#anytype-Rpc-Object-SetIsArchived-Response) | | +| ObjectListDuplicate | [Rpc.Object.ListDuplicate.Request](#anytype-Rpc-Object-ListDuplicate-Request) | [Rpc.Object.ListDuplicate.Response](#anytype-Rpc-Object-ListDuplicate-Response) | | +| ObjectListDelete | [Rpc.Object.ListDelete.Request](#anytype-Rpc-Object-ListDelete-Request) | [Rpc.Object.ListDelete.Response](#anytype-Rpc-Object-ListDelete-Response) | | +| ObjectListSetIsArchived | [Rpc.Object.ListSetIsArchived.Request](#anytype-Rpc-Object-ListSetIsArchived-Request) | [Rpc.Object.ListSetIsArchived.Response](#anytype-Rpc-Object-ListSetIsArchived-Response) | | +| ObjectListSetIsFavorite | [Rpc.Object.ListSetIsFavorite.Request](#anytype-Rpc-Object-ListSetIsFavorite-Request) | [Rpc.Object.ListSetIsFavorite.Response](#anytype-Rpc-Object-ListSetIsFavorite-Response) | | +| ObjectApplyTemplate | [Rpc.Object.ApplyTemplate.Request](#anytype-Rpc-Object-ApplyTemplate-Request) | [Rpc.Object.ApplyTemplate.Response](#anytype-Rpc-Object-ApplyTemplate-Response) | | | ObjectToSet | [Rpc.Object.ToSet.Request](#anytype-Rpc-Object-ToSet-Request) | [Rpc.Object.ToSet.Response](#anytype-Rpc-Object-ToSet-Response) | ObjectToSet creates new set from given object and removes object | -| ObjectListDuplicate | [Rpc.ObjectList.Duplicate.Request](#anytype-Rpc-ObjectList-Duplicate-Request) | [Rpc.ObjectList.Duplicate.Response](#anytype-Rpc-ObjectList-Duplicate-Response) | | -| ObjectListDelete | [Rpc.ObjectList.Delete.Request](#anytype-Rpc-ObjectList-Delete-Request) | [Rpc.ObjectList.Delete.Response](#anytype-Rpc-ObjectList-Delete-Response) | | -| ObjectListSetIsArchived | [Rpc.ObjectList.Set.IsArchived.Request](#anytype-Rpc-ObjectList-Set-IsArchived-Request) | [Rpc.ObjectList.Set.IsArchived.Response](#anytype-Rpc-ObjectList-Set-IsArchived-Response) | | -| ObjectListSetIsFavorite | [Rpc.ObjectList.Set.IsFavorite.Request](#anytype-Rpc-ObjectList-Set-IsFavorite-Request) | [Rpc.ObjectList.Set.IsFavorite.Response](#anytype-Rpc-ObjectList-Set-IsFavorite-Response) | | -| BlockSetDetails | [Rpc.Block.Set.Details.Request](#anytype-Rpc-Block-Set-Details-Request) | [Rpc.Block.Set.Details.Response](#anytype-Rpc-Block-Set-Details-Response) | TODO: rename BlockSetDetails -> ObjectSetDetails | -| PageCreate | [Rpc.Page.Create.Request](#anytype-Rpc-Page-Create-Request) | [Rpc.Page.Create.Response](#anytype-Rpc-Page-Create-Response) | PageCreate just creates the new page, without adding the link to it from some other page TODO: rename PageCreate -> ObjectCreate | -| SetCreate | [Rpc.Set.Create.Request](#anytype-Rpc-Set-Create-Request) | [Rpc.Set.Create.Response](#anytype-Rpc-Set-Create-Response) | SetCreate just creates the new set, without adding the link to it from some other page | -| MetricsSetParameters | [Rpc.Metrics.SetParameters.Request](#anytype-Rpc-Metrics-SetParameters-Request) | [Rpc.Metrics.SetParameters.Response](#anytype-Rpc-Metrics-SetParameters-Response) | | -| ObjectTypeCreate | [Rpc.ObjectType.Create.Request](#anytype-Rpc-ObjectType-Create-Request) | [Rpc.ObjectType.Create.Response](#anytype-Rpc-ObjectType-Create-Response) | ## ObjectType | +| ObjectAddWithObjectId | [Rpc.Object.AddWithObjectId.Request](#anytype-Rpc-Object-AddWithObjectId-Request) | [Rpc.Object.AddWithObjectId.Response](#anytype-Rpc-Object-AddWithObjectId-Response) | | +| ObjectShareByLink | [Rpc.Object.ShareByLink.Request](#anytype-Rpc-Object-ShareByLink-Request) | [Rpc.Object.ShareByLink.Response](#anytype-Rpc-Object-ShareByLink-Response) | | +| ObjectOpenBreadcrumbs | [Rpc.Object.OpenBreadcrumbs.Request](#anytype-Rpc-Object-OpenBreadcrumbs-Request) | [Rpc.Object.OpenBreadcrumbs.Response](#anytype-Rpc-Object-OpenBreadcrumbs-Response) | | +| ObjectSetBreadcrumbs | [Rpc.Object.SetBreadcrumbs.Request](#anytype-Rpc-Object-SetBreadcrumbs-Request) | [Rpc.Object.SetBreadcrumbs.Response](#anytype-Rpc-Object-SetBreadcrumbs-Response) | | +| ObjectUndo | [Rpc.Object.Undo.Request](#anytype-Rpc-Object-Undo-Request) | [Rpc.Object.Undo.Response](#anytype-Rpc-Object-Undo-Response) | | +| ObjectRedo | [Rpc.Object.Redo.Request](#anytype-Rpc-Object-Redo-Request) | [Rpc.Object.Redo.Response](#anytype-Rpc-Object-Redo-Response) | | +| ObjectImportMarkdown | [Rpc.Object.ImportMarkdown.Request](#anytype-Rpc-Object-ImportMarkdown-Request) | [Rpc.Object.ImportMarkdown.Response](#anytype-Rpc-Object-ImportMarkdown-Response) | | +| ObjectListExport | [Rpc.Object.ListExport.Request](#anytype-Rpc-Object-ListExport-Request) | [Rpc.Object.ListExport.Response](#anytype-Rpc-Object-ListExport-Response) | | +| ObjectRelationAdd | [Rpc.ObjectRelation.Add.Request](#anytype-Rpc-ObjectRelation-Add-Request) | [Rpc.ObjectRelation.Add.Response](#anytype-Rpc-ObjectRelation-Add-Response) | Object Relations *** | +| ObjectRelationUpdate | [Rpc.ObjectRelation.Update.Request](#anytype-Rpc-ObjectRelation-Update-Request) | [Rpc.ObjectRelation.Update.Response](#anytype-Rpc-ObjectRelation-Update-Response) | | +| ObjectRelationDelete | [Rpc.ObjectRelation.Delete.Request](#anytype-Rpc-ObjectRelation-Delete-Request) | [Rpc.ObjectRelation.Delete.Response](#anytype-Rpc-ObjectRelation-Delete-Response) | | +| ObjectRelationAddFeatured | [Rpc.ObjectRelation.AddFeatured.Request](#anytype-Rpc-ObjectRelation-AddFeatured-Request) | [Rpc.ObjectRelation.AddFeatured.Response](#anytype-Rpc-ObjectRelation-AddFeatured-Response) | | +| ObjectRelationRemoveFeatured | [Rpc.ObjectRelation.RemoveFeatured.Request](#anytype-Rpc-ObjectRelation-RemoveFeatured-Request) | [Rpc.ObjectRelation.RemoveFeatured.Response](#anytype-Rpc-ObjectRelation-RemoveFeatured-Response) | | +| ObjectRelationListAvailable | [Rpc.ObjectRelation.ListAvailable.Request](#anytype-Rpc-ObjectRelation-ListAvailable-Request) | [Rpc.ObjectRelation.ListAvailable.Response](#anytype-Rpc-ObjectRelation-ListAvailable-Response) | | +| ObjectRelationOptionAdd | [Rpc.ObjectRelationOption.Add.Request](#anytype-Rpc-ObjectRelationOption-Add-Request) | [Rpc.ObjectRelationOption.Add.Response](#anytype-Rpc-ObjectRelationOption-Add-Response) | | +| ObjectRelationOptionUpdate | [Rpc.ObjectRelationOption.Update.Request](#anytype-Rpc-ObjectRelationOption-Update-Request) | [Rpc.ObjectRelationOption.Update.Response](#anytype-Rpc-ObjectRelationOption-Update-Response) | | +| ObjectRelationOptionDelete | [Rpc.ObjectRelationOption.Delete.Request](#anytype-Rpc-ObjectRelationOption-Delete-Request) | [Rpc.ObjectRelationOption.Delete.Response](#anytype-Rpc-ObjectRelationOption-Delete-Response) | | +| ObjectTypeCreate | [Rpc.ObjectType.Create.Request](#anytype-Rpc-ObjectType-Create-Request) | [Rpc.ObjectType.Create.Response](#anytype-Rpc-ObjectType-Create-Response) | ObjectType commands *** | | ObjectTypeList | [Rpc.ObjectType.List.Request](#anytype-Rpc-ObjectType-List-Request) | [Rpc.ObjectType.List.Response](#anytype-Rpc-ObjectType-List-Response) | ObjectTypeList lists all object types both bundled and created by user | | ObjectTypeRelationList | [Rpc.ObjectType.Relation.List.Request](#anytype-Rpc-ObjectType-Relation-List-Request) | [Rpc.ObjectType.Relation.List.Response](#anytype-Rpc-ObjectType-Relation-List-Response) | | | ObjectTypeRelationAdd | [Rpc.ObjectType.Relation.Add.Request](#anytype-Rpc-ObjectType-Relation-Add-Request) | [Rpc.ObjectType.Relation.Add.Response](#anytype-Rpc-ObjectType-Relation-Add-Response) | | | ObjectTypeRelationUpdate | [Rpc.ObjectType.Relation.Update.Request](#anytype-Rpc-ObjectType-Relation-Update-Request) | [Rpc.ObjectType.Relation.Update.Response](#anytype-Rpc-ObjectType-Relation-Update-Response) | | | ObjectTypeRelationRemove | [Rpc.ObjectType.Relation.Remove.Request](#anytype-Rpc-ObjectType-Relation-Remove-Request) | [Rpc.ObjectType.Relation.Remove.Response](#anytype-Rpc-ObjectType-Relation-Remove-Response) | | -| Ping | [Rpc.Ping.Request](#anytype-Rpc-Ping-Request) | [Rpc.Ping.Response](#anytype-Rpc-Ping-Response) | | -| ProcessCancel | [Rpc.Process.Cancel.Request](#anytype-Rpc-Process-Cancel-Request) | [Rpc.Process.Cancel.Response](#anytype-Rpc-Process-Cancel-Response) | | -| HistoryShow | [Rpc.History.Show.Request](#anytype-Rpc-History-Show-Request) | [Rpc.History.Show.Response](#anytype-Rpc-History-Show-Response) | | -| HistoryVersions | [Rpc.History.Versions.Request](#anytype-Rpc-History-Versions-Request) | [Rpc.History.Versions.Response](#anytype-Rpc-History-Versions-Response) | | +| HistoryShowVersion | [Rpc.History.ShowVersion.Request](#anytype-Rpc-History-ShowVersion-Request) | [Rpc.History.ShowVersion.Response](#anytype-Rpc-History-ShowVersion-Response) | | +| HistoryGetVersions | [Rpc.History.GetVersions.Request](#anytype-Rpc-History-GetVersions-Request) | [Rpc.History.GetVersions.Response](#anytype-Rpc-History-GetVersions-Response) | | | HistorySetVersion | [Rpc.History.SetVersion.Request](#anytype-Rpc-History-SetVersion-Request) | [Rpc.History.SetVersion.Response](#anytype-Rpc-History-SetVersion-Response) | | -| Export | [Rpc.Export.Request](#anytype-Rpc-Export-Request) | [Rpc.Export.Response](#anytype-Rpc-Export-Response) | | -| ExportWorkspace | [Rpc.ExportWorkspace.Request](#anytype-Rpc-ExportWorkspace-Request) | [Rpc.ExportWorkspace.Response](#anytype-Rpc-ExportWorkspace-Response) | | -| ExportTemplates | [Rpc.ExportTemplates.Request](#anytype-Rpc-ExportTemplates-Request) | [Rpc.ExportTemplates.Response](#anytype-Rpc-ExportTemplates-Response) | | -| ExportLocalstore | [Rpc.ExportLocalstore.Request](#anytype-Rpc-ExportLocalstore-Request) | [Rpc.ExportLocalstore.Response](#anytype-Rpc-ExportLocalstore-Response) | | -| MakeTemplate | [Rpc.MakeTemplate.Request](#anytype-Rpc-MakeTemplate-Request) | [Rpc.MakeTemplate.Response](#anytype-Rpc-MakeTemplate-Response) | | -| MakeTemplateByObjectType | [Rpc.MakeTemplateByObjectType.Request](#anytype-Rpc-MakeTemplateByObjectType-Request) | [Rpc.MakeTemplateByObjectType.Response](#anytype-Rpc-MakeTemplateByObjectType-Response) | | -| CloneTemplate | [Rpc.CloneTemplate.Request](#anytype-Rpc-CloneTemplate-Request) | [Rpc.CloneTemplate.Response](#anytype-Rpc-CloneTemplate-Response) | | -| ObjectDuplicate | [Rpc.ObjectDuplicate.Request](#anytype-Rpc-ObjectDuplicate-Request) | [Rpc.ObjectDuplicate.Response](#anytype-Rpc-ObjectDuplicate-Response) | | -| UnsplashSearch | [Rpc.UnsplashSearch.Request](#anytype-Rpc-UnsplashSearch-Request) | [Rpc.UnsplashSearch.Response](#anytype-Rpc-UnsplashSearch-Response) | | -| UnsplashDownload | [Rpc.UnsplashDownload.Request](#anytype-Rpc-UnsplashDownload-Request) | [Rpc.UnsplashDownload.Response](#anytype-Rpc-UnsplashDownload-Response) | UnsplashDownload downloads picture from unsplash by ID, put it to the IPFS and returns the hash. The artist info is available in the object details | -| ApplyTemplate | [Rpc.ApplyTemplate.Request](#anytype-Rpc-ApplyTemplate-Request) | [Rpc.ApplyTemplate.Response](#anytype-Rpc-ApplyTemplate-Response) | | +| FileOffload | [Rpc.File.Offload.Request](#anytype-Rpc-File-Offload-Request) | [Rpc.File.Offload.Response](#anytype-Rpc-File-Offload-Response) | Files *** | +| FileListOffload | [Rpc.File.ListOffload.Request](#anytype-Rpc-File-ListOffload-Request) | [Rpc.File.ListOffload.Response](#anytype-Rpc-File-ListOffload-Response) | | +| FileUpload | [Rpc.File.Upload.Request](#anytype-Rpc-File-Upload-Request) | [Rpc.File.Upload.Response](#anytype-Rpc-File-Upload-Response) | | +| FileDownload | [Rpc.File.Download.Request](#anytype-Rpc-File-Download-Request) | [Rpc.File.Download.Response](#anytype-Rpc-File-Download-Response) | | +| FileDrop | [Rpc.File.Drop.Request](#anytype-Rpc-File-Drop-Request) | [Rpc.File.Drop.Response](#anytype-Rpc-File-Drop-Response) | | +| NavigationListObjects | [Rpc.Navigation.ListObjects.Request](#anytype-Rpc-Navigation-ListObjects-Request) | [Rpc.Navigation.ListObjects.Response](#anytype-Rpc-Navigation-ListObjects-Response) | | +| NavigationGetObjectInfoWithLinks | [Rpc.Navigation.GetObjectInfoWithLinks.Request](#anytype-Rpc-Navigation-GetObjectInfoWithLinks-Request) | [Rpc.Navigation.GetObjectInfoWithLinks.Response](#anytype-Rpc-Navigation-GetObjectInfoWithLinks-Response) | | +| TemplateCreateFromObject | [Rpc.Template.CreateFromObject.Request](#anytype-Rpc-Template-CreateFromObject-Request) | [Rpc.Template.CreateFromObject.Response](#anytype-Rpc-Template-CreateFromObject-Response) | | +| TemplateCreateFromObjectType | [Rpc.Template.CreateFromObjectType.Request](#anytype-Rpc-Template-CreateFromObjectType-Request) | [Rpc.Template.CreateFromObjectType.Response](#anytype-Rpc-Template-CreateFromObjectType-Response) | | +| TemplateClone | [Rpc.Template.Clone.Request](#anytype-Rpc-Template-Clone-Request) | [Rpc.Template.Clone.Response](#anytype-Rpc-Template-Clone-Response) | | +| TemplateExportAll | [Rpc.Template.ExportAll.Request](#anytype-Rpc-Template-ExportAll-Request) | [Rpc.Template.ExportAll.Response](#anytype-Rpc-Template-ExportAll-Response) | | +| LinkPreview | [Rpc.LinkPreview.Request](#anytype-Rpc-LinkPreview-Request) | [Rpc.LinkPreview.Response](#anytype-Rpc-LinkPreview-Response) | | +| UnsplashSearch | [Rpc.Unsplash.Search.Request](#anytype-Rpc-Unsplash-Search-Request) | [Rpc.Unsplash.Search.Response](#anytype-Rpc-Unsplash-Search-Response) | | +| UnsplashDownload | [Rpc.Unsplash.Download.Request](#anytype-Rpc-Unsplash-Download-Request) | [Rpc.Unsplash.Download.Response](#anytype-Rpc-Unsplash-Download-Response) | UnsplashDownload downloads picture from unsplash by ID, put it to the IPFS and returns the hash. The artist info is available in the object details | +| BlockUpload | [Rpc.Block.Upload.Request](#anytype-Rpc-Block-Upload-Request) | [Rpc.Block.Upload.Response](#anytype-Rpc-Block-Upload-Response) | General Block commands *** | +| BlockReplace | [Rpc.Block.Replace.Request](#anytype-Rpc-Block-Replace-Request) | [Rpc.Block.Replace.Response](#anytype-Rpc-Block-Replace-Response) | | +| BlockCreate | [Rpc.Block.Create.Request](#anytype-Rpc-Block-Create-Request) | [Rpc.Block.Create.Response](#anytype-Rpc-Block-Create-Response) | | +| BlockSplit | [Rpc.Block.Split.Request](#anytype-Rpc-Block-Split-Request) | [Rpc.Block.Split.Response](#anytype-Rpc-Block-Split-Response) | | +| BlockMerge | [Rpc.Block.Merge.Request](#anytype-Rpc-Block-Merge-Request) | [Rpc.Block.Merge.Response](#anytype-Rpc-Block-Merge-Response) | | +| BlockCopy | [Rpc.Block.Copy.Request](#anytype-Rpc-Block-Copy-Request) | [Rpc.Block.Copy.Response](#anytype-Rpc-Block-Copy-Response) | | +| BlockPaste | [Rpc.Block.Paste.Request](#anytype-Rpc-Block-Paste-Request) | [Rpc.Block.Paste.Response](#anytype-Rpc-Block-Paste-Response) | | +| BlockCut | [Rpc.Block.Cut.Request](#anytype-Rpc-Block-Cut-Request) | [Rpc.Block.Cut.Response](#anytype-Rpc-Block-Cut-Response) | | +| BlockSetFields | [Rpc.Block.SetFields.Request](#anytype-Rpc-Block-SetFields-Request) | [Rpc.Block.SetFields.Response](#anytype-Rpc-Block-SetFields-Response) | | +| BlockExport | [Rpc.Block.Export.Request](#anytype-Rpc-Block-Export-Request) | [Rpc.Block.Export.Response](#anytype-Rpc-Block-Export-Response) | | +| BlockListDelete | [Rpc.Block.ListDelete.Request](#anytype-Rpc-Block-ListDelete-Request) | [Rpc.Block.ListDelete.Response](#anytype-Rpc-Block-ListDelete-Response) | | +| BlockListMoveToExistingObject | [Rpc.Block.ListMoveToExistingObject.Request](#anytype-Rpc-Block-ListMoveToExistingObject-Request) | [Rpc.Block.ListMoveToExistingObject.Response](#anytype-Rpc-Block-ListMoveToExistingObject-Response) | | +| BlockListMoveToNewObject | [Rpc.Block.ListMoveToNewObject.Request](#anytype-Rpc-Block-ListMoveToNewObject-Request) | [Rpc.Block.ListMoveToNewObject.Response](#anytype-Rpc-Block-ListMoveToNewObject-Response) | | +| BlockListConvertToObjects | [Rpc.Block.ListConvertToObjects.Request](#anytype-Rpc-Block-ListConvertToObjects-Request) | [Rpc.Block.ListConvertToObjects.Response](#anytype-Rpc-Block-ListConvertToObjects-Response) | | +| BlockListSetFields | [Rpc.Block.ListSetFields.Request](#anytype-Rpc-Block-ListSetFields-Request) | [Rpc.Block.ListSetFields.Response](#anytype-Rpc-Block-ListSetFields-Response) | | +| BlockListDuplicate | [Rpc.Block.ListDuplicate.Request](#anytype-Rpc-Block-ListDuplicate-Request) | [Rpc.Block.ListDuplicate.Response](#anytype-Rpc-Block-ListDuplicate-Response) | | +| BlockListSetBackgroundColor | [Rpc.Block.ListSetBackgroundColor.Request](#anytype-Rpc-Block-ListSetBackgroundColor-Request) | [Rpc.Block.ListSetBackgroundColor.Response](#anytype-Rpc-Block-ListSetBackgroundColor-Response) | | +| BlockListSetAlign | [Rpc.Block.ListSetAlign.Request](#anytype-Rpc-Block-ListSetAlign-Request) | [Rpc.Block.ListSetAlign.Response](#anytype-Rpc-Block-ListSetAlign-Response) | | +| BlockListTurnInto | [Rpc.Block.ListTurnInto.Request](#anytype-Rpc-Block-ListTurnInto-Request) | [Rpc.Block.ListTurnInto.Response](#anytype-Rpc-Block-ListTurnInto-Response) | | +| BlockTextSetText | [Rpc.BlockText.SetText.Request](#anytype-Rpc-BlockText-SetText-Request) | [Rpc.BlockText.SetText.Response](#anytype-Rpc-BlockText-SetText-Response) | Text Block commands *** | +| BlockTextSetColor | [Rpc.BlockText.SetColor.Request](#anytype-Rpc-BlockText-SetColor-Request) | [Rpc.BlockText.SetColor.Response](#anytype-Rpc-BlockText-SetColor-Response) | | +| BlockTextSetStyle | [Rpc.BlockText.SetStyle.Request](#anytype-Rpc-BlockText-SetStyle-Request) | [Rpc.BlockText.SetStyle.Response](#anytype-Rpc-BlockText-SetStyle-Response) | | +| BlockTextSetChecked | [Rpc.BlockText.SetChecked.Request](#anytype-Rpc-BlockText-SetChecked-Request) | [Rpc.BlockText.SetChecked.Response](#anytype-Rpc-BlockText-SetChecked-Response) | | +| BlockTextSetIcon | [Rpc.BlockText.SetIcon.Request](#anytype-Rpc-BlockText-SetIcon-Request) | [Rpc.BlockText.SetIcon.Response](#anytype-Rpc-BlockText-SetIcon-Response) | | +| BlockTextListSetColor | [Rpc.BlockText.ListSetColor.Request](#anytype-Rpc-BlockText-ListSetColor-Request) | [Rpc.BlockText.ListSetColor.Response](#anytype-Rpc-BlockText-ListSetColor-Response) | | +| BlockTextListSetMark | [Rpc.BlockText.ListSetMark.Request](#anytype-Rpc-BlockText-ListSetMark-Request) | [Rpc.BlockText.ListSetMark.Response](#anytype-Rpc-BlockText-ListSetMark-Response) | | +| BlockTextListSetStyle | [Rpc.BlockText.ListSetStyle.Request](#anytype-Rpc-BlockText-ListSetStyle-Request) | [Rpc.BlockText.ListSetStyle.Response](#anytype-Rpc-BlockText-ListSetStyle-Response) | | +| BlockFileSetName | [Rpc.BlockFile.SetName.Request](#anytype-Rpc-BlockFile-SetName-Request) | [Rpc.BlockFile.SetName.Response](#anytype-Rpc-BlockFile-SetName-Response) | File block commands *** | +| BlockImageSetName | [Rpc.BlockImage.SetName.Request](#anytype-Rpc-BlockImage-SetName-Request) | [Rpc.BlockImage.SetName.Response](#anytype-Rpc-BlockImage-SetName-Response) | | +| BlockVideoSetName | [Rpc.BlockVideo.SetName.Request](#anytype-Rpc-BlockVideo-SetName-Request) | [Rpc.BlockVideo.SetName.Response](#anytype-Rpc-BlockVideo-SetName-Response) | | +| BlockFileCreateAndUpload | [Rpc.BlockFile.CreateAndUpload.Request](#anytype-Rpc-BlockFile-CreateAndUpload-Request) | [Rpc.BlockFile.CreateAndUpload.Response](#anytype-Rpc-BlockFile-CreateAndUpload-Response) | | +| BlockFileListSetStyle | [Rpc.BlockFile.ListSetStyle.Request](#anytype-Rpc-BlockFile-ListSetStyle-Request) | [Rpc.BlockFile.ListSetStyle.Response](#anytype-Rpc-BlockFile-ListSetStyle-Response) | | +| BlockDataviewViewCreate | [Rpc.BlockDataview.View.Create.Request](#anytype-Rpc-BlockDataview-View-Create-Request) | [Rpc.BlockDataview.View.Create.Response](#anytype-Rpc-BlockDataview-View-Create-Response) | Dataview block commands *** | +| BlockDataviewViewDelete | [Rpc.BlockDataview.View.Delete.Request](#anytype-Rpc-BlockDataview-View-Delete-Request) | [Rpc.BlockDataview.View.Delete.Response](#anytype-Rpc-BlockDataview-View-Delete-Response) | | +| BlockDataviewViewUpdate | [Rpc.BlockDataview.View.Update.Request](#anytype-Rpc-BlockDataview-View-Update-Request) | [Rpc.BlockDataview.View.Update.Response](#anytype-Rpc-BlockDataview-View-Update-Response) | | +| BlockDataviewViewSetActive | [Rpc.BlockDataview.View.SetActive.Request](#anytype-Rpc-BlockDataview-View-SetActive-Request) | [Rpc.BlockDataview.View.SetActive.Response](#anytype-Rpc-BlockDataview-View-SetActive-Response) | | +| BlockDataviewViewSetPosition | [Rpc.BlockDataview.View.SetPosition.Request](#anytype-Rpc-BlockDataview-View-SetPosition-Request) | [Rpc.BlockDataview.View.SetPosition.Response](#anytype-Rpc-BlockDataview-View-SetPosition-Response) | | +| BlockDataviewSetSource | [Rpc.BlockDataview.SetSource.Request](#anytype-Rpc-BlockDataview-SetSource-Request) | [Rpc.BlockDataview.SetSource.Response](#anytype-Rpc-BlockDataview-SetSource-Response) | | +| BlockDataviewRelationAdd | [Rpc.BlockDataview.Relation.Add.Request](#anytype-Rpc-BlockDataview-Relation-Add-Request) | [Rpc.BlockDataview.Relation.Add.Response](#anytype-Rpc-BlockDataview-Relation-Add-Response) | | +| BlockDataviewRelationUpdate | [Rpc.BlockDataview.Relation.Update.Request](#anytype-Rpc-BlockDataview-Relation-Update-Request) | [Rpc.BlockDataview.Relation.Update.Response](#anytype-Rpc-BlockDataview-Relation-Update-Response) | | +| BlockDataviewRelationDelete | [Rpc.BlockDataview.Relation.Delete.Request](#anytype-Rpc-BlockDataview-Relation-Delete-Request) | [Rpc.BlockDataview.Relation.Delete.Response](#anytype-Rpc-BlockDataview-Relation-Delete-Response) | | +| BlockDataviewRelationListAvailable | [Rpc.BlockDataview.Relation.ListAvailable.Request](#anytype-Rpc-BlockDataview-Relation-ListAvailable-Request) | [Rpc.BlockDataview.Relation.ListAvailable.Response](#anytype-Rpc-BlockDataview-Relation-ListAvailable-Response) | | +| BlockDataviewRecordCreate | [Rpc.BlockDataviewRecord.Create.Request](#anytype-Rpc-BlockDataviewRecord-Create-Request) | [Rpc.BlockDataviewRecord.Create.Response](#anytype-Rpc-BlockDataviewRecord-Create-Response) | | +| BlockDataviewRecordUpdate | [Rpc.BlockDataviewRecord.Update.Request](#anytype-Rpc-BlockDataviewRecord-Update-Request) | [Rpc.BlockDataviewRecord.Update.Response](#anytype-Rpc-BlockDataviewRecord-Update-Response) | | +| BlockDataviewRecordDelete | [Rpc.BlockDataviewRecord.Delete.Request](#anytype-Rpc-BlockDataviewRecord-Delete-Request) | [Rpc.BlockDataviewRecord.Delete.Response](#anytype-Rpc-BlockDataviewRecord-Delete-Response) | | +| BlockDataviewRecordRelationOptionAdd | [Rpc.BlockDataviewRecord.RelationOption.Add.Request](#anytype-Rpc-BlockDataviewRecord-RelationOption-Add-Request) | [Rpc.BlockDataviewRecord.RelationOption.Add.Response](#anytype-Rpc-BlockDataviewRecord-RelationOption-Add-Response) | | +| BlockDataviewRecordRelationOptionUpdate | [Rpc.BlockDataviewRecord.RelationOption.Update.Request](#anytype-Rpc-BlockDataviewRecord-RelationOption-Update-Request) | [Rpc.BlockDataviewRecord.RelationOption.Update.Response](#anytype-Rpc-BlockDataviewRecord-RelationOption-Update-Response) | | +| BlockDataviewRecordRelationOptionDelete | [Rpc.BlockDataviewRecord.RelationOption.Delete.Request](#anytype-Rpc-BlockDataviewRecord-RelationOption-Delete-Request) | [Rpc.BlockDataviewRecord.RelationOption.Delete.Response](#anytype-Rpc-BlockDataviewRecord-RelationOption-Delete-Response) | | +| BlockLinkCreateWithObject | [Rpc.BlockLink.CreateWithObject.Request](#anytype-Rpc-BlockLink-CreateWithObject-Request) | [Rpc.BlockLink.CreateWithObject.Response](#anytype-Rpc-BlockLink-CreateWithObject-Response) | Other specific block commands *** | +| BlockLinkListSetAppearance | [Rpc.BlockLink.ListSetAppearance.Request](#anytype-Rpc-BlockLink-ListSetAppearance-Request) | [Rpc.BlockLink.ListSetAppearance.Response](#anytype-Rpc-BlockLink-ListSetAppearance-Response) | | +| BlockBookmarkFetch | [Rpc.BlockBookmark.Fetch.Request](#anytype-Rpc-BlockBookmark-Fetch-Request) | [Rpc.BlockBookmark.Fetch.Response](#anytype-Rpc-BlockBookmark-Fetch-Response) | | +| BlockBookmarkCreateAndFetch | [Rpc.BlockBookmark.CreateAndFetch.Request](#anytype-Rpc-BlockBookmark-CreateAndFetch-Request) | [Rpc.BlockBookmark.CreateAndFetch.Response](#anytype-Rpc-BlockBookmark-CreateAndFetch-Response) | | +| BlockRelationSetKey | [Rpc.BlockRelation.SetKey.Request](#anytype-Rpc-BlockRelation-SetKey-Request) | [Rpc.BlockRelation.SetKey.Response](#anytype-Rpc-BlockRelation-SetKey-Response) | | +| BlockRelationAdd | [Rpc.BlockRelation.Add.Request](#anytype-Rpc-BlockRelation-Add-Request) | [Rpc.BlockRelation.Add.Response](#anytype-Rpc-BlockRelation-Add-Response) | | +| BlockDivListSetStyle | [Rpc.BlockDiv.ListSetStyle.Request](#anytype-Rpc-BlockDiv-ListSetStyle-Request) | [Rpc.BlockDiv.ListSetStyle.Response](#anytype-Rpc-BlockDiv-ListSetStyle-Response) | | +| BlockLatexSetText | [Rpc.BlockLatex.SetText.Request](#anytype-Rpc-BlockLatex-SetText-Request) | [Rpc.BlockLatex.SetText.Response](#anytype-Rpc-BlockLatex-SetText-Response) | | +| ProcessCancel | [Rpc.Process.Cancel.Request](#anytype-Rpc-Process-Cancel-Request) | [Rpc.Process.Cancel.Response](#anytype-Rpc-Process-Cancel-Response) | | +| LogSend | [Rpc.Log.Send.Request](#anytype-Rpc-Log-Send-Request) | [Rpc.Log.Send.Response](#anytype-Rpc-Log-Send-Response) | | | DebugSync | [Rpc.Debug.Sync.Request](#anytype-Rpc-Debug-Sync-Request) | [Rpc.Debug.Sync.Response](#anytype-Rpc-Debug-Sync-Response) | | | DebugThread | [Rpc.Debug.Thread.Request](#anytype-Rpc-Debug-Thread-Request) | [Rpc.Debug.Thread.Response](#anytype-Rpc-Debug-Thread-Response) | | | DebugTree | [Rpc.Debug.Tree.Request](#anytype-Rpc-Debug-Tree-Request) | [Rpc.Debug.Tree.Response](#anytype-Rpc-Debug-Tree-Response) | | +| DebugExportLocalstore | [Rpc.Debug.ExportLocalstore.Request](#anytype-Rpc-Debug-ExportLocalstore-Request) | [Rpc.Debug.ExportLocalstore.Response](#anytype-Rpc-Debug-ExportLocalstore-Response) | | +| DebugPing | [Rpc.Debug.Ping.Request](#anytype-Rpc-Debug-Ping-Request) | [Rpc.Debug.Ping.Response](#anytype-Rpc-Debug-Ping-Response) | | +| MetricsSetParameters | [Rpc.Metrics.SetParameters.Request](#anytype-Rpc-Metrics-SetParameters-Request) | [Rpc.Metrics.SetParameters.Response](#anytype-Rpc-Metrics-SetParameters-Response) | | | ListenEvents | [Empty](#anytype-Empty) | [Event](#anytype-Event) stream | used only for lib-server via grpc | @@ -1696,7 +1657,7 @@ Response – message from a middleware. ### Rpc.Account -Namespace, that agregates subtopics and actions, that relates to account. + @@ -1706,7 +1667,7 @@ Namespace, that agregates subtopics and actions, that relates to account. ### Rpc.Account.Config -TODO: use model from models.proto + | Field | Type | Label | Description | @@ -1839,6 +1800,36 @@ Middleware-to-front-end response for an account creation request, that can conta + + +### Rpc.Account.GetConfig + + + + + + + + + +### Rpc.Account.GetConfig.Get + + + + + + + + + +### Rpc.Account.GetConfig.Get.Request + + + + + + + ### Rpc.Account.Recover @@ -2007,9 +1998,9 @@ Middleware-to-front-end response for an account stop request - + -### Rpc.ApplyTemplate +### Rpc.App @@ -2017,46 +2008,159 @@ Middleware-to-front-end response for an account stop request - + -### Rpc.ApplyTemplate.Request +### Rpc.App.GetVersion + + + + + + + + + +### Rpc.App.GetVersion.Request + + + + + + + + + +### Rpc.App.GetVersion.Response | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | | -| templateId | [string](#string) | | id of template | +| error | [Rpc.App.GetVersion.Response.Error](#anytype-Rpc-App-GetVersion-Response-Error) | | | +| version | [string](#string) | | | +| details | [string](#string) | | build date, branch and commit | - + -### Rpc.ApplyTemplate.Response +### Rpc.App.GetVersion.Response.Error | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| error | [Rpc.ApplyTemplate.Response.Error](#anytype-Rpc-ApplyTemplate-Response-Error) | | | +| code | [Rpc.App.GetVersion.Response.Error.Code](#anytype-Rpc-App-GetVersion-Response-Error-Code) | | | +| description | [string](#string) | | | - + -### Rpc.ApplyTemplate.Response.Error +### Rpc.App.SetDeviceState + + + + + + + + + +### Rpc.App.SetDeviceState.Request | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| code | [Rpc.ApplyTemplate.Response.Error.Code](#anytype-Rpc-ApplyTemplate-Response-Error-Code) | | | +| deviceState | [Rpc.App.SetDeviceState.Request.DeviceState](#anytype-Rpc-App-SetDeviceState-Request-DeviceState) | | | + + + + + + + + +### Rpc.App.SetDeviceState.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.App.SetDeviceState.Response.Error](#anytype-Rpc-App-SetDeviceState-Response-Error) | | | + + + + + + + + +### Rpc.App.SetDeviceState.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.App.SetDeviceState.Response.Error.Code](#anytype-Rpc-App-SetDeviceState-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.App.Shutdown + + + + + + + + + +### Rpc.App.Shutdown.Request + + + + + + + + + +### Rpc.App.Shutdown.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.App.Shutdown.Response.Error](#anytype-Rpc-App-Shutdown-Response-Error) | | | + + + + + + + + +### Rpc.App.Shutdown.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.App.Shutdown.Response.Error.Code](#anytype-Rpc-App-Shutdown-Response-Error-Code) | | | | description | [string](#string) | | | @@ -2067,195 +2171,7 @@ Middleware-to-front-end response for an account stop request ### Rpc.Block -Namespace, that agregates subtopics and actions, that relates to blocks. - - - - - - - - -### Rpc.Block.Bookmark - - - - - - - - - -### Rpc.Block.Bookmark.CreateAndFetch - - - - - - - - - -### Rpc.Block.Bookmark.CreateAndFetch.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | | -| targetId | [string](#string) | | | -| position | [model.Block.Position](#anytype-model-Block-Position) | | | -| url | [string](#string) | | | - - - - - - - - -### Rpc.Block.Bookmark.CreateAndFetch.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.Bookmark.CreateAndFetch.Response.Error](#anytype-Rpc-Block-Bookmark-CreateAndFetch-Response-Error) | | | -| blockId | [string](#string) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | - - - - - - - - -### Rpc.Block.Bookmark.CreateAndFetch.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.Bookmark.CreateAndFetch.Response.Error.Code](#anytype-Rpc-Block-Bookmark-CreateAndFetch-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Block.Bookmark.Fetch - - - - - - - - - -### Rpc.Block.Bookmark.Fetch.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | | -| blockId | [string](#string) | | | -| url | [string](#string) | | | - - - - - - - - -### Rpc.Block.Bookmark.Fetch.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.Bookmark.Fetch.Response.Error](#anytype-Rpc-Block-Bookmark-Fetch-Response-Error) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | - - - - - - - - -### Rpc.Block.Bookmark.Fetch.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.Bookmark.Fetch.Response.Error.Code](#anytype-Rpc-Block-Bookmark-Fetch-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Block.Close -Block.Close – it means unsubscribe from a block. -Precondition: block should be opened. - - - - - - - - -### Rpc.Block.Close.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | id of the context blo1k | -| blockId | [string](#string) | | | - - - - - - - - -### Rpc.Block.Close.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.Close.Response.Error](#anytype-Rpc-Block-Close-Response-Error) | | | - - - - - - - - -### Rpc.Block.Close.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.Close.Response.Error.Code](#anytype-Rpc-Block-Close-Response-Error-Code) | | | -| description | [string](#string) | | | +Block commands @@ -2353,7 +2269,7 @@ common simple block command | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | id of the context block | +| contextId | [string](#string) | | id of the context object | | targetId | [string](#string) | | id of the closest block | | block | [model.Block](#anytype-model-Block) | | | | position | [model.Block.Position](#anytype-model-Block-Position) | | | @@ -2396,135 +2312,6 @@ common simple block command - - -### Rpc.Block.CreatePage - - - - - - - - - -### Rpc.Block.CreatePage.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | id of the context block | -| details | [google.protobuf.Struct](#google-protobuf-Struct) | | new page details | -| templateId | [string](#string) | | optional template id for creating from template | -| targetId | [string](#string) | | link block params - -id of the closest simple block | -| position | [model.Block.Position](#anytype-model-Block-Position) | | | -| fields | [google.protobuf.Struct](#google-protobuf-Struct) | | link block fields | - - - - - - - - -### Rpc.Block.CreatePage.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.CreatePage.Response.Error](#anytype-Rpc-Block-CreatePage-Response-Error) | | | -| blockId | [string](#string) | | | -| targetId | [string](#string) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | - - - - - - - - -### Rpc.Block.CreatePage.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.CreatePage.Response.Error.Code](#anytype-Rpc-Block-CreatePage-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Block.CreateSet - - - - - - - - - -### Rpc.Block.CreateSet.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | id of the context block | -| targetId | [string](#string) | | id of the closest block | -| source | [string](#string) | repeated | | -| details | [google.protobuf.Struct](#google-protobuf-Struct) | | details | -| position | [model.Block.Position](#anytype-model-Block-Position) | | | - - - - - - - - -### Rpc.Block.CreateSet.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.CreateSet.Response.Error](#anytype-Rpc-Block-CreateSet-Response-Error) | | | -| blockId | [string](#string) | | (optional) id of the link block pointing to this set | -| targetId | [string](#string) | | id of the new set | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | - - - - - - - - -### Rpc.Block.CreateSet.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.CreateSet.Response.Error.Code](#anytype-Rpc-Block-CreateSet-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - ### Rpc.Block.Cut @@ -2587,975 +2374,6 @@ id of the closest simple block | - - -### Rpc.Block.Dataview - - - - - - - - - -### Rpc.Block.Dataview.RecordCreate - - - - - - - - - -### Rpc.Block.Dataview.RecordCreate.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | | -| blockId | [string](#string) | | | -| record | [google.protobuf.Struct](#google-protobuf-Struct) | | | -| templateId | [string](#string) | | | - - - - - - - - -### Rpc.Block.Dataview.RecordCreate.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.Dataview.RecordCreate.Response.Error](#anytype-Rpc-Block-Dataview-RecordCreate-Response-Error) | | | -| record | [google.protobuf.Struct](#google-protobuf-Struct) | | | - - - - - - - - -### Rpc.Block.Dataview.RecordCreate.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.Dataview.RecordCreate.Response.Error.Code](#anytype-Rpc-Block-Dataview-RecordCreate-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Block.Dataview.RecordDelete - - - - - - - - - -### Rpc.Block.Dataview.RecordDelete.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | | -| blockId | [string](#string) | | | -| recordId | [string](#string) | | | - - - - - - - - -### Rpc.Block.Dataview.RecordDelete.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.Dataview.RecordDelete.Response.Error](#anytype-Rpc-Block-Dataview-RecordDelete-Response-Error) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | - - - - - - - - -### Rpc.Block.Dataview.RecordDelete.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.Dataview.RecordDelete.Response.Error.Code](#anytype-Rpc-Block-Dataview-RecordDelete-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Block.Dataview.RecordRelationOptionAdd -RecordRelationOptionAdd may return existing option in case object specified with recordId already have the option with the same name or ID - - - - - - - - -### Rpc.Block.Dataview.RecordRelationOptionAdd.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | | -| blockId | [string](#string) | | id of dataview block to add relation | -| relationKey | [string](#string) | | relation key to add the option | -| option | [model.Relation.Option](#anytype-model-Relation-Option) | | id of select options will be autogenerated | -| recordId | [string](#string) | | id of record which is used to add an option | - - - - - - - - -### Rpc.Block.Dataview.RecordRelationOptionAdd.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.Dataview.RecordRelationOptionAdd.Response.Error](#anytype-Rpc-Block-Dataview-RecordRelationOptionAdd-Response-Error) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | -| option | [model.Relation.Option](#anytype-model-Relation-Option) | | | - - - - - - - - -### Rpc.Block.Dataview.RecordRelationOptionAdd.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.Dataview.RecordRelationOptionAdd.Response.Error.Code](#anytype-Rpc-Block-Dataview-RecordRelationOptionAdd-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Block.Dataview.RecordRelationOptionDelete - - - - - - - - - -### Rpc.Block.Dataview.RecordRelationOptionDelete.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | | -| blockId | [string](#string) | | id of dataview block to add relation | -| relationKey | [string](#string) | | relation key to add the option | -| optionId | [string](#string) | | id of select options to remove | -| recordId | [string](#string) | | id of record which is used to delete an option | - - - - - - - - -### Rpc.Block.Dataview.RecordRelationOptionDelete.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.Dataview.RecordRelationOptionDelete.Response.Error](#anytype-Rpc-Block-Dataview-RecordRelationOptionDelete-Response-Error) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | - - - - - - - - -### Rpc.Block.Dataview.RecordRelationOptionDelete.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.Dataview.RecordRelationOptionDelete.Response.Error.Code](#anytype-Rpc-Block-Dataview-RecordRelationOptionDelete-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Block.Dataview.RecordRelationOptionUpdate - - - - - - - - - -### Rpc.Block.Dataview.RecordRelationOptionUpdate.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | | -| blockId | [string](#string) | | id of dataview block to add relation | -| relationKey | [string](#string) | | relation key to add the option | -| option | [model.Relation.Option](#anytype-model-Relation-Option) | | id of select options will be autogenerated | -| recordId | [string](#string) | | id of record which is used to update an option | - - - - - - - - -### Rpc.Block.Dataview.RecordRelationOptionUpdate.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.Dataview.RecordRelationOptionUpdate.Response.Error](#anytype-Rpc-Block-Dataview-RecordRelationOptionUpdate-Response-Error) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | - - - - - - - - -### Rpc.Block.Dataview.RecordRelationOptionUpdate.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.Dataview.RecordRelationOptionUpdate.Response.Error.Code](#anytype-Rpc-Block-Dataview-RecordRelationOptionUpdate-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Block.Dataview.RecordUpdate - - - - - - - - - -### Rpc.Block.Dataview.RecordUpdate.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | | -| blockId | [string](#string) | | | -| recordId | [string](#string) | | | -| record | [google.protobuf.Struct](#google-protobuf-Struct) | | | - - - - - - - - -### Rpc.Block.Dataview.RecordUpdate.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.Dataview.RecordUpdate.Response.Error](#anytype-Rpc-Block-Dataview-RecordUpdate-Response-Error) | | | - - - - - - - - -### Rpc.Block.Dataview.RecordUpdate.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.Dataview.RecordUpdate.Response.Error.Code](#anytype-Rpc-Block-Dataview-RecordUpdate-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Block.Dataview.RelationAdd - - - - - - - - - -### Rpc.Block.Dataview.RelationAdd.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | | -| blockId | [string](#string) | | id of dataview block to add relation | -| relation | [model.Relation](#anytype-model-Relation) | | | - - - - - - - - -### Rpc.Block.Dataview.RelationAdd.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.Dataview.RelationAdd.Response.Error](#anytype-Rpc-Block-Dataview-RelationAdd-Response-Error) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | -| relationKey | [string](#string) | | deprecated | -| relation | [model.Relation](#anytype-model-Relation) | | | - - - - - - - - -### Rpc.Block.Dataview.RelationAdd.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.Dataview.RelationAdd.Response.Error.Code](#anytype-Rpc-Block-Dataview-RelationAdd-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Block.Dataview.RelationDelete - - - - - - - - - -### Rpc.Block.Dataview.RelationDelete.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | | -| blockId | [string](#string) | | id of dataview block to add relation | -| relationKey | [string](#string) | | | - - - - - - - - -### Rpc.Block.Dataview.RelationDelete.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.Dataview.RelationDelete.Response.Error](#anytype-Rpc-Block-Dataview-RelationDelete-Response-Error) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | - - - - - - - - -### Rpc.Block.Dataview.RelationDelete.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.Dataview.RelationDelete.Response.Error.Code](#anytype-Rpc-Block-Dataview-RelationDelete-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Block.Dataview.RelationListAvailable - - - - - - - - - -### Rpc.Block.Dataview.RelationListAvailable.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | | -| blockId | [string](#string) | | | - - - - - - - - -### Rpc.Block.Dataview.RelationListAvailable.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.Dataview.RelationListAvailable.Response.Error](#anytype-Rpc-Block-Dataview-RelationListAvailable-Response-Error) | | | -| relations | [model.Relation](#anytype-model-Relation) | repeated | | - - - - - - - - -### Rpc.Block.Dataview.RelationListAvailable.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.Dataview.RelationListAvailable.Response.Error.Code](#anytype-Rpc-Block-Dataview-RelationListAvailable-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Block.Dataview.RelationUpdate - - - - - - - - - -### Rpc.Block.Dataview.RelationUpdate.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | | -| blockId | [string](#string) | | id of dataview block to add relation | -| relationKey | [string](#string) | | key of relation to update | -| relation | [model.Relation](#anytype-model-Relation) | | | - - - - - - - - -### Rpc.Block.Dataview.RelationUpdate.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.Dataview.RelationUpdate.Response.Error](#anytype-Rpc-Block-Dataview-RelationUpdate-Response-Error) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | - - - - - - - - -### Rpc.Block.Dataview.RelationUpdate.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.Dataview.RelationUpdate.Response.Error.Code](#anytype-Rpc-Block-Dataview-RelationUpdate-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Block.Dataview.SetSource - - - - - - - - - -### Rpc.Block.Dataview.SetSource.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | | -| blockId | [string](#string) | | | -| source | [string](#string) | repeated | | - - - - - - - - -### Rpc.Block.Dataview.SetSource.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.Dataview.SetSource.Response.Error](#anytype-Rpc-Block-Dataview-SetSource-Response-Error) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | - - - - - - - - -### Rpc.Block.Dataview.SetSource.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.Dataview.SetSource.Response.Error.Code](#anytype-Rpc-Block-Dataview-SetSource-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Block.Dataview.ViewCreate - - - - - - - - - -### Rpc.Block.Dataview.ViewCreate.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | | -| blockId | [string](#string) | | id of dataview block to insert the new block | -| view | [model.Block.Content.Dataview.View](#anytype-model-Block-Content-Dataview-View) | | | - - - - - - - - -### Rpc.Block.Dataview.ViewCreate.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.Dataview.ViewCreate.Response.Error](#anytype-Rpc-Block-Dataview-ViewCreate-Response-Error) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | -| viewId | [string](#string) | | | - - - - - - - - -### Rpc.Block.Dataview.ViewCreate.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.Dataview.ViewCreate.Response.Error.Code](#anytype-Rpc-Block-Dataview-ViewCreate-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Block.Dataview.ViewDelete - - - - - - - - - -### Rpc.Block.Dataview.ViewDelete.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | id of the context block | -| blockId | [string](#string) | | id of the dataview | -| viewId | [string](#string) | | id of the view to remove | - - - - - - - - -### Rpc.Block.Dataview.ViewDelete.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.Dataview.ViewDelete.Response.Error](#anytype-Rpc-Block-Dataview-ViewDelete-Response-Error) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | - - - - - - - - -### Rpc.Block.Dataview.ViewDelete.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.Dataview.ViewDelete.Response.Error.Code](#anytype-Rpc-Block-Dataview-ViewDelete-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Block.Dataview.ViewSetActive -set the current active view (persisted only within a session) - - - - - - - - -### Rpc.Block.Dataview.ViewSetActive.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | | -| blockId | [string](#string) | | id of dataview block | -| viewId | [string](#string) | | id of active view | -| offset | [uint32](#uint32) | | | -| limit | [uint32](#uint32) | | | - - - - - - - - -### Rpc.Block.Dataview.ViewSetActive.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.Dataview.ViewSetActive.Response.Error](#anytype-Rpc-Block-Dataview-ViewSetActive-Response-Error) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | - - - - - - - - -### Rpc.Block.Dataview.ViewSetActive.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.Dataview.ViewSetActive.Response.Error.Code](#anytype-Rpc-Block-Dataview-ViewSetActive-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Block.Dataview.ViewSetPosition - - - - - - - - - -### Rpc.Block.Dataview.ViewSetPosition.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | id of the context block | -| blockId | [string](#string) | | id of the dataview | -| viewId | [string](#string) | | id of the view to remove | -| position | [uint32](#uint32) | | index of view position (0 - means first) | - - - - - - - - -### Rpc.Block.Dataview.ViewSetPosition.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.Dataview.ViewSetPosition.Response.Error](#anytype-Rpc-Block-Dataview-ViewSetPosition-Response-Error) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | - - - - - - - - -### Rpc.Block.Dataview.ViewSetPosition.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.Dataview.ViewSetPosition.Response.Error.Code](#anytype-Rpc-Block-Dataview-ViewSetPosition-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Block.Dataview.ViewUpdate - - - - - - - - - -### Rpc.Block.Dataview.ViewUpdate.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | | -| blockId | [string](#string) | | id of dataview block to update | -| viewId | [string](#string) | | id of view to update | -| view | [model.Block.Content.Dataview.View](#anytype-model-Block-Content-Dataview-View) | | | - - - - - - - - -### Rpc.Block.Dataview.ViewUpdate.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.Dataview.ViewUpdate.Response.Error](#anytype-Rpc-Block-Dataview-ViewUpdate-Response-Error) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | - - - - - - - - -### Rpc.Block.Dataview.ViewUpdate.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.Dataview.ViewUpdate.Response.Error.Code](#anytype-Rpc-Block-Dataview-ViewUpdate-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - ### Rpc.Block.Download @@ -3673,9 +2491,9 @@ set the current active view (persisted only within a session) - + -### Rpc.Block.File +### Rpc.Block.ListConvertToObjects @@ -3683,46 +2501,152 @@ set the current active view (persisted only within a session) - + -### Rpc.Block.File.CreateAndUpload - - - - - - - - - -### Rpc.Block.File.CreateAndUpload.Request +### Rpc.Block.ListConvertToObjects.Request | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | contextId | [string](#string) | | | -| targetId | [string](#string) | | | +| blockIds | [string](#string) | repeated | | +| objectType | [string](#string) | | | + + + + + + + + +### Rpc.Block.ListConvertToObjects.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.Block.ListConvertToObjects.Response.Error](#anytype-Rpc-Block-ListConvertToObjects-Response-Error) | | | +| linkIds | [string](#string) | repeated | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | + + + + + + + + +### Rpc.Block.ListConvertToObjects.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.Block.ListConvertToObjects.Response.Error.Code](#anytype-Rpc-Block-ListConvertToObjects-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.Block.ListDelete +Remove blocks from the childrenIds of its parents + + + + + + + + +### Rpc.Block.ListDelete.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | id of the context object | +| blockIds | [string](#string) | repeated | targets to remove | + + + + + + + + +### Rpc.Block.ListDelete.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.Block.ListDelete.Response.Error](#anytype-Rpc-Block-ListDelete-Response-Error) | | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | + + + + + + + + +### Rpc.Block.ListDelete.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.Block.ListDelete.Response.Error.Code](#anytype-Rpc-Block-ListDelete-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.Block.ListDuplicate +Makes blocks copy by given ids and paste it to shown place + + + + + + + + +### Rpc.Block.ListDuplicate.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | id of the context object | +| targetId | [string](#string) | | id of the closest block | +| blockIds | [string](#string) | repeated | id of block for duplicate | | position | [model.Block.Position](#anytype-model-Block-Position) | | | -| url | [string](#string) | | | -| localPath | [string](#string) | | | -| fileType | [model.Block.Content.File.Type](#anytype-model-Block-Content-File-Type) | | | - + -### Rpc.Block.File.CreateAndUpload.Response +### Rpc.Block.ListDuplicate.Response | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.File.CreateAndUpload.Response.Error](#anytype-Rpc-Block-File-CreateAndUpload-Response-Error) | | | -| blockId | [string](#string) | | | +| error | [Rpc.Block.ListDuplicate.Response.Error](#anytype-Rpc-Block-ListDuplicate-Response-Error) | | | +| blockIds | [string](#string) | repeated | | | event | [ResponseEvent](#anytype-ResponseEvent) | | | @@ -3730,15 +2654,15 @@ set the current active view (persisted only within a session) - + -### Rpc.Block.File.CreateAndUpload.Response.Error +### Rpc.Block.ListDuplicate.Response.Error | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.File.CreateAndUpload.Response.Error.Code](#anytype-Rpc-Block-File-CreateAndUpload-Response-Error-Code) | | | +| code | [Rpc.Block.ListDuplicate.Response.Error.Code](#anytype-Rpc-Block-ListDuplicate-Response-Error-Code) | | | | description | [string](#string) | | | @@ -3746,9 +2670,9 @@ set the current active view (persisted only within a session) - + -### Rpc.Block.Get +### Rpc.Block.ListMoveToExistingObject @@ -3756,42 +2680,34 @@ set the current active view (persisted only within a session) - + -### Rpc.Block.Get.Marks -Get marks list in the selected range in text block. - - - - - - - - -### Rpc.Block.Get.Marks.Request +### Rpc.Block.ListMoveToExistingObject.Request | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | contextId | [string](#string) | | | -| blockId | [string](#string) | | | -| range | [model.Range](#anytype-model-Range) | | | +| blockIds | [string](#string) | repeated | | +| targetContextId | [string](#string) | | | +| dropTargetId | [string](#string) | | id of the simple block to insert considering position | +| position | [model.Block.Position](#anytype-model-Block-Position) | | position relatively to the dropTargetId simple block | - + -### Rpc.Block.Get.Marks.Response +### Rpc.Block.ListMoveToExistingObject.Response | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.Get.Marks.Response.Error](#anytype-Rpc-Block-Get-Marks-Response-Error) | | | +| error | [Rpc.Block.ListMoveToExistingObject.Response.Error](#anytype-Rpc-Block-ListMoveToExistingObject-Response-Error) | | | | event | [ResponseEvent](#anytype-ResponseEvent) | | | @@ -3799,15 +2715,15 @@ Get marks list in the selected range in text block. - + -### Rpc.Block.Get.Marks.Response.Error +### Rpc.Block.ListMoveToExistingObject.Response.Error | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.Get.Marks.Response.Error.Code](#anytype-Rpc-Block-Get-Marks-Response-Error-Code) | | | +| code | [Rpc.Block.ListMoveToExistingObject.Response.Error.Code](#anytype-Rpc-Block-ListMoveToExistingObject-Response-Error-Code) | | | | description | [string](#string) | | | @@ -3815,9 +2731,9 @@ Get marks list in the selected range in text block. - + -### Rpc.Block.GetPublicWebURL +### Rpc.Block.ListMoveToNewObject @@ -3825,89 +2741,35 @@ Get marks list in the selected range in text block. - + -### Rpc.Block.GetPublicWebURL.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| blockId | [string](#string) | | | - - - - - - - - -### Rpc.Block.GetPublicWebURL.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.GetPublicWebURL.Response.Error](#anytype-Rpc-Block-GetPublicWebURL-Response-Error) | | | -| url | [string](#string) | | | - - - - - - - - -### Rpc.Block.GetPublicWebURL.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.GetPublicWebURL.Response.Error.Code](#anytype-Rpc-Block-GetPublicWebURL-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Block.ImportMarkdown - - - - - - - - - -### Rpc.Block.ImportMarkdown.Request +### Rpc.Block.ListMoveToNewObject.Request | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | contextId | [string](#string) | | | -| importPath | [string](#string) | | | +| blockIds | [string](#string) | repeated | | +| details | [google.protobuf.Struct](#google-protobuf-Struct) | | new object details | +| dropTargetId | [string](#string) | | id of the simple block to insert considering position | +| position | [model.Block.Position](#anytype-model-Block-Position) | | position relatively to the dropTargetId simple block | - + -### Rpc.Block.ImportMarkdown.Response +### Rpc.Block.ListMoveToNewObject.Response | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.ImportMarkdown.Response.Error](#anytype-Rpc-Block-ImportMarkdown-Response-Error) | | | -| rootLinkIds | [string](#string) | repeated | | +| error | [Rpc.Block.ListMoveToNewObject.Response.Error](#anytype-Rpc-Block-ListMoveToNewObject-Response-Error) | | | +| linkId | [string](#string) | | | | event | [ResponseEvent](#anytype-ResponseEvent) | | | @@ -3915,15 +2777,15 @@ Get marks list in the selected range in text block. - + -### Rpc.Block.ImportMarkdown.Response.Error +### Rpc.Block.ListMoveToNewObject.Response.Error | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.ImportMarkdown.Response.Error.Code](#anytype-Rpc-Block-ImportMarkdown-Response-Error-Code) | | | +| code | [Rpc.Block.ListMoveToNewObject.Response.Error.Code](#anytype-Rpc-Block-ListMoveToNewObject-Response-Error-Code) | | | | description | [string](#string) | | | @@ -3931,6 +2793,306 @@ Get marks list in the selected range in text block. + + +### Rpc.Block.ListSetAlign + + + + + + + + + +### Rpc.Block.ListSetAlign.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | | +| blockIds | [string](#string) | repeated | when empty - align will be applied as layoutAlign | +| align | [model.Block.Align](#anytype-model-Block-Align) | | | + + + + + + + + +### Rpc.Block.ListSetAlign.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.Block.ListSetAlign.Response.Error](#anytype-Rpc-Block-ListSetAlign-Response-Error) | | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | + + + + + + + + +### Rpc.Block.ListSetAlign.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.Block.ListSetAlign.Response.Error.Code](#anytype-Rpc-Block-ListSetAlign-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.Block.ListSetBackgroundColor + + + + + + + + + +### Rpc.Block.ListSetBackgroundColor.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | | +| blockIds | [string](#string) | repeated | | +| color | [string](#string) | | | + + + + + + + + +### Rpc.Block.ListSetBackgroundColor.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.Block.ListSetBackgroundColor.Response.Error](#anytype-Rpc-Block-ListSetBackgroundColor-Response-Error) | | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | + + + + + + + + +### Rpc.Block.ListSetBackgroundColor.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.Block.ListSetBackgroundColor.Response.Error.Code](#anytype-Rpc-Block-ListSetBackgroundColor-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.Block.ListSetFields + + + + + + + + + +### Rpc.Block.ListSetFields.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | | +| blockFields | [Rpc.Block.ListSetFields.Request.BlockField](#anytype-Rpc-Block-ListSetFields-Request-BlockField) | repeated | | + + + + + + + + +### Rpc.Block.ListSetFields.Request.BlockField + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| blockId | [string](#string) | | | +| fields | [google.protobuf.Struct](#google-protobuf-Struct) | | | + + + + + + + + +### Rpc.Block.ListSetFields.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.Block.ListSetFields.Response.Error](#anytype-Rpc-Block-ListSetFields-Response-Error) | | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | + + + + + + + + +### Rpc.Block.ListSetFields.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.Block.ListSetFields.Response.Error.Code](#anytype-Rpc-Block-ListSetFields-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.Block.ListTurnInto + + + + + + + + + +### Rpc.Block.ListTurnInto.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | | +| blockIds | [string](#string) | repeated | | +| style | [model.Block.Content.Text.Style](#anytype-model-Block-Content-Text-Style) | | | + + + + + + + + +### Rpc.Block.ListTurnInto.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.Block.ListTurnInto.Response.Error](#anytype-Rpc-Block-ListTurnInto-Response-Error) | | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | + + + + + + + + +### Rpc.Block.ListTurnInto.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.Block.ListTurnInto.Response.Error.Code](#anytype-Rpc-Block-ListTurnInto-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.Block.ListUpdate + + + + + + + + + +### Rpc.Block.ListUpdate.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | | +| blockIds | [string](#string) | repeated | | +| text | [Rpc.Block.ListUpdate.Request.Text](#anytype-Rpc-Block-ListUpdate-Request-Text) | | | +| backgroundColor | [string](#string) | | | +| align | [model.Block.Align](#anytype-model-Block-Align) | | | +| fields | [google.protobuf.Struct](#google-protobuf-Struct) | | | +| divStyle | [model.Block.Content.Div.Style](#anytype-model-Block-Content-Div-Style) | | | +| fileStyle | [model.Block.Content.File.Style](#anytype-model-Block-Content-File-Style) | | | + + + + + + + + +### Rpc.Block.ListUpdate.Request.Text + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| style | [model.Block.Content.Text.Style](#anytype-model-Block-Content-Text-Style) | | | +| color | [string](#string) | | | +| mark | [model.Block.Content.Text.Mark](#anytype-model-Block-Content-Text-Mark) | | | + + + + + + ### Rpc.Block.Merge @@ -3990,206 +3152,6 @@ Get marks list in the selected range in text block. - - -### Rpc.Block.ObjectType - - - - - - - - - -### Rpc.Block.ObjectType.Set - - - - - - - - - -### Rpc.Block.ObjectType.Set.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | | -| objectTypeUrl | [string](#string) | | | - - - - - - - - -### Rpc.Block.ObjectType.Set.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.ObjectType.Set.Response.Error](#anytype-Rpc-Block-ObjectType-Set-Response-Error) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | - - - - - - - - -### Rpc.Block.ObjectType.Set.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.ObjectType.Set.Response.Error.Code](#anytype-Rpc-Block-ObjectType-Set-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Block.Open -Works with a smart blocks (block-organizers, like page, dashboard etc) -**Example scenario** -1A. On front-end start. - 1. Front -> MW: Rpc.Block.Open.Request(dashboard.id) - 2. MW -> Front: BlockShow(dashboard) - 3. MW -> Front: Rpc.Block.Open.Response(err) -1B. User clicks on a page icon on the dashboard. - 1. Front -> MW: Rpc.Block.Close.Request(dashboard.id) -Get close response first, then open request: - 2. MW -> Front: Rpc.Block.Close.Response(err) - 3. Front -> MW: Rpc.Block.Open.Request(page.id) - 4. MW -> Front: BlockShow(<page, blocks>) - 5. MW -> Front: Rpc.Block.Open.Response(err) -Image/Video/File blocks then: - 6. MW -> Front: BlockShow(<blocks>) - - - - - - - - -### Rpc.Block.Open.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | id of the context blo1k | -| blockId | [string](#string) | | | -| traceId | [string](#string) | | | - - - - - - - - -### Rpc.Block.Open.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.Open.Response.Error](#anytype-Rpc-Block-Open-Response-Error) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | - - - - - - - - -### Rpc.Block.Open.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.Open.Response.Error.Code](#anytype-Rpc-Block-Open-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Block.OpenBreadcrumbs - - - - - - - - - -### Rpc.Block.OpenBreadcrumbs.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | id of the context blo1k | -| traceId | [string](#string) | | | - - - - - - - - -### Rpc.Block.OpenBreadcrumbs.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.OpenBreadcrumbs.Response.Error](#anytype-Rpc-Block-OpenBreadcrumbs-Response-Error) | | | -| blockId | [string](#string) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | - - - - - - - - -### Rpc.Block.OpenBreadcrumbs.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.OpenBreadcrumbs.Response.Error.Code](#anytype-Rpc-Block-OpenBreadcrumbs-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - ### Rpc.Block.Paste @@ -4275,192 +3237,6 @@ Image/Video/File blocks then: - - -### Rpc.Block.Redo - - - - - - - - - -### Rpc.Block.Redo.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | id of the context block | - - - - - - - - -### Rpc.Block.Redo.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.Redo.Response.Error](#anytype-Rpc-Block-Redo-Response-Error) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | -| counters | [Rpc.Block.UndoRedoCounter](#anytype-Rpc-Block-UndoRedoCounter) | | | - - - - - - - - -### Rpc.Block.Redo.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.Redo.Response.Error.Code](#anytype-Rpc-Block-Redo-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Block.Relation - - - - - - - - - -### Rpc.Block.Relation.Add - - - - - - - - - -### Rpc.Block.Relation.Add.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | | -| blockId | [string](#string) | | | -| relation | [model.Relation](#anytype-model-Relation) | | | - - - - - - - - -### Rpc.Block.Relation.Add.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.Relation.Add.Response.Error](#anytype-Rpc-Block-Relation-Add-Response-Error) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | - - - - - - - - -### Rpc.Block.Relation.Add.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.Relation.Add.Response.Error.Code](#anytype-Rpc-Block-Relation-Add-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Block.Relation.SetKey - - - - - - - - - -### Rpc.Block.Relation.SetKey.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | | -| blockId | [string](#string) | | | -| key | [string](#string) | | | - - - - - - - - -### Rpc.Block.Relation.SetKey.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.Relation.SetKey.Response.Error](#anytype-Rpc-Block-Relation-SetKey-Response-Error) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | - - - - - - - - -### Rpc.Block.Relation.SetKey.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.Relation.SetKey.Response.Error.Code](#anytype-Rpc-Block-Relation-SetKey-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - ### Rpc.Block.Replace @@ -4521,9 +3297,9 @@ Image/Video/File blocks then: - + -### Rpc.Block.Set +### Rpc.Block.SetFields @@ -4531,93 +3307,9 @@ Image/Video/File blocks then: - + -### Rpc.Block.Set.Details - - - - - - - - - -### Rpc.Block.Set.Details.Detail - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| key | [string](#string) | | | -| value | [google.protobuf.Value](#google-protobuf-Value) | | NUll - removes key | - - - - - - - - -### Rpc.Block.Set.Details.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | | -| details | [Rpc.Block.Set.Details.Detail](#anytype-Rpc-Block-Set-Details-Detail) | repeated | | - - - - - - - - -### Rpc.Block.Set.Details.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.Set.Details.Response.Error](#anytype-Rpc-Block-Set-Details-Response-Error) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | - - - - - - - - -### Rpc.Block.Set.Details.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.Set.Details.Response.Error.Code](#anytype-Rpc-Block-Set-Details-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Block.Set.Fields - - - - - - - - - -### Rpc.Block.Set.Fields.Request +### Rpc.Block.SetFields.Request @@ -4632,15 +3324,15 @@ Image/Video/File blocks then: - + -### Rpc.Block.Set.Fields.Response +### Rpc.Block.SetFields.Response | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.Set.Fields.Response.Error](#anytype-Rpc-Block-Set-Fields-Response-Error) | | | +| error | [Rpc.Block.SetFields.Response.Error](#anytype-Rpc-Block-SetFields-Response-Error) | | | | event | [ResponseEvent](#anytype-ResponseEvent) | | | @@ -4648,1025 +3340,15 @@ Image/Video/File blocks then: - + -### Rpc.Block.Set.Fields.Response.Error +### Rpc.Block.SetFields.Response.Error | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.Set.Fields.Response.Error.Code](#anytype-Rpc-Block-Set-Fields-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Block.Set.File - - - - - - - - - -### Rpc.Block.Set.File.Name - - - - - - - - - -### Rpc.Block.Set.File.Name.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | | -| blockId | [string](#string) | | | -| name | [string](#string) | | | - - - - - - - - -### Rpc.Block.Set.File.Name.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.Set.File.Name.Response.Error](#anytype-Rpc-Block-Set-File-Name-Response-Error) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | - - - - - - - - -### Rpc.Block.Set.File.Name.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.Set.File.Name.Response.Error.Code](#anytype-Rpc-Block-Set-File-Name-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Block.Set.Image - - - - - - - - - -### Rpc.Block.Set.Image.Name - - - - - - - - - -### Rpc.Block.Set.Image.Name.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | | -| blockId | [string](#string) | | | -| name | [string](#string) | | | - - - - - - - - -### Rpc.Block.Set.Image.Name.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.Set.Image.Name.Response.Error](#anytype-Rpc-Block-Set-Image-Name-Response-Error) | | | - - - - - - - - -### Rpc.Block.Set.Image.Name.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.Set.Image.Name.Response.Error.Code](#anytype-Rpc-Block-Set-Image-Name-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Block.Set.Image.Width - - - - - - - - - -### Rpc.Block.Set.Image.Width.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | | -| blockId | [string](#string) | | | -| width | [int32](#int32) | | | - - - - - - - - -### Rpc.Block.Set.Image.Width.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.Set.Image.Width.Response.Error](#anytype-Rpc-Block-Set-Image-Width-Response-Error) | | | - - - - - - - - -### Rpc.Block.Set.Image.Width.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.Set.Image.Width.Response.Error.Code](#anytype-Rpc-Block-Set-Image-Width-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Block.Set.Latex - - - - - - - - - -### Rpc.Block.Set.Latex.Text - - - - - - - - - -### Rpc.Block.Set.Latex.Text.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | | -| blockId | [string](#string) | | | -| text | [string](#string) | | | - - - - - - - - -### Rpc.Block.Set.Latex.Text.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.Set.Latex.Text.Response.Error](#anytype-Rpc-Block-Set-Latex-Text-Response-Error) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | - - - - - - - - -### Rpc.Block.Set.Latex.Text.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.Set.Latex.Text.Response.Error.Code](#anytype-Rpc-Block-Set-Latex-Text-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Block.Set.Link - - - - - - - - - -### Rpc.Block.Set.Link.TargetBlockId - - - - - - - - - -### Rpc.Block.Set.Link.TargetBlockId.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | | -| blockId | [string](#string) | | | -| targetBlockId | [string](#string) | | | - - - - - - - - -### Rpc.Block.Set.Link.TargetBlockId.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.Set.Link.TargetBlockId.Response.Error](#anytype-Rpc-Block-Set-Link-TargetBlockId-Response-Error) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | - - - - - - - - -### Rpc.Block.Set.Link.TargetBlockId.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.Set.Link.TargetBlockId.Response.Error.Code](#anytype-Rpc-Block-Set-Link-TargetBlockId-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Block.Set.Page - - - - - - - - - -### Rpc.Block.Set.Page.IsArchived - - - - - - - - - -### Rpc.Block.Set.Page.IsArchived.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | | -| blockId | [string](#string) | | | -| isArchived | [bool](#bool) | | | - - - - - - - - -### Rpc.Block.Set.Page.IsArchived.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.Set.Page.IsArchived.Response.Error](#anytype-Rpc-Block-Set-Page-IsArchived-Response-Error) | | | - - - - - - - - -### Rpc.Block.Set.Page.IsArchived.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.Set.Page.IsArchived.Response.Error.Code](#anytype-Rpc-Block-Set-Page-IsArchived-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Block.Set.Restrictions - - - - - - - - - -### Rpc.Block.Set.Restrictions.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | | -| blockId | [string](#string) | | | -| restrictions | [model.Block.Restrictions](#anytype-model-Block-Restrictions) | | | - - - - - - - - -### Rpc.Block.Set.Restrictions.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.Set.Restrictions.Response.Error](#anytype-Rpc-Block-Set-Restrictions-Response-Error) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | - - - - - - - - -### Rpc.Block.Set.Restrictions.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.Set.Restrictions.Response.Error.Code](#anytype-Rpc-Block-Set-Restrictions-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Block.Set.Text - - - - - - - - - -### Rpc.Block.Set.Text.Checked - - - - - - - - - -### Rpc.Block.Set.Text.Checked.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | | -| blockId | [string](#string) | | | -| checked | [bool](#bool) | | | - - - - - - - - -### Rpc.Block.Set.Text.Checked.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.Set.Text.Checked.Response.Error](#anytype-Rpc-Block-Set-Text-Checked-Response-Error) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | - - - - - - - - -### Rpc.Block.Set.Text.Checked.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.Set.Text.Checked.Response.Error.Code](#anytype-Rpc-Block-Set-Text-Checked-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Block.Set.Text.Color - - - - - - - - - -### Rpc.Block.Set.Text.Color.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | | -| blockId | [string](#string) | | | -| color | [string](#string) | | | - - - - - - - - -### Rpc.Block.Set.Text.Color.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.Set.Text.Color.Response.Error](#anytype-Rpc-Block-Set-Text-Color-Response-Error) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | - - - - - - - - -### Rpc.Block.Set.Text.Color.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.Set.Text.Color.Response.Error.Code](#anytype-Rpc-Block-Set-Text-Color-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Block.Set.Text.Icon - - - - - - - - - -### Rpc.Block.Set.Text.Icon.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | | -| blockId | [string](#string) | | | -| iconImage | [string](#string) | | in case both image and emoji are set, image has a priority to show | -| iconEmoji | [string](#string) | | | - - - - - - - - -### Rpc.Block.Set.Text.Icon.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.Set.Text.Icon.Response.Error](#anytype-Rpc-Block-Set-Text-Icon-Response-Error) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | - - - - - - - - -### Rpc.Block.Set.Text.Icon.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.Set.Text.Icon.Response.Error.Code](#anytype-Rpc-Block-Set-Text-Icon-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Block.Set.Text.Style - - - - - - - - - -### Rpc.Block.Set.Text.Style.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | | -| blockId | [string](#string) | | | -| style | [model.Block.Content.Text.Style](#anytype-model-Block-Content-Text-Style) | | | - - - - - - - - -### Rpc.Block.Set.Text.Style.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.Set.Text.Style.Response.Error](#anytype-Rpc-Block-Set-Text-Style-Response-Error) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | - - - - - - - - -### Rpc.Block.Set.Text.Style.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.Set.Text.Style.Response.Error.Code](#anytype-Rpc-Block-Set-Text-Style-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Block.Set.Text.Text - - - - - - - - - -### Rpc.Block.Set.Text.Text.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | | -| blockId | [string](#string) | | | -| text | [string](#string) | | | -| marks | [model.Block.Content.Text.Marks](#anytype-model-Block-Content-Text-Marks) | | | - - - - - - - - -### Rpc.Block.Set.Text.Text.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.Set.Text.Text.Response.Error](#anytype-Rpc-Block-Set-Text-Text-Response-Error) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | - - - - - - - - -### Rpc.Block.Set.Text.Text.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.Set.Text.Text.Response.Error.Code](#anytype-Rpc-Block-Set-Text-Text-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Block.Set.Video - - - - - - - - - -### Rpc.Block.Set.Video.Name - - - - - - - - - -### Rpc.Block.Set.Video.Name.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | | -| blockId | [string](#string) | | | -| name | [string](#string) | | | - - - - - - - - -### Rpc.Block.Set.Video.Name.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.Set.Video.Name.Response.Error](#anytype-Rpc-Block-Set-Video-Name-Response-Error) | | | - - - - - - - - -### Rpc.Block.Set.Video.Name.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.Set.Video.Name.Response.Error.Code](#anytype-Rpc-Block-Set-Video-Name-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Block.Set.Video.Width - - - - - - - - - -### Rpc.Block.Set.Video.Width.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | | -| blockId | [string](#string) | | | -| width | [int32](#int32) | | | - - - - - - - - -### Rpc.Block.Set.Video.Width.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.Set.Video.Width.Response.Error](#anytype-Rpc-Block-Set-Video-Width-Response-Error) | | | - - - - - - - - -### Rpc.Block.Set.Video.Width.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.Set.Video.Width.Response.Error.Code](#anytype-Rpc-Block-Set-Video-Width-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Block.SetBreadcrumbs - - - - - - - - - -### Rpc.Block.SetBreadcrumbs.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| breadcrumbsId | [string](#string) | | | -| ids | [string](#string) | repeated | page ids | - - - - - - - - -### Rpc.Block.SetBreadcrumbs.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.SetBreadcrumbs.Response.Error](#anytype-Rpc-Block-SetBreadcrumbs-Response-Error) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | - - - - - - - - -### Rpc.Block.SetBreadcrumbs.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.SetBreadcrumbs.Response.Error.Code](#anytype-Rpc-Block-SetBreadcrumbs-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Block.Show - - - - - - - - - -### Rpc.Block.Show.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | id of the context blo1k | -| blockId | [string](#string) | | | -| traceId | [string](#string) | | | - - - - - - - - -### Rpc.Block.Show.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.Show.Response.Error](#anytype-Rpc-Block-Show-Response-Error) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | - - - - - - - - -### Rpc.Block.Show.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.Show.Response.Error.Code](#anytype-Rpc-Block-Show-Response-Error-Code) | | | +| code | [Rpc.Block.SetFields.Response.Error.Code](#anytype-Rpc-Block-SetFields-Response-Error-Code) | | | | description | [string](#string) | | | @@ -5736,197 +3418,6 @@ Image/Video/File blocks then: - - -### Rpc.Block.Undo - - - - - - - - - -### Rpc.Block.Undo.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | id of the context block | - - - - - - - - -### Rpc.Block.Undo.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.Undo.Response.Error](#anytype-Rpc-Block-Undo-Response-Error) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | -| counters | [Rpc.Block.UndoRedoCounter](#anytype-Rpc-Block-UndoRedoCounter) | | | - - - - - - - - -### Rpc.Block.Undo.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.Undo.Response.Error.Code](#anytype-Rpc-Block-Undo-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Block.UndoRedoCounter -Available undo/redo operations - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| undo | [int32](#int32) | | | -| redo | [int32](#int32) | | | - - - - - - - - -### Rpc.Block.Unlink -Remove blocks from the childrenIds of its parents - - - - - - - - -### Rpc.Block.Unlink.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | id of the context block | -| blockIds | [string](#string) | repeated | targets to remove | - - - - - - - - -### Rpc.Block.Unlink.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.Unlink.Response.Error](#anytype-Rpc-Block-Unlink-Response-Error) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | - - - - - - - - -### Rpc.Block.Unlink.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.Unlink.Response.Error.Code](#anytype-Rpc-Block-Unlink-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Block.UpdateContent - - - - - - - - - -### Rpc.Block.UpdateContent.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | | -| blockId | [string](#string) | | | -| block | [model.Block](#anytype-model-Block) | | | - - - - - - - - -### Rpc.Block.UpdateContent.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Block.UpdateContent.Response.Error](#anytype-Rpc-Block-UpdateContent-Response-Error) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | - - - - - - - - -### Rpc.Block.UpdateContent.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Block.UpdateContent.Response.Error.Code](#anytype-Rpc-Block-UpdateContent-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - ### Rpc.Block.Upload @@ -5987,9 +3478,9 @@ Remove blocks from the childrenIds of its parents - + -### Rpc.BlockList +### Rpc.BlockBookmark @@ -5997,9 +3488,9 @@ Remove blocks from the childrenIds of its parents - + -### Rpc.BlockList.ConvertChildrenToPages +### Rpc.BlockBookmark.CreateAndFetch @@ -6007,94 +3498,34 @@ Remove blocks from the childrenIds of its parents - + -### Rpc.BlockList.ConvertChildrenToPages.Request +### Rpc.BlockBookmark.CreateAndFetch.Request | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | contextId | [string](#string) | | | -| blockIds | [string](#string) | repeated | | -| objectType | [string](#string) | | | - - - - - - - - -### Rpc.BlockList.ConvertChildrenToPages.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.BlockList.ConvertChildrenToPages.Response.Error](#anytype-Rpc-BlockList-ConvertChildrenToPages-Response-Error) | | | -| linkIds | [string](#string) | repeated | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | - - - - - - - - -### Rpc.BlockList.ConvertChildrenToPages.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.BlockList.ConvertChildrenToPages.Response.Error.Code](#anytype-Rpc-BlockList-ConvertChildrenToPages-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.BlockList.Duplicate -Makes blocks copy by given ids and paste it to shown place - - - - - - - - -### Rpc.BlockList.Duplicate.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | id of the context block | -| targetId | [string](#string) | | id of the closest block | -| blockIds | [string](#string) | repeated | id of block for duplicate | +| targetId | [string](#string) | | | | position | [model.Block.Position](#anytype-model-Block-Position) | | | +| url | [string](#string) | | | - + -### Rpc.BlockList.Duplicate.Response +### Rpc.BlockBookmark.CreateAndFetch.Response | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| error | [Rpc.BlockList.Duplicate.Response.Error](#anytype-Rpc-BlockList-Duplicate-Response-Error) | | | -| blockIds | [string](#string) | repeated | | +| error | [Rpc.BlockBookmark.CreateAndFetch.Response.Error](#anytype-Rpc-BlockBookmark-CreateAndFetch-Response-Error) | | | +| blockId | [string](#string) | | | | event | [ResponseEvent](#anytype-ResponseEvent) | | | @@ -6102,15 +3533,15 @@ Makes blocks copy by given ids and paste it to shown place - + -### Rpc.BlockList.Duplicate.Response.Error +### Rpc.BlockBookmark.CreateAndFetch.Response.Error | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| code | [Rpc.BlockList.Duplicate.Response.Error.Code](#anytype-Rpc-BlockList-Duplicate-Response-Error-Code) | | | +| code | [Rpc.BlockBookmark.CreateAndFetch.Response.Error.Code](#anytype-Rpc-BlockBookmark-CreateAndFetch-Response-Error-Code) | | | | description | [string](#string) | | | @@ -6118,9 +3549,9 @@ Makes blocks copy by given ids and paste it to shown place - + -### Rpc.BlockList.Move +### Rpc.BlockBookmark.Fetch @@ -6128,34 +3559,32 @@ Makes blocks copy by given ids and paste it to shown place - + -### Rpc.BlockList.Move.Request +### Rpc.BlockBookmark.Fetch.Request | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | contextId | [string](#string) | | | -| blockIds | [string](#string) | repeated | | -| targetContextId | [string](#string) | | | -| dropTargetId | [string](#string) | | id of the simple block to insert considering position | -| position | [model.Block.Position](#anytype-model-Block-Position) | | position relatively to the dropTargetId simple block | +| blockId | [string](#string) | | | +| url | [string](#string) | | | - + -### Rpc.BlockList.Move.Response +### Rpc.BlockBookmark.Fetch.Response | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| error | [Rpc.BlockList.Move.Response.Error](#anytype-Rpc-BlockList-Move-Response-Error) | | | +| error | [Rpc.BlockBookmark.Fetch.Response.Error](#anytype-Rpc-BlockBookmark-Fetch-Response-Error) | | | | event | [ResponseEvent](#anytype-ResponseEvent) | | | @@ -6163,15 +3592,15 @@ Makes blocks copy by given ids and paste it to shown place - + -### Rpc.BlockList.Move.Response.Error +### Rpc.BlockBookmark.Fetch.Response.Error | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| code | [Rpc.BlockList.Move.Response.Error.Code](#anytype-Rpc-BlockList-Move-Response-Error-Code) | | | +| code | [Rpc.BlockBookmark.Fetch.Response.Error.Code](#anytype-Rpc-BlockBookmark-Fetch-Response-Error-Code) | | | | description | [string](#string) | | | @@ -6179,9 +3608,9 @@ Makes blocks copy by given ids and paste it to shown place - + -### Rpc.BlockList.MoveToNewPage +### Rpc.BlockDataview @@ -6189,51 +3618,70 @@ Makes blocks copy by given ids and paste it to shown place - + -### Rpc.BlockList.MoveToNewPage.Request +### Rpc.BlockDataview.Relation + + + + + + + + + +### Rpc.BlockDataview.Relation.Add + + + + + + + + + +### Rpc.BlockDataview.Relation.Add.Request | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | contextId | [string](#string) | | | -| blockIds | [string](#string) | repeated | | -| details | [google.protobuf.Struct](#google-protobuf-Struct) | | page details | -| dropTargetId | [string](#string) | | id of the simple block to insert considering position | -| position | [model.Block.Position](#anytype-model-Block-Position) | | position relatively to the dropTargetId simple block | +| blockId | [string](#string) | | id of dataview block to add relation | +| relation | [model.Relation](#anytype-model-Relation) | | | - + -### Rpc.BlockList.MoveToNewPage.Response +### Rpc.BlockDataview.Relation.Add.Response | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| error | [Rpc.BlockList.MoveToNewPage.Response.Error](#anytype-Rpc-BlockList-MoveToNewPage-Response-Error) | | | -| linkId | [string](#string) | | | +| error | [Rpc.BlockDataview.Relation.Add.Response.Error](#anytype-Rpc-BlockDataview-Relation-Add-Response-Error) | | | | event | [ResponseEvent](#anytype-ResponseEvent) | | | +| relationKey | [string](#string) | | deprecated | +| relation | [model.Relation](#anytype-model-Relation) | | | - + -### Rpc.BlockList.MoveToNewPage.Response.Error +### Rpc.BlockDataview.Relation.Add.Response.Error | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| code | [Rpc.BlockList.MoveToNewPage.Response.Error.Code](#anytype-Rpc-BlockList-MoveToNewPage-Response-Error-Code) | | | +| code | [Rpc.BlockDataview.Relation.Add.Response.Error.Code](#anytype-Rpc-BlockDataview-Relation-Add-Response-Error-Code) | | | | description | [string](#string) | | | @@ -6241,9 +3689,9 @@ Makes blocks copy by given ids and paste it to shown place - + -### Rpc.BlockList.Set +### Rpc.BlockDataview.Relation.Delete @@ -6251,42 +3699,32 @@ Makes blocks copy by given ids and paste it to shown place - + -### Rpc.BlockList.Set.Align - - - - - - - - - -### Rpc.BlockList.Set.Align.Request +### Rpc.BlockDataview.Relation.Delete.Request | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | contextId | [string](#string) | | | -| blockIds | [string](#string) | repeated | when empty - align will be applied as layoutAlign | -| align | [model.Block.Align](#anytype-model-Block-Align) | | | +| blockId | [string](#string) | | id of dataview block to add relation | +| relationKey | [string](#string) | | | - + -### Rpc.BlockList.Set.Align.Response +### Rpc.BlockDataview.Relation.Delete.Response | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| error | [Rpc.BlockList.Set.Align.Response.Error](#anytype-Rpc-BlockList-Set-Align-Response-Error) | | | +| error | [Rpc.BlockDataview.Relation.Delete.Response.Error](#anytype-Rpc-BlockDataview-Relation-Delete-Response-Error) | | | | event | [ResponseEvent](#anytype-ResponseEvent) | | | @@ -6294,15 +3732,15 @@ Makes blocks copy by given ids and paste it to shown place - + -### Rpc.BlockList.Set.Align.Response.Error +### Rpc.BlockDataview.Relation.Delete.Response.Error | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| code | [Rpc.BlockList.Set.Align.Response.Error.Code](#anytype-Rpc-BlockList-Set-Align-Response-Error-Code) | | | +| code | [Rpc.BlockDataview.Relation.Delete.Response.Error.Code](#anytype-Rpc-BlockDataview-Relation-Delete-Response-Error-Code) | | | | description | [string](#string) | | | @@ -6310,9 +3748,9 @@ Makes blocks copy by given ids and paste it to shown place - + -### Rpc.BlockList.Set.BackgroundColor +### Rpc.BlockDataview.Relation.ListAvailable @@ -6320,48 +3758,47 @@ Makes blocks copy by given ids and paste it to shown place - + -### Rpc.BlockList.Set.BackgroundColor.Request +### Rpc.BlockDataview.Relation.ListAvailable.Request | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | contextId | [string](#string) | | | -| blockIds | [string](#string) | repeated | | -| color | [string](#string) | | | +| blockId | [string](#string) | | | - + -### Rpc.BlockList.Set.BackgroundColor.Response +### Rpc.BlockDataview.Relation.ListAvailable.Response | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| error | [Rpc.BlockList.Set.BackgroundColor.Response.Error](#anytype-Rpc-BlockList-Set-BackgroundColor-Response-Error) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | +| error | [Rpc.BlockDataview.Relation.ListAvailable.Response.Error](#anytype-Rpc-BlockDataview-Relation-ListAvailable-Response-Error) | | | +| relations | [model.Relation](#anytype-model-Relation) | repeated | | - + -### Rpc.BlockList.Set.BackgroundColor.Response.Error +### Rpc.BlockDataview.Relation.ListAvailable.Response.Error | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| code | [Rpc.BlockList.Set.BackgroundColor.Response.Error.Code](#anytype-Rpc-BlockList-Set-BackgroundColor-Response-Error-Code) | | | +| code | [Rpc.BlockDataview.Relation.ListAvailable.Response.Error.Code](#anytype-Rpc-BlockDataview-Relation-ListAvailable-Response-Error-Code) | | | | description | [string](#string) | | | @@ -6369,9 +3806,9 @@ Makes blocks copy by given ids and paste it to shown place - + -### Rpc.BlockList.Set.Div +### Rpc.BlockDataview.Relation.Update @@ -6379,9 +3816,59 @@ Makes blocks copy by given ids and paste it to shown place - + -### Rpc.BlockList.Set.Div.Style +### Rpc.BlockDataview.Relation.Update.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | | +| blockId | [string](#string) | | id of dataview block to add relation | +| relationKey | [string](#string) | | key of relation to update | +| relation | [model.Relation](#anytype-model-Relation) | | | + + + + + + + + +### Rpc.BlockDataview.Relation.Update.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.BlockDataview.Relation.Update.Response.Error](#anytype-Rpc-BlockDataview-Relation-Update-Response-Error) | | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | + + + + + + + + +### Rpc.BlockDataview.Relation.Update.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.BlockDataview.Relation.Update.Response.Error.Code](#anytype-Rpc-BlockDataview-Relation-Update-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.BlockDataview.SetSource @@ -6389,9 +3876,770 @@ Makes blocks copy by given ids and paste it to shown place - + -### Rpc.BlockList.Set.Div.Style.Request +### Rpc.BlockDataview.SetSource.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | | +| blockId | [string](#string) | | | +| source | [string](#string) | repeated | | + + + + + + + + +### Rpc.BlockDataview.SetSource.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.BlockDataview.SetSource.Response.Error](#anytype-Rpc-BlockDataview-SetSource-Response-Error) | | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | + + + + + + + + +### Rpc.BlockDataview.SetSource.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.BlockDataview.SetSource.Response.Error.Code](#anytype-Rpc-BlockDataview-SetSource-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.BlockDataview.View + + + + + + + + + +### Rpc.BlockDataview.View.Create + + + + + + + + + +### Rpc.BlockDataview.View.Create.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | | +| blockId | [string](#string) | | id of dataview block to insert the new block | +| view | [model.Block.Content.Dataview.View](#anytype-model-Block-Content-Dataview-View) | | | + + + + + + + + +### Rpc.BlockDataview.View.Create.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.BlockDataview.View.Create.Response.Error](#anytype-Rpc-BlockDataview-View-Create-Response-Error) | | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | +| viewId | [string](#string) | | | + + + + + + + + +### Rpc.BlockDataview.View.Create.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.BlockDataview.View.Create.Response.Error.Code](#anytype-Rpc-BlockDataview-View-Create-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.BlockDataview.View.Delete + + + + + + + + + +### Rpc.BlockDataview.View.Delete.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | id of the context object | +| blockId | [string](#string) | | id of the dataview | +| viewId | [string](#string) | | id of the view to remove | + + + + + + + + +### Rpc.BlockDataview.View.Delete.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.BlockDataview.View.Delete.Response.Error](#anytype-Rpc-BlockDataview-View-Delete-Response-Error) | | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | + + + + + + + + +### Rpc.BlockDataview.View.Delete.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.BlockDataview.View.Delete.Response.Error.Code](#anytype-Rpc-BlockDataview-View-Delete-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.BlockDataview.View.SetActive +set the current active view (persisted only within a session) + + + + + + + + +### Rpc.BlockDataview.View.SetActive.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | | +| blockId | [string](#string) | | id of dataview block | +| viewId | [string](#string) | | id of active view | +| offset | [uint32](#uint32) | | | +| limit | [uint32](#uint32) | | | + + + + + + + + +### Rpc.BlockDataview.View.SetActive.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.BlockDataview.View.SetActive.Response.Error](#anytype-Rpc-BlockDataview-View-SetActive-Response-Error) | | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | + + + + + + + + +### Rpc.BlockDataview.View.SetActive.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.BlockDataview.View.SetActive.Response.Error.Code](#anytype-Rpc-BlockDataview-View-SetActive-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.BlockDataview.View.SetPosition + + + + + + + + + +### Rpc.BlockDataview.View.SetPosition.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | id of the context object | +| blockId | [string](#string) | | id of the dataview | +| viewId | [string](#string) | | id of the view to remove | +| position | [uint32](#uint32) | | index of view position (0 - means first) | + + + + + + + + +### Rpc.BlockDataview.View.SetPosition.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.BlockDataview.View.SetPosition.Response.Error](#anytype-Rpc-BlockDataview-View-SetPosition-Response-Error) | | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | + + + + + + + + +### Rpc.BlockDataview.View.SetPosition.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.BlockDataview.View.SetPosition.Response.Error.Code](#anytype-Rpc-BlockDataview-View-SetPosition-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.BlockDataview.View.Update + + + + + + + + + +### Rpc.BlockDataview.View.Update.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | | +| blockId | [string](#string) | | id of dataview block to update | +| viewId | [string](#string) | | id of view to update | +| view | [model.Block.Content.Dataview.View](#anytype-model-Block-Content-Dataview-View) | | | + + + + + + + + +### Rpc.BlockDataview.View.Update.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.BlockDataview.View.Update.Response.Error](#anytype-Rpc-BlockDataview-View-Update-Response-Error) | | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | + + + + + + + + +### Rpc.BlockDataview.View.Update.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.BlockDataview.View.Update.Response.Error.Code](#anytype-Rpc-BlockDataview-View-Update-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.BlockDataviewRecord + + + + + + + + + +### Rpc.BlockDataviewRecord.Create + + + + + + + + + +### Rpc.BlockDataviewRecord.Create.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | | +| blockId | [string](#string) | | | +| record | [google.protobuf.Struct](#google-protobuf-Struct) | | | +| templateId | [string](#string) | | | + + + + + + + + +### Rpc.BlockDataviewRecord.Create.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.BlockDataviewRecord.Create.Response.Error](#anytype-Rpc-BlockDataviewRecord-Create-Response-Error) | | | +| record | [google.protobuf.Struct](#google-protobuf-Struct) | | | + + + + + + + + +### Rpc.BlockDataviewRecord.Create.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.BlockDataviewRecord.Create.Response.Error.Code](#anytype-Rpc-BlockDataviewRecord-Create-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.BlockDataviewRecord.Delete + + + + + + + + + +### Rpc.BlockDataviewRecord.Delete.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | | +| blockId | [string](#string) | | | +| recordId | [string](#string) | | | + + + + + + + + +### Rpc.BlockDataviewRecord.Delete.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.BlockDataviewRecord.Delete.Response.Error](#anytype-Rpc-BlockDataviewRecord-Delete-Response-Error) | | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | + + + + + + + + +### Rpc.BlockDataviewRecord.Delete.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.BlockDataviewRecord.Delete.Response.Error.Code](#anytype-Rpc-BlockDataviewRecord-Delete-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.BlockDataviewRecord.RelationOption + + + + + + + + + +### Rpc.BlockDataviewRecord.RelationOption.Add +Add may return existing option in case object specified with recordId already have the option with the same name or ID + + + + + + + + +### Rpc.BlockDataviewRecord.RelationOption.Add.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | | +| blockId | [string](#string) | | id of dataview block to add relation | +| relationKey | [string](#string) | | relation key to add the option | +| option | [model.Relation.Option](#anytype-model-Relation-Option) | | id of select options will be autogenerated | +| recordId | [string](#string) | | id of record which is used to add an option | + + + + + + + + +### Rpc.BlockDataviewRecord.RelationOption.Add.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.BlockDataviewRecord.RelationOption.Add.Response.Error](#anytype-Rpc-BlockDataviewRecord-RelationOption-Add-Response-Error) | | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | +| option | [model.Relation.Option](#anytype-model-Relation-Option) | | | + + + + + + + + +### Rpc.BlockDataviewRecord.RelationOption.Add.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.BlockDataviewRecord.RelationOption.Add.Response.Error.Code](#anytype-Rpc-BlockDataviewRecord-RelationOption-Add-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.BlockDataviewRecord.RelationOption.Delete + + + + + + + + + +### Rpc.BlockDataviewRecord.RelationOption.Delete.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | | +| blockId | [string](#string) | | id of dataview block to add relation | +| relationKey | [string](#string) | | relation key to add the option | +| optionId | [string](#string) | | id of select options to remove | +| recordId | [string](#string) | | id of record which is used to delete an option | + + + + + + + + +### Rpc.BlockDataviewRecord.RelationOption.Delete.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.BlockDataviewRecord.RelationOption.Delete.Response.Error](#anytype-Rpc-BlockDataviewRecord-RelationOption-Delete-Response-Error) | | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | + + + + + + + + +### Rpc.BlockDataviewRecord.RelationOption.Delete.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.BlockDataviewRecord.RelationOption.Delete.Response.Error.Code](#anytype-Rpc-BlockDataviewRecord-RelationOption-Delete-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.BlockDataviewRecord.RelationOption.Update + + + + + + + + + +### Rpc.BlockDataviewRecord.RelationOption.Update.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | | +| blockId | [string](#string) | | id of dataview block to add relation | +| relationKey | [string](#string) | | relation key to add the option | +| option | [model.Relation.Option](#anytype-model-Relation-Option) | | id of select options will be autogenerated | +| recordId | [string](#string) | | id of record which is used to update an option | + + + + + + + + +### Rpc.BlockDataviewRecord.RelationOption.Update.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.BlockDataviewRecord.RelationOption.Update.Response.Error](#anytype-Rpc-BlockDataviewRecord-RelationOption-Update-Response-Error) | | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | + + + + + + + + +### Rpc.BlockDataviewRecord.RelationOption.Update.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.BlockDataviewRecord.RelationOption.Update.Response.Error.Code](#anytype-Rpc-BlockDataviewRecord-RelationOption-Update-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.BlockDataviewRecord.Update + + + + + + + + + +### Rpc.BlockDataviewRecord.Update.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | | +| blockId | [string](#string) | | | +| recordId | [string](#string) | | | +| record | [google.protobuf.Struct](#google-protobuf-Struct) | | | + + + + + + + + +### Rpc.BlockDataviewRecord.Update.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.BlockDataviewRecord.Update.Response.Error](#anytype-Rpc-BlockDataviewRecord-Update-Response-Error) | | | + + + + + + + + +### Rpc.BlockDataviewRecord.Update.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.BlockDataviewRecord.Update.Response.Error.Code](#anytype-Rpc-BlockDataviewRecord-Update-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.BlockDiv + + + + + + + + + +### Rpc.BlockDiv.ListSetStyle + + + + + + + + + +### Rpc.BlockDiv.ListSetStyle.Request @@ -6406,15 +4654,15 @@ Makes blocks copy by given ids and paste it to shown place - + -### Rpc.BlockList.Set.Div.Style.Response +### Rpc.BlockDiv.ListSetStyle.Response | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| error | [Rpc.BlockList.Set.Div.Style.Response.Error](#anytype-Rpc-BlockList-Set-Div-Style-Response-Error) | | | +| error | [Rpc.BlockDiv.ListSetStyle.Response.Error](#anytype-Rpc-BlockDiv-ListSetStyle-Response-Error) | | | | event | [ResponseEvent](#anytype-ResponseEvent) | | | @@ -6422,15 +4670,15 @@ Makes blocks copy by given ids and paste it to shown place - + -### Rpc.BlockList.Set.Div.Style.Response.Error +### Rpc.BlockDiv.ListSetStyle.Response.Error | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| code | [Rpc.BlockList.Set.Div.Style.Response.Error.Code](#anytype-Rpc-BlockList-Set-Div-Style-Response-Error-Code) | | | +| code | [Rpc.BlockDiv.ListSetStyle.Response.Error.Code](#anytype-Rpc-BlockDiv-ListSetStyle-Response-Error-Code) | | | | description | [string](#string) | | | @@ -6438,9 +4686,9 @@ Makes blocks copy by given ids and paste it to shown place - + -### Rpc.BlockList.Set.Fields +### Rpc.BlockFile @@ -6448,47 +4696,46 @@ Makes blocks copy by given ids and paste it to shown place - + -### Rpc.BlockList.Set.Fields.Request +### Rpc.BlockFile.CreateAndUpload + + + + + + + + + +### Rpc.BlockFile.CreateAndUpload.Request | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | contextId | [string](#string) | | | -| blockFields | [Rpc.BlockList.Set.Fields.Request.BlockField](#anytype-Rpc-BlockList-Set-Fields-Request-BlockField) | repeated | | +| targetId | [string](#string) | | | +| position | [model.Block.Position](#anytype-model-Block-Position) | | | +| url | [string](#string) | | | +| localPath | [string](#string) | | | +| fileType | [model.Block.Content.File.Type](#anytype-model-Block-Content-File-Type) | | | - + -### Rpc.BlockList.Set.Fields.Request.BlockField +### Rpc.BlockFile.CreateAndUpload.Response | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | +| error | [Rpc.BlockFile.CreateAndUpload.Response.Error](#anytype-Rpc-BlockFile-CreateAndUpload-Response-Error) | | | | blockId | [string](#string) | | | -| fields | [google.protobuf.Struct](#google-protobuf-Struct) | | | - - - - - - - - -### Rpc.BlockList.Set.Fields.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.BlockList.Set.Fields.Response.Error](#anytype-Rpc-BlockList-Set-Fields-Response-Error) | | | | event | [ResponseEvent](#anytype-ResponseEvent) | | | @@ -6496,15 +4743,15 @@ Makes blocks copy by given ids and paste it to shown place - + -### Rpc.BlockList.Set.Fields.Response.Error +### Rpc.BlockFile.CreateAndUpload.Response.Error | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| code | [Rpc.BlockList.Set.Fields.Response.Error.Code](#anytype-Rpc-BlockList-Set-Fields-Response-Error-Code) | | | +| code | [Rpc.BlockFile.CreateAndUpload.Response.Error.Code](#anytype-Rpc-BlockFile-CreateAndUpload-Response-Error-Code) | | | | description | [string](#string) | | | @@ -6512,9 +4759,9 @@ Makes blocks copy by given ids and paste it to shown place - + -### Rpc.BlockList.Set.File +### Rpc.BlockFile.ListSetStyle @@ -6522,19 +4769,9 @@ Makes blocks copy by given ids and paste it to shown place - + -### Rpc.BlockList.Set.File.Style - - - - - - - - - -### Rpc.BlockList.Set.File.Style.Request +### Rpc.BlockFile.ListSetStyle.Request @@ -6549,15 +4786,15 @@ Makes blocks copy by given ids and paste it to shown place - + -### Rpc.BlockList.Set.File.Style.Response +### Rpc.BlockFile.ListSetStyle.Response | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| error | [Rpc.BlockList.Set.File.Style.Response.Error](#anytype-Rpc-BlockList-Set-File-Style-Response-Error) | | | +| error | [Rpc.BlockFile.ListSetStyle.Response.Error](#anytype-Rpc-BlockFile-ListSetStyle-Response-Error) | | | | event | [ResponseEvent](#anytype-ResponseEvent) | | | @@ -6565,15 +4802,15 @@ Makes blocks copy by given ids and paste it to shown place - + -### Rpc.BlockList.Set.File.Style.Response.Error +### Rpc.BlockFile.ListSetStyle.Response.Error | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| code | [Rpc.BlockList.Set.File.Style.Response.Error.Code](#anytype-Rpc-BlockList-Set-File-Style-Response-Error-Code) | | | +| code | [Rpc.BlockFile.ListSetStyle.Response.Error.Code](#anytype-Rpc-BlockFile-ListSetStyle-Response-Error-Code) | | | | description | [string](#string) | | | @@ -6581,19 +4818,9 @@ Makes blocks copy by given ids and paste it to shown place - + -### Rpc.BlockList.Set.Text -commands acceptable only for text blocks, others will be ignored - - - - - - - - -### Rpc.BlockList.Set.Text.Color +### Rpc.BlockFile.SetName @@ -6601,9 +4828,539 @@ commands acceptable only for text blocks, others will be ignored - + -### Rpc.BlockList.Set.Text.Color.Request +### Rpc.BlockFile.SetName.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | | +| blockId | [string](#string) | | | +| name | [string](#string) | | | + + + + + + + + +### Rpc.BlockFile.SetName.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.BlockFile.SetName.Response.Error](#anytype-Rpc-BlockFile-SetName-Response-Error) | | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | + + + + + + + + +### Rpc.BlockFile.SetName.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.BlockFile.SetName.Response.Error.Code](#anytype-Rpc-BlockFile-SetName-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.BlockImage + + + + + + + + + +### Rpc.BlockImage.SetName + + + + + + + + + +### Rpc.BlockImage.SetName.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | | +| blockId | [string](#string) | | | +| name | [string](#string) | | | + + + + + + + + +### Rpc.BlockImage.SetName.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.BlockImage.SetName.Response.Error](#anytype-Rpc-BlockImage-SetName-Response-Error) | | | + + + + + + + + +### Rpc.BlockImage.SetName.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.BlockImage.SetName.Response.Error.Code](#anytype-Rpc-BlockImage-SetName-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.BlockImage.SetWidth + + + + + + + + + +### Rpc.BlockImage.SetWidth.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | | +| blockId | [string](#string) | | | +| width | [int32](#int32) | | | + + + + + + + + +### Rpc.BlockImage.SetWidth.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.BlockImage.SetWidth.Response.Error](#anytype-Rpc-BlockImage-SetWidth-Response-Error) | | | + + + + + + + + +### Rpc.BlockImage.SetWidth.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.BlockImage.SetWidth.Response.Error.Code](#anytype-Rpc-BlockImage-SetWidth-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.BlockLatex + + + + + + + + + +### Rpc.BlockLatex.SetText + + + + + + + + + +### Rpc.BlockLatex.SetText.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | | +| blockId | [string](#string) | | | +| text | [string](#string) | | | + + + + + + + + +### Rpc.BlockLatex.SetText.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.BlockLatex.SetText.Response.Error](#anytype-Rpc-BlockLatex-SetText-Response-Error) | | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | + + + + + + + + +### Rpc.BlockLatex.SetText.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.BlockLatex.SetText.Response.Error.Code](#anytype-Rpc-BlockLatex-SetText-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.BlockLink + + + + + + + + + +### Rpc.BlockLink.CreateWithObject + + + + + + + + + +### Rpc.BlockLink.CreateWithObject.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | id of the context object | +| details | [google.protobuf.Struct](#google-protobuf-Struct) | | new object details | +| templateId | [string](#string) | | optional template id for creating from template | +| targetId | [string](#string) | | link block params + +id of the closest simple block | +| position | [model.Block.Position](#anytype-model-Block-Position) | | | +| fields | [google.protobuf.Struct](#google-protobuf-Struct) | | link block fields | + + + + + + + + +### Rpc.BlockLink.CreateWithObject.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.BlockLink.CreateWithObject.Response.Error](#anytype-Rpc-BlockLink-CreateWithObject-Response-Error) | | | +| blockId | [string](#string) | | | +| targetId | [string](#string) | | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | + + + + + + + + +### Rpc.BlockLink.CreateWithObject.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.BlockLink.CreateWithObject.Response.Error.Code](#anytype-Rpc-BlockLink-CreateWithObject-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.BlockLink.ListSetAppearance + + + + + + + + + +### Rpc.BlockLink.ListSetAppearance.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | | +| blockIds | [string](#string) | repeated | | +| iconSize | [model.Block.Content.Link.IconSize](#anytype-model-Block-Content-Link-IconSize) | | | +| cardStyle | [model.Block.Content.Link.CardStyle](#anytype-model-Block-Content-Link-CardStyle) | | | +| description | [model.Block.Content.Link.Description](#anytype-model-Block-Content-Link-Description) | | | +| relations | [string](#string) | repeated | | + + + + + + + + +### Rpc.BlockLink.ListSetAppearance.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.BlockLink.ListSetAppearance.Response.Error](#anytype-Rpc-BlockLink-ListSetAppearance-Response-Error) | | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | + + + + + + + + +### Rpc.BlockLink.ListSetAppearance.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.BlockLink.ListSetAppearance.Response.Error.Code](#anytype-Rpc-BlockLink-ListSetAppearance-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.BlockRelation + + + + + + + + + +### Rpc.BlockRelation.Add + + + + + + + + + +### Rpc.BlockRelation.Add.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | | +| blockId | [string](#string) | | | +| relation | [model.Relation](#anytype-model-Relation) | | | + + + + + + + + +### Rpc.BlockRelation.Add.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.BlockRelation.Add.Response.Error](#anytype-Rpc-BlockRelation-Add-Response-Error) | | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | + + + + + + + + +### Rpc.BlockRelation.Add.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.BlockRelation.Add.Response.Error.Code](#anytype-Rpc-BlockRelation-Add-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.BlockRelation.SetKey + + + + + + + + + +### Rpc.BlockRelation.SetKey.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | | +| blockId | [string](#string) | | | +| key | [string](#string) | | | + + + + + + + + +### Rpc.BlockRelation.SetKey.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.BlockRelation.SetKey.Response.Error](#anytype-Rpc-BlockRelation-SetKey-Response-Error) | | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | + + + + + + + + +### Rpc.BlockRelation.SetKey.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.BlockRelation.SetKey.Response.Error.Code](#anytype-Rpc-BlockRelation-SetKey-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.BlockText + + + + + + + + + +### Rpc.BlockText.ListSetColor + + + + + + + + + +### Rpc.BlockText.ListSetColor.Request @@ -6618,15 +5375,15 @@ commands acceptable only for text blocks, others will be ignored - + -### Rpc.BlockList.Set.Text.Color.Response +### Rpc.BlockText.ListSetColor.Response | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| error | [Rpc.BlockList.Set.Text.Color.Response.Error](#anytype-Rpc-BlockList-Set-Text-Color-Response-Error) | | | +| error | [Rpc.BlockText.ListSetColor.Response.Error](#anytype-Rpc-BlockText-ListSetColor-Response-Error) | | | | event | [ResponseEvent](#anytype-ResponseEvent) | | | @@ -6634,15 +5391,15 @@ commands acceptable only for text blocks, others will be ignored - + -### Rpc.BlockList.Set.Text.Color.Response.Error +### Rpc.BlockText.ListSetColor.Response.Error | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| code | [Rpc.BlockList.Set.Text.Color.Response.Error.Code](#anytype-Rpc-BlockList-Set-Text-Color-Response-Error-Code) | | | +| code | [Rpc.BlockText.ListSetColor.Response.Error.Code](#anytype-Rpc-BlockText-ListSetColor-Response-Error-Code) | | | | description | [string](#string) | | | @@ -6650,9 +5407,9 @@ commands acceptable only for text blocks, others will be ignored - + -### Rpc.BlockList.Set.Text.Mark +### Rpc.BlockText.ListSetMark @@ -6660,9 +5417,9 @@ commands acceptable only for text blocks, others will be ignored - + -### Rpc.BlockList.Set.Text.Mark.Request +### Rpc.BlockText.ListSetMark.Request @@ -6677,15 +5434,15 @@ commands acceptable only for text blocks, others will be ignored - + -### Rpc.BlockList.Set.Text.Mark.Response +### Rpc.BlockText.ListSetMark.Response | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| error | [Rpc.BlockList.Set.Text.Mark.Response.Error](#anytype-Rpc-BlockList-Set-Text-Mark-Response-Error) | | | +| error | [Rpc.BlockText.ListSetMark.Response.Error](#anytype-Rpc-BlockText-ListSetMark-Response-Error) | | | | event | [ResponseEvent](#anytype-ResponseEvent) | | | @@ -6693,15 +5450,15 @@ commands acceptable only for text blocks, others will be ignored - + -### Rpc.BlockList.Set.Text.Mark.Response.Error +### Rpc.BlockText.ListSetMark.Response.Error | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| code | [Rpc.BlockList.Set.Text.Mark.Response.Error.Code](#anytype-Rpc-BlockList-Set-Text-Mark-Response-Error-Code) | | | +| code | [Rpc.BlockText.ListSetMark.Response.Error.Code](#anytype-Rpc-BlockText-ListSetMark-Response-Error-Code) | | | | description | [string](#string) | | | @@ -6709,9 +5466,9 @@ commands acceptable only for text blocks, others will be ignored - + -### Rpc.BlockList.Set.Text.Style +### Rpc.BlockText.ListSetStyle @@ -6719,9 +5476,9 @@ commands acceptable only for text blocks, others will be ignored - + -### Rpc.BlockList.Set.Text.Style.Request +### Rpc.BlockText.ListSetStyle.Request @@ -6736,15 +5493,15 @@ commands acceptable only for text blocks, others will be ignored - + -### Rpc.BlockList.Set.Text.Style.Response +### Rpc.BlockText.ListSetStyle.Response | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| error | [Rpc.BlockList.Set.Text.Style.Response.Error](#anytype-Rpc-BlockList-Set-Text-Style-Response-Error) | | | +| error | [Rpc.BlockText.ListSetStyle.Response.Error](#anytype-Rpc-BlockText-ListSetStyle-Response-Error) | | | | event | [ResponseEvent](#anytype-ResponseEvent) | | | @@ -6752,15 +5509,15 @@ commands acceptable only for text blocks, others will be ignored - + -### Rpc.BlockList.Set.Text.Style.Response.Error +### Rpc.BlockText.ListSetStyle.Response.Error | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| code | [Rpc.BlockList.Set.Text.Style.Response.Error.Code](#anytype-Rpc-BlockList-Set-Text-Style-Response-Error-Code) | | | +| code | [Rpc.BlockText.ListSetStyle.Response.Error.Code](#anytype-Rpc-BlockText-ListSetStyle-Response-Error-Code) | | | | description | [string](#string) | | | @@ -6768,9 +5525,9 @@ commands acceptable only for text blocks, others will be ignored - + -### Rpc.BlockList.TurnInto +### Rpc.BlockText.SetChecked @@ -6778,16 +5535,263 @@ commands acceptable only for text blocks, others will be ignored - + -### Rpc.BlockList.TurnInto.Request +### Rpc.BlockText.SetChecked.Request | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | contextId | [string](#string) | | | -| blockIds | [string](#string) | repeated | | +| blockId | [string](#string) | | | +| checked | [bool](#bool) | | | + + + + + + + + +### Rpc.BlockText.SetChecked.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.BlockText.SetChecked.Response.Error](#anytype-Rpc-BlockText-SetChecked-Response-Error) | | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | + + + + + + + + +### Rpc.BlockText.SetChecked.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.BlockText.SetChecked.Response.Error.Code](#anytype-Rpc-BlockText-SetChecked-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.BlockText.SetColor + + + + + + + + + +### Rpc.BlockText.SetColor.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | | +| blockId | [string](#string) | | | +| color | [string](#string) | | | + + + + + + + + +### Rpc.BlockText.SetColor.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.BlockText.SetColor.Response.Error](#anytype-Rpc-BlockText-SetColor-Response-Error) | | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | + + + + + + + + +### Rpc.BlockText.SetColor.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.BlockText.SetColor.Response.Error.Code](#anytype-Rpc-BlockText-SetColor-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.BlockText.SetIcon + + + + + + + + + +### Rpc.BlockText.SetIcon.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | | +| blockId | [string](#string) | | | +| iconImage | [string](#string) | | in case both image and emoji are set, image has a priority to show | +| iconEmoji | [string](#string) | | | + + + + + + + + +### Rpc.BlockText.SetIcon.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.BlockText.SetIcon.Response.Error](#anytype-Rpc-BlockText-SetIcon-Response-Error) | | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | + + + + + + + + +### Rpc.BlockText.SetIcon.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.BlockText.SetIcon.Response.Error.Code](#anytype-Rpc-BlockText-SetIcon-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.BlockText.SetMarks + + + + + + + + + +### Rpc.BlockText.SetMarks.Get +Get marks list in the selected range in text block. + + + + + + + + +### Rpc.BlockText.SetMarks.Get.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | | +| blockId | [string](#string) | | | +| range | [model.Range](#anytype-model-Range) | | | + + + + + + + + +### Rpc.BlockText.SetMarks.Get.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.BlockText.SetMarks.Get.Response.Error](#anytype-Rpc-BlockText-SetMarks-Get-Response-Error) | | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | + + + + + + + + +### Rpc.BlockText.SetMarks.Get.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.BlockText.SetMarks.Get.Response.Error.Code](#anytype-Rpc-BlockText-SetMarks-Get-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.BlockText.SetStyle + + + + + + + + + +### Rpc.BlockText.SetStyle.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | | +| blockId | [string](#string) | | | | style | [model.Block.Content.Text.Style](#anytype-model-Block-Content-Text-Style) | | | @@ -6795,15 +5799,15 @@ commands acceptable only for text blocks, others will be ignored - + -### Rpc.BlockList.TurnInto.Response +### Rpc.BlockText.SetStyle.Response | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| error | [Rpc.BlockList.TurnInto.Response.Error](#anytype-Rpc-BlockList-TurnInto-Response-Error) | | | +| error | [Rpc.BlockText.SetStyle.Response.Error](#anytype-Rpc-BlockText-SetStyle-Response-Error) | | | | event | [ResponseEvent](#anytype-ResponseEvent) | | | @@ -6811,15 +5815,15 @@ commands acceptable only for text blocks, others will be ignored - + -### Rpc.BlockList.TurnInto.Response.Error +### Rpc.BlockText.SetStyle.Response.Error | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| code | [Rpc.BlockList.TurnInto.Response.Error.Code](#anytype-Rpc-BlockList-TurnInto-Response-Error-Code) | | | +| code | [Rpc.BlockText.SetStyle.Response.Error.Code](#anytype-Rpc-BlockText-SetStyle-Response-Error-Code) | | | | description | [string](#string) | | | @@ -6827,9 +5831,9 @@ commands acceptable only for text blocks, others will be ignored - + -### Rpc.CloneTemplate +### Rpc.BlockText.SetText @@ -6837,46 +5841,49 @@ commands acceptable only for text blocks, others will be ignored - + -### Rpc.CloneTemplate.Request +### Rpc.BlockText.SetText.Request | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | id of template block for cloning | +| contextId | [string](#string) | | | +| blockId | [string](#string) | | | +| text | [string](#string) | | | +| marks | [model.Block.Content.Text.Marks](#anytype-model-Block-Content-Text-Marks) | | | - + -### Rpc.CloneTemplate.Response +### Rpc.BlockText.SetText.Response | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| error | [Rpc.CloneTemplate.Response.Error](#anytype-Rpc-CloneTemplate-Response-Error) | | | -| id | [string](#string) | | created template id | +| error | [Rpc.BlockText.SetText.Response.Error](#anytype-Rpc-BlockText-SetText-Response-Error) | | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | - + -### Rpc.CloneTemplate.Response.Error +### Rpc.BlockText.SetText.Response.Error | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| code | [Rpc.CloneTemplate.Response.Error.Code](#anytype-Rpc-CloneTemplate-Response-Error-Code) | | | +| code | [Rpc.BlockText.SetText.Response.Error.Code](#anytype-Rpc-BlockText-SetText-Response-Error-Code) | | | | description | [string](#string) | | | @@ -6884,9 +5891,9 @@ commands acceptable only for text blocks, others will be ignored - + -### Rpc.Config +### Rpc.BlockVideo @@ -6894,9 +5901,9 @@ commands acceptable only for text blocks, others will be ignored - + -### Rpc.Config.Get +### Rpc.BlockVideo.SetName @@ -6904,48 +5911,105 @@ commands acceptable only for text blocks, others will be ignored - + -### Rpc.Config.Get.Request - - - - - - - - - -### Rpc.Config.Get.Response +### Rpc.BlockVideo.SetName.Request | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| error | [Rpc.Config.Get.Response.Error](#anytype-Rpc-Config-Get-Response-Error) | | | -| homeBlockId | [string](#string) | | home dashboard block id | -| archiveBlockId | [string](#string) | | archive block id | -| profileBlockId | [string](#string) | | profile block id | -| marketplaceTypeId | [string](#string) | | marketplace type id | -| marketplaceRelationId | [string](#string) | | marketplace relation id | -| marketplaceTemplateId | [string](#string) | | marketplace template id | -| deviceId | [string](#string) | | | -| gatewayUrl | [string](#string) | | gateway url for fetching static files | +| contextId | [string](#string) | | | +| blockId | [string](#string) | | | +| name | [string](#string) | | | - + -### Rpc.Config.Get.Response.Error +### Rpc.BlockVideo.SetName.Response | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| code | [Rpc.Config.Get.Response.Error.Code](#anytype-Rpc-Config-Get-Response-Error-Code) | | | +| error | [Rpc.BlockVideo.SetName.Response.Error](#anytype-Rpc-BlockVideo-SetName-Response-Error) | | | + + + + + + + + +### Rpc.BlockVideo.SetName.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.BlockVideo.SetName.Response.Error.Code](#anytype-Rpc-BlockVideo-SetName-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.BlockVideo.SetWidth + + + + + + + + + +### Rpc.BlockVideo.SetWidth.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | | +| blockId | [string](#string) | | | +| width | [int32](#int32) | | | + + + + + + + + +### Rpc.BlockVideo.SetWidth.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.BlockVideo.SetWidth.Response.Error](#anytype-Rpc-BlockVideo-SetWidth-Response-Error) | | | + + + + + + + + +### Rpc.BlockVideo.SetWidth.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.BlockVideo.SetWidth.Response.Error.Code](#anytype-Rpc-BlockVideo-SetWidth-Response-Error-Code) | | | | description | [string](#string) | | | @@ -6963,6 +6027,123 @@ commands acceptable only for text blocks, others will be ignored + + +### Rpc.Debug.ExportLocalstore + + + + + + + + + +### Rpc.Debug.ExportLocalstore.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| path | [string](#string) | | the path where export files will place | +| docIds | [string](#string) | repeated | ids of documents for export, when empty - will export all available docs | + + + + + + + + +### Rpc.Debug.ExportLocalstore.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.Debug.ExportLocalstore.Response.Error](#anytype-Rpc-Debug-ExportLocalstore-Response-Error) | | | +| path | [string](#string) | | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | + + + + + + + + +### Rpc.Debug.ExportLocalstore.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.Debug.ExportLocalstore.Response.Error.Code](#anytype-Rpc-Debug-ExportLocalstore-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.Debug.Ping + + + + + + + + + +### Rpc.Debug.Ping.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| index | [int32](#int32) | | | +| numberOfEventsToSend | [int32](#int32) | | | + + + + + + + + +### Rpc.Debug.Ping.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.Debug.Ping.Response.Error](#anytype-Rpc-Debug-Ping-Response-Error) | | | +| index | [int32](#int32) | | | + + + + + + + + +### Rpc.Debug.Ping.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.Debug.Ping.Response.Error.Code](#anytype-Rpc-Debug-Ping-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + ### Rpc.Debug.Sync @@ -7105,9 +6286,10 @@ commands acceptable only for text blocks, others will be ignored | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| blockId | [string](#string) | | | +| objectId | [string](#string) | | | | path | [string](#string) | | | | unanonymized | [bool](#bool) | | set to true to disable mocking of the actual data inside changes | +| generateSvg | [bool](#bool) | | set to true to write both ZIP and SVG files | @@ -7198,9 +6380,9 @@ commands acceptable only for text blocks, others will be ignored - + -### Rpc.DeviceState +### Rpc.File @@ -7208,55 +6390,9 @@ commands acceptable only for text blocks, others will be ignored - + -### Rpc.DeviceState.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| deviceState | [Rpc.DeviceState.Request.DeviceState](#anytype-Rpc-DeviceState-Request-DeviceState) | | | - - - - - - - - -### Rpc.DeviceState.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.DeviceState.Response.Error](#anytype-Rpc-DeviceState-Response-Error) | | | - - - - - - - - -### Rpc.DeviceState.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.DeviceState.Response.Error.Code](#anytype-Rpc-DeviceState-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.DownloadFile +### Rpc.File.Download @@ -7264,9 +6400,9 @@ commands acceptable only for text blocks, others will be ignored - + -### Rpc.DownloadFile.Request +### Rpc.File.Download.Request @@ -7280,15 +6416,15 @@ commands acceptable only for text blocks, others will be ignored - + -### Rpc.DownloadFile.Response +### Rpc.File.Download.Response | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| error | [Rpc.DownloadFile.Response.Error](#anytype-Rpc-DownloadFile-Response-Error) | | | +| error | [Rpc.File.Download.Response.Error](#anytype-Rpc-File-Download-Response-Error) | | | | localPath | [string](#string) | | | @@ -7296,15 +6432,15 @@ commands acceptable only for text blocks, others will be ignored - + -### Rpc.DownloadFile.Response.Error +### Rpc.File.Download.Response.Error | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| code | [Rpc.DownloadFile.Response.Error.Code](#anytype-Rpc-DownloadFile-Response-Error-Code) | | | +| code | [Rpc.File.Download.Response.Error.Code](#anytype-Rpc-File-Download-Response-Error-Code) | | | | description | [string](#string) | | | @@ -7312,9 +6448,9 @@ commands acceptable only for text blocks, others will be ignored - + -### Rpc.Export +### Rpc.File.Drop @@ -7322,317 +6458,9 @@ commands acceptable only for text blocks, others will be ignored - + -### Rpc.Export.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| path | [string](#string) | | the path where export files will place | -| docIds | [string](#string) | repeated | ids of documents for export, when empty - will export all available docs | -| format | [Rpc.Export.Format](#anytype-Rpc-Export-Format) | | export format | -| zip | [bool](#bool) | | save as zip file | -| includeNested | [bool](#bool) | | include all nested | -| includeFiles | [bool](#bool) | | include all files | - - - - - - - - -### Rpc.Export.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Export.Response.Error](#anytype-Rpc-Export-Response-Error) | | | -| path | [string](#string) | | | -| succeed | [int32](#int32) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | - - - - - - - - -### Rpc.Export.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Export.Response.Error.Code](#anytype-Rpc-Export-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.ExportLocalstore - - - - - - - - - -### Rpc.ExportLocalstore.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| path | [string](#string) | | the path where export files will place | -| docIds | [string](#string) | repeated | ids of documents for export, when empty - will export all available docs | - - - - - - - - -### Rpc.ExportLocalstore.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.ExportLocalstore.Response.Error](#anytype-Rpc-ExportLocalstore-Response-Error) | | | -| path | [string](#string) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | - - - - - - - - -### Rpc.ExportLocalstore.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.ExportLocalstore.Response.Error.Code](#anytype-Rpc-ExportLocalstore-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.ExportTemplates - - - - - - - - - -### Rpc.ExportTemplates.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| path | [string](#string) | | the path where export files will place | - - - - - - - - -### Rpc.ExportTemplates.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.ExportTemplates.Response.Error](#anytype-Rpc-ExportTemplates-Response-Error) | | | -| path | [string](#string) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | - - - - - - - - -### Rpc.ExportTemplates.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.ExportTemplates.Response.Error.Code](#anytype-Rpc-ExportTemplates-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.ExportWorkspace - - - - - - - - - -### Rpc.ExportWorkspace.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| path | [string](#string) | | the path where export files will place | -| workspaceId | [string](#string) | | | - - - - - - - - -### Rpc.ExportWorkspace.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.ExportWorkspace.Response.Error](#anytype-Rpc-ExportWorkspace-Response-Error) | | | -| path | [string](#string) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | - - - - - - - - -### Rpc.ExportWorkspace.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.ExportWorkspace.Response.Error.Code](#anytype-Rpc-ExportWorkspace-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.ExternalDrop - - - - - - - - - -### Rpc.ExternalDrop.Content - - - - - - - - - -### Rpc.ExternalDrop.Content.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | | -| focusedBlockId | [string](#string) | | can be null | -| content | [bytes](#bytes) | | TODO | - - - - - - - - -### Rpc.ExternalDrop.Content.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.ExternalDrop.Content.Response.Error](#anytype-Rpc-ExternalDrop-Content-Response-Error) | | | - - - - - - - - -### Rpc.ExternalDrop.Content.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.ExternalDrop.Content.Response.Error.Code](#anytype-Rpc-ExternalDrop-Content-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.ExternalDrop.Files - - - - - - - - - -### Rpc.ExternalDrop.Files.Request +### Rpc.File.Drop.Request @@ -7648,15 +6476,15 @@ commands acceptable only for text blocks, others will be ignored - + -### Rpc.ExternalDrop.Files.Response +### Rpc.File.Drop.Response | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| error | [Rpc.ExternalDrop.Files.Response.Error](#anytype-Rpc-ExternalDrop-Files-Response-Error) | | | +| error | [Rpc.File.Drop.Response.Error](#anytype-Rpc-File-Drop-Response-Error) | | | | event | [ResponseEvent](#anytype-ResponseEvent) | | | @@ -7664,15 +6492,15 @@ commands acceptable only for text blocks, others will be ignored - + -### Rpc.ExternalDrop.Files.Response.Error +### Rpc.File.Drop.Response.Error | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| code | [Rpc.ExternalDrop.Files.Response.Error.Code](#anytype-Rpc-ExternalDrop-Files-Response-Error-Code) | | | +| code | [Rpc.File.Drop.Response.Error.Code](#anytype-Rpc-File-Drop-Response-Error-Code) | | | | description | [string](#string) | | | @@ -7680,9 +6508,9 @@ commands acceptable only for text blocks, others will be ignored - + -### Rpc.File +### Rpc.File.ListOffload @@ -7690,6 +6518,55 @@ commands acceptable only for text blocks, others will be ignored + + +### Rpc.File.ListOffload.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| onlyIds | [string](#string) | repeated | empty means all | +| includeNotPinned | [bool](#bool) | | false mean not-yet-pinned files will be not | + + + + + + + + +### Rpc.File.ListOffload.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.File.ListOffload.Response.Error](#anytype-Rpc-File-ListOffload-Response-Error) | | | +| filesOffloaded | [int32](#int32) | | | +| bytesOffloaded | [uint64](#uint64) | | | + + + + + + + + +### Rpc.File.ListOffload.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.File.ListOffload.Response.Error.Code](#anytype-Rpc-File-ListOffload-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + ### Rpc.File.Offload @@ -7748,9 +6625,9 @@ commands acceptable only for text blocks, others will be ignored - + -### Rpc.FileList +### Rpc.File.Upload @@ -7758,58 +6635,50 @@ commands acceptable only for text blocks, others will be ignored - + -### Rpc.FileList.Offload - - - - - - - - - -### Rpc.FileList.Offload.Request +### Rpc.File.Upload.Request | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| onlyIds | [string](#string) | repeated | empty means all | -| includeNotPinned | [bool](#bool) | | false mean not-yet-pinned files will be not | +| url | [string](#string) | | | +| localPath | [string](#string) | | | +| type | [model.Block.Content.File.Type](#anytype-model-Block-Content-File-Type) | | | +| disableEncryption | [bool](#bool) | | deprecated, has no affect | +| style | [model.Block.Content.File.Style](#anytype-model-Block-Content-File-Style) | | | - + -### Rpc.FileList.Offload.Response +### Rpc.File.Upload.Response | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| error | [Rpc.FileList.Offload.Response.Error](#anytype-Rpc-FileList-Offload-Response-Error) | | | -| filesOffloaded | [int32](#int32) | | | -| bytesOffloaded | [uint64](#uint64) | | | +| error | [Rpc.File.Upload.Response.Error](#anytype-Rpc-File-Upload-Response-Error) | | | +| hash | [string](#string) | | | - + -### Rpc.FileList.Offload.Response.Error +### Rpc.File.Upload.Response.Error | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| code | [Rpc.FileList.Offload.Response.Error.Code](#anytype-Rpc-FileList-Offload-Response-Error-Code) | | | +| code | [Rpc.File.Upload.Response.Error.Code](#anytype-Rpc-File-Upload-Response-Error-Code) | | | | description | [string](#string) | | | @@ -7858,6 +6727,65 @@ commands acceptable only for text blocks, others will be ignored + + +### Rpc.History.GetVersions +returns list of versions (changes) + + + + + + + + +### Rpc.History.GetVersions.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| pageId | [string](#string) | | | +| lastVersionId | [string](#string) | | when indicated, results will include versions before given id | +| limit | [int32](#int32) | | desired count of versions | + + + + + + + + +### Rpc.History.GetVersions.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.History.GetVersions.Response.Error](#anytype-Rpc-History-GetVersions-Response-Error) | | | +| versions | [Rpc.History.Version](#anytype-Rpc-History-Version) | repeated | | + + + + + + + + +### Rpc.History.GetVersions.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.History.GetVersions.Response.Error.Code](#anytype-Rpc-History-GetVersions-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + ### Rpc.History.SetVersion @@ -7915,9 +6843,9 @@ commands acceptable only for text blocks, others will be ignored - + -### Rpc.History.Show +### Rpc.History.ShowVersion returns blockShow event for given version @@ -7925,9 +6853,9 @@ returns blockShow event for given version - + -### Rpc.History.Show.Request +### Rpc.History.ShowVersion.Request @@ -7942,17 +6870,17 @@ returns blockShow event for given version - + -### Rpc.History.Show.Response +### Rpc.History.ShowVersion.Response | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| error | [Rpc.History.Show.Response.Error](#anytype-Rpc-History-Show-Response-Error) | | | +| error | [Rpc.History.ShowVersion.Response.Error](#anytype-Rpc-History-ShowVersion-Response-Error) | | | | objectShow | [Event.Object.Show](#anytype-Event-Object-Show) | | | -| version | [Rpc.History.Versions.Version](#anytype-Rpc-History-Versions-Version) | | | +| version | [Rpc.History.Version](#anytype-Rpc-History-Version) | | | | traceId | [string](#string) | | | @@ -7960,15 +6888,15 @@ returns blockShow event for given version - + -### Rpc.History.Show.Response.Error +### Rpc.History.ShowVersion.Response.Error | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| code | [Rpc.History.Show.Response.Error.Code](#anytype-Rpc-History-Show-Response-Error-Code) | | | +| code | [Rpc.History.ShowVersion.Response.Error.Code](#anytype-Rpc-History-ShowVersion-Response-Error-Code) | | | | description | [string](#string) | | | @@ -7976,68 +6904,9 @@ returns blockShow event for given version - + -### Rpc.History.Versions -returns list of versions (changes) - - - - - - - - -### Rpc.History.Versions.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| pageId | [string](#string) | | | -| lastVersionId | [string](#string) | | when indicated, results will include versions before given id | -| limit | [int32](#int32) | | desired count of versions | - - - - - - - - -### Rpc.History.Versions.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.History.Versions.Response.Error](#anytype-Rpc-History-Versions-Response-Error) | | | -| versions | [Rpc.History.Versions.Version](#anytype-Rpc-History-Versions-Version) | repeated | | - - - - - - - - -### Rpc.History.Versions.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.History.Versions.Response.Error.Code](#anytype-Rpc-History-Versions-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.History.Versions.Version +### Rpc.History.Version @@ -8115,8 +6984,7 @@ returns list of versions (changes) ### Rpc.Log -Namespace, that agregates log subtopics and actions. -Usage: send request with topic (Level) and description (message) from client to middleware to log. + @@ -8180,120 +7048,6 @@ Usage: send request with topic (Level) and description (message) from client to - - -### Rpc.MakeTemplate - - - - - - - - - -### Rpc.MakeTemplate.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | id of block for making them template | - - - - - - - - -### Rpc.MakeTemplate.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.MakeTemplate.Response.Error](#anytype-Rpc-MakeTemplate-Response-Error) | | | -| id | [string](#string) | | created template id | - - - - - - - - -### Rpc.MakeTemplate.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.MakeTemplate.Response.Error.Code](#anytype-Rpc-MakeTemplate-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.MakeTemplateByObjectType - - - - - - - - - -### Rpc.MakeTemplateByObjectType.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| objectType | [string](#string) | | id of desired object type | - - - - - - - - -### Rpc.MakeTemplateByObjectType.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.MakeTemplateByObjectType.Response.Error](#anytype-Rpc-MakeTemplateByObjectType-Response-Error) | | | -| id | [string](#string) | | created template id | - - - - - - - - -### Rpc.MakeTemplateByObjectType.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.MakeTemplateByObjectType.Response.Error.Code](#anytype-Rpc-MakeTemplateByObjectType-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - ### Rpc.Metrics @@ -8555,9 +7309,9 @@ Get the info for page alongside with info for all inbound and outbound links fro - + -### Rpc.Object.FeaturedRelation +### Rpc.Object.ApplyTemplate @@ -8565,57 +7319,46 @@ Get the info for page alongside with info for all inbound and outbound links fro - + -### Rpc.Object.FeaturedRelation.Add - - - - - - - - - -### Rpc.Object.FeaturedRelation.Add.Request +### Rpc.Object.ApplyTemplate.Request | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | contextId | [string](#string) | | | -| relations | [string](#string) | repeated | | +| templateId | [string](#string) | | id of template | - + -### Rpc.Object.FeaturedRelation.Add.Response +### Rpc.Object.ApplyTemplate.Response | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| error | [Rpc.Object.FeaturedRelation.Add.Response.Error](#anytype-Rpc-Object-FeaturedRelation-Add-Response-Error) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | +| error | [Rpc.Object.ApplyTemplate.Response.Error](#anytype-Rpc-Object-ApplyTemplate-Response-Error) | | | - + -### Rpc.Object.FeaturedRelation.Add.Response.Error +### Rpc.Object.ApplyTemplate.Response.Error | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| code | [Rpc.Object.FeaturedRelation.Add.Response.Error.Code](#anytype-Rpc-Object-FeaturedRelation-Add-Response-Error-Code) | | | +| code | [Rpc.Object.ApplyTemplate.Response.Error.Code](#anytype-Rpc-Object-ApplyTemplate-Response-Error-Code) | | | | description | [string](#string) | | | @@ -8623,9 +7366,9 @@ Get the info for page alongside with info for all inbound and outbound links fro - + -### Rpc.Object.FeaturedRelation.Remove +### Rpc.Object.Close @@ -8633,31 +7376,88 @@ Get the info for page alongside with info for all inbound and outbound links fro - + -### Rpc.Object.FeaturedRelation.Remove.Request +### Rpc.Object.Close.Request | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | | -| relations | [string](#string) | repeated | | +| contextId | [string](#string) | | deprecated | +| objectId | [string](#string) | | | - + -### Rpc.Object.FeaturedRelation.Remove.Response +### Rpc.Object.Close.Response | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| error | [Rpc.Object.FeaturedRelation.Remove.Response.Error](#anytype-Rpc-Object-FeaturedRelation-Remove-Response-Error) | | | +| error | [Rpc.Object.Close.Response.Error](#anytype-Rpc-Object-Close-Response-Error) | | | + + + + + + + + +### Rpc.Object.Close.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.Object.Close.Response.Error.Code](#anytype-Rpc-Object-Close-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.Object.Create + + + + + + + + + +### Rpc.Object.Create.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| details | [google.protobuf.Struct](#google-protobuf-Struct) | | object details | + + + + + + + + +### Rpc.Object.Create.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.Object.Create.Response.Error](#anytype-Rpc-Object-Create-Response-Error) | | | +| pageId | [string](#string) | | | | event | [ResponseEvent](#anytype-ResponseEvent) | | | @@ -8665,15 +7465,132 @@ Get the info for page alongside with info for all inbound and outbound links fro - + -### Rpc.Object.FeaturedRelation.Remove.Response.Error +### Rpc.Object.Create.Response.Error | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| code | [Rpc.Object.FeaturedRelation.Remove.Response.Error.Code](#anytype-Rpc-Object-FeaturedRelation-Remove-Response-Error-Code) | | | +| code | [Rpc.Object.Create.Response.Error.Code](#anytype-Rpc-Object-Create-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.Object.CreateSet + + + + + + + + + +### Rpc.Object.CreateSet.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| source | [string](#string) | repeated | | +| details | [google.protobuf.Struct](#google-protobuf-Struct) | | if omitted the name of page will be the same with object type | +| templateId | [string](#string) | | optional template id for creating from template | + + + + + + + + +### Rpc.Object.CreateSet.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.Object.CreateSet.Response.Error](#anytype-Rpc-Object-CreateSet-Response-Error) | | | +| id | [string](#string) | | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | + + + + + + + + +### Rpc.Object.CreateSet.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.Object.CreateSet.Response.Error.Code](#anytype-Rpc-Object-CreateSet-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.Object.Duplicate + + + + + + + + + +### Rpc.Object.Duplicate.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | | + + + + + + + + +### Rpc.Object.Duplicate.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.Object.Duplicate.Response.Error](#anytype-Rpc-Object-Duplicate-Response-Error) | | | +| id | [string](#string) | | created template id | + + + + + + + + +### Rpc.Object.Duplicate.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.Object.Duplicate.Response.Error.Code](#anytype-Rpc-Object-Duplicate-Response-Error-Code) | | | | description | [string](#string) | | | @@ -8764,9 +7681,9 @@ Get the info for page alongside with info for all inbound and outbound links fro - + -### Rpc.Object.IdsSubscribe +### Rpc.Object.ImportMarkdown @@ -8774,153 +7691,32 @@ Get the info for page alongside with info for all inbound and outbound links fro - + -### Rpc.Object.IdsSubscribe.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| subId | [string](#string) | | (optional) subscription identifier client can provide some string or middleware will generate it automatically if subId is already registered on middleware, the new query will replace previous subscription | -| ids | [string](#string) | repeated | ids for subscribe | -| keys | [string](#string) | repeated | sorts (required) needed keys in details for return, for object fields mw will return (and subscribe) objects as dependent | -| ignoreWorkspace | [string](#string) | | | - - - - - - - - -### Rpc.Object.IdsSubscribe.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Object.IdsSubscribe.Response.Error](#anytype-Rpc-Object-IdsSubscribe-Response-Error) | | | -| records | [google.protobuf.Struct](#google-protobuf-Struct) | repeated | | -| dependencies | [google.protobuf.Struct](#google-protobuf-Struct) | repeated | | -| subId | [string](#string) | | | - - - - - - - - -### Rpc.Object.IdsSubscribe.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Object.IdsSubscribe.Response.Error.Code](#anytype-Rpc-Object-IdsSubscribe-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Object.RelationAdd - - - - - - - - - -### Rpc.Object.RelationAdd.Request +### Rpc.Object.ImportMarkdown.Request | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | contextId | [string](#string) | | | -| relation | [model.Relation](#anytype-model-Relation) | | | +| importPath | [string](#string) | | | - + -### Rpc.Object.RelationAdd.Response +### Rpc.Object.ImportMarkdown.Response | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| error | [Rpc.Object.RelationAdd.Response.Error](#anytype-Rpc-Object-RelationAdd-Response-Error) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | -| relationKey | [string](#string) | | deprecated | -| relation | [model.Relation](#anytype-model-Relation) | | | - - - - - - - - -### Rpc.Object.RelationAdd.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Object.RelationAdd.Response.Error.Code](#anytype-Rpc-Object-RelationAdd-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Object.RelationDelete - - - - - - - - - -### Rpc.Object.RelationDelete.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | | -| relationKey | [string](#string) | | | - - - - - - - - -### Rpc.Object.RelationDelete.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Object.RelationDelete.Response.Error](#anytype-Rpc-Object-RelationDelete-Response-Error) | | | +| error | [Rpc.Object.ImportMarkdown.Response.Error](#anytype-Rpc-Object-ImportMarkdown-Response-Error) | | | +| rootLinkIds | [string](#string) | repeated | | | event | [ResponseEvent](#anytype-ResponseEvent) | | | @@ -8928,15 +7724,15 @@ Get the info for page alongside with info for all inbound and outbound links fro - + -### Rpc.Object.RelationDelete.Response.Error +### Rpc.Object.ImportMarkdown.Response.Error | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| code | [Rpc.Object.RelationDelete.Response.Error.Code](#anytype-Rpc-Object-RelationDelete-Response-Error-Code) | | | +| code | [Rpc.Object.ImportMarkdown.Response.Error.Code](#anytype-Rpc-Object-ImportMarkdown-Response-Error-Code) | | | | description | [string](#string) | | | @@ -8944,9 +7740,9 @@ Get the info for page alongside with info for all inbound and outbound links fro - + -### Rpc.Object.RelationListAvailable +### Rpc.Object.ListDelete @@ -8954,150 +7750,30 @@ Get the info for page alongside with info for all inbound and outbound links fro - + -### Rpc.Object.RelationListAvailable.Request +### Rpc.Object.ListDelete.Request +Deletes the object, keys from the local store and unsubscribe from remote changes. Also offloads all orphan files + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| objectIds | [string](#string) | repeated | objects to remove | + + + + + + + + +### Rpc.Object.ListDelete.Response | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | | - - - - - - - - -### Rpc.Object.RelationListAvailable.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Object.RelationListAvailable.Response.Error](#anytype-Rpc-Object-RelationListAvailable-Response-Error) | | | -| relations | [model.Relation](#anytype-model-Relation) | repeated | | - - - - - - - - -### Rpc.Object.RelationListAvailable.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Object.RelationListAvailable.Response.Error.Code](#anytype-Rpc-Object-RelationListAvailable-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Object.RelationOptionAdd -RelationOptionAdd may return existing option in case dataview already has one with the same text - - - - - - - - -### Rpc.Object.RelationOptionAdd.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | | -| relationKey | [string](#string) | | relation key to add the option | -| option | [model.Relation.Option](#anytype-model-Relation-Option) | | id of select options will be autogenerated | - - - - - - - - -### Rpc.Object.RelationOptionAdd.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Object.RelationOptionAdd.Response.Error](#anytype-Rpc-Object-RelationOptionAdd-Response-Error) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | -| option | [model.Relation.Option](#anytype-model-Relation-Option) | | | - - - - - - - - -### Rpc.Object.RelationOptionAdd.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Object.RelationOptionAdd.Response.Error.Code](#anytype-Rpc-Object-RelationOptionAdd-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Object.RelationOptionDelete - - - - - - - - - -### Rpc.Object.RelationOptionDelete.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | | -| relationKey | [string](#string) | | relation key to add the option | -| optionId | [string](#string) | | id of select options to remove | -| confirmRemoveAllValuesInRecords | [bool](#bool) | | confirm remove all values in records | - - - - - - - - -### Rpc.Object.RelationOptionDelete.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Object.RelationOptionDelete.Response.Error](#anytype-Rpc-Object-RelationOptionDelete-Response-Error) | | | +| error | [Rpc.Object.ListDelete.Response.Error](#anytype-Rpc-Object-ListDelete-Response-Error) | | | | event | [ResponseEvent](#anytype-ResponseEvent) | | | @@ -9105,15 +7781,15 @@ RelationOptionAdd may return existing option in case dataview already has one wi - + -### Rpc.Object.RelationOptionDelete.Response.Error +### Rpc.Object.ListDelete.Response.Error | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| code | [Rpc.Object.RelationOptionDelete.Response.Error.Code](#anytype-Rpc-Object-RelationOptionDelete-Response-Error-Code) | | | +| code | [Rpc.Object.ListDelete.Response.Error.Code](#anytype-Rpc-Object-ListDelete-Response-Error-Code) | | | | description | [string](#string) | | | @@ -9121,9 +7797,9 @@ RelationOptionAdd may return existing option in case dataview already has one wi - + -### Rpc.Object.RelationOptionUpdate +### Rpc.Object.ListDuplicate @@ -9131,48 +7807,46 @@ RelationOptionAdd may return existing option in case dataview already has one wi - + -### Rpc.Object.RelationOptionUpdate.Request +### Rpc.Object.ListDuplicate.Request | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | | -| relationKey | [string](#string) | | relation key to add the option | -| option | [model.Relation.Option](#anytype-model-Relation-Option) | | id of select options will be autogenerated | +| objectIds | [string](#string) | repeated | | - + -### Rpc.Object.RelationOptionUpdate.Response +### Rpc.Object.ListDuplicate.Response | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| error | [Rpc.Object.RelationOptionUpdate.Response.Error](#anytype-Rpc-Object-RelationOptionUpdate-Response-Error) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | +| error | [Rpc.Object.ListDuplicate.Response.Error](#anytype-Rpc-Object-ListDuplicate-Response-Error) | | | +| ids | [string](#string) | repeated | | - + -### Rpc.Object.RelationOptionUpdate.Response.Error +### Rpc.Object.ListDuplicate.Response.Error | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| code | [Rpc.Object.RelationOptionUpdate.Response.Error.Code](#anytype-Rpc-Object-RelationOptionUpdate-Response-Error-Code) | | | +| code | [Rpc.Object.ListDuplicate.Response.Error.Code](#anytype-Rpc-Object-ListDuplicate-Response-Error-Code) | | | | description | [string](#string) | | | @@ -9180,9 +7854,9 @@ RelationOptionAdd may return existing option in case dataview already has one wi - + -### Rpc.Object.RelationUpdate +### Rpc.Object.ListExport @@ -9190,32 +7864,37 @@ RelationOptionAdd may return existing option in case dataview already has one wi - + -### Rpc.Object.RelationUpdate.Request +### Rpc.Object.ListExport.Request | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| contextId | [string](#string) | | | -| relationKey | [string](#string) | | key of relation to update | -| relation | [model.Relation](#anytype-model-Relation) | | | +| path | [string](#string) | | the path where export files will place | +| objectIds | [string](#string) | repeated | ids of documents for export, when empty - will export all available docs | +| format | [Rpc.Object.ListExport.Format](#anytype-Rpc-Object-ListExport-Format) | | export format | +| zip | [bool](#bool) | | save as zip file | +| includeNested | [bool](#bool) | | include all nested | +| includeFiles | [bool](#bool) | | include all files | - + -### Rpc.Object.RelationUpdate.Response +### Rpc.Object.ListExport.Response | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| error | [Rpc.Object.RelationUpdate.Response.Error](#anytype-Rpc-Object-RelationUpdate-Response-Error) | | | +| error | [Rpc.Object.ListExport.Response.Error](#anytype-Rpc-Object-ListExport-Response-Error) | | | +| path | [string](#string) | | | +| succeed | [int32](#int32) | | | | event | [ResponseEvent](#anytype-ResponseEvent) | | | @@ -9223,15 +7902,305 @@ RelationOptionAdd may return existing option in case dataview already has one wi - + -### Rpc.Object.RelationUpdate.Response.Error +### Rpc.Object.ListExport.Response.Error | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| code | [Rpc.Object.RelationUpdate.Response.Error.Code](#anytype-Rpc-Object-RelationUpdate-Response-Error-Code) | | | +| code | [Rpc.Object.ListExport.Response.Error.Code](#anytype-Rpc-Object-ListExport-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.Object.ListSetIsArchived + + + + + + + + + +### Rpc.Object.ListSetIsArchived.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| objectIds | [string](#string) | repeated | | +| isArchived | [bool](#bool) | | | + + + + + + + + +### Rpc.Object.ListSetIsArchived.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.Object.ListSetIsArchived.Response.Error](#anytype-Rpc-Object-ListSetIsArchived-Response-Error) | | | + + + + + + + + +### Rpc.Object.ListSetIsArchived.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.Object.ListSetIsArchived.Response.Error.Code](#anytype-Rpc-Object-ListSetIsArchived-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.Object.ListSetIsFavorite + + + + + + + + + +### Rpc.Object.ListSetIsFavorite.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| objectIds | [string](#string) | repeated | | +| isFavorite | [bool](#bool) | | | + + + + + + + + +### Rpc.Object.ListSetIsFavorite.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.Object.ListSetIsFavorite.Response.Error](#anytype-Rpc-Object-ListSetIsFavorite-Response-Error) | | | + + + + + + + + +### Rpc.Object.ListSetIsFavorite.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.Object.ListSetIsFavorite.Response.Error.Code](#anytype-Rpc-Object-ListSetIsFavorite-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.Object.Open + + + + + + + + + +### Rpc.Object.Open.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | id of the context blo1k | +| objectId | [string](#string) | | | +| traceId | [string](#string) | | | + + + + + + + + +### Rpc.Object.Open.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.Object.Open.Response.Error](#anytype-Rpc-Object-Open-Response-Error) | | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | + + + + + + + + +### Rpc.Object.Open.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.Object.Open.Response.Error.Code](#anytype-Rpc-Object-Open-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.Object.OpenBreadcrumbs + + + + + + + + + +### Rpc.Object.OpenBreadcrumbs.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | deprecated | +| traceId | [string](#string) | | | + + + + + + + + +### Rpc.Object.OpenBreadcrumbs.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.Object.OpenBreadcrumbs.Response.Error](#anytype-Rpc-Object-OpenBreadcrumbs-Response-Error) | | | +| objectId | [string](#string) | | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | + + + + + + + + +### Rpc.Object.OpenBreadcrumbs.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.Object.OpenBreadcrumbs.Response.Error.Code](#anytype-Rpc-Object-OpenBreadcrumbs-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.Object.Redo + + + + + + + + + +### Rpc.Object.Redo.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | id of the context object | + + + + + + + + +### Rpc.Object.Redo.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.Object.Redo.Response.Error](#anytype-Rpc-Object-Redo-Response-Error) | | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | +| counters | [Rpc.Object.UndoRedoCounter](#anytype-Rpc-Object-UndoRedoCounter) | | | + + + + + + + + +### Rpc.Object.Redo.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.Object.Redo.Response.Error.Code](#anytype-Rpc-Object-Redo-Response-Error-Code) | | | | description | [string](#string) | | | @@ -9430,6 +8399,138 @@ deprecated, to be removed | + + +### Rpc.Object.SetBreadcrumbs + + + + + + + + + +### Rpc.Object.SetBreadcrumbs.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| breadcrumbsId | [string](#string) | | | +| ids | [string](#string) | repeated | page ids | + + + + + + + + +### Rpc.Object.SetBreadcrumbs.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.Object.SetBreadcrumbs.Response.Error](#anytype-Rpc-Object-SetBreadcrumbs-Response-Error) | | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | + + + + + + + + +### Rpc.Object.SetBreadcrumbs.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.Object.SetBreadcrumbs.Response.Error.Code](#anytype-Rpc-Object-SetBreadcrumbs-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.Object.SetDetails + + + + + + + + + +### Rpc.Object.SetDetails.Detail + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| key | [string](#string) | | | +| value | [google.protobuf.Value](#google-protobuf-Value) | | NUll - removes key | + + + + + + + + +### Rpc.Object.SetDetails.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | | +| details | [Rpc.Object.SetDetails.Detail](#anytype-Rpc-Object-SetDetails-Detail) | repeated | | + + + + + + + + +### Rpc.Object.SetDetails.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.Object.SetDetails.Response.Error](#anytype-Rpc-Object-SetDetails-Response-Error) | | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | + + + + + + + + +### Rpc.Object.SetDetails.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.Object.SetDetails.Response.Error.Code](#anytype-Rpc-Object-SetDetails-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + ### Rpc.Object.SetIsArchived @@ -9604,6 +8705,64 @@ deprecated, to be removed | + + +### Rpc.Object.SetObjectType + + + + + + + + + +### Rpc.Object.SetObjectType.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | | +| objectTypeUrl | [string](#string) | | | + + + + + + + + +### Rpc.Object.SetObjectType.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.Object.SetObjectType.Response.Error](#anytype-Rpc-Object-SetObjectType-Response-Error) | | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | + + + + + + + + +### Rpc.Object.SetObjectType.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.Object.SetObjectType.Response.Error.Code](#anytype-Rpc-Object-SetObjectType-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + ### Rpc.Object.ShareByLink @@ -9661,6 +8820,127 @@ deprecated, to be removed | + + +### Rpc.Object.Show + + + + + + + + + +### Rpc.Object.Show.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | deprecated | +| objectId | [string](#string) | | | +| traceId | [string](#string) | | | + + + + + + + + +### Rpc.Object.Show.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.Object.Show.Response.Error](#anytype-Rpc-Object-Show-Response-Error) | | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | + + + + + + + + +### Rpc.Object.Show.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.Object.Show.Response.Error.Code](#anytype-Rpc-Object-Show-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.Object.SubscribeIds + + + + + + + + + +### Rpc.Object.SubscribeIds.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| subId | [string](#string) | | (optional) subscription identifier client can provide some string or middleware will generate it automatically if subId is already registered on middleware, the new query will replace previous subscription | +| ids | [string](#string) | repeated | ids for subscribe | +| keys | [string](#string) | repeated | sorts (required) needed keys in details for return, for object fields mw will return (and subscribe) objects as dependent | +| ignoreWorkspace | [string](#string) | | | + + + + + + + + +### Rpc.Object.SubscribeIds.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.Object.SubscribeIds.Response.Error](#anytype-Rpc-Object-SubscribeIds-Response-Error) | | | +| records | [google.protobuf.Struct](#google-protobuf-Struct) | repeated | | +| dependencies | [google.protobuf.Struct](#google-protobuf-Struct) | repeated | | +| subId | [string](#string) | | | + + + + + + + + +### Rpc.Object.SubscribeIds.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.Object.SubscribeIds.Response.Error.Code](#anytype-Rpc-Object-SubscribeIds-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + ### Rpc.Object.ToSet @@ -9719,9 +8999,9 @@ deprecated, to be removed | - + -### Rpc.ObjectDuplicate +### Rpc.Object.Undo @@ -9729,9 +9009,269 @@ deprecated, to be removed | - + -### Rpc.ObjectDuplicate.Request +### Rpc.Object.Undo.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | id of the context object | + + + + + + + + +### Rpc.Object.Undo.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.Object.Undo.Response.Error](#anytype-Rpc-Object-Undo-Response-Error) | | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | +| counters | [Rpc.Object.UndoRedoCounter](#anytype-Rpc-Object-UndoRedoCounter) | | | + + + + + + + + +### Rpc.Object.Undo.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.Object.Undo.Response.Error.Code](#anytype-Rpc-Object-Undo-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.Object.UndoRedoCounter +Available undo/redo operations + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| undo | [int32](#int32) | | | +| redo | [int32](#int32) | | | + + + + + + + + +### Rpc.ObjectRelation + + + + + + + + + +### Rpc.ObjectRelation.Add + + + + + + + + + +### Rpc.ObjectRelation.Add.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | | +| relation | [model.Relation](#anytype-model-Relation) | | | + + + + + + + + +### Rpc.ObjectRelation.Add.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.ObjectRelation.Add.Response.Error](#anytype-Rpc-ObjectRelation-Add-Response-Error) | | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | +| relationKey | [string](#string) | | deprecated | +| relation | [model.Relation](#anytype-model-Relation) | | | + + + + + + + + +### Rpc.ObjectRelation.Add.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.ObjectRelation.Add.Response.Error.Code](#anytype-Rpc-ObjectRelation-Add-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.ObjectRelation.AddFeatured + + + + + + + + + +### Rpc.ObjectRelation.AddFeatured.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | | +| relations | [string](#string) | repeated | | + + + + + + + + +### Rpc.ObjectRelation.AddFeatured.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.ObjectRelation.AddFeatured.Response.Error](#anytype-Rpc-ObjectRelation-AddFeatured-Response-Error) | | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | + + + + + + + + +### Rpc.ObjectRelation.AddFeatured.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.ObjectRelation.AddFeatured.Response.Error.Code](#anytype-Rpc-ObjectRelation-AddFeatured-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.ObjectRelation.Delete + + + + + + + + + +### Rpc.ObjectRelation.Delete.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | | +| relationKey | [string](#string) | | | + + + + + + + + +### Rpc.ObjectRelation.Delete.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.ObjectRelation.Delete.Response.Error](#anytype-Rpc-ObjectRelation-Delete-Response-Error) | | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | + + + + + + + + +### Rpc.ObjectRelation.Delete.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.ObjectRelation.Delete.Response.Error.Code](#anytype-Rpc-ObjectRelation-Delete-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.ObjectRelation.ListAvailable + + + + + + + + + +### Rpc.ObjectRelation.ListAvailable.Request @@ -9744,31 +9284,31 @@ deprecated, to be removed | - + -### Rpc.ObjectDuplicate.Response +### Rpc.ObjectRelation.ListAvailable.Response | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| error | [Rpc.ObjectDuplicate.Response.Error](#anytype-Rpc-ObjectDuplicate-Response-Error) | | | -| id | [string](#string) | | | +| error | [Rpc.ObjectRelation.ListAvailable.Response.Error](#anytype-Rpc-ObjectRelation-ListAvailable-Response-Error) | | | +| relations | [model.Relation](#anytype-model-Relation) | repeated | | - + -### Rpc.ObjectDuplicate.Response.Error +### Rpc.ObjectRelation.ListAvailable.Response.Error | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| code | [Rpc.ObjectDuplicate.Response.Error.Code](#anytype-Rpc-ObjectDuplicate-Response-Error-Code) | | | +| code | [Rpc.ObjectRelation.ListAvailable.Response.Error.Code](#anytype-Rpc-ObjectRelation-ListAvailable-Response-Error-Code) | | | | description | [string](#string) | | | @@ -9776,9 +9316,9 @@ deprecated, to be removed | - + -### Rpc.ObjectList +### Rpc.ObjectRelation.RemoveFeatured @@ -9786,40 +9326,31 @@ deprecated, to be removed | - + -### Rpc.ObjectList.Delete - - - - - - - - - -### Rpc.ObjectList.Delete.Request -Deletes the object, keys from the local store and unsubscribe from remote changes. Also offloads all orphan files - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| objectIds | [string](#string) | repeated | objects to remove | - - - - - - - - -### Rpc.ObjectList.Delete.Response +### Rpc.ObjectRelation.RemoveFeatured.Request | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| error | [Rpc.ObjectList.Delete.Response.Error](#anytype-Rpc-ObjectList-Delete-Response-Error) | | | +| contextId | [string](#string) | | | +| relations | [string](#string) | repeated | | + + + + + + + + +### Rpc.ObjectRelation.RemoveFeatured.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.ObjectRelation.RemoveFeatured.Response.Error](#anytype-Rpc-ObjectRelation-RemoveFeatured-Response-Error) | | | | event | [ResponseEvent](#anytype-ResponseEvent) | | | @@ -9827,15 +9358,15 @@ Deletes the object, keys from the local store and unsubscribe from remote change - + -### Rpc.ObjectList.Delete.Response.Error +### Rpc.ObjectRelation.RemoveFeatured.Response.Error | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| code | [Rpc.ObjectList.Delete.Response.Error.Code](#anytype-Rpc-ObjectList-Delete-Response-Error-Code) | | | +| code | [Rpc.ObjectRelation.RemoveFeatured.Response.Error.Code](#anytype-Rpc-ObjectRelation-RemoveFeatured-Response-Error-Code) | | | | description | [string](#string) | | | @@ -9843,9 +9374,9 @@ Deletes the object, keys from the local store and unsubscribe from remote change - + -### Rpc.ObjectList.Duplicate +### Rpc.ObjectRelation.Update @@ -9853,46 +9384,48 @@ Deletes the object, keys from the local store and unsubscribe from remote change - + -### Rpc.ObjectList.Duplicate.Request +### Rpc.ObjectRelation.Update.Request | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| objectIds | [string](#string) | repeated | | +| contextId | [string](#string) | | | +| relationKey | [string](#string) | | key of relation to update | +| relation | [model.Relation](#anytype-model-Relation) | | | - + -### Rpc.ObjectList.Duplicate.Response +### Rpc.ObjectRelation.Update.Response | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| error | [Rpc.ObjectList.Duplicate.Response.Error](#anytype-Rpc-ObjectList-Duplicate-Response-Error) | | | -| ids | [string](#string) | repeated | | +| error | [Rpc.ObjectRelation.Update.Response.Error](#anytype-Rpc-ObjectRelation-Update-Response-Error) | | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | - + -### Rpc.ObjectList.Duplicate.Response.Error +### Rpc.ObjectRelation.Update.Response.Error | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| code | [Rpc.ObjectList.Duplicate.Response.Error.Code](#anytype-Rpc-ObjectList-Duplicate-Response-Error-Code) | | | +| code | [Rpc.ObjectRelation.Update.Response.Error.Code](#anytype-Rpc-ObjectRelation-Update-Response-Error-Code) | | | | description | [string](#string) | | | @@ -9900,9 +9433,9 @@ Deletes the object, keys from the local store and unsubscribe from remote change - + -### Rpc.ObjectList.Set +### Rpc.ObjectRelationOption @@ -9910,9 +9443,9 @@ Deletes the object, keys from the local store and unsubscribe from remote change - + -### Rpc.ObjectList.Set.IsArchived +### Rpc.ObjectRelationOption.Add @@ -9920,46 +9453,49 @@ Deletes the object, keys from the local store and unsubscribe from remote change - + -### Rpc.ObjectList.Set.IsArchived.Request +### Rpc.ObjectRelationOption.Add.Request | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| objectIds | [string](#string) | repeated | | -| isArchived | [bool](#bool) | | | +| contextId | [string](#string) | | | +| relationKey | [string](#string) | | relation key to add the option | +| option | [model.Relation.Option](#anytype-model-Relation-Option) | | id of select options will be autogenerated | - + -### Rpc.ObjectList.Set.IsArchived.Response +### Rpc.ObjectRelationOption.Add.Response | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| error | [Rpc.ObjectList.Set.IsArchived.Response.Error](#anytype-Rpc-ObjectList-Set-IsArchived-Response-Error) | | | +| error | [Rpc.ObjectRelationOption.Add.Response.Error](#anytype-Rpc-ObjectRelationOption-Add-Response-Error) | | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | +| option | [model.Relation.Option](#anytype-model-Relation-Option) | | | - + -### Rpc.ObjectList.Set.IsArchived.Response.Error +### Rpc.ObjectRelationOption.Add.Response.Error | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| code | [Rpc.ObjectList.Set.IsArchived.Response.Error.Code](#anytype-Rpc-ObjectList-Set-IsArchived-Response-Error-Code) | | | +| code | [Rpc.ObjectRelationOption.Add.Response.Error.Code](#anytype-Rpc-ObjectRelationOption-Add-Response-Error-Code) | | | | description | [string](#string) | | | @@ -9967,9 +9503,9 @@ Deletes the object, keys from the local store and unsubscribe from remote change - + -### Rpc.ObjectList.Set.IsFavorite +### Rpc.ObjectRelationOption.Delete @@ -9977,46 +9513,108 @@ Deletes the object, keys from the local store and unsubscribe from remote change - + -### Rpc.ObjectList.Set.IsFavorite.Request +### Rpc.ObjectRelationOption.Delete.Request | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| objectIds | [string](#string) | repeated | | -| isFavorite | [bool](#bool) | | | +| contextId | [string](#string) | | | +| relationKey | [string](#string) | | relation key to add the option | +| optionId | [string](#string) | | id of select options to remove | +| confirmRemoveAllValuesInRecords | [bool](#bool) | | confirm remove all values in records | - + -### Rpc.ObjectList.Set.IsFavorite.Response +### Rpc.ObjectRelationOption.Delete.Response | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| error | [Rpc.ObjectList.Set.IsFavorite.Response.Error](#anytype-Rpc-ObjectList-Set-IsFavorite-Response-Error) | | | +| error | [Rpc.ObjectRelationOption.Delete.Response.Error](#anytype-Rpc-ObjectRelationOption-Delete-Response-Error) | | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | - + -### Rpc.ObjectList.Set.IsFavorite.Response.Error +### Rpc.ObjectRelationOption.Delete.Response.Error | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| code | [Rpc.ObjectList.Set.IsFavorite.Response.Error.Code](#anytype-Rpc-ObjectList-Set-IsFavorite-Response-Error-Code) | | | +| code | [Rpc.ObjectRelationOption.Delete.Response.Error.Code](#anytype-Rpc-ObjectRelationOption-Delete-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.ObjectRelationOption.Update + + + + + + + + + +### Rpc.ObjectRelationOption.Update.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | | +| relationKey | [string](#string) | | relation key to add the option | +| option | [model.Relation.Option](#anytype-model-Relation-Option) | | id of select options will be autogenerated | + + + + + + + + +### Rpc.ObjectRelationOption.Update.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.ObjectRelationOption.Update.Response.Error](#anytype-Rpc-ObjectRelationOption-Update-Response-Error) | | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | + + + + + + + + +### Rpc.ObjectRelationOption.Update.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.ObjectRelationOption.Update.Response.Error.Code](#anytype-Rpc-ObjectRelationOption-Update-Response-Error-Code) | | | | description | [string](#string) | | | @@ -10383,132 +9981,6 @@ Deletes the object, keys from the local store and unsubscribe from remote change - - -### Rpc.Page - - - - - - - - - -### Rpc.Page.Create - - - - - - - - - -### Rpc.Page.Create.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| details | [google.protobuf.Struct](#google-protobuf-Struct) | | page details | - - - - - - - - -### Rpc.Page.Create.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Page.Create.Response.Error](#anytype-Rpc-Page-Create-Response-Error) | | | -| pageId | [string](#string) | | | -| event | [ResponseEvent](#anytype-ResponseEvent) | | | - - - - - - - - -### Rpc.Page.Create.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Page.Create.Response.Error.Code](#anytype-Rpc-Page-Create-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Ping - - - - - - - - - -### Rpc.Ping.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| index | [int32](#int32) | | | -| numberOfEventsToSend | [int32](#int32) | | | - - - - - - - - -### Rpc.Ping.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Ping.Response.Error](#anytype-Rpc-Ping-Response-Error) | | | -| index | [int32](#int32) | | | - - - - - - - - -### Rpc.Ping.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Ping.Response.Error.Code](#anytype-Rpc-Ping-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - ### Rpc.Process @@ -10575,9 +10047,9 @@ Deletes the object, keys from the local store and unsubscribe from remote change - + -### Rpc.Set +### Rpc.Template @@ -10585,9 +10057,9 @@ Deletes the object, keys from the local store and unsubscribe from remote change - + -### Rpc.Set.Create +### Rpc.Template.Clone @@ -10595,33 +10067,202 @@ Deletes the object, keys from the local store and unsubscribe from remote change - + -### Rpc.Set.Create.Request +### Rpc.Template.Clone.Request | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| source | [string](#string) | repeated | | -| details | [google.protobuf.Struct](#google-protobuf-Struct) | | if omitted the name of page will be the same with object type | -| templateId | [string](#string) | | optional template id for creating from template | +| contextId | [string](#string) | | id of template block for cloning | - + -### Rpc.Set.Create.Response +### Rpc.Template.Clone.Response | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| error | [Rpc.Set.Create.Response.Error](#anytype-Rpc-Set-Create-Response-Error) | | | -| id | [string](#string) | | | +| error | [Rpc.Template.Clone.Response.Error](#anytype-Rpc-Template-Clone-Response-Error) | | | +| id | [string](#string) | | created template id | + + + + + + + + +### Rpc.Template.Clone.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.Template.Clone.Response.Error.Code](#anytype-Rpc-Template-Clone-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.Template.CreateFromObject + + + + + + + + + +### Rpc.Template.CreateFromObject.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| contextId | [string](#string) | | id of block for making them template | + + + + + + + + +### Rpc.Template.CreateFromObject.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.Template.CreateFromObject.Response.Error](#anytype-Rpc-Template-CreateFromObject-Response-Error) | | | +| id | [string](#string) | | created template id | + + + + + + + + +### Rpc.Template.CreateFromObject.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.Template.CreateFromObject.Response.Error.Code](#anytype-Rpc-Template-CreateFromObject-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.Template.CreateFromObjectType + + + + + + + + + +### Rpc.Template.CreateFromObjectType.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| objectType | [string](#string) | | id of desired object type | + + + + + + + + +### Rpc.Template.CreateFromObjectType.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.Template.CreateFromObjectType.Response.Error](#anytype-Rpc-Template-CreateFromObjectType-Response-Error) | | | +| id | [string](#string) | | created template id | + + + + + + + + +### Rpc.Template.CreateFromObjectType.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.Template.CreateFromObjectType.Response.Error.Code](#anytype-Rpc-Template-CreateFromObjectType-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + + + +### Rpc.Template.ExportAll + + + + + + + + + +### Rpc.Template.ExportAll.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| path | [string](#string) | | the path where export files will place | + + + + + + + + +### Rpc.Template.ExportAll.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.Template.ExportAll.Response.Error](#anytype-Rpc-Template-ExportAll-Response-Error) | | | +| path | [string](#string) | | | | event | [ResponseEvent](#anytype-ResponseEvent) | | | @@ -10629,15 +10270,15 @@ Deletes the object, keys from the local store and unsubscribe from remote change - + -### Rpc.Set.Create.Response.Error +### Rpc.Template.ExportAll.Response.Error | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| code | [Rpc.Set.Create.Response.Error.Code](#anytype-Rpc-Set-Create-Response-Error-Code) | | | +| code | [Rpc.Template.ExportAll.Response.Error.Code](#anytype-Rpc-Template-ExportAll-Response-Error-Code) | | | | description | [string](#string) | | | @@ -10645,9 +10286,9 @@ Deletes the object, keys from the local store and unsubscribe from remote change - + -### Rpc.Shutdown +### Rpc.Unsplash @@ -10655,9 +10296,9 @@ Deletes the object, keys from the local store and unsubscribe from remote change - + -### Rpc.Shutdown.Request +### Rpc.Unsplash.Download @@ -10665,50 +10306,9 @@ Deletes the object, keys from the local store and unsubscribe from remote change - + -### Rpc.Shutdown.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Shutdown.Response.Error](#anytype-Rpc-Shutdown-Response-Error) | | | - - - - - - - - -### Rpc.Shutdown.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Shutdown.Response.Error.Code](#anytype-Rpc-Shutdown-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.UnsplashDownload - - - - - - - - - -### Rpc.UnsplashDownload.Request +### Rpc.Unsplash.Download.Request @@ -10721,15 +10321,15 @@ Deletes the object, keys from the local store and unsubscribe from remote change - + -### Rpc.UnsplashDownload.Response +### Rpc.Unsplash.Download.Response | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| error | [Rpc.UnsplashDownload.Response.Error](#anytype-Rpc-UnsplashDownload-Response-Error) | | | +| error | [Rpc.Unsplash.Download.Response.Error](#anytype-Rpc-Unsplash-Download-Response-Error) | | | | hash | [string](#string) | | | @@ -10737,15 +10337,15 @@ Deletes the object, keys from the local store and unsubscribe from remote change - + -### Rpc.UnsplashDownload.Response.Error +### Rpc.Unsplash.Download.Response.Error | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| code | [Rpc.UnsplashDownload.Response.Error.Code](#anytype-Rpc-UnsplashDownload-Response-Error-Code) | | | +| code | [Rpc.Unsplash.Download.Response.Error.Code](#anytype-Rpc-Unsplash-Download-Response-Error-Code) | | | | description | [string](#string) | | | @@ -10753,9 +10353,9 @@ Deletes the object, keys from the local store and unsubscribe from remote change - + -### Rpc.UnsplashSearch +### Rpc.Unsplash.Search @@ -10763,9 +10363,9 @@ Deletes the object, keys from the local store and unsubscribe from remote change - + -### Rpc.UnsplashSearch.Request +### Rpc.Unsplash.Search.Request @@ -10779,31 +10379,31 @@ Deletes the object, keys from the local store and unsubscribe from remote change - + -### Rpc.UnsplashSearch.Response +### Rpc.Unsplash.Search.Response | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| error | [Rpc.UnsplashSearch.Response.Error](#anytype-Rpc-UnsplashSearch-Response-Error) | | | -| pictures | [Rpc.UnsplashSearch.Response.Picture](#anytype-Rpc-UnsplashSearch-Response-Picture) | repeated | | +| error | [Rpc.Unsplash.Search.Response.Error](#anytype-Rpc-Unsplash-Search-Response-Error) | | | +| pictures | [Rpc.Unsplash.Search.Response.Picture](#anytype-Rpc-Unsplash-Search-Response-Picture) | repeated | | - + -### Rpc.UnsplashSearch.Response.Error +### Rpc.Unsplash.Search.Response.Error | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| code | [Rpc.UnsplashSearch.Response.Error.Code](#anytype-Rpc-UnsplashSearch-Response-Error-Code) | | | +| code | [Rpc.Unsplash.Search.Response.Error.Code](#anytype-Rpc-Unsplash-Search-Response-Error-Code) | | | | description | [string](#string) | | | @@ -10811,9 +10411,9 @@ Deletes the object, keys from the local store and unsubscribe from remote change - + -### Rpc.UnsplashSearch.Response.Picture +### Rpc.Unsplash.Search.Response.Picture @@ -10829,135 +10429,10 @@ Deletes the object, keys from the local store and unsubscribe from remote change - - -### Rpc.UploadFile - - - - - - - - - -### Rpc.UploadFile.Request - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| url | [string](#string) | | | -| localPath | [string](#string) | | | -| type | [model.Block.Content.File.Type](#anytype-model-Block-Content-File-Type) | | | -| disableEncryption | [bool](#bool) | | deprecated, has no affect | -| style | [model.Block.Content.File.Style](#anytype-model-Block-Content-File-Style) | | | - - - - - - - - -### Rpc.UploadFile.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.UploadFile.Response.Error](#anytype-Rpc-UploadFile-Response-Error) | | | -| hash | [string](#string) | | | - - - - - - - - -### Rpc.UploadFile.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.UploadFile.Response.Error.Code](#anytype-Rpc-UploadFile-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - - - -### Rpc.Version -Get info about a version of a middleware. -Info is a string, that contains: BuildDate, GitCommit, GitBranch, GitState - - - - - - - - -### Rpc.Version.Get - - - - - - - - - -### Rpc.Version.Get.Request - - - - - - - - - -### Rpc.Version.Get.Response - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| error | [Rpc.Version.Get.Response.Error](#anytype-Rpc-Version-Get-Response-Error) | | | -| version | [string](#string) | | | -| details | [string](#string) | | build date, branch and commit | - - - - - - - - -### Rpc.Version.Get.Response.Error - - - -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| code | [Rpc.Version.Get.Response.Error.Code](#anytype-Rpc-Version-Get-Response-Error-Code) | | | -| description | [string](#string) | | | - - - - - - ### Rpc.Wallet -Namespace, that aggregates subtopics and actions, that relates to wallet. + @@ -11204,6 +10679,65 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er + + +### Rpc.Workspace.Export + + + + + + + + + +### Rpc.Workspace.Export.Request + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| path | [string](#string) | | the path where export files will place | +| workspaceId | [string](#string) | | | + + + + + + + + +### Rpc.Workspace.Export.Response + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| error | [Rpc.Workspace.Export.Response.Error](#anytype-Rpc-Workspace-Export-Response-Error) | | | +| path | [string](#string) | | | +| event | [ResponseEvent](#anytype-ResponseEvent) | | | + + + + + + + + +### Rpc.Workspace.Export.Response.Error + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| code | [Rpc.Workspace.Export.Response.Error.Code](#anytype-Rpc-Workspace-Export-Response-Error-Code) | | | +| description | [string](#string) | | | + + + + + + ### Rpc.Workspace.GetAll @@ -11518,22 +11052,9 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er - + -### Rpc.ApplyTemplate.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.Block.Bookmark.CreateAndFetch.Response.Error.Code +### Rpc.App.GetVersion.Response.Error.Code | Name | Number | Description | @@ -11541,12 +11062,27 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er | NULL | 0 | | | UNKNOWN_ERROR | 1 | | | BAD_INPUT | 2 | | +| VERSION_IS_EMPTY | 3 | | +| NOT_FOUND | 101 | | +| TIMEOUT | 102 | | - + -### Rpc.Block.Bookmark.Fetch.Response.Error.Code +### Rpc.App.SetDeviceState.Request.DeviceState + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| BACKGROUND | 0 | | +| FOREGROUND | 1 | | + + + + + +### Rpc.App.SetDeviceState.Response.Error.Code | Name | Number | Description | @@ -11554,19 +11090,21 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er | NULL | 0 | | | UNKNOWN_ERROR | 1 | | | BAD_INPUT | 2 | | +| NODE_NOT_STARTED | 101 | | - + -### Rpc.Block.Close.Response.Error.Code +### Rpc.App.Shutdown.Response.Error.Code | Name | Number | Description | | ---- | ------ | ----------- | | NULL | 0 | | | UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | +| BAD_INPUT | 2 | | +| NODE_NOT_STARTED | 101 | | @@ -11596,33 +11134,6 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er - - -### Rpc.Block.CreatePage.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.Block.CreateSet.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | | -| UNKNOWN_OBJECT_TYPE_URL | 3 | ... | - - - ### Rpc.Block.Cut.Response.Error.Code @@ -11636,215 +11147,6 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er - - -### Rpc.Block.Dataview.RecordCreate.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.Block.Dataview.RecordDelete.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.Block.Dataview.RecordRelationOptionAdd.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | | - - - - - -### Rpc.Block.Dataview.RecordRelationOptionDelete.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | | - - - - - -### Rpc.Block.Dataview.RecordRelationOptionUpdate.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | | - - - - - -### Rpc.Block.Dataview.RecordUpdate.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.Block.Dataview.RelationAdd.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | | - - - - - -### Rpc.Block.Dataview.RelationDelete.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | | - - - - - -### Rpc.Block.Dataview.RelationListAvailable.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | | -| NOT_A_DATAVIEW_BLOCK | 3 | ... | - - - - - -### Rpc.Block.Dataview.RelationUpdate.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | | - - - - - -### Rpc.Block.Dataview.SetSource.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | | - - - - - -### Rpc.Block.Dataview.ViewCreate.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.Block.Dataview.ViewDelete.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.Block.Dataview.ViewSetActive.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.Block.Dataview.ViewSetPosition.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.Block.Dataview.ViewUpdate.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - ### Rpc.Block.Download.Response.Error.Code @@ -11871,22 +11173,9 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er - + -### Rpc.Block.File.CreateAndUpload.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | | - - - - - -### Rpc.Block.Get.Marks.Response.Error.Code +### Rpc.Block.ListConvertToObjects.Response.Error.Code | Name | Number | Description | @@ -11897,9 +11186,9 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er - + -### Rpc.Block.GetPublicWebURL.Response.Error.Code +### Rpc.Block.ListDelete.Response.Error.Code | Name | Number | Description | @@ -11910,9 +11199,87 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er - + -### Rpc.Block.ImportMarkdown.Response.Error.Code +### Rpc.Block.ListDuplicate.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### Rpc.Block.ListMoveToExistingObject.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### Rpc.Block.ListMoveToNewObject.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### Rpc.Block.ListSetAlign.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### Rpc.Block.ListSetBackgroundColor.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### Rpc.Block.ListSetFields.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### Rpc.Block.ListTurnInto.Response.Error.Code | Name | Number | Description | @@ -11936,48 +11303,6 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er - - -### Rpc.Block.ObjectType.Set.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | | -| UNKNOWN_OBJECT_TYPE_URL | 3 | | - - - - - -### Rpc.Block.Open.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | | -| NOT_FOUND | 3 | | -| ANYTYPE_NEEDS_UPGRADE | 10 | failed to read unknown data format – need to upgrade anytype | - - - - - -### Rpc.Block.OpenBreadcrumbs.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - ### Rpc.Block.Paste.Response.Error.Code @@ -11991,46 +11316,6 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er - - -### Rpc.Block.Redo.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | | -| CAN_NOT_MOVE | 3 | ... | - - - - - -### Rpc.Block.Relation.Add.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | | - - - - - -### Rpc.Block.Relation.SetKey.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | | - - - ### Rpc.Block.Replace.Response.Error.Code @@ -12044,9 +11329,9 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er - + -### Rpc.Block.Set.Details.Response.Error.Code +### Rpc.Block.SetFields.Response.Error.Code | Name | Number | Description | @@ -12057,229 +11342,6 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er - - -### Rpc.Block.Set.Fields.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.Block.Set.File.Name.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.Block.Set.Image.Name.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.Block.Set.Image.Width.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.Block.Set.Latex.Text.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.Block.Set.Link.TargetBlockId.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.Block.Set.Page.IsArchived.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.Block.Set.Restrictions.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.Block.Set.Text.Checked.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.Block.Set.Text.Color.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.Block.Set.Text.Icon.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.Block.Set.Text.Style.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.Block.Set.Text.Text.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.Block.Set.Video.Name.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.Block.Set.Video.Width.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.Block.SetBreadcrumbs.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.Block.Show.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | | -| NOT_FOUND | 3 | | -| ANYTYPE_NEEDS_UPGRADE | 10 | failed to read unknown data format – need to upgrade anytype | - - - ### Rpc.Block.Split.Request.Mode @@ -12307,46 +11369,6 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er - - -### Rpc.Block.Undo.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | | -| CAN_NOT_MOVE | 3 | ... | - - - - - -### Rpc.Block.Unlink.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.Block.UpdateContent.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - ### Rpc.Block.Upload.Response.Error.Code @@ -12360,191 +11382,543 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er - + -### Rpc.BlockList.ConvertChildrenToPages.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.BlockList.Duplicate.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.BlockList.Move.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.BlockList.MoveToNewPage.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.BlockList.Set.Align.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.BlockList.Set.BackgroundColor.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.BlockList.Set.Div.Style.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.BlockList.Set.Fields.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.BlockList.Set.File.Style.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.BlockList.Set.Text.Color.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.BlockList.Set.Text.Mark.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.BlockList.Set.Text.Style.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.BlockList.TurnInto.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.CloneTemplate.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.Config.Get.Response.Error.Code +### Rpc.BlockBookmark.CreateAndFetch.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | | + + + + + +### Rpc.BlockBookmark.Fetch.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | | + + + + + +### Rpc.BlockDataview.Relation.Add.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | | + + + + + +### Rpc.BlockDataview.Relation.Delete.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | | + + + + + +### Rpc.BlockDataview.Relation.ListAvailable.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | | +| NOT_A_DATAVIEW_BLOCK | 3 | ... | + + + + + +### Rpc.BlockDataview.Relation.Update.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | | + + + + + +### Rpc.BlockDataview.SetSource.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | | + + + + + +### Rpc.BlockDataview.View.Create.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### Rpc.BlockDataview.View.Delete.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### Rpc.BlockDataview.View.SetActive.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### Rpc.BlockDataview.View.SetPosition.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### Rpc.BlockDataview.View.Update.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### Rpc.BlockDataviewRecord.Create.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### Rpc.BlockDataviewRecord.Delete.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### Rpc.BlockDataviewRecord.RelationOption.Add.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | | + + + + + +### Rpc.BlockDataviewRecord.RelationOption.Delete.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | | + + + + + +### Rpc.BlockDataviewRecord.RelationOption.Update.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | | + + + + + +### Rpc.BlockDataviewRecord.Update.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### Rpc.BlockDiv.ListSetStyle.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### Rpc.BlockFile.CreateAndUpload.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | | + + + + + +### Rpc.BlockFile.ListSetStyle.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### Rpc.BlockFile.SetName.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### Rpc.BlockImage.SetName.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### Rpc.BlockImage.SetWidth.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### Rpc.BlockLatex.SetText.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### Rpc.BlockLink.CreateWithObject.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### Rpc.BlockLink.ListSetAppearance.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### Rpc.BlockRelation.Add.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | | + + + + + +### Rpc.BlockRelation.SetKey.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | | + + + + + +### Rpc.BlockText.ListSetColor.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### Rpc.BlockText.ListSetMark.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### Rpc.BlockText.ListSetStyle.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### Rpc.BlockText.SetChecked.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### Rpc.BlockText.SetColor.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### Rpc.BlockText.SetIcon.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### Rpc.BlockText.SetMarks.Get.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### Rpc.BlockText.SetStyle.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### Rpc.BlockText.SetText.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### Rpc.BlockVideo.SetName.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### Rpc.BlockVideo.SetWidth.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### Rpc.Debug.ExportLocalstore.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### Rpc.Debug.Ping.Response.Error.Code | Name | Number | Description | @@ -12552,7 +11926,6 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er | NULL | 0 | | | UNKNOWN_ERROR | 1 | | | BAD_INPUT | 2 | | -| NODE_NOT_STARTED | 101 | | @@ -12595,35 +11968,9 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er - + -### Rpc.DeviceState.Request.DeviceState - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| BACKGROUND | 0 | | -| FOREGROUND | 1 | | - - - - - -### Rpc.DeviceState.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | | -| NODE_NOT_STARTED | 101 | | - - - - - -### Rpc.DownloadFile.Response.Error.Code +### Rpc.File.Download.Response.Error.Code | Name | Number | Description | @@ -12635,25 +11982,9 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er - + -### Rpc.Export.Format - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| Markdown | 0 | | -| Protobuf | 1 | | -| JSON | 2 | | -| DOT | 3 | | -| SVG | 4 | | -| GRAPH_JSON | 5 | | - - - - - -### Rpc.Export.Response.Error.Code +### Rpc.File.Drop.Response.Error.Code | Name | Number | Description | @@ -12664,68 +11995,17 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er - + -### Rpc.ExportLocalstore.Response.Error.Code +### Rpc.File.ListOffload.Response.Error.Code | Name | Number | Description | | ---- | ------ | ----------- | | NULL | 0 | | | UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.ExportTemplates.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.ExportWorkspace.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.ExternalDrop.Content.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.ExternalDrop.Files.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | +| BAD_INPUT | 2 | | +| NODE_NOT_STARTED | 103 | ... | @@ -12744,9 +12024,9 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er - + -### Rpc.FileList.Offload.Response.Error.Code +### Rpc.File.Upload.Response.Error.Code | Name | Number | Description | @@ -12754,7 +12034,6 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er | NULL | 0 | | | UNKNOWN_ERROR | 1 | | | BAD_INPUT | 2 | | -| NODE_NOT_STARTED | 103 | ... | @@ -12771,6 +12050,19 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er + + +### Rpc.History.GetVersions.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + ### Rpc.History.SetVersion.Response.Error.Code @@ -12784,22 +12076,9 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er - + -### Rpc.History.Show.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.History.Versions.Response.Error.Code +### Rpc.History.ShowVersion.Response.Error.Code | Name | Number | Description | @@ -12854,32 +12133,6 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er - - -### Rpc.MakeTemplate.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.MakeTemplateByObjectType.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - ### Rpc.Metrics.SetParameters.Response.Error.Code @@ -12945,9 +12198,9 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er - + -### Rpc.Object.FeaturedRelation.Add.Response.Error.Code +### Rpc.Object.ApplyTemplate.Response.Error.Code | Name | Number | Description | @@ -12958,9 +12211,49 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er - + -### Rpc.Object.FeaturedRelation.Remove.Response.Error.Code +### Rpc.Object.Close.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### Rpc.Object.Create.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### Rpc.Object.CreateSet.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | | +| UNKNOWN_OBJECT_TYPE_URL | 3 | | + + + + + +### Rpc.Object.Duplicate.Response.Error.Code | Name | Number | Description | @@ -12996,9 +12289,9 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er - + -### Rpc.Object.IdsSubscribe.Response.Error.Code +### Rpc.Object.ImportMarkdown.Response.Error.Code | Name | Number | Description | @@ -13009,36 +12302,9 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er - + -### Rpc.Object.RelationAdd.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | | -| ALREADY_EXISTS | 10 | | - - - - - -### Rpc.Object.RelationDelete.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | | - - - - - -### Rpc.Object.RelationListAvailable.Response.Error.Code +### Rpc.Object.ListDelete.Response.Error.Code | Name | Number | Description | @@ -13049,9 +12315,77 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er - + -### Rpc.Object.RelationOptionAdd.Response.Error.Code +### Rpc.Object.ListDuplicate.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### Rpc.Object.ListExport.Format + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| Markdown | 0 | | +| Protobuf | 1 | | +| JSON | 2 | | +| DOT | 3 | | +| SVG | 4 | | +| GRAPH_JSON | 5 | | + + + + + +### Rpc.Object.ListExport.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### Rpc.Object.ListSetIsArchived.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### Rpc.Object.ListSetIsFavorite.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### Rpc.Object.Open.Response.Error.Code | Name | Number | Description | @@ -13059,39 +12393,27 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er | NULL | 0 | | | UNKNOWN_ERROR | 1 | | | BAD_INPUT | 2 | | +| NOT_FOUND | 3 | | +| ANYTYPE_NEEDS_UPGRADE | 10 | failed to read unknown data format – need to upgrade anytype | - + -### Rpc.Object.RelationOptionDelete.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | | -| SOME_RECORDS_HAS_RELATION_VALUE_WITH_THIS_OPTION | 3 | need to confirm with confirmRemoveAllValuesInRecords=true | - - - - - -### Rpc.Object.RelationOptionUpdate.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | | - - - - - -### Rpc.Object.RelationUpdate.Response.Error.Code +### Rpc.Object.OpenBreadcrumbs.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### Rpc.Object.Redo.Response.Error.Code | Name | Number | Description | @@ -13099,6 +12421,7 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er | NULL | 0 | | | UNKNOWN_ERROR | 1 | | | BAD_INPUT | 2 | | +| CAN_NOT_MOVE | 3 | ... | @@ -13141,6 +12464,32 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er + + +### Rpc.Object.SetBreadcrumbs.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### Rpc.Object.SetDetails.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + ### Rpc.Object.SetIsArchived.Response.Error.Code @@ -13180,6 +12529,20 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er + + +### Rpc.Object.SetObjectType.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | | +| UNKNOWN_OBJECT_TYPE_URL | 3 | | + + + ### Rpc.Object.ShareByLink.Response.Error.Code @@ -13193,6 +12556,34 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er + + +### Rpc.Object.Show.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | | +| NOT_FOUND | 3 | | +| ANYTYPE_NEEDS_UPGRADE | 10 | failed to read unknown data format – need to upgrade anytype | + + + + + +### Rpc.Object.SubscribeIds.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + ### Rpc.Object.ToSet.Response.Error.Code @@ -13206,9 +12597,36 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er - + -### Rpc.ObjectDuplicate.Response.Error.Code +### Rpc.Object.Undo.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | | +| CAN_NOT_MOVE | 3 | ... | + + + + + +### Rpc.ObjectRelation.Add.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | | + + + + + +### Rpc.ObjectRelation.AddFeatured.Response.Error.Code | Name | Number | Description | @@ -13219,9 +12637,22 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er - + -### Rpc.ObjectList.Delete.Response.Error.Code +### Rpc.ObjectRelation.Delete.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | | + + + + + +### Rpc.ObjectRelation.ListAvailable.Response.Error.Code | Name | Number | Description | @@ -13232,9 +12663,9 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er - + -### Rpc.ObjectList.Duplicate.Response.Error.Code +### Rpc.ObjectRelation.RemoveFeatured.Response.Error.Code | Name | Number | Description | @@ -13245,29 +12676,56 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er - + -### Rpc.ObjectList.Set.IsArchived.Response.Error.Code +### Rpc.ObjectRelation.Update.Response.Error.Code | Name | Number | Description | | ---- | ------ | ----------- | | NULL | 0 | | | UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | +| BAD_INPUT | 2 | | - + -### Rpc.ObjectList.Set.IsFavorite.Response.Error.Code +### Rpc.ObjectRelationOption.Add.Response.Error.Code | Name | Number | Description | | ---- | ------ | ----------- | | NULL | 0 | | | UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | +| BAD_INPUT | 2 | | + + + + + +### Rpc.ObjectRelationOption.Delete.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | | +| SOME_RECORDS_HAS_RELATION_VALUE_WITH_THIS_OPTION | 3 | need to confirm with confirmRemoveAllValuesInRecords=true | + + + + + +### Rpc.ObjectRelationOption.Update.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | | @@ -13357,32 +12815,6 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er - - -### Rpc.Page.Create.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | ... | - - - - - -### Rpc.Ping.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | | - - - ### Rpc.Process.Cancel.Response.Error.Code @@ -13396,37 +12828,61 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er - + -### Rpc.Set.Create.Response.Error.Code +### Rpc.Template.Clone.Response.Error.Code | Name | Number | Description | | ---- | ------ | ----------- | | NULL | 0 | | | UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | | -| UNKNOWN_OBJECT_TYPE_URL | 3 | | +| BAD_INPUT | 2 | ... | - + -### Rpc.Shutdown.Response.Error.Code +### Rpc.Template.CreateFromObject.Response.Error.Code | Name | Number | Description | | ---- | ------ | ----------- | | NULL | 0 | | | UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | | -| NODE_NOT_STARTED | 101 | | +| BAD_INPUT | 2 | ... | - + -### Rpc.UnsplashDownload.Response.Error.Code +### Rpc.Template.CreateFromObjectType.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### Rpc.Template.ExportAll.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + + + +### Rpc.Unsplash.Download.Response.Error.Code | Name | Number | Description | @@ -13438,9 +12894,9 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er - + -### Rpc.UnsplashSearch.Response.Error.Code +### Rpc.Unsplash.Search.Response.Error.Code | Name | Number | Description | @@ -13452,35 +12908,6 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er - - -### Rpc.UploadFile.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | | - - - - - -### Rpc.Version.Get.Response.Error.Code - - -| Name | Number | Description | -| ---- | ------ | ----------- | -| NULL | 0 | | -| UNKNOWN_ERROR | 1 | | -| BAD_INPUT | 2 | | -| VERSION_IS_EMPTY | 3 | | -| NOT_FOUND | 101 | | -| TIMEOUT | 102 | | - - - ### Rpc.Wallet.Convert.Response.Error.Code @@ -13535,6 +12962,19 @@ Middleware-to-front-end response, that can contain a NULL error or a non-NULL er + + +### Rpc.Workspace.Export.Response.Error.Code + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| NULL | 0 | | +| UNKNOWN_ERROR | 1 | | +| BAD_INPUT | 2 | ... | + + + ### Rpc.Workspace.GetAll.Response.Error.Code @@ -13632,7 +13072,7 @@ Event – type of message, that could be sent from a middleware to the correspon ### Event.Account.Config -Deprecated + @@ -14931,6 +14371,40 @@ Precondition: user A opened a block | targetBlockId | [Event.Block.Set.Link.TargetBlockId](#anytype-Event-Block-Set-Link-TargetBlockId) | | | | style | [Event.Block.Set.Link.Style](#anytype-Event-Block-Set-Link-Style) | | | | fields | [Event.Block.Set.Link.Fields](#anytype-Event-Block-Set-Link-Fields) | | | +| iconSize | [Event.Block.Set.Link.IconSize](#anytype-Event-Block-Set-Link-IconSize) | | | +| cardStyle | [Event.Block.Set.Link.CardStyle](#anytype-Event-Block-Set-Link-CardStyle) | | | +| description | [Event.Block.Set.Link.Description](#anytype-Event-Block-Set-Link-Description) | | | +| relations | [Event.Block.Set.Link.Relations](#anytype-Event-Block-Set-Link-Relations) | | | + + + + + + + + +### Event.Block.Set.Link.CardStyle + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| value | [model.Block.Content.Link.CardStyle](#anytype-model-Block-Content-Link-CardStyle) | | | + + + + + + + + +### Event.Block.Set.Link.Description + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| value | [model.Block.Content.Link.Description](#anytype-model-Block-Content-Link-Description) | | | @@ -14952,6 +14426,36 @@ Precondition: user A opened a block + + +### Event.Block.Set.Link.IconSize + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| value | [model.Block.Content.Link.IconSize](#anytype-model-Block-Content-Link-IconSize) | | | + + + + + + + + +### Event.Block.Set.Link.Relations + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| value | [string](#string) | repeated | | + + + + + + ### Event.Block.Set.Link.Style @@ -16116,6 +15620,7 @@ Contains basic information about a user account | avatar | [Account.Avatar](#anytype-model-Account-Avatar) | | Avatar of a user's account | | config | [Account.Config](#anytype-model-Account-Config) | | | | status | [Account.Status](#anytype-model-Account-Status) | | | +| info | [Account.Info](#anytype-model-Account-Info) | | | @@ -16157,6 +15662,28 @@ Avatar of a user's account. It could be an image or color + + +### Account.Info + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| homeObjectId | [string](#string) | | home dashboard block id | +| archiveObjectId | [string](#string) | | archive block id | +| profileObjectId | [string](#string) | | profile block id | +| marketplaceTypeObjectId | [string](#string) | | marketplace type id | +| marketplaceRelationObjectId | [string](#string) | | marketplace relation id | +| marketplaceTemplateObjectId | [string](#string) | | marketplace template id | +| deviceId | [string](#string) | | | +| gatewayUrl | [string](#string) | | gateway url for fetching static files | + + + + + + ### Account.Status @@ -16437,6 +15964,10 @@ Link: block to link some content from an external sources. | targetBlockId | [string](#string) | | id of the target block | | style | [Block.Content.Link.Style](#anytype-model-Block-Content-Link-Style) | | deprecated | | fields | [google.protobuf.Struct](#google-protobuf-Struct) | | | +| iconSize | [Block.Content.Link.IconSize](#anytype-model-Block-Content-Link-IconSize) | | | +| cardStyle | [Block.Content.Link.CardStyle](#anytype-model-Block-Content-Link-CardStyle) | | | +| description | [Block.Content.Link.Description](#anytype-model-Block-Content-Link-Description) | | | +| relations | [string](#string) | repeated | | @@ -17025,6 +16556,44 @@ scope from which this relation have been aggregated | + + +### Block.Content.Link.CardStyle + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| Text | 0 | | +| Card | 1 | | +| Inline | 2 | | + + + + + +### Block.Content.Link.Description + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| None | 0 | | +| Added | 1 | | +| Content | 2 | | + + + + + +### Block.Content.Link.IconSize + + +| Name | Number | Description | +| ---- | ------ | ----------- | +| Small | 0 | | +| Medium | 1 | | + + + ### Block.Content.Link.Style diff --git a/go.mod b/go.mod index 482cd831f..e66aa7aec 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ require ( github.com/HdrHistogram/hdrhistogram-go v1.1.0 // indirect github.com/JohannesKaufmann/html-to-markdown v0.0.0-00010101000000-000000000000 github.com/PuerkitoBio/goquery v1.7.1 - github.com/anytypeio/go-ds-badger3 v0.2.8-0.20211208232951-e452447f05c6 + github.com/anytypeio/go-ds-badger3 v0.2.8-0.20220504140742-6dcb75660602 github.com/anytypeio/go-slip10 v0.0.0-20200330112030-a352ca8495e4 github.com/anytypeio/go-slip21 v0.0.0-20200218204727-e2e51e20ab51 github.com/araddon/dateparse v0.0.0-20210429162001-6b43995a97de @@ -24,9 +24,10 @@ require ( github.com/gobwas/glob v0.2.3 github.com/goccy/go-graphviz v0.0.9 github.com/gogo/protobuf v1.3.2 + github.com/gogo/status v1.1.0 github.com/golang/mock v1.6.0 github.com/google/uuid v1.3.0 - github.com/gosimple/slug v1.12.0 // indirect + github.com/gosimple/slug v1.12.0 github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645 @@ -49,6 +50,7 @@ require ( github.com/ipfs/go-path v0.0.7 github.com/ipfs/go-unixfs v0.2.5 github.com/ipfs/interface-go-ipfs-core v0.4.0 + github.com/jbenet/goprocess v0.1.4 github.com/jsummers/gobmp v0.0.0-20151104160322-e2ba15ffa76e github.com/kelseyhightower/envconfig v1.4.0 github.com/libp2p/go-libp2p v0.14.3 @@ -84,7 +86,6 @@ require ( github.com/tyler-smith/go-bip39 v1.0.1-0.20190808214741-c55f737395bc github.com/uber/jaeger-client-go v2.28.0+incompatible github.com/uber/jaeger-lib v2.4.0+incompatible // indirect - github.com/gogo/status v1.1.0 github.com/yuin/goldmark v1.4.0 go.uber.org/zap v1.16.0 golang.org/x/crypto v0.0.0-20220112180741-5e0467b6c7ce // indirect @@ -102,6 +103,8 @@ require ( nhooyr.io/websocket v1.8.7 // indirect ) +replace github.com/dgraph-io/ristretto => github.com/dgraph-io/ristretto v0.1.1-0.20220403145359-8e850b710d6d + replace github.com/JohannesKaufmann/html-to-markdown => github.com/anytypeio/html-to-markdown v0.0.0-20200617145221-2afd2a14bae1 replace github.com/textileio/go-threads => github.com/anytypeio/go-threads v1.1.0-rc1.0.20220223104843-a67245cee80e diff --git a/go.sum b/go.sum index 095417777..1ac7ecf18 100644 --- a/go.sum +++ b/go.sum @@ -79,10 +79,8 @@ github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYU github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= github.com/anytypeio/amplitude-go v0.0.0-20211130222238-8d16496a9b31 h1:fCXBjRAxXq4pKyfH8xmYPfjL/E6v5zTTxYrIKDz8ufw= github.com/anytypeio/amplitude-go v0.0.0-20211130222238-8d16496a9b31/go.mod h1:uX6FcwR+wTQWzFszLXQxeKfNeittg1408V7pVAtLKqQ= -github.com/anytypeio/badger/v3 v3.2103.3-0.20211208214531-90d37368c220 h1:Re2YR8w2xLuQisVfEqLQP2aqAbKsVUnsgBCWcJXfQeY= -github.com/anytypeio/badger/v3 v3.2103.3-0.20211208214531-90d37368c220/go.mod h1:/7Bz+MdP5VAvsg5XmFieHsCgj9P689gBq8ho0Cv/WiE= -github.com/anytypeio/go-ds-badger3 v0.2.8-0.20211208232951-e452447f05c6 h1:XJyExPcF1Zq4Fx5vi7/g8EdMfBKKIJXzUSbfDUSyC/I= -github.com/anytypeio/go-ds-badger3 v0.2.8-0.20211208232951-e452447f05c6/go.mod h1:Xv0XbZm3cAt74F2bz0/XrrpJpsDnkBJ4TM8gpim6oH4= +github.com/anytypeio/go-ds-badger3 v0.2.8-0.20220504140742-6dcb75660602 h1:n1DivSsdeLyeFxTOh6b+BxtPX+UpVD0QaaWBrw4bmk8= +github.com/anytypeio/go-ds-badger3 v0.2.8-0.20220504140742-6dcb75660602/go.mod h1:uo/XleabUVxEBA5rccunHRAzgP7IBapv0ldizyX4Y6M= github.com/anytypeio/go-gelf v0.0.0-20210418191311-774bd5b016e7 h1:YBmcug6mOdwjJcmzA/Fpjtl2oo78+fMlr5Xj0dzwg78= github.com/anytypeio/go-gelf v0.0.0-20210418191311-774bd5b016e7/go.mod h1:EuPAem8b51iulSY3wBQJc0Shz+A2DmyREddzDt0fywM= github.com/anytypeio/go-log/v2 v2.1.2-0.20200810212702-264b187bb04f h1:aeyycLTPbhwjW2x/EkmuAgRzdX0bdwy+RStmevhQbhM= @@ -238,12 +236,10 @@ github.com/dgraph-io/badger v1.6.0/go.mod h1:zwt7syl517jmP8s94KqSxTlM6IMsdhYy6ps github.com/dgraph-io/badger v1.6.1/go.mod h1:FRmFw3uxvcpa8zG3Rxs0th+hCLIuaQg8HlNV5bjgnuU= github.com/dgraph-io/badger v1.6.2 h1:mNw0qs90GVgGGWylh0umH5iag1j6n/PeJtNvL6KY/x8= github.com/dgraph-io/badger v1.6.2/go.mod h1:JW2yswe3V058sS0kZ2h/AXeDSqFjxnZcRrVH//y2UQE= -github.com/dgraph-io/badger/v3 v3.2103.2 h1:dpyM5eCJAtQCBcMCZcT4UBZchuTJgCywerHHgmxfxM8= -github.com/dgraph-io/badger/v3 v3.2103.2/go.mod h1:RHo4/GmYcKKh5Lxu63wLEMHJ70Pac2JqZRYGhlyAo2M= -github.com/dgraph-io/ristretto v0.0.2/go.mod h1:KPxhHT9ZxKefz+PCeOGsrHpl1qZ7i70dGTu2u+Ahh6E= -github.com/dgraph-io/ristretto v0.1.0/go.mod h1:fux0lOrBhrVCJd3lcTHsIJhq1T2rokOu6v9Vcb3Q9ug= -github.com/dgraph-io/ristretto v0.1.1-0.20211108053508-297c39e6640f h1:NBGp2JpfMtXmanFWt6f3gEdBtnLO5LupRvm3w4TXrvs= -github.com/dgraph-io/ristretto v0.1.1-0.20211108053508-297c39e6640f/go.mod h1:fux0lOrBhrVCJd3lcTHsIJhq1T2rokOu6v9Vcb3Q9ug= +github.com/dgraph-io/badger/v3 v3.0.0-20220429165824-bc74fea7d03b h1:951ezSwZ+rHhleAftv+yjxiUZNVlSV50LHhOpCdr/us= +github.com/dgraph-io/badger/v3 v3.0.0-20220429165824-bc74fea7d03b/go.mod h1:RHo4/GmYcKKh5Lxu63wLEMHJ70Pac2JqZRYGhlyAo2M= +github.com/dgraph-io/ristretto v0.1.1-0.20220403145359-8e850b710d6d h1:Wrc3UKTS+cffkOx0xRGFC+ZesNuTfn0ThvEC72N0krk= +github.com/dgraph-io/ristretto v0.1.1-0.20220403145359-8e850b710d6d/go.mod h1:RAy2GVV4sTWVlNMavv3xhLsk18rxhfhDnombTe6EF5c= github.com/dgrijalva/jwt-go v3.2.0+incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM= github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= github.com/dgryski/go-farm v0.0.0-20190104051053-3adb47b1fb0f/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= @@ -1522,8 +1518,9 @@ go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqe go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= -go.uber.org/atomic v1.6.0 h1:Ezj3JGmsOnG1MoRWQkPBsKLe9DwWD9QeXzTRzzldNVk= go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= +go.uber.org/atomic v1.9.0 h1:ECmE8Bn/WFTYwEW/bpKD3M8VtR/zQVbavAoalC1PYyE= +go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/goleak v1.0.0 h1:qsup4IcBdlmsnGfqyLl4Ntn3C2XCCuKAE7DwHpScyUo= go.uber.org/goleak v1.0.0/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A= go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= @@ -1607,7 +1604,6 @@ golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPI golang.org/x/lint v0.0.0-20210508222113-6edffad5e616 h1:VLliZ0d+/avPrXXH+OakdXhpJuEoBZuwh1m2j7U6Iug= golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= -golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028 h1:4+4C/Iv2U4fMZBiMCc98MG1In4gJY5YRhtpDNeDeHWs= golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= diff --git a/pb/commands.pb.go b/pb/commands.pb.go index 0a494544f..2c4d1547f 100644 --- a/pb/commands.pb.go +++ b/pb/commands.pb.go @@ -24,2390 +24,128 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -type RpcMetricsSetParametersResponseErrorCode int32 +type RpcAppGetVersionResponseErrorCode int32 const ( - RpcMetricsSetParametersResponseError_NULL RpcMetricsSetParametersResponseErrorCode = 0 - RpcMetricsSetParametersResponseError_UNKNOWN_ERROR RpcMetricsSetParametersResponseErrorCode = 1 - RpcMetricsSetParametersResponseError_BAD_INPUT RpcMetricsSetParametersResponseErrorCode = 2 + RpcAppGetVersionResponseError_NULL RpcAppGetVersionResponseErrorCode = 0 + RpcAppGetVersionResponseError_UNKNOWN_ERROR RpcAppGetVersionResponseErrorCode = 1 + RpcAppGetVersionResponseError_BAD_INPUT RpcAppGetVersionResponseErrorCode = 2 + RpcAppGetVersionResponseError_VERSION_IS_EMPTY RpcAppGetVersionResponseErrorCode = 3 + RpcAppGetVersionResponseError_NOT_FOUND RpcAppGetVersionResponseErrorCode = 101 + RpcAppGetVersionResponseError_TIMEOUT RpcAppGetVersionResponseErrorCode = 102 ) -var RpcMetricsSetParametersResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", +var RpcAppGetVersionResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", + 3: "VERSION_IS_EMPTY", + 101: "NOT_FOUND", + 102: "TIMEOUT", } -var RpcMetricsSetParametersResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, +var RpcAppGetVersionResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, + "VERSION_IS_EMPTY": 3, + "NOT_FOUND": 101, + "TIMEOUT": 102, } -func (x RpcMetricsSetParametersResponseErrorCode) String() string { - return proto.EnumName(RpcMetricsSetParametersResponseErrorCode_name, int32(x)) +func (x RpcAppGetVersionResponseErrorCode) String() string { + return proto.EnumName(RpcAppGetVersionResponseErrorCode_name, int32(x)) } -func (RpcMetricsSetParametersResponseErrorCode) EnumDescriptor() ([]byte, []int) { +func (RpcAppGetVersionResponseErrorCode) EnumDescriptor() ([]byte, []int) { return fileDescriptor_8261c968b2e6f45c, []int{0, 0, 0, 1, 0, 0} } -type RpcExternalDropFilesResponseErrorCode int32 +type RpcAppSetDeviceStateRequestDeviceState int32 const ( - RpcExternalDropFilesResponseError_NULL RpcExternalDropFilesResponseErrorCode = 0 - RpcExternalDropFilesResponseError_UNKNOWN_ERROR RpcExternalDropFilesResponseErrorCode = 1 - RpcExternalDropFilesResponseError_BAD_INPUT RpcExternalDropFilesResponseErrorCode = 2 + RpcAppSetDeviceStateRequest_BACKGROUND RpcAppSetDeviceStateRequestDeviceState = 0 + RpcAppSetDeviceStateRequest_FOREGROUND RpcAppSetDeviceStateRequestDeviceState = 1 ) -var RpcExternalDropFilesResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", +var RpcAppSetDeviceStateRequestDeviceState_name = map[int32]string{ + 0: "BACKGROUND", + 1: "FOREGROUND", } -var RpcExternalDropFilesResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, +var RpcAppSetDeviceStateRequestDeviceState_value = map[string]int32{ + "BACKGROUND": 0, + "FOREGROUND": 1, } -func (x RpcExternalDropFilesResponseErrorCode) String() string { - return proto.EnumName(RpcExternalDropFilesResponseErrorCode_name, int32(x)) +func (x RpcAppSetDeviceStateRequestDeviceState) String() string { + return proto.EnumName(RpcAppSetDeviceStateRequestDeviceState_name, int32(x)) } -func (RpcExternalDropFilesResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 1, 0, 1, 0, 0} +func (RpcAppSetDeviceStateRequestDeviceState) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 0, 1, 0, 0} } -type RpcExternalDropContentResponseErrorCode int32 +type RpcAppSetDeviceStateResponseErrorCode int32 const ( - RpcExternalDropContentResponseError_NULL RpcExternalDropContentResponseErrorCode = 0 - RpcExternalDropContentResponseError_UNKNOWN_ERROR RpcExternalDropContentResponseErrorCode = 1 - RpcExternalDropContentResponseError_BAD_INPUT RpcExternalDropContentResponseErrorCode = 2 + RpcAppSetDeviceStateResponseError_NULL RpcAppSetDeviceStateResponseErrorCode = 0 + RpcAppSetDeviceStateResponseError_UNKNOWN_ERROR RpcAppSetDeviceStateResponseErrorCode = 1 + RpcAppSetDeviceStateResponseError_BAD_INPUT RpcAppSetDeviceStateResponseErrorCode = 2 + RpcAppSetDeviceStateResponseError_NODE_NOT_STARTED RpcAppSetDeviceStateResponseErrorCode = 101 ) -var RpcExternalDropContentResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", +var RpcAppSetDeviceStateResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", + 101: "NODE_NOT_STARTED", } -var RpcExternalDropContentResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, +var RpcAppSetDeviceStateResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, + "NODE_NOT_STARTED": 101, } -func (x RpcExternalDropContentResponseErrorCode) String() string { - return proto.EnumName(RpcExternalDropContentResponseErrorCode_name, int32(x)) +func (x RpcAppSetDeviceStateResponseErrorCode) String() string { + return proto.EnumName(RpcAppSetDeviceStateResponseErrorCode_name, int32(x)) } -func (RpcExternalDropContentResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 1, 1, 1, 0, 0} +func (RpcAppSetDeviceStateResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 0, 1, 1, 0, 0} } -type RpcBlockListConvertChildrenToPagesResponseErrorCode int32 +type RpcAppShutdownResponseErrorCode int32 const ( - RpcBlockListConvertChildrenToPagesResponseError_NULL RpcBlockListConvertChildrenToPagesResponseErrorCode = 0 - RpcBlockListConvertChildrenToPagesResponseError_UNKNOWN_ERROR RpcBlockListConvertChildrenToPagesResponseErrorCode = 1 - RpcBlockListConvertChildrenToPagesResponseError_BAD_INPUT RpcBlockListConvertChildrenToPagesResponseErrorCode = 2 + RpcAppShutdownResponseError_NULL RpcAppShutdownResponseErrorCode = 0 + RpcAppShutdownResponseError_UNKNOWN_ERROR RpcAppShutdownResponseErrorCode = 1 + RpcAppShutdownResponseError_BAD_INPUT RpcAppShutdownResponseErrorCode = 2 + RpcAppShutdownResponseError_NODE_NOT_STARTED RpcAppShutdownResponseErrorCode = 101 ) -var RpcBlockListConvertChildrenToPagesResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", +var RpcAppShutdownResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", + 101: "NODE_NOT_STARTED", } -var RpcBlockListConvertChildrenToPagesResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, +var RpcAppShutdownResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, + "NODE_NOT_STARTED": 101, } -func (x RpcBlockListConvertChildrenToPagesResponseErrorCode) String() string { - return proto.EnumName(RpcBlockListConvertChildrenToPagesResponseErrorCode_name, int32(x)) +func (x RpcAppShutdownResponseErrorCode) String() string { + return proto.EnumName(RpcAppShutdownResponseErrorCode_name, int32(x)) } -func (RpcBlockListConvertChildrenToPagesResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 0, 1, 0, 0} -} - -type RpcBlockListMoveResponseErrorCode int32 - -const ( - RpcBlockListMoveResponseError_NULL RpcBlockListMoveResponseErrorCode = 0 - RpcBlockListMoveResponseError_UNKNOWN_ERROR RpcBlockListMoveResponseErrorCode = 1 - RpcBlockListMoveResponseError_BAD_INPUT RpcBlockListMoveResponseErrorCode = 2 -) - -var RpcBlockListMoveResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockListMoveResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockListMoveResponseErrorCode) String() string { - return proto.EnumName(RpcBlockListMoveResponseErrorCode_name, int32(x)) -} - -func (RpcBlockListMoveResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 1, 1, 0, 0} -} - -type RpcBlockListMoveToNewPageResponseErrorCode int32 - -const ( - RpcBlockListMoveToNewPageResponseError_NULL RpcBlockListMoveToNewPageResponseErrorCode = 0 - RpcBlockListMoveToNewPageResponseError_UNKNOWN_ERROR RpcBlockListMoveToNewPageResponseErrorCode = 1 - RpcBlockListMoveToNewPageResponseError_BAD_INPUT RpcBlockListMoveToNewPageResponseErrorCode = 2 -) - -var RpcBlockListMoveToNewPageResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockListMoveToNewPageResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockListMoveToNewPageResponseErrorCode) String() string { - return proto.EnumName(RpcBlockListMoveToNewPageResponseErrorCode_name, int32(x)) -} - -func (RpcBlockListMoveToNewPageResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 2, 1, 0, 0} -} - -type RpcBlockListDuplicateResponseErrorCode int32 - -const ( - RpcBlockListDuplicateResponseError_NULL RpcBlockListDuplicateResponseErrorCode = 0 - RpcBlockListDuplicateResponseError_UNKNOWN_ERROR RpcBlockListDuplicateResponseErrorCode = 1 - RpcBlockListDuplicateResponseError_BAD_INPUT RpcBlockListDuplicateResponseErrorCode = 2 -) - -var RpcBlockListDuplicateResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockListDuplicateResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockListDuplicateResponseErrorCode) String() string { - return proto.EnumName(RpcBlockListDuplicateResponseErrorCode_name, int32(x)) -} - -func (RpcBlockListDuplicateResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 3, 1, 0, 0} -} - -type RpcBlockListSetTextStyleResponseErrorCode int32 - -const ( - RpcBlockListSetTextStyleResponseError_NULL RpcBlockListSetTextStyleResponseErrorCode = 0 - RpcBlockListSetTextStyleResponseError_UNKNOWN_ERROR RpcBlockListSetTextStyleResponseErrorCode = 1 - RpcBlockListSetTextStyleResponseError_BAD_INPUT RpcBlockListSetTextStyleResponseErrorCode = 2 -) - -var RpcBlockListSetTextStyleResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockListSetTextStyleResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockListSetTextStyleResponseErrorCode) String() string { - return proto.EnumName(RpcBlockListSetTextStyleResponseErrorCode_name, int32(x)) -} - -func (RpcBlockListSetTextStyleResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 0, 0, 1, 0, 0} -} - -type RpcBlockListSetTextColorResponseErrorCode int32 - -const ( - RpcBlockListSetTextColorResponseError_NULL RpcBlockListSetTextColorResponseErrorCode = 0 - RpcBlockListSetTextColorResponseError_UNKNOWN_ERROR RpcBlockListSetTextColorResponseErrorCode = 1 - RpcBlockListSetTextColorResponseError_BAD_INPUT RpcBlockListSetTextColorResponseErrorCode = 2 -) - -var RpcBlockListSetTextColorResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockListSetTextColorResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockListSetTextColorResponseErrorCode) String() string { - return proto.EnumName(RpcBlockListSetTextColorResponseErrorCode_name, int32(x)) -} - -func (RpcBlockListSetTextColorResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 0, 1, 1, 0, 0} -} - -type RpcBlockListSetTextMarkResponseErrorCode int32 - -const ( - RpcBlockListSetTextMarkResponseError_NULL RpcBlockListSetTextMarkResponseErrorCode = 0 - RpcBlockListSetTextMarkResponseError_UNKNOWN_ERROR RpcBlockListSetTextMarkResponseErrorCode = 1 - RpcBlockListSetTextMarkResponseError_BAD_INPUT RpcBlockListSetTextMarkResponseErrorCode = 2 -) - -var RpcBlockListSetTextMarkResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockListSetTextMarkResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockListSetTextMarkResponseErrorCode) String() string { - return proto.EnumName(RpcBlockListSetTextMarkResponseErrorCode_name, int32(x)) -} - -func (RpcBlockListSetTextMarkResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 0, 2, 1, 0, 0} -} - -type RpcBlockListSetBackgroundColorResponseErrorCode int32 - -const ( - RpcBlockListSetBackgroundColorResponseError_NULL RpcBlockListSetBackgroundColorResponseErrorCode = 0 - RpcBlockListSetBackgroundColorResponseError_UNKNOWN_ERROR RpcBlockListSetBackgroundColorResponseErrorCode = 1 - RpcBlockListSetBackgroundColorResponseError_BAD_INPUT RpcBlockListSetBackgroundColorResponseErrorCode = 2 -) - -var RpcBlockListSetBackgroundColorResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockListSetBackgroundColorResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockListSetBackgroundColorResponseErrorCode) String() string { - return proto.EnumName(RpcBlockListSetBackgroundColorResponseErrorCode_name, int32(x)) -} - -func (RpcBlockListSetBackgroundColorResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 1, 1, 0, 0} -} - -type RpcBlockListSetAlignResponseErrorCode int32 - -const ( - RpcBlockListSetAlignResponseError_NULL RpcBlockListSetAlignResponseErrorCode = 0 - RpcBlockListSetAlignResponseError_UNKNOWN_ERROR RpcBlockListSetAlignResponseErrorCode = 1 - RpcBlockListSetAlignResponseError_BAD_INPUT RpcBlockListSetAlignResponseErrorCode = 2 -) - -var RpcBlockListSetAlignResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockListSetAlignResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockListSetAlignResponseErrorCode) String() string { - return proto.EnumName(RpcBlockListSetAlignResponseErrorCode_name, int32(x)) -} - -func (RpcBlockListSetAlignResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 2, 1, 0, 0} -} - -type RpcBlockListSetFieldsResponseErrorCode int32 - -const ( - RpcBlockListSetFieldsResponseError_NULL RpcBlockListSetFieldsResponseErrorCode = 0 - RpcBlockListSetFieldsResponseError_UNKNOWN_ERROR RpcBlockListSetFieldsResponseErrorCode = 1 - RpcBlockListSetFieldsResponseError_BAD_INPUT RpcBlockListSetFieldsResponseErrorCode = 2 -) - -var RpcBlockListSetFieldsResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockListSetFieldsResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockListSetFieldsResponseErrorCode) String() string { - return proto.EnumName(RpcBlockListSetFieldsResponseErrorCode_name, int32(x)) -} - -func (RpcBlockListSetFieldsResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 3, 1, 0, 0} -} - -type RpcBlockListSetDivStyleResponseErrorCode int32 - -const ( - RpcBlockListSetDivStyleResponseError_NULL RpcBlockListSetDivStyleResponseErrorCode = 0 - RpcBlockListSetDivStyleResponseError_UNKNOWN_ERROR RpcBlockListSetDivStyleResponseErrorCode = 1 - RpcBlockListSetDivStyleResponseError_BAD_INPUT RpcBlockListSetDivStyleResponseErrorCode = 2 -) - -var RpcBlockListSetDivStyleResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockListSetDivStyleResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockListSetDivStyleResponseErrorCode) String() string { - return proto.EnumName(RpcBlockListSetDivStyleResponseErrorCode_name, int32(x)) -} - -func (RpcBlockListSetDivStyleResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 4, 0, 1, 0, 0} -} - -type RpcBlockListSetFileStyleResponseErrorCode int32 - -const ( - RpcBlockListSetFileStyleResponseError_NULL RpcBlockListSetFileStyleResponseErrorCode = 0 - RpcBlockListSetFileStyleResponseError_UNKNOWN_ERROR RpcBlockListSetFileStyleResponseErrorCode = 1 - RpcBlockListSetFileStyleResponseError_BAD_INPUT RpcBlockListSetFileStyleResponseErrorCode = 2 -) - -var RpcBlockListSetFileStyleResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockListSetFileStyleResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockListSetFileStyleResponseErrorCode) String() string { - return proto.EnumName(RpcBlockListSetFileStyleResponseErrorCode_name, int32(x)) -} - -func (RpcBlockListSetFileStyleResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 5, 0, 1, 0, 0} -} - -type RpcBlockListTurnIntoResponseErrorCode int32 - -const ( - RpcBlockListTurnIntoResponseError_NULL RpcBlockListTurnIntoResponseErrorCode = 0 - RpcBlockListTurnIntoResponseError_UNKNOWN_ERROR RpcBlockListTurnIntoResponseErrorCode = 1 - RpcBlockListTurnIntoResponseError_BAD_INPUT RpcBlockListTurnIntoResponseErrorCode = 2 -) - -var RpcBlockListTurnIntoResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockListTurnIntoResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockListTurnIntoResponseErrorCode) String() string { - return proto.EnumName(RpcBlockListTurnIntoResponseErrorCode_name, int32(x)) -} - -func (RpcBlockListTurnIntoResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 5, 1, 0, 0} -} - -type RpcBlockReplaceResponseErrorCode int32 - -const ( - RpcBlockReplaceResponseError_NULL RpcBlockReplaceResponseErrorCode = 0 - RpcBlockReplaceResponseError_UNKNOWN_ERROR RpcBlockReplaceResponseErrorCode = 1 - RpcBlockReplaceResponseError_BAD_INPUT RpcBlockReplaceResponseErrorCode = 2 -) - -var RpcBlockReplaceResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockReplaceResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockReplaceResponseErrorCode) String() string { - return proto.EnumName(RpcBlockReplaceResponseErrorCode_name, int32(x)) -} - -func (RpcBlockReplaceResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 0, 1, 0, 0} -} - -type RpcBlockUpdateContentResponseErrorCode int32 - -const ( - RpcBlockUpdateContentResponseError_NULL RpcBlockUpdateContentResponseErrorCode = 0 - RpcBlockUpdateContentResponseError_UNKNOWN_ERROR RpcBlockUpdateContentResponseErrorCode = 1 - RpcBlockUpdateContentResponseError_BAD_INPUT RpcBlockUpdateContentResponseErrorCode = 2 -) - -var RpcBlockUpdateContentResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockUpdateContentResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockUpdateContentResponseErrorCode) String() string { - return proto.EnumName(RpcBlockUpdateContentResponseErrorCode_name, int32(x)) -} - -func (RpcBlockUpdateContentResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 1, 1, 0, 0} -} - -type RpcBlockSplitRequestMode int32 - -const ( - // new block will be created under existing - RpcBlockSplitRequest_BOTTOM RpcBlockSplitRequestMode = 0 - // new block will be created above existing - RpcBlockSplitRequest_TOP RpcBlockSplitRequestMode = 1 - // new block will be created as the first children of existing - RpcBlockSplitRequest_INNER RpcBlockSplitRequestMode = 2 - // new block will be created after header (not required for set at client side, will auto set for title block) - RpcBlockSplitRequest_TITLE RpcBlockSplitRequestMode = 3 -) - -var RpcBlockSplitRequestMode_name = map[int32]string{ - 0: "BOTTOM", - 1: "TOP", - 2: "INNER", - 3: "TITLE", -} - -var RpcBlockSplitRequestMode_value = map[string]int32{ - "BOTTOM": 0, - "TOP": 1, - "INNER": 2, - "TITLE": 3, -} - -func (x RpcBlockSplitRequestMode) String() string { - return proto.EnumName(RpcBlockSplitRequestMode_name, int32(x)) -} - -func (RpcBlockSplitRequestMode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 2, 0, 0} -} - -type RpcBlockSplitResponseErrorCode int32 - -const ( - RpcBlockSplitResponseError_NULL RpcBlockSplitResponseErrorCode = 0 - RpcBlockSplitResponseError_UNKNOWN_ERROR RpcBlockSplitResponseErrorCode = 1 - RpcBlockSplitResponseError_BAD_INPUT RpcBlockSplitResponseErrorCode = 2 -) - -var RpcBlockSplitResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockSplitResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockSplitResponseErrorCode) String() string { - return proto.EnumName(RpcBlockSplitResponseErrorCode_name, int32(x)) -} - -func (RpcBlockSplitResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 2, 1, 0, 0} -} - -type RpcBlockMergeResponseErrorCode int32 - -const ( - RpcBlockMergeResponseError_NULL RpcBlockMergeResponseErrorCode = 0 - RpcBlockMergeResponseError_UNKNOWN_ERROR RpcBlockMergeResponseErrorCode = 1 - RpcBlockMergeResponseError_BAD_INPUT RpcBlockMergeResponseErrorCode = 2 -) - -var RpcBlockMergeResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockMergeResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockMergeResponseErrorCode) String() string { - return proto.EnumName(RpcBlockMergeResponseErrorCode_name, int32(x)) -} - -func (RpcBlockMergeResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 3, 1, 0, 0} -} - -type RpcBlockCopyResponseErrorCode int32 - -const ( - RpcBlockCopyResponseError_NULL RpcBlockCopyResponseErrorCode = 0 - RpcBlockCopyResponseError_UNKNOWN_ERROR RpcBlockCopyResponseErrorCode = 1 - RpcBlockCopyResponseError_BAD_INPUT RpcBlockCopyResponseErrorCode = 2 -) - -var RpcBlockCopyResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockCopyResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockCopyResponseErrorCode) String() string { - return proto.EnumName(RpcBlockCopyResponseErrorCode_name, int32(x)) -} - -func (RpcBlockCopyResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 4, 1, 0, 0} -} - -type RpcBlockPasteResponseErrorCode int32 - -const ( - RpcBlockPasteResponseError_NULL RpcBlockPasteResponseErrorCode = 0 - RpcBlockPasteResponseError_UNKNOWN_ERROR RpcBlockPasteResponseErrorCode = 1 - RpcBlockPasteResponseError_BAD_INPUT RpcBlockPasteResponseErrorCode = 2 -) - -var RpcBlockPasteResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockPasteResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockPasteResponseErrorCode) String() string { - return proto.EnumName(RpcBlockPasteResponseErrorCode_name, int32(x)) -} - -func (RpcBlockPasteResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 5, 1, 0, 0} -} - -type RpcBlockCutResponseErrorCode int32 - -const ( - RpcBlockCutResponseError_NULL RpcBlockCutResponseErrorCode = 0 - RpcBlockCutResponseError_UNKNOWN_ERROR RpcBlockCutResponseErrorCode = 1 - RpcBlockCutResponseError_BAD_INPUT RpcBlockCutResponseErrorCode = 2 -) - -var RpcBlockCutResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockCutResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockCutResponseErrorCode) String() string { - return proto.EnumName(RpcBlockCutResponseErrorCode_name, int32(x)) -} - -func (RpcBlockCutResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 6, 1, 0, 0} -} - -type RpcBlockImportMarkdownResponseErrorCode int32 - -const ( - RpcBlockImportMarkdownResponseError_NULL RpcBlockImportMarkdownResponseErrorCode = 0 - RpcBlockImportMarkdownResponseError_UNKNOWN_ERROR RpcBlockImportMarkdownResponseErrorCode = 1 - RpcBlockImportMarkdownResponseError_BAD_INPUT RpcBlockImportMarkdownResponseErrorCode = 2 -) - -var RpcBlockImportMarkdownResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockImportMarkdownResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockImportMarkdownResponseErrorCode) String() string { - return proto.EnumName(RpcBlockImportMarkdownResponseErrorCode_name, int32(x)) -} - -func (RpcBlockImportMarkdownResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 7, 1, 0, 0} -} - -type RpcBlockExportResponseErrorCode int32 - -const ( - RpcBlockExportResponseError_NULL RpcBlockExportResponseErrorCode = 0 - RpcBlockExportResponseError_UNKNOWN_ERROR RpcBlockExportResponseErrorCode = 1 - RpcBlockExportResponseError_BAD_INPUT RpcBlockExportResponseErrorCode = 2 -) - -var RpcBlockExportResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockExportResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockExportResponseErrorCode) String() string { - return proto.EnumName(RpcBlockExportResponseErrorCode_name, int32(x)) -} - -func (RpcBlockExportResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 8, 1, 0, 0} -} - -type RpcBlockUploadResponseErrorCode int32 - -const ( - RpcBlockUploadResponseError_NULL RpcBlockUploadResponseErrorCode = 0 - RpcBlockUploadResponseError_UNKNOWN_ERROR RpcBlockUploadResponseErrorCode = 1 - RpcBlockUploadResponseError_BAD_INPUT RpcBlockUploadResponseErrorCode = 2 -) - -var RpcBlockUploadResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockUploadResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockUploadResponseErrorCode) String() string { - return proto.EnumName(RpcBlockUploadResponseErrorCode_name, int32(x)) -} - -func (RpcBlockUploadResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 9, 1, 0, 0} -} - -type RpcBlockDownloadResponseErrorCode int32 - -const ( - RpcBlockDownloadResponseError_NULL RpcBlockDownloadResponseErrorCode = 0 - RpcBlockDownloadResponseError_UNKNOWN_ERROR RpcBlockDownloadResponseErrorCode = 1 - RpcBlockDownloadResponseError_BAD_INPUT RpcBlockDownloadResponseErrorCode = 2 -) - -var RpcBlockDownloadResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockDownloadResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockDownloadResponseErrorCode) String() string { - return proto.EnumName(RpcBlockDownloadResponseErrorCode_name, int32(x)) -} - -func (RpcBlockDownloadResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 10, 1, 0, 0} -} - -type RpcBlockSetFieldsResponseErrorCode int32 - -const ( - RpcBlockSetFieldsResponseError_NULL RpcBlockSetFieldsResponseErrorCode = 0 - RpcBlockSetFieldsResponseError_UNKNOWN_ERROR RpcBlockSetFieldsResponseErrorCode = 1 - RpcBlockSetFieldsResponseError_BAD_INPUT RpcBlockSetFieldsResponseErrorCode = 2 -) - -var RpcBlockSetFieldsResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockSetFieldsResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockSetFieldsResponseErrorCode) String() string { - return proto.EnumName(RpcBlockSetFieldsResponseErrorCode_name, int32(x)) -} - -func (RpcBlockSetFieldsResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 0, 1, 0, 0} -} - -type RpcBlockSetDetailsResponseErrorCode int32 - -const ( - RpcBlockSetDetailsResponseError_NULL RpcBlockSetDetailsResponseErrorCode = 0 - RpcBlockSetDetailsResponseError_UNKNOWN_ERROR RpcBlockSetDetailsResponseErrorCode = 1 - RpcBlockSetDetailsResponseError_BAD_INPUT RpcBlockSetDetailsResponseErrorCode = 2 -) - -var RpcBlockSetDetailsResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockSetDetailsResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockSetDetailsResponseErrorCode) String() string { - return proto.EnumName(RpcBlockSetDetailsResponseErrorCode_name, int32(x)) -} - -func (RpcBlockSetDetailsResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 1, 2, 0, 0} -} - -type RpcBlockSetRestrictionsResponseErrorCode int32 - -const ( - RpcBlockSetRestrictionsResponseError_NULL RpcBlockSetRestrictionsResponseErrorCode = 0 - RpcBlockSetRestrictionsResponseError_UNKNOWN_ERROR RpcBlockSetRestrictionsResponseErrorCode = 1 - RpcBlockSetRestrictionsResponseError_BAD_INPUT RpcBlockSetRestrictionsResponseErrorCode = 2 -) - -var RpcBlockSetRestrictionsResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockSetRestrictionsResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockSetRestrictionsResponseErrorCode) String() string { - return proto.EnumName(RpcBlockSetRestrictionsResponseErrorCode_name, int32(x)) -} - -func (RpcBlockSetRestrictionsResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 2, 1, 0, 0} -} - -type RpcBlockSetPageIsArchivedResponseErrorCode int32 - -const ( - RpcBlockSetPageIsArchivedResponseError_NULL RpcBlockSetPageIsArchivedResponseErrorCode = 0 - RpcBlockSetPageIsArchivedResponseError_UNKNOWN_ERROR RpcBlockSetPageIsArchivedResponseErrorCode = 1 - RpcBlockSetPageIsArchivedResponseError_BAD_INPUT RpcBlockSetPageIsArchivedResponseErrorCode = 2 -) - -var RpcBlockSetPageIsArchivedResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockSetPageIsArchivedResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockSetPageIsArchivedResponseErrorCode) String() string { - return proto.EnumName(RpcBlockSetPageIsArchivedResponseErrorCode_name, int32(x)) -} - -func (RpcBlockSetPageIsArchivedResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 3, 0, 1, 0, 0} -} - -type RpcBlockSetLatexTextResponseErrorCode int32 - -const ( - RpcBlockSetLatexTextResponseError_NULL RpcBlockSetLatexTextResponseErrorCode = 0 - RpcBlockSetLatexTextResponseError_UNKNOWN_ERROR RpcBlockSetLatexTextResponseErrorCode = 1 - RpcBlockSetLatexTextResponseError_BAD_INPUT RpcBlockSetLatexTextResponseErrorCode = 2 -) - -var RpcBlockSetLatexTextResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockSetLatexTextResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockSetLatexTextResponseErrorCode) String() string { - return proto.EnumName(RpcBlockSetLatexTextResponseErrorCode_name, int32(x)) -} - -func (RpcBlockSetLatexTextResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 4, 0, 1, 0, 0} -} - -type RpcBlockSetTextTextResponseErrorCode int32 - -const ( - RpcBlockSetTextTextResponseError_NULL RpcBlockSetTextTextResponseErrorCode = 0 - RpcBlockSetTextTextResponseError_UNKNOWN_ERROR RpcBlockSetTextTextResponseErrorCode = 1 - RpcBlockSetTextTextResponseError_BAD_INPUT RpcBlockSetTextTextResponseErrorCode = 2 -) - -var RpcBlockSetTextTextResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockSetTextTextResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockSetTextTextResponseErrorCode) String() string { - return proto.EnumName(RpcBlockSetTextTextResponseErrorCode_name, int32(x)) -} - -func (RpcBlockSetTextTextResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 5, 0, 1, 0, 0} -} - -type RpcBlockSetTextColorResponseErrorCode int32 - -const ( - RpcBlockSetTextColorResponseError_NULL RpcBlockSetTextColorResponseErrorCode = 0 - RpcBlockSetTextColorResponseError_UNKNOWN_ERROR RpcBlockSetTextColorResponseErrorCode = 1 - RpcBlockSetTextColorResponseError_BAD_INPUT RpcBlockSetTextColorResponseErrorCode = 2 -) - -var RpcBlockSetTextColorResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockSetTextColorResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockSetTextColorResponseErrorCode) String() string { - return proto.EnumName(RpcBlockSetTextColorResponseErrorCode_name, int32(x)) -} - -func (RpcBlockSetTextColorResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 5, 1, 1, 0, 0} -} - -type RpcBlockSetTextStyleResponseErrorCode int32 - -const ( - RpcBlockSetTextStyleResponseError_NULL RpcBlockSetTextStyleResponseErrorCode = 0 - RpcBlockSetTextStyleResponseError_UNKNOWN_ERROR RpcBlockSetTextStyleResponseErrorCode = 1 - RpcBlockSetTextStyleResponseError_BAD_INPUT RpcBlockSetTextStyleResponseErrorCode = 2 -) - -var RpcBlockSetTextStyleResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockSetTextStyleResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockSetTextStyleResponseErrorCode) String() string { - return proto.EnumName(RpcBlockSetTextStyleResponseErrorCode_name, int32(x)) -} - -func (RpcBlockSetTextStyleResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 5, 2, 1, 0, 0} -} - -type RpcBlockSetTextCheckedResponseErrorCode int32 - -const ( - RpcBlockSetTextCheckedResponseError_NULL RpcBlockSetTextCheckedResponseErrorCode = 0 - RpcBlockSetTextCheckedResponseError_UNKNOWN_ERROR RpcBlockSetTextCheckedResponseErrorCode = 1 - RpcBlockSetTextCheckedResponseError_BAD_INPUT RpcBlockSetTextCheckedResponseErrorCode = 2 -) - -var RpcBlockSetTextCheckedResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockSetTextCheckedResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockSetTextCheckedResponseErrorCode) String() string { - return proto.EnumName(RpcBlockSetTextCheckedResponseErrorCode_name, int32(x)) -} - -func (RpcBlockSetTextCheckedResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 5, 3, 1, 0, 0} -} - -type RpcBlockSetTextIconResponseErrorCode int32 - -const ( - RpcBlockSetTextIconResponseError_NULL RpcBlockSetTextIconResponseErrorCode = 0 - RpcBlockSetTextIconResponseError_UNKNOWN_ERROR RpcBlockSetTextIconResponseErrorCode = 1 - RpcBlockSetTextIconResponseError_BAD_INPUT RpcBlockSetTextIconResponseErrorCode = 2 -) - -var RpcBlockSetTextIconResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockSetTextIconResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockSetTextIconResponseErrorCode) String() string { - return proto.EnumName(RpcBlockSetTextIconResponseErrorCode_name, int32(x)) -} - -func (RpcBlockSetTextIconResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 5, 4, 1, 0, 0} -} - -type RpcBlockSetFileNameResponseErrorCode int32 - -const ( - RpcBlockSetFileNameResponseError_NULL RpcBlockSetFileNameResponseErrorCode = 0 - RpcBlockSetFileNameResponseError_UNKNOWN_ERROR RpcBlockSetFileNameResponseErrorCode = 1 - RpcBlockSetFileNameResponseError_BAD_INPUT RpcBlockSetFileNameResponseErrorCode = 2 -) - -var RpcBlockSetFileNameResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockSetFileNameResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockSetFileNameResponseErrorCode) String() string { - return proto.EnumName(RpcBlockSetFileNameResponseErrorCode_name, int32(x)) -} - -func (RpcBlockSetFileNameResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 6, 0, 1, 0, 0} -} - -type RpcBlockSetImageNameResponseErrorCode int32 - -const ( - RpcBlockSetImageNameResponseError_NULL RpcBlockSetImageNameResponseErrorCode = 0 - RpcBlockSetImageNameResponseError_UNKNOWN_ERROR RpcBlockSetImageNameResponseErrorCode = 1 - RpcBlockSetImageNameResponseError_BAD_INPUT RpcBlockSetImageNameResponseErrorCode = 2 -) - -var RpcBlockSetImageNameResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockSetImageNameResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockSetImageNameResponseErrorCode) String() string { - return proto.EnumName(RpcBlockSetImageNameResponseErrorCode_name, int32(x)) -} - -func (RpcBlockSetImageNameResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 7, 0, 1, 0, 0} -} - -type RpcBlockSetImageWidthResponseErrorCode int32 - -const ( - RpcBlockSetImageWidthResponseError_NULL RpcBlockSetImageWidthResponseErrorCode = 0 - RpcBlockSetImageWidthResponseError_UNKNOWN_ERROR RpcBlockSetImageWidthResponseErrorCode = 1 - RpcBlockSetImageWidthResponseError_BAD_INPUT RpcBlockSetImageWidthResponseErrorCode = 2 -) - -var RpcBlockSetImageWidthResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockSetImageWidthResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockSetImageWidthResponseErrorCode) String() string { - return proto.EnumName(RpcBlockSetImageWidthResponseErrorCode_name, int32(x)) -} - -func (RpcBlockSetImageWidthResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 7, 1, 1, 0, 0} -} - -type RpcBlockSetVideoNameResponseErrorCode int32 - -const ( - RpcBlockSetVideoNameResponseError_NULL RpcBlockSetVideoNameResponseErrorCode = 0 - RpcBlockSetVideoNameResponseError_UNKNOWN_ERROR RpcBlockSetVideoNameResponseErrorCode = 1 - RpcBlockSetVideoNameResponseError_BAD_INPUT RpcBlockSetVideoNameResponseErrorCode = 2 -) - -var RpcBlockSetVideoNameResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockSetVideoNameResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockSetVideoNameResponseErrorCode) String() string { - return proto.EnumName(RpcBlockSetVideoNameResponseErrorCode_name, int32(x)) -} - -func (RpcBlockSetVideoNameResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 8, 0, 1, 0, 0} -} - -type RpcBlockSetVideoWidthResponseErrorCode int32 - -const ( - RpcBlockSetVideoWidthResponseError_NULL RpcBlockSetVideoWidthResponseErrorCode = 0 - RpcBlockSetVideoWidthResponseError_UNKNOWN_ERROR RpcBlockSetVideoWidthResponseErrorCode = 1 - RpcBlockSetVideoWidthResponseError_BAD_INPUT RpcBlockSetVideoWidthResponseErrorCode = 2 -) - -var RpcBlockSetVideoWidthResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockSetVideoWidthResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockSetVideoWidthResponseErrorCode) String() string { - return proto.EnumName(RpcBlockSetVideoWidthResponseErrorCode_name, int32(x)) -} - -func (RpcBlockSetVideoWidthResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 8, 1, 1, 0, 0} -} - -type RpcBlockSetLinkTargetBlockIdResponseErrorCode int32 - -const ( - RpcBlockSetLinkTargetBlockIdResponseError_NULL RpcBlockSetLinkTargetBlockIdResponseErrorCode = 0 - RpcBlockSetLinkTargetBlockIdResponseError_UNKNOWN_ERROR RpcBlockSetLinkTargetBlockIdResponseErrorCode = 1 - RpcBlockSetLinkTargetBlockIdResponseError_BAD_INPUT RpcBlockSetLinkTargetBlockIdResponseErrorCode = 2 -) - -var RpcBlockSetLinkTargetBlockIdResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockSetLinkTargetBlockIdResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockSetLinkTargetBlockIdResponseErrorCode) String() string { - return proto.EnumName(RpcBlockSetLinkTargetBlockIdResponseErrorCode_name, int32(x)) -} - -func (RpcBlockSetLinkTargetBlockIdResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 9, 0, 1, 0, 0} -} - -type RpcBlockRelationSetKeyResponseErrorCode int32 - -const ( - RpcBlockRelationSetKeyResponseError_NULL RpcBlockRelationSetKeyResponseErrorCode = 0 - RpcBlockRelationSetKeyResponseError_UNKNOWN_ERROR RpcBlockRelationSetKeyResponseErrorCode = 1 - RpcBlockRelationSetKeyResponseError_BAD_INPUT RpcBlockRelationSetKeyResponseErrorCode = 2 -) - -var RpcBlockRelationSetKeyResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockRelationSetKeyResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockRelationSetKeyResponseErrorCode) String() string { - return proto.EnumName(RpcBlockRelationSetKeyResponseErrorCode_name, int32(x)) -} - -func (RpcBlockRelationSetKeyResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 12, 0, 1, 0, 0} -} - -type RpcBlockRelationAddResponseErrorCode int32 - -const ( - RpcBlockRelationAddResponseError_NULL RpcBlockRelationAddResponseErrorCode = 0 - RpcBlockRelationAddResponseError_UNKNOWN_ERROR RpcBlockRelationAddResponseErrorCode = 1 - RpcBlockRelationAddResponseError_BAD_INPUT RpcBlockRelationAddResponseErrorCode = 2 -) - -var RpcBlockRelationAddResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockRelationAddResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockRelationAddResponseErrorCode) String() string { - return proto.EnumName(RpcBlockRelationAddResponseErrorCode_name, int32(x)) -} - -func (RpcBlockRelationAddResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 12, 1, 1, 0, 0} -} - -type RpcBlockObjectTypeSetResponseErrorCode int32 - -const ( - RpcBlockObjectTypeSetResponseError_NULL RpcBlockObjectTypeSetResponseErrorCode = 0 - RpcBlockObjectTypeSetResponseError_UNKNOWN_ERROR RpcBlockObjectTypeSetResponseErrorCode = 1 - RpcBlockObjectTypeSetResponseError_BAD_INPUT RpcBlockObjectTypeSetResponseErrorCode = 2 - RpcBlockObjectTypeSetResponseError_UNKNOWN_OBJECT_TYPE_URL RpcBlockObjectTypeSetResponseErrorCode = 3 -) - -var RpcBlockObjectTypeSetResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", - 3: "UNKNOWN_OBJECT_TYPE_URL", -} - -var RpcBlockObjectTypeSetResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, - "UNKNOWN_OBJECT_TYPE_URL": 3, -} - -func (x RpcBlockObjectTypeSetResponseErrorCode) String() string { - return proto.EnumName(RpcBlockObjectTypeSetResponseErrorCode_name, int32(x)) -} - -func (RpcBlockObjectTypeSetResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 13, 0, 1, 0, 0} -} - -type RpcBlockBookmarkFetchResponseErrorCode int32 - -const ( - RpcBlockBookmarkFetchResponseError_NULL RpcBlockBookmarkFetchResponseErrorCode = 0 - RpcBlockBookmarkFetchResponseError_UNKNOWN_ERROR RpcBlockBookmarkFetchResponseErrorCode = 1 - RpcBlockBookmarkFetchResponseError_BAD_INPUT RpcBlockBookmarkFetchResponseErrorCode = 2 -) - -var RpcBlockBookmarkFetchResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockBookmarkFetchResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockBookmarkFetchResponseErrorCode) String() string { - return proto.EnumName(RpcBlockBookmarkFetchResponseErrorCode_name, int32(x)) -} - -func (RpcBlockBookmarkFetchResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 14, 0, 1, 0, 0} -} - -type RpcBlockBookmarkCreateAndFetchResponseErrorCode int32 - -const ( - RpcBlockBookmarkCreateAndFetchResponseError_NULL RpcBlockBookmarkCreateAndFetchResponseErrorCode = 0 - RpcBlockBookmarkCreateAndFetchResponseError_UNKNOWN_ERROR RpcBlockBookmarkCreateAndFetchResponseErrorCode = 1 - RpcBlockBookmarkCreateAndFetchResponseError_BAD_INPUT RpcBlockBookmarkCreateAndFetchResponseErrorCode = 2 -) - -var RpcBlockBookmarkCreateAndFetchResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockBookmarkCreateAndFetchResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockBookmarkCreateAndFetchResponseErrorCode) String() string { - return proto.EnumName(RpcBlockBookmarkCreateAndFetchResponseErrorCode_name, int32(x)) -} - -func (RpcBlockBookmarkCreateAndFetchResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 14, 1, 1, 0, 0} -} - -type RpcBlockFileCreateAndUploadResponseErrorCode int32 - -const ( - RpcBlockFileCreateAndUploadResponseError_NULL RpcBlockFileCreateAndUploadResponseErrorCode = 0 - RpcBlockFileCreateAndUploadResponseError_UNKNOWN_ERROR RpcBlockFileCreateAndUploadResponseErrorCode = 1 - RpcBlockFileCreateAndUploadResponseError_BAD_INPUT RpcBlockFileCreateAndUploadResponseErrorCode = 2 -) - -var RpcBlockFileCreateAndUploadResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockFileCreateAndUploadResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockFileCreateAndUploadResponseErrorCode) String() string { - return proto.EnumName(RpcBlockFileCreateAndUploadResponseErrorCode_name, int32(x)) -} - -func (RpcBlockFileCreateAndUploadResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 15, 0, 1, 0, 0} -} - -type RpcBlockDataviewViewCreateResponseErrorCode int32 - -const ( - RpcBlockDataviewViewCreateResponseError_NULL RpcBlockDataviewViewCreateResponseErrorCode = 0 - RpcBlockDataviewViewCreateResponseError_UNKNOWN_ERROR RpcBlockDataviewViewCreateResponseErrorCode = 1 - RpcBlockDataviewViewCreateResponseError_BAD_INPUT RpcBlockDataviewViewCreateResponseErrorCode = 2 -) - -var RpcBlockDataviewViewCreateResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockDataviewViewCreateResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockDataviewViewCreateResponseErrorCode) String() string { - return proto.EnumName(RpcBlockDataviewViewCreateResponseErrorCode_name, int32(x)) -} - -func (RpcBlockDataviewViewCreateResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 0, 1, 0, 0} -} - -type RpcBlockDataviewViewUpdateResponseErrorCode int32 - -const ( - RpcBlockDataviewViewUpdateResponseError_NULL RpcBlockDataviewViewUpdateResponseErrorCode = 0 - RpcBlockDataviewViewUpdateResponseError_UNKNOWN_ERROR RpcBlockDataviewViewUpdateResponseErrorCode = 1 - RpcBlockDataviewViewUpdateResponseError_BAD_INPUT RpcBlockDataviewViewUpdateResponseErrorCode = 2 -) - -var RpcBlockDataviewViewUpdateResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockDataviewViewUpdateResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockDataviewViewUpdateResponseErrorCode) String() string { - return proto.EnumName(RpcBlockDataviewViewUpdateResponseErrorCode_name, int32(x)) -} - -func (RpcBlockDataviewViewUpdateResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 1, 1, 0, 0} -} - -type RpcBlockDataviewViewDeleteResponseErrorCode int32 - -const ( - RpcBlockDataviewViewDeleteResponseError_NULL RpcBlockDataviewViewDeleteResponseErrorCode = 0 - RpcBlockDataviewViewDeleteResponseError_UNKNOWN_ERROR RpcBlockDataviewViewDeleteResponseErrorCode = 1 - RpcBlockDataviewViewDeleteResponseError_BAD_INPUT RpcBlockDataviewViewDeleteResponseErrorCode = 2 -) - -var RpcBlockDataviewViewDeleteResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockDataviewViewDeleteResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockDataviewViewDeleteResponseErrorCode) String() string { - return proto.EnumName(RpcBlockDataviewViewDeleteResponseErrorCode_name, int32(x)) -} - -func (RpcBlockDataviewViewDeleteResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 2, 1, 0, 0} -} - -type RpcBlockDataviewViewSetPositionResponseErrorCode int32 - -const ( - RpcBlockDataviewViewSetPositionResponseError_NULL RpcBlockDataviewViewSetPositionResponseErrorCode = 0 - RpcBlockDataviewViewSetPositionResponseError_UNKNOWN_ERROR RpcBlockDataviewViewSetPositionResponseErrorCode = 1 - RpcBlockDataviewViewSetPositionResponseError_BAD_INPUT RpcBlockDataviewViewSetPositionResponseErrorCode = 2 -) - -var RpcBlockDataviewViewSetPositionResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockDataviewViewSetPositionResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockDataviewViewSetPositionResponseErrorCode) String() string { - return proto.EnumName(RpcBlockDataviewViewSetPositionResponseErrorCode_name, int32(x)) -} - -func (RpcBlockDataviewViewSetPositionResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 3, 1, 0, 0} -} - -type RpcBlockDataviewViewSetActiveResponseErrorCode int32 - -const ( - RpcBlockDataviewViewSetActiveResponseError_NULL RpcBlockDataviewViewSetActiveResponseErrorCode = 0 - RpcBlockDataviewViewSetActiveResponseError_UNKNOWN_ERROR RpcBlockDataviewViewSetActiveResponseErrorCode = 1 - RpcBlockDataviewViewSetActiveResponseError_BAD_INPUT RpcBlockDataviewViewSetActiveResponseErrorCode = 2 -) - -var RpcBlockDataviewViewSetActiveResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockDataviewViewSetActiveResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockDataviewViewSetActiveResponseErrorCode) String() string { - return proto.EnumName(RpcBlockDataviewViewSetActiveResponseErrorCode_name, int32(x)) -} - -func (RpcBlockDataviewViewSetActiveResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 4, 1, 0, 0} -} - -type RpcBlockDataviewRecordUpdateResponseErrorCode int32 - -const ( - RpcBlockDataviewRecordUpdateResponseError_NULL RpcBlockDataviewRecordUpdateResponseErrorCode = 0 - RpcBlockDataviewRecordUpdateResponseError_UNKNOWN_ERROR RpcBlockDataviewRecordUpdateResponseErrorCode = 1 - RpcBlockDataviewRecordUpdateResponseError_BAD_INPUT RpcBlockDataviewRecordUpdateResponseErrorCode = 2 -) - -var RpcBlockDataviewRecordUpdateResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockDataviewRecordUpdateResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockDataviewRecordUpdateResponseErrorCode) String() string { - return proto.EnumName(RpcBlockDataviewRecordUpdateResponseErrorCode_name, int32(x)) -} - -func (RpcBlockDataviewRecordUpdateResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 5, 1, 0, 0} -} - -type RpcBlockDataviewRecordDeleteResponseErrorCode int32 - -const ( - RpcBlockDataviewRecordDeleteResponseError_NULL RpcBlockDataviewRecordDeleteResponseErrorCode = 0 - RpcBlockDataviewRecordDeleteResponseError_UNKNOWN_ERROR RpcBlockDataviewRecordDeleteResponseErrorCode = 1 - RpcBlockDataviewRecordDeleteResponseError_BAD_INPUT RpcBlockDataviewRecordDeleteResponseErrorCode = 2 -) - -var RpcBlockDataviewRecordDeleteResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockDataviewRecordDeleteResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockDataviewRecordDeleteResponseErrorCode) String() string { - return proto.EnumName(RpcBlockDataviewRecordDeleteResponseErrorCode_name, int32(x)) -} - -func (RpcBlockDataviewRecordDeleteResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 6, 1, 0, 0} -} - -type RpcBlockDataviewRecordCreateResponseErrorCode int32 - -const ( - RpcBlockDataviewRecordCreateResponseError_NULL RpcBlockDataviewRecordCreateResponseErrorCode = 0 - RpcBlockDataviewRecordCreateResponseError_UNKNOWN_ERROR RpcBlockDataviewRecordCreateResponseErrorCode = 1 - RpcBlockDataviewRecordCreateResponseError_BAD_INPUT RpcBlockDataviewRecordCreateResponseErrorCode = 2 -) - -var RpcBlockDataviewRecordCreateResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockDataviewRecordCreateResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockDataviewRecordCreateResponseErrorCode) String() string { - return proto.EnumName(RpcBlockDataviewRecordCreateResponseErrorCode_name, int32(x)) -} - -func (RpcBlockDataviewRecordCreateResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 7, 1, 0, 0} -} - -type RpcBlockDataviewRelationAddResponseErrorCode int32 - -const ( - RpcBlockDataviewRelationAddResponseError_NULL RpcBlockDataviewRelationAddResponseErrorCode = 0 - RpcBlockDataviewRelationAddResponseError_UNKNOWN_ERROR RpcBlockDataviewRelationAddResponseErrorCode = 1 - RpcBlockDataviewRelationAddResponseError_BAD_INPUT RpcBlockDataviewRelationAddResponseErrorCode = 2 -) - -var RpcBlockDataviewRelationAddResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockDataviewRelationAddResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockDataviewRelationAddResponseErrorCode) String() string { - return proto.EnumName(RpcBlockDataviewRelationAddResponseErrorCode_name, int32(x)) -} - -func (RpcBlockDataviewRelationAddResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 8, 1, 0, 0} -} - -type RpcBlockDataviewRelationUpdateResponseErrorCode int32 - -const ( - RpcBlockDataviewRelationUpdateResponseError_NULL RpcBlockDataviewRelationUpdateResponseErrorCode = 0 - RpcBlockDataviewRelationUpdateResponseError_UNKNOWN_ERROR RpcBlockDataviewRelationUpdateResponseErrorCode = 1 - RpcBlockDataviewRelationUpdateResponseError_BAD_INPUT RpcBlockDataviewRelationUpdateResponseErrorCode = 2 -) - -var RpcBlockDataviewRelationUpdateResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockDataviewRelationUpdateResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockDataviewRelationUpdateResponseErrorCode) String() string { - return proto.EnumName(RpcBlockDataviewRelationUpdateResponseErrorCode_name, int32(x)) -} - -func (RpcBlockDataviewRelationUpdateResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 9, 1, 0, 0} -} - -type RpcBlockDataviewRelationDeleteResponseErrorCode int32 - -const ( - RpcBlockDataviewRelationDeleteResponseError_NULL RpcBlockDataviewRelationDeleteResponseErrorCode = 0 - RpcBlockDataviewRelationDeleteResponseError_UNKNOWN_ERROR RpcBlockDataviewRelationDeleteResponseErrorCode = 1 - RpcBlockDataviewRelationDeleteResponseError_BAD_INPUT RpcBlockDataviewRelationDeleteResponseErrorCode = 2 -) - -var RpcBlockDataviewRelationDeleteResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockDataviewRelationDeleteResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockDataviewRelationDeleteResponseErrorCode) String() string { - return proto.EnumName(RpcBlockDataviewRelationDeleteResponseErrorCode_name, int32(x)) -} - -func (RpcBlockDataviewRelationDeleteResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 10, 1, 0, 0} -} - -type RpcBlockDataviewRecordRelationOptionAddResponseErrorCode int32 - -const ( - RpcBlockDataviewRecordRelationOptionAddResponseError_NULL RpcBlockDataviewRecordRelationOptionAddResponseErrorCode = 0 - RpcBlockDataviewRecordRelationOptionAddResponseError_UNKNOWN_ERROR RpcBlockDataviewRecordRelationOptionAddResponseErrorCode = 1 - RpcBlockDataviewRecordRelationOptionAddResponseError_BAD_INPUT RpcBlockDataviewRecordRelationOptionAddResponseErrorCode = 2 -) - -var RpcBlockDataviewRecordRelationOptionAddResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockDataviewRecordRelationOptionAddResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockDataviewRecordRelationOptionAddResponseErrorCode) String() string { - return proto.EnumName(RpcBlockDataviewRecordRelationOptionAddResponseErrorCode_name, int32(x)) -} - -func (RpcBlockDataviewRecordRelationOptionAddResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 11, 1, 0, 0} -} - -type RpcBlockDataviewRecordRelationOptionUpdateResponseErrorCode int32 - -const ( - RpcBlockDataviewRecordRelationOptionUpdateResponseError_NULL RpcBlockDataviewRecordRelationOptionUpdateResponseErrorCode = 0 - RpcBlockDataviewRecordRelationOptionUpdateResponseError_UNKNOWN_ERROR RpcBlockDataviewRecordRelationOptionUpdateResponseErrorCode = 1 - RpcBlockDataviewRecordRelationOptionUpdateResponseError_BAD_INPUT RpcBlockDataviewRecordRelationOptionUpdateResponseErrorCode = 2 -) - -var RpcBlockDataviewRecordRelationOptionUpdateResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockDataviewRecordRelationOptionUpdateResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockDataviewRecordRelationOptionUpdateResponseErrorCode) String() string { - return proto.EnumName(RpcBlockDataviewRecordRelationOptionUpdateResponseErrorCode_name, int32(x)) -} - -func (RpcBlockDataviewRecordRelationOptionUpdateResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 12, 1, 0, 0} -} - -type RpcBlockDataviewRecordRelationOptionDeleteResponseErrorCode int32 - -const ( - RpcBlockDataviewRecordRelationOptionDeleteResponseError_NULL RpcBlockDataviewRecordRelationOptionDeleteResponseErrorCode = 0 - RpcBlockDataviewRecordRelationOptionDeleteResponseError_UNKNOWN_ERROR RpcBlockDataviewRecordRelationOptionDeleteResponseErrorCode = 1 - RpcBlockDataviewRecordRelationOptionDeleteResponseError_BAD_INPUT RpcBlockDataviewRecordRelationOptionDeleteResponseErrorCode = 2 -) - -var RpcBlockDataviewRecordRelationOptionDeleteResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockDataviewRecordRelationOptionDeleteResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockDataviewRecordRelationOptionDeleteResponseErrorCode) String() string { - return proto.EnumName(RpcBlockDataviewRecordRelationOptionDeleteResponseErrorCode_name, int32(x)) -} - -func (RpcBlockDataviewRecordRelationOptionDeleteResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 13, 1, 0, 0} -} - -type RpcBlockDataviewRelationListAvailableResponseErrorCode int32 - -const ( - RpcBlockDataviewRelationListAvailableResponseError_NULL RpcBlockDataviewRelationListAvailableResponseErrorCode = 0 - RpcBlockDataviewRelationListAvailableResponseError_UNKNOWN_ERROR RpcBlockDataviewRelationListAvailableResponseErrorCode = 1 - RpcBlockDataviewRelationListAvailableResponseError_BAD_INPUT RpcBlockDataviewRelationListAvailableResponseErrorCode = 2 - RpcBlockDataviewRelationListAvailableResponseError_NOT_A_DATAVIEW_BLOCK RpcBlockDataviewRelationListAvailableResponseErrorCode = 3 -) - -var RpcBlockDataviewRelationListAvailableResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", - 3: "NOT_A_DATAVIEW_BLOCK", -} - -var RpcBlockDataviewRelationListAvailableResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, - "NOT_A_DATAVIEW_BLOCK": 3, -} - -func (x RpcBlockDataviewRelationListAvailableResponseErrorCode) String() string { - return proto.EnumName(RpcBlockDataviewRelationListAvailableResponseErrorCode_name, int32(x)) -} - -func (RpcBlockDataviewRelationListAvailableResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 14, 1, 0, 0} -} - -type RpcBlockDataviewSetSourceResponseErrorCode int32 - -const ( - RpcBlockDataviewSetSourceResponseError_NULL RpcBlockDataviewSetSourceResponseErrorCode = 0 - RpcBlockDataviewSetSourceResponseError_UNKNOWN_ERROR RpcBlockDataviewSetSourceResponseErrorCode = 1 - RpcBlockDataviewSetSourceResponseError_BAD_INPUT RpcBlockDataviewSetSourceResponseErrorCode = 2 -) - -var RpcBlockDataviewSetSourceResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockDataviewSetSourceResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockDataviewSetSourceResponseErrorCode) String() string { - return proto.EnumName(RpcBlockDataviewSetSourceResponseErrorCode_name, int32(x)) -} - -func (RpcBlockDataviewSetSourceResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 15, 1, 0, 0} -} - -type RpcBlockGetMarksResponseErrorCode int32 - -const ( - RpcBlockGetMarksResponseError_NULL RpcBlockGetMarksResponseErrorCode = 0 - RpcBlockGetMarksResponseError_UNKNOWN_ERROR RpcBlockGetMarksResponseErrorCode = 1 - RpcBlockGetMarksResponseError_BAD_INPUT RpcBlockGetMarksResponseErrorCode = 2 -) - -var RpcBlockGetMarksResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockGetMarksResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockGetMarksResponseErrorCode) String() string { - return proto.EnumName(RpcBlockGetMarksResponseErrorCode_name, int32(x)) -} - -func (RpcBlockGetMarksResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 17, 0, 1, 0, 0} -} - -type RpcBlockUndoResponseErrorCode int32 - -const ( - RpcBlockUndoResponseError_NULL RpcBlockUndoResponseErrorCode = 0 - RpcBlockUndoResponseError_UNKNOWN_ERROR RpcBlockUndoResponseErrorCode = 1 - RpcBlockUndoResponseError_BAD_INPUT RpcBlockUndoResponseErrorCode = 2 - RpcBlockUndoResponseError_CAN_NOT_MOVE RpcBlockUndoResponseErrorCode = 3 -) - -var RpcBlockUndoResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", - 3: "CAN_NOT_MOVE", -} - -var RpcBlockUndoResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, - "CAN_NOT_MOVE": 3, -} - -func (x RpcBlockUndoResponseErrorCode) String() string { - return proto.EnumName(RpcBlockUndoResponseErrorCode_name, int32(x)) -} - -func (RpcBlockUndoResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 19, 1, 0, 0} -} - -type RpcBlockRedoResponseErrorCode int32 - -const ( - RpcBlockRedoResponseError_NULL RpcBlockRedoResponseErrorCode = 0 - RpcBlockRedoResponseError_UNKNOWN_ERROR RpcBlockRedoResponseErrorCode = 1 - RpcBlockRedoResponseError_BAD_INPUT RpcBlockRedoResponseErrorCode = 2 - RpcBlockRedoResponseError_CAN_NOT_MOVE RpcBlockRedoResponseErrorCode = 3 -) - -var RpcBlockRedoResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", - 3: "CAN_NOT_MOVE", -} - -var RpcBlockRedoResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, - "CAN_NOT_MOVE": 3, -} - -func (x RpcBlockRedoResponseErrorCode) String() string { - return proto.EnumName(RpcBlockRedoResponseErrorCode_name, int32(x)) -} - -func (RpcBlockRedoResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 20, 1, 0, 0} -} - -type RpcBlockOpenResponseErrorCode int32 - -const ( - RpcBlockOpenResponseError_NULL RpcBlockOpenResponseErrorCode = 0 - RpcBlockOpenResponseError_UNKNOWN_ERROR RpcBlockOpenResponseErrorCode = 1 - RpcBlockOpenResponseError_BAD_INPUT RpcBlockOpenResponseErrorCode = 2 - RpcBlockOpenResponseError_NOT_FOUND RpcBlockOpenResponseErrorCode = 3 - RpcBlockOpenResponseError_ANYTYPE_NEEDS_UPGRADE RpcBlockOpenResponseErrorCode = 10 -) - -var RpcBlockOpenResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", - 3: "NOT_FOUND", - 10: "ANYTYPE_NEEDS_UPGRADE", -} - -var RpcBlockOpenResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, - "NOT_FOUND": 3, - "ANYTYPE_NEEDS_UPGRADE": 10, -} - -func (x RpcBlockOpenResponseErrorCode) String() string { - return proto.EnumName(RpcBlockOpenResponseErrorCode_name, int32(x)) -} - -func (RpcBlockOpenResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 21, 1, 0, 0} -} - -type RpcBlockShowResponseErrorCode int32 - -const ( - RpcBlockShowResponseError_NULL RpcBlockShowResponseErrorCode = 0 - RpcBlockShowResponseError_UNKNOWN_ERROR RpcBlockShowResponseErrorCode = 1 - RpcBlockShowResponseError_BAD_INPUT RpcBlockShowResponseErrorCode = 2 - RpcBlockShowResponseError_NOT_FOUND RpcBlockShowResponseErrorCode = 3 - RpcBlockShowResponseError_ANYTYPE_NEEDS_UPGRADE RpcBlockShowResponseErrorCode = 10 -) - -var RpcBlockShowResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", - 3: "NOT_FOUND", - 10: "ANYTYPE_NEEDS_UPGRADE", -} - -var RpcBlockShowResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, - "NOT_FOUND": 3, - "ANYTYPE_NEEDS_UPGRADE": 10, -} - -func (x RpcBlockShowResponseErrorCode) String() string { - return proto.EnumName(RpcBlockShowResponseErrorCode_name, int32(x)) -} - -func (RpcBlockShowResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 22, 1, 0, 0} -} - -type RpcBlockGetPublicWebURLResponseErrorCode int32 - -const ( - RpcBlockGetPublicWebURLResponseError_NULL RpcBlockGetPublicWebURLResponseErrorCode = 0 - RpcBlockGetPublicWebURLResponseError_UNKNOWN_ERROR RpcBlockGetPublicWebURLResponseErrorCode = 1 - RpcBlockGetPublicWebURLResponseError_BAD_INPUT RpcBlockGetPublicWebURLResponseErrorCode = 2 -) - -var RpcBlockGetPublicWebURLResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockGetPublicWebURLResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockGetPublicWebURLResponseErrorCode) String() string { - return proto.EnumName(RpcBlockGetPublicWebURLResponseErrorCode_name, int32(x)) -} - -func (RpcBlockGetPublicWebURLResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 23, 1, 0, 0} -} - -type RpcBlockOpenBreadcrumbsResponseErrorCode int32 - -const ( - RpcBlockOpenBreadcrumbsResponseError_NULL RpcBlockOpenBreadcrumbsResponseErrorCode = 0 - RpcBlockOpenBreadcrumbsResponseError_UNKNOWN_ERROR RpcBlockOpenBreadcrumbsResponseErrorCode = 1 - RpcBlockOpenBreadcrumbsResponseError_BAD_INPUT RpcBlockOpenBreadcrumbsResponseErrorCode = 2 -) - -var RpcBlockOpenBreadcrumbsResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockOpenBreadcrumbsResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockOpenBreadcrumbsResponseErrorCode) String() string { - return proto.EnumName(RpcBlockOpenBreadcrumbsResponseErrorCode_name, int32(x)) -} - -func (RpcBlockOpenBreadcrumbsResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 24, 1, 0, 0} -} - -type RpcBlockSetBreadcrumbsResponseErrorCode int32 - -const ( - RpcBlockSetBreadcrumbsResponseError_NULL RpcBlockSetBreadcrumbsResponseErrorCode = 0 - RpcBlockSetBreadcrumbsResponseError_UNKNOWN_ERROR RpcBlockSetBreadcrumbsResponseErrorCode = 1 - RpcBlockSetBreadcrumbsResponseError_BAD_INPUT RpcBlockSetBreadcrumbsResponseErrorCode = 2 -) - -var RpcBlockSetBreadcrumbsResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockSetBreadcrumbsResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockSetBreadcrumbsResponseErrorCode) String() string { - return proto.EnumName(RpcBlockSetBreadcrumbsResponseErrorCode_name, int32(x)) -} - -func (RpcBlockSetBreadcrumbsResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 25, 1, 0, 0} -} - -type RpcBlockCreateResponseErrorCode int32 - -const ( - RpcBlockCreateResponseError_NULL RpcBlockCreateResponseErrorCode = 0 - RpcBlockCreateResponseError_UNKNOWN_ERROR RpcBlockCreateResponseErrorCode = 1 - RpcBlockCreateResponseError_BAD_INPUT RpcBlockCreateResponseErrorCode = 2 -) - -var RpcBlockCreateResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockCreateResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockCreateResponseErrorCode) String() string { - return proto.EnumName(RpcBlockCreateResponseErrorCode_name, int32(x)) -} - -func (RpcBlockCreateResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 26, 1, 0, 0} -} - -type RpcBlockCreatePageResponseErrorCode int32 - -const ( - RpcBlockCreatePageResponseError_NULL RpcBlockCreatePageResponseErrorCode = 0 - RpcBlockCreatePageResponseError_UNKNOWN_ERROR RpcBlockCreatePageResponseErrorCode = 1 - RpcBlockCreatePageResponseError_BAD_INPUT RpcBlockCreatePageResponseErrorCode = 2 -) - -var RpcBlockCreatePageResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockCreatePageResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockCreatePageResponseErrorCode) String() string { - return proto.EnumName(RpcBlockCreatePageResponseErrorCode_name, int32(x)) -} - -func (RpcBlockCreatePageResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 27, 1, 0, 0} -} - -type RpcBlockCreateSetResponseErrorCode int32 - -const ( - RpcBlockCreateSetResponseError_NULL RpcBlockCreateSetResponseErrorCode = 0 - RpcBlockCreateSetResponseError_UNKNOWN_ERROR RpcBlockCreateSetResponseErrorCode = 1 - RpcBlockCreateSetResponseError_BAD_INPUT RpcBlockCreateSetResponseErrorCode = 2 - RpcBlockCreateSetResponseError_UNKNOWN_OBJECT_TYPE_URL RpcBlockCreateSetResponseErrorCode = 3 -) - -var RpcBlockCreateSetResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", - 3: "UNKNOWN_OBJECT_TYPE_URL", -} - -var RpcBlockCreateSetResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, - "UNKNOWN_OBJECT_TYPE_URL": 3, -} - -func (x RpcBlockCreateSetResponseErrorCode) String() string { - return proto.EnumName(RpcBlockCreateSetResponseErrorCode_name, int32(x)) -} - -func (RpcBlockCreateSetResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 28, 1, 0, 0} -} - -type RpcBlockUnlinkResponseErrorCode int32 - -const ( - RpcBlockUnlinkResponseError_NULL RpcBlockUnlinkResponseErrorCode = 0 - RpcBlockUnlinkResponseError_UNKNOWN_ERROR RpcBlockUnlinkResponseErrorCode = 1 - RpcBlockUnlinkResponseError_BAD_INPUT RpcBlockUnlinkResponseErrorCode = 2 -) - -var RpcBlockUnlinkResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockUnlinkResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockUnlinkResponseErrorCode) String() string { - return proto.EnumName(RpcBlockUnlinkResponseErrorCode_name, int32(x)) -} - -func (RpcBlockUnlinkResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 29, 1, 0, 0} -} - -type RpcBlockCloseResponseErrorCode int32 - -const ( - RpcBlockCloseResponseError_NULL RpcBlockCloseResponseErrorCode = 0 - RpcBlockCloseResponseError_UNKNOWN_ERROR RpcBlockCloseResponseErrorCode = 1 - RpcBlockCloseResponseError_BAD_INPUT RpcBlockCloseResponseErrorCode = 2 -) - -var RpcBlockCloseResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcBlockCloseResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcBlockCloseResponseErrorCode) String() string { - return proto.EnumName(RpcBlockCloseResponseErrorCode_name, int32(x)) -} - -func (RpcBlockCloseResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 30, 1, 0, 0} -} - -type RpcWorkspaceGetCurrentResponseErrorCode int32 - -const ( - RpcWorkspaceGetCurrentResponseError_NULL RpcWorkspaceGetCurrentResponseErrorCode = 0 - RpcWorkspaceGetCurrentResponseError_UNKNOWN_ERROR RpcWorkspaceGetCurrentResponseErrorCode = 1 - RpcWorkspaceGetCurrentResponseError_BAD_INPUT RpcWorkspaceGetCurrentResponseErrorCode = 2 -) - -var RpcWorkspaceGetCurrentResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcWorkspaceGetCurrentResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcWorkspaceGetCurrentResponseErrorCode) String() string { - return proto.EnumName(RpcWorkspaceGetCurrentResponseErrorCode_name, int32(x)) -} - -func (RpcWorkspaceGetCurrentResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 0, 1, 0, 0} -} - -type RpcWorkspaceGetAllResponseErrorCode int32 - -const ( - RpcWorkspaceGetAllResponseError_NULL RpcWorkspaceGetAllResponseErrorCode = 0 - RpcWorkspaceGetAllResponseError_UNKNOWN_ERROR RpcWorkspaceGetAllResponseErrorCode = 1 - RpcWorkspaceGetAllResponseError_BAD_INPUT RpcWorkspaceGetAllResponseErrorCode = 2 -) - -var RpcWorkspaceGetAllResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcWorkspaceGetAllResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcWorkspaceGetAllResponseErrorCode) String() string { - return proto.EnumName(RpcWorkspaceGetAllResponseErrorCode_name, int32(x)) -} - -func (RpcWorkspaceGetAllResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 1, 1, 0, 0} -} - -type RpcWorkspaceCreateResponseErrorCode int32 - -const ( - RpcWorkspaceCreateResponseError_NULL RpcWorkspaceCreateResponseErrorCode = 0 - RpcWorkspaceCreateResponseError_UNKNOWN_ERROR RpcWorkspaceCreateResponseErrorCode = 1 - RpcWorkspaceCreateResponseError_BAD_INPUT RpcWorkspaceCreateResponseErrorCode = 2 -) - -var RpcWorkspaceCreateResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcWorkspaceCreateResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcWorkspaceCreateResponseErrorCode) String() string { - return proto.EnumName(RpcWorkspaceCreateResponseErrorCode_name, int32(x)) -} - -func (RpcWorkspaceCreateResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 2, 1, 0, 0} -} - -type RpcWorkspaceSetIsHighlightedResponseErrorCode int32 - -const ( - RpcWorkspaceSetIsHighlightedResponseError_NULL RpcWorkspaceSetIsHighlightedResponseErrorCode = 0 - RpcWorkspaceSetIsHighlightedResponseError_UNKNOWN_ERROR RpcWorkspaceSetIsHighlightedResponseErrorCode = 1 - RpcWorkspaceSetIsHighlightedResponseError_BAD_INPUT RpcWorkspaceSetIsHighlightedResponseErrorCode = 2 -) - -var RpcWorkspaceSetIsHighlightedResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcWorkspaceSetIsHighlightedResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcWorkspaceSetIsHighlightedResponseErrorCode) String() string { - return proto.EnumName(RpcWorkspaceSetIsHighlightedResponseErrorCode_name, int32(x)) -} - -func (RpcWorkspaceSetIsHighlightedResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 3, 1, 0, 0} -} - -type RpcWorkspaceSelectResponseErrorCode int32 - -const ( - RpcWorkspaceSelectResponseError_NULL RpcWorkspaceSelectResponseErrorCode = 0 - RpcWorkspaceSelectResponseError_UNKNOWN_ERROR RpcWorkspaceSelectResponseErrorCode = 1 - RpcWorkspaceSelectResponseError_BAD_INPUT RpcWorkspaceSelectResponseErrorCode = 2 -) - -var RpcWorkspaceSelectResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcWorkspaceSelectResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcWorkspaceSelectResponseErrorCode) String() string { - return proto.EnumName(RpcWorkspaceSelectResponseErrorCode_name, int32(x)) -} - -func (RpcWorkspaceSelectResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 4, 1, 0, 0} +func (RpcAppShutdownResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 0, 2, 1, 0, 0} } type RpcWalletCreateResponseErrorCode int32 @@ -2438,7 +176,7 @@ func (x RpcWalletCreateResponseErrorCode) String() string { } func (RpcWalletCreateResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 5, 0, 1, 0, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 1, 0, 1, 0, 0} } type RpcWalletRecoverResponseErrorCode int32 @@ -2469,7 +207,7 @@ func (x RpcWalletRecoverResponseErrorCode) String() string { } func (RpcWalletRecoverResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 5, 1, 1, 0, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 1, 1, 1, 0, 0} } type RpcWalletConvertResponseErrorCode int32 @@ -2497,7 +235,7 @@ func (x RpcWalletConvertResponseErrorCode) String() string { } func (RpcWalletConvertResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 5, 2, 1, 0, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 1, 2, 1, 0, 0} } type RpcAccountCreateResponseErrorCode int32 @@ -2549,7 +287,7 @@ func (x RpcAccountCreateResponseErrorCode) String() string { } func (RpcAccountCreateResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 6, 1, 1, 0, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 1, 1, 0, 0} } type RpcAccountRecoverResponseErrorCode int32 @@ -2604,7 +342,7 @@ func (x RpcAccountRecoverResponseErrorCode) String() string { } func (RpcAccountRecoverResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 6, 2, 1, 0, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 2, 1, 0, 0} } type RpcAccountDeleteResponseErrorCode int32 @@ -2638,7 +376,7 @@ func (x RpcAccountDeleteResponseErrorCode) String() string { } func (RpcAccountDeleteResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 6, 3, 1, 0, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 3, 1, 0, 0} } type RpcAccountSelectResponseErrorCode int32 @@ -2690,7 +428,7 @@ func (x RpcAccountSelectResponseErrorCode) String() string { } func (RpcAccountSelectResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 6, 4, 1, 0, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 1, 0, 0} } type RpcAccountStopResponseErrorCode int32 @@ -2727,115 +465,1632 @@ func (x RpcAccountStopResponseErrorCode) String() string { } func (RpcAccountStopResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 6, 5, 1, 0, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 5, 1, 0, 0} } -type RpcLogSendRequestLevel int32 +type RpcWorkspaceGetCurrentResponseErrorCode int32 const ( - RpcLogSendRequest_DEBUG RpcLogSendRequestLevel = 0 - RpcLogSendRequest_ERROR RpcLogSendRequestLevel = 1 - RpcLogSendRequest_FATAL RpcLogSendRequestLevel = 2 - RpcLogSendRequest_INFO RpcLogSendRequestLevel = 3 - RpcLogSendRequest_PANIC RpcLogSendRequestLevel = 4 - RpcLogSendRequest_WARNING RpcLogSendRequestLevel = 5 + RpcWorkspaceGetCurrentResponseError_NULL RpcWorkspaceGetCurrentResponseErrorCode = 0 + RpcWorkspaceGetCurrentResponseError_UNKNOWN_ERROR RpcWorkspaceGetCurrentResponseErrorCode = 1 + RpcWorkspaceGetCurrentResponseError_BAD_INPUT RpcWorkspaceGetCurrentResponseErrorCode = 2 ) -var RpcLogSendRequestLevel_name = map[int32]string{ - 0: "DEBUG", - 1: "ERROR", - 2: "FATAL", - 3: "INFO", - 4: "PANIC", - 5: "WARNING", +var RpcWorkspaceGetCurrentResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", } -var RpcLogSendRequestLevel_value = map[string]int32{ - "DEBUG": 0, - "ERROR": 1, - "FATAL": 2, - "INFO": 3, - "PANIC": 4, - "WARNING": 5, -} - -func (x RpcLogSendRequestLevel) String() string { - return proto.EnumName(RpcLogSendRequestLevel_name, int32(x)) -} - -func (RpcLogSendRequestLevel) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 7, 0, 0, 0} -} - -type RpcLogSendResponseErrorCode int32 - -const ( - RpcLogSendResponseError_NULL RpcLogSendResponseErrorCode = 0 - RpcLogSendResponseError_UNKNOWN_ERROR RpcLogSendResponseErrorCode = 1 - RpcLogSendResponseError_BAD_INPUT RpcLogSendResponseErrorCode = 2 - RpcLogSendResponseError_NOT_FOUND RpcLogSendResponseErrorCode = 101 - RpcLogSendResponseError_TIMEOUT RpcLogSendResponseErrorCode = 102 -) - -var RpcLogSendResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", - 101: "NOT_FOUND", - 102: "TIMEOUT", -} - -var RpcLogSendResponseErrorCode_value = map[string]int32{ +var RpcWorkspaceGetCurrentResponseErrorCode_value = map[string]int32{ "NULL": 0, "UNKNOWN_ERROR": 1, "BAD_INPUT": 2, - "NOT_FOUND": 101, - "TIMEOUT": 102, } -func (x RpcLogSendResponseErrorCode) String() string { - return proto.EnumName(RpcLogSendResponseErrorCode_name, int32(x)) +func (x RpcWorkspaceGetCurrentResponseErrorCode) String() string { + return proto.EnumName(RpcWorkspaceGetCurrentResponseErrorCode_name, int32(x)) } -func (RpcLogSendResponseErrorCode) EnumDescriptor() ([]byte, []int) { +func (RpcWorkspaceGetCurrentResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 0, 1, 0, 0} +} + +type RpcWorkspaceGetAllResponseErrorCode int32 + +const ( + RpcWorkspaceGetAllResponseError_NULL RpcWorkspaceGetAllResponseErrorCode = 0 + RpcWorkspaceGetAllResponseError_UNKNOWN_ERROR RpcWorkspaceGetAllResponseErrorCode = 1 + RpcWorkspaceGetAllResponseError_BAD_INPUT RpcWorkspaceGetAllResponseErrorCode = 2 +) + +var RpcWorkspaceGetAllResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcWorkspaceGetAllResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcWorkspaceGetAllResponseErrorCode) String() string { + return proto.EnumName(RpcWorkspaceGetAllResponseErrorCode_name, int32(x)) +} + +func (RpcWorkspaceGetAllResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 1, 1, 0, 0} +} + +type RpcWorkspaceCreateResponseErrorCode int32 + +const ( + RpcWorkspaceCreateResponseError_NULL RpcWorkspaceCreateResponseErrorCode = 0 + RpcWorkspaceCreateResponseError_UNKNOWN_ERROR RpcWorkspaceCreateResponseErrorCode = 1 + RpcWorkspaceCreateResponseError_BAD_INPUT RpcWorkspaceCreateResponseErrorCode = 2 +) + +var RpcWorkspaceCreateResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcWorkspaceCreateResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcWorkspaceCreateResponseErrorCode) String() string { + return proto.EnumName(RpcWorkspaceCreateResponseErrorCode_name, int32(x)) +} + +func (RpcWorkspaceCreateResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 2, 1, 0, 0} +} + +type RpcWorkspaceSetIsHighlightedResponseErrorCode int32 + +const ( + RpcWorkspaceSetIsHighlightedResponseError_NULL RpcWorkspaceSetIsHighlightedResponseErrorCode = 0 + RpcWorkspaceSetIsHighlightedResponseError_UNKNOWN_ERROR RpcWorkspaceSetIsHighlightedResponseErrorCode = 1 + RpcWorkspaceSetIsHighlightedResponseError_BAD_INPUT RpcWorkspaceSetIsHighlightedResponseErrorCode = 2 +) + +var RpcWorkspaceSetIsHighlightedResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcWorkspaceSetIsHighlightedResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcWorkspaceSetIsHighlightedResponseErrorCode) String() string { + return proto.EnumName(RpcWorkspaceSetIsHighlightedResponseErrorCode_name, int32(x)) +} + +func (RpcWorkspaceSetIsHighlightedResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 3, 1, 0, 0} +} + +type RpcWorkspaceSelectResponseErrorCode int32 + +const ( + RpcWorkspaceSelectResponseError_NULL RpcWorkspaceSelectResponseErrorCode = 0 + RpcWorkspaceSelectResponseError_UNKNOWN_ERROR RpcWorkspaceSelectResponseErrorCode = 1 + RpcWorkspaceSelectResponseError_BAD_INPUT RpcWorkspaceSelectResponseErrorCode = 2 +) + +var RpcWorkspaceSelectResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcWorkspaceSelectResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcWorkspaceSelectResponseErrorCode) String() string { + return proto.EnumName(RpcWorkspaceSelectResponseErrorCode_name, int32(x)) +} + +func (RpcWorkspaceSelectResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 4, 1, 0, 0} +} + +type RpcWorkspaceExportResponseErrorCode int32 + +const ( + RpcWorkspaceExportResponseError_NULL RpcWorkspaceExportResponseErrorCode = 0 + RpcWorkspaceExportResponseError_UNKNOWN_ERROR RpcWorkspaceExportResponseErrorCode = 1 + RpcWorkspaceExportResponseError_BAD_INPUT RpcWorkspaceExportResponseErrorCode = 2 +) + +var RpcWorkspaceExportResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcWorkspaceExportResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcWorkspaceExportResponseErrorCode) String() string { + return proto.EnumName(RpcWorkspaceExportResponseErrorCode_name, int32(x)) +} + +func (RpcWorkspaceExportResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 5, 1, 0, 0} +} + +type RpcObjectOpenResponseErrorCode int32 + +const ( + RpcObjectOpenResponseError_NULL RpcObjectOpenResponseErrorCode = 0 + RpcObjectOpenResponseError_UNKNOWN_ERROR RpcObjectOpenResponseErrorCode = 1 + RpcObjectOpenResponseError_BAD_INPUT RpcObjectOpenResponseErrorCode = 2 + RpcObjectOpenResponseError_NOT_FOUND RpcObjectOpenResponseErrorCode = 3 + RpcObjectOpenResponseError_ANYTYPE_NEEDS_UPGRADE RpcObjectOpenResponseErrorCode = 10 +) + +var RpcObjectOpenResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", + 3: "NOT_FOUND", + 10: "ANYTYPE_NEEDS_UPGRADE", +} + +var RpcObjectOpenResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, + "NOT_FOUND": 3, + "ANYTYPE_NEEDS_UPGRADE": 10, +} + +func (x RpcObjectOpenResponseErrorCode) String() string { + return proto.EnumName(RpcObjectOpenResponseErrorCode_name, int32(x)) +} + +func (RpcObjectOpenResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 0, 1, 0, 0} +} + +type RpcObjectCloseResponseErrorCode int32 + +const ( + RpcObjectCloseResponseError_NULL RpcObjectCloseResponseErrorCode = 0 + RpcObjectCloseResponseError_UNKNOWN_ERROR RpcObjectCloseResponseErrorCode = 1 + RpcObjectCloseResponseError_BAD_INPUT RpcObjectCloseResponseErrorCode = 2 +) + +var RpcObjectCloseResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcObjectCloseResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcObjectCloseResponseErrorCode) String() string { + return proto.EnumName(RpcObjectCloseResponseErrorCode_name, int32(x)) +} + +func (RpcObjectCloseResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 1, 1, 0, 0} +} + +type RpcObjectShowResponseErrorCode int32 + +const ( + RpcObjectShowResponseError_NULL RpcObjectShowResponseErrorCode = 0 + RpcObjectShowResponseError_UNKNOWN_ERROR RpcObjectShowResponseErrorCode = 1 + RpcObjectShowResponseError_BAD_INPUT RpcObjectShowResponseErrorCode = 2 + RpcObjectShowResponseError_NOT_FOUND RpcObjectShowResponseErrorCode = 3 + RpcObjectShowResponseError_ANYTYPE_NEEDS_UPGRADE RpcObjectShowResponseErrorCode = 10 +) + +var RpcObjectShowResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", + 3: "NOT_FOUND", + 10: "ANYTYPE_NEEDS_UPGRADE", +} + +var RpcObjectShowResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, + "NOT_FOUND": 3, + "ANYTYPE_NEEDS_UPGRADE": 10, +} + +func (x RpcObjectShowResponseErrorCode) String() string { + return proto.EnumName(RpcObjectShowResponseErrorCode_name, int32(x)) +} + +func (RpcObjectShowResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 2, 1, 0, 0} +} + +type RpcObjectCreateResponseErrorCode int32 + +const ( + RpcObjectCreateResponseError_NULL RpcObjectCreateResponseErrorCode = 0 + RpcObjectCreateResponseError_UNKNOWN_ERROR RpcObjectCreateResponseErrorCode = 1 + RpcObjectCreateResponseError_BAD_INPUT RpcObjectCreateResponseErrorCode = 2 +) + +var RpcObjectCreateResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcObjectCreateResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcObjectCreateResponseErrorCode) String() string { + return proto.EnumName(RpcObjectCreateResponseErrorCode_name, int32(x)) +} + +func (RpcObjectCreateResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 3, 1, 0, 0} +} + +type RpcObjectCreateSetResponseErrorCode int32 + +const ( + RpcObjectCreateSetResponseError_NULL RpcObjectCreateSetResponseErrorCode = 0 + RpcObjectCreateSetResponseError_UNKNOWN_ERROR RpcObjectCreateSetResponseErrorCode = 1 + RpcObjectCreateSetResponseError_BAD_INPUT RpcObjectCreateSetResponseErrorCode = 2 + RpcObjectCreateSetResponseError_UNKNOWN_OBJECT_TYPE_URL RpcObjectCreateSetResponseErrorCode = 3 +) + +var RpcObjectCreateSetResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", + 3: "UNKNOWN_OBJECT_TYPE_URL", +} + +var RpcObjectCreateSetResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, + "UNKNOWN_OBJECT_TYPE_URL": 3, +} + +func (x RpcObjectCreateSetResponseErrorCode) String() string { + return proto.EnumName(RpcObjectCreateSetResponseErrorCode_name, int32(x)) +} + +func (RpcObjectCreateSetResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 4, 1, 0, 0} +} + +type RpcObjectDuplicateResponseErrorCode int32 + +const ( + RpcObjectDuplicateResponseError_NULL RpcObjectDuplicateResponseErrorCode = 0 + RpcObjectDuplicateResponseError_UNKNOWN_ERROR RpcObjectDuplicateResponseErrorCode = 1 + RpcObjectDuplicateResponseError_BAD_INPUT RpcObjectDuplicateResponseErrorCode = 2 +) + +var RpcObjectDuplicateResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcObjectDuplicateResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcObjectDuplicateResponseErrorCode) String() string { + return proto.EnumName(RpcObjectDuplicateResponseErrorCode_name, int32(x)) +} + +func (RpcObjectDuplicateResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 5, 1, 0, 0} +} + +type RpcObjectOpenBreadcrumbsResponseErrorCode int32 + +const ( + RpcObjectOpenBreadcrumbsResponseError_NULL RpcObjectOpenBreadcrumbsResponseErrorCode = 0 + RpcObjectOpenBreadcrumbsResponseError_UNKNOWN_ERROR RpcObjectOpenBreadcrumbsResponseErrorCode = 1 + RpcObjectOpenBreadcrumbsResponseError_BAD_INPUT RpcObjectOpenBreadcrumbsResponseErrorCode = 2 +) + +var RpcObjectOpenBreadcrumbsResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcObjectOpenBreadcrumbsResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcObjectOpenBreadcrumbsResponseErrorCode) String() string { + return proto.EnumName(RpcObjectOpenBreadcrumbsResponseErrorCode_name, int32(x)) +} + +func (RpcObjectOpenBreadcrumbsResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 6, 1, 0, 0} +} + +type RpcObjectSetBreadcrumbsResponseErrorCode int32 + +const ( + RpcObjectSetBreadcrumbsResponseError_NULL RpcObjectSetBreadcrumbsResponseErrorCode = 0 + RpcObjectSetBreadcrumbsResponseError_UNKNOWN_ERROR RpcObjectSetBreadcrumbsResponseErrorCode = 1 + RpcObjectSetBreadcrumbsResponseError_BAD_INPUT RpcObjectSetBreadcrumbsResponseErrorCode = 2 +) + +var RpcObjectSetBreadcrumbsResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcObjectSetBreadcrumbsResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcObjectSetBreadcrumbsResponseErrorCode) String() string { + return proto.EnumName(RpcObjectSetBreadcrumbsResponseErrorCode_name, int32(x)) +} + +func (RpcObjectSetBreadcrumbsResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 7, 1, 0, 0} +} + +type RpcObjectImportMarkdownResponseErrorCode int32 + +const ( + RpcObjectImportMarkdownResponseError_NULL RpcObjectImportMarkdownResponseErrorCode = 0 + RpcObjectImportMarkdownResponseError_UNKNOWN_ERROR RpcObjectImportMarkdownResponseErrorCode = 1 + RpcObjectImportMarkdownResponseError_BAD_INPUT RpcObjectImportMarkdownResponseErrorCode = 2 +) + +var RpcObjectImportMarkdownResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcObjectImportMarkdownResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcObjectImportMarkdownResponseErrorCode) String() string { + return proto.EnumName(RpcObjectImportMarkdownResponseErrorCode_name, int32(x)) +} + +func (RpcObjectImportMarkdownResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 8, 1, 0, 0} +} + +type RpcObjectShareByLinkResponseErrorCode int32 + +const ( + RpcObjectShareByLinkResponseError_NULL RpcObjectShareByLinkResponseErrorCode = 0 + RpcObjectShareByLinkResponseError_UNKNOWN_ERROR RpcObjectShareByLinkResponseErrorCode = 1 + RpcObjectShareByLinkResponseError_BAD_INPUT RpcObjectShareByLinkResponseErrorCode = 2 +) + +var RpcObjectShareByLinkResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcObjectShareByLinkResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcObjectShareByLinkResponseErrorCode) String() string { + return proto.EnumName(RpcObjectShareByLinkResponseErrorCode_name, int32(x)) +} + +func (RpcObjectShareByLinkResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 9, 1, 0, 0} +} + +type RpcObjectAddWithObjectIdResponseErrorCode int32 + +const ( + RpcObjectAddWithObjectIdResponseError_NULL RpcObjectAddWithObjectIdResponseErrorCode = 0 + RpcObjectAddWithObjectIdResponseError_UNKNOWN_ERROR RpcObjectAddWithObjectIdResponseErrorCode = 1 + RpcObjectAddWithObjectIdResponseError_BAD_INPUT RpcObjectAddWithObjectIdResponseErrorCode = 2 +) + +var RpcObjectAddWithObjectIdResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcObjectAddWithObjectIdResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcObjectAddWithObjectIdResponseErrorCode) String() string { + return proto.EnumName(RpcObjectAddWithObjectIdResponseErrorCode_name, int32(x)) +} + +func (RpcObjectAddWithObjectIdResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 10, 1, 0, 0} +} + +type RpcObjectSearchResponseErrorCode int32 + +const ( + RpcObjectSearchResponseError_NULL RpcObjectSearchResponseErrorCode = 0 + RpcObjectSearchResponseError_UNKNOWN_ERROR RpcObjectSearchResponseErrorCode = 1 + RpcObjectSearchResponseError_BAD_INPUT RpcObjectSearchResponseErrorCode = 2 +) + +var RpcObjectSearchResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcObjectSearchResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcObjectSearchResponseErrorCode) String() string { + return proto.EnumName(RpcObjectSearchResponseErrorCode_name, int32(x)) +} + +func (RpcObjectSearchResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 11, 1, 0, 0} +} + +type RpcObjectGraphEdgeType int32 + +const ( + RpcObjectGraphEdge_Link RpcObjectGraphEdgeType = 0 + RpcObjectGraphEdge_Relation RpcObjectGraphEdgeType = 1 +) + +var RpcObjectGraphEdgeType_name = map[int32]string{ + 0: "Link", + 1: "Relation", +} + +var RpcObjectGraphEdgeType_value = map[string]int32{ + "Link": 0, + "Relation": 1, +} + +func (x RpcObjectGraphEdgeType) String() string { + return proto.EnumName(RpcObjectGraphEdgeType_name, int32(x)) +} + +func (RpcObjectGraphEdgeType) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 12, 1, 0} +} + +type RpcObjectGraphResponseErrorCode int32 + +const ( + RpcObjectGraphResponseError_NULL RpcObjectGraphResponseErrorCode = 0 + RpcObjectGraphResponseError_UNKNOWN_ERROR RpcObjectGraphResponseErrorCode = 1 + RpcObjectGraphResponseError_BAD_INPUT RpcObjectGraphResponseErrorCode = 2 +) + +var RpcObjectGraphResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcObjectGraphResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcObjectGraphResponseErrorCode) String() string { + return proto.EnumName(RpcObjectGraphResponseErrorCode_name, int32(x)) +} + +func (RpcObjectGraphResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 12, 2, 0, 0} +} + +type RpcObjectSearchSubscribeResponseErrorCode int32 + +const ( + RpcObjectSearchSubscribeResponseError_NULL RpcObjectSearchSubscribeResponseErrorCode = 0 + RpcObjectSearchSubscribeResponseError_UNKNOWN_ERROR RpcObjectSearchSubscribeResponseErrorCode = 1 + RpcObjectSearchSubscribeResponseError_BAD_INPUT RpcObjectSearchSubscribeResponseErrorCode = 2 +) + +var RpcObjectSearchSubscribeResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcObjectSearchSubscribeResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcObjectSearchSubscribeResponseErrorCode) String() string { + return proto.EnumName(RpcObjectSearchSubscribeResponseErrorCode_name, int32(x)) +} + +func (RpcObjectSearchSubscribeResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 13, 1, 0, 0} +} + +type RpcObjectSubscribeIdsResponseErrorCode int32 + +const ( + RpcObjectSubscribeIdsResponseError_NULL RpcObjectSubscribeIdsResponseErrorCode = 0 + RpcObjectSubscribeIdsResponseError_UNKNOWN_ERROR RpcObjectSubscribeIdsResponseErrorCode = 1 + RpcObjectSubscribeIdsResponseError_BAD_INPUT RpcObjectSubscribeIdsResponseErrorCode = 2 +) + +var RpcObjectSubscribeIdsResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcObjectSubscribeIdsResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcObjectSubscribeIdsResponseErrorCode) String() string { + return proto.EnumName(RpcObjectSubscribeIdsResponseErrorCode_name, int32(x)) +} + +func (RpcObjectSubscribeIdsResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 14, 1, 0, 0} +} + +type RpcObjectSearchUnsubscribeResponseErrorCode int32 + +const ( + RpcObjectSearchUnsubscribeResponseError_NULL RpcObjectSearchUnsubscribeResponseErrorCode = 0 + RpcObjectSearchUnsubscribeResponseError_UNKNOWN_ERROR RpcObjectSearchUnsubscribeResponseErrorCode = 1 + RpcObjectSearchUnsubscribeResponseError_BAD_INPUT RpcObjectSearchUnsubscribeResponseErrorCode = 2 +) + +var RpcObjectSearchUnsubscribeResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcObjectSearchUnsubscribeResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcObjectSearchUnsubscribeResponseErrorCode) String() string { + return proto.EnumName(RpcObjectSearchUnsubscribeResponseErrorCode_name, int32(x)) +} + +func (RpcObjectSearchUnsubscribeResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 15, 1, 0, 0} +} + +type RpcObjectSetLayoutResponseErrorCode int32 + +const ( + RpcObjectSetLayoutResponseError_NULL RpcObjectSetLayoutResponseErrorCode = 0 + RpcObjectSetLayoutResponseError_UNKNOWN_ERROR RpcObjectSetLayoutResponseErrorCode = 1 + RpcObjectSetLayoutResponseError_BAD_INPUT RpcObjectSetLayoutResponseErrorCode = 2 +) + +var RpcObjectSetLayoutResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcObjectSetLayoutResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcObjectSetLayoutResponseErrorCode) String() string { + return proto.EnumName(RpcObjectSetLayoutResponseErrorCode_name, int32(x)) +} + +func (RpcObjectSetLayoutResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 16, 1, 0, 0} +} + +type RpcObjectSetIsFavoriteResponseErrorCode int32 + +const ( + RpcObjectSetIsFavoriteResponseError_NULL RpcObjectSetIsFavoriteResponseErrorCode = 0 + RpcObjectSetIsFavoriteResponseError_UNKNOWN_ERROR RpcObjectSetIsFavoriteResponseErrorCode = 1 + RpcObjectSetIsFavoriteResponseError_BAD_INPUT RpcObjectSetIsFavoriteResponseErrorCode = 2 +) + +var RpcObjectSetIsFavoriteResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcObjectSetIsFavoriteResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcObjectSetIsFavoriteResponseErrorCode) String() string { + return proto.EnumName(RpcObjectSetIsFavoriteResponseErrorCode_name, int32(x)) +} + +func (RpcObjectSetIsFavoriteResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 17, 1, 0, 0} +} + +type RpcObjectSetIsArchivedResponseErrorCode int32 + +const ( + RpcObjectSetIsArchivedResponseError_NULL RpcObjectSetIsArchivedResponseErrorCode = 0 + RpcObjectSetIsArchivedResponseError_UNKNOWN_ERROR RpcObjectSetIsArchivedResponseErrorCode = 1 + RpcObjectSetIsArchivedResponseError_BAD_INPUT RpcObjectSetIsArchivedResponseErrorCode = 2 +) + +var RpcObjectSetIsArchivedResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcObjectSetIsArchivedResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcObjectSetIsArchivedResponseErrorCode) String() string { + return proto.EnumName(RpcObjectSetIsArchivedResponseErrorCode_name, int32(x)) +} + +func (RpcObjectSetIsArchivedResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 18, 1, 0, 0} +} + +type RpcObjectSetObjectTypeResponseErrorCode int32 + +const ( + RpcObjectSetObjectTypeResponseError_NULL RpcObjectSetObjectTypeResponseErrorCode = 0 + RpcObjectSetObjectTypeResponseError_UNKNOWN_ERROR RpcObjectSetObjectTypeResponseErrorCode = 1 + RpcObjectSetObjectTypeResponseError_BAD_INPUT RpcObjectSetObjectTypeResponseErrorCode = 2 + RpcObjectSetObjectTypeResponseError_UNKNOWN_OBJECT_TYPE_URL RpcObjectSetObjectTypeResponseErrorCode = 3 +) + +var RpcObjectSetObjectTypeResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", + 3: "UNKNOWN_OBJECT_TYPE_URL", +} + +var RpcObjectSetObjectTypeResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, + "UNKNOWN_OBJECT_TYPE_URL": 3, +} + +func (x RpcObjectSetObjectTypeResponseErrorCode) String() string { + return proto.EnumName(RpcObjectSetObjectTypeResponseErrorCode_name, int32(x)) +} + +func (RpcObjectSetObjectTypeResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 19, 1, 0, 0} +} + +type RpcObjectSetDetailsResponseErrorCode int32 + +const ( + RpcObjectSetDetailsResponseError_NULL RpcObjectSetDetailsResponseErrorCode = 0 + RpcObjectSetDetailsResponseError_UNKNOWN_ERROR RpcObjectSetDetailsResponseErrorCode = 1 + RpcObjectSetDetailsResponseError_BAD_INPUT RpcObjectSetDetailsResponseErrorCode = 2 +) + +var RpcObjectSetDetailsResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcObjectSetDetailsResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcObjectSetDetailsResponseErrorCode) String() string { + return proto.EnumName(RpcObjectSetDetailsResponseErrorCode_name, int32(x)) +} + +func (RpcObjectSetDetailsResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 20, 2, 0, 0} +} + +type RpcObjectToSetResponseErrorCode int32 + +const ( + RpcObjectToSetResponseError_NULL RpcObjectToSetResponseErrorCode = 0 + RpcObjectToSetResponseError_UNKNOWN_ERROR RpcObjectToSetResponseErrorCode = 1 + RpcObjectToSetResponseError_BAD_INPUT RpcObjectToSetResponseErrorCode = 2 +) + +var RpcObjectToSetResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcObjectToSetResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcObjectToSetResponseErrorCode) String() string { + return proto.EnumName(RpcObjectToSetResponseErrorCode_name, int32(x)) +} + +func (RpcObjectToSetResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 21, 1, 0, 0} +} + +type RpcObjectUndoResponseErrorCode int32 + +const ( + RpcObjectUndoResponseError_NULL RpcObjectUndoResponseErrorCode = 0 + RpcObjectUndoResponseError_UNKNOWN_ERROR RpcObjectUndoResponseErrorCode = 1 + RpcObjectUndoResponseError_BAD_INPUT RpcObjectUndoResponseErrorCode = 2 + RpcObjectUndoResponseError_CAN_NOT_MOVE RpcObjectUndoResponseErrorCode = 3 +) + +var RpcObjectUndoResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", + 3: "CAN_NOT_MOVE", +} + +var RpcObjectUndoResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, + "CAN_NOT_MOVE": 3, +} + +func (x RpcObjectUndoResponseErrorCode) String() string { + return proto.EnumName(RpcObjectUndoResponseErrorCode_name, int32(x)) +} + +func (RpcObjectUndoResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 23, 1, 0, 0} +} + +type RpcObjectRedoResponseErrorCode int32 + +const ( + RpcObjectRedoResponseError_NULL RpcObjectRedoResponseErrorCode = 0 + RpcObjectRedoResponseError_UNKNOWN_ERROR RpcObjectRedoResponseErrorCode = 1 + RpcObjectRedoResponseError_BAD_INPUT RpcObjectRedoResponseErrorCode = 2 + RpcObjectRedoResponseError_CAN_NOT_MOVE RpcObjectRedoResponseErrorCode = 3 +) + +var RpcObjectRedoResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", + 3: "CAN_NOT_MOVE", +} + +var RpcObjectRedoResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, + "CAN_NOT_MOVE": 3, +} + +func (x RpcObjectRedoResponseErrorCode) String() string { + return proto.EnumName(RpcObjectRedoResponseErrorCode_name, int32(x)) +} + +func (RpcObjectRedoResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 24, 1, 0, 0} +} + +type RpcObjectListDuplicateResponseErrorCode int32 + +const ( + RpcObjectListDuplicateResponseError_NULL RpcObjectListDuplicateResponseErrorCode = 0 + RpcObjectListDuplicateResponseError_UNKNOWN_ERROR RpcObjectListDuplicateResponseErrorCode = 1 + RpcObjectListDuplicateResponseError_BAD_INPUT RpcObjectListDuplicateResponseErrorCode = 2 +) + +var RpcObjectListDuplicateResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcObjectListDuplicateResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcObjectListDuplicateResponseErrorCode) String() string { + return proto.EnumName(RpcObjectListDuplicateResponseErrorCode_name, int32(x)) +} + +func (RpcObjectListDuplicateResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 25, 1, 0, 0} +} + +type RpcObjectListDeleteResponseErrorCode int32 + +const ( + RpcObjectListDeleteResponseError_NULL RpcObjectListDeleteResponseErrorCode = 0 + RpcObjectListDeleteResponseError_UNKNOWN_ERROR RpcObjectListDeleteResponseErrorCode = 1 + RpcObjectListDeleteResponseError_BAD_INPUT RpcObjectListDeleteResponseErrorCode = 2 +) + +var RpcObjectListDeleteResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcObjectListDeleteResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcObjectListDeleteResponseErrorCode) String() string { + return proto.EnumName(RpcObjectListDeleteResponseErrorCode_name, int32(x)) +} + +func (RpcObjectListDeleteResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 26, 1, 0, 0} +} + +type RpcObjectListSetIsArchivedResponseErrorCode int32 + +const ( + RpcObjectListSetIsArchivedResponseError_NULL RpcObjectListSetIsArchivedResponseErrorCode = 0 + RpcObjectListSetIsArchivedResponseError_UNKNOWN_ERROR RpcObjectListSetIsArchivedResponseErrorCode = 1 + RpcObjectListSetIsArchivedResponseError_BAD_INPUT RpcObjectListSetIsArchivedResponseErrorCode = 2 +) + +var RpcObjectListSetIsArchivedResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcObjectListSetIsArchivedResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcObjectListSetIsArchivedResponseErrorCode) String() string { + return proto.EnumName(RpcObjectListSetIsArchivedResponseErrorCode_name, int32(x)) +} + +func (RpcObjectListSetIsArchivedResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 27, 1, 0, 0} +} + +type RpcObjectListSetIsFavoriteResponseErrorCode int32 + +const ( + RpcObjectListSetIsFavoriteResponseError_NULL RpcObjectListSetIsFavoriteResponseErrorCode = 0 + RpcObjectListSetIsFavoriteResponseError_UNKNOWN_ERROR RpcObjectListSetIsFavoriteResponseErrorCode = 1 + RpcObjectListSetIsFavoriteResponseError_BAD_INPUT RpcObjectListSetIsFavoriteResponseErrorCode = 2 +) + +var RpcObjectListSetIsFavoriteResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcObjectListSetIsFavoriteResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcObjectListSetIsFavoriteResponseErrorCode) String() string { + return proto.EnumName(RpcObjectListSetIsFavoriteResponseErrorCode_name, int32(x)) +} + +func (RpcObjectListSetIsFavoriteResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 28, 1, 0, 0} +} + +type RpcObjectApplyTemplateResponseErrorCode int32 + +const ( + RpcObjectApplyTemplateResponseError_NULL RpcObjectApplyTemplateResponseErrorCode = 0 + RpcObjectApplyTemplateResponseError_UNKNOWN_ERROR RpcObjectApplyTemplateResponseErrorCode = 1 + RpcObjectApplyTemplateResponseError_BAD_INPUT RpcObjectApplyTemplateResponseErrorCode = 2 +) + +var RpcObjectApplyTemplateResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcObjectApplyTemplateResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcObjectApplyTemplateResponseErrorCode) String() string { + return proto.EnumName(RpcObjectApplyTemplateResponseErrorCode_name, int32(x)) +} + +func (RpcObjectApplyTemplateResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 29, 1, 0, 0} +} + +type RpcObjectListExportFormat int32 + +const ( + RpcObjectListExport_Markdown RpcObjectListExportFormat = 0 + RpcObjectListExport_Protobuf RpcObjectListExportFormat = 1 + RpcObjectListExport_JSON RpcObjectListExportFormat = 2 + RpcObjectListExport_DOT RpcObjectListExportFormat = 3 + RpcObjectListExport_SVG RpcObjectListExportFormat = 4 + RpcObjectListExport_GRAPH_JSON RpcObjectListExportFormat = 5 +) + +var RpcObjectListExportFormat_name = map[int32]string{ + 0: "Markdown", + 1: "Protobuf", + 2: "JSON", + 3: "DOT", + 4: "SVG", + 5: "GRAPH_JSON", +} + +var RpcObjectListExportFormat_value = map[string]int32{ + "Markdown": 0, + "Protobuf": 1, + "JSON": 2, + "DOT": 3, + "SVG": 4, + "GRAPH_JSON": 5, +} + +func (x RpcObjectListExportFormat) String() string { + return proto.EnumName(RpcObjectListExportFormat_name, int32(x)) +} + +func (RpcObjectListExportFormat) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 30, 0} +} + +type RpcObjectListExportResponseErrorCode int32 + +const ( + RpcObjectListExportResponseError_NULL RpcObjectListExportResponseErrorCode = 0 + RpcObjectListExportResponseError_UNKNOWN_ERROR RpcObjectListExportResponseErrorCode = 1 + RpcObjectListExportResponseError_BAD_INPUT RpcObjectListExportResponseErrorCode = 2 +) + +var RpcObjectListExportResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcObjectListExportResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcObjectListExportResponseErrorCode) String() string { + return proto.EnumName(RpcObjectListExportResponseErrorCode_name, int32(x)) +} + +func (RpcObjectListExportResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 30, 1, 0, 0} +} + +type RpcObjectRelationAddResponseErrorCode int32 + +const ( + RpcObjectRelationAddResponseError_NULL RpcObjectRelationAddResponseErrorCode = 0 + RpcObjectRelationAddResponseError_UNKNOWN_ERROR RpcObjectRelationAddResponseErrorCode = 1 + RpcObjectRelationAddResponseError_BAD_INPUT RpcObjectRelationAddResponseErrorCode = 2 +) + +var RpcObjectRelationAddResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcObjectRelationAddResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcObjectRelationAddResponseErrorCode) String() string { + return proto.EnumName(RpcObjectRelationAddResponseErrorCode_name, int32(x)) +} + +func (RpcObjectRelationAddResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 5, 0, 1, 0, 0} +} + +type RpcObjectRelationUpdateResponseErrorCode int32 + +const ( + RpcObjectRelationUpdateResponseError_NULL RpcObjectRelationUpdateResponseErrorCode = 0 + RpcObjectRelationUpdateResponseError_UNKNOWN_ERROR RpcObjectRelationUpdateResponseErrorCode = 1 + RpcObjectRelationUpdateResponseError_BAD_INPUT RpcObjectRelationUpdateResponseErrorCode = 2 +) + +var RpcObjectRelationUpdateResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcObjectRelationUpdateResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcObjectRelationUpdateResponseErrorCode) String() string { + return proto.EnumName(RpcObjectRelationUpdateResponseErrorCode_name, int32(x)) +} + +func (RpcObjectRelationUpdateResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 5, 1, 1, 0, 0} +} + +type RpcObjectRelationDeleteResponseErrorCode int32 + +const ( + RpcObjectRelationDeleteResponseError_NULL RpcObjectRelationDeleteResponseErrorCode = 0 + RpcObjectRelationDeleteResponseError_UNKNOWN_ERROR RpcObjectRelationDeleteResponseErrorCode = 1 + RpcObjectRelationDeleteResponseError_BAD_INPUT RpcObjectRelationDeleteResponseErrorCode = 2 +) + +var RpcObjectRelationDeleteResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcObjectRelationDeleteResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcObjectRelationDeleteResponseErrorCode) String() string { + return proto.EnumName(RpcObjectRelationDeleteResponseErrorCode_name, int32(x)) +} + +func (RpcObjectRelationDeleteResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 5, 2, 1, 0, 0} +} + +type RpcObjectRelationListAvailableResponseErrorCode int32 + +const ( + RpcObjectRelationListAvailableResponseError_NULL RpcObjectRelationListAvailableResponseErrorCode = 0 + RpcObjectRelationListAvailableResponseError_UNKNOWN_ERROR RpcObjectRelationListAvailableResponseErrorCode = 1 + RpcObjectRelationListAvailableResponseError_BAD_INPUT RpcObjectRelationListAvailableResponseErrorCode = 2 +) + +var RpcObjectRelationListAvailableResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcObjectRelationListAvailableResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcObjectRelationListAvailableResponseErrorCode) String() string { + return proto.EnumName(RpcObjectRelationListAvailableResponseErrorCode_name, int32(x)) +} + +func (RpcObjectRelationListAvailableResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 5, 3, 1, 0, 0} +} + +type RpcObjectRelationAddFeaturedResponseErrorCode int32 + +const ( + RpcObjectRelationAddFeaturedResponseError_NULL RpcObjectRelationAddFeaturedResponseErrorCode = 0 + RpcObjectRelationAddFeaturedResponseError_UNKNOWN_ERROR RpcObjectRelationAddFeaturedResponseErrorCode = 1 + RpcObjectRelationAddFeaturedResponseError_BAD_INPUT RpcObjectRelationAddFeaturedResponseErrorCode = 2 +) + +var RpcObjectRelationAddFeaturedResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcObjectRelationAddFeaturedResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcObjectRelationAddFeaturedResponseErrorCode) String() string { + return proto.EnumName(RpcObjectRelationAddFeaturedResponseErrorCode_name, int32(x)) +} + +func (RpcObjectRelationAddFeaturedResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 5, 4, 1, 0, 0} +} + +type RpcObjectRelationRemoveFeaturedResponseErrorCode int32 + +const ( + RpcObjectRelationRemoveFeaturedResponseError_NULL RpcObjectRelationRemoveFeaturedResponseErrorCode = 0 + RpcObjectRelationRemoveFeaturedResponseError_UNKNOWN_ERROR RpcObjectRelationRemoveFeaturedResponseErrorCode = 1 + RpcObjectRelationRemoveFeaturedResponseError_BAD_INPUT RpcObjectRelationRemoveFeaturedResponseErrorCode = 2 +) + +var RpcObjectRelationRemoveFeaturedResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcObjectRelationRemoveFeaturedResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcObjectRelationRemoveFeaturedResponseErrorCode) String() string { + return proto.EnumName(RpcObjectRelationRemoveFeaturedResponseErrorCode_name, int32(x)) +} + +func (RpcObjectRelationRemoveFeaturedResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 5, 5, 1, 0, 0} +} + +type RpcObjectRelationOptionAddResponseErrorCode int32 + +const ( + RpcObjectRelationOptionAddResponseError_NULL RpcObjectRelationOptionAddResponseErrorCode = 0 + RpcObjectRelationOptionAddResponseError_UNKNOWN_ERROR RpcObjectRelationOptionAddResponseErrorCode = 1 + RpcObjectRelationOptionAddResponseError_BAD_INPUT RpcObjectRelationOptionAddResponseErrorCode = 2 +) + +var RpcObjectRelationOptionAddResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcObjectRelationOptionAddResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcObjectRelationOptionAddResponseErrorCode) String() string { + return proto.EnumName(RpcObjectRelationOptionAddResponseErrorCode_name, int32(x)) +} + +func (RpcObjectRelationOptionAddResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 6, 0, 1, 0, 0} +} + +type RpcObjectRelationOptionUpdateResponseErrorCode int32 + +const ( + RpcObjectRelationOptionUpdateResponseError_NULL RpcObjectRelationOptionUpdateResponseErrorCode = 0 + RpcObjectRelationOptionUpdateResponseError_UNKNOWN_ERROR RpcObjectRelationOptionUpdateResponseErrorCode = 1 + RpcObjectRelationOptionUpdateResponseError_BAD_INPUT RpcObjectRelationOptionUpdateResponseErrorCode = 2 +) + +var RpcObjectRelationOptionUpdateResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcObjectRelationOptionUpdateResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcObjectRelationOptionUpdateResponseErrorCode) String() string { + return proto.EnumName(RpcObjectRelationOptionUpdateResponseErrorCode_name, int32(x)) +} + +func (RpcObjectRelationOptionUpdateResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 6, 1, 1, 0, 0} +} + +type RpcObjectRelationOptionDeleteResponseErrorCode int32 + +const ( + RpcObjectRelationOptionDeleteResponseError_NULL RpcObjectRelationOptionDeleteResponseErrorCode = 0 + RpcObjectRelationOptionDeleteResponseError_UNKNOWN_ERROR RpcObjectRelationOptionDeleteResponseErrorCode = 1 + RpcObjectRelationOptionDeleteResponseError_BAD_INPUT RpcObjectRelationOptionDeleteResponseErrorCode = 2 + RpcObjectRelationOptionDeleteResponseError_SOME_RECORDS_HAS_RELATION_VALUE_WITH_THIS_OPTION RpcObjectRelationOptionDeleteResponseErrorCode = 3 +) + +var RpcObjectRelationOptionDeleteResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", + 3: "SOME_RECORDS_HAS_RELATION_VALUE_WITH_THIS_OPTION", +} + +var RpcObjectRelationOptionDeleteResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, + "SOME_RECORDS_HAS_RELATION_VALUE_WITH_THIS_OPTION": 3, +} + +func (x RpcObjectRelationOptionDeleteResponseErrorCode) String() string { + return proto.EnumName(RpcObjectRelationOptionDeleteResponseErrorCode_name, int32(x)) +} + +func (RpcObjectRelationOptionDeleteResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 6, 2, 1, 0, 0} +} + +type RpcObjectTypeListResponseErrorCode int32 + +const ( + RpcObjectTypeListResponseError_NULL RpcObjectTypeListResponseErrorCode = 0 + RpcObjectTypeListResponseError_UNKNOWN_ERROR RpcObjectTypeListResponseErrorCode = 1 + RpcObjectTypeListResponseError_BAD_INPUT RpcObjectTypeListResponseErrorCode = 2 +) + +var RpcObjectTypeListResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcObjectTypeListResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcObjectTypeListResponseErrorCode) String() string { + return proto.EnumName(RpcObjectTypeListResponseErrorCode_name, int32(x)) +} + +func (RpcObjectTypeListResponseErrorCode) EnumDescriptor() ([]byte, []int) { return fileDescriptor_8261c968b2e6f45c, []int{0, 7, 0, 1, 0, 0} } -type RpcVersionGetResponseErrorCode int32 +type RpcObjectTypeCreateResponseErrorCode int32 const ( - 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 + RpcObjectTypeCreateResponseError_NULL RpcObjectTypeCreateResponseErrorCode = 0 + RpcObjectTypeCreateResponseError_UNKNOWN_ERROR RpcObjectTypeCreateResponseErrorCode = 1 + RpcObjectTypeCreateResponseError_BAD_INPUT RpcObjectTypeCreateResponseErrorCode = 2 + RpcObjectTypeCreateResponseError_UNKNOWN_OBJECT_TYPE_URL RpcObjectTypeCreateResponseErrorCode = 3 ) -var RpcVersionGetResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", - 3: "VERSION_IS_EMPTY", - 101: "NOT_FOUND", - 102: "TIMEOUT", +var RpcObjectTypeCreateResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", + 3: "UNKNOWN_OBJECT_TYPE_URL", } -var RpcVersionGetResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, - "VERSION_IS_EMPTY": 3, - "NOT_FOUND": 101, - "TIMEOUT": 102, +var RpcObjectTypeCreateResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, + "UNKNOWN_OBJECT_TYPE_URL": 3, } -func (x RpcVersionGetResponseErrorCode) String() string { - return proto.EnumName(RpcVersionGetResponseErrorCode_name, int32(x)) +func (x RpcObjectTypeCreateResponseErrorCode) String() string { + return proto.EnumName(RpcObjectTypeCreateResponseErrorCode_name, int32(x)) } -func (RpcVersionGetResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 8, 0, 1, 0, 0} +func (RpcObjectTypeCreateResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 7, 1, 1, 0, 0} +} + +type RpcObjectTypeRelationAddResponseErrorCode int32 + +const ( + RpcObjectTypeRelationAddResponseError_NULL RpcObjectTypeRelationAddResponseErrorCode = 0 + RpcObjectTypeRelationAddResponseError_UNKNOWN_ERROR RpcObjectTypeRelationAddResponseErrorCode = 1 + RpcObjectTypeRelationAddResponseError_BAD_INPUT RpcObjectTypeRelationAddResponseErrorCode = 2 + RpcObjectTypeRelationAddResponseError_UNKNOWN_OBJECT_TYPE_URL RpcObjectTypeRelationAddResponseErrorCode = 3 + RpcObjectTypeRelationAddResponseError_READONLY_OBJECT_TYPE RpcObjectTypeRelationAddResponseErrorCode = 4 +) + +var RpcObjectTypeRelationAddResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", + 3: "UNKNOWN_OBJECT_TYPE_URL", + 4: "READONLY_OBJECT_TYPE", +} + +var RpcObjectTypeRelationAddResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, + "UNKNOWN_OBJECT_TYPE_URL": 3, + "READONLY_OBJECT_TYPE": 4, +} + +func (x RpcObjectTypeRelationAddResponseErrorCode) String() string { + return proto.EnumName(RpcObjectTypeRelationAddResponseErrorCode_name, int32(x)) +} + +func (RpcObjectTypeRelationAddResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 7, 2, 0, 1, 0, 0} +} + +type RpcObjectTypeRelationRemoveResponseErrorCode int32 + +const ( + RpcObjectTypeRelationRemoveResponseError_NULL RpcObjectTypeRelationRemoveResponseErrorCode = 0 + RpcObjectTypeRelationRemoveResponseError_UNKNOWN_ERROR RpcObjectTypeRelationRemoveResponseErrorCode = 1 + RpcObjectTypeRelationRemoveResponseError_BAD_INPUT RpcObjectTypeRelationRemoveResponseErrorCode = 2 + RpcObjectTypeRelationRemoveResponseError_UNKNOWN_OBJECT_TYPE_URL RpcObjectTypeRelationRemoveResponseErrorCode = 3 + RpcObjectTypeRelationRemoveResponseError_READONLY_OBJECT_TYPE RpcObjectTypeRelationRemoveResponseErrorCode = 4 +) + +var RpcObjectTypeRelationRemoveResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", + 3: "UNKNOWN_OBJECT_TYPE_URL", + 4: "READONLY_OBJECT_TYPE", +} + +var RpcObjectTypeRelationRemoveResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, + "UNKNOWN_OBJECT_TYPE_URL": 3, + "READONLY_OBJECT_TYPE": 4, +} + +func (x RpcObjectTypeRelationRemoveResponseErrorCode) String() string { + return proto.EnumName(RpcObjectTypeRelationRemoveResponseErrorCode_name, int32(x)) +} + +func (RpcObjectTypeRelationRemoveResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 7, 2, 1, 1, 0, 0} +} + +type RpcObjectTypeRelationUpdateResponseErrorCode int32 + +const ( + RpcObjectTypeRelationUpdateResponseError_NULL RpcObjectTypeRelationUpdateResponseErrorCode = 0 + RpcObjectTypeRelationUpdateResponseError_UNKNOWN_ERROR RpcObjectTypeRelationUpdateResponseErrorCode = 1 + RpcObjectTypeRelationUpdateResponseError_BAD_INPUT RpcObjectTypeRelationUpdateResponseErrorCode = 2 + RpcObjectTypeRelationUpdateResponseError_UNKNOWN_OBJECT_TYPE_URL RpcObjectTypeRelationUpdateResponseErrorCode = 3 + RpcObjectTypeRelationUpdateResponseError_READONLY_OBJECT_TYPE RpcObjectTypeRelationUpdateResponseErrorCode = 4 +) + +var RpcObjectTypeRelationUpdateResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", + 3: "UNKNOWN_OBJECT_TYPE_URL", + 4: "READONLY_OBJECT_TYPE", +} + +var RpcObjectTypeRelationUpdateResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, + "UNKNOWN_OBJECT_TYPE_URL": 3, + "READONLY_OBJECT_TYPE": 4, +} + +func (x RpcObjectTypeRelationUpdateResponseErrorCode) String() string { + return proto.EnumName(RpcObjectTypeRelationUpdateResponseErrorCode_name, int32(x)) +} + +func (RpcObjectTypeRelationUpdateResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 7, 2, 2, 1, 0, 0} +} + +type RpcObjectTypeRelationListResponseErrorCode int32 + +const ( + RpcObjectTypeRelationListResponseError_NULL RpcObjectTypeRelationListResponseErrorCode = 0 + RpcObjectTypeRelationListResponseError_UNKNOWN_ERROR RpcObjectTypeRelationListResponseErrorCode = 1 + RpcObjectTypeRelationListResponseError_BAD_INPUT RpcObjectTypeRelationListResponseErrorCode = 2 + RpcObjectTypeRelationListResponseError_UNKNOWN_OBJECT_TYPE_URL RpcObjectTypeRelationListResponseErrorCode = 3 +) + +var RpcObjectTypeRelationListResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", + 3: "UNKNOWN_OBJECT_TYPE_URL", +} + +var RpcObjectTypeRelationListResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, + "UNKNOWN_OBJECT_TYPE_URL": 3, +} + +func (x RpcObjectTypeRelationListResponseErrorCode) String() string { + return proto.EnumName(RpcObjectTypeRelationListResponseErrorCode_name, int32(x)) +} + +func (RpcObjectTypeRelationListResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 7, 2, 3, 1, 0, 0} +} + +type RpcHistoryGetVersionsResponseErrorCode int32 + +const ( + RpcHistoryGetVersionsResponseError_NULL RpcHistoryGetVersionsResponseErrorCode = 0 + RpcHistoryGetVersionsResponseError_UNKNOWN_ERROR RpcHistoryGetVersionsResponseErrorCode = 1 + RpcHistoryGetVersionsResponseError_BAD_INPUT RpcHistoryGetVersionsResponseErrorCode = 2 +) + +var RpcHistoryGetVersionsResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcHistoryGetVersionsResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcHistoryGetVersionsResponseErrorCode) String() string { + return proto.EnumName(RpcHistoryGetVersionsResponseErrorCode_name, int32(x)) +} + +func (RpcHistoryGetVersionsResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 8, 1, 1, 0, 0} +} + +type RpcHistoryShowVersionResponseErrorCode int32 + +const ( + RpcHistoryShowVersionResponseError_NULL RpcHistoryShowVersionResponseErrorCode = 0 + RpcHistoryShowVersionResponseError_UNKNOWN_ERROR RpcHistoryShowVersionResponseErrorCode = 1 + RpcHistoryShowVersionResponseError_BAD_INPUT RpcHistoryShowVersionResponseErrorCode = 2 +) + +var RpcHistoryShowVersionResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcHistoryShowVersionResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcHistoryShowVersionResponseErrorCode) String() string { + return proto.EnumName(RpcHistoryShowVersionResponseErrorCode_name, int32(x)) +} + +func (RpcHistoryShowVersionResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 8, 2, 1, 0, 0} +} + +type RpcHistorySetVersionResponseErrorCode int32 + +const ( + RpcHistorySetVersionResponseError_NULL RpcHistorySetVersionResponseErrorCode = 0 + RpcHistorySetVersionResponseError_UNKNOWN_ERROR RpcHistorySetVersionResponseErrorCode = 1 + RpcHistorySetVersionResponseError_BAD_INPUT RpcHistorySetVersionResponseErrorCode = 2 +) + +var RpcHistorySetVersionResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcHistorySetVersionResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcHistorySetVersionResponseErrorCode) String() string { + return proto.EnumName(RpcHistorySetVersionResponseErrorCode_name, int32(x)) +} + +func (RpcHistorySetVersionResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 8, 3, 1, 0, 0} } type RpcFileOffloadResponseErrorCode int32 @@ -2902,268 +2157,94 @@ func (x RpcFileListOffloadResponseErrorCode) String() string { } func (RpcFileListOffloadResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 10, 0, 1, 0, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 9, 1, 1, 0, 0} } -type RpcShutdownResponseErrorCode int32 +type RpcFileUploadResponseErrorCode int32 const ( - RpcShutdownResponseError_NULL RpcShutdownResponseErrorCode = 0 - RpcShutdownResponseError_UNKNOWN_ERROR RpcShutdownResponseErrorCode = 1 - RpcShutdownResponseError_BAD_INPUT RpcShutdownResponseErrorCode = 2 - RpcShutdownResponseError_NODE_NOT_STARTED RpcShutdownResponseErrorCode = 101 + RpcFileUploadResponseError_NULL RpcFileUploadResponseErrorCode = 0 + RpcFileUploadResponseError_UNKNOWN_ERROR RpcFileUploadResponseErrorCode = 1 + RpcFileUploadResponseError_BAD_INPUT RpcFileUploadResponseErrorCode = 2 ) -var RpcShutdownResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", - 101: "NODE_NOT_STARTED", -} - -var RpcShutdownResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, - "NODE_NOT_STARTED": 101, -} - -func (x RpcShutdownResponseErrorCode) String() string { - return proto.EnumName(RpcShutdownResponseErrorCode_name, int32(x)) -} - -func (RpcShutdownResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 11, 1, 0, 0} -} - -type RpcDeviceStateRequestDeviceState int32 - -const ( - RpcDeviceStateRequest_BACKGROUND RpcDeviceStateRequestDeviceState = 0 - RpcDeviceStateRequest_FOREGROUND RpcDeviceStateRequestDeviceState = 1 -) - -var RpcDeviceStateRequestDeviceState_name = map[int32]string{ - 0: "BACKGROUND", - 1: "FOREGROUND", -} - -var RpcDeviceStateRequestDeviceState_value = map[string]int32{ - "BACKGROUND": 0, - "FOREGROUND": 1, -} - -func (x RpcDeviceStateRequestDeviceState) String() string { - return proto.EnumName(RpcDeviceStateRequestDeviceState_name, int32(x)) -} - -func (RpcDeviceStateRequestDeviceState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 12, 0, 0} -} - -type RpcDeviceStateResponseErrorCode int32 - -const ( - RpcDeviceStateResponseError_NULL RpcDeviceStateResponseErrorCode = 0 - RpcDeviceStateResponseError_UNKNOWN_ERROR RpcDeviceStateResponseErrorCode = 1 - RpcDeviceStateResponseError_BAD_INPUT RpcDeviceStateResponseErrorCode = 2 - RpcDeviceStateResponseError_NODE_NOT_STARTED RpcDeviceStateResponseErrorCode = 101 -) - -var RpcDeviceStateResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", - 101: "NODE_NOT_STARTED", -} - -var RpcDeviceStateResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, - "NODE_NOT_STARTED": 101, -} - -func (x RpcDeviceStateResponseErrorCode) String() string { - return proto.EnumName(RpcDeviceStateResponseErrorCode_name, int32(x)) -} - -func (RpcDeviceStateResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 12, 1, 0, 0} -} - -type RpcConfigGetResponseErrorCode int32 - -const ( - RpcConfigGetResponseError_NULL RpcConfigGetResponseErrorCode = 0 - RpcConfigGetResponseError_UNKNOWN_ERROR RpcConfigGetResponseErrorCode = 1 - RpcConfigGetResponseError_BAD_INPUT RpcConfigGetResponseErrorCode = 2 - RpcConfigGetResponseError_NODE_NOT_STARTED RpcConfigGetResponseErrorCode = 101 -) - -var RpcConfigGetResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", - 101: "NODE_NOT_STARTED", -} - -var RpcConfigGetResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, - "NODE_NOT_STARTED": 101, -} - -func (x RpcConfigGetResponseErrorCode) String() string { - return proto.EnumName(RpcConfigGetResponseErrorCode_name, int32(x)) -} - -func (RpcConfigGetResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 13, 0, 1, 0, 0} -} - -type RpcPingResponseErrorCode int32 - -const ( - RpcPingResponseError_NULL RpcPingResponseErrorCode = 0 - RpcPingResponseError_UNKNOWN_ERROR RpcPingResponseErrorCode = 1 - RpcPingResponseError_BAD_INPUT RpcPingResponseErrorCode = 2 -) - -var RpcPingResponseErrorCode_name = map[int32]string{ +var RpcFileUploadResponseErrorCode_name = map[int32]string{ 0: "NULL", 1: "UNKNOWN_ERROR", 2: "BAD_INPUT", } -var RpcPingResponseErrorCode_value = map[string]int32{ +var RpcFileUploadResponseErrorCode_value = map[string]int32{ "NULL": 0, "UNKNOWN_ERROR": 1, "BAD_INPUT": 2, } -func (x RpcPingResponseErrorCode) String() string { - return proto.EnumName(RpcPingResponseErrorCode_name, int32(x)) +func (x RpcFileUploadResponseErrorCode) String() string { + return proto.EnumName(RpcFileUploadResponseErrorCode_name, int32(x)) } -func (RpcPingResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 1, 0, 0} +func (RpcFileUploadResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 9, 2, 1, 0, 0} } -type RpcProcessCancelResponseErrorCode int32 +type RpcFileDownloadResponseErrorCode int32 const ( - RpcProcessCancelResponseError_NULL RpcProcessCancelResponseErrorCode = 0 - RpcProcessCancelResponseError_UNKNOWN_ERROR RpcProcessCancelResponseErrorCode = 1 - RpcProcessCancelResponseError_BAD_INPUT RpcProcessCancelResponseErrorCode = 2 + RpcFileDownloadResponseError_NULL RpcFileDownloadResponseErrorCode = 0 + RpcFileDownloadResponseError_UNKNOWN_ERROR RpcFileDownloadResponseErrorCode = 1 + RpcFileDownloadResponseError_BAD_INPUT RpcFileDownloadResponseErrorCode = 2 + RpcFileDownloadResponseError_NOT_FOUND RpcFileDownloadResponseErrorCode = 3 ) -var RpcProcessCancelResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcProcessCancelResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcProcessCancelResponseErrorCode) String() string { - return proto.EnumName(RpcProcessCancelResponseErrorCode_name, int32(x)) -} - -func (RpcProcessCancelResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 15, 0, 1, 0, 0} -} - -type RpcLinkPreviewResponseErrorCode int32 - -const ( - RpcLinkPreviewResponseError_NULL RpcLinkPreviewResponseErrorCode = 0 - RpcLinkPreviewResponseError_UNKNOWN_ERROR RpcLinkPreviewResponseErrorCode = 1 - RpcLinkPreviewResponseError_BAD_INPUT RpcLinkPreviewResponseErrorCode = 2 -) - -var RpcLinkPreviewResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcLinkPreviewResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcLinkPreviewResponseErrorCode) String() string { - return proto.EnumName(RpcLinkPreviewResponseErrorCode_name, int32(x)) -} - -func (RpcLinkPreviewResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 1, 0, 0} -} - -type RpcUploadFileResponseErrorCode int32 - -const ( - RpcUploadFileResponseError_NULL RpcUploadFileResponseErrorCode = 0 - RpcUploadFileResponseError_UNKNOWN_ERROR RpcUploadFileResponseErrorCode = 1 - RpcUploadFileResponseError_BAD_INPUT RpcUploadFileResponseErrorCode = 2 -) - -var RpcUploadFileResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcUploadFileResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcUploadFileResponseErrorCode) String() string { - return proto.EnumName(RpcUploadFileResponseErrorCode_name, int32(x)) -} - -func (RpcUploadFileResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 17, 1, 0, 0} -} - -type RpcDownloadFileResponseErrorCode int32 - -const ( - RpcDownloadFileResponseError_NULL RpcDownloadFileResponseErrorCode = 0 - RpcDownloadFileResponseError_UNKNOWN_ERROR RpcDownloadFileResponseErrorCode = 1 - RpcDownloadFileResponseError_BAD_INPUT RpcDownloadFileResponseErrorCode = 2 - RpcDownloadFileResponseError_NOT_FOUND RpcDownloadFileResponseErrorCode = 3 -) - -var RpcDownloadFileResponseErrorCode_name = map[int32]string{ +var RpcFileDownloadResponseErrorCode_name = map[int32]string{ 0: "NULL", 1: "UNKNOWN_ERROR", 2: "BAD_INPUT", 3: "NOT_FOUND", } -var RpcDownloadFileResponseErrorCode_value = map[string]int32{ +var RpcFileDownloadResponseErrorCode_value = map[string]int32{ "NULL": 0, "UNKNOWN_ERROR": 1, "BAD_INPUT": 2, "NOT_FOUND": 3, } -func (x RpcDownloadFileResponseErrorCode) String() string { - return proto.EnumName(RpcDownloadFileResponseErrorCode_name, int32(x)) +func (x RpcFileDownloadResponseErrorCode) String() string { + return proto.EnumName(RpcFileDownloadResponseErrorCode_name, int32(x)) } -func (RpcDownloadFileResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 18, 1, 0, 0} +func (RpcFileDownloadResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 9, 3, 1, 0, 0} +} + +type RpcFileDropResponseErrorCode int32 + +const ( + RpcFileDropResponseError_NULL RpcFileDropResponseErrorCode = 0 + RpcFileDropResponseError_UNKNOWN_ERROR RpcFileDropResponseErrorCode = 1 + RpcFileDropResponseError_BAD_INPUT RpcFileDropResponseErrorCode = 2 +) + +var RpcFileDropResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcFileDropResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcFileDropResponseErrorCode) String() string { + return proto.EnumName(RpcFileDropResponseErrorCode_name, int32(x)) +} + +func (RpcFileDropResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 9, 4, 1, 0, 0} } type RpcNavigationContext int32 @@ -3191,7 +2272,7 @@ func (x RpcNavigationContext) String() string { } func (RpcNavigationContext) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 19, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 10, 0} } type RpcNavigationListObjectsResponseErrorCode int32 @@ -3219,7 +2300,7 @@ func (x RpcNavigationListObjectsResponseErrorCode) String() string { } func (RpcNavigationListObjectsResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 19, 0, 1, 0, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 10, 0, 1, 0, 0} } type RpcNavigationGetObjectInfoWithLinksResponseErrorCode int32 @@ -3247,1306 +2328,147 @@ func (x RpcNavigationGetObjectInfoWithLinksResponseErrorCode) String() string { } func (RpcNavigationGetObjectInfoWithLinksResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 19, 1, 1, 0, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 10, 1, 1, 0, 0} } -type RpcHistoryVersionsResponseErrorCode int32 +type RpcTemplateCreateFromObjectResponseErrorCode int32 const ( - RpcHistoryVersionsResponseError_NULL RpcHistoryVersionsResponseErrorCode = 0 - RpcHistoryVersionsResponseError_UNKNOWN_ERROR RpcHistoryVersionsResponseErrorCode = 1 - RpcHistoryVersionsResponseError_BAD_INPUT RpcHistoryVersionsResponseErrorCode = 2 + RpcTemplateCreateFromObjectResponseError_NULL RpcTemplateCreateFromObjectResponseErrorCode = 0 + RpcTemplateCreateFromObjectResponseError_UNKNOWN_ERROR RpcTemplateCreateFromObjectResponseErrorCode = 1 + RpcTemplateCreateFromObjectResponseError_BAD_INPUT RpcTemplateCreateFromObjectResponseErrorCode = 2 ) -var RpcHistoryVersionsResponseErrorCode_name = map[int32]string{ +var RpcTemplateCreateFromObjectResponseErrorCode_name = map[int32]string{ 0: "NULL", 1: "UNKNOWN_ERROR", 2: "BAD_INPUT", } -var RpcHistoryVersionsResponseErrorCode_value = map[string]int32{ +var RpcTemplateCreateFromObjectResponseErrorCode_value = map[string]int32{ "NULL": 0, "UNKNOWN_ERROR": 1, "BAD_INPUT": 2, } -func (x RpcHistoryVersionsResponseErrorCode) String() string { - return proto.EnumName(RpcHistoryVersionsResponseErrorCode_name, int32(x)) +func (x RpcTemplateCreateFromObjectResponseErrorCode) String() string { + return proto.EnumName(RpcTemplateCreateFromObjectResponseErrorCode_name, int32(x)) } -func (RpcHistoryVersionsResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 20, 0, 2, 0, 0} +func (RpcTemplateCreateFromObjectResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 11, 0, 1, 0, 0} } -type RpcHistoryShowResponseErrorCode int32 +type RpcTemplateCreateFromObjectTypeResponseErrorCode int32 const ( - RpcHistoryShowResponseError_NULL RpcHistoryShowResponseErrorCode = 0 - RpcHistoryShowResponseError_UNKNOWN_ERROR RpcHistoryShowResponseErrorCode = 1 - RpcHistoryShowResponseError_BAD_INPUT RpcHistoryShowResponseErrorCode = 2 + RpcTemplateCreateFromObjectTypeResponseError_NULL RpcTemplateCreateFromObjectTypeResponseErrorCode = 0 + RpcTemplateCreateFromObjectTypeResponseError_UNKNOWN_ERROR RpcTemplateCreateFromObjectTypeResponseErrorCode = 1 + RpcTemplateCreateFromObjectTypeResponseError_BAD_INPUT RpcTemplateCreateFromObjectTypeResponseErrorCode = 2 ) -var RpcHistoryShowResponseErrorCode_name = map[int32]string{ +var RpcTemplateCreateFromObjectTypeResponseErrorCode_name = map[int32]string{ 0: "NULL", 1: "UNKNOWN_ERROR", 2: "BAD_INPUT", } -var RpcHistoryShowResponseErrorCode_value = map[string]int32{ +var RpcTemplateCreateFromObjectTypeResponseErrorCode_value = map[string]int32{ "NULL": 0, "UNKNOWN_ERROR": 1, "BAD_INPUT": 2, } -func (x RpcHistoryShowResponseErrorCode) String() string { - return proto.EnumName(RpcHistoryShowResponseErrorCode_name, int32(x)) +func (x RpcTemplateCreateFromObjectTypeResponseErrorCode) String() string { + return proto.EnumName(RpcTemplateCreateFromObjectTypeResponseErrorCode_name, int32(x)) } -func (RpcHistoryShowResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 20, 1, 1, 0, 0} +func (RpcTemplateCreateFromObjectTypeResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 11, 1, 1, 0, 0} } -type RpcHistorySetVersionResponseErrorCode int32 +type RpcTemplateCloneResponseErrorCode int32 const ( - RpcHistorySetVersionResponseError_NULL RpcHistorySetVersionResponseErrorCode = 0 - RpcHistorySetVersionResponseError_UNKNOWN_ERROR RpcHistorySetVersionResponseErrorCode = 1 - RpcHistorySetVersionResponseError_BAD_INPUT RpcHistorySetVersionResponseErrorCode = 2 + RpcTemplateCloneResponseError_NULL RpcTemplateCloneResponseErrorCode = 0 + RpcTemplateCloneResponseError_UNKNOWN_ERROR RpcTemplateCloneResponseErrorCode = 1 + RpcTemplateCloneResponseError_BAD_INPUT RpcTemplateCloneResponseErrorCode = 2 ) -var RpcHistorySetVersionResponseErrorCode_name = map[int32]string{ +var RpcTemplateCloneResponseErrorCode_name = map[int32]string{ 0: "NULL", 1: "UNKNOWN_ERROR", 2: "BAD_INPUT", } -var RpcHistorySetVersionResponseErrorCode_value = map[string]int32{ +var RpcTemplateCloneResponseErrorCode_value = map[string]int32{ "NULL": 0, "UNKNOWN_ERROR": 1, "BAD_INPUT": 2, } -func (x RpcHistorySetVersionResponseErrorCode) String() string { - return proto.EnumName(RpcHistorySetVersionResponseErrorCode_name, int32(x)) +func (x RpcTemplateCloneResponseErrorCode) String() string { + return proto.EnumName(RpcTemplateCloneResponseErrorCode_name, int32(x)) } -func (RpcHistorySetVersionResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 20, 2, 1, 0, 0} +func (RpcTemplateCloneResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 11, 2, 1, 0, 0} } -type RpcPageCreateResponseErrorCode int32 +type RpcTemplateExportAllResponseErrorCode int32 const ( - RpcPageCreateResponseError_NULL RpcPageCreateResponseErrorCode = 0 - RpcPageCreateResponseError_UNKNOWN_ERROR RpcPageCreateResponseErrorCode = 1 - RpcPageCreateResponseError_BAD_INPUT RpcPageCreateResponseErrorCode = 2 + RpcTemplateExportAllResponseError_NULL RpcTemplateExportAllResponseErrorCode = 0 + RpcTemplateExportAllResponseError_UNKNOWN_ERROR RpcTemplateExportAllResponseErrorCode = 1 + RpcTemplateExportAllResponseError_BAD_INPUT RpcTemplateExportAllResponseErrorCode = 2 ) -var RpcPageCreateResponseErrorCode_name = map[int32]string{ +var RpcTemplateExportAllResponseErrorCode_name = map[int32]string{ 0: "NULL", 1: "UNKNOWN_ERROR", 2: "BAD_INPUT", } -var RpcPageCreateResponseErrorCode_value = map[string]int32{ +var RpcTemplateExportAllResponseErrorCode_value = map[string]int32{ "NULL": 0, "UNKNOWN_ERROR": 1, "BAD_INPUT": 2, } -func (x RpcPageCreateResponseErrorCode) String() string { - return proto.EnumName(RpcPageCreateResponseErrorCode_name, int32(x)) +func (x RpcTemplateExportAllResponseErrorCode) String() string { + return proto.EnumName(RpcTemplateExportAllResponseErrorCode_name, int32(x)) } -func (RpcPageCreateResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 21, 0, 1, 0, 0} +func (RpcTemplateExportAllResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 11, 3, 1, 0, 0} } -type RpcSetCreateResponseErrorCode int32 +type RpcLinkPreviewResponseErrorCode int32 const ( - RpcSetCreateResponseError_NULL RpcSetCreateResponseErrorCode = 0 - RpcSetCreateResponseError_UNKNOWN_ERROR RpcSetCreateResponseErrorCode = 1 - RpcSetCreateResponseError_BAD_INPUT RpcSetCreateResponseErrorCode = 2 - RpcSetCreateResponseError_UNKNOWN_OBJECT_TYPE_URL RpcSetCreateResponseErrorCode = 3 + RpcLinkPreviewResponseError_NULL RpcLinkPreviewResponseErrorCode = 0 + RpcLinkPreviewResponseError_UNKNOWN_ERROR RpcLinkPreviewResponseErrorCode = 1 + RpcLinkPreviewResponseError_BAD_INPUT RpcLinkPreviewResponseErrorCode = 2 ) -var RpcSetCreateResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", - 3: "UNKNOWN_OBJECT_TYPE_URL", -} - -var RpcSetCreateResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, - "UNKNOWN_OBJECT_TYPE_URL": 3, -} - -func (x RpcSetCreateResponseErrorCode) String() string { - return proto.EnumName(RpcSetCreateResponseErrorCode_name, int32(x)) -} - -func (RpcSetCreateResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 22, 0, 1, 0, 0} -} - -type RpcObjectTypeListResponseErrorCode int32 - -const ( - RpcObjectTypeListResponseError_NULL RpcObjectTypeListResponseErrorCode = 0 - RpcObjectTypeListResponseError_UNKNOWN_ERROR RpcObjectTypeListResponseErrorCode = 1 - RpcObjectTypeListResponseError_BAD_INPUT RpcObjectTypeListResponseErrorCode = 2 -) - -var RpcObjectTypeListResponseErrorCode_name = map[int32]string{ +var RpcLinkPreviewResponseErrorCode_name = map[int32]string{ 0: "NULL", 1: "UNKNOWN_ERROR", 2: "BAD_INPUT", } -var RpcObjectTypeListResponseErrorCode_value = map[string]int32{ +var RpcLinkPreviewResponseErrorCode_value = map[string]int32{ "NULL": 0, "UNKNOWN_ERROR": 1, "BAD_INPUT": 2, } -func (x RpcObjectTypeListResponseErrorCode) String() string { - return proto.EnumName(RpcObjectTypeListResponseErrorCode_name, int32(x)) +func (x RpcLinkPreviewResponseErrorCode) String() string { + return proto.EnumName(RpcLinkPreviewResponseErrorCode_name, int32(x)) } -func (RpcObjectTypeListResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 23, 0, 1, 0, 0} -} - -type RpcObjectTypeCreateResponseErrorCode int32 - -const ( - RpcObjectTypeCreateResponseError_NULL RpcObjectTypeCreateResponseErrorCode = 0 - RpcObjectTypeCreateResponseError_UNKNOWN_ERROR RpcObjectTypeCreateResponseErrorCode = 1 - RpcObjectTypeCreateResponseError_BAD_INPUT RpcObjectTypeCreateResponseErrorCode = 2 - RpcObjectTypeCreateResponseError_UNKNOWN_OBJECT_TYPE_URL RpcObjectTypeCreateResponseErrorCode = 3 -) - -var RpcObjectTypeCreateResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", - 3: "UNKNOWN_OBJECT_TYPE_URL", -} - -var RpcObjectTypeCreateResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, - "UNKNOWN_OBJECT_TYPE_URL": 3, -} - -func (x RpcObjectTypeCreateResponseErrorCode) String() string { - return proto.EnumName(RpcObjectTypeCreateResponseErrorCode_name, int32(x)) -} - -func (RpcObjectTypeCreateResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 23, 1, 1, 0, 0} -} - -type RpcObjectTypeRelationAddResponseErrorCode int32 - -const ( - RpcObjectTypeRelationAddResponseError_NULL RpcObjectTypeRelationAddResponseErrorCode = 0 - RpcObjectTypeRelationAddResponseError_UNKNOWN_ERROR RpcObjectTypeRelationAddResponseErrorCode = 1 - RpcObjectTypeRelationAddResponseError_BAD_INPUT RpcObjectTypeRelationAddResponseErrorCode = 2 - RpcObjectTypeRelationAddResponseError_UNKNOWN_OBJECT_TYPE_URL RpcObjectTypeRelationAddResponseErrorCode = 3 - RpcObjectTypeRelationAddResponseError_READONLY_OBJECT_TYPE RpcObjectTypeRelationAddResponseErrorCode = 4 -) - -var RpcObjectTypeRelationAddResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", - 3: "UNKNOWN_OBJECT_TYPE_URL", - 4: "READONLY_OBJECT_TYPE", -} - -var RpcObjectTypeRelationAddResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, - "UNKNOWN_OBJECT_TYPE_URL": 3, - "READONLY_OBJECT_TYPE": 4, -} - -func (x RpcObjectTypeRelationAddResponseErrorCode) String() string { - return proto.EnumName(RpcObjectTypeRelationAddResponseErrorCode_name, int32(x)) -} - -func (RpcObjectTypeRelationAddResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 23, 2, 0, 1, 0, 0} -} - -type RpcObjectTypeRelationRemoveResponseErrorCode int32 - -const ( - RpcObjectTypeRelationRemoveResponseError_NULL RpcObjectTypeRelationRemoveResponseErrorCode = 0 - RpcObjectTypeRelationRemoveResponseError_UNKNOWN_ERROR RpcObjectTypeRelationRemoveResponseErrorCode = 1 - RpcObjectTypeRelationRemoveResponseError_BAD_INPUT RpcObjectTypeRelationRemoveResponseErrorCode = 2 - RpcObjectTypeRelationRemoveResponseError_UNKNOWN_OBJECT_TYPE_URL RpcObjectTypeRelationRemoveResponseErrorCode = 3 - RpcObjectTypeRelationRemoveResponseError_READONLY_OBJECT_TYPE RpcObjectTypeRelationRemoveResponseErrorCode = 4 -) - -var RpcObjectTypeRelationRemoveResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", - 3: "UNKNOWN_OBJECT_TYPE_URL", - 4: "READONLY_OBJECT_TYPE", -} - -var RpcObjectTypeRelationRemoveResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, - "UNKNOWN_OBJECT_TYPE_URL": 3, - "READONLY_OBJECT_TYPE": 4, -} - -func (x RpcObjectTypeRelationRemoveResponseErrorCode) String() string { - return proto.EnumName(RpcObjectTypeRelationRemoveResponseErrorCode_name, int32(x)) -} - -func (RpcObjectTypeRelationRemoveResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 23, 2, 1, 1, 0, 0} -} - -type RpcObjectTypeRelationUpdateResponseErrorCode int32 - -const ( - RpcObjectTypeRelationUpdateResponseError_NULL RpcObjectTypeRelationUpdateResponseErrorCode = 0 - RpcObjectTypeRelationUpdateResponseError_UNKNOWN_ERROR RpcObjectTypeRelationUpdateResponseErrorCode = 1 - RpcObjectTypeRelationUpdateResponseError_BAD_INPUT RpcObjectTypeRelationUpdateResponseErrorCode = 2 - RpcObjectTypeRelationUpdateResponseError_UNKNOWN_OBJECT_TYPE_URL RpcObjectTypeRelationUpdateResponseErrorCode = 3 - RpcObjectTypeRelationUpdateResponseError_READONLY_OBJECT_TYPE RpcObjectTypeRelationUpdateResponseErrorCode = 4 -) - -var RpcObjectTypeRelationUpdateResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", - 3: "UNKNOWN_OBJECT_TYPE_URL", - 4: "READONLY_OBJECT_TYPE", -} - -var RpcObjectTypeRelationUpdateResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, - "UNKNOWN_OBJECT_TYPE_URL": 3, - "READONLY_OBJECT_TYPE": 4, -} - -func (x RpcObjectTypeRelationUpdateResponseErrorCode) String() string { - return proto.EnumName(RpcObjectTypeRelationUpdateResponseErrorCode_name, int32(x)) -} - -func (RpcObjectTypeRelationUpdateResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 23, 2, 2, 1, 0, 0} -} - -type RpcObjectTypeRelationListResponseErrorCode int32 - -const ( - RpcObjectTypeRelationListResponseError_NULL RpcObjectTypeRelationListResponseErrorCode = 0 - RpcObjectTypeRelationListResponseError_UNKNOWN_ERROR RpcObjectTypeRelationListResponseErrorCode = 1 - RpcObjectTypeRelationListResponseError_BAD_INPUT RpcObjectTypeRelationListResponseErrorCode = 2 - RpcObjectTypeRelationListResponseError_UNKNOWN_OBJECT_TYPE_URL RpcObjectTypeRelationListResponseErrorCode = 3 -) - -var RpcObjectTypeRelationListResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", - 3: "UNKNOWN_OBJECT_TYPE_URL", -} - -var RpcObjectTypeRelationListResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, - "UNKNOWN_OBJECT_TYPE_URL": 3, -} - -func (x RpcObjectTypeRelationListResponseErrorCode) String() string { - return proto.EnumName(RpcObjectTypeRelationListResponseErrorCode_name, int32(x)) -} - -func (RpcObjectTypeRelationListResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 23, 2, 3, 1, 0, 0} -} - -type RpcObjectShareByLinkResponseErrorCode int32 - -const ( - RpcObjectShareByLinkResponseError_NULL RpcObjectShareByLinkResponseErrorCode = 0 - RpcObjectShareByLinkResponseError_UNKNOWN_ERROR RpcObjectShareByLinkResponseErrorCode = 1 - RpcObjectShareByLinkResponseError_BAD_INPUT RpcObjectShareByLinkResponseErrorCode = 2 -) - -var RpcObjectShareByLinkResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcObjectShareByLinkResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcObjectShareByLinkResponseErrorCode) String() string { - return proto.EnumName(RpcObjectShareByLinkResponseErrorCode_name, int32(x)) -} - -func (RpcObjectShareByLinkResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 0, 1, 0, 0} -} - -type RpcObjectAddWithObjectIdResponseErrorCode int32 - -const ( - RpcObjectAddWithObjectIdResponseError_NULL RpcObjectAddWithObjectIdResponseErrorCode = 0 - RpcObjectAddWithObjectIdResponseError_UNKNOWN_ERROR RpcObjectAddWithObjectIdResponseErrorCode = 1 - RpcObjectAddWithObjectIdResponseError_BAD_INPUT RpcObjectAddWithObjectIdResponseErrorCode = 2 -) - -var RpcObjectAddWithObjectIdResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcObjectAddWithObjectIdResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcObjectAddWithObjectIdResponseErrorCode) String() string { - return proto.EnumName(RpcObjectAddWithObjectIdResponseErrorCode_name, int32(x)) -} - -func (RpcObjectAddWithObjectIdResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 1, 1, 0, 0} -} - -type RpcObjectRelationAddResponseErrorCode int32 - -const ( - RpcObjectRelationAddResponseError_NULL RpcObjectRelationAddResponseErrorCode = 0 - RpcObjectRelationAddResponseError_UNKNOWN_ERROR RpcObjectRelationAddResponseErrorCode = 1 - RpcObjectRelationAddResponseError_BAD_INPUT RpcObjectRelationAddResponseErrorCode = 2 - RpcObjectRelationAddResponseError_ALREADY_EXISTS RpcObjectRelationAddResponseErrorCode = 10 -) - -var RpcObjectRelationAddResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", - 10: "ALREADY_EXISTS", -} - -var RpcObjectRelationAddResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, - "ALREADY_EXISTS": 10, -} - -func (x RpcObjectRelationAddResponseErrorCode) String() string { - return proto.EnumName(RpcObjectRelationAddResponseErrorCode_name, int32(x)) -} - -func (RpcObjectRelationAddResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 2, 1, 0, 0} -} - -type RpcObjectRelationUpdateResponseErrorCode int32 - -const ( - RpcObjectRelationUpdateResponseError_NULL RpcObjectRelationUpdateResponseErrorCode = 0 - RpcObjectRelationUpdateResponseError_UNKNOWN_ERROR RpcObjectRelationUpdateResponseErrorCode = 1 - RpcObjectRelationUpdateResponseError_BAD_INPUT RpcObjectRelationUpdateResponseErrorCode = 2 -) - -var RpcObjectRelationUpdateResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcObjectRelationUpdateResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcObjectRelationUpdateResponseErrorCode) String() string { - return proto.EnumName(RpcObjectRelationUpdateResponseErrorCode_name, int32(x)) -} - -func (RpcObjectRelationUpdateResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 3, 1, 0, 0} -} - -type RpcObjectRelationDeleteResponseErrorCode int32 - -const ( - RpcObjectRelationDeleteResponseError_NULL RpcObjectRelationDeleteResponseErrorCode = 0 - RpcObjectRelationDeleteResponseError_UNKNOWN_ERROR RpcObjectRelationDeleteResponseErrorCode = 1 - RpcObjectRelationDeleteResponseError_BAD_INPUT RpcObjectRelationDeleteResponseErrorCode = 2 -) - -var RpcObjectRelationDeleteResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcObjectRelationDeleteResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcObjectRelationDeleteResponseErrorCode) String() string { - return proto.EnumName(RpcObjectRelationDeleteResponseErrorCode_name, int32(x)) -} - -func (RpcObjectRelationDeleteResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 4, 1, 0, 0} -} - -type RpcObjectRelationOptionAddResponseErrorCode int32 - -const ( - RpcObjectRelationOptionAddResponseError_NULL RpcObjectRelationOptionAddResponseErrorCode = 0 - RpcObjectRelationOptionAddResponseError_UNKNOWN_ERROR RpcObjectRelationOptionAddResponseErrorCode = 1 - RpcObjectRelationOptionAddResponseError_BAD_INPUT RpcObjectRelationOptionAddResponseErrorCode = 2 -) - -var RpcObjectRelationOptionAddResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcObjectRelationOptionAddResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcObjectRelationOptionAddResponseErrorCode) String() string { - return proto.EnumName(RpcObjectRelationOptionAddResponseErrorCode_name, int32(x)) -} - -func (RpcObjectRelationOptionAddResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 5, 1, 0, 0} -} - -type RpcObjectRelationOptionUpdateResponseErrorCode int32 - -const ( - RpcObjectRelationOptionUpdateResponseError_NULL RpcObjectRelationOptionUpdateResponseErrorCode = 0 - RpcObjectRelationOptionUpdateResponseError_UNKNOWN_ERROR RpcObjectRelationOptionUpdateResponseErrorCode = 1 - RpcObjectRelationOptionUpdateResponseError_BAD_INPUT RpcObjectRelationOptionUpdateResponseErrorCode = 2 -) - -var RpcObjectRelationOptionUpdateResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcObjectRelationOptionUpdateResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcObjectRelationOptionUpdateResponseErrorCode) String() string { - return proto.EnumName(RpcObjectRelationOptionUpdateResponseErrorCode_name, int32(x)) -} - -func (RpcObjectRelationOptionUpdateResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 6, 1, 0, 0} -} - -type RpcObjectRelationOptionDeleteResponseErrorCode int32 - -const ( - RpcObjectRelationOptionDeleteResponseError_NULL RpcObjectRelationOptionDeleteResponseErrorCode = 0 - RpcObjectRelationOptionDeleteResponseError_UNKNOWN_ERROR RpcObjectRelationOptionDeleteResponseErrorCode = 1 - RpcObjectRelationOptionDeleteResponseError_BAD_INPUT RpcObjectRelationOptionDeleteResponseErrorCode = 2 - RpcObjectRelationOptionDeleteResponseError_SOME_RECORDS_HAS_RELATION_VALUE_WITH_THIS_OPTION RpcObjectRelationOptionDeleteResponseErrorCode = 3 -) - -var RpcObjectRelationOptionDeleteResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", - 3: "SOME_RECORDS_HAS_RELATION_VALUE_WITH_THIS_OPTION", -} - -var RpcObjectRelationOptionDeleteResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, - "SOME_RECORDS_HAS_RELATION_VALUE_WITH_THIS_OPTION": 3, -} - -func (x RpcObjectRelationOptionDeleteResponseErrorCode) String() string { - return proto.EnumName(RpcObjectRelationOptionDeleteResponseErrorCode_name, int32(x)) -} - -func (RpcObjectRelationOptionDeleteResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 7, 1, 0, 0} -} - -type RpcObjectRelationListAvailableResponseErrorCode int32 - -const ( - RpcObjectRelationListAvailableResponseError_NULL RpcObjectRelationListAvailableResponseErrorCode = 0 - RpcObjectRelationListAvailableResponseError_UNKNOWN_ERROR RpcObjectRelationListAvailableResponseErrorCode = 1 - RpcObjectRelationListAvailableResponseError_BAD_INPUT RpcObjectRelationListAvailableResponseErrorCode = 2 -) - -var RpcObjectRelationListAvailableResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcObjectRelationListAvailableResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcObjectRelationListAvailableResponseErrorCode) String() string { - return proto.EnumName(RpcObjectRelationListAvailableResponseErrorCode_name, int32(x)) -} - -func (RpcObjectRelationListAvailableResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 8, 1, 0, 0} -} - -type RpcObjectSearchResponseErrorCode int32 - -const ( - RpcObjectSearchResponseError_NULL RpcObjectSearchResponseErrorCode = 0 - RpcObjectSearchResponseError_UNKNOWN_ERROR RpcObjectSearchResponseErrorCode = 1 - RpcObjectSearchResponseError_BAD_INPUT RpcObjectSearchResponseErrorCode = 2 -) - -var RpcObjectSearchResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcObjectSearchResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcObjectSearchResponseErrorCode) String() string { - return proto.EnumName(RpcObjectSearchResponseErrorCode_name, int32(x)) -} - -func (RpcObjectSearchResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 9, 1, 0, 0} -} - -type RpcObjectGraphEdgeType int32 - -const ( - RpcObjectGraphEdge_Link RpcObjectGraphEdgeType = 0 - RpcObjectGraphEdge_Relation RpcObjectGraphEdgeType = 1 -) - -var RpcObjectGraphEdgeType_name = map[int32]string{ - 0: "Link", - 1: "Relation", -} - -var RpcObjectGraphEdgeType_value = map[string]int32{ - "Link": 0, - "Relation": 1, -} - -func (x RpcObjectGraphEdgeType) String() string { - return proto.EnumName(RpcObjectGraphEdgeType_name, int32(x)) -} - -func (RpcObjectGraphEdgeType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 10, 1, 0} -} - -type RpcObjectGraphResponseErrorCode int32 - -const ( - RpcObjectGraphResponseError_NULL RpcObjectGraphResponseErrorCode = 0 - RpcObjectGraphResponseError_UNKNOWN_ERROR RpcObjectGraphResponseErrorCode = 1 - RpcObjectGraphResponseError_BAD_INPUT RpcObjectGraphResponseErrorCode = 2 -) - -var RpcObjectGraphResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcObjectGraphResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcObjectGraphResponseErrorCode) String() string { - return proto.EnumName(RpcObjectGraphResponseErrorCode_name, int32(x)) -} - -func (RpcObjectGraphResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 10, 2, 0, 0} -} - -type RpcObjectSearchSubscribeResponseErrorCode int32 - -const ( - RpcObjectSearchSubscribeResponseError_NULL RpcObjectSearchSubscribeResponseErrorCode = 0 - RpcObjectSearchSubscribeResponseError_UNKNOWN_ERROR RpcObjectSearchSubscribeResponseErrorCode = 1 - RpcObjectSearchSubscribeResponseError_BAD_INPUT RpcObjectSearchSubscribeResponseErrorCode = 2 -) - -var RpcObjectSearchSubscribeResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcObjectSearchSubscribeResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcObjectSearchSubscribeResponseErrorCode) String() string { - return proto.EnumName(RpcObjectSearchSubscribeResponseErrorCode_name, int32(x)) -} - -func (RpcObjectSearchSubscribeResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 11, 1, 0, 0} -} - -type RpcObjectIdsSubscribeResponseErrorCode int32 - -const ( - RpcObjectIdsSubscribeResponseError_NULL RpcObjectIdsSubscribeResponseErrorCode = 0 - RpcObjectIdsSubscribeResponseError_UNKNOWN_ERROR RpcObjectIdsSubscribeResponseErrorCode = 1 - RpcObjectIdsSubscribeResponseError_BAD_INPUT RpcObjectIdsSubscribeResponseErrorCode = 2 -) - -var RpcObjectIdsSubscribeResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcObjectIdsSubscribeResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcObjectIdsSubscribeResponseErrorCode) String() string { - return proto.EnumName(RpcObjectIdsSubscribeResponseErrorCode_name, int32(x)) -} - -func (RpcObjectIdsSubscribeResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 12, 1, 0, 0} -} - -type RpcObjectSearchUnsubscribeResponseErrorCode int32 - -const ( - RpcObjectSearchUnsubscribeResponseError_NULL RpcObjectSearchUnsubscribeResponseErrorCode = 0 - RpcObjectSearchUnsubscribeResponseError_UNKNOWN_ERROR RpcObjectSearchUnsubscribeResponseErrorCode = 1 - RpcObjectSearchUnsubscribeResponseError_BAD_INPUT RpcObjectSearchUnsubscribeResponseErrorCode = 2 -) - -var RpcObjectSearchUnsubscribeResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcObjectSearchUnsubscribeResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcObjectSearchUnsubscribeResponseErrorCode) String() string { - return proto.EnumName(RpcObjectSearchUnsubscribeResponseErrorCode_name, int32(x)) -} - -func (RpcObjectSearchUnsubscribeResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 13, 1, 0, 0} -} - -type RpcObjectSetLayoutResponseErrorCode int32 - -const ( - RpcObjectSetLayoutResponseError_NULL RpcObjectSetLayoutResponseErrorCode = 0 - RpcObjectSetLayoutResponseError_UNKNOWN_ERROR RpcObjectSetLayoutResponseErrorCode = 1 - RpcObjectSetLayoutResponseError_BAD_INPUT RpcObjectSetLayoutResponseErrorCode = 2 -) - -var RpcObjectSetLayoutResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcObjectSetLayoutResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcObjectSetLayoutResponseErrorCode) String() string { - return proto.EnumName(RpcObjectSetLayoutResponseErrorCode_name, int32(x)) -} - -func (RpcObjectSetLayoutResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 14, 1, 0, 0} -} - -type RpcObjectSetIsFavoriteResponseErrorCode int32 - -const ( - RpcObjectSetIsFavoriteResponseError_NULL RpcObjectSetIsFavoriteResponseErrorCode = 0 - RpcObjectSetIsFavoriteResponseError_UNKNOWN_ERROR RpcObjectSetIsFavoriteResponseErrorCode = 1 - RpcObjectSetIsFavoriteResponseError_BAD_INPUT RpcObjectSetIsFavoriteResponseErrorCode = 2 -) - -var RpcObjectSetIsFavoriteResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcObjectSetIsFavoriteResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcObjectSetIsFavoriteResponseErrorCode) String() string { - return proto.EnumName(RpcObjectSetIsFavoriteResponseErrorCode_name, int32(x)) -} - -func (RpcObjectSetIsFavoriteResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 15, 1, 0, 0} -} - -type RpcObjectSetIsArchivedResponseErrorCode int32 - -const ( - RpcObjectSetIsArchivedResponseError_NULL RpcObjectSetIsArchivedResponseErrorCode = 0 - RpcObjectSetIsArchivedResponseError_UNKNOWN_ERROR RpcObjectSetIsArchivedResponseErrorCode = 1 - RpcObjectSetIsArchivedResponseError_BAD_INPUT RpcObjectSetIsArchivedResponseErrorCode = 2 -) - -var RpcObjectSetIsArchivedResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcObjectSetIsArchivedResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcObjectSetIsArchivedResponseErrorCode) String() string { - return proto.EnumName(RpcObjectSetIsArchivedResponseErrorCode_name, int32(x)) -} - -func (RpcObjectSetIsArchivedResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 16, 1, 0, 0} -} - -type RpcObjectFeaturedRelationAddResponseErrorCode int32 - -const ( - RpcObjectFeaturedRelationAddResponseError_NULL RpcObjectFeaturedRelationAddResponseErrorCode = 0 - RpcObjectFeaturedRelationAddResponseError_UNKNOWN_ERROR RpcObjectFeaturedRelationAddResponseErrorCode = 1 - RpcObjectFeaturedRelationAddResponseError_BAD_INPUT RpcObjectFeaturedRelationAddResponseErrorCode = 2 -) - -var RpcObjectFeaturedRelationAddResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcObjectFeaturedRelationAddResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcObjectFeaturedRelationAddResponseErrorCode) String() string { - return proto.EnumName(RpcObjectFeaturedRelationAddResponseErrorCode_name, int32(x)) -} - -func (RpcObjectFeaturedRelationAddResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 17, 0, 1, 0, 0} -} - -type RpcObjectFeaturedRelationRemoveResponseErrorCode int32 - -const ( - RpcObjectFeaturedRelationRemoveResponseError_NULL RpcObjectFeaturedRelationRemoveResponseErrorCode = 0 - RpcObjectFeaturedRelationRemoveResponseError_UNKNOWN_ERROR RpcObjectFeaturedRelationRemoveResponseErrorCode = 1 - RpcObjectFeaturedRelationRemoveResponseError_BAD_INPUT RpcObjectFeaturedRelationRemoveResponseErrorCode = 2 -) - -var RpcObjectFeaturedRelationRemoveResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcObjectFeaturedRelationRemoveResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcObjectFeaturedRelationRemoveResponseErrorCode) String() string { - return proto.EnumName(RpcObjectFeaturedRelationRemoveResponseErrorCode_name, int32(x)) -} - -func (RpcObjectFeaturedRelationRemoveResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 17, 1, 1, 0, 0} -} - -type RpcObjectToSetResponseErrorCode int32 - -const ( - RpcObjectToSetResponseError_NULL RpcObjectToSetResponseErrorCode = 0 - RpcObjectToSetResponseError_UNKNOWN_ERROR RpcObjectToSetResponseErrorCode = 1 - RpcObjectToSetResponseError_BAD_INPUT RpcObjectToSetResponseErrorCode = 2 -) - -var RpcObjectToSetResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcObjectToSetResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcObjectToSetResponseErrorCode) String() string { - return proto.EnumName(RpcObjectToSetResponseErrorCode_name, int32(x)) -} - -func (RpcObjectToSetResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 18, 1, 0, 0} -} - -type RpcObjectListDuplicateResponseErrorCode int32 - -const ( - RpcObjectListDuplicateResponseError_NULL RpcObjectListDuplicateResponseErrorCode = 0 - RpcObjectListDuplicateResponseError_UNKNOWN_ERROR RpcObjectListDuplicateResponseErrorCode = 1 - RpcObjectListDuplicateResponseError_BAD_INPUT RpcObjectListDuplicateResponseErrorCode = 2 -) - -var RpcObjectListDuplicateResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcObjectListDuplicateResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcObjectListDuplicateResponseErrorCode) String() string { - return proto.EnumName(RpcObjectListDuplicateResponseErrorCode_name, int32(x)) -} - -func (RpcObjectListDuplicateResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 0, 1, 0, 0} -} - -type RpcObjectListDeleteResponseErrorCode int32 - -const ( - RpcObjectListDeleteResponseError_NULL RpcObjectListDeleteResponseErrorCode = 0 - RpcObjectListDeleteResponseError_UNKNOWN_ERROR RpcObjectListDeleteResponseErrorCode = 1 - RpcObjectListDeleteResponseError_BAD_INPUT RpcObjectListDeleteResponseErrorCode = 2 -) - -var RpcObjectListDeleteResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcObjectListDeleteResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcObjectListDeleteResponseErrorCode) String() string { - return proto.EnumName(RpcObjectListDeleteResponseErrorCode_name, int32(x)) -} - -func (RpcObjectListDeleteResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 1, 1, 0, 0} -} - -type RpcObjectListSetIsArchivedResponseErrorCode int32 - -const ( - RpcObjectListSetIsArchivedResponseError_NULL RpcObjectListSetIsArchivedResponseErrorCode = 0 - RpcObjectListSetIsArchivedResponseError_UNKNOWN_ERROR RpcObjectListSetIsArchivedResponseErrorCode = 1 - RpcObjectListSetIsArchivedResponseError_BAD_INPUT RpcObjectListSetIsArchivedResponseErrorCode = 2 -) - -var RpcObjectListSetIsArchivedResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcObjectListSetIsArchivedResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcObjectListSetIsArchivedResponseErrorCode) String() string { - return proto.EnumName(RpcObjectListSetIsArchivedResponseErrorCode_name, int32(x)) -} - -func (RpcObjectListSetIsArchivedResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 2, 0, 1, 0, 0} -} - -type RpcObjectListSetIsFavoriteResponseErrorCode int32 - -const ( - RpcObjectListSetIsFavoriteResponseError_NULL RpcObjectListSetIsFavoriteResponseErrorCode = 0 - RpcObjectListSetIsFavoriteResponseError_UNKNOWN_ERROR RpcObjectListSetIsFavoriteResponseErrorCode = 1 - RpcObjectListSetIsFavoriteResponseError_BAD_INPUT RpcObjectListSetIsFavoriteResponseErrorCode = 2 -) - -var RpcObjectListSetIsFavoriteResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcObjectListSetIsFavoriteResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcObjectListSetIsFavoriteResponseErrorCode) String() string { - return proto.EnumName(RpcObjectListSetIsFavoriteResponseErrorCode_name, int32(x)) -} - -func (RpcObjectListSetIsFavoriteResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 2, 1, 1, 0, 0} -} - -type RpcExportFormat int32 - -const ( - RpcExport_Markdown RpcExportFormat = 0 - RpcExport_Protobuf RpcExportFormat = 1 - RpcExport_JSON RpcExportFormat = 2 - RpcExport_DOT RpcExportFormat = 3 - RpcExport_SVG RpcExportFormat = 4 - RpcExport_GRAPH_JSON RpcExportFormat = 5 -) - -var RpcExportFormat_name = map[int32]string{ - 0: "Markdown", - 1: "Protobuf", - 2: "JSON", - 3: "DOT", - 4: "SVG", - 5: "GRAPH_JSON", -} - -var RpcExportFormat_value = map[string]int32{ - "Markdown": 0, - "Protobuf": 1, - "JSON": 2, - "DOT": 3, - "SVG": 4, - "GRAPH_JSON": 5, -} - -func (x RpcExportFormat) String() string { - return proto.EnumName(RpcExportFormat_name, int32(x)) -} - -func (RpcExportFormat) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 26, 0} -} - -type RpcExportResponseErrorCode int32 - -const ( - RpcExportResponseError_NULL RpcExportResponseErrorCode = 0 - RpcExportResponseError_UNKNOWN_ERROR RpcExportResponseErrorCode = 1 - RpcExportResponseError_BAD_INPUT RpcExportResponseErrorCode = 2 -) - -var RpcExportResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcExportResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcExportResponseErrorCode) String() string { - return proto.EnumName(RpcExportResponseErrorCode_name, int32(x)) -} - -func (RpcExportResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 26, 1, 0, 0} -} - -type RpcExportWorkspaceResponseErrorCode int32 - -const ( - RpcExportWorkspaceResponseError_NULL RpcExportWorkspaceResponseErrorCode = 0 - RpcExportWorkspaceResponseError_UNKNOWN_ERROR RpcExportWorkspaceResponseErrorCode = 1 - RpcExportWorkspaceResponseError_BAD_INPUT RpcExportWorkspaceResponseErrorCode = 2 -) - -var RpcExportWorkspaceResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcExportWorkspaceResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcExportWorkspaceResponseErrorCode) String() string { - return proto.EnumName(RpcExportWorkspaceResponseErrorCode_name, int32(x)) -} - -func (RpcExportWorkspaceResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 27, 1, 0, 0} -} - -type RpcExportTemplatesResponseErrorCode int32 - -const ( - RpcExportTemplatesResponseError_NULL RpcExportTemplatesResponseErrorCode = 0 - RpcExportTemplatesResponseError_UNKNOWN_ERROR RpcExportTemplatesResponseErrorCode = 1 - RpcExportTemplatesResponseError_BAD_INPUT RpcExportTemplatesResponseErrorCode = 2 -) - -var RpcExportTemplatesResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcExportTemplatesResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcExportTemplatesResponseErrorCode) String() string { - return proto.EnumName(RpcExportTemplatesResponseErrorCode_name, int32(x)) -} - -func (RpcExportTemplatesResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 28, 1, 0, 0} -} - -type RpcExportLocalstoreResponseErrorCode int32 - -const ( - RpcExportLocalstoreResponseError_NULL RpcExportLocalstoreResponseErrorCode = 0 - RpcExportLocalstoreResponseError_UNKNOWN_ERROR RpcExportLocalstoreResponseErrorCode = 1 - RpcExportLocalstoreResponseError_BAD_INPUT RpcExportLocalstoreResponseErrorCode = 2 -) - -var RpcExportLocalstoreResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcExportLocalstoreResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcExportLocalstoreResponseErrorCode) String() string { - return proto.EnumName(RpcExportLocalstoreResponseErrorCode_name, int32(x)) -} - -func (RpcExportLocalstoreResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 29, 1, 0, 0} -} - -type RpcMakeTemplateResponseErrorCode int32 - -const ( - RpcMakeTemplateResponseError_NULL RpcMakeTemplateResponseErrorCode = 0 - RpcMakeTemplateResponseError_UNKNOWN_ERROR RpcMakeTemplateResponseErrorCode = 1 - RpcMakeTemplateResponseError_BAD_INPUT RpcMakeTemplateResponseErrorCode = 2 -) - -var RpcMakeTemplateResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcMakeTemplateResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcMakeTemplateResponseErrorCode) String() string { - return proto.EnumName(RpcMakeTemplateResponseErrorCode_name, int32(x)) -} - -func (RpcMakeTemplateResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 30, 1, 0, 0} -} - -type RpcMakeTemplateByObjectTypeResponseErrorCode int32 - -const ( - RpcMakeTemplateByObjectTypeResponseError_NULL RpcMakeTemplateByObjectTypeResponseErrorCode = 0 - RpcMakeTemplateByObjectTypeResponseError_UNKNOWN_ERROR RpcMakeTemplateByObjectTypeResponseErrorCode = 1 - RpcMakeTemplateByObjectTypeResponseError_BAD_INPUT RpcMakeTemplateByObjectTypeResponseErrorCode = 2 -) - -var RpcMakeTemplateByObjectTypeResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcMakeTemplateByObjectTypeResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcMakeTemplateByObjectTypeResponseErrorCode) String() string { - return proto.EnumName(RpcMakeTemplateByObjectTypeResponseErrorCode_name, int32(x)) -} - -func (RpcMakeTemplateByObjectTypeResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 31, 1, 0, 0} -} - -type RpcCloneTemplateResponseErrorCode int32 - -const ( - RpcCloneTemplateResponseError_NULL RpcCloneTemplateResponseErrorCode = 0 - RpcCloneTemplateResponseError_UNKNOWN_ERROR RpcCloneTemplateResponseErrorCode = 1 - RpcCloneTemplateResponseError_BAD_INPUT RpcCloneTemplateResponseErrorCode = 2 -) - -var RpcCloneTemplateResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcCloneTemplateResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcCloneTemplateResponseErrorCode) String() string { - return proto.EnumName(RpcCloneTemplateResponseErrorCode_name, int32(x)) -} - -func (RpcCloneTemplateResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 32, 1, 0, 0} -} - -type RpcObjectDuplicateResponseErrorCode int32 - -const ( - RpcObjectDuplicateResponseError_NULL RpcObjectDuplicateResponseErrorCode = 0 - RpcObjectDuplicateResponseError_UNKNOWN_ERROR RpcObjectDuplicateResponseErrorCode = 1 - RpcObjectDuplicateResponseError_BAD_INPUT RpcObjectDuplicateResponseErrorCode = 2 -) - -var RpcObjectDuplicateResponseErrorCode_name = map[int32]string{ - 0: "NULL", - 1: "UNKNOWN_ERROR", - 2: "BAD_INPUT", -} - -var RpcObjectDuplicateResponseErrorCode_value = map[string]int32{ - "NULL": 0, - "UNKNOWN_ERROR": 1, - "BAD_INPUT": 2, -} - -func (x RpcObjectDuplicateResponseErrorCode) String() string { - return proto.EnumName(RpcObjectDuplicateResponseErrorCode_name, int32(x)) -} - -func (RpcObjectDuplicateResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 33, 1, 0, 0} +func (RpcLinkPreviewResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 12, 1, 0, 0} } type RpcUnsplashSearchResponseErrorCode int32 @@ -4577,7 +2499,7 @@ func (x RpcUnsplashSearchResponseErrorCode) String() string { } func (RpcUnsplashSearchResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 34, 1, 1, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 13, 0, 1, 1, 0} } type RpcUnsplashDownloadResponseErrorCode int32 @@ -4608,35 +2530,1725 @@ func (x RpcUnsplashDownloadResponseErrorCode) String() string { } func (RpcUnsplashDownloadResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 35, 1, 0, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 13, 1, 1, 0, 0} } -type RpcApplyTemplateResponseErrorCode int32 +type RpcBlockReplaceResponseErrorCode int32 const ( - RpcApplyTemplateResponseError_NULL RpcApplyTemplateResponseErrorCode = 0 - RpcApplyTemplateResponseError_UNKNOWN_ERROR RpcApplyTemplateResponseErrorCode = 1 - RpcApplyTemplateResponseError_BAD_INPUT RpcApplyTemplateResponseErrorCode = 2 + RpcBlockReplaceResponseError_NULL RpcBlockReplaceResponseErrorCode = 0 + RpcBlockReplaceResponseError_UNKNOWN_ERROR RpcBlockReplaceResponseErrorCode = 1 + RpcBlockReplaceResponseError_BAD_INPUT RpcBlockReplaceResponseErrorCode = 2 ) -var RpcApplyTemplateResponseErrorCode_name = map[int32]string{ +var RpcBlockReplaceResponseErrorCode_name = map[int32]string{ 0: "NULL", 1: "UNKNOWN_ERROR", 2: "BAD_INPUT", } -var RpcApplyTemplateResponseErrorCode_value = map[string]int32{ +var RpcBlockReplaceResponseErrorCode_value = map[string]int32{ "NULL": 0, "UNKNOWN_ERROR": 1, "BAD_INPUT": 2, } -func (x RpcApplyTemplateResponseErrorCode) String() string { - return proto.EnumName(RpcApplyTemplateResponseErrorCode_name, int32(x)) +func (x RpcBlockReplaceResponseErrorCode) String() string { + return proto.EnumName(RpcBlockReplaceResponseErrorCode_name, int32(x)) } -func (RpcApplyTemplateResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 36, 1, 0, 0} +func (RpcBlockReplaceResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 0, 1, 0, 0} +} + +type RpcBlockSplitRequestMode int32 + +const ( + // new block will be created under existing + RpcBlockSplitRequest_BOTTOM RpcBlockSplitRequestMode = 0 + // new block will be created above existing + RpcBlockSplitRequest_TOP RpcBlockSplitRequestMode = 1 + // new block will be created as the first children of existing + RpcBlockSplitRequest_INNER RpcBlockSplitRequestMode = 2 + // new block will be created after header (not required for set at client side, will auto set for title block) + RpcBlockSplitRequest_TITLE RpcBlockSplitRequestMode = 3 +) + +var RpcBlockSplitRequestMode_name = map[int32]string{ + 0: "BOTTOM", + 1: "TOP", + 2: "INNER", + 3: "TITLE", +} + +var RpcBlockSplitRequestMode_value = map[string]int32{ + "BOTTOM": 0, + "TOP": 1, + "INNER": 2, + "TITLE": 3, +} + +func (x RpcBlockSplitRequestMode) String() string { + return proto.EnumName(RpcBlockSplitRequestMode_name, int32(x)) +} + +func (RpcBlockSplitRequestMode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 1, 0, 0} +} + +type RpcBlockSplitResponseErrorCode int32 + +const ( + RpcBlockSplitResponseError_NULL RpcBlockSplitResponseErrorCode = 0 + RpcBlockSplitResponseError_UNKNOWN_ERROR RpcBlockSplitResponseErrorCode = 1 + RpcBlockSplitResponseError_BAD_INPUT RpcBlockSplitResponseErrorCode = 2 +) + +var RpcBlockSplitResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockSplitResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockSplitResponseErrorCode) String() string { + return proto.EnumName(RpcBlockSplitResponseErrorCode_name, int32(x)) +} + +func (RpcBlockSplitResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 1, 1, 0, 0} +} + +type RpcBlockMergeResponseErrorCode int32 + +const ( + RpcBlockMergeResponseError_NULL RpcBlockMergeResponseErrorCode = 0 + RpcBlockMergeResponseError_UNKNOWN_ERROR RpcBlockMergeResponseErrorCode = 1 + RpcBlockMergeResponseError_BAD_INPUT RpcBlockMergeResponseErrorCode = 2 +) + +var RpcBlockMergeResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockMergeResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockMergeResponseErrorCode) String() string { + return proto.EnumName(RpcBlockMergeResponseErrorCode_name, int32(x)) +} + +func (RpcBlockMergeResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 2, 1, 0, 0} +} + +type RpcBlockCopyResponseErrorCode int32 + +const ( + RpcBlockCopyResponseError_NULL RpcBlockCopyResponseErrorCode = 0 + RpcBlockCopyResponseError_UNKNOWN_ERROR RpcBlockCopyResponseErrorCode = 1 + RpcBlockCopyResponseError_BAD_INPUT RpcBlockCopyResponseErrorCode = 2 +) + +var RpcBlockCopyResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockCopyResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockCopyResponseErrorCode) String() string { + return proto.EnumName(RpcBlockCopyResponseErrorCode_name, int32(x)) +} + +func (RpcBlockCopyResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 3, 1, 0, 0} +} + +type RpcBlockPasteResponseErrorCode int32 + +const ( + RpcBlockPasteResponseError_NULL RpcBlockPasteResponseErrorCode = 0 + RpcBlockPasteResponseError_UNKNOWN_ERROR RpcBlockPasteResponseErrorCode = 1 + RpcBlockPasteResponseError_BAD_INPUT RpcBlockPasteResponseErrorCode = 2 +) + +var RpcBlockPasteResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockPasteResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockPasteResponseErrorCode) String() string { + return proto.EnumName(RpcBlockPasteResponseErrorCode_name, int32(x)) +} + +func (RpcBlockPasteResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 4, 1, 0, 0} +} + +type RpcBlockCutResponseErrorCode int32 + +const ( + RpcBlockCutResponseError_NULL RpcBlockCutResponseErrorCode = 0 + RpcBlockCutResponseError_UNKNOWN_ERROR RpcBlockCutResponseErrorCode = 1 + RpcBlockCutResponseError_BAD_INPUT RpcBlockCutResponseErrorCode = 2 +) + +var RpcBlockCutResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockCutResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockCutResponseErrorCode) String() string { + return proto.EnumName(RpcBlockCutResponseErrorCode_name, int32(x)) +} + +func (RpcBlockCutResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 5, 1, 0, 0} +} + +type RpcBlockUploadResponseErrorCode int32 + +const ( + RpcBlockUploadResponseError_NULL RpcBlockUploadResponseErrorCode = 0 + RpcBlockUploadResponseError_UNKNOWN_ERROR RpcBlockUploadResponseErrorCode = 1 + RpcBlockUploadResponseError_BAD_INPUT RpcBlockUploadResponseErrorCode = 2 +) + +var RpcBlockUploadResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockUploadResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockUploadResponseErrorCode) String() string { + return proto.EnumName(RpcBlockUploadResponseErrorCode_name, int32(x)) +} + +func (RpcBlockUploadResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 6, 1, 0, 0} +} + +type RpcBlockDownloadResponseErrorCode int32 + +const ( + RpcBlockDownloadResponseError_NULL RpcBlockDownloadResponseErrorCode = 0 + RpcBlockDownloadResponseError_UNKNOWN_ERROR RpcBlockDownloadResponseErrorCode = 1 + RpcBlockDownloadResponseError_BAD_INPUT RpcBlockDownloadResponseErrorCode = 2 +) + +var RpcBlockDownloadResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockDownloadResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockDownloadResponseErrorCode) String() string { + return proto.EnumName(RpcBlockDownloadResponseErrorCode_name, int32(x)) +} + +func (RpcBlockDownloadResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 7, 1, 0, 0} +} + +type RpcBlockCreateResponseErrorCode int32 + +const ( + RpcBlockCreateResponseError_NULL RpcBlockCreateResponseErrorCode = 0 + RpcBlockCreateResponseError_UNKNOWN_ERROR RpcBlockCreateResponseErrorCode = 1 + RpcBlockCreateResponseError_BAD_INPUT RpcBlockCreateResponseErrorCode = 2 +) + +var RpcBlockCreateResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockCreateResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockCreateResponseErrorCode) String() string { + return proto.EnumName(RpcBlockCreateResponseErrorCode_name, int32(x)) +} + +func (RpcBlockCreateResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 8, 1, 0, 0} +} + +type RpcBlockListDeleteResponseErrorCode int32 + +const ( + RpcBlockListDeleteResponseError_NULL RpcBlockListDeleteResponseErrorCode = 0 + RpcBlockListDeleteResponseError_UNKNOWN_ERROR RpcBlockListDeleteResponseErrorCode = 1 + RpcBlockListDeleteResponseError_BAD_INPUT RpcBlockListDeleteResponseErrorCode = 2 +) + +var RpcBlockListDeleteResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockListDeleteResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockListDeleteResponseErrorCode) String() string { + return proto.EnumName(RpcBlockListDeleteResponseErrorCode_name, int32(x)) +} + +func (RpcBlockListDeleteResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 9, 1, 0, 0} +} + +type RpcBlockSetFieldsResponseErrorCode int32 + +const ( + RpcBlockSetFieldsResponseError_NULL RpcBlockSetFieldsResponseErrorCode = 0 + RpcBlockSetFieldsResponseError_UNKNOWN_ERROR RpcBlockSetFieldsResponseErrorCode = 1 + RpcBlockSetFieldsResponseError_BAD_INPUT RpcBlockSetFieldsResponseErrorCode = 2 +) + +var RpcBlockSetFieldsResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockSetFieldsResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockSetFieldsResponseErrorCode) String() string { + return proto.EnumName(RpcBlockSetFieldsResponseErrorCode_name, int32(x)) +} + +func (RpcBlockSetFieldsResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 10, 1, 0, 0} +} + +type RpcBlockListSetAlignResponseErrorCode int32 + +const ( + RpcBlockListSetAlignResponseError_NULL RpcBlockListSetAlignResponseErrorCode = 0 + RpcBlockListSetAlignResponseError_UNKNOWN_ERROR RpcBlockListSetAlignResponseErrorCode = 1 + RpcBlockListSetAlignResponseError_BAD_INPUT RpcBlockListSetAlignResponseErrorCode = 2 +) + +var RpcBlockListSetAlignResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockListSetAlignResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockListSetAlignResponseErrorCode) String() string { + return proto.EnumName(RpcBlockListSetAlignResponseErrorCode_name, int32(x)) +} + +func (RpcBlockListSetAlignResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 11, 1, 0, 0} +} + +type RpcBlockListSetFieldsResponseErrorCode int32 + +const ( + RpcBlockListSetFieldsResponseError_NULL RpcBlockListSetFieldsResponseErrorCode = 0 + RpcBlockListSetFieldsResponseError_UNKNOWN_ERROR RpcBlockListSetFieldsResponseErrorCode = 1 + RpcBlockListSetFieldsResponseError_BAD_INPUT RpcBlockListSetFieldsResponseErrorCode = 2 +) + +var RpcBlockListSetFieldsResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockListSetFieldsResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockListSetFieldsResponseErrorCode) String() string { + return proto.EnumName(RpcBlockListSetFieldsResponseErrorCode_name, int32(x)) +} + +func (RpcBlockListSetFieldsResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 12, 1, 0, 0} +} + +type RpcBlockListDuplicateResponseErrorCode int32 + +const ( + RpcBlockListDuplicateResponseError_NULL RpcBlockListDuplicateResponseErrorCode = 0 + RpcBlockListDuplicateResponseError_UNKNOWN_ERROR RpcBlockListDuplicateResponseErrorCode = 1 + RpcBlockListDuplicateResponseError_BAD_INPUT RpcBlockListDuplicateResponseErrorCode = 2 +) + +var RpcBlockListDuplicateResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockListDuplicateResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockListDuplicateResponseErrorCode) String() string { + return proto.EnumName(RpcBlockListDuplicateResponseErrorCode_name, int32(x)) +} + +func (RpcBlockListDuplicateResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 13, 1, 0, 0} +} + +type RpcBlockListConvertToObjectsResponseErrorCode int32 + +const ( + RpcBlockListConvertToObjectsResponseError_NULL RpcBlockListConvertToObjectsResponseErrorCode = 0 + RpcBlockListConvertToObjectsResponseError_UNKNOWN_ERROR RpcBlockListConvertToObjectsResponseErrorCode = 1 + RpcBlockListConvertToObjectsResponseError_BAD_INPUT RpcBlockListConvertToObjectsResponseErrorCode = 2 +) + +var RpcBlockListConvertToObjectsResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockListConvertToObjectsResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockListConvertToObjectsResponseErrorCode) String() string { + return proto.EnumName(RpcBlockListConvertToObjectsResponseErrorCode_name, int32(x)) +} + +func (RpcBlockListConvertToObjectsResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 15, 1, 0, 0} +} + +type RpcBlockListMoveToExistingObjectResponseErrorCode int32 + +const ( + RpcBlockListMoveToExistingObjectResponseError_NULL RpcBlockListMoveToExistingObjectResponseErrorCode = 0 + RpcBlockListMoveToExistingObjectResponseError_UNKNOWN_ERROR RpcBlockListMoveToExistingObjectResponseErrorCode = 1 + RpcBlockListMoveToExistingObjectResponseError_BAD_INPUT RpcBlockListMoveToExistingObjectResponseErrorCode = 2 +) + +var RpcBlockListMoveToExistingObjectResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockListMoveToExistingObjectResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockListMoveToExistingObjectResponseErrorCode) String() string { + return proto.EnumName(RpcBlockListMoveToExistingObjectResponseErrorCode_name, int32(x)) +} + +func (RpcBlockListMoveToExistingObjectResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 16, 1, 0, 0} +} + +type RpcBlockListMoveToNewObjectResponseErrorCode int32 + +const ( + RpcBlockListMoveToNewObjectResponseError_NULL RpcBlockListMoveToNewObjectResponseErrorCode = 0 + RpcBlockListMoveToNewObjectResponseError_UNKNOWN_ERROR RpcBlockListMoveToNewObjectResponseErrorCode = 1 + RpcBlockListMoveToNewObjectResponseError_BAD_INPUT RpcBlockListMoveToNewObjectResponseErrorCode = 2 +) + +var RpcBlockListMoveToNewObjectResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockListMoveToNewObjectResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockListMoveToNewObjectResponseErrorCode) String() string { + return proto.EnumName(RpcBlockListMoveToNewObjectResponseErrorCode_name, int32(x)) +} + +func (RpcBlockListMoveToNewObjectResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 17, 1, 0, 0} +} + +type RpcBlockListTurnIntoResponseErrorCode int32 + +const ( + RpcBlockListTurnIntoResponseError_NULL RpcBlockListTurnIntoResponseErrorCode = 0 + RpcBlockListTurnIntoResponseError_UNKNOWN_ERROR RpcBlockListTurnIntoResponseErrorCode = 1 + RpcBlockListTurnIntoResponseError_BAD_INPUT RpcBlockListTurnIntoResponseErrorCode = 2 +) + +var RpcBlockListTurnIntoResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockListTurnIntoResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockListTurnIntoResponseErrorCode) String() string { + return proto.EnumName(RpcBlockListTurnIntoResponseErrorCode_name, int32(x)) +} + +func (RpcBlockListTurnIntoResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 18, 1, 0, 0} +} + +type RpcBlockListSetBackgroundColorResponseErrorCode int32 + +const ( + RpcBlockListSetBackgroundColorResponseError_NULL RpcBlockListSetBackgroundColorResponseErrorCode = 0 + RpcBlockListSetBackgroundColorResponseError_UNKNOWN_ERROR RpcBlockListSetBackgroundColorResponseErrorCode = 1 + RpcBlockListSetBackgroundColorResponseError_BAD_INPUT RpcBlockListSetBackgroundColorResponseErrorCode = 2 +) + +var RpcBlockListSetBackgroundColorResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockListSetBackgroundColorResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockListSetBackgroundColorResponseErrorCode) String() string { + return proto.EnumName(RpcBlockListSetBackgroundColorResponseErrorCode_name, int32(x)) +} + +func (RpcBlockListSetBackgroundColorResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 19, 1, 0, 0} +} + +type RpcBlockExportResponseErrorCode int32 + +const ( + RpcBlockExportResponseError_NULL RpcBlockExportResponseErrorCode = 0 + RpcBlockExportResponseError_UNKNOWN_ERROR RpcBlockExportResponseErrorCode = 1 + RpcBlockExportResponseError_BAD_INPUT RpcBlockExportResponseErrorCode = 2 +) + +var RpcBlockExportResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockExportResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockExportResponseErrorCode) String() string { + return proto.EnumName(RpcBlockExportResponseErrorCode_name, int32(x)) +} + +func (RpcBlockExportResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 20, 1, 0, 0} +} + +type RpcBlockLatexSetTextResponseErrorCode int32 + +const ( + RpcBlockLatexSetTextResponseError_NULL RpcBlockLatexSetTextResponseErrorCode = 0 + RpcBlockLatexSetTextResponseError_UNKNOWN_ERROR RpcBlockLatexSetTextResponseErrorCode = 1 + RpcBlockLatexSetTextResponseError_BAD_INPUT RpcBlockLatexSetTextResponseErrorCode = 2 +) + +var RpcBlockLatexSetTextResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockLatexSetTextResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockLatexSetTextResponseErrorCode) String() string { + return proto.EnumName(RpcBlockLatexSetTextResponseErrorCode_name, int32(x)) +} + +func (RpcBlockLatexSetTextResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 15, 0, 1, 0, 0} +} + +type RpcBlockTextSetTextResponseErrorCode int32 + +const ( + RpcBlockTextSetTextResponseError_NULL RpcBlockTextSetTextResponseErrorCode = 0 + RpcBlockTextSetTextResponseError_UNKNOWN_ERROR RpcBlockTextSetTextResponseErrorCode = 1 + RpcBlockTextSetTextResponseError_BAD_INPUT RpcBlockTextSetTextResponseErrorCode = 2 +) + +var RpcBlockTextSetTextResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockTextSetTextResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockTextSetTextResponseErrorCode) String() string { + return proto.EnumName(RpcBlockTextSetTextResponseErrorCode_name, int32(x)) +} + +func (RpcBlockTextSetTextResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 0, 1, 0, 0} +} + +type RpcBlockTextSetColorResponseErrorCode int32 + +const ( + RpcBlockTextSetColorResponseError_NULL RpcBlockTextSetColorResponseErrorCode = 0 + RpcBlockTextSetColorResponseError_UNKNOWN_ERROR RpcBlockTextSetColorResponseErrorCode = 1 + RpcBlockTextSetColorResponseError_BAD_INPUT RpcBlockTextSetColorResponseErrorCode = 2 +) + +var RpcBlockTextSetColorResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockTextSetColorResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockTextSetColorResponseErrorCode) String() string { + return proto.EnumName(RpcBlockTextSetColorResponseErrorCode_name, int32(x)) +} + +func (RpcBlockTextSetColorResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 1, 1, 0, 0} +} + +type RpcBlockTextSetMarksGetResponseErrorCode int32 + +const ( + RpcBlockTextSetMarksGetResponseError_NULL RpcBlockTextSetMarksGetResponseErrorCode = 0 + RpcBlockTextSetMarksGetResponseError_UNKNOWN_ERROR RpcBlockTextSetMarksGetResponseErrorCode = 1 + RpcBlockTextSetMarksGetResponseError_BAD_INPUT RpcBlockTextSetMarksGetResponseErrorCode = 2 +) + +var RpcBlockTextSetMarksGetResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockTextSetMarksGetResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockTextSetMarksGetResponseErrorCode) String() string { + return proto.EnumName(RpcBlockTextSetMarksGetResponseErrorCode_name, int32(x)) +} + +func (RpcBlockTextSetMarksGetResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 2, 0, 1, 0, 0} +} + +type RpcBlockTextSetStyleResponseErrorCode int32 + +const ( + RpcBlockTextSetStyleResponseError_NULL RpcBlockTextSetStyleResponseErrorCode = 0 + RpcBlockTextSetStyleResponseError_UNKNOWN_ERROR RpcBlockTextSetStyleResponseErrorCode = 1 + RpcBlockTextSetStyleResponseError_BAD_INPUT RpcBlockTextSetStyleResponseErrorCode = 2 +) + +var RpcBlockTextSetStyleResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockTextSetStyleResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockTextSetStyleResponseErrorCode) String() string { + return proto.EnumName(RpcBlockTextSetStyleResponseErrorCode_name, int32(x)) +} + +func (RpcBlockTextSetStyleResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 3, 1, 0, 0} +} + +type RpcBlockTextSetCheckedResponseErrorCode int32 + +const ( + RpcBlockTextSetCheckedResponseError_NULL RpcBlockTextSetCheckedResponseErrorCode = 0 + RpcBlockTextSetCheckedResponseError_UNKNOWN_ERROR RpcBlockTextSetCheckedResponseErrorCode = 1 + RpcBlockTextSetCheckedResponseError_BAD_INPUT RpcBlockTextSetCheckedResponseErrorCode = 2 +) + +var RpcBlockTextSetCheckedResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockTextSetCheckedResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockTextSetCheckedResponseErrorCode) String() string { + return proto.EnumName(RpcBlockTextSetCheckedResponseErrorCode_name, int32(x)) +} + +func (RpcBlockTextSetCheckedResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 4, 1, 0, 0} +} + +type RpcBlockTextSetIconResponseErrorCode int32 + +const ( + RpcBlockTextSetIconResponseError_NULL RpcBlockTextSetIconResponseErrorCode = 0 + RpcBlockTextSetIconResponseError_UNKNOWN_ERROR RpcBlockTextSetIconResponseErrorCode = 1 + RpcBlockTextSetIconResponseError_BAD_INPUT RpcBlockTextSetIconResponseErrorCode = 2 +) + +var RpcBlockTextSetIconResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockTextSetIconResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockTextSetIconResponseErrorCode) String() string { + return proto.EnumName(RpcBlockTextSetIconResponseErrorCode_name, int32(x)) +} + +func (RpcBlockTextSetIconResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 5, 1, 0, 0} +} + +type RpcBlockTextListSetStyleResponseErrorCode int32 + +const ( + RpcBlockTextListSetStyleResponseError_NULL RpcBlockTextListSetStyleResponseErrorCode = 0 + RpcBlockTextListSetStyleResponseError_UNKNOWN_ERROR RpcBlockTextListSetStyleResponseErrorCode = 1 + RpcBlockTextListSetStyleResponseError_BAD_INPUT RpcBlockTextListSetStyleResponseErrorCode = 2 +) + +var RpcBlockTextListSetStyleResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockTextListSetStyleResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockTextListSetStyleResponseErrorCode) String() string { + return proto.EnumName(RpcBlockTextListSetStyleResponseErrorCode_name, int32(x)) +} + +func (RpcBlockTextListSetStyleResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 6, 1, 0, 0} +} + +type RpcBlockTextListSetColorResponseErrorCode int32 + +const ( + RpcBlockTextListSetColorResponseError_NULL RpcBlockTextListSetColorResponseErrorCode = 0 + RpcBlockTextListSetColorResponseError_UNKNOWN_ERROR RpcBlockTextListSetColorResponseErrorCode = 1 + RpcBlockTextListSetColorResponseError_BAD_INPUT RpcBlockTextListSetColorResponseErrorCode = 2 +) + +var RpcBlockTextListSetColorResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockTextListSetColorResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockTextListSetColorResponseErrorCode) String() string { + return proto.EnumName(RpcBlockTextListSetColorResponseErrorCode_name, int32(x)) +} + +func (RpcBlockTextListSetColorResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 7, 1, 0, 0} +} + +type RpcBlockTextListSetMarkResponseErrorCode int32 + +const ( + RpcBlockTextListSetMarkResponseError_NULL RpcBlockTextListSetMarkResponseErrorCode = 0 + RpcBlockTextListSetMarkResponseError_UNKNOWN_ERROR RpcBlockTextListSetMarkResponseErrorCode = 1 + RpcBlockTextListSetMarkResponseError_BAD_INPUT RpcBlockTextListSetMarkResponseErrorCode = 2 +) + +var RpcBlockTextListSetMarkResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockTextListSetMarkResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockTextListSetMarkResponseErrorCode) String() string { + return proto.EnumName(RpcBlockTextListSetMarkResponseErrorCode_name, int32(x)) +} + +func (RpcBlockTextListSetMarkResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 8, 1, 0, 0} +} + +type RpcBlockFileSetNameResponseErrorCode int32 + +const ( + RpcBlockFileSetNameResponseError_NULL RpcBlockFileSetNameResponseErrorCode = 0 + RpcBlockFileSetNameResponseError_UNKNOWN_ERROR RpcBlockFileSetNameResponseErrorCode = 1 + RpcBlockFileSetNameResponseError_BAD_INPUT RpcBlockFileSetNameResponseErrorCode = 2 +) + +var RpcBlockFileSetNameResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockFileSetNameResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockFileSetNameResponseErrorCode) String() string { + return proto.EnumName(RpcBlockFileSetNameResponseErrorCode_name, int32(x)) +} + +func (RpcBlockFileSetNameResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 17, 0, 1, 0, 0} +} + +type RpcBlockFileCreateAndUploadResponseErrorCode int32 + +const ( + RpcBlockFileCreateAndUploadResponseError_NULL RpcBlockFileCreateAndUploadResponseErrorCode = 0 + RpcBlockFileCreateAndUploadResponseError_UNKNOWN_ERROR RpcBlockFileCreateAndUploadResponseErrorCode = 1 + RpcBlockFileCreateAndUploadResponseError_BAD_INPUT RpcBlockFileCreateAndUploadResponseErrorCode = 2 +) + +var RpcBlockFileCreateAndUploadResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockFileCreateAndUploadResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockFileCreateAndUploadResponseErrorCode) String() string { + return proto.EnumName(RpcBlockFileCreateAndUploadResponseErrorCode_name, int32(x)) +} + +func (RpcBlockFileCreateAndUploadResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 17, 1, 1, 0, 0} +} + +type RpcBlockFileListSetStyleResponseErrorCode int32 + +const ( + RpcBlockFileListSetStyleResponseError_NULL RpcBlockFileListSetStyleResponseErrorCode = 0 + RpcBlockFileListSetStyleResponseError_UNKNOWN_ERROR RpcBlockFileListSetStyleResponseErrorCode = 1 + RpcBlockFileListSetStyleResponseError_BAD_INPUT RpcBlockFileListSetStyleResponseErrorCode = 2 +) + +var RpcBlockFileListSetStyleResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockFileListSetStyleResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockFileListSetStyleResponseErrorCode) String() string { + return proto.EnumName(RpcBlockFileListSetStyleResponseErrorCode_name, int32(x)) +} + +func (RpcBlockFileListSetStyleResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 17, 2, 1, 0, 0} +} + +type RpcBlockImageSetNameResponseErrorCode int32 + +const ( + RpcBlockImageSetNameResponseError_NULL RpcBlockImageSetNameResponseErrorCode = 0 + RpcBlockImageSetNameResponseError_UNKNOWN_ERROR RpcBlockImageSetNameResponseErrorCode = 1 + RpcBlockImageSetNameResponseError_BAD_INPUT RpcBlockImageSetNameResponseErrorCode = 2 +) + +var RpcBlockImageSetNameResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockImageSetNameResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockImageSetNameResponseErrorCode) String() string { + return proto.EnumName(RpcBlockImageSetNameResponseErrorCode_name, int32(x)) +} + +func (RpcBlockImageSetNameResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 18, 0, 1, 0, 0} +} + +type RpcBlockImageSetWidthResponseErrorCode int32 + +const ( + RpcBlockImageSetWidthResponseError_NULL RpcBlockImageSetWidthResponseErrorCode = 0 + RpcBlockImageSetWidthResponseError_UNKNOWN_ERROR RpcBlockImageSetWidthResponseErrorCode = 1 + RpcBlockImageSetWidthResponseError_BAD_INPUT RpcBlockImageSetWidthResponseErrorCode = 2 +) + +var RpcBlockImageSetWidthResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockImageSetWidthResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockImageSetWidthResponseErrorCode) String() string { + return proto.EnumName(RpcBlockImageSetWidthResponseErrorCode_name, int32(x)) +} + +func (RpcBlockImageSetWidthResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 18, 1, 1, 0, 0} +} + +type RpcBlockVideoSetNameResponseErrorCode int32 + +const ( + RpcBlockVideoSetNameResponseError_NULL RpcBlockVideoSetNameResponseErrorCode = 0 + RpcBlockVideoSetNameResponseError_UNKNOWN_ERROR RpcBlockVideoSetNameResponseErrorCode = 1 + RpcBlockVideoSetNameResponseError_BAD_INPUT RpcBlockVideoSetNameResponseErrorCode = 2 +) + +var RpcBlockVideoSetNameResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockVideoSetNameResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockVideoSetNameResponseErrorCode) String() string { + return proto.EnumName(RpcBlockVideoSetNameResponseErrorCode_name, int32(x)) +} + +func (RpcBlockVideoSetNameResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 19, 0, 1, 0, 0} +} + +type RpcBlockVideoSetWidthResponseErrorCode int32 + +const ( + RpcBlockVideoSetWidthResponseError_NULL RpcBlockVideoSetWidthResponseErrorCode = 0 + RpcBlockVideoSetWidthResponseError_UNKNOWN_ERROR RpcBlockVideoSetWidthResponseErrorCode = 1 + RpcBlockVideoSetWidthResponseError_BAD_INPUT RpcBlockVideoSetWidthResponseErrorCode = 2 +) + +var RpcBlockVideoSetWidthResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockVideoSetWidthResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockVideoSetWidthResponseErrorCode) String() string { + return proto.EnumName(RpcBlockVideoSetWidthResponseErrorCode_name, int32(x)) +} + +func (RpcBlockVideoSetWidthResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 19, 1, 1, 0, 0} +} + +type RpcBlockLinkCreateWithObjectResponseErrorCode int32 + +const ( + RpcBlockLinkCreateWithObjectResponseError_NULL RpcBlockLinkCreateWithObjectResponseErrorCode = 0 + RpcBlockLinkCreateWithObjectResponseError_UNKNOWN_ERROR RpcBlockLinkCreateWithObjectResponseErrorCode = 1 + RpcBlockLinkCreateWithObjectResponseError_BAD_INPUT RpcBlockLinkCreateWithObjectResponseErrorCode = 2 +) + +var RpcBlockLinkCreateWithObjectResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockLinkCreateWithObjectResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockLinkCreateWithObjectResponseErrorCode) String() string { + return proto.EnumName(RpcBlockLinkCreateWithObjectResponseErrorCode_name, int32(x)) +} + +func (RpcBlockLinkCreateWithObjectResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 20, 0, 1, 0, 0} +} + +type RpcBlockLinkListSetAppearanceResponseErrorCode int32 + +const ( + RpcBlockLinkListSetAppearanceResponseError_NULL RpcBlockLinkListSetAppearanceResponseErrorCode = 0 + RpcBlockLinkListSetAppearanceResponseError_UNKNOWN_ERROR RpcBlockLinkListSetAppearanceResponseErrorCode = 1 + RpcBlockLinkListSetAppearanceResponseError_BAD_INPUT RpcBlockLinkListSetAppearanceResponseErrorCode = 2 +) + +var RpcBlockLinkListSetAppearanceResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockLinkListSetAppearanceResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockLinkListSetAppearanceResponseErrorCode) String() string { + return proto.EnumName(RpcBlockLinkListSetAppearanceResponseErrorCode_name, int32(x)) +} + +func (RpcBlockLinkListSetAppearanceResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 20, 1, 1, 0, 0} +} + +type RpcBlockRelationSetKeyResponseErrorCode int32 + +const ( + RpcBlockRelationSetKeyResponseError_NULL RpcBlockRelationSetKeyResponseErrorCode = 0 + RpcBlockRelationSetKeyResponseError_UNKNOWN_ERROR RpcBlockRelationSetKeyResponseErrorCode = 1 + RpcBlockRelationSetKeyResponseError_BAD_INPUT RpcBlockRelationSetKeyResponseErrorCode = 2 +) + +var RpcBlockRelationSetKeyResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockRelationSetKeyResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockRelationSetKeyResponseErrorCode) String() string { + return proto.EnumName(RpcBlockRelationSetKeyResponseErrorCode_name, int32(x)) +} + +func (RpcBlockRelationSetKeyResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 21, 0, 1, 0, 0} +} + +type RpcBlockRelationAddResponseErrorCode int32 + +const ( + RpcBlockRelationAddResponseError_NULL RpcBlockRelationAddResponseErrorCode = 0 + RpcBlockRelationAddResponseError_UNKNOWN_ERROR RpcBlockRelationAddResponseErrorCode = 1 + RpcBlockRelationAddResponseError_BAD_INPUT RpcBlockRelationAddResponseErrorCode = 2 +) + +var RpcBlockRelationAddResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockRelationAddResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockRelationAddResponseErrorCode) String() string { + return proto.EnumName(RpcBlockRelationAddResponseErrorCode_name, int32(x)) +} + +func (RpcBlockRelationAddResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 21, 1, 1, 0, 0} +} + +type RpcBlockBookmarkFetchResponseErrorCode int32 + +const ( + RpcBlockBookmarkFetchResponseError_NULL RpcBlockBookmarkFetchResponseErrorCode = 0 + RpcBlockBookmarkFetchResponseError_UNKNOWN_ERROR RpcBlockBookmarkFetchResponseErrorCode = 1 + RpcBlockBookmarkFetchResponseError_BAD_INPUT RpcBlockBookmarkFetchResponseErrorCode = 2 +) + +var RpcBlockBookmarkFetchResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockBookmarkFetchResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockBookmarkFetchResponseErrorCode) String() string { + return proto.EnumName(RpcBlockBookmarkFetchResponseErrorCode_name, int32(x)) +} + +func (RpcBlockBookmarkFetchResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 22, 0, 1, 0, 0} +} + +type RpcBlockBookmarkCreateAndFetchResponseErrorCode int32 + +const ( + RpcBlockBookmarkCreateAndFetchResponseError_NULL RpcBlockBookmarkCreateAndFetchResponseErrorCode = 0 + RpcBlockBookmarkCreateAndFetchResponseError_UNKNOWN_ERROR RpcBlockBookmarkCreateAndFetchResponseErrorCode = 1 + RpcBlockBookmarkCreateAndFetchResponseError_BAD_INPUT RpcBlockBookmarkCreateAndFetchResponseErrorCode = 2 +) + +var RpcBlockBookmarkCreateAndFetchResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockBookmarkCreateAndFetchResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockBookmarkCreateAndFetchResponseErrorCode) String() string { + return proto.EnumName(RpcBlockBookmarkCreateAndFetchResponseErrorCode_name, int32(x)) +} + +func (RpcBlockBookmarkCreateAndFetchResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 22, 1, 1, 0, 0} +} + +type RpcBlockDivListSetStyleResponseErrorCode int32 + +const ( + RpcBlockDivListSetStyleResponseError_NULL RpcBlockDivListSetStyleResponseErrorCode = 0 + RpcBlockDivListSetStyleResponseError_UNKNOWN_ERROR RpcBlockDivListSetStyleResponseErrorCode = 1 + RpcBlockDivListSetStyleResponseError_BAD_INPUT RpcBlockDivListSetStyleResponseErrorCode = 2 +) + +var RpcBlockDivListSetStyleResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockDivListSetStyleResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockDivListSetStyleResponseErrorCode) String() string { + return proto.EnumName(RpcBlockDivListSetStyleResponseErrorCode_name, int32(x)) +} + +func (RpcBlockDivListSetStyleResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 23, 0, 1, 0, 0} +} + +type RpcBlockDataviewViewCreateResponseErrorCode int32 + +const ( + RpcBlockDataviewViewCreateResponseError_NULL RpcBlockDataviewViewCreateResponseErrorCode = 0 + RpcBlockDataviewViewCreateResponseError_UNKNOWN_ERROR RpcBlockDataviewViewCreateResponseErrorCode = 1 + RpcBlockDataviewViewCreateResponseError_BAD_INPUT RpcBlockDataviewViewCreateResponseErrorCode = 2 +) + +var RpcBlockDataviewViewCreateResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockDataviewViewCreateResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockDataviewViewCreateResponseErrorCode) String() string { + return proto.EnumName(RpcBlockDataviewViewCreateResponseErrorCode_name, int32(x)) +} + +func (RpcBlockDataviewViewCreateResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 0, 0, 1, 0, 0} +} + +type RpcBlockDataviewViewUpdateResponseErrorCode int32 + +const ( + RpcBlockDataviewViewUpdateResponseError_NULL RpcBlockDataviewViewUpdateResponseErrorCode = 0 + RpcBlockDataviewViewUpdateResponseError_UNKNOWN_ERROR RpcBlockDataviewViewUpdateResponseErrorCode = 1 + RpcBlockDataviewViewUpdateResponseError_BAD_INPUT RpcBlockDataviewViewUpdateResponseErrorCode = 2 +) + +var RpcBlockDataviewViewUpdateResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockDataviewViewUpdateResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockDataviewViewUpdateResponseErrorCode) String() string { + return proto.EnumName(RpcBlockDataviewViewUpdateResponseErrorCode_name, int32(x)) +} + +func (RpcBlockDataviewViewUpdateResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 0, 1, 1, 0, 0} +} + +type RpcBlockDataviewViewDeleteResponseErrorCode int32 + +const ( + RpcBlockDataviewViewDeleteResponseError_NULL RpcBlockDataviewViewDeleteResponseErrorCode = 0 + RpcBlockDataviewViewDeleteResponseError_UNKNOWN_ERROR RpcBlockDataviewViewDeleteResponseErrorCode = 1 + RpcBlockDataviewViewDeleteResponseError_BAD_INPUT RpcBlockDataviewViewDeleteResponseErrorCode = 2 +) + +var RpcBlockDataviewViewDeleteResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockDataviewViewDeleteResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockDataviewViewDeleteResponseErrorCode) String() string { + return proto.EnumName(RpcBlockDataviewViewDeleteResponseErrorCode_name, int32(x)) +} + +func (RpcBlockDataviewViewDeleteResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 0, 2, 1, 0, 0} +} + +type RpcBlockDataviewViewSetPositionResponseErrorCode int32 + +const ( + RpcBlockDataviewViewSetPositionResponseError_NULL RpcBlockDataviewViewSetPositionResponseErrorCode = 0 + RpcBlockDataviewViewSetPositionResponseError_UNKNOWN_ERROR RpcBlockDataviewViewSetPositionResponseErrorCode = 1 + RpcBlockDataviewViewSetPositionResponseError_BAD_INPUT RpcBlockDataviewViewSetPositionResponseErrorCode = 2 +) + +var RpcBlockDataviewViewSetPositionResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockDataviewViewSetPositionResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockDataviewViewSetPositionResponseErrorCode) String() string { + return proto.EnumName(RpcBlockDataviewViewSetPositionResponseErrorCode_name, int32(x)) +} + +func (RpcBlockDataviewViewSetPositionResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 0, 3, 1, 0, 0} +} + +type RpcBlockDataviewViewSetActiveResponseErrorCode int32 + +const ( + RpcBlockDataviewViewSetActiveResponseError_NULL RpcBlockDataviewViewSetActiveResponseErrorCode = 0 + RpcBlockDataviewViewSetActiveResponseError_UNKNOWN_ERROR RpcBlockDataviewViewSetActiveResponseErrorCode = 1 + RpcBlockDataviewViewSetActiveResponseError_BAD_INPUT RpcBlockDataviewViewSetActiveResponseErrorCode = 2 +) + +var RpcBlockDataviewViewSetActiveResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockDataviewViewSetActiveResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockDataviewViewSetActiveResponseErrorCode) String() string { + return proto.EnumName(RpcBlockDataviewViewSetActiveResponseErrorCode_name, int32(x)) +} + +func (RpcBlockDataviewViewSetActiveResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 0, 4, 1, 0, 0} +} + +type RpcBlockDataviewRelationAddResponseErrorCode int32 + +const ( + RpcBlockDataviewRelationAddResponseError_NULL RpcBlockDataviewRelationAddResponseErrorCode = 0 + RpcBlockDataviewRelationAddResponseError_UNKNOWN_ERROR RpcBlockDataviewRelationAddResponseErrorCode = 1 + RpcBlockDataviewRelationAddResponseError_BAD_INPUT RpcBlockDataviewRelationAddResponseErrorCode = 2 +) + +var RpcBlockDataviewRelationAddResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockDataviewRelationAddResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockDataviewRelationAddResponseErrorCode) String() string { + return proto.EnumName(RpcBlockDataviewRelationAddResponseErrorCode_name, int32(x)) +} + +func (RpcBlockDataviewRelationAddResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 1, 0, 1, 0, 0} +} + +type RpcBlockDataviewRelationUpdateResponseErrorCode int32 + +const ( + RpcBlockDataviewRelationUpdateResponseError_NULL RpcBlockDataviewRelationUpdateResponseErrorCode = 0 + RpcBlockDataviewRelationUpdateResponseError_UNKNOWN_ERROR RpcBlockDataviewRelationUpdateResponseErrorCode = 1 + RpcBlockDataviewRelationUpdateResponseError_BAD_INPUT RpcBlockDataviewRelationUpdateResponseErrorCode = 2 +) + +var RpcBlockDataviewRelationUpdateResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockDataviewRelationUpdateResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockDataviewRelationUpdateResponseErrorCode) String() string { + return proto.EnumName(RpcBlockDataviewRelationUpdateResponseErrorCode_name, int32(x)) +} + +func (RpcBlockDataviewRelationUpdateResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 1, 1, 1, 0, 0} +} + +type RpcBlockDataviewRelationDeleteResponseErrorCode int32 + +const ( + RpcBlockDataviewRelationDeleteResponseError_NULL RpcBlockDataviewRelationDeleteResponseErrorCode = 0 + RpcBlockDataviewRelationDeleteResponseError_UNKNOWN_ERROR RpcBlockDataviewRelationDeleteResponseErrorCode = 1 + RpcBlockDataviewRelationDeleteResponseError_BAD_INPUT RpcBlockDataviewRelationDeleteResponseErrorCode = 2 +) + +var RpcBlockDataviewRelationDeleteResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockDataviewRelationDeleteResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockDataviewRelationDeleteResponseErrorCode) String() string { + return proto.EnumName(RpcBlockDataviewRelationDeleteResponseErrorCode_name, int32(x)) +} + +func (RpcBlockDataviewRelationDeleteResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 1, 2, 1, 0, 0} +} + +type RpcBlockDataviewRelationListAvailableResponseErrorCode int32 + +const ( + RpcBlockDataviewRelationListAvailableResponseError_NULL RpcBlockDataviewRelationListAvailableResponseErrorCode = 0 + RpcBlockDataviewRelationListAvailableResponseError_UNKNOWN_ERROR RpcBlockDataviewRelationListAvailableResponseErrorCode = 1 + RpcBlockDataviewRelationListAvailableResponseError_BAD_INPUT RpcBlockDataviewRelationListAvailableResponseErrorCode = 2 + RpcBlockDataviewRelationListAvailableResponseError_NOT_A_DATAVIEW_BLOCK RpcBlockDataviewRelationListAvailableResponseErrorCode = 3 +) + +var RpcBlockDataviewRelationListAvailableResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", + 3: "NOT_A_DATAVIEW_BLOCK", +} + +var RpcBlockDataviewRelationListAvailableResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, + "NOT_A_DATAVIEW_BLOCK": 3, +} + +func (x RpcBlockDataviewRelationListAvailableResponseErrorCode) String() string { + return proto.EnumName(RpcBlockDataviewRelationListAvailableResponseErrorCode_name, int32(x)) +} + +func (RpcBlockDataviewRelationListAvailableResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 1, 3, 1, 0, 0} +} + +type RpcBlockDataviewSetSourceResponseErrorCode int32 + +const ( + RpcBlockDataviewSetSourceResponseError_NULL RpcBlockDataviewSetSourceResponseErrorCode = 0 + RpcBlockDataviewSetSourceResponseError_UNKNOWN_ERROR RpcBlockDataviewSetSourceResponseErrorCode = 1 + RpcBlockDataviewSetSourceResponseError_BAD_INPUT RpcBlockDataviewSetSourceResponseErrorCode = 2 +) + +var RpcBlockDataviewSetSourceResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockDataviewSetSourceResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockDataviewSetSourceResponseErrorCode) String() string { + return proto.EnumName(RpcBlockDataviewSetSourceResponseErrorCode_name, int32(x)) +} + +func (RpcBlockDataviewSetSourceResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 2, 1, 0, 0} +} + +type RpcBlockDataviewRecordUpdateResponseErrorCode int32 + +const ( + RpcBlockDataviewRecordUpdateResponseError_NULL RpcBlockDataviewRecordUpdateResponseErrorCode = 0 + RpcBlockDataviewRecordUpdateResponseError_UNKNOWN_ERROR RpcBlockDataviewRecordUpdateResponseErrorCode = 1 + RpcBlockDataviewRecordUpdateResponseError_BAD_INPUT RpcBlockDataviewRecordUpdateResponseErrorCode = 2 +) + +var RpcBlockDataviewRecordUpdateResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockDataviewRecordUpdateResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockDataviewRecordUpdateResponseErrorCode) String() string { + return proto.EnumName(RpcBlockDataviewRecordUpdateResponseErrorCode_name, int32(x)) +} + +func (RpcBlockDataviewRecordUpdateResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 0, 1, 0, 0} +} + +type RpcBlockDataviewRecordDeleteResponseErrorCode int32 + +const ( + RpcBlockDataviewRecordDeleteResponseError_NULL RpcBlockDataviewRecordDeleteResponseErrorCode = 0 + RpcBlockDataviewRecordDeleteResponseError_UNKNOWN_ERROR RpcBlockDataviewRecordDeleteResponseErrorCode = 1 + RpcBlockDataviewRecordDeleteResponseError_BAD_INPUT RpcBlockDataviewRecordDeleteResponseErrorCode = 2 +) + +var RpcBlockDataviewRecordDeleteResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockDataviewRecordDeleteResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockDataviewRecordDeleteResponseErrorCode) String() string { + return proto.EnumName(RpcBlockDataviewRecordDeleteResponseErrorCode_name, int32(x)) +} + +func (RpcBlockDataviewRecordDeleteResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 1, 1, 0, 0} +} + +type RpcBlockDataviewRecordCreateResponseErrorCode int32 + +const ( + RpcBlockDataviewRecordCreateResponseError_NULL RpcBlockDataviewRecordCreateResponseErrorCode = 0 + RpcBlockDataviewRecordCreateResponseError_UNKNOWN_ERROR RpcBlockDataviewRecordCreateResponseErrorCode = 1 + RpcBlockDataviewRecordCreateResponseError_BAD_INPUT RpcBlockDataviewRecordCreateResponseErrorCode = 2 +) + +var RpcBlockDataviewRecordCreateResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockDataviewRecordCreateResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockDataviewRecordCreateResponseErrorCode) String() string { + return proto.EnumName(RpcBlockDataviewRecordCreateResponseErrorCode_name, int32(x)) +} + +func (RpcBlockDataviewRecordCreateResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 2, 1, 0, 0} +} + +type RpcBlockDataviewRecordRelationOptionAddResponseErrorCode int32 + +const ( + RpcBlockDataviewRecordRelationOptionAddResponseError_NULL RpcBlockDataviewRecordRelationOptionAddResponseErrorCode = 0 + RpcBlockDataviewRecordRelationOptionAddResponseError_UNKNOWN_ERROR RpcBlockDataviewRecordRelationOptionAddResponseErrorCode = 1 + RpcBlockDataviewRecordRelationOptionAddResponseError_BAD_INPUT RpcBlockDataviewRecordRelationOptionAddResponseErrorCode = 2 +) + +var RpcBlockDataviewRecordRelationOptionAddResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockDataviewRecordRelationOptionAddResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockDataviewRecordRelationOptionAddResponseErrorCode) String() string { + return proto.EnumName(RpcBlockDataviewRecordRelationOptionAddResponseErrorCode_name, int32(x)) +} + +func (RpcBlockDataviewRecordRelationOptionAddResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 3, 0, 1, 0, 0} +} + +type RpcBlockDataviewRecordRelationOptionUpdateResponseErrorCode int32 + +const ( + RpcBlockDataviewRecordRelationOptionUpdateResponseError_NULL RpcBlockDataviewRecordRelationOptionUpdateResponseErrorCode = 0 + RpcBlockDataviewRecordRelationOptionUpdateResponseError_UNKNOWN_ERROR RpcBlockDataviewRecordRelationOptionUpdateResponseErrorCode = 1 + RpcBlockDataviewRecordRelationOptionUpdateResponseError_BAD_INPUT RpcBlockDataviewRecordRelationOptionUpdateResponseErrorCode = 2 +) + +var RpcBlockDataviewRecordRelationOptionUpdateResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockDataviewRecordRelationOptionUpdateResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockDataviewRecordRelationOptionUpdateResponseErrorCode) String() string { + return proto.EnumName(RpcBlockDataviewRecordRelationOptionUpdateResponseErrorCode_name, int32(x)) +} + +func (RpcBlockDataviewRecordRelationOptionUpdateResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 3, 1, 1, 0, 0} +} + +type RpcBlockDataviewRecordRelationOptionDeleteResponseErrorCode int32 + +const ( + RpcBlockDataviewRecordRelationOptionDeleteResponseError_NULL RpcBlockDataviewRecordRelationOptionDeleteResponseErrorCode = 0 + RpcBlockDataviewRecordRelationOptionDeleteResponseError_UNKNOWN_ERROR RpcBlockDataviewRecordRelationOptionDeleteResponseErrorCode = 1 + RpcBlockDataviewRecordRelationOptionDeleteResponseError_BAD_INPUT RpcBlockDataviewRecordRelationOptionDeleteResponseErrorCode = 2 +) + +var RpcBlockDataviewRecordRelationOptionDeleteResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcBlockDataviewRecordRelationOptionDeleteResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcBlockDataviewRecordRelationOptionDeleteResponseErrorCode) String() string { + return proto.EnumName(RpcBlockDataviewRecordRelationOptionDeleteResponseErrorCode_name, int32(x)) +} + +func (RpcBlockDataviewRecordRelationOptionDeleteResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 3, 2, 1, 0, 0} } type RpcDebugSyncResponseErrorCode int32 @@ -4664,7 +4276,7 @@ func (x RpcDebugSyncResponseErrorCode) String() string { } func (RpcDebugSyncResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 37, 2, 1, 0, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 26, 2, 1, 0, 0} } type RpcDebugThreadResponseErrorCode int32 @@ -4692,7 +4304,7 @@ func (x RpcDebugThreadResponseErrorCode) String() string { } func (RpcDebugThreadResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 37, 3, 1, 0, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 26, 3, 1, 0, 0} } type RpcDebugTreeResponseErrorCode int32 @@ -4720,7 +4332,190 @@ func (x RpcDebugTreeResponseErrorCode) String() string { } func (RpcDebugTreeResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 37, 4, 1, 0, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 26, 4, 1, 0, 0} +} + +type RpcDebugExportLocalstoreResponseErrorCode int32 + +const ( + RpcDebugExportLocalstoreResponseError_NULL RpcDebugExportLocalstoreResponseErrorCode = 0 + RpcDebugExportLocalstoreResponseError_UNKNOWN_ERROR RpcDebugExportLocalstoreResponseErrorCode = 1 + RpcDebugExportLocalstoreResponseError_BAD_INPUT RpcDebugExportLocalstoreResponseErrorCode = 2 +) + +var RpcDebugExportLocalstoreResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcDebugExportLocalstoreResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcDebugExportLocalstoreResponseErrorCode) String() string { + return proto.EnumName(RpcDebugExportLocalstoreResponseErrorCode_name, int32(x)) +} + +func (RpcDebugExportLocalstoreResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 26, 5, 1, 0, 0} +} + +type RpcDebugPingResponseErrorCode int32 + +const ( + RpcDebugPingResponseError_NULL RpcDebugPingResponseErrorCode = 0 + RpcDebugPingResponseError_UNKNOWN_ERROR RpcDebugPingResponseErrorCode = 1 + RpcDebugPingResponseError_BAD_INPUT RpcDebugPingResponseErrorCode = 2 +) + +var RpcDebugPingResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcDebugPingResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcDebugPingResponseErrorCode) String() string { + return proto.EnumName(RpcDebugPingResponseErrorCode_name, int32(x)) +} + +func (RpcDebugPingResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 26, 6, 1, 0, 0} +} + +type RpcMetricsSetParametersResponseErrorCode int32 + +const ( + RpcMetricsSetParametersResponseError_NULL RpcMetricsSetParametersResponseErrorCode = 0 + RpcMetricsSetParametersResponseError_UNKNOWN_ERROR RpcMetricsSetParametersResponseErrorCode = 1 + RpcMetricsSetParametersResponseError_BAD_INPUT RpcMetricsSetParametersResponseErrorCode = 2 +) + +var RpcMetricsSetParametersResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcMetricsSetParametersResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcMetricsSetParametersResponseErrorCode) String() string { + return proto.EnumName(RpcMetricsSetParametersResponseErrorCode_name, int32(x)) +} + +func (RpcMetricsSetParametersResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 27, 0, 1, 0, 0} +} + +type RpcLogSendRequestLevel int32 + +const ( + 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 RpcLogSendRequestLevel_name = map[int32]string{ + 0: "DEBUG", + 1: "ERROR", + 2: "FATAL", + 3: "INFO", + 4: "PANIC", + 5: "WARNING", +} + +var RpcLogSendRequestLevel_value = map[string]int32{ + "DEBUG": 0, + "ERROR": 1, + "FATAL": 2, + "INFO": 3, + "PANIC": 4, + "WARNING": 5, +} + +func (x RpcLogSendRequestLevel) String() string { + return proto.EnumName(RpcLogSendRequestLevel_name, int32(x)) +} + +func (RpcLogSendRequestLevel) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 28, 0, 0, 0} +} + +type RpcLogSendResponseErrorCode int32 + +const ( + RpcLogSendResponseError_NULL RpcLogSendResponseErrorCode = 0 + RpcLogSendResponseError_UNKNOWN_ERROR RpcLogSendResponseErrorCode = 1 + RpcLogSendResponseError_BAD_INPUT RpcLogSendResponseErrorCode = 2 + RpcLogSendResponseError_NOT_FOUND RpcLogSendResponseErrorCode = 101 + RpcLogSendResponseError_TIMEOUT RpcLogSendResponseErrorCode = 102 +) + +var RpcLogSendResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", + 101: "NOT_FOUND", + 102: "TIMEOUT", +} + +var RpcLogSendResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, + "NOT_FOUND": 101, + "TIMEOUT": 102, +} + +func (x RpcLogSendResponseErrorCode) String() string { + return proto.EnumName(RpcLogSendResponseErrorCode_name, int32(x)) +} + +func (RpcLogSendResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 28, 0, 1, 0, 0} +} + +type RpcProcessCancelResponseErrorCode int32 + +const ( + RpcProcessCancelResponseError_NULL RpcProcessCancelResponseErrorCode = 0 + RpcProcessCancelResponseError_UNKNOWN_ERROR RpcProcessCancelResponseErrorCode = 1 + RpcProcessCancelResponseError_BAD_INPUT RpcProcessCancelResponseErrorCode = 2 +) + +var RpcProcessCancelResponseErrorCode_name = map[int32]string{ + 0: "NULL", + 1: "UNKNOWN_ERROR", + 2: "BAD_INPUT", +} + +var RpcProcessCancelResponseErrorCode_value = map[string]int32{ + "NULL": 0, + "UNKNOWN_ERROR": 1, + "BAD_INPUT": 2, +} + +func (x RpcProcessCancelResponseErrorCode) String() string { + return proto.EnumName(RpcProcessCancelResponseErrorCode_name, int32(x)) +} + +func (RpcProcessCancelResponseErrorCode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 29, 0, 1, 0, 0} } type RpcGenericErrorResponseErrorCode int32 @@ -4748,7 +4543,7 @@ func (x RpcGenericErrorResponseErrorCode) String() string { } func (RpcGenericErrorResponseErrorCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 38, 0, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 30, 0, 0} } // @@ -4792,21 +4587,21 @@ func (m *Rpc) XXX_DiscardUnknown() { var xxx_messageInfo_Rpc proto.InternalMessageInfo -type RpcMetrics struct { +type RpcApp struct { } -func (m *RpcMetrics) Reset() { *m = RpcMetrics{} } -func (m *RpcMetrics) String() string { return proto.CompactTextString(m) } -func (*RpcMetrics) ProtoMessage() {} -func (*RpcMetrics) Descriptor() ([]byte, []int) { +func (m *RpcApp) Reset() { *m = RpcApp{} } +func (m *RpcApp) String() string { return proto.CompactTextString(m) } +func (*RpcApp) ProtoMessage() {} +func (*RpcApp) Descriptor() ([]byte, []int) { return fileDescriptor_8261c968b2e6f45c, []int{0, 0} } -func (m *RpcMetrics) XXX_Unmarshal(b []byte) error { +func (m *RpcApp) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcApp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcMetrics.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcApp.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -4816,33 +4611,33 @@ func (m *RpcMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } -func (m *RpcMetrics) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcMetrics.Merge(m, src) +func (m *RpcApp) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcApp.Merge(m, src) } -func (m *RpcMetrics) XXX_Size() int { +func (m *RpcApp) XXX_Size() int { return m.Size() } -func (m *RpcMetrics) XXX_DiscardUnknown() { - xxx_messageInfo_RpcMetrics.DiscardUnknown(m) +func (m *RpcApp) XXX_DiscardUnknown() { + xxx_messageInfo_RpcApp.DiscardUnknown(m) } -var xxx_messageInfo_RpcMetrics proto.InternalMessageInfo +var xxx_messageInfo_RpcApp proto.InternalMessageInfo -type RpcMetricsSetParameters struct { +type RpcAppGetVersion struct { } -func (m *RpcMetricsSetParameters) Reset() { *m = RpcMetricsSetParameters{} } -func (m *RpcMetricsSetParameters) String() string { return proto.CompactTextString(m) } -func (*RpcMetricsSetParameters) ProtoMessage() {} -func (*RpcMetricsSetParameters) Descriptor() ([]byte, []int) { +func (m *RpcAppGetVersion) Reset() { *m = RpcAppGetVersion{} } +func (m *RpcAppGetVersion) String() string { return proto.CompactTextString(m) } +func (*RpcAppGetVersion) ProtoMessage() {} +func (*RpcAppGetVersion) Descriptor() ([]byte, []int) { return fileDescriptor_8261c968b2e6f45c, []int{0, 0, 0} } -func (m *RpcMetricsSetParameters) XXX_Unmarshal(b []byte) error { +func (m *RpcAppGetVersion) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcMetricsSetParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcAppGetVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcMetricsSetParameters.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcAppGetVersion.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -4852,34 +4647,33 @@ func (m *RpcMetricsSetParameters) XXX_Marshal(b []byte, deterministic bool) ([]b return b[:n], nil } } -func (m *RpcMetricsSetParameters) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcMetricsSetParameters.Merge(m, src) +func (m *RpcAppGetVersion) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcAppGetVersion.Merge(m, src) } -func (m *RpcMetricsSetParameters) XXX_Size() int { +func (m *RpcAppGetVersion) XXX_Size() int { return m.Size() } -func (m *RpcMetricsSetParameters) XXX_DiscardUnknown() { - xxx_messageInfo_RpcMetricsSetParameters.DiscardUnknown(m) +func (m *RpcAppGetVersion) XXX_DiscardUnknown() { + xxx_messageInfo_RpcAppGetVersion.DiscardUnknown(m) } -var xxx_messageInfo_RpcMetricsSetParameters proto.InternalMessageInfo +var xxx_messageInfo_RpcAppGetVersion proto.InternalMessageInfo -type RpcMetricsSetParametersRequest struct { - Platform string `protobuf:"bytes,1,opt,name=platform,proto3" json:"platform,omitempty"` +type RpcAppGetVersionRequest struct { } -func (m *RpcMetricsSetParametersRequest) Reset() { *m = RpcMetricsSetParametersRequest{} } -func (m *RpcMetricsSetParametersRequest) String() string { return proto.CompactTextString(m) } -func (*RpcMetricsSetParametersRequest) ProtoMessage() {} -func (*RpcMetricsSetParametersRequest) Descriptor() ([]byte, []int) { +func (m *RpcAppGetVersionRequest) Reset() { *m = RpcAppGetVersionRequest{} } +func (m *RpcAppGetVersionRequest) String() string { return proto.CompactTextString(m) } +func (*RpcAppGetVersionRequest) ProtoMessage() {} +func (*RpcAppGetVersionRequest) Descriptor() ([]byte, []int) { return fileDescriptor_8261c968b2e6f45c, []int{0, 0, 0, 0} } -func (m *RpcMetricsSetParametersRequest) XXX_Unmarshal(b []byte) error { +func (m *RpcAppGetVersionRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcMetricsSetParametersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcAppGetVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcMetricsSetParametersRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcAppGetVersionRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -4889,41 +4683,36 @@ func (m *RpcMetricsSetParametersRequest) XXX_Marshal(b []byte, deterministic boo return b[:n], nil } } -func (m *RpcMetricsSetParametersRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcMetricsSetParametersRequest.Merge(m, src) +func (m *RpcAppGetVersionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcAppGetVersionRequest.Merge(m, src) } -func (m *RpcMetricsSetParametersRequest) XXX_Size() int { +func (m *RpcAppGetVersionRequest) XXX_Size() int { return m.Size() } -func (m *RpcMetricsSetParametersRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcMetricsSetParametersRequest.DiscardUnknown(m) +func (m *RpcAppGetVersionRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcAppGetVersionRequest.DiscardUnknown(m) } -var xxx_messageInfo_RpcMetricsSetParametersRequest proto.InternalMessageInfo +var xxx_messageInfo_RpcAppGetVersionRequest proto.InternalMessageInfo -func (m *RpcMetricsSetParametersRequest) GetPlatform() string { - if m != nil { - return m.Platform - } - return "" +type RpcAppGetVersionResponse struct { + Error *RpcAppGetVersionResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` + Details string `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"` } -type RpcMetricsSetParametersResponse struct { - Error *RpcMetricsSetParametersResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` -} - -func (m *RpcMetricsSetParametersResponse) Reset() { *m = RpcMetricsSetParametersResponse{} } -func (m *RpcMetricsSetParametersResponse) String() string { return proto.CompactTextString(m) } -func (*RpcMetricsSetParametersResponse) ProtoMessage() {} -func (*RpcMetricsSetParametersResponse) Descriptor() ([]byte, []int) { +func (m *RpcAppGetVersionResponse) Reset() { *m = RpcAppGetVersionResponse{} } +func (m *RpcAppGetVersionResponse) String() string { return proto.CompactTextString(m) } +func (*RpcAppGetVersionResponse) ProtoMessage() {} +func (*RpcAppGetVersionResponse) Descriptor() ([]byte, []int) { return fileDescriptor_8261c968b2e6f45c, []int{0, 0, 0, 1} } -func (m *RpcMetricsSetParametersResponse) XXX_Unmarshal(b []byte) error { +func (m *RpcAppGetVersionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcMetricsSetParametersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcAppGetVersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcMetricsSetParametersResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcAppGetVersionResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -4933,42 +4722,56 @@ func (m *RpcMetricsSetParametersResponse) XXX_Marshal(b []byte, deterministic bo return b[:n], nil } } -func (m *RpcMetricsSetParametersResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcMetricsSetParametersResponse.Merge(m, src) +func (m *RpcAppGetVersionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcAppGetVersionResponse.Merge(m, src) } -func (m *RpcMetricsSetParametersResponse) XXX_Size() int { +func (m *RpcAppGetVersionResponse) XXX_Size() int { return m.Size() } -func (m *RpcMetricsSetParametersResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcMetricsSetParametersResponse.DiscardUnknown(m) +func (m *RpcAppGetVersionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcAppGetVersionResponse.DiscardUnknown(m) } -var xxx_messageInfo_RpcMetricsSetParametersResponse proto.InternalMessageInfo +var xxx_messageInfo_RpcAppGetVersionResponse proto.InternalMessageInfo -func (m *RpcMetricsSetParametersResponse) GetError() *RpcMetricsSetParametersResponseError { +func (m *RpcAppGetVersionResponse) GetError() *RpcAppGetVersionResponseError { if m != nil { return m.Error } return nil } -type RpcMetricsSetParametersResponseError struct { - Code RpcMetricsSetParametersResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcMetricsSetParametersResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +func (m *RpcAppGetVersionResponse) GetVersion() string { + if m != nil { + return m.Version + } + return "" } -func (m *RpcMetricsSetParametersResponseError) Reset() { *m = RpcMetricsSetParametersResponseError{} } -func (m *RpcMetricsSetParametersResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcMetricsSetParametersResponseError) ProtoMessage() {} -func (*RpcMetricsSetParametersResponseError) Descriptor() ([]byte, []int) { +func (m *RpcAppGetVersionResponse) GetDetails() string { + if m != nil { + return m.Details + } + return "" +} + +type RpcAppGetVersionResponseError struct { + Code RpcAppGetVersionResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcAppGetVersionResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcAppGetVersionResponseError) Reset() { *m = RpcAppGetVersionResponseError{} } +func (m *RpcAppGetVersionResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcAppGetVersionResponseError) ProtoMessage() {} +func (*RpcAppGetVersionResponseError) Descriptor() ([]byte, []int) { return fileDescriptor_8261c968b2e6f45c, []int{0, 0, 0, 1, 0} } -func (m *RpcMetricsSetParametersResponseError) XXX_Unmarshal(b []byte) error { +func (m *RpcAppGetVersionResponseError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcMetricsSetParametersResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcAppGetVersionResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcMetricsSetParametersResponseError.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcAppGetVersionResponseError.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -4978,47 +4781,47 @@ func (m *RpcMetricsSetParametersResponseError) XXX_Marshal(b []byte, determinist return b[:n], nil } } -func (m *RpcMetricsSetParametersResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcMetricsSetParametersResponseError.Merge(m, src) +func (m *RpcAppGetVersionResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcAppGetVersionResponseError.Merge(m, src) } -func (m *RpcMetricsSetParametersResponseError) XXX_Size() int { +func (m *RpcAppGetVersionResponseError) XXX_Size() int { return m.Size() } -func (m *RpcMetricsSetParametersResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcMetricsSetParametersResponseError.DiscardUnknown(m) +func (m *RpcAppGetVersionResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcAppGetVersionResponseError.DiscardUnknown(m) } -var xxx_messageInfo_RpcMetricsSetParametersResponseError proto.InternalMessageInfo +var xxx_messageInfo_RpcAppGetVersionResponseError proto.InternalMessageInfo -func (m *RpcMetricsSetParametersResponseError) GetCode() RpcMetricsSetParametersResponseErrorCode { +func (m *RpcAppGetVersionResponseError) GetCode() RpcAppGetVersionResponseErrorCode { if m != nil { return m.Code } - return RpcMetricsSetParametersResponseError_NULL + return RpcAppGetVersionResponseError_NULL } -func (m *RpcMetricsSetParametersResponseError) GetDescription() string { +func (m *RpcAppGetVersionResponseError) GetDescription() string { if m != nil { return m.Description } return "" } -type RpcExternalDrop struct { +type RpcAppSetDeviceState struct { } -func (m *RpcExternalDrop) Reset() { *m = RpcExternalDrop{} } -func (m *RpcExternalDrop) String() string { return proto.CompactTextString(m) } -func (*RpcExternalDrop) ProtoMessage() {} -func (*RpcExternalDrop) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 1} +func (m *RpcAppSetDeviceState) Reset() { *m = RpcAppSetDeviceState{} } +func (m *RpcAppSetDeviceState) String() string { return proto.CompactTextString(m) } +func (*RpcAppSetDeviceState) ProtoMessage() {} +func (*RpcAppSetDeviceState) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 0, 1} } -func (m *RpcExternalDrop) XXX_Unmarshal(b []byte) error { +func (m *RpcAppSetDeviceState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcExternalDrop) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcAppSetDeviceState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcExternalDrop.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcAppSetDeviceState.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -5028,33 +4831,34 @@ func (m *RpcExternalDrop) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return b[:n], nil } } -func (m *RpcExternalDrop) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcExternalDrop.Merge(m, src) +func (m *RpcAppSetDeviceState) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcAppSetDeviceState.Merge(m, src) } -func (m *RpcExternalDrop) XXX_Size() int { +func (m *RpcAppSetDeviceState) XXX_Size() int { return m.Size() } -func (m *RpcExternalDrop) XXX_DiscardUnknown() { - xxx_messageInfo_RpcExternalDrop.DiscardUnknown(m) +func (m *RpcAppSetDeviceState) XXX_DiscardUnknown() { + xxx_messageInfo_RpcAppSetDeviceState.DiscardUnknown(m) } -var xxx_messageInfo_RpcExternalDrop proto.InternalMessageInfo +var xxx_messageInfo_RpcAppSetDeviceState proto.InternalMessageInfo -type RpcExternalDropFiles struct { +type RpcAppSetDeviceStateRequest struct { + DeviceState RpcAppSetDeviceStateRequestDeviceState `protobuf:"varint,1,opt,name=deviceState,proto3,enum=anytype.RpcAppSetDeviceStateRequestDeviceState" json:"deviceState,omitempty"` } -func (m *RpcExternalDropFiles) Reset() { *m = RpcExternalDropFiles{} } -func (m *RpcExternalDropFiles) String() string { return proto.CompactTextString(m) } -func (*RpcExternalDropFiles) ProtoMessage() {} -func (*RpcExternalDropFiles) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 1, 0} +func (m *RpcAppSetDeviceStateRequest) Reset() { *m = RpcAppSetDeviceStateRequest{} } +func (m *RpcAppSetDeviceStateRequest) String() string { return proto.CompactTextString(m) } +func (*RpcAppSetDeviceStateRequest) ProtoMessage() {} +func (*RpcAppSetDeviceStateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 0, 1, 0} } -func (m *RpcExternalDropFiles) XXX_Unmarshal(b []byte) error { +func (m *RpcAppSetDeviceStateRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcExternalDropFiles) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcAppSetDeviceStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcExternalDropFiles.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcAppSetDeviceStateRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -5064,37 +4868,41 @@ func (m *RpcExternalDropFiles) XXX_Marshal(b []byte, deterministic bool) ([]byte return b[:n], nil } } -func (m *RpcExternalDropFiles) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcExternalDropFiles.Merge(m, src) +func (m *RpcAppSetDeviceStateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcAppSetDeviceStateRequest.Merge(m, src) } -func (m *RpcExternalDropFiles) XXX_Size() int { +func (m *RpcAppSetDeviceStateRequest) XXX_Size() int { return m.Size() } -func (m *RpcExternalDropFiles) XXX_DiscardUnknown() { - xxx_messageInfo_RpcExternalDropFiles.DiscardUnknown(m) +func (m *RpcAppSetDeviceStateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcAppSetDeviceStateRequest.DiscardUnknown(m) } -var xxx_messageInfo_RpcExternalDropFiles proto.InternalMessageInfo +var xxx_messageInfo_RpcAppSetDeviceStateRequest proto.InternalMessageInfo -type RpcExternalDropFilesRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - DropTargetId string `protobuf:"bytes,2,opt,name=dropTargetId,proto3" json:"dropTargetId,omitempty"` - Position model.BlockPosition `protobuf:"varint,3,opt,name=position,proto3,enum=anytype.model.BlockPosition" json:"position,omitempty"` - LocalFilePaths []string `protobuf:"bytes,4,rep,name=localFilePaths,proto3" json:"localFilePaths,omitempty"` +func (m *RpcAppSetDeviceStateRequest) GetDeviceState() RpcAppSetDeviceStateRequestDeviceState { + if m != nil { + return m.DeviceState + } + return RpcAppSetDeviceStateRequest_BACKGROUND } -func (m *RpcExternalDropFilesRequest) Reset() { *m = RpcExternalDropFilesRequest{} } -func (m *RpcExternalDropFilesRequest) String() string { return proto.CompactTextString(m) } -func (*RpcExternalDropFilesRequest) ProtoMessage() {} -func (*RpcExternalDropFilesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 1, 0, 0} +type RpcAppSetDeviceStateResponse struct { + Error *RpcAppSetDeviceStateResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` } -func (m *RpcExternalDropFilesRequest) XXX_Unmarshal(b []byte) error { + +func (m *RpcAppSetDeviceStateResponse) Reset() { *m = RpcAppSetDeviceStateResponse{} } +func (m *RpcAppSetDeviceStateResponse) String() string { return proto.CompactTextString(m) } +func (*RpcAppSetDeviceStateResponse) ProtoMessage() {} +func (*RpcAppSetDeviceStateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 0, 1, 1} +} +func (m *RpcAppSetDeviceStateResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcExternalDropFilesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcAppSetDeviceStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcExternalDropFilesRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcAppSetDeviceStateResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -5104,115 +4912,42 @@ func (m *RpcExternalDropFilesRequest) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *RpcExternalDropFilesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcExternalDropFilesRequest.Merge(m, src) +func (m *RpcAppSetDeviceStateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcAppSetDeviceStateResponse.Merge(m, src) } -func (m *RpcExternalDropFilesRequest) XXX_Size() int { +func (m *RpcAppSetDeviceStateResponse) XXX_Size() int { return m.Size() } -func (m *RpcExternalDropFilesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcExternalDropFilesRequest.DiscardUnknown(m) +func (m *RpcAppSetDeviceStateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcAppSetDeviceStateResponse.DiscardUnknown(m) } -var xxx_messageInfo_RpcExternalDropFilesRequest proto.InternalMessageInfo +var xxx_messageInfo_RpcAppSetDeviceStateResponse proto.InternalMessageInfo -func (m *RpcExternalDropFilesRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcExternalDropFilesRequest) GetDropTargetId() string { - if m != nil { - return m.DropTargetId - } - return "" -} - -func (m *RpcExternalDropFilesRequest) GetPosition() model.BlockPosition { - if m != nil { - return m.Position - } - return model.Block_None -} - -func (m *RpcExternalDropFilesRequest) GetLocalFilePaths() []string { - if m != nil { - return m.LocalFilePaths - } - return nil -} - -type RpcExternalDropFilesResponse struct { - Error *RpcExternalDropFilesResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcExternalDropFilesResponse) Reset() { *m = RpcExternalDropFilesResponse{} } -func (m *RpcExternalDropFilesResponse) String() string { return proto.CompactTextString(m) } -func (*RpcExternalDropFilesResponse) ProtoMessage() {} -func (*RpcExternalDropFilesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 1, 0, 1} -} -func (m *RpcExternalDropFilesResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcExternalDropFilesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcExternalDropFilesResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcExternalDropFilesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcExternalDropFilesResponse.Merge(m, src) -} -func (m *RpcExternalDropFilesResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcExternalDropFilesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcExternalDropFilesResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcExternalDropFilesResponse proto.InternalMessageInfo - -func (m *RpcExternalDropFilesResponse) GetError() *RpcExternalDropFilesResponseError { +func (m *RpcAppSetDeviceStateResponse) GetError() *RpcAppSetDeviceStateResponseError { if m != nil { return m.Error } return nil } -func (m *RpcExternalDropFilesResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcExternalDropFilesResponseError struct { - Code RpcExternalDropFilesResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcExternalDropFilesResponseErrorCode" json:"code,omitempty"` +type RpcAppSetDeviceStateResponseError struct { + Code RpcAppSetDeviceStateResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcAppSetDeviceStateResponseErrorCode" json:"code,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` } -func (m *RpcExternalDropFilesResponseError) Reset() { *m = RpcExternalDropFilesResponseError{} } -func (m *RpcExternalDropFilesResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcExternalDropFilesResponseError) ProtoMessage() {} -func (*RpcExternalDropFilesResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 1, 0, 1, 0} +func (m *RpcAppSetDeviceStateResponseError) Reset() { *m = RpcAppSetDeviceStateResponseError{} } +func (m *RpcAppSetDeviceStateResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcAppSetDeviceStateResponseError) ProtoMessage() {} +func (*RpcAppSetDeviceStateResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 0, 1, 1, 0} } -func (m *RpcExternalDropFilesResponseError) XXX_Unmarshal(b []byte) error { +func (m *RpcAppSetDeviceStateResponseError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcExternalDropFilesResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcAppSetDeviceStateResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcExternalDropFilesResponseError.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcAppSetDeviceStateResponseError.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -5222,47 +4957,47 @@ func (m *RpcExternalDropFilesResponseError) XXX_Marshal(b []byte, deterministic return b[:n], nil } } -func (m *RpcExternalDropFilesResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcExternalDropFilesResponseError.Merge(m, src) +func (m *RpcAppSetDeviceStateResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcAppSetDeviceStateResponseError.Merge(m, src) } -func (m *RpcExternalDropFilesResponseError) XXX_Size() int { +func (m *RpcAppSetDeviceStateResponseError) XXX_Size() int { return m.Size() } -func (m *RpcExternalDropFilesResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcExternalDropFilesResponseError.DiscardUnknown(m) +func (m *RpcAppSetDeviceStateResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcAppSetDeviceStateResponseError.DiscardUnknown(m) } -var xxx_messageInfo_RpcExternalDropFilesResponseError proto.InternalMessageInfo +var xxx_messageInfo_RpcAppSetDeviceStateResponseError proto.InternalMessageInfo -func (m *RpcExternalDropFilesResponseError) GetCode() RpcExternalDropFilesResponseErrorCode { +func (m *RpcAppSetDeviceStateResponseError) GetCode() RpcAppSetDeviceStateResponseErrorCode { if m != nil { return m.Code } - return RpcExternalDropFilesResponseError_NULL + return RpcAppSetDeviceStateResponseError_NULL } -func (m *RpcExternalDropFilesResponseError) GetDescription() string { +func (m *RpcAppSetDeviceStateResponseError) GetDescription() string { if m != nil { return m.Description } return "" } -type RpcExternalDropContent struct { +type RpcAppShutdown struct { } -func (m *RpcExternalDropContent) Reset() { *m = RpcExternalDropContent{} } -func (m *RpcExternalDropContent) String() string { return proto.CompactTextString(m) } -func (*RpcExternalDropContent) ProtoMessage() {} -func (*RpcExternalDropContent) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 1, 1} +func (m *RpcAppShutdown) Reset() { *m = RpcAppShutdown{} } +func (m *RpcAppShutdown) String() string { return proto.CompactTextString(m) } +func (*RpcAppShutdown) ProtoMessage() {} +func (*RpcAppShutdown) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 0, 2} } -func (m *RpcExternalDropContent) XXX_Unmarshal(b []byte) error { +func (m *RpcAppShutdown) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcExternalDropContent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcAppShutdown) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcExternalDropContent.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcAppShutdown.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -5272,36 +5007,33 @@ func (m *RpcExternalDropContent) XXX_Marshal(b []byte, deterministic bool) ([]by return b[:n], nil } } -func (m *RpcExternalDropContent) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcExternalDropContent.Merge(m, src) +func (m *RpcAppShutdown) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcAppShutdown.Merge(m, src) } -func (m *RpcExternalDropContent) XXX_Size() int { +func (m *RpcAppShutdown) XXX_Size() int { return m.Size() } -func (m *RpcExternalDropContent) XXX_DiscardUnknown() { - xxx_messageInfo_RpcExternalDropContent.DiscardUnknown(m) +func (m *RpcAppShutdown) XXX_DiscardUnknown() { + xxx_messageInfo_RpcAppShutdown.DiscardUnknown(m) } -var xxx_messageInfo_RpcExternalDropContent proto.InternalMessageInfo +var xxx_messageInfo_RpcAppShutdown proto.InternalMessageInfo -type RpcExternalDropContentRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - FocusedBlockId string `protobuf:"bytes,2,opt,name=focusedBlockId,proto3" json:"focusedBlockId,omitempty"` - Content []byte `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` +type RpcAppShutdownRequest struct { } -func (m *RpcExternalDropContentRequest) Reset() { *m = RpcExternalDropContentRequest{} } -func (m *RpcExternalDropContentRequest) String() string { return proto.CompactTextString(m) } -func (*RpcExternalDropContentRequest) ProtoMessage() {} -func (*RpcExternalDropContentRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 1, 1, 0} +func (m *RpcAppShutdownRequest) Reset() { *m = RpcAppShutdownRequest{} } +func (m *RpcAppShutdownRequest) String() string { return proto.CompactTextString(m) } +func (*RpcAppShutdownRequest) ProtoMessage() {} +func (*RpcAppShutdownRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 0, 2, 0} } -func (m *RpcExternalDropContentRequest) XXX_Unmarshal(b []byte) error { +func (m *RpcAppShutdownRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcExternalDropContentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcAppShutdownRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcExternalDropContentRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcAppShutdownRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -5311,55 +5043,34 @@ func (m *RpcExternalDropContentRequest) XXX_Marshal(b []byte, deterministic bool return b[:n], nil } } -func (m *RpcExternalDropContentRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcExternalDropContentRequest.Merge(m, src) +func (m *RpcAppShutdownRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcAppShutdownRequest.Merge(m, src) } -func (m *RpcExternalDropContentRequest) XXX_Size() int { +func (m *RpcAppShutdownRequest) XXX_Size() int { return m.Size() } -func (m *RpcExternalDropContentRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcExternalDropContentRequest.DiscardUnknown(m) +func (m *RpcAppShutdownRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcAppShutdownRequest.DiscardUnknown(m) } -var xxx_messageInfo_RpcExternalDropContentRequest proto.InternalMessageInfo +var xxx_messageInfo_RpcAppShutdownRequest proto.InternalMessageInfo -func (m *RpcExternalDropContentRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" +type RpcAppShutdownResponse struct { + Error *RpcAppShutdownResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` } -func (m *RpcExternalDropContentRequest) GetFocusedBlockId() string { - if m != nil { - return m.FocusedBlockId - } - return "" +func (m *RpcAppShutdownResponse) Reset() { *m = RpcAppShutdownResponse{} } +func (m *RpcAppShutdownResponse) String() string { return proto.CompactTextString(m) } +func (*RpcAppShutdownResponse) ProtoMessage() {} +func (*RpcAppShutdownResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 0, 2, 1} } - -func (m *RpcExternalDropContentRequest) GetContent() []byte { - if m != nil { - return m.Content - } - return nil -} - -type RpcExternalDropContentResponse struct { - Error *RpcExternalDropContentResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` -} - -func (m *RpcExternalDropContentResponse) Reset() { *m = RpcExternalDropContentResponse{} } -func (m *RpcExternalDropContentResponse) String() string { return proto.CompactTextString(m) } -func (*RpcExternalDropContentResponse) ProtoMessage() {} -func (*RpcExternalDropContentResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 1, 1, 1} -} -func (m *RpcExternalDropContentResponse) XXX_Unmarshal(b []byte) error { +func (m *RpcAppShutdownResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcExternalDropContentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcAppShutdownResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcExternalDropContentResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcAppShutdownResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -5369,4997 +5080,42 @@ func (m *RpcExternalDropContentResponse) XXX_Marshal(b []byte, deterministic boo return b[:n], nil } } -func (m *RpcExternalDropContentResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcExternalDropContentResponse.Merge(m, src) +func (m *RpcAppShutdownResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcAppShutdownResponse.Merge(m, src) } -func (m *RpcExternalDropContentResponse) XXX_Size() int { +func (m *RpcAppShutdownResponse) XXX_Size() int { return m.Size() } -func (m *RpcExternalDropContentResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcExternalDropContentResponse.DiscardUnknown(m) +func (m *RpcAppShutdownResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcAppShutdownResponse.DiscardUnknown(m) } -var xxx_messageInfo_RpcExternalDropContentResponse proto.InternalMessageInfo +var xxx_messageInfo_RpcAppShutdownResponse proto.InternalMessageInfo -func (m *RpcExternalDropContentResponse) GetError() *RpcExternalDropContentResponseError { +func (m *RpcAppShutdownResponse) GetError() *RpcAppShutdownResponseError { if m != nil { return m.Error } return nil } -type RpcExternalDropContentResponseError struct { - Code RpcExternalDropContentResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcExternalDropContentResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcExternalDropContentResponseError) Reset() { *m = RpcExternalDropContentResponseError{} } -func (m *RpcExternalDropContentResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcExternalDropContentResponseError) ProtoMessage() {} -func (*RpcExternalDropContentResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 1, 1, 1, 0} -} -func (m *RpcExternalDropContentResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcExternalDropContentResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcExternalDropContentResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcExternalDropContentResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcExternalDropContentResponseError.Merge(m, src) -} -func (m *RpcExternalDropContentResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcExternalDropContentResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcExternalDropContentResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcExternalDropContentResponseError proto.InternalMessageInfo - -func (m *RpcExternalDropContentResponseError) GetCode() RpcExternalDropContentResponseErrorCode { - if m != nil { - return m.Code - } - return RpcExternalDropContentResponseError_NULL -} - -func (m *RpcExternalDropContentResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockList struct { -} - -func (m *RpcBlockList) Reset() { *m = RpcBlockList{} } -func (m *RpcBlockList) String() string { return proto.CompactTextString(m) } -func (*RpcBlockList) ProtoMessage() {} -func (*RpcBlockList) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2} -} -func (m *RpcBlockList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockList.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockList) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockList.Merge(m, src) -} -func (m *RpcBlockList) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockList) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockList.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockList proto.InternalMessageInfo - -type RpcBlockListConvertChildrenToPages struct { -} - -func (m *RpcBlockListConvertChildrenToPages) Reset() { *m = RpcBlockListConvertChildrenToPages{} } -func (m *RpcBlockListConvertChildrenToPages) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListConvertChildrenToPages) ProtoMessage() {} -func (*RpcBlockListConvertChildrenToPages) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 0} -} -func (m *RpcBlockListConvertChildrenToPages) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListConvertChildrenToPages) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListConvertChildrenToPages.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListConvertChildrenToPages) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListConvertChildrenToPages.Merge(m, src) -} -func (m *RpcBlockListConvertChildrenToPages) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListConvertChildrenToPages) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListConvertChildrenToPages.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListConvertChildrenToPages proto.InternalMessageInfo - -type RpcBlockListConvertChildrenToPagesRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockIds []string `protobuf:"bytes,2,rep,name=blockIds,proto3" json:"blockIds,omitempty"` - ObjectType string `protobuf:"bytes,3,opt,name=objectType,proto3" json:"objectType,omitempty"` -} - -func (m *RpcBlockListConvertChildrenToPagesRequest) Reset() { - *m = RpcBlockListConvertChildrenToPagesRequest{} -} -func (m *RpcBlockListConvertChildrenToPagesRequest) String() string { - return proto.CompactTextString(m) -} -func (*RpcBlockListConvertChildrenToPagesRequest) ProtoMessage() {} -func (*RpcBlockListConvertChildrenToPagesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 0, 0} -} -func (m *RpcBlockListConvertChildrenToPagesRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListConvertChildrenToPagesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListConvertChildrenToPagesRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListConvertChildrenToPagesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListConvertChildrenToPagesRequest.Merge(m, src) -} -func (m *RpcBlockListConvertChildrenToPagesRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListConvertChildrenToPagesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListConvertChildrenToPagesRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListConvertChildrenToPagesRequest proto.InternalMessageInfo - -func (m *RpcBlockListConvertChildrenToPagesRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockListConvertChildrenToPagesRequest) GetBlockIds() []string { - if m != nil { - return m.BlockIds - } - return nil -} - -func (m *RpcBlockListConvertChildrenToPagesRequest) GetObjectType() string { - if m != nil { - return m.ObjectType - } - return "" -} - -type RpcBlockListConvertChildrenToPagesResponse struct { - Error *RpcBlockListConvertChildrenToPagesResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - LinkIds []string `protobuf:"bytes,2,rep,name=linkIds,proto3" json:"linkIds,omitempty"` - Event *ResponseEvent `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockListConvertChildrenToPagesResponse) Reset() { - *m = RpcBlockListConvertChildrenToPagesResponse{} -} -func (m *RpcBlockListConvertChildrenToPagesResponse) String() string { - return proto.CompactTextString(m) -} -func (*RpcBlockListConvertChildrenToPagesResponse) ProtoMessage() {} -func (*RpcBlockListConvertChildrenToPagesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 0, 1} -} -func (m *RpcBlockListConvertChildrenToPagesResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListConvertChildrenToPagesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListConvertChildrenToPagesResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListConvertChildrenToPagesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListConvertChildrenToPagesResponse.Merge(m, src) -} -func (m *RpcBlockListConvertChildrenToPagesResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListConvertChildrenToPagesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListConvertChildrenToPagesResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListConvertChildrenToPagesResponse proto.InternalMessageInfo - -func (m *RpcBlockListConvertChildrenToPagesResponse) GetError() *RpcBlockListConvertChildrenToPagesResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockListConvertChildrenToPagesResponse) GetLinkIds() []string { - if m != nil { - return m.LinkIds - } - return nil -} - -func (m *RpcBlockListConvertChildrenToPagesResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockListConvertChildrenToPagesResponseError struct { - Code RpcBlockListConvertChildrenToPagesResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockListConvertChildrenToPagesResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockListConvertChildrenToPagesResponseError) Reset() { - *m = RpcBlockListConvertChildrenToPagesResponseError{} -} -func (m *RpcBlockListConvertChildrenToPagesResponseError) String() string { - return proto.CompactTextString(m) -} -func (*RpcBlockListConvertChildrenToPagesResponseError) ProtoMessage() {} -func (*RpcBlockListConvertChildrenToPagesResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 0, 1, 0} -} -func (m *RpcBlockListConvertChildrenToPagesResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListConvertChildrenToPagesResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListConvertChildrenToPagesResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListConvertChildrenToPagesResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListConvertChildrenToPagesResponseError.Merge(m, src) -} -func (m *RpcBlockListConvertChildrenToPagesResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListConvertChildrenToPagesResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListConvertChildrenToPagesResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListConvertChildrenToPagesResponseError proto.InternalMessageInfo - -func (m *RpcBlockListConvertChildrenToPagesResponseError) GetCode() RpcBlockListConvertChildrenToPagesResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockListConvertChildrenToPagesResponseError_NULL -} - -func (m *RpcBlockListConvertChildrenToPagesResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockListMove struct { -} - -func (m *RpcBlockListMove) Reset() { *m = RpcBlockListMove{} } -func (m *RpcBlockListMove) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListMove) ProtoMessage() {} -func (*RpcBlockListMove) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 1} -} -func (m *RpcBlockListMove) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListMove) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListMove.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListMove) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListMove.Merge(m, src) -} -func (m *RpcBlockListMove) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListMove) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListMove.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListMove proto.InternalMessageInfo - -type RpcBlockListMoveRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockIds []string `protobuf:"bytes,2,rep,name=blockIds,proto3" json:"blockIds,omitempty"` - TargetContextId string `protobuf:"bytes,3,opt,name=targetContextId,proto3" json:"targetContextId,omitempty"` - DropTargetId string `protobuf:"bytes,4,opt,name=dropTargetId,proto3" json:"dropTargetId,omitempty"` - Position model.BlockPosition `protobuf:"varint,5,opt,name=position,proto3,enum=anytype.model.BlockPosition" json:"position,omitempty"` -} - -func (m *RpcBlockListMoveRequest) Reset() { *m = RpcBlockListMoveRequest{} } -func (m *RpcBlockListMoveRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListMoveRequest) ProtoMessage() {} -func (*RpcBlockListMoveRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 1, 0} -} -func (m *RpcBlockListMoveRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListMoveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListMoveRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListMoveRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListMoveRequest.Merge(m, src) -} -func (m *RpcBlockListMoveRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListMoveRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListMoveRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListMoveRequest proto.InternalMessageInfo - -func (m *RpcBlockListMoveRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockListMoveRequest) GetBlockIds() []string { - if m != nil { - return m.BlockIds - } - return nil -} - -func (m *RpcBlockListMoveRequest) GetTargetContextId() string { - if m != nil { - return m.TargetContextId - } - return "" -} - -func (m *RpcBlockListMoveRequest) GetDropTargetId() string { - if m != nil { - return m.DropTargetId - } - return "" -} - -func (m *RpcBlockListMoveRequest) GetPosition() model.BlockPosition { - if m != nil { - return m.Position - } - return model.Block_None -} - -type RpcBlockListMoveResponse struct { - Error *RpcBlockListMoveResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockListMoveResponse) Reset() { *m = RpcBlockListMoveResponse{} } -func (m *RpcBlockListMoveResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListMoveResponse) ProtoMessage() {} -func (*RpcBlockListMoveResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 1, 1} -} -func (m *RpcBlockListMoveResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListMoveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListMoveResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListMoveResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListMoveResponse.Merge(m, src) -} -func (m *RpcBlockListMoveResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListMoveResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListMoveResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListMoveResponse proto.InternalMessageInfo - -func (m *RpcBlockListMoveResponse) GetError() *RpcBlockListMoveResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockListMoveResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockListMoveResponseError struct { - Code RpcBlockListMoveResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockListMoveResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockListMoveResponseError) Reset() { *m = RpcBlockListMoveResponseError{} } -func (m *RpcBlockListMoveResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListMoveResponseError) ProtoMessage() {} -func (*RpcBlockListMoveResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 1, 1, 0} -} -func (m *RpcBlockListMoveResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListMoveResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListMoveResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListMoveResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListMoveResponseError.Merge(m, src) -} -func (m *RpcBlockListMoveResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListMoveResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListMoveResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListMoveResponseError proto.InternalMessageInfo - -func (m *RpcBlockListMoveResponseError) GetCode() RpcBlockListMoveResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockListMoveResponseError_NULL -} - -func (m *RpcBlockListMoveResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockListMoveToNewPage struct { -} - -func (m *RpcBlockListMoveToNewPage) Reset() { *m = RpcBlockListMoveToNewPage{} } -func (m *RpcBlockListMoveToNewPage) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListMoveToNewPage) ProtoMessage() {} -func (*RpcBlockListMoveToNewPage) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 2} -} -func (m *RpcBlockListMoveToNewPage) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListMoveToNewPage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListMoveToNewPage.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListMoveToNewPage) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListMoveToNewPage.Merge(m, src) -} -func (m *RpcBlockListMoveToNewPage) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListMoveToNewPage) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListMoveToNewPage.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListMoveToNewPage proto.InternalMessageInfo - -type RpcBlockListMoveToNewPageRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockIds []string `protobuf:"bytes,2,rep,name=blockIds,proto3" json:"blockIds,omitempty"` - Details *types.Struct `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"` - DropTargetId string `protobuf:"bytes,4,opt,name=dropTargetId,proto3" json:"dropTargetId,omitempty"` - Position model.BlockPosition `protobuf:"varint,5,opt,name=position,proto3,enum=anytype.model.BlockPosition" json:"position,omitempty"` -} - -func (m *RpcBlockListMoveToNewPageRequest) Reset() { *m = RpcBlockListMoveToNewPageRequest{} } -func (m *RpcBlockListMoveToNewPageRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListMoveToNewPageRequest) ProtoMessage() {} -func (*RpcBlockListMoveToNewPageRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 2, 0} -} -func (m *RpcBlockListMoveToNewPageRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListMoveToNewPageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListMoveToNewPageRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListMoveToNewPageRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListMoveToNewPageRequest.Merge(m, src) -} -func (m *RpcBlockListMoveToNewPageRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListMoveToNewPageRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListMoveToNewPageRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListMoveToNewPageRequest proto.InternalMessageInfo - -func (m *RpcBlockListMoveToNewPageRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockListMoveToNewPageRequest) GetBlockIds() []string { - if m != nil { - return m.BlockIds - } - return nil -} - -func (m *RpcBlockListMoveToNewPageRequest) GetDetails() *types.Struct { - if m != nil { - return m.Details - } - return nil -} - -func (m *RpcBlockListMoveToNewPageRequest) GetDropTargetId() string { - if m != nil { - return m.DropTargetId - } - return "" -} - -func (m *RpcBlockListMoveToNewPageRequest) GetPosition() model.BlockPosition { - if m != nil { - return m.Position - } - return model.Block_None -} - -type RpcBlockListMoveToNewPageResponse struct { - Error *RpcBlockListMoveToNewPageResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - LinkId string `protobuf:"bytes,2,opt,name=linkId,proto3" json:"linkId,omitempty"` - Event *ResponseEvent `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockListMoveToNewPageResponse) Reset() { *m = RpcBlockListMoveToNewPageResponse{} } -func (m *RpcBlockListMoveToNewPageResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListMoveToNewPageResponse) ProtoMessage() {} -func (*RpcBlockListMoveToNewPageResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 2, 1} -} -func (m *RpcBlockListMoveToNewPageResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListMoveToNewPageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListMoveToNewPageResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListMoveToNewPageResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListMoveToNewPageResponse.Merge(m, src) -} -func (m *RpcBlockListMoveToNewPageResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListMoveToNewPageResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListMoveToNewPageResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListMoveToNewPageResponse proto.InternalMessageInfo - -func (m *RpcBlockListMoveToNewPageResponse) GetError() *RpcBlockListMoveToNewPageResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockListMoveToNewPageResponse) GetLinkId() string { - if m != nil { - return m.LinkId - } - return "" -} - -func (m *RpcBlockListMoveToNewPageResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockListMoveToNewPageResponseError struct { - Code RpcBlockListMoveToNewPageResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockListMoveToNewPageResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockListMoveToNewPageResponseError) Reset() { - *m = RpcBlockListMoveToNewPageResponseError{} -} -func (m *RpcBlockListMoveToNewPageResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListMoveToNewPageResponseError) ProtoMessage() {} -func (*RpcBlockListMoveToNewPageResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 2, 1, 0} -} -func (m *RpcBlockListMoveToNewPageResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListMoveToNewPageResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListMoveToNewPageResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListMoveToNewPageResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListMoveToNewPageResponseError.Merge(m, src) -} -func (m *RpcBlockListMoveToNewPageResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListMoveToNewPageResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListMoveToNewPageResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListMoveToNewPageResponseError proto.InternalMessageInfo - -func (m *RpcBlockListMoveToNewPageResponseError) GetCode() RpcBlockListMoveToNewPageResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockListMoveToNewPageResponseError_NULL -} - -func (m *RpcBlockListMoveToNewPageResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -// -// Makes blocks copy by given ids and paste it to shown place -type RpcBlockListDuplicate struct { -} - -func (m *RpcBlockListDuplicate) Reset() { *m = RpcBlockListDuplicate{} } -func (m *RpcBlockListDuplicate) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListDuplicate) ProtoMessage() {} -func (*RpcBlockListDuplicate) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 3} -} -func (m *RpcBlockListDuplicate) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListDuplicate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListDuplicate.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListDuplicate) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListDuplicate.Merge(m, src) -} -func (m *RpcBlockListDuplicate) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListDuplicate) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListDuplicate.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListDuplicate proto.InternalMessageInfo - -type RpcBlockListDuplicateRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - TargetId string `protobuf:"bytes,2,opt,name=targetId,proto3" json:"targetId,omitempty"` - BlockIds []string `protobuf:"bytes,3,rep,name=blockIds,proto3" json:"blockIds,omitempty"` - Position model.BlockPosition `protobuf:"varint,4,opt,name=position,proto3,enum=anytype.model.BlockPosition" json:"position,omitempty"` -} - -func (m *RpcBlockListDuplicateRequest) Reset() { *m = RpcBlockListDuplicateRequest{} } -func (m *RpcBlockListDuplicateRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListDuplicateRequest) ProtoMessage() {} -func (*RpcBlockListDuplicateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 3, 0} -} -func (m *RpcBlockListDuplicateRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListDuplicateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListDuplicateRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListDuplicateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListDuplicateRequest.Merge(m, src) -} -func (m *RpcBlockListDuplicateRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListDuplicateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListDuplicateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListDuplicateRequest proto.InternalMessageInfo - -func (m *RpcBlockListDuplicateRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockListDuplicateRequest) GetTargetId() string { - if m != nil { - return m.TargetId - } - return "" -} - -func (m *RpcBlockListDuplicateRequest) GetBlockIds() []string { - if m != nil { - return m.BlockIds - } - return nil -} - -func (m *RpcBlockListDuplicateRequest) GetPosition() model.BlockPosition { - if m != nil { - return m.Position - } - return model.Block_None -} - -type RpcBlockListDuplicateResponse struct { - Error *RpcBlockListDuplicateResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - BlockIds []string `protobuf:"bytes,2,rep,name=blockIds,proto3" json:"blockIds,omitempty"` - Event *ResponseEvent `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockListDuplicateResponse) Reset() { *m = RpcBlockListDuplicateResponse{} } -func (m *RpcBlockListDuplicateResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListDuplicateResponse) ProtoMessage() {} -func (*RpcBlockListDuplicateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 3, 1} -} -func (m *RpcBlockListDuplicateResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListDuplicateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListDuplicateResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListDuplicateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListDuplicateResponse.Merge(m, src) -} -func (m *RpcBlockListDuplicateResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListDuplicateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListDuplicateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListDuplicateResponse proto.InternalMessageInfo - -func (m *RpcBlockListDuplicateResponse) GetError() *RpcBlockListDuplicateResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockListDuplicateResponse) GetBlockIds() []string { - if m != nil { - return m.BlockIds - } - return nil -} - -func (m *RpcBlockListDuplicateResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockListDuplicateResponseError struct { - Code RpcBlockListDuplicateResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockListDuplicateResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockListDuplicateResponseError) Reset() { *m = RpcBlockListDuplicateResponseError{} } -func (m *RpcBlockListDuplicateResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListDuplicateResponseError) ProtoMessage() {} -func (*RpcBlockListDuplicateResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 3, 1, 0} -} -func (m *RpcBlockListDuplicateResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListDuplicateResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListDuplicateResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListDuplicateResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListDuplicateResponseError.Merge(m, src) -} -func (m *RpcBlockListDuplicateResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListDuplicateResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListDuplicateResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListDuplicateResponseError proto.InternalMessageInfo - -func (m *RpcBlockListDuplicateResponseError) GetCode() RpcBlockListDuplicateResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockListDuplicateResponseError_NULL -} - -func (m *RpcBlockListDuplicateResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockListSet struct { -} - -func (m *RpcBlockListSet) Reset() { *m = RpcBlockListSet{} } -func (m *RpcBlockListSet) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListSet) ProtoMessage() {} -func (*RpcBlockListSet) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4} -} -func (m *RpcBlockListSet) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListSet.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListSet) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListSet.Merge(m, src) -} -func (m *RpcBlockListSet) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListSet) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListSet.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListSet proto.InternalMessageInfo - -// commands acceptable only for text blocks, others will be ignored -type RpcBlockListSetText struct { -} - -func (m *RpcBlockListSetText) Reset() { *m = RpcBlockListSetText{} } -func (m *RpcBlockListSetText) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListSetText) ProtoMessage() {} -func (*RpcBlockListSetText) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 0} -} -func (m *RpcBlockListSetText) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListSetText) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListSetText.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListSetText) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListSetText.Merge(m, src) -} -func (m *RpcBlockListSetText) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListSetText) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListSetText.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListSetText proto.InternalMessageInfo - -type RpcBlockListSetTextStyle struct { -} - -func (m *RpcBlockListSetTextStyle) Reset() { *m = RpcBlockListSetTextStyle{} } -func (m *RpcBlockListSetTextStyle) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListSetTextStyle) ProtoMessage() {} -func (*RpcBlockListSetTextStyle) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 0, 0} -} -func (m *RpcBlockListSetTextStyle) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListSetTextStyle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListSetTextStyle.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListSetTextStyle) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListSetTextStyle.Merge(m, src) -} -func (m *RpcBlockListSetTextStyle) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListSetTextStyle) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListSetTextStyle.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListSetTextStyle proto.InternalMessageInfo - -type RpcBlockListSetTextStyleRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockIds []string `protobuf:"bytes,2,rep,name=blockIds,proto3" json:"blockIds,omitempty"` - Style model.BlockContentTextStyle `protobuf:"varint,3,opt,name=style,proto3,enum=anytype.model.BlockContentTextStyle" json:"style,omitempty"` -} - -func (m *RpcBlockListSetTextStyleRequest) Reset() { *m = RpcBlockListSetTextStyleRequest{} } -func (m *RpcBlockListSetTextStyleRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListSetTextStyleRequest) ProtoMessage() {} -func (*RpcBlockListSetTextStyleRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 0, 0, 0} -} -func (m *RpcBlockListSetTextStyleRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListSetTextStyleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListSetTextStyleRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListSetTextStyleRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListSetTextStyleRequest.Merge(m, src) -} -func (m *RpcBlockListSetTextStyleRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListSetTextStyleRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListSetTextStyleRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListSetTextStyleRequest proto.InternalMessageInfo - -func (m *RpcBlockListSetTextStyleRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockListSetTextStyleRequest) GetBlockIds() []string { - if m != nil { - return m.BlockIds - } - return nil -} - -func (m *RpcBlockListSetTextStyleRequest) GetStyle() model.BlockContentTextStyle { - if m != nil { - return m.Style - } - return model.BlockContentText_Paragraph -} - -type RpcBlockListSetTextStyleResponse struct { - Error *RpcBlockListSetTextStyleResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockListSetTextStyleResponse) Reset() { *m = RpcBlockListSetTextStyleResponse{} } -func (m *RpcBlockListSetTextStyleResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListSetTextStyleResponse) ProtoMessage() {} -func (*RpcBlockListSetTextStyleResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 0, 0, 1} -} -func (m *RpcBlockListSetTextStyleResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListSetTextStyleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListSetTextStyleResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListSetTextStyleResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListSetTextStyleResponse.Merge(m, src) -} -func (m *RpcBlockListSetTextStyleResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListSetTextStyleResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListSetTextStyleResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListSetTextStyleResponse proto.InternalMessageInfo - -func (m *RpcBlockListSetTextStyleResponse) GetError() *RpcBlockListSetTextStyleResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockListSetTextStyleResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockListSetTextStyleResponseError struct { - Code RpcBlockListSetTextStyleResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockListSetTextStyleResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockListSetTextStyleResponseError) Reset() { *m = RpcBlockListSetTextStyleResponseError{} } -func (m *RpcBlockListSetTextStyleResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListSetTextStyleResponseError) ProtoMessage() {} -func (*RpcBlockListSetTextStyleResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 0, 0, 1, 0} -} -func (m *RpcBlockListSetTextStyleResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListSetTextStyleResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListSetTextStyleResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListSetTextStyleResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListSetTextStyleResponseError.Merge(m, src) -} -func (m *RpcBlockListSetTextStyleResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListSetTextStyleResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListSetTextStyleResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListSetTextStyleResponseError proto.InternalMessageInfo - -func (m *RpcBlockListSetTextStyleResponseError) GetCode() RpcBlockListSetTextStyleResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockListSetTextStyleResponseError_NULL -} - -func (m *RpcBlockListSetTextStyleResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockListSetTextColor struct { -} - -func (m *RpcBlockListSetTextColor) Reset() { *m = RpcBlockListSetTextColor{} } -func (m *RpcBlockListSetTextColor) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListSetTextColor) ProtoMessage() {} -func (*RpcBlockListSetTextColor) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 0, 1} -} -func (m *RpcBlockListSetTextColor) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListSetTextColor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListSetTextColor.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListSetTextColor) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListSetTextColor.Merge(m, src) -} -func (m *RpcBlockListSetTextColor) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListSetTextColor) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListSetTextColor.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListSetTextColor proto.InternalMessageInfo - -type RpcBlockListSetTextColorRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockIds []string `protobuf:"bytes,2,rep,name=blockIds,proto3" json:"blockIds,omitempty"` - Color string `protobuf:"bytes,3,opt,name=color,proto3" json:"color,omitempty"` -} - -func (m *RpcBlockListSetTextColorRequest) Reset() { *m = RpcBlockListSetTextColorRequest{} } -func (m *RpcBlockListSetTextColorRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListSetTextColorRequest) ProtoMessage() {} -func (*RpcBlockListSetTextColorRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 0, 1, 0} -} -func (m *RpcBlockListSetTextColorRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListSetTextColorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListSetTextColorRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListSetTextColorRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListSetTextColorRequest.Merge(m, src) -} -func (m *RpcBlockListSetTextColorRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListSetTextColorRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListSetTextColorRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListSetTextColorRequest proto.InternalMessageInfo - -func (m *RpcBlockListSetTextColorRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockListSetTextColorRequest) GetBlockIds() []string { - if m != nil { - return m.BlockIds - } - return nil -} - -func (m *RpcBlockListSetTextColorRequest) GetColor() string { - if m != nil { - return m.Color - } - return "" -} - -type RpcBlockListSetTextColorResponse struct { - Error *RpcBlockListSetTextColorResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockListSetTextColorResponse) Reset() { *m = RpcBlockListSetTextColorResponse{} } -func (m *RpcBlockListSetTextColorResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListSetTextColorResponse) ProtoMessage() {} -func (*RpcBlockListSetTextColorResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 0, 1, 1} -} -func (m *RpcBlockListSetTextColorResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListSetTextColorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListSetTextColorResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListSetTextColorResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListSetTextColorResponse.Merge(m, src) -} -func (m *RpcBlockListSetTextColorResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListSetTextColorResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListSetTextColorResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListSetTextColorResponse proto.InternalMessageInfo - -func (m *RpcBlockListSetTextColorResponse) GetError() *RpcBlockListSetTextColorResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockListSetTextColorResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockListSetTextColorResponseError struct { - Code RpcBlockListSetTextColorResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockListSetTextColorResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockListSetTextColorResponseError) Reset() { *m = RpcBlockListSetTextColorResponseError{} } -func (m *RpcBlockListSetTextColorResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListSetTextColorResponseError) ProtoMessage() {} -func (*RpcBlockListSetTextColorResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 0, 1, 1, 0} -} -func (m *RpcBlockListSetTextColorResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListSetTextColorResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListSetTextColorResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListSetTextColorResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListSetTextColorResponseError.Merge(m, src) -} -func (m *RpcBlockListSetTextColorResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListSetTextColorResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListSetTextColorResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListSetTextColorResponseError proto.InternalMessageInfo - -func (m *RpcBlockListSetTextColorResponseError) GetCode() RpcBlockListSetTextColorResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockListSetTextColorResponseError_NULL -} - -func (m *RpcBlockListSetTextColorResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockListSetTextMark struct { -} - -func (m *RpcBlockListSetTextMark) Reset() { *m = RpcBlockListSetTextMark{} } -func (m *RpcBlockListSetTextMark) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListSetTextMark) ProtoMessage() {} -func (*RpcBlockListSetTextMark) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 0, 2} -} -func (m *RpcBlockListSetTextMark) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListSetTextMark) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListSetTextMark.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListSetTextMark) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListSetTextMark.Merge(m, src) -} -func (m *RpcBlockListSetTextMark) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListSetTextMark) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListSetTextMark.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListSetTextMark proto.InternalMessageInfo - -type RpcBlockListSetTextMarkRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockIds []string `protobuf:"bytes,2,rep,name=blockIds,proto3" json:"blockIds,omitempty"` - Mark *model.BlockContentTextMark `protobuf:"bytes,3,opt,name=mark,proto3" json:"mark,omitempty"` -} - -func (m *RpcBlockListSetTextMarkRequest) Reset() { *m = RpcBlockListSetTextMarkRequest{} } -func (m *RpcBlockListSetTextMarkRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListSetTextMarkRequest) ProtoMessage() {} -func (*RpcBlockListSetTextMarkRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 0, 2, 0} -} -func (m *RpcBlockListSetTextMarkRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListSetTextMarkRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListSetTextMarkRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListSetTextMarkRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListSetTextMarkRequest.Merge(m, src) -} -func (m *RpcBlockListSetTextMarkRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListSetTextMarkRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListSetTextMarkRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListSetTextMarkRequest proto.InternalMessageInfo - -func (m *RpcBlockListSetTextMarkRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockListSetTextMarkRequest) GetBlockIds() []string { - if m != nil { - return m.BlockIds - } - return nil -} - -func (m *RpcBlockListSetTextMarkRequest) GetMark() *model.BlockContentTextMark { - if m != nil { - return m.Mark - } - return nil -} - -type RpcBlockListSetTextMarkResponse struct { - Error *RpcBlockListSetTextMarkResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockListSetTextMarkResponse) Reset() { *m = RpcBlockListSetTextMarkResponse{} } -func (m *RpcBlockListSetTextMarkResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListSetTextMarkResponse) ProtoMessage() {} -func (*RpcBlockListSetTextMarkResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 0, 2, 1} -} -func (m *RpcBlockListSetTextMarkResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListSetTextMarkResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListSetTextMarkResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListSetTextMarkResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListSetTextMarkResponse.Merge(m, src) -} -func (m *RpcBlockListSetTextMarkResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListSetTextMarkResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListSetTextMarkResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListSetTextMarkResponse proto.InternalMessageInfo - -func (m *RpcBlockListSetTextMarkResponse) GetError() *RpcBlockListSetTextMarkResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockListSetTextMarkResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockListSetTextMarkResponseError struct { - Code RpcBlockListSetTextMarkResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockListSetTextMarkResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockListSetTextMarkResponseError) Reset() { *m = RpcBlockListSetTextMarkResponseError{} } -func (m *RpcBlockListSetTextMarkResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListSetTextMarkResponseError) ProtoMessage() {} -func (*RpcBlockListSetTextMarkResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 0, 2, 1, 0} -} -func (m *RpcBlockListSetTextMarkResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListSetTextMarkResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListSetTextMarkResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListSetTextMarkResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListSetTextMarkResponseError.Merge(m, src) -} -func (m *RpcBlockListSetTextMarkResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListSetTextMarkResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListSetTextMarkResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListSetTextMarkResponseError proto.InternalMessageInfo - -func (m *RpcBlockListSetTextMarkResponseError) GetCode() RpcBlockListSetTextMarkResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockListSetTextMarkResponseError_NULL -} - -func (m *RpcBlockListSetTextMarkResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockListSetBackgroundColor struct { -} - -func (m *RpcBlockListSetBackgroundColor) Reset() { *m = RpcBlockListSetBackgroundColor{} } -func (m *RpcBlockListSetBackgroundColor) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListSetBackgroundColor) ProtoMessage() {} -func (*RpcBlockListSetBackgroundColor) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 1} -} -func (m *RpcBlockListSetBackgroundColor) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListSetBackgroundColor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListSetBackgroundColor.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListSetBackgroundColor) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListSetBackgroundColor.Merge(m, src) -} -func (m *RpcBlockListSetBackgroundColor) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListSetBackgroundColor) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListSetBackgroundColor.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListSetBackgroundColor proto.InternalMessageInfo - -type RpcBlockListSetBackgroundColorRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockIds []string `protobuf:"bytes,2,rep,name=blockIds,proto3" json:"blockIds,omitempty"` - Color string `protobuf:"bytes,3,opt,name=color,proto3" json:"color,omitempty"` -} - -func (m *RpcBlockListSetBackgroundColorRequest) Reset() { *m = RpcBlockListSetBackgroundColorRequest{} } -func (m *RpcBlockListSetBackgroundColorRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListSetBackgroundColorRequest) ProtoMessage() {} -func (*RpcBlockListSetBackgroundColorRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 1, 0} -} -func (m *RpcBlockListSetBackgroundColorRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListSetBackgroundColorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListSetBackgroundColorRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListSetBackgroundColorRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListSetBackgroundColorRequest.Merge(m, src) -} -func (m *RpcBlockListSetBackgroundColorRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListSetBackgroundColorRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListSetBackgroundColorRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListSetBackgroundColorRequest proto.InternalMessageInfo - -func (m *RpcBlockListSetBackgroundColorRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockListSetBackgroundColorRequest) GetBlockIds() []string { - if m != nil { - return m.BlockIds - } - return nil -} - -func (m *RpcBlockListSetBackgroundColorRequest) GetColor() string { - if m != nil { - return m.Color - } - return "" -} - -type RpcBlockListSetBackgroundColorResponse struct { - Error *RpcBlockListSetBackgroundColorResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockListSetBackgroundColorResponse) Reset() { - *m = RpcBlockListSetBackgroundColorResponse{} -} -func (m *RpcBlockListSetBackgroundColorResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListSetBackgroundColorResponse) ProtoMessage() {} -func (*RpcBlockListSetBackgroundColorResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 1, 1} -} -func (m *RpcBlockListSetBackgroundColorResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListSetBackgroundColorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListSetBackgroundColorResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListSetBackgroundColorResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListSetBackgroundColorResponse.Merge(m, src) -} -func (m *RpcBlockListSetBackgroundColorResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListSetBackgroundColorResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListSetBackgroundColorResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListSetBackgroundColorResponse proto.InternalMessageInfo - -func (m *RpcBlockListSetBackgroundColorResponse) GetError() *RpcBlockListSetBackgroundColorResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockListSetBackgroundColorResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockListSetBackgroundColorResponseError struct { - Code RpcBlockListSetBackgroundColorResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockListSetBackgroundColorResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockListSetBackgroundColorResponseError) Reset() { - *m = RpcBlockListSetBackgroundColorResponseError{} -} -func (m *RpcBlockListSetBackgroundColorResponseError) String() string { - return proto.CompactTextString(m) -} -func (*RpcBlockListSetBackgroundColorResponseError) ProtoMessage() {} -func (*RpcBlockListSetBackgroundColorResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 1, 1, 0} -} -func (m *RpcBlockListSetBackgroundColorResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListSetBackgroundColorResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListSetBackgroundColorResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListSetBackgroundColorResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListSetBackgroundColorResponseError.Merge(m, src) -} -func (m *RpcBlockListSetBackgroundColorResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListSetBackgroundColorResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListSetBackgroundColorResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListSetBackgroundColorResponseError proto.InternalMessageInfo - -func (m *RpcBlockListSetBackgroundColorResponseError) GetCode() RpcBlockListSetBackgroundColorResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockListSetBackgroundColorResponseError_NULL -} - -func (m *RpcBlockListSetBackgroundColorResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockListSetAlign struct { -} - -func (m *RpcBlockListSetAlign) Reset() { *m = RpcBlockListSetAlign{} } -func (m *RpcBlockListSetAlign) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListSetAlign) ProtoMessage() {} -func (*RpcBlockListSetAlign) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 2} -} -func (m *RpcBlockListSetAlign) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListSetAlign) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListSetAlign.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListSetAlign) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListSetAlign.Merge(m, src) -} -func (m *RpcBlockListSetAlign) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListSetAlign) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListSetAlign.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListSetAlign proto.InternalMessageInfo - -type RpcBlockListSetAlignRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockIds []string `protobuf:"bytes,2,rep,name=blockIds,proto3" json:"blockIds,omitempty"` - Align model.BlockAlign `protobuf:"varint,3,opt,name=align,proto3,enum=anytype.model.BlockAlign" json:"align,omitempty"` -} - -func (m *RpcBlockListSetAlignRequest) Reset() { *m = RpcBlockListSetAlignRequest{} } -func (m *RpcBlockListSetAlignRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListSetAlignRequest) ProtoMessage() {} -func (*RpcBlockListSetAlignRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 2, 0} -} -func (m *RpcBlockListSetAlignRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListSetAlignRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListSetAlignRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListSetAlignRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListSetAlignRequest.Merge(m, src) -} -func (m *RpcBlockListSetAlignRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListSetAlignRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListSetAlignRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListSetAlignRequest proto.InternalMessageInfo - -func (m *RpcBlockListSetAlignRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockListSetAlignRequest) GetBlockIds() []string { - if m != nil { - return m.BlockIds - } - return nil -} - -func (m *RpcBlockListSetAlignRequest) GetAlign() model.BlockAlign { - if m != nil { - return m.Align - } - return model.Block_AlignLeft -} - -type RpcBlockListSetAlignResponse struct { - Error *RpcBlockListSetAlignResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockListSetAlignResponse) Reset() { *m = RpcBlockListSetAlignResponse{} } -func (m *RpcBlockListSetAlignResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListSetAlignResponse) ProtoMessage() {} -func (*RpcBlockListSetAlignResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 2, 1} -} -func (m *RpcBlockListSetAlignResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListSetAlignResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListSetAlignResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListSetAlignResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListSetAlignResponse.Merge(m, src) -} -func (m *RpcBlockListSetAlignResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListSetAlignResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListSetAlignResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListSetAlignResponse proto.InternalMessageInfo - -func (m *RpcBlockListSetAlignResponse) GetError() *RpcBlockListSetAlignResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockListSetAlignResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockListSetAlignResponseError struct { - Code RpcBlockListSetAlignResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockListSetAlignResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockListSetAlignResponseError) Reset() { *m = RpcBlockListSetAlignResponseError{} } -func (m *RpcBlockListSetAlignResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListSetAlignResponseError) ProtoMessage() {} -func (*RpcBlockListSetAlignResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 2, 1, 0} -} -func (m *RpcBlockListSetAlignResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListSetAlignResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListSetAlignResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListSetAlignResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListSetAlignResponseError.Merge(m, src) -} -func (m *RpcBlockListSetAlignResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListSetAlignResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListSetAlignResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListSetAlignResponseError proto.InternalMessageInfo - -func (m *RpcBlockListSetAlignResponseError) GetCode() RpcBlockListSetAlignResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockListSetAlignResponseError_NULL -} - -func (m *RpcBlockListSetAlignResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockListSetFields struct { -} - -func (m *RpcBlockListSetFields) Reset() { *m = RpcBlockListSetFields{} } -func (m *RpcBlockListSetFields) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListSetFields) ProtoMessage() {} -func (*RpcBlockListSetFields) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 3} -} -func (m *RpcBlockListSetFields) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListSetFields) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListSetFields.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListSetFields) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListSetFields.Merge(m, src) -} -func (m *RpcBlockListSetFields) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListSetFields) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListSetFields.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListSetFields proto.InternalMessageInfo - -type RpcBlockListSetFieldsRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockFields []*RpcBlockListSetFieldsRequestBlockField `protobuf:"bytes,2,rep,name=blockFields,proto3" json:"blockFields,omitempty"` -} - -func (m *RpcBlockListSetFieldsRequest) Reset() { *m = RpcBlockListSetFieldsRequest{} } -func (m *RpcBlockListSetFieldsRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListSetFieldsRequest) ProtoMessage() {} -func (*RpcBlockListSetFieldsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 3, 0} -} -func (m *RpcBlockListSetFieldsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListSetFieldsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListSetFieldsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListSetFieldsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListSetFieldsRequest.Merge(m, src) -} -func (m *RpcBlockListSetFieldsRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListSetFieldsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListSetFieldsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListSetFieldsRequest proto.InternalMessageInfo - -func (m *RpcBlockListSetFieldsRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockListSetFieldsRequest) GetBlockFields() []*RpcBlockListSetFieldsRequestBlockField { - if m != nil { - return m.BlockFields - } - return nil -} - -type RpcBlockListSetFieldsRequestBlockField struct { - BlockId string `protobuf:"bytes,1,opt,name=blockId,proto3" json:"blockId,omitempty"` - Fields *types.Struct `protobuf:"bytes,2,opt,name=fields,proto3" json:"fields,omitempty"` -} - -func (m *RpcBlockListSetFieldsRequestBlockField) Reset() { - *m = RpcBlockListSetFieldsRequestBlockField{} -} -func (m *RpcBlockListSetFieldsRequestBlockField) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListSetFieldsRequestBlockField) ProtoMessage() {} -func (*RpcBlockListSetFieldsRequestBlockField) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 3, 0, 0} -} -func (m *RpcBlockListSetFieldsRequestBlockField) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListSetFieldsRequestBlockField) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListSetFieldsRequestBlockField.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListSetFieldsRequestBlockField) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListSetFieldsRequestBlockField.Merge(m, src) -} -func (m *RpcBlockListSetFieldsRequestBlockField) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListSetFieldsRequestBlockField) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListSetFieldsRequestBlockField.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListSetFieldsRequestBlockField proto.InternalMessageInfo - -func (m *RpcBlockListSetFieldsRequestBlockField) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockListSetFieldsRequestBlockField) GetFields() *types.Struct { - if m != nil { - return m.Fields - } - return nil -} - -type RpcBlockListSetFieldsResponse struct { - Error *RpcBlockListSetFieldsResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockListSetFieldsResponse) Reset() { *m = RpcBlockListSetFieldsResponse{} } -func (m *RpcBlockListSetFieldsResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListSetFieldsResponse) ProtoMessage() {} -func (*RpcBlockListSetFieldsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 3, 1} -} -func (m *RpcBlockListSetFieldsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListSetFieldsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListSetFieldsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListSetFieldsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListSetFieldsResponse.Merge(m, src) -} -func (m *RpcBlockListSetFieldsResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListSetFieldsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListSetFieldsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListSetFieldsResponse proto.InternalMessageInfo - -func (m *RpcBlockListSetFieldsResponse) GetError() *RpcBlockListSetFieldsResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockListSetFieldsResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockListSetFieldsResponseError struct { - Code RpcBlockListSetFieldsResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockListSetFieldsResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockListSetFieldsResponseError) Reset() { *m = RpcBlockListSetFieldsResponseError{} } -func (m *RpcBlockListSetFieldsResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListSetFieldsResponseError) ProtoMessage() {} -func (*RpcBlockListSetFieldsResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 3, 1, 0} -} -func (m *RpcBlockListSetFieldsResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListSetFieldsResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListSetFieldsResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListSetFieldsResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListSetFieldsResponseError.Merge(m, src) -} -func (m *RpcBlockListSetFieldsResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListSetFieldsResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListSetFieldsResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListSetFieldsResponseError proto.InternalMessageInfo - -func (m *RpcBlockListSetFieldsResponseError) GetCode() RpcBlockListSetFieldsResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockListSetFieldsResponseError_NULL -} - -func (m *RpcBlockListSetFieldsResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockListSetDiv struct { -} - -func (m *RpcBlockListSetDiv) Reset() { *m = RpcBlockListSetDiv{} } -func (m *RpcBlockListSetDiv) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListSetDiv) ProtoMessage() {} -func (*RpcBlockListSetDiv) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 4} -} -func (m *RpcBlockListSetDiv) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListSetDiv) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListSetDiv.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListSetDiv) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListSetDiv.Merge(m, src) -} -func (m *RpcBlockListSetDiv) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListSetDiv) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListSetDiv.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListSetDiv proto.InternalMessageInfo - -type RpcBlockListSetDivStyle struct { -} - -func (m *RpcBlockListSetDivStyle) Reset() { *m = RpcBlockListSetDivStyle{} } -func (m *RpcBlockListSetDivStyle) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListSetDivStyle) ProtoMessage() {} -func (*RpcBlockListSetDivStyle) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 4, 0} -} -func (m *RpcBlockListSetDivStyle) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListSetDivStyle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListSetDivStyle.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListSetDivStyle) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListSetDivStyle.Merge(m, src) -} -func (m *RpcBlockListSetDivStyle) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListSetDivStyle) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListSetDivStyle.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListSetDivStyle proto.InternalMessageInfo - -type RpcBlockListSetDivStyleRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockIds []string `protobuf:"bytes,2,rep,name=blockIds,proto3" json:"blockIds,omitempty"` - Style model.BlockContentDivStyle `protobuf:"varint,3,opt,name=style,proto3,enum=anytype.model.BlockContentDivStyle" json:"style,omitempty"` -} - -func (m *RpcBlockListSetDivStyleRequest) Reset() { *m = RpcBlockListSetDivStyleRequest{} } -func (m *RpcBlockListSetDivStyleRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListSetDivStyleRequest) ProtoMessage() {} -func (*RpcBlockListSetDivStyleRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 4, 0, 0} -} -func (m *RpcBlockListSetDivStyleRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListSetDivStyleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListSetDivStyleRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListSetDivStyleRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListSetDivStyleRequest.Merge(m, src) -} -func (m *RpcBlockListSetDivStyleRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListSetDivStyleRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListSetDivStyleRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListSetDivStyleRequest proto.InternalMessageInfo - -func (m *RpcBlockListSetDivStyleRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockListSetDivStyleRequest) GetBlockIds() []string { - if m != nil { - return m.BlockIds - } - return nil -} - -func (m *RpcBlockListSetDivStyleRequest) GetStyle() model.BlockContentDivStyle { - if m != nil { - return m.Style - } - return model.BlockContentDiv_Line -} - -type RpcBlockListSetDivStyleResponse struct { - Error *RpcBlockListSetDivStyleResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockListSetDivStyleResponse) Reset() { *m = RpcBlockListSetDivStyleResponse{} } -func (m *RpcBlockListSetDivStyleResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListSetDivStyleResponse) ProtoMessage() {} -func (*RpcBlockListSetDivStyleResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 4, 0, 1} -} -func (m *RpcBlockListSetDivStyleResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListSetDivStyleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListSetDivStyleResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListSetDivStyleResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListSetDivStyleResponse.Merge(m, src) -} -func (m *RpcBlockListSetDivStyleResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListSetDivStyleResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListSetDivStyleResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListSetDivStyleResponse proto.InternalMessageInfo - -func (m *RpcBlockListSetDivStyleResponse) GetError() *RpcBlockListSetDivStyleResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockListSetDivStyleResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockListSetDivStyleResponseError struct { - Code RpcBlockListSetDivStyleResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockListSetDivStyleResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockListSetDivStyleResponseError) Reset() { *m = RpcBlockListSetDivStyleResponseError{} } -func (m *RpcBlockListSetDivStyleResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListSetDivStyleResponseError) ProtoMessage() {} -func (*RpcBlockListSetDivStyleResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 4, 0, 1, 0} -} -func (m *RpcBlockListSetDivStyleResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListSetDivStyleResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListSetDivStyleResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListSetDivStyleResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListSetDivStyleResponseError.Merge(m, src) -} -func (m *RpcBlockListSetDivStyleResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListSetDivStyleResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListSetDivStyleResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListSetDivStyleResponseError proto.InternalMessageInfo - -func (m *RpcBlockListSetDivStyleResponseError) GetCode() RpcBlockListSetDivStyleResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockListSetDivStyleResponseError_NULL -} - -func (m *RpcBlockListSetDivStyleResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockListSetFile struct { -} - -func (m *RpcBlockListSetFile) Reset() { *m = RpcBlockListSetFile{} } -func (m *RpcBlockListSetFile) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListSetFile) ProtoMessage() {} -func (*RpcBlockListSetFile) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 5} -} -func (m *RpcBlockListSetFile) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListSetFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListSetFile.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListSetFile) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListSetFile.Merge(m, src) -} -func (m *RpcBlockListSetFile) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListSetFile) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListSetFile.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListSetFile proto.InternalMessageInfo - -type RpcBlockListSetFileStyle struct { -} - -func (m *RpcBlockListSetFileStyle) Reset() { *m = RpcBlockListSetFileStyle{} } -func (m *RpcBlockListSetFileStyle) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListSetFileStyle) ProtoMessage() {} -func (*RpcBlockListSetFileStyle) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 5, 0} -} -func (m *RpcBlockListSetFileStyle) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListSetFileStyle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListSetFileStyle.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListSetFileStyle) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListSetFileStyle.Merge(m, src) -} -func (m *RpcBlockListSetFileStyle) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListSetFileStyle) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListSetFileStyle.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListSetFileStyle proto.InternalMessageInfo - -type RpcBlockListSetFileStyleRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockIds []string `protobuf:"bytes,2,rep,name=blockIds,proto3" json:"blockIds,omitempty"` - Style model.BlockContentFileStyle `protobuf:"varint,3,opt,name=style,proto3,enum=anytype.model.BlockContentFileStyle" json:"style,omitempty"` -} - -func (m *RpcBlockListSetFileStyleRequest) Reset() { *m = RpcBlockListSetFileStyleRequest{} } -func (m *RpcBlockListSetFileStyleRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListSetFileStyleRequest) ProtoMessage() {} -func (*RpcBlockListSetFileStyleRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 5, 0, 0} -} -func (m *RpcBlockListSetFileStyleRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListSetFileStyleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListSetFileStyleRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListSetFileStyleRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListSetFileStyleRequest.Merge(m, src) -} -func (m *RpcBlockListSetFileStyleRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListSetFileStyleRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListSetFileStyleRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListSetFileStyleRequest proto.InternalMessageInfo - -func (m *RpcBlockListSetFileStyleRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockListSetFileStyleRequest) GetBlockIds() []string { - if m != nil { - return m.BlockIds - } - return nil -} - -func (m *RpcBlockListSetFileStyleRequest) GetStyle() model.BlockContentFileStyle { - if m != nil { - return m.Style - } - return model.BlockContentFile_Auto -} - -type RpcBlockListSetFileStyleResponse struct { - Error *RpcBlockListSetFileStyleResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockListSetFileStyleResponse) Reset() { *m = RpcBlockListSetFileStyleResponse{} } -func (m *RpcBlockListSetFileStyleResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListSetFileStyleResponse) ProtoMessage() {} -func (*RpcBlockListSetFileStyleResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 5, 0, 1} -} -func (m *RpcBlockListSetFileStyleResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListSetFileStyleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListSetFileStyleResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListSetFileStyleResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListSetFileStyleResponse.Merge(m, src) -} -func (m *RpcBlockListSetFileStyleResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListSetFileStyleResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListSetFileStyleResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListSetFileStyleResponse proto.InternalMessageInfo - -func (m *RpcBlockListSetFileStyleResponse) GetError() *RpcBlockListSetFileStyleResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockListSetFileStyleResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockListSetFileStyleResponseError struct { - Code RpcBlockListSetFileStyleResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockListSetFileStyleResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockListSetFileStyleResponseError) Reset() { *m = RpcBlockListSetFileStyleResponseError{} } -func (m *RpcBlockListSetFileStyleResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListSetFileStyleResponseError) ProtoMessage() {} -func (*RpcBlockListSetFileStyleResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 5, 0, 1, 0} -} -func (m *RpcBlockListSetFileStyleResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListSetFileStyleResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListSetFileStyleResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListSetFileStyleResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListSetFileStyleResponseError.Merge(m, src) -} -func (m *RpcBlockListSetFileStyleResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListSetFileStyleResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListSetFileStyleResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListSetFileStyleResponseError proto.InternalMessageInfo - -func (m *RpcBlockListSetFileStyleResponseError) GetCode() RpcBlockListSetFileStyleResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockListSetFileStyleResponseError_NULL -} - -func (m *RpcBlockListSetFileStyleResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockListTurnInto struct { -} - -func (m *RpcBlockListTurnInto) Reset() { *m = RpcBlockListTurnInto{} } -func (m *RpcBlockListTurnInto) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListTurnInto) ProtoMessage() {} -func (*RpcBlockListTurnInto) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 5} -} -func (m *RpcBlockListTurnInto) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListTurnInto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListTurnInto.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListTurnInto) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListTurnInto.Merge(m, src) -} -func (m *RpcBlockListTurnInto) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListTurnInto) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListTurnInto.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListTurnInto proto.InternalMessageInfo - -type RpcBlockListTurnIntoRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockIds []string `protobuf:"bytes,2,rep,name=blockIds,proto3" json:"blockIds,omitempty"` - Style model.BlockContentTextStyle `protobuf:"varint,3,opt,name=style,proto3,enum=anytype.model.BlockContentTextStyle" json:"style,omitempty"` -} - -func (m *RpcBlockListTurnIntoRequest) Reset() { *m = RpcBlockListTurnIntoRequest{} } -func (m *RpcBlockListTurnIntoRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListTurnIntoRequest) ProtoMessage() {} -func (*RpcBlockListTurnIntoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 5, 0} -} -func (m *RpcBlockListTurnIntoRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListTurnIntoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListTurnIntoRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListTurnIntoRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListTurnIntoRequest.Merge(m, src) -} -func (m *RpcBlockListTurnIntoRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListTurnIntoRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListTurnIntoRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListTurnIntoRequest proto.InternalMessageInfo - -func (m *RpcBlockListTurnIntoRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockListTurnIntoRequest) GetBlockIds() []string { - if m != nil { - return m.BlockIds - } - return nil -} - -func (m *RpcBlockListTurnIntoRequest) GetStyle() model.BlockContentTextStyle { - if m != nil { - return m.Style - } - return model.BlockContentText_Paragraph -} - -type RpcBlockListTurnIntoResponse struct { - Error *RpcBlockListTurnIntoResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockListTurnIntoResponse) Reset() { *m = RpcBlockListTurnIntoResponse{} } -func (m *RpcBlockListTurnIntoResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListTurnIntoResponse) ProtoMessage() {} -func (*RpcBlockListTurnIntoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 5, 1} -} -func (m *RpcBlockListTurnIntoResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListTurnIntoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListTurnIntoResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListTurnIntoResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListTurnIntoResponse.Merge(m, src) -} -func (m *RpcBlockListTurnIntoResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListTurnIntoResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListTurnIntoResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListTurnIntoResponse proto.InternalMessageInfo - -func (m *RpcBlockListTurnIntoResponse) GetError() *RpcBlockListTurnIntoResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockListTurnIntoResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockListTurnIntoResponseError struct { - Code RpcBlockListTurnIntoResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockListTurnIntoResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockListTurnIntoResponseError) Reset() { *m = RpcBlockListTurnIntoResponseError{} } -func (m *RpcBlockListTurnIntoResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockListTurnIntoResponseError) ProtoMessage() {} -func (*RpcBlockListTurnIntoResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 5, 1, 0} -} -func (m *RpcBlockListTurnIntoResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockListTurnIntoResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockListTurnIntoResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockListTurnIntoResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockListTurnIntoResponseError.Merge(m, src) -} -func (m *RpcBlockListTurnIntoResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockListTurnIntoResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockListTurnIntoResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockListTurnIntoResponseError proto.InternalMessageInfo - -func (m *RpcBlockListTurnIntoResponseError) GetCode() RpcBlockListTurnIntoResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockListTurnIntoResponseError_NULL -} - -func (m *RpcBlockListTurnIntoResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -// -// Namespace, that agregates subtopics and actions, that relates to blocks. -type RpcBlock struct { -} - -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_8261c968b2e6f45c, []int{0, 3} -} -func (m *RpcBlock) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlock.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlock) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlock.Merge(m, src) -} -func (m *RpcBlock) XXX_Size() int { - return m.Size() -} -func (m *RpcBlock) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlock.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlock proto.InternalMessageInfo - -type RpcBlockReplace struct { -} - -func (m *RpcBlockReplace) Reset() { *m = RpcBlockReplace{} } -func (m *RpcBlockReplace) String() string { return proto.CompactTextString(m) } -func (*RpcBlockReplace) ProtoMessage() {} -func (*RpcBlockReplace) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 0} -} -func (m *RpcBlockReplace) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockReplace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockReplace.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockReplace) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockReplace.Merge(m, src) -} -func (m *RpcBlockReplace) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockReplace) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockReplace.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockReplace proto.InternalMessageInfo - -type RpcBlockReplaceRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - Block *model.Block `protobuf:"bytes,3,opt,name=block,proto3" json:"block,omitempty"` -} - -func (m *RpcBlockReplaceRequest) Reset() { *m = RpcBlockReplaceRequest{} } -func (m *RpcBlockReplaceRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockReplaceRequest) ProtoMessage() {} -func (*RpcBlockReplaceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 0, 0} -} -func (m *RpcBlockReplaceRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockReplaceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockReplaceRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockReplaceRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockReplaceRequest.Merge(m, src) -} -func (m *RpcBlockReplaceRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockReplaceRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockReplaceRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockReplaceRequest proto.InternalMessageInfo - -func (m *RpcBlockReplaceRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockReplaceRequest) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockReplaceRequest) GetBlock() *model.Block { - if m != nil { - return m.Block - } - return nil -} - -type RpcBlockReplaceResponse struct { - Error *RpcBlockReplaceResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - Event *ResponseEvent `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockReplaceResponse) Reset() { *m = RpcBlockReplaceResponse{} } -func (m *RpcBlockReplaceResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockReplaceResponse) ProtoMessage() {} -func (*RpcBlockReplaceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 0, 1} -} -func (m *RpcBlockReplaceResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockReplaceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockReplaceResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockReplaceResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockReplaceResponse.Merge(m, src) -} -func (m *RpcBlockReplaceResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockReplaceResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockReplaceResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockReplaceResponse proto.InternalMessageInfo - -func (m *RpcBlockReplaceResponse) GetError() *RpcBlockReplaceResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockReplaceResponse) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockReplaceResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockReplaceResponseError struct { - Code RpcBlockReplaceResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockReplaceResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockReplaceResponseError) Reset() { *m = RpcBlockReplaceResponseError{} } -func (m *RpcBlockReplaceResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockReplaceResponseError) ProtoMessage() {} -func (*RpcBlockReplaceResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 0, 1, 0} -} -func (m *RpcBlockReplaceResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockReplaceResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockReplaceResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockReplaceResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockReplaceResponseError.Merge(m, src) -} -func (m *RpcBlockReplaceResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockReplaceResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockReplaceResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockReplaceResponseError proto.InternalMessageInfo - -func (m *RpcBlockReplaceResponseError) GetCode() RpcBlockReplaceResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockReplaceResponseError_NULL -} - -func (m *RpcBlockReplaceResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockUpdateContent struct { -} - -func (m *RpcBlockUpdateContent) Reset() { *m = RpcBlockUpdateContent{} } -func (m *RpcBlockUpdateContent) String() string { return proto.CompactTextString(m) } -func (*RpcBlockUpdateContent) ProtoMessage() {} -func (*RpcBlockUpdateContent) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 1} -} -func (m *RpcBlockUpdateContent) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockUpdateContent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockUpdateContent.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockUpdateContent) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockUpdateContent.Merge(m, src) -} -func (m *RpcBlockUpdateContent) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockUpdateContent) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockUpdateContent.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockUpdateContent proto.InternalMessageInfo - -type RpcBlockUpdateContentRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - Block *model.Block `protobuf:"bytes,3,opt,name=block,proto3" json:"block,omitempty"` -} - -func (m *RpcBlockUpdateContentRequest) Reset() { *m = RpcBlockUpdateContentRequest{} } -func (m *RpcBlockUpdateContentRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockUpdateContentRequest) ProtoMessage() {} -func (*RpcBlockUpdateContentRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 1, 0} -} -func (m *RpcBlockUpdateContentRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockUpdateContentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockUpdateContentRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockUpdateContentRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockUpdateContentRequest.Merge(m, src) -} -func (m *RpcBlockUpdateContentRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockUpdateContentRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockUpdateContentRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockUpdateContentRequest proto.InternalMessageInfo - -func (m *RpcBlockUpdateContentRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockUpdateContentRequest) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockUpdateContentRequest) GetBlock() *model.Block { - if m != nil { - return m.Block - } - return nil -} - -type RpcBlockUpdateContentResponse struct { - Error *RpcBlockUpdateContentResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockUpdateContentResponse) Reset() { *m = RpcBlockUpdateContentResponse{} } -func (m *RpcBlockUpdateContentResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockUpdateContentResponse) ProtoMessage() {} -func (*RpcBlockUpdateContentResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 1, 1} -} -func (m *RpcBlockUpdateContentResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockUpdateContentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockUpdateContentResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockUpdateContentResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockUpdateContentResponse.Merge(m, src) -} -func (m *RpcBlockUpdateContentResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockUpdateContentResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockUpdateContentResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockUpdateContentResponse proto.InternalMessageInfo - -func (m *RpcBlockUpdateContentResponse) GetError() *RpcBlockUpdateContentResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockUpdateContentResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockUpdateContentResponseError struct { - Code RpcBlockUpdateContentResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockUpdateContentResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockUpdateContentResponseError) Reset() { *m = RpcBlockUpdateContentResponseError{} } -func (m *RpcBlockUpdateContentResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockUpdateContentResponseError) ProtoMessage() {} -func (*RpcBlockUpdateContentResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 1, 1, 0} -} -func (m *RpcBlockUpdateContentResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockUpdateContentResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockUpdateContentResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockUpdateContentResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockUpdateContentResponseError.Merge(m, src) -} -func (m *RpcBlockUpdateContentResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockUpdateContentResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockUpdateContentResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockUpdateContentResponseError proto.InternalMessageInfo - -func (m *RpcBlockUpdateContentResponseError) GetCode() RpcBlockUpdateContentResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockUpdateContentResponseError_NULL -} - -func (m *RpcBlockUpdateContentResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockSplit struct { -} - -func (m *RpcBlockSplit) Reset() { *m = RpcBlockSplit{} } -func (m *RpcBlockSplit) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSplit) ProtoMessage() {} -func (*RpcBlockSplit) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 2} -} -func (m *RpcBlockSplit) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSplit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSplit.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSplit) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSplit.Merge(m, src) -} -func (m *RpcBlockSplit) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSplit) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSplit.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSplit proto.InternalMessageInfo - -type RpcBlockSplitRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,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"` - Style model.BlockContentTextStyle `protobuf:"varint,4,opt,name=style,proto3,enum=anytype.model.BlockContentTextStyle" json:"style,omitempty"` - Mode RpcBlockSplitRequestMode `protobuf:"varint,5,opt,name=mode,proto3,enum=anytype.RpcBlockSplitRequestMode" json:"mode,omitempty"` -} - -func (m *RpcBlockSplitRequest) Reset() { *m = RpcBlockSplitRequest{} } -func (m *RpcBlockSplitRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSplitRequest) ProtoMessage() {} -func (*RpcBlockSplitRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 2, 0} -} -func (m *RpcBlockSplitRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSplitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSplitRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSplitRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSplitRequest.Merge(m, src) -} -func (m *RpcBlockSplitRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSplitRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSplitRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSplitRequest proto.InternalMessageInfo - -func (m *RpcBlockSplitRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockSplitRequest) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockSplitRequest) GetRange() *model.Range { - if m != nil { - return m.Range - } - return nil -} - -func (m *RpcBlockSplitRequest) GetStyle() model.BlockContentTextStyle { - if m != nil { - return m.Style - } - return model.BlockContentText_Paragraph -} - -func (m *RpcBlockSplitRequest) GetMode() RpcBlockSplitRequestMode { - if m != nil { - return m.Mode - } - return RpcBlockSplitRequest_BOTTOM -} - -type RpcBlockSplitResponse struct { - Error *RpcBlockSplitResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - Event *ResponseEvent `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockSplitResponse) Reset() { *m = RpcBlockSplitResponse{} } -func (m *RpcBlockSplitResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSplitResponse) ProtoMessage() {} -func (*RpcBlockSplitResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 2, 1} -} -func (m *RpcBlockSplitResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSplitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSplitResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSplitResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSplitResponse.Merge(m, src) -} -func (m *RpcBlockSplitResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSplitResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSplitResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSplitResponse proto.InternalMessageInfo - -func (m *RpcBlockSplitResponse) GetError() *RpcBlockSplitResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockSplitResponse) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockSplitResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockSplitResponseError struct { - Code RpcBlockSplitResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockSplitResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockSplitResponseError) Reset() { *m = RpcBlockSplitResponseError{} } -func (m *RpcBlockSplitResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSplitResponseError) ProtoMessage() {} -func (*RpcBlockSplitResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 2, 1, 0} -} -func (m *RpcBlockSplitResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSplitResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSplitResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSplitResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSplitResponseError.Merge(m, src) -} -func (m *RpcBlockSplitResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSplitResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSplitResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSplitResponseError proto.InternalMessageInfo - -func (m *RpcBlockSplitResponseError) GetCode() RpcBlockSplitResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockSplitResponseError_NULL -} - -func (m *RpcBlockSplitResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockMerge struct { -} - -func (m *RpcBlockMerge) Reset() { *m = RpcBlockMerge{} } -func (m *RpcBlockMerge) String() string { return proto.CompactTextString(m) } -func (*RpcBlockMerge) ProtoMessage() {} -func (*RpcBlockMerge) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 3} -} -func (m *RpcBlockMerge) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockMerge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockMerge.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockMerge) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockMerge.Merge(m, src) -} -func (m *RpcBlockMerge) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockMerge) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockMerge.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockMerge proto.InternalMessageInfo - -type RpcBlockMergeRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - FirstBlockId string `protobuf:"bytes,2,opt,name=firstBlockId,proto3" json:"firstBlockId,omitempty"` - SecondBlockId string `protobuf:"bytes,3,opt,name=secondBlockId,proto3" json:"secondBlockId,omitempty"` -} - -func (m *RpcBlockMergeRequest) Reset() { *m = RpcBlockMergeRequest{} } -func (m *RpcBlockMergeRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockMergeRequest) ProtoMessage() {} -func (*RpcBlockMergeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 3, 0} -} -func (m *RpcBlockMergeRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockMergeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockMergeRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockMergeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockMergeRequest.Merge(m, src) -} -func (m *RpcBlockMergeRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockMergeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockMergeRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockMergeRequest proto.InternalMessageInfo - -func (m *RpcBlockMergeRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockMergeRequest) GetFirstBlockId() string { - if m != nil { - return m.FirstBlockId - } - return "" -} - -func (m *RpcBlockMergeRequest) GetSecondBlockId() string { - if m != nil { - return m.SecondBlockId - } - return "" -} - -type RpcBlockMergeResponse struct { - Error *RpcBlockMergeResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockMergeResponse) Reset() { *m = RpcBlockMergeResponse{} } -func (m *RpcBlockMergeResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockMergeResponse) ProtoMessage() {} -func (*RpcBlockMergeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 3, 1} -} -func (m *RpcBlockMergeResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockMergeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockMergeResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockMergeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockMergeResponse.Merge(m, src) -} -func (m *RpcBlockMergeResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockMergeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockMergeResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockMergeResponse proto.InternalMessageInfo - -func (m *RpcBlockMergeResponse) GetError() *RpcBlockMergeResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockMergeResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockMergeResponseError struct { - Code RpcBlockMergeResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockMergeResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockMergeResponseError) Reset() { *m = RpcBlockMergeResponseError{} } -func (m *RpcBlockMergeResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockMergeResponseError) ProtoMessage() {} -func (*RpcBlockMergeResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 3, 1, 0} -} -func (m *RpcBlockMergeResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockMergeResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockMergeResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockMergeResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockMergeResponseError.Merge(m, src) -} -func (m *RpcBlockMergeResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockMergeResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockMergeResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockMergeResponseError proto.InternalMessageInfo - -func (m *RpcBlockMergeResponseError) GetCode() RpcBlockMergeResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockMergeResponseError_NULL -} - -func (m *RpcBlockMergeResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockCopy struct { -} - -func (m *RpcBlockCopy) Reset() { *m = RpcBlockCopy{} } -func (m *RpcBlockCopy) String() string { return proto.CompactTextString(m) } -func (*RpcBlockCopy) ProtoMessage() {} -func (*RpcBlockCopy) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 4} -} -func (m *RpcBlockCopy) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockCopy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockCopy.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockCopy) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockCopy.Merge(m, src) -} -func (m *RpcBlockCopy) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockCopy) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockCopy.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockCopy proto.InternalMessageInfo - -type RpcBlockCopyRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - Blocks []*model.Block `protobuf:"bytes,2,rep,name=blocks,proto3" json:"blocks,omitempty"` - SelectedTextRange *model.Range `protobuf:"bytes,3,opt,name=selectedTextRange,proto3" json:"selectedTextRange,omitempty"` -} - -func (m *RpcBlockCopyRequest) Reset() { *m = RpcBlockCopyRequest{} } -func (m *RpcBlockCopyRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockCopyRequest) ProtoMessage() {} -func (*RpcBlockCopyRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 4, 0} -} -func (m *RpcBlockCopyRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockCopyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockCopyRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockCopyRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockCopyRequest.Merge(m, src) -} -func (m *RpcBlockCopyRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockCopyRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockCopyRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockCopyRequest proto.InternalMessageInfo - -func (m *RpcBlockCopyRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockCopyRequest) GetBlocks() []*model.Block { - if m != nil { - return m.Blocks - } - return nil -} - -func (m *RpcBlockCopyRequest) GetSelectedTextRange() *model.Range { - if m != nil { - return m.SelectedTextRange - } - return nil -} - -type RpcBlockCopyResponse struct { - Error *RpcBlockCopyResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - TextSlot string `protobuf:"bytes,2,opt,name=textSlot,proto3" json:"textSlot,omitempty"` - HtmlSlot string `protobuf:"bytes,3,opt,name=htmlSlot,proto3" json:"htmlSlot,omitempty"` - AnySlot []*model.Block `protobuf:"bytes,4,rep,name=anySlot,proto3" json:"anySlot,omitempty"` -} - -func (m *RpcBlockCopyResponse) Reset() { *m = RpcBlockCopyResponse{} } -func (m *RpcBlockCopyResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockCopyResponse) ProtoMessage() {} -func (*RpcBlockCopyResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 4, 1} -} -func (m *RpcBlockCopyResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockCopyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockCopyResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockCopyResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockCopyResponse.Merge(m, src) -} -func (m *RpcBlockCopyResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockCopyResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockCopyResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockCopyResponse proto.InternalMessageInfo - -func (m *RpcBlockCopyResponse) GetError() *RpcBlockCopyResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockCopyResponse) GetTextSlot() string { - if m != nil { - return m.TextSlot - } - return "" -} - -func (m *RpcBlockCopyResponse) GetHtmlSlot() string { - if m != nil { - return m.HtmlSlot - } - return "" -} - -func (m *RpcBlockCopyResponse) GetAnySlot() []*model.Block { - if m != nil { - return m.AnySlot - } - return nil -} - -type RpcBlockCopyResponseError struct { - Code RpcBlockCopyResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockCopyResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockCopyResponseError) Reset() { *m = RpcBlockCopyResponseError{} } -func (m *RpcBlockCopyResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockCopyResponseError) ProtoMessage() {} -func (*RpcBlockCopyResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 4, 1, 0} -} -func (m *RpcBlockCopyResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockCopyResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockCopyResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockCopyResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockCopyResponseError.Merge(m, src) -} -func (m *RpcBlockCopyResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockCopyResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockCopyResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockCopyResponseError proto.InternalMessageInfo - -func (m *RpcBlockCopyResponseError) GetCode() RpcBlockCopyResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockCopyResponseError_NULL -} - -func (m *RpcBlockCopyResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockPaste struct { -} - -func (m *RpcBlockPaste) Reset() { *m = RpcBlockPaste{} } -func (m *RpcBlockPaste) String() string { return proto.CompactTextString(m) } -func (*RpcBlockPaste) ProtoMessage() {} -func (*RpcBlockPaste) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 5} -} -func (m *RpcBlockPaste) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockPaste) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockPaste.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockPaste) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockPaste.Merge(m, src) -} -func (m *RpcBlockPaste) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockPaste) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockPaste.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockPaste proto.InternalMessageInfo - -type RpcBlockPasteRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - FocusedBlockId string `protobuf:"bytes,2,opt,name=focusedBlockId,proto3" json:"focusedBlockId,omitempty"` - SelectedTextRange *model.Range `protobuf:"bytes,3,opt,name=selectedTextRange,proto3" json:"selectedTextRange,omitempty"` - SelectedBlockIds []string `protobuf:"bytes,4,rep,name=selectedBlockIds,proto3" json:"selectedBlockIds,omitempty"` - IsPartOfBlock bool `protobuf:"varint,5,opt,name=isPartOfBlock,proto3" json:"isPartOfBlock,omitempty"` - TextSlot string `protobuf:"bytes,6,opt,name=textSlot,proto3" json:"textSlot,omitempty"` - HtmlSlot string `protobuf:"bytes,7,opt,name=htmlSlot,proto3" json:"htmlSlot,omitempty"` - AnySlot []*model.Block `protobuf:"bytes,8,rep,name=anySlot,proto3" json:"anySlot,omitempty"` - FileSlot []*RpcBlockPasteRequestFile `protobuf:"bytes,9,rep,name=fileSlot,proto3" json:"fileSlot,omitempty"` -} - -func (m *RpcBlockPasteRequest) Reset() { *m = RpcBlockPasteRequest{} } -func (m *RpcBlockPasteRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockPasteRequest) ProtoMessage() {} -func (*RpcBlockPasteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 5, 0} -} -func (m *RpcBlockPasteRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockPasteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockPasteRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockPasteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockPasteRequest.Merge(m, src) -} -func (m *RpcBlockPasteRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockPasteRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockPasteRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockPasteRequest proto.InternalMessageInfo - -func (m *RpcBlockPasteRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockPasteRequest) GetFocusedBlockId() string { - if m != nil { - return m.FocusedBlockId - } - return "" -} - -func (m *RpcBlockPasteRequest) GetSelectedTextRange() *model.Range { - if m != nil { - return m.SelectedTextRange - } - return nil -} - -func (m *RpcBlockPasteRequest) GetSelectedBlockIds() []string { - if m != nil { - return m.SelectedBlockIds - } - return nil -} - -func (m *RpcBlockPasteRequest) GetIsPartOfBlock() bool { - if m != nil { - return m.IsPartOfBlock - } - return false -} - -func (m *RpcBlockPasteRequest) GetTextSlot() string { - if m != nil { - return m.TextSlot - } - return "" -} - -func (m *RpcBlockPasteRequest) GetHtmlSlot() string { - if m != nil { - return m.HtmlSlot - } - return "" -} - -func (m *RpcBlockPasteRequest) GetAnySlot() []*model.Block { - if m != nil { - return m.AnySlot - } - return nil -} - -func (m *RpcBlockPasteRequest) GetFileSlot() []*RpcBlockPasteRequestFile { - if m != nil { - return m.FileSlot - } - return nil -} - -type RpcBlockPasteRequestFile struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` - LocalPath string `protobuf:"bytes,3,opt,name=localPath,proto3" json:"localPath,omitempty"` -} - -func (m *RpcBlockPasteRequestFile) Reset() { *m = RpcBlockPasteRequestFile{} } -func (m *RpcBlockPasteRequestFile) String() string { return proto.CompactTextString(m) } -func (*RpcBlockPasteRequestFile) ProtoMessage() {} -func (*RpcBlockPasteRequestFile) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 5, 0, 0} -} -func (m *RpcBlockPasteRequestFile) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockPasteRequestFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockPasteRequestFile.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockPasteRequestFile) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockPasteRequestFile.Merge(m, src) -} -func (m *RpcBlockPasteRequestFile) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockPasteRequestFile) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockPasteRequestFile.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockPasteRequestFile proto.InternalMessageInfo - -func (m *RpcBlockPasteRequestFile) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *RpcBlockPasteRequestFile) GetData() []byte { - if m != nil { - return m.Data - } - return nil -} - -func (m *RpcBlockPasteRequestFile) GetLocalPath() string { - if m != nil { - return m.LocalPath - } - return "" -} - -type RpcBlockPasteResponse struct { - Error *RpcBlockPasteResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - BlockIds []string `protobuf:"bytes,2,rep,name=blockIds,proto3" json:"blockIds,omitempty"` - CaretPosition int32 `protobuf:"varint,3,opt,name=caretPosition,proto3" json:"caretPosition,omitempty"` - IsSameBlockCaret bool `protobuf:"varint,4,opt,name=isSameBlockCaret,proto3" json:"isSameBlockCaret,omitempty"` - Event *ResponseEvent `protobuf:"bytes,5,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockPasteResponse) Reset() { *m = RpcBlockPasteResponse{} } -func (m *RpcBlockPasteResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockPasteResponse) ProtoMessage() {} -func (*RpcBlockPasteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 5, 1} -} -func (m *RpcBlockPasteResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockPasteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockPasteResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockPasteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockPasteResponse.Merge(m, src) -} -func (m *RpcBlockPasteResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockPasteResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockPasteResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockPasteResponse proto.InternalMessageInfo - -func (m *RpcBlockPasteResponse) GetError() *RpcBlockPasteResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockPasteResponse) GetBlockIds() []string { - if m != nil { - return m.BlockIds - } - return nil -} - -func (m *RpcBlockPasteResponse) GetCaretPosition() int32 { - if m != nil { - return m.CaretPosition - } - return 0 -} - -func (m *RpcBlockPasteResponse) GetIsSameBlockCaret() bool { - if m != nil { - return m.IsSameBlockCaret - } - return false -} - -func (m *RpcBlockPasteResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockPasteResponseError struct { - Code RpcBlockPasteResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockPasteResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockPasteResponseError) Reset() { *m = RpcBlockPasteResponseError{} } -func (m *RpcBlockPasteResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockPasteResponseError) ProtoMessage() {} -func (*RpcBlockPasteResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 5, 1, 0} -} -func (m *RpcBlockPasteResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockPasteResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockPasteResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockPasteResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockPasteResponseError.Merge(m, src) -} -func (m *RpcBlockPasteResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockPasteResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockPasteResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockPasteResponseError proto.InternalMessageInfo - -func (m *RpcBlockPasteResponseError) GetCode() RpcBlockPasteResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockPasteResponseError_NULL -} - -func (m *RpcBlockPasteResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockCut struct { -} - -func (m *RpcBlockCut) Reset() { *m = RpcBlockCut{} } -func (m *RpcBlockCut) String() string { return proto.CompactTextString(m) } -func (*RpcBlockCut) ProtoMessage() {} -func (*RpcBlockCut) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 6} -} -func (m *RpcBlockCut) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockCut) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockCut.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockCut) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockCut.Merge(m, src) -} -func (m *RpcBlockCut) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockCut) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockCut.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockCut proto.InternalMessageInfo - -type RpcBlockCutRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - Blocks []*model.Block `protobuf:"bytes,2,rep,name=blocks,proto3" json:"blocks,omitempty"` - SelectedTextRange *model.Range `protobuf:"bytes,3,opt,name=selectedTextRange,proto3" json:"selectedTextRange,omitempty"` -} - -func (m *RpcBlockCutRequest) Reset() { *m = RpcBlockCutRequest{} } -func (m *RpcBlockCutRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockCutRequest) ProtoMessage() {} -func (*RpcBlockCutRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 6, 0} -} -func (m *RpcBlockCutRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockCutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockCutRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockCutRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockCutRequest.Merge(m, src) -} -func (m *RpcBlockCutRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockCutRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockCutRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockCutRequest proto.InternalMessageInfo - -func (m *RpcBlockCutRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockCutRequest) GetBlocks() []*model.Block { - if m != nil { - return m.Blocks - } - return nil -} - -func (m *RpcBlockCutRequest) GetSelectedTextRange() *model.Range { - if m != nil { - return m.SelectedTextRange - } - return nil -} - -type RpcBlockCutResponse struct { - Error *RpcBlockCutResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - TextSlot string `protobuf:"bytes,2,opt,name=textSlot,proto3" json:"textSlot,omitempty"` - HtmlSlot string `protobuf:"bytes,3,opt,name=htmlSlot,proto3" json:"htmlSlot,omitempty"` - AnySlot []*model.Block `protobuf:"bytes,4,rep,name=anySlot,proto3" json:"anySlot,omitempty"` - Event *ResponseEvent `protobuf:"bytes,5,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockCutResponse) Reset() { *m = RpcBlockCutResponse{} } -func (m *RpcBlockCutResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockCutResponse) ProtoMessage() {} -func (*RpcBlockCutResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 6, 1} -} -func (m *RpcBlockCutResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockCutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockCutResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockCutResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockCutResponse.Merge(m, src) -} -func (m *RpcBlockCutResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockCutResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockCutResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockCutResponse proto.InternalMessageInfo - -func (m *RpcBlockCutResponse) GetError() *RpcBlockCutResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockCutResponse) GetTextSlot() string { - if m != nil { - return m.TextSlot - } - return "" -} - -func (m *RpcBlockCutResponse) GetHtmlSlot() string { - if m != nil { - return m.HtmlSlot - } - return "" -} - -func (m *RpcBlockCutResponse) GetAnySlot() []*model.Block { - if m != nil { - return m.AnySlot - } - return nil -} - -func (m *RpcBlockCutResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockCutResponseError struct { - Code RpcBlockCutResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockCutResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockCutResponseError) Reset() { *m = RpcBlockCutResponseError{} } -func (m *RpcBlockCutResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockCutResponseError) ProtoMessage() {} -func (*RpcBlockCutResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 6, 1, 0} -} -func (m *RpcBlockCutResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockCutResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockCutResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockCutResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockCutResponseError.Merge(m, src) -} -func (m *RpcBlockCutResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockCutResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockCutResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockCutResponseError proto.InternalMessageInfo - -func (m *RpcBlockCutResponseError) GetCode() RpcBlockCutResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockCutResponseError_NULL -} - -func (m *RpcBlockCutResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockImportMarkdown struct { -} - -func (m *RpcBlockImportMarkdown) Reset() { *m = RpcBlockImportMarkdown{} } -func (m *RpcBlockImportMarkdown) String() string { return proto.CompactTextString(m) } -func (*RpcBlockImportMarkdown) ProtoMessage() {} -func (*RpcBlockImportMarkdown) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 7} -} -func (m *RpcBlockImportMarkdown) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockImportMarkdown) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockImportMarkdown.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockImportMarkdown) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockImportMarkdown.Merge(m, src) -} -func (m *RpcBlockImportMarkdown) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockImportMarkdown) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockImportMarkdown.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockImportMarkdown proto.InternalMessageInfo - -type RpcBlockImportMarkdownRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - ImportPath string `protobuf:"bytes,2,opt,name=importPath,proto3" json:"importPath,omitempty"` -} - -func (m *RpcBlockImportMarkdownRequest) Reset() { *m = RpcBlockImportMarkdownRequest{} } -func (m *RpcBlockImportMarkdownRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockImportMarkdownRequest) ProtoMessage() {} -func (*RpcBlockImportMarkdownRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 7, 0} -} -func (m *RpcBlockImportMarkdownRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockImportMarkdownRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockImportMarkdownRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockImportMarkdownRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockImportMarkdownRequest.Merge(m, src) -} -func (m *RpcBlockImportMarkdownRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockImportMarkdownRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockImportMarkdownRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockImportMarkdownRequest proto.InternalMessageInfo - -func (m *RpcBlockImportMarkdownRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockImportMarkdownRequest) GetImportPath() string { - if m != nil { - return m.ImportPath - } - return "" -} - -type RpcBlockImportMarkdownResponse struct { - Error *RpcBlockImportMarkdownResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - RootLinkIds []string `protobuf:"bytes,2,rep,name=rootLinkIds,proto3" json:"rootLinkIds,omitempty"` - Event *ResponseEvent `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockImportMarkdownResponse) Reset() { *m = RpcBlockImportMarkdownResponse{} } -func (m *RpcBlockImportMarkdownResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockImportMarkdownResponse) ProtoMessage() {} -func (*RpcBlockImportMarkdownResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 7, 1} -} -func (m *RpcBlockImportMarkdownResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockImportMarkdownResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockImportMarkdownResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockImportMarkdownResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockImportMarkdownResponse.Merge(m, src) -} -func (m *RpcBlockImportMarkdownResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockImportMarkdownResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockImportMarkdownResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockImportMarkdownResponse proto.InternalMessageInfo - -func (m *RpcBlockImportMarkdownResponse) GetError() *RpcBlockImportMarkdownResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockImportMarkdownResponse) GetRootLinkIds() []string { - if m != nil { - return m.RootLinkIds - } - return nil -} - -func (m *RpcBlockImportMarkdownResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockImportMarkdownResponseError struct { - Code RpcBlockImportMarkdownResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockImportMarkdownResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockImportMarkdownResponseError) Reset() { *m = RpcBlockImportMarkdownResponseError{} } -func (m *RpcBlockImportMarkdownResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockImportMarkdownResponseError) ProtoMessage() {} -func (*RpcBlockImportMarkdownResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 7, 1, 0} -} -func (m *RpcBlockImportMarkdownResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockImportMarkdownResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockImportMarkdownResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockImportMarkdownResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockImportMarkdownResponseError.Merge(m, src) -} -func (m *RpcBlockImportMarkdownResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockImportMarkdownResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockImportMarkdownResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockImportMarkdownResponseError proto.InternalMessageInfo - -func (m *RpcBlockImportMarkdownResponseError) GetCode() RpcBlockImportMarkdownResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockImportMarkdownResponseError_NULL -} - -func (m *RpcBlockImportMarkdownResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockExport struct { -} - -func (m *RpcBlockExport) Reset() { *m = RpcBlockExport{} } -func (m *RpcBlockExport) String() string { return proto.CompactTextString(m) } -func (*RpcBlockExport) ProtoMessage() {} -func (*RpcBlockExport) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 8} -} -func (m *RpcBlockExport) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockExport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockExport.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockExport) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockExport.Merge(m, src) -} -func (m *RpcBlockExport) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockExport) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockExport.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockExport proto.InternalMessageInfo - -type RpcBlockExportRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - Blocks []*model.Block `protobuf:"bytes,2,rep,name=blocks,proto3" json:"blocks,omitempty"` -} - -func (m *RpcBlockExportRequest) Reset() { *m = RpcBlockExportRequest{} } -func (m *RpcBlockExportRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockExportRequest) ProtoMessage() {} -func (*RpcBlockExportRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 8, 0} -} -func (m *RpcBlockExportRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockExportRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockExportRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockExportRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockExportRequest.Merge(m, src) -} -func (m *RpcBlockExportRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockExportRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockExportRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockExportRequest proto.InternalMessageInfo - -func (m *RpcBlockExportRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockExportRequest) GetBlocks() []*model.Block { - if m != nil { - return m.Blocks - } - return nil -} - -type RpcBlockExportResponse struct { - Error *RpcBlockExportResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` - Event *ResponseEvent `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockExportResponse) Reset() { *m = RpcBlockExportResponse{} } -func (m *RpcBlockExportResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockExportResponse) ProtoMessage() {} -func (*RpcBlockExportResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 8, 1} -} -func (m *RpcBlockExportResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockExportResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockExportResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockExportResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockExportResponse.Merge(m, src) -} -func (m *RpcBlockExportResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockExportResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockExportResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockExportResponse proto.InternalMessageInfo - -func (m *RpcBlockExportResponse) GetError() *RpcBlockExportResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockExportResponse) GetPath() string { - if m != nil { - return m.Path - } - return "" -} - -func (m *RpcBlockExportResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockExportResponseError struct { - Code RpcBlockExportResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockExportResponseErrorCode" json:"code,omitempty"` +type RpcAppShutdownResponseError struct { + Code RpcAppShutdownResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcAppShutdownResponseErrorCode" json:"code,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` } -func (m *RpcBlockExportResponseError) Reset() { *m = RpcBlockExportResponseError{} } -func (m *RpcBlockExportResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockExportResponseError) ProtoMessage() {} -func (*RpcBlockExportResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 8, 1, 0} +func (m *RpcAppShutdownResponseError) Reset() { *m = RpcAppShutdownResponseError{} } +func (m *RpcAppShutdownResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcAppShutdownResponseError) ProtoMessage() {} +func (*RpcAppShutdownResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 0, 2, 1, 0} } -func (m *RpcBlockExportResponseError) XXX_Unmarshal(b []byte) error { +func (m *RpcAppShutdownResponseError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcBlockExportResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcAppShutdownResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcBlockExportResponseError.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcAppShutdownResponseError.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -10369,12490 +5125,32 @@ func (m *RpcBlockExportResponseError) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *RpcBlockExportResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockExportResponseError.Merge(m, src) +func (m *RpcAppShutdownResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcAppShutdownResponseError.Merge(m, src) } -func (m *RpcBlockExportResponseError) XXX_Size() int { +func (m *RpcAppShutdownResponseError) XXX_Size() int { return m.Size() } -func (m *RpcBlockExportResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockExportResponseError.DiscardUnknown(m) +func (m *RpcAppShutdownResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcAppShutdownResponseError.DiscardUnknown(m) } -var xxx_messageInfo_RpcBlockExportResponseError proto.InternalMessageInfo +var xxx_messageInfo_RpcAppShutdownResponseError proto.InternalMessageInfo -func (m *RpcBlockExportResponseError) GetCode() RpcBlockExportResponseErrorCode { +func (m *RpcAppShutdownResponseError) GetCode() RpcAppShutdownResponseErrorCode { if m != nil { return m.Code } - return RpcBlockExportResponseError_NULL + return RpcAppShutdownResponseError_NULL } -func (m *RpcBlockExportResponseError) GetDescription() string { +func (m *RpcAppShutdownResponseError) GetDescription() string { if m != nil { return m.Description } return "" } -type RpcBlockUpload struct { -} - -func (m *RpcBlockUpload) Reset() { *m = RpcBlockUpload{} } -func (m *RpcBlockUpload) String() string { return proto.CompactTextString(m) } -func (*RpcBlockUpload) ProtoMessage() {} -func (*RpcBlockUpload) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 9} -} -func (m *RpcBlockUpload) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockUpload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockUpload.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockUpload) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockUpload.Merge(m, src) -} -func (m *RpcBlockUpload) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockUpload) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockUpload.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockUpload proto.InternalMessageInfo - -type RpcBlockUploadRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - FilePath string `protobuf:"bytes,3,opt,name=filePath,proto3" json:"filePath,omitempty"` - Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"` -} - -func (m *RpcBlockUploadRequest) Reset() { *m = RpcBlockUploadRequest{} } -func (m *RpcBlockUploadRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockUploadRequest) ProtoMessage() {} -func (*RpcBlockUploadRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 9, 0} -} -func (m *RpcBlockUploadRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockUploadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockUploadRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockUploadRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockUploadRequest.Merge(m, src) -} -func (m *RpcBlockUploadRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockUploadRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockUploadRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockUploadRequest proto.InternalMessageInfo - -func (m *RpcBlockUploadRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockUploadRequest) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockUploadRequest) GetFilePath() string { - if m != nil { - return m.FilePath - } - return "" -} - -func (m *RpcBlockUploadRequest) GetUrl() string { - if m != nil { - return m.Url - } - return "" -} - -type RpcBlockUploadResponse struct { - Error *RpcBlockUploadResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockUploadResponse) Reset() { *m = RpcBlockUploadResponse{} } -func (m *RpcBlockUploadResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockUploadResponse) ProtoMessage() {} -func (*RpcBlockUploadResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 9, 1} -} -func (m *RpcBlockUploadResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockUploadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockUploadResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockUploadResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockUploadResponse.Merge(m, src) -} -func (m *RpcBlockUploadResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockUploadResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockUploadResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockUploadResponse proto.InternalMessageInfo - -func (m *RpcBlockUploadResponse) GetError() *RpcBlockUploadResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockUploadResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockUploadResponseError struct { - Code RpcBlockUploadResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockUploadResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockUploadResponseError) Reset() { *m = RpcBlockUploadResponseError{} } -func (m *RpcBlockUploadResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockUploadResponseError) ProtoMessage() {} -func (*RpcBlockUploadResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 9, 1, 0} -} -func (m *RpcBlockUploadResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockUploadResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockUploadResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockUploadResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockUploadResponseError.Merge(m, src) -} -func (m *RpcBlockUploadResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockUploadResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockUploadResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockUploadResponseError proto.InternalMessageInfo - -func (m *RpcBlockUploadResponseError) GetCode() RpcBlockUploadResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockUploadResponseError_NULL -} - -func (m *RpcBlockUploadResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockDownload struct { -} - -func (m *RpcBlockDownload) Reset() { *m = RpcBlockDownload{} } -func (m *RpcBlockDownload) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDownload) ProtoMessage() {} -func (*RpcBlockDownload) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 10} -} -func (m *RpcBlockDownload) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDownload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDownload.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDownload) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDownload.Merge(m, src) -} -func (m *RpcBlockDownload) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDownload) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDownload.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDownload proto.InternalMessageInfo - -type RpcBlockDownloadRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` -} - -func (m *RpcBlockDownloadRequest) Reset() { *m = RpcBlockDownloadRequest{} } -func (m *RpcBlockDownloadRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDownloadRequest) ProtoMessage() {} -func (*RpcBlockDownloadRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 10, 0} -} -func (m *RpcBlockDownloadRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDownloadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDownloadRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDownloadRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDownloadRequest.Merge(m, src) -} -func (m *RpcBlockDownloadRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDownloadRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDownloadRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDownloadRequest proto.InternalMessageInfo - -func (m *RpcBlockDownloadRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockDownloadRequest) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -type RpcBlockDownloadResponse struct { - Error *RpcBlockDownloadResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockDownloadResponse) Reset() { *m = RpcBlockDownloadResponse{} } -func (m *RpcBlockDownloadResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDownloadResponse) ProtoMessage() {} -func (*RpcBlockDownloadResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 10, 1} -} -func (m *RpcBlockDownloadResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDownloadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDownloadResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDownloadResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDownloadResponse.Merge(m, src) -} -func (m *RpcBlockDownloadResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDownloadResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDownloadResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDownloadResponse proto.InternalMessageInfo - -func (m *RpcBlockDownloadResponse) GetError() *RpcBlockDownloadResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockDownloadResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockDownloadResponseError struct { - Code RpcBlockDownloadResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockDownloadResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockDownloadResponseError) Reset() { *m = RpcBlockDownloadResponseError{} } -func (m *RpcBlockDownloadResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDownloadResponseError) ProtoMessage() {} -func (*RpcBlockDownloadResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 10, 1, 0} -} -func (m *RpcBlockDownloadResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDownloadResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDownloadResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDownloadResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDownloadResponseError.Merge(m, src) -} -func (m *RpcBlockDownloadResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDownloadResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDownloadResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDownloadResponseError proto.InternalMessageInfo - -func (m *RpcBlockDownloadResponseError) GetCode() RpcBlockDownloadResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockDownloadResponseError_NULL -} - -func (m *RpcBlockDownloadResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockSet struct { -} - -func (m *RpcBlockSet) Reset() { *m = RpcBlockSet{} } -func (m *RpcBlockSet) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSet) ProtoMessage() {} -func (*RpcBlockSet) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11} -} -func (m *RpcBlockSet) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSet.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSet) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSet.Merge(m, src) -} -func (m *RpcBlockSet) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSet) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSet.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSet proto.InternalMessageInfo - -type RpcBlockSetFields struct { -} - -func (m *RpcBlockSetFields) Reset() { *m = RpcBlockSetFields{} } -func (m *RpcBlockSetFields) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetFields) ProtoMessage() {} -func (*RpcBlockSetFields) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 0} -} -func (m *RpcBlockSetFields) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetFields) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetFields.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetFields) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetFields.Merge(m, src) -} -func (m *RpcBlockSetFields) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetFields) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetFields.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetFields proto.InternalMessageInfo - -type RpcBlockSetFieldsRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - Fields *types.Struct `protobuf:"bytes,3,opt,name=fields,proto3" json:"fields,omitempty"` -} - -func (m *RpcBlockSetFieldsRequest) Reset() { *m = RpcBlockSetFieldsRequest{} } -func (m *RpcBlockSetFieldsRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetFieldsRequest) ProtoMessage() {} -func (*RpcBlockSetFieldsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 0, 0} -} -func (m *RpcBlockSetFieldsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetFieldsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetFieldsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetFieldsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetFieldsRequest.Merge(m, src) -} -func (m *RpcBlockSetFieldsRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetFieldsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetFieldsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetFieldsRequest proto.InternalMessageInfo - -func (m *RpcBlockSetFieldsRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockSetFieldsRequest) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockSetFieldsRequest) GetFields() *types.Struct { - if m != nil { - return m.Fields - } - return nil -} - -type RpcBlockSetFieldsResponse struct { - Error *RpcBlockSetFieldsResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockSetFieldsResponse) Reset() { *m = RpcBlockSetFieldsResponse{} } -func (m *RpcBlockSetFieldsResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetFieldsResponse) ProtoMessage() {} -func (*RpcBlockSetFieldsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 0, 1} -} -func (m *RpcBlockSetFieldsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetFieldsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetFieldsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetFieldsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetFieldsResponse.Merge(m, src) -} -func (m *RpcBlockSetFieldsResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetFieldsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetFieldsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetFieldsResponse proto.InternalMessageInfo - -func (m *RpcBlockSetFieldsResponse) GetError() *RpcBlockSetFieldsResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockSetFieldsResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockSetFieldsResponseError struct { - Code RpcBlockSetFieldsResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockSetFieldsResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockSetFieldsResponseError) Reset() { *m = RpcBlockSetFieldsResponseError{} } -func (m *RpcBlockSetFieldsResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetFieldsResponseError) ProtoMessage() {} -func (*RpcBlockSetFieldsResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 0, 1, 0} -} -func (m *RpcBlockSetFieldsResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetFieldsResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetFieldsResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetFieldsResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetFieldsResponseError.Merge(m, src) -} -func (m *RpcBlockSetFieldsResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetFieldsResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetFieldsResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetFieldsResponseError proto.InternalMessageInfo - -func (m *RpcBlockSetFieldsResponseError) GetCode() RpcBlockSetFieldsResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockSetFieldsResponseError_NULL -} - -func (m *RpcBlockSetFieldsResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockSetDetails struct { -} - -func (m *RpcBlockSetDetails) Reset() { *m = RpcBlockSetDetails{} } -func (m *RpcBlockSetDetails) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetDetails) ProtoMessage() {} -func (*RpcBlockSetDetails) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 1} -} -func (m *RpcBlockSetDetails) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetDetails.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetDetails) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetDetails.Merge(m, src) -} -func (m *RpcBlockSetDetails) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetDetails) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetDetails.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetDetails proto.InternalMessageInfo - -type RpcBlockSetDetailsDetail struct { - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value *types.Value `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` -} - -func (m *RpcBlockSetDetailsDetail) Reset() { *m = RpcBlockSetDetailsDetail{} } -func (m *RpcBlockSetDetailsDetail) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetDetailsDetail) ProtoMessage() {} -func (*RpcBlockSetDetailsDetail) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 1, 0} -} -func (m *RpcBlockSetDetailsDetail) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetDetailsDetail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetDetailsDetail.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetDetailsDetail) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetDetailsDetail.Merge(m, src) -} -func (m *RpcBlockSetDetailsDetail) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetDetailsDetail) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetDetailsDetail.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetDetailsDetail proto.InternalMessageInfo - -func (m *RpcBlockSetDetailsDetail) GetKey() string { - if m != nil { - return m.Key - } - return "" -} - -func (m *RpcBlockSetDetailsDetail) GetValue() *types.Value { - if m != nil { - return m.Value - } - return nil -} - -type RpcBlockSetDetailsRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - Details []*RpcBlockSetDetailsDetail `protobuf:"bytes,2,rep,name=details,proto3" json:"details,omitempty"` -} - -func (m *RpcBlockSetDetailsRequest) Reset() { *m = RpcBlockSetDetailsRequest{} } -func (m *RpcBlockSetDetailsRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetDetailsRequest) ProtoMessage() {} -func (*RpcBlockSetDetailsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 1, 1} -} -func (m *RpcBlockSetDetailsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetDetailsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetDetailsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetDetailsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetDetailsRequest.Merge(m, src) -} -func (m *RpcBlockSetDetailsRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetDetailsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetDetailsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetDetailsRequest proto.InternalMessageInfo - -func (m *RpcBlockSetDetailsRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockSetDetailsRequest) GetDetails() []*RpcBlockSetDetailsDetail { - if m != nil { - return m.Details - } - return nil -} - -type RpcBlockSetDetailsResponse struct { - Error *RpcBlockSetDetailsResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockSetDetailsResponse) Reset() { *m = RpcBlockSetDetailsResponse{} } -func (m *RpcBlockSetDetailsResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetDetailsResponse) ProtoMessage() {} -func (*RpcBlockSetDetailsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 1, 2} -} -func (m *RpcBlockSetDetailsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetDetailsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetDetailsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetDetailsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetDetailsResponse.Merge(m, src) -} -func (m *RpcBlockSetDetailsResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetDetailsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetDetailsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetDetailsResponse proto.InternalMessageInfo - -func (m *RpcBlockSetDetailsResponse) GetError() *RpcBlockSetDetailsResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockSetDetailsResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockSetDetailsResponseError struct { - Code RpcBlockSetDetailsResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockSetDetailsResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockSetDetailsResponseError) Reset() { *m = RpcBlockSetDetailsResponseError{} } -func (m *RpcBlockSetDetailsResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetDetailsResponseError) ProtoMessage() {} -func (*RpcBlockSetDetailsResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 1, 2, 0} -} -func (m *RpcBlockSetDetailsResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetDetailsResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetDetailsResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetDetailsResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetDetailsResponseError.Merge(m, src) -} -func (m *RpcBlockSetDetailsResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetDetailsResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetDetailsResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetDetailsResponseError proto.InternalMessageInfo - -func (m *RpcBlockSetDetailsResponseError) GetCode() RpcBlockSetDetailsResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockSetDetailsResponseError_NULL -} - -func (m *RpcBlockSetDetailsResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockSetRestrictions struct { -} - -func (m *RpcBlockSetRestrictions) Reset() { *m = RpcBlockSetRestrictions{} } -func (m *RpcBlockSetRestrictions) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetRestrictions) ProtoMessage() {} -func (*RpcBlockSetRestrictions) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 2} -} -func (m *RpcBlockSetRestrictions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetRestrictions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetRestrictions.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetRestrictions) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetRestrictions.Merge(m, src) -} -func (m *RpcBlockSetRestrictions) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetRestrictions) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetRestrictions.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetRestrictions proto.InternalMessageInfo - -type RpcBlockSetRestrictionsRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - Restrictions *model.BlockRestrictions `protobuf:"bytes,3,opt,name=restrictions,proto3" json:"restrictions,omitempty"` -} - -func (m *RpcBlockSetRestrictionsRequest) Reset() { *m = RpcBlockSetRestrictionsRequest{} } -func (m *RpcBlockSetRestrictionsRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetRestrictionsRequest) ProtoMessage() {} -func (*RpcBlockSetRestrictionsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 2, 0} -} -func (m *RpcBlockSetRestrictionsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetRestrictionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetRestrictionsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetRestrictionsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetRestrictionsRequest.Merge(m, src) -} -func (m *RpcBlockSetRestrictionsRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetRestrictionsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetRestrictionsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetRestrictionsRequest proto.InternalMessageInfo - -func (m *RpcBlockSetRestrictionsRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockSetRestrictionsRequest) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockSetRestrictionsRequest) GetRestrictions() *model.BlockRestrictions { - if m != nil { - return m.Restrictions - } - return nil -} - -type RpcBlockSetRestrictionsResponse struct { - Error *RpcBlockSetRestrictionsResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockSetRestrictionsResponse) Reset() { *m = RpcBlockSetRestrictionsResponse{} } -func (m *RpcBlockSetRestrictionsResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetRestrictionsResponse) ProtoMessage() {} -func (*RpcBlockSetRestrictionsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 2, 1} -} -func (m *RpcBlockSetRestrictionsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetRestrictionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetRestrictionsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetRestrictionsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetRestrictionsResponse.Merge(m, src) -} -func (m *RpcBlockSetRestrictionsResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetRestrictionsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetRestrictionsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetRestrictionsResponse proto.InternalMessageInfo - -func (m *RpcBlockSetRestrictionsResponse) GetError() *RpcBlockSetRestrictionsResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockSetRestrictionsResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockSetRestrictionsResponseError struct { - Code RpcBlockSetRestrictionsResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockSetRestrictionsResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockSetRestrictionsResponseError) Reset() { *m = RpcBlockSetRestrictionsResponseError{} } -func (m *RpcBlockSetRestrictionsResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetRestrictionsResponseError) ProtoMessage() {} -func (*RpcBlockSetRestrictionsResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 2, 1, 0} -} -func (m *RpcBlockSetRestrictionsResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetRestrictionsResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetRestrictionsResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetRestrictionsResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetRestrictionsResponseError.Merge(m, src) -} -func (m *RpcBlockSetRestrictionsResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetRestrictionsResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetRestrictionsResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetRestrictionsResponseError proto.InternalMessageInfo - -func (m *RpcBlockSetRestrictionsResponseError) GetCode() RpcBlockSetRestrictionsResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockSetRestrictionsResponseError_NULL -} - -func (m *RpcBlockSetRestrictionsResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockSetPage struct { -} - -func (m *RpcBlockSetPage) Reset() { *m = RpcBlockSetPage{} } -func (m *RpcBlockSetPage) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetPage) ProtoMessage() {} -func (*RpcBlockSetPage) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 3} -} -func (m *RpcBlockSetPage) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetPage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetPage.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetPage) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetPage.Merge(m, src) -} -func (m *RpcBlockSetPage) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetPage) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetPage.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetPage proto.InternalMessageInfo - -type RpcBlockSetPageIsArchived struct { -} - -func (m *RpcBlockSetPageIsArchived) Reset() { *m = RpcBlockSetPageIsArchived{} } -func (m *RpcBlockSetPageIsArchived) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetPageIsArchived) ProtoMessage() {} -func (*RpcBlockSetPageIsArchived) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 3, 0} -} -func (m *RpcBlockSetPageIsArchived) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetPageIsArchived) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetPageIsArchived.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetPageIsArchived) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetPageIsArchived.Merge(m, src) -} -func (m *RpcBlockSetPageIsArchived) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetPageIsArchived) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetPageIsArchived.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetPageIsArchived proto.InternalMessageInfo - -type RpcBlockSetPageIsArchivedRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - IsArchived bool `protobuf:"varint,3,opt,name=isArchived,proto3" json:"isArchived,omitempty"` -} - -func (m *RpcBlockSetPageIsArchivedRequest) Reset() { *m = RpcBlockSetPageIsArchivedRequest{} } -func (m *RpcBlockSetPageIsArchivedRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetPageIsArchivedRequest) ProtoMessage() {} -func (*RpcBlockSetPageIsArchivedRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 3, 0, 0} -} -func (m *RpcBlockSetPageIsArchivedRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetPageIsArchivedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetPageIsArchivedRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetPageIsArchivedRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetPageIsArchivedRequest.Merge(m, src) -} -func (m *RpcBlockSetPageIsArchivedRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetPageIsArchivedRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetPageIsArchivedRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetPageIsArchivedRequest proto.InternalMessageInfo - -func (m *RpcBlockSetPageIsArchivedRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockSetPageIsArchivedRequest) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockSetPageIsArchivedRequest) GetIsArchived() bool { - if m != nil { - return m.IsArchived - } - return false -} - -type RpcBlockSetPageIsArchivedResponse struct { - Error *RpcBlockSetPageIsArchivedResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` -} - -func (m *RpcBlockSetPageIsArchivedResponse) Reset() { *m = RpcBlockSetPageIsArchivedResponse{} } -func (m *RpcBlockSetPageIsArchivedResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetPageIsArchivedResponse) ProtoMessage() {} -func (*RpcBlockSetPageIsArchivedResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 3, 0, 1} -} -func (m *RpcBlockSetPageIsArchivedResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetPageIsArchivedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetPageIsArchivedResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetPageIsArchivedResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetPageIsArchivedResponse.Merge(m, src) -} -func (m *RpcBlockSetPageIsArchivedResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetPageIsArchivedResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetPageIsArchivedResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetPageIsArchivedResponse proto.InternalMessageInfo - -func (m *RpcBlockSetPageIsArchivedResponse) GetError() *RpcBlockSetPageIsArchivedResponseError { - if m != nil { - return m.Error - } - return nil -} - -type RpcBlockSetPageIsArchivedResponseError struct { - Code RpcBlockSetPageIsArchivedResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockSetPageIsArchivedResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockSetPageIsArchivedResponseError) Reset() { - *m = RpcBlockSetPageIsArchivedResponseError{} -} -func (m *RpcBlockSetPageIsArchivedResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetPageIsArchivedResponseError) ProtoMessage() {} -func (*RpcBlockSetPageIsArchivedResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 3, 0, 1, 0} -} -func (m *RpcBlockSetPageIsArchivedResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetPageIsArchivedResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetPageIsArchivedResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetPageIsArchivedResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetPageIsArchivedResponseError.Merge(m, src) -} -func (m *RpcBlockSetPageIsArchivedResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetPageIsArchivedResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetPageIsArchivedResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetPageIsArchivedResponseError proto.InternalMessageInfo - -func (m *RpcBlockSetPageIsArchivedResponseError) GetCode() RpcBlockSetPageIsArchivedResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockSetPageIsArchivedResponseError_NULL -} - -func (m *RpcBlockSetPageIsArchivedResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockSetLatex struct { -} - -func (m *RpcBlockSetLatex) Reset() { *m = RpcBlockSetLatex{} } -func (m *RpcBlockSetLatex) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetLatex) ProtoMessage() {} -func (*RpcBlockSetLatex) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 4} -} -func (m *RpcBlockSetLatex) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetLatex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetLatex.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetLatex) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetLatex.Merge(m, src) -} -func (m *RpcBlockSetLatex) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetLatex) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetLatex.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetLatex proto.InternalMessageInfo - -type RpcBlockSetLatexText struct { -} - -func (m *RpcBlockSetLatexText) Reset() { *m = RpcBlockSetLatexText{} } -func (m *RpcBlockSetLatexText) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetLatexText) ProtoMessage() {} -func (*RpcBlockSetLatexText) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 4, 0} -} -func (m *RpcBlockSetLatexText) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetLatexText) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetLatexText.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetLatexText) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetLatexText.Merge(m, src) -} -func (m *RpcBlockSetLatexText) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetLatexText) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetLatexText.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetLatexText proto.InternalMessageInfo - -type RpcBlockSetLatexTextRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"` -} - -func (m *RpcBlockSetLatexTextRequest) Reset() { *m = RpcBlockSetLatexTextRequest{} } -func (m *RpcBlockSetLatexTextRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetLatexTextRequest) ProtoMessage() {} -func (*RpcBlockSetLatexTextRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 4, 0, 0} -} -func (m *RpcBlockSetLatexTextRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetLatexTextRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetLatexTextRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetLatexTextRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetLatexTextRequest.Merge(m, src) -} -func (m *RpcBlockSetLatexTextRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetLatexTextRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetLatexTextRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetLatexTextRequest proto.InternalMessageInfo - -func (m *RpcBlockSetLatexTextRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockSetLatexTextRequest) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockSetLatexTextRequest) GetText() string { - if m != nil { - return m.Text - } - return "" -} - -type RpcBlockSetLatexTextResponse struct { - Error *RpcBlockSetLatexTextResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockSetLatexTextResponse) Reset() { *m = RpcBlockSetLatexTextResponse{} } -func (m *RpcBlockSetLatexTextResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetLatexTextResponse) ProtoMessage() {} -func (*RpcBlockSetLatexTextResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 4, 0, 1} -} -func (m *RpcBlockSetLatexTextResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetLatexTextResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetLatexTextResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetLatexTextResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetLatexTextResponse.Merge(m, src) -} -func (m *RpcBlockSetLatexTextResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetLatexTextResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetLatexTextResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetLatexTextResponse proto.InternalMessageInfo - -func (m *RpcBlockSetLatexTextResponse) GetError() *RpcBlockSetLatexTextResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockSetLatexTextResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockSetLatexTextResponseError struct { - Code RpcBlockSetLatexTextResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockSetLatexTextResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockSetLatexTextResponseError) Reset() { *m = RpcBlockSetLatexTextResponseError{} } -func (m *RpcBlockSetLatexTextResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetLatexTextResponseError) ProtoMessage() {} -func (*RpcBlockSetLatexTextResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 4, 0, 1, 0} -} -func (m *RpcBlockSetLatexTextResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetLatexTextResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetLatexTextResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetLatexTextResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetLatexTextResponseError.Merge(m, src) -} -func (m *RpcBlockSetLatexTextResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetLatexTextResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetLatexTextResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetLatexTextResponseError proto.InternalMessageInfo - -func (m *RpcBlockSetLatexTextResponseError) GetCode() RpcBlockSetLatexTextResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockSetLatexTextResponseError_NULL -} - -func (m *RpcBlockSetLatexTextResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockSetText struct { -} - -func (m *RpcBlockSetText) Reset() { *m = RpcBlockSetText{} } -func (m *RpcBlockSetText) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetText) ProtoMessage() {} -func (*RpcBlockSetText) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 5} -} -func (m *RpcBlockSetText) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetText) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetText.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetText) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetText.Merge(m, src) -} -func (m *RpcBlockSetText) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetText) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetText.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetText proto.InternalMessageInfo - -type RpcBlockSetTextText struct { -} - -func (m *RpcBlockSetTextText) Reset() { *m = RpcBlockSetTextText{} } -func (m *RpcBlockSetTextText) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetTextText) ProtoMessage() {} -func (*RpcBlockSetTextText) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 5, 0} -} -func (m *RpcBlockSetTextText) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetTextText) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetTextText.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetTextText) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetTextText.Merge(m, src) -} -func (m *RpcBlockSetTextText) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetTextText) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetTextText.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetTextText proto.InternalMessageInfo - -type RpcBlockSetTextTextRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"` - Marks *model.BlockContentTextMarks `protobuf:"bytes,4,opt,name=marks,proto3" json:"marks,omitempty"` -} - -func (m *RpcBlockSetTextTextRequest) Reset() { *m = RpcBlockSetTextTextRequest{} } -func (m *RpcBlockSetTextTextRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetTextTextRequest) ProtoMessage() {} -func (*RpcBlockSetTextTextRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 5, 0, 0} -} -func (m *RpcBlockSetTextTextRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetTextTextRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetTextTextRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetTextTextRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetTextTextRequest.Merge(m, src) -} -func (m *RpcBlockSetTextTextRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetTextTextRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetTextTextRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetTextTextRequest proto.InternalMessageInfo - -func (m *RpcBlockSetTextTextRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockSetTextTextRequest) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockSetTextTextRequest) GetText() string { - if m != nil { - return m.Text - } - return "" -} - -func (m *RpcBlockSetTextTextRequest) GetMarks() *model.BlockContentTextMarks { - if m != nil { - return m.Marks - } - return nil -} - -type RpcBlockSetTextTextResponse struct { - Error *RpcBlockSetTextTextResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockSetTextTextResponse) Reset() { *m = RpcBlockSetTextTextResponse{} } -func (m *RpcBlockSetTextTextResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetTextTextResponse) ProtoMessage() {} -func (*RpcBlockSetTextTextResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 5, 0, 1} -} -func (m *RpcBlockSetTextTextResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetTextTextResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetTextTextResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetTextTextResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetTextTextResponse.Merge(m, src) -} -func (m *RpcBlockSetTextTextResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetTextTextResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetTextTextResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetTextTextResponse proto.InternalMessageInfo - -func (m *RpcBlockSetTextTextResponse) GetError() *RpcBlockSetTextTextResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockSetTextTextResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockSetTextTextResponseError struct { - Code RpcBlockSetTextTextResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockSetTextTextResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockSetTextTextResponseError) Reset() { *m = RpcBlockSetTextTextResponseError{} } -func (m *RpcBlockSetTextTextResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetTextTextResponseError) ProtoMessage() {} -func (*RpcBlockSetTextTextResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 5, 0, 1, 0} -} -func (m *RpcBlockSetTextTextResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetTextTextResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetTextTextResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetTextTextResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetTextTextResponseError.Merge(m, src) -} -func (m *RpcBlockSetTextTextResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetTextTextResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetTextTextResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetTextTextResponseError proto.InternalMessageInfo - -func (m *RpcBlockSetTextTextResponseError) GetCode() RpcBlockSetTextTextResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockSetTextTextResponseError_NULL -} - -func (m *RpcBlockSetTextTextResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockSetTextColor struct { -} - -func (m *RpcBlockSetTextColor) Reset() { *m = RpcBlockSetTextColor{} } -func (m *RpcBlockSetTextColor) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetTextColor) ProtoMessage() {} -func (*RpcBlockSetTextColor) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 5, 1} -} -func (m *RpcBlockSetTextColor) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetTextColor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetTextColor.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetTextColor) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetTextColor.Merge(m, src) -} -func (m *RpcBlockSetTextColor) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetTextColor) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetTextColor.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetTextColor proto.InternalMessageInfo - -type RpcBlockSetTextColorRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - Color string `protobuf:"bytes,3,opt,name=color,proto3" json:"color,omitempty"` -} - -func (m *RpcBlockSetTextColorRequest) Reset() { *m = RpcBlockSetTextColorRequest{} } -func (m *RpcBlockSetTextColorRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetTextColorRequest) ProtoMessage() {} -func (*RpcBlockSetTextColorRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 5, 1, 0} -} -func (m *RpcBlockSetTextColorRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetTextColorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetTextColorRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetTextColorRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetTextColorRequest.Merge(m, src) -} -func (m *RpcBlockSetTextColorRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetTextColorRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetTextColorRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetTextColorRequest proto.InternalMessageInfo - -func (m *RpcBlockSetTextColorRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockSetTextColorRequest) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockSetTextColorRequest) GetColor() string { - if m != nil { - return m.Color - } - return "" -} - -type RpcBlockSetTextColorResponse struct { - Error *RpcBlockSetTextColorResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockSetTextColorResponse) Reset() { *m = RpcBlockSetTextColorResponse{} } -func (m *RpcBlockSetTextColorResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetTextColorResponse) ProtoMessage() {} -func (*RpcBlockSetTextColorResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 5, 1, 1} -} -func (m *RpcBlockSetTextColorResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetTextColorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetTextColorResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetTextColorResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetTextColorResponse.Merge(m, src) -} -func (m *RpcBlockSetTextColorResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetTextColorResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetTextColorResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetTextColorResponse proto.InternalMessageInfo - -func (m *RpcBlockSetTextColorResponse) GetError() *RpcBlockSetTextColorResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockSetTextColorResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockSetTextColorResponseError struct { - Code RpcBlockSetTextColorResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockSetTextColorResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockSetTextColorResponseError) Reset() { *m = RpcBlockSetTextColorResponseError{} } -func (m *RpcBlockSetTextColorResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetTextColorResponseError) ProtoMessage() {} -func (*RpcBlockSetTextColorResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 5, 1, 1, 0} -} -func (m *RpcBlockSetTextColorResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetTextColorResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetTextColorResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetTextColorResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetTextColorResponseError.Merge(m, src) -} -func (m *RpcBlockSetTextColorResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetTextColorResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetTextColorResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetTextColorResponseError proto.InternalMessageInfo - -func (m *RpcBlockSetTextColorResponseError) GetCode() RpcBlockSetTextColorResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockSetTextColorResponseError_NULL -} - -func (m *RpcBlockSetTextColorResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockSetTextStyle struct { -} - -func (m *RpcBlockSetTextStyle) Reset() { *m = RpcBlockSetTextStyle{} } -func (m *RpcBlockSetTextStyle) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetTextStyle) ProtoMessage() {} -func (*RpcBlockSetTextStyle) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 5, 2} -} -func (m *RpcBlockSetTextStyle) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetTextStyle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetTextStyle.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetTextStyle) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetTextStyle.Merge(m, src) -} -func (m *RpcBlockSetTextStyle) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetTextStyle) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetTextStyle.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetTextStyle proto.InternalMessageInfo - -type RpcBlockSetTextStyleRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - Style model.BlockContentTextStyle `protobuf:"varint,3,opt,name=style,proto3,enum=anytype.model.BlockContentTextStyle" json:"style,omitempty"` -} - -func (m *RpcBlockSetTextStyleRequest) Reset() { *m = RpcBlockSetTextStyleRequest{} } -func (m *RpcBlockSetTextStyleRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetTextStyleRequest) ProtoMessage() {} -func (*RpcBlockSetTextStyleRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 5, 2, 0} -} -func (m *RpcBlockSetTextStyleRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetTextStyleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetTextStyleRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetTextStyleRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetTextStyleRequest.Merge(m, src) -} -func (m *RpcBlockSetTextStyleRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetTextStyleRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetTextStyleRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetTextStyleRequest proto.InternalMessageInfo - -func (m *RpcBlockSetTextStyleRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockSetTextStyleRequest) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockSetTextStyleRequest) GetStyle() model.BlockContentTextStyle { - if m != nil { - return m.Style - } - return model.BlockContentText_Paragraph -} - -type RpcBlockSetTextStyleResponse struct { - Error *RpcBlockSetTextStyleResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockSetTextStyleResponse) Reset() { *m = RpcBlockSetTextStyleResponse{} } -func (m *RpcBlockSetTextStyleResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetTextStyleResponse) ProtoMessage() {} -func (*RpcBlockSetTextStyleResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 5, 2, 1} -} -func (m *RpcBlockSetTextStyleResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetTextStyleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetTextStyleResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetTextStyleResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetTextStyleResponse.Merge(m, src) -} -func (m *RpcBlockSetTextStyleResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetTextStyleResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetTextStyleResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetTextStyleResponse proto.InternalMessageInfo - -func (m *RpcBlockSetTextStyleResponse) GetError() *RpcBlockSetTextStyleResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockSetTextStyleResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockSetTextStyleResponseError struct { - Code RpcBlockSetTextStyleResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockSetTextStyleResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockSetTextStyleResponseError) Reset() { *m = RpcBlockSetTextStyleResponseError{} } -func (m *RpcBlockSetTextStyleResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetTextStyleResponseError) ProtoMessage() {} -func (*RpcBlockSetTextStyleResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 5, 2, 1, 0} -} -func (m *RpcBlockSetTextStyleResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetTextStyleResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetTextStyleResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetTextStyleResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetTextStyleResponseError.Merge(m, src) -} -func (m *RpcBlockSetTextStyleResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetTextStyleResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetTextStyleResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetTextStyleResponseError proto.InternalMessageInfo - -func (m *RpcBlockSetTextStyleResponseError) GetCode() RpcBlockSetTextStyleResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockSetTextStyleResponseError_NULL -} - -func (m *RpcBlockSetTextStyleResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockSetTextChecked struct { -} - -func (m *RpcBlockSetTextChecked) Reset() { *m = RpcBlockSetTextChecked{} } -func (m *RpcBlockSetTextChecked) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetTextChecked) ProtoMessage() {} -func (*RpcBlockSetTextChecked) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 5, 3} -} -func (m *RpcBlockSetTextChecked) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetTextChecked) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetTextChecked.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetTextChecked) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetTextChecked.Merge(m, src) -} -func (m *RpcBlockSetTextChecked) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetTextChecked) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetTextChecked.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetTextChecked proto.InternalMessageInfo - -type RpcBlockSetTextCheckedRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - Checked bool `protobuf:"varint,3,opt,name=checked,proto3" json:"checked,omitempty"` -} - -func (m *RpcBlockSetTextCheckedRequest) Reset() { *m = RpcBlockSetTextCheckedRequest{} } -func (m *RpcBlockSetTextCheckedRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetTextCheckedRequest) ProtoMessage() {} -func (*RpcBlockSetTextCheckedRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 5, 3, 0} -} -func (m *RpcBlockSetTextCheckedRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetTextCheckedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetTextCheckedRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetTextCheckedRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetTextCheckedRequest.Merge(m, src) -} -func (m *RpcBlockSetTextCheckedRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetTextCheckedRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetTextCheckedRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetTextCheckedRequest proto.InternalMessageInfo - -func (m *RpcBlockSetTextCheckedRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockSetTextCheckedRequest) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockSetTextCheckedRequest) GetChecked() bool { - if m != nil { - return m.Checked - } - return false -} - -type RpcBlockSetTextCheckedResponse struct { - Error *RpcBlockSetTextCheckedResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockSetTextCheckedResponse) Reset() { *m = RpcBlockSetTextCheckedResponse{} } -func (m *RpcBlockSetTextCheckedResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetTextCheckedResponse) ProtoMessage() {} -func (*RpcBlockSetTextCheckedResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 5, 3, 1} -} -func (m *RpcBlockSetTextCheckedResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetTextCheckedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetTextCheckedResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetTextCheckedResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetTextCheckedResponse.Merge(m, src) -} -func (m *RpcBlockSetTextCheckedResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetTextCheckedResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetTextCheckedResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetTextCheckedResponse proto.InternalMessageInfo - -func (m *RpcBlockSetTextCheckedResponse) GetError() *RpcBlockSetTextCheckedResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockSetTextCheckedResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockSetTextCheckedResponseError struct { - Code RpcBlockSetTextCheckedResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockSetTextCheckedResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockSetTextCheckedResponseError) Reset() { *m = RpcBlockSetTextCheckedResponseError{} } -func (m *RpcBlockSetTextCheckedResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetTextCheckedResponseError) ProtoMessage() {} -func (*RpcBlockSetTextCheckedResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 5, 3, 1, 0} -} -func (m *RpcBlockSetTextCheckedResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetTextCheckedResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetTextCheckedResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetTextCheckedResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetTextCheckedResponseError.Merge(m, src) -} -func (m *RpcBlockSetTextCheckedResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetTextCheckedResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetTextCheckedResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetTextCheckedResponseError proto.InternalMessageInfo - -func (m *RpcBlockSetTextCheckedResponseError) GetCode() RpcBlockSetTextCheckedResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockSetTextCheckedResponseError_NULL -} - -func (m *RpcBlockSetTextCheckedResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockSetTextIcon struct { -} - -func (m *RpcBlockSetTextIcon) Reset() { *m = RpcBlockSetTextIcon{} } -func (m *RpcBlockSetTextIcon) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetTextIcon) ProtoMessage() {} -func (*RpcBlockSetTextIcon) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 5, 4} -} -func (m *RpcBlockSetTextIcon) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetTextIcon) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetTextIcon.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetTextIcon) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetTextIcon.Merge(m, src) -} -func (m *RpcBlockSetTextIcon) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetTextIcon) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetTextIcon.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetTextIcon proto.InternalMessageInfo - -type RpcBlockSetTextIconRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - IconImage string `protobuf:"bytes,3,opt,name=iconImage,proto3" json:"iconImage,omitempty"` - IconEmoji string `protobuf:"bytes,5,opt,name=iconEmoji,proto3" json:"iconEmoji,omitempty"` -} - -func (m *RpcBlockSetTextIconRequest) Reset() { *m = RpcBlockSetTextIconRequest{} } -func (m *RpcBlockSetTextIconRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetTextIconRequest) ProtoMessage() {} -func (*RpcBlockSetTextIconRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 5, 4, 0} -} -func (m *RpcBlockSetTextIconRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetTextIconRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetTextIconRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetTextIconRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetTextIconRequest.Merge(m, src) -} -func (m *RpcBlockSetTextIconRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetTextIconRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetTextIconRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetTextIconRequest proto.InternalMessageInfo - -func (m *RpcBlockSetTextIconRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockSetTextIconRequest) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockSetTextIconRequest) GetIconImage() string { - if m != nil { - return m.IconImage - } - return "" -} - -func (m *RpcBlockSetTextIconRequest) GetIconEmoji() string { - if m != nil { - return m.IconEmoji - } - return "" -} - -type RpcBlockSetTextIconResponse struct { - Error *RpcBlockSetTextIconResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockSetTextIconResponse) Reset() { *m = RpcBlockSetTextIconResponse{} } -func (m *RpcBlockSetTextIconResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetTextIconResponse) ProtoMessage() {} -func (*RpcBlockSetTextIconResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 5, 4, 1} -} -func (m *RpcBlockSetTextIconResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetTextIconResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetTextIconResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetTextIconResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetTextIconResponse.Merge(m, src) -} -func (m *RpcBlockSetTextIconResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetTextIconResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetTextIconResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetTextIconResponse proto.InternalMessageInfo - -func (m *RpcBlockSetTextIconResponse) GetError() *RpcBlockSetTextIconResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockSetTextIconResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockSetTextIconResponseError struct { - Code RpcBlockSetTextIconResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockSetTextIconResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockSetTextIconResponseError) Reset() { *m = RpcBlockSetTextIconResponseError{} } -func (m *RpcBlockSetTextIconResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetTextIconResponseError) ProtoMessage() {} -func (*RpcBlockSetTextIconResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 5, 4, 1, 0} -} -func (m *RpcBlockSetTextIconResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetTextIconResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetTextIconResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetTextIconResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetTextIconResponseError.Merge(m, src) -} -func (m *RpcBlockSetTextIconResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetTextIconResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetTextIconResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetTextIconResponseError proto.InternalMessageInfo - -func (m *RpcBlockSetTextIconResponseError) GetCode() RpcBlockSetTextIconResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockSetTextIconResponseError_NULL -} - -func (m *RpcBlockSetTextIconResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockSetFile struct { -} - -func (m *RpcBlockSetFile) Reset() { *m = RpcBlockSetFile{} } -func (m *RpcBlockSetFile) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetFile) ProtoMessage() {} -func (*RpcBlockSetFile) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 6} -} -func (m *RpcBlockSetFile) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetFile.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetFile) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetFile.Merge(m, src) -} -func (m *RpcBlockSetFile) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetFile) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetFile.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetFile proto.InternalMessageInfo - -type RpcBlockSetFileName struct { -} - -func (m *RpcBlockSetFileName) Reset() { *m = RpcBlockSetFileName{} } -func (m *RpcBlockSetFileName) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetFileName) ProtoMessage() {} -func (*RpcBlockSetFileName) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 6, 0} -} -func (m *RpcBlockSetFileName) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetFileName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetFileName.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetFileName) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetFileName.Merge(m, src) -} -func (m *RpcBlockSetFileName) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetFileName) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetFileName.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetFileName proto.InternalMessageInfo - -type RpcBlockSetFileNameRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` -} - -func (m *RpcBlockSetFileNameRequest) Reset() { *m = RpcBlockSetFileNameRequest{} } -func (m *RpcBlockSetFileNameRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetFileNameRequest) ProtoMessage() {} -func (*RpcBlockSetFileNameRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 6, 0, 0} -} -func (m *RpcBlockSetFileNameRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetFileNameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetFileNameRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetFileNameRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetFileNameRequest.Merge(m, src) -} -func (m *RpcBlockSetFileNameRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetFileNameRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetFileNameRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetFileNameRequest proto.InternalMessageInfo - -func (m *RpcBlockSetFileNameRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockSetFileNameRequest) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockSetFileNameRequest) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -type RpcBlockSetFileNameResponse struct { - Error *RpcBlockSetFileNameResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockSetFileNameResponse) Reset() { *m = RpcBlockSetFileNameResponse{} } -func (m *RpcBlockSetFileNameResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetFileNameResponse) ProtoMessage() {} -func (*RpcBlockSetFileNameResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 6, 0, 1} -} -func (m *RpcBlockSetFileNameResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetFileNameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetFileNameResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetFileNameResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetFileNameResponse.Merge(m, src) -} -func (m *RpcBlockSetFileNameResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetFileNameResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetFileNameResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetFileNameResponse proto.InternalMessageInfo - -func (m *RpcBlockSetFileNameResponse) GetError() *RpcBlockSetFileNameResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockSetFileNameResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockSetFileNameResponseError struct { - Code RpcBlockSetFileNameResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockSetFileNameResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockSetFileNameResponseError) Reset() { *m = RpcBlockSetFileNameResponseError{} } -func (m *RpcBlockSetFileNameResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetFileNameResponseError) ProtoMessage() {} -func (*RpcBlockSetFileNameResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 6, 0, 1, 0} -} -func (m *RpcBlockSetFileNameResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetFileNameResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetFileNameResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetFileNameResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetFileNameResponseError.Merge(m, src) -} -func (m *RpcBlockSetFileNameResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetFileNameResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetFileNameResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetFileNameResponseError proto.InternalMessageInfo - -func (m *RpcBlockSetFileNameResponseError) GetCode() RpcBlockSetFileNameResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockSetFileNameResponseError_NULL -} - -func (m *RpcBlockSetFileNameResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockSetImage struct { -} - -func (m *RpcBlockSetImage) Reset() { *m = RpcBlockSetImage{} } -func (m *RpcBlockSetImage) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetImage) ProtoMessage() {} -func (*RpcBlockSetImage) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 7} -} -func (m *RpcBlockSetImage) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetImage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetImage.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetImage) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetImage.Merge(m, src) -} -func (m *RpcBlockSetImage) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetImage) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetImage.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetImage proto.InternalMessageInfo - -type RpcBlockSetImageName struct { -} - -func (m *RpcBlockSetImageName) Reset() { *m = RpcBlockSetImageName{} } -func (m *RpcBlockSetImageName) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetImageName) ProtoMessage() {} -func (*RpcBlockSetImageName) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 7, 0} -} -func (m *RpcBlockSetImageName) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetImageName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetImageName.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetImageName) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetImageName.Merge(m, src) -} -func (m *RpcBlockSetImageName) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetImageName) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetImageName.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetImageName proto.InternalMessageInfo - -type RpcBlockSetImageNameRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` -} - -func (m *RpcBlockSetImageNameRequest) Reset() { *m = RpcBlockSetImageNameRequest{} } -func (m *RpcBlockSetImageNameRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetImageNameRequest) ProtoMessage() {} -func (*RpcBlockSetImageNameRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 7, 0, 0} -} -func (m *RpcBlockSetImageNameRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetImageNameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetImageNameRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetImageNameRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetImageNameRequest.Merge(m, src) -} -func (m *RpcBlockSetImageNameRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetImageNameRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetImageNameRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetImageNameRequest proto.InternalMessageInfo - -func (m *RpcBlockSetImageNameRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockSetImageNameRequest) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockSetImageNameRequest) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -type RpcBlockSetImageNameResponse struct { - Error *RpcBlockSetImageNameResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` -} - -func (m *RpcBlockSetImageNameResponse) Reset() { *m = RpcBlockSetImageNameResponse{} } -func (m *RpcBlockSetImageNameResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetImageNameResponse) ProtoMessage() {} -func (*RpcBlockSetImageNameResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 7, 0, 1} -} -func (m *RpcBlockSetImageNameResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetImageNameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetImageNameResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetImageNameResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetImageNameResponse.Merge(m, src) -} -func (m *RpcBlockSetImageNameResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetImageNameResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetImageNameResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetImageNameResponse proto.InternalMessageInfo - -func (m *RpcBlockSetImageNameResponse) GetError() *RpcBlockSetImageNameResponseError { - if m != nil { - return m.Error - } - return nil -} - -type RpcBlockSetImageNameResponseError struct { - Code RpcBlockSetImageNameResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockSetImageNameResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockSetImageNameResponseError) Reset() { *m = RpcBlockSetImageNameResponseError{} } -func (m *RpcBlockSetImageNameResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetImageNameResponseError) ProtoMessage() {} -func (*RpcBlockSetImageNameResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 7, 0, 1, 0} -} -func (m *RpcBlockSetImageNameResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetImageNameResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetImageNameResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetImageNameResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetImageNameResponseError.Merge(m, src) -} -func (m *RpcBlockSetImageNameResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetImageNameResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetImageNameResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetImageNameResponseError proto.InternalMessageInfo - -func (m *RpcBlockSetImageNameResponseError) GetCode() RpcBlockSetImageNameResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockSetImageNameResponseError_NULL -} - -func (m *RpcBlockSetImageNameResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockSetImageWidth struct { -} - -func (m *RpcBlockSetImageWidth) Reset() { *m = RpcBlockSetImageWidth{} } -func (m *RpcBlockSetImageWidth) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetImageWidth) ProtoMessage() {} -func (*RpcBlockSetImageWidth) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 7, 1} -} -func (m *RpcBlockSetImageWidth) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetImageWidth) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetImageWidth.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetImageWidth) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetImageWidth.Merge(m, src) -} -func (m *RpcBlockSetImageWidth) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetImageWidth) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetImageWidth.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetImageWidth proto.InternalMessageInfo - -type RpcBlockSetImageWidthRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - Width int32 `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"` -} - -func (m *RpcBlockSetImageWidthRequest) Reset() { *m = RpcBlockSetImageWidthRequest{} } -func (m *RpcBlockSetImageWidthRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetImageWidthRequest) ProtoMessage() {} -func (*RpcBlockSetImageWidthRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 7, 1, 0} -} -func (m *RpcBlockSetImageWidthRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetImageWidthRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetImageWidthRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetImageWidthRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetImageWidthRequest.Merge(m, src) -} -func (m *RpcBlockSetImageWidthRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetImageWidthRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetImageWidthRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetImageWidthRequest proto.InternalMessageInfo - -func (m *RpcBlockSetImageWidthRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockSetImageWidthRequest) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockSetImageWidthRequest) GetWidth() int32 { - if m != nil { - return m.Width - } - return 0 -} - -type RpcBlockSetImageWidthResponse struct { - Error *RpcBlockSetImageWidthResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` -} - -func (m *RpcBlockSetImageWidthResponse) Reset() { *m = RpcBlockSetImageWidthResponse{} } -func (m *RpcBlockSetImageWidthResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetImageWidthResponse) ProtoMessage() {} -func (*RpcBlockSetImageWidthResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 7, 1, 1} -} -func (m *RpcBlockSetImageWidthResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetImageWidthResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetImageWidthResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetImageWidthResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetImageWidthResponse.Merge(m, src) -} -func (m *RpcBlockSetImageWidthResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetImageWidthResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetImageWidthResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetImageWidthResponse proto.InternalMessageInfo - -func (m *RpcBlockSetImageWidthResponse) GetError() *RpcBlockSetImageWidthResponseError { - if m != nil { - return m.Error - } - return nil -} - -type RpcBlockSetImageWidthResponseError struct { - Code RpcBlockSetImageWidthResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockSetImageWidthResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockSetImageWidthResponseError) Reset() { *m = RpcBlockSetImageWidthResponseError{} } -func (m *RpcBlockSetImageWidthResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetImageWidthResponseError) ProtoMessage() {} -func (*RpcBlockSetImageWidthResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 7, 1, 1, 0} -} -func (m *RpcBlockSetImageWidthResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetImageWidthResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetImageWidthResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetImageWidthResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetImageWidthResponseError.Merge(m, src) -} -func (m *RpcBlockSetImageWidthResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetImageWidthResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetImageWidthResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetImageWidthResponseError proto.InternalMessageInfo - -func (m *RpcBlockSetImageWidthResponseError) GetCode() RpcBlockSetImageWidthResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockSetImageWidthResponseError_NULL -} - -func (m *RpcBlockSetImageWidthResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockSetVideo struct { -} - -func (m *RpcBlockSetVideo) Reset() { *m = RpcBlockSetVideo{} } -func (m *RpcBlockSetVideo) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetVideo) ProtoMessage() {} -func (*RpcBlockSetVideo) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 8} -} -func (m *RpcBlockSetVideo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetVideo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetVideo.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetVideo) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetVideo.Merge(m, src) -} -func (m *RpcBlockSetVideo) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetVideo) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetVideo.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetVideo proto.InternalMessageInfo - -type RpcBlockSetVideoName struct { -} - -func (m *RpcBlockSetVideoName) Reset() { *m = RpcBlockSetVideoName{} } -func (m *RpcBlockSetVideoName) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetVideoName) ProtoMessage() {} -func (*RpcBlockSetVideoName) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 8, 0} -} -func (m *RpcBlockSetVideoName) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetVideoName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetVideoName.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetVideoName) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetVideoName.Merge(m, src) -} -func (m *RpcBlockSetVideoName) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetVideoName) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetVideoName.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetVideoName proto.InternalMessageInfo - -type RpcBlockSetVideoNameRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` -} - -func (m *RpcBlockSetVideoNameRequest) Reset() { *m = RpcBlockSetVideoNameRequest{} } -func (m *RpcBlockSetVideoNameRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetVideoNameRequest) ProtoMessage() {} -func (*RpcBlockSetVideoNameRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 8, 0, 0} -} -func (m *RpcBlockSetVideoNameRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetVideoNameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetVideoNameRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetVideoNameRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetVideoNameRequest.Merge(m, src) -} -func (m *RpcBlockSetVideoNameRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetVideoNameRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetVideoNameRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetVideoNameRequest proto.InternalMessageInfo - -func (m *RpcBlockSetVideoNameRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockSetVideoNameRequest) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockSetVideoNameRequest) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -type RpcBlockSetVideoNameResponse struct { - Error *RpcBlockSetVideoNameResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` -} - -func (m *RpcBlockSetVideoNameResponse) Reset() { *m = RpcBlockSetVideoNameResponse{} } -func (m *RpcBlockSetVideoNameResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetVideoNameResponse) ProtoMessage() {} -func (*RpcBlockSetVideoNameResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 8, 0, 1} -} -func (m *RpcBlockSetVideoNameResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetVideoNameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetVideoNameResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetVideoNameResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetVideoNameResponse.Merge(m, src) -} -func (m *RpcBlockSetVideoNameResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetVideoNameResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetVideoNameResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetVideoNameResponse proto.InternalMessageInfo - -func (m *RpcBlockSetVideoNameResponse) GetError() *RpcBlockSetVideoNameResponseError { - if m != nil { - return m.Error - } - return nil -} - -type RpcBlockSetVideoNameResponseError struct { - Code RpcBlockSetVideoNameResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockSetVideoNameResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockSetVideoNameResponseError) Reset() { *m = RpcBlockSetVideoNameResponseError{} } -func (m *RpcBlockSetVideoNameResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetVideoNameResponseError) ProtoMessage() {} -func (*RpcBlockSetVideoNameResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 8, 0, 1, 0} -} -func (m *RpcBlockSetVideoNameResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetVideoNameResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetVideoNameResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetVideoNameResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetVideoNameResponseError.Merge(m, src) -} -func (m *RpcBlockSetVideoNameResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetVideoNameResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetVideoNameResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetVideoNameResponseError proto.InternalMessageInfo - -func (m *RpcBlockSetVideoNameResponseError) GetCode() RpcBlockSetVideoNameResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockSetVideoNameResponseError_NULL -} - -func (m *RpcBlockSetVideoNameResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockSetVideoWidth struct { -} - -func (m *RpcBlockSetVideoWidth) Reset() { *m = RpcBlockSetVideoWidth{} } -func (m *RpcBlockSetVideoWidth) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetVideoWidth) ProtoMessage() {} -func (*RpcBlockSetVideoWidth) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 8, 1} -} -func (m *RpcBlockSetVideoWidth) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetVideoWidth) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetVideoWidth.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetVideoWidth) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetVideoWidth.Merge(m, src) -} -func (m *RpcBlockSetVideoWidth) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetVideoWidth) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetVideoWidth.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetVideoWidth proto.InternalMessageInfo - -type RpcBlockSetVideoWidthRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - Width int32 `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"` -} - -func (m *RpcBlockSetVideoWidthRequest) Reset() { *m = RpcBlockSetVideoWidthRequest{} } -func (m *RpcBlockSetVideoWidthRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetVideoWidthRequest) ProtoMessage() {} -func (*RpcBlockSetVideoWidthRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 8, 1, 0} -} -func (m *RpcBlockSetVideoWidthRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetVideoWidthRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetVideoWidthRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetVideoWidthRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetVideoWidthRequest.Merge(m, src) -} -func (m *RpcBlockSetVideoWidthRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetVideoWidthRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetVideoWidthRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetVideoWidthRequest proto.InternalMessageInfo - -func (m *RpcBlockSetVideoWidthRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockSetVideoWidthRequest) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockSetVideoWidthRequest) GetWidth() int32 { - if m != nil { - return m.Width - } - return 0 -} - -type RpcBlockSetVideoWidthResponse struct { - Error *RpcBlockSetVideoWidthResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` -} - -func (m *RpcBlockSetVideoWidthResponse) Reset() { *m = RpcBlockSetVideoWidthResponse{} } -func (m *RpcBlockSetVideoWidthResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetVideoWidthResponse) ProtoMessage() {} -func (*RpcBlockSetVideoWidthResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 8, 1, 1} -} -func (m *RpcBlockSetVideoWidthResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetVideoWidthResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetVideoWidthResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetVideoWidthResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetVideoWidthResponse.Merge(m, src) -} -func (m *RpcBlockSetVideoWidthResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetVideoWidthResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetVideoWidthResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetVideoWidthResponse proto.InternalMessageInfo - -func (m *RpcBlockSetVideoWidthResponse) GetError() *RpcBlockSetVideoWidthResponseError { - if m != nil { - return m.Error - } - return nil -} - -type RpcBlockSetVideoWidthResponseError struct { - Code RpcBlockSetVideoWidthResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockSetVideoWidthResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockSetVideoWidthResponseError) Reset() { *m = RpcBlockSetVideoWidthResponseError{} } -func (m *RpcBlockSetVideoWidthResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetVideoWidthResponseError) ProtoMessage() {} -func (*RpcBlockSetVideoWidthResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 8, 1, 1, 0} -} -func (m *RpcBlockSetVideoWidthResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetVideoWidthResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetVideoWidthResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetVideoWidthResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetVideoWidthResponseError.Merge(m, src) -} -func (m *RpcBlockSetVideoWidthResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetVideoWidthResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetVideoWidthResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetVideoWidthResponseError proto.InternalMessageInfo - -func (m *RpcBlockSetVideoWidthResponseError) GetCode() RpcBlockSetVideoWidthResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockSetVideoWidthResponseError_NULL -} - -func (m *RpcBlockSetVideoWidthResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockSetLink struct { -} - -func (m *RpcBlockSetLink) Reset() { *m = RpcBlockSetLink{} } -func (m *RpcBlockSetLink) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetLink) ProtoMessage() {} -func (*RpcBlockSetLink) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 9} -} -func (m *RpcBlockSetLink) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetLink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetLink.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetLink) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetLink.Merge(m, src) -} -func (m *RpcBlockSetLink) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetLink) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetLink.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetLink proto.InternalMessageInfo - -type RpcBlockSetLinkTargetBlockId struct { -} - -func (m *RpcBlockSetLinkTargetBlockId) Reset() { *m = RpcBlockSetLinkTargetBlockId{} } -func (m *RpcBlockSetLinkTargetBlockId) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetLinkTargetBlockId) ProtoMessage() {} -func (*RpcBlockSetLinkTargetBlockId) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 9, 0} -} -func (m *RpcBlockSetLinkTargetBlockId) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetLinkTargetBlockId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetLinkTargetBlockId.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetLinkTargetBlockId) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetLinkTargetBlockId.Merge(m, src) -} -func (m *RpcBlockSetLinkTargetBlockId) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetLinkTargetBlockId) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetLinkTargetBlockId.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetLinkTargetBlockId proto.InternalMessageInfo - -type RpcBlockSetLinkTargetBlockIdRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - TargetBlockId string `protobuf:"bytes,3,opt,name=targetBlockId,proto3" json:"targetBlockId,omitempty"` -} - -func (m *RpcBlockSetLinkTargetBlockIdRequest) Reset() { *m = RpcBlockSetLinkTargetBlockIdRequest{} } -func (m *RpcBlockSetLinkTargetBlockIdRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetLinkTargetBlockIdRequest) ProtoMessage() {} -func (*RpcBlockSetLinkTargetBlockIdRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 9, 0, 0} -} -func (m *RpcBlockSetLinkTargetBlockIdRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetLinkTargetBlockIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetLinkTargetBlockIdRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetLinkTargetBlockIdRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetLinkTargetBlockIdRequest.Merge(m, src) -} -func (m *RpcBlockSetLinkTargetBlockIdRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetLinkTargetBlockIdRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetLinkTargetBlockIdRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetLinkTargetBlockIdRequest proto.InternalMessageInfo - -func (m *RpcBlockSetLinkTargetBlockIdRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockSetLinkTargetBlockIdRequest) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockSetLinkTargetBlockIdRequest) GetTargetBlockId() string { - if m != nil { - return m.TargetBlockId - } - return "" -} - -type RpcBlockSetLinkTargetBlockIdResponse struct { - Error *RpcBlockSetLinkTargetBlockIdResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockSetLinkTargetBlockIdResponse) Reset() { *m = RpcBlockSetLinkTargetBlockIdResponse{} } -func (m *RpcBlockSetLinkTargetBlockIdResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetLinkTargetBlockIdResponse) ProtoMessage() {} -func (*RpcBlockSetLinkTargetBlockIdResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 9, 0, 1} -} -func (m *RpcBlockSetLinkTargetBlockIdResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetLinkTargetBlockIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetLinkTargetBlockIdResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetLinkTargetBlockIdResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetLinkTargetBlockIdResponse.Merge(m, src) -} -func (m *RpcBlockSetLinkTargetBlockIdResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetLinkTargetBlockIdResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetLinkTargetBlockIdResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetLinkTargetBlockIdResponse proto.InternalMessageInfo - -func (m *RpcBlockSetLinkTargetBlockIdResponse) GetError() *RpcBlockSetLinkTargetBlockIdResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockSetLinkTargetBlockIdResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockSetLinkTargetBlockIdResponseError struct { - Code RpcBlockSetLinkTargetBlockIdResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockSetLinkTargetBlockIdResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockSetLinkTargetBlockIdResponseError) Reset() { - *m = RpcBlockSetLinkTargetBlockIdResponseError{} -} -func (m *RpcBlockSetLinkTargetBlockIdResponseError) String() string { - return proto.CompactTextString(m) -} -func (*RpcBlockSetLinkTargetBlockIdResponseError) ProtoMessage() {} -func (*RpcBlockSetLinkTargetBlockIdResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 11, 9, 0, 1, 0} -} -func (m *RpcBlockSetLinkTargetBlockIdResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetLinkTargetBlockIdResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetLinkTargetBlockIdResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetLinkTargetBlockIdResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetLinkTargetBlockIdResponseError.Merge(m, src) -} -func (m *RpcBlockSetLinkTargetBlockIdResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetLinkTargetBlockIdResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetLinkTargetBlockIdResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetLinkTargetBlockIdResponseError proto.InternalMessageInfo - -func (m *RpcBlockSetLinkTargetBlockIdResponseError) GetCode() RpcBlockSetLinkTargetBlockIdResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockSetLinkTargetBlockIdResponseError_NULL -} - -func (m *RpcBlockSetLinkTargetBlockIdResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockRelation struct { -} - -func (m *RpcBlockRelation) Reset() { *m = RpcBlockRelation{} } -func (m *RpcBlockRelation) String() string { return proto.CompactTextString(m) } -func (*RpcBlockRelation) ProtoMessage() {} -func (*RpcBlockRelation) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 12} -} -func (m *RpcBlockRelation) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockRelation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockRelation.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockRelation) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockRelation.Merge(m, src) -} -func (m *RpcBlockRelation) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockRelation) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockRelation.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockRelation proto.InternalMessageInfo - -type RpcBlockRelationSetKey struct { -} - -func (m *RpcBlockRelationSetKey) Reset() { *m = RpcBlockRelationSetKey{} } -func (m *RpcBlockRelationSetKey) String() string { return proto.CompactTextString(m) } -func (*RpcBlockRelationSetKey) ProtoMessage() {} -func (*RpcBlockRelationSetKey) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 12, 0} -} -func (m *RpcBlockRelationSetKey) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockRelationSetKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockRelationSetKey.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockRelationSetKey) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockRelationSetKey.Merge(m, src) -} -func (m *RpcBlockRelationSetKey) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockRelationSetKey) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockRelationSetKey.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockRelationSetKey proto.InternalMessageInfo - -type RpcBlockRelationSetKeyRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` -} - -func (m *RpcBlockRelationSetKeyRequest) Reset() { *m = RpcBlockRelationSetKeyRequest{} } -func (m *RpcBlockRelationSetKeyRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockRelationSetKeyRequest) ProtoMessage() {} -func (*RpcBlockRelationSetKeyRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 12, 0, 0} -} -func (m *RpcBlockRelationSetKeyRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockRelationSetKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockRelationSetKeyRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockRelationSetKeyRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockRelationSetKeyRequest.Merge(m, src) -} -func (m *RpcBlockRelationSetKeyRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockRelationSetKeyRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockRelationSetKeyRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockRelationSetKeyRequest proto.InternalMessageInfo - -func (m *RpcBlockRelationSetKeyRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockRelationSetKeyRequest) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockRelationSetKeyRequest) GetKey() string { - if m != nil { - return m.Key - } - return "" -} - -type RpcBlockRelationSetKeyResponse struct { - Error *RpcBlockRelationSetKeyResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockRelationSetKeyResponse) Reset() { *m = RpcBlockRelationSetKeyResponse{} } -func (m *RpcBlockRelationSetKeyResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockRelationSetKeyResponse) ProtoMessage() {} -func (*RpcBlockRelationSetKeyResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 12, 0, 1} -} -func (m *RpcBlockRelationSetKeyResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockRelationSetKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockRelationSetKeyResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockRelationSetKeyResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockRelationSetKeyResponse.Merge(m, src) -} -func (m *RpcBlockRelationSetKeyResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockRelationSetKeyResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockRelationSetKeyResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockRelationSetKeyResponse proto.InternalMessageInfo - -func (m *RpcBlockRelationSetKeyResponse) GetError() *RpcBlockRelationSetKeyResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockRelationSetKeyResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockRelationSetKeyResponseError struct { - Code RpcBlockRelationSetKeyResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockRelationSetKeyResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockRelationSetKeyResponseError) Reset() { *m = RpcBlockRelationSetKeyResponseError{} } -func (m *RpcBlockRelationSetKeyResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockRelationSetKeyResponseError) ProtoMessage() {} -func (*RpcBlockRelationSetKeyResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 12, 0, 1, 0} -} -func (m *RpcBlockRelationSetKeyResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockRelationSetKeyResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockRelationSetKeyResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockRelationSetKeyResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockRelationSetKeyResponseError.Merge(m, src) -} -func (m *RpcBlockRelationSetKeyResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockRelationSetKeyResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockRelationSetKeyResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockRelationSetKeyResponseError proto.InternalMessageInfo - -func (m *RpcBlockRelationSetKeyResponseError) GetCode() RpcBlockRelationSetKeyResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockRelationSetKeyResponseError_NULL -} - -func (m *RpcBlockRelationSetKeyResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockRelationAdd struct { -} - -func (m *RpcBlockRelationAdd) Reset() { *m = RpcBlockRelationAdd{} } -func (m *RpcBlockRelationAdd) String() string { return proto.CompactTextString(m) } -func (*RpcBlockRelationAdd) ProtoMessage() {} -func (*RpcBlockRelationAdd) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 12, 1} -} -func (m *RpcBlockRelationAdd) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockRelationAdd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockRelationAdd.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockRelationAdd) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockRelationAdd.Merge(m, src) -} -func (m *RpcBlockRelationAdd) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockRelationAdd) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockRelationAdd.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockRelationAdd proto.InternalMessageInfo - -type RpcBlockRelationAddRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - Relation *model.Relation `protobuf:"bytes,3,opt,name=relation,proto3" json:"relation,omitempty"` -} - -func (m *RpcBlockRelationAddRequest) Reset() { *m = RpcBlockRelationAddRequest{} } -func (m *RpcBlockRelationAddRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockRelationAddRequest) ProtoMessage() {} -func (*RpcBlockRelationAddRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 12, 1, 0} -} -func (m *RpcBlockRelationAddRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockRelationAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockRelationAddRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockRelationAddRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockRelationAddRequest.Merge(m, src) -} -func (m *RpcBlockRelationAddRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockRelationAddRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockRelationAddRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockRelationAddRequest proto.InternalMessageInfo - -func (m *RpcBlockRelationAddRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockRelationAddRequest) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockRelationAddRequest) GetRelation() *model.Relation { - if m != nil { - return m.Relation - } - return nil -} - -type RpcBlockRelationAddResponse struct { - Error *RpcBlockRelationAddResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockRelationAddResponse) Reset() { *m = RpcBlockRelationAddResponse{} } -func (m *RpcBlockRelationAddResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockRelationAddResponse) ProtoMessage() {} -func (*RpcBlockRelationAddResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 12, 1, 1} -} -func (m *RpcBlockRelationAddResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockRelationAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockRelationAddResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockRelationAddResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockRelationAddResponse.Merge(m, src) -} -func (m *RpcBlockRelationAddResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockRelationAddResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockRelationAddResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockRelationAddResponse proto.InternalMessageInfo - -func (m *RpcBlockRelationAddResponse) GetError() *RpcBlockRelationAddResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockRelationAddResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockRelationAddResponseError struct { - Code RpcBlockRelationAddResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockRelationAddResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockRelationAddResponseError) Reset() { *m = RpcBlockRelationAddResponseError{} } -func (m *RpcBlockRelationAddResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockRelationAddResponseError) ProtoMessage() {} -func (*RpcBlockRelationAddResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 12, 1, 1, 0} -} -func (m *RpcBlockRelationAddResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockRelationAddResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockRelationAddResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockRelationAddResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockRelationAddResponseError.Merge(m, src) -} -func (m *RpcBlockRelationAddResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockRelationAddResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockRelationAddResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockRelationAddResponseError proto.InternalMessageInfo - -func (m *RpcBlockRelationAddResponseError) GetCode() RpcBlockRelationAddResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockRelationAddResponseError_NULL -} - -func (m *RpcBlockRelationAddResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockObjectType struct { -} - -func (m *RpcBlockObjectType) Reset() { *m = RpcBlockObjectType{} } -func (m *RpcBlockObjectType) String() string { return proto.CompactTextString(m) } -func (*RpcBlockObjectType) ProtoMessage() {} -func (*RpcBlockObjectType) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 13} -} -func (m *RpcBlockObjectType) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockObjectType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockObjectType.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockObjectType) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockObjectType.Merge(m, src) -} -func (m *RpcBlockObjectType) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockObjectType) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockObjectType.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockObjectType proto.InternalMessageInfo - -type RpcBlockObjectTypeSet struct { -} - -func (m *RpcBlockObjectTypeSet) Reset() { *m = RpcBlockObjectTypeSet{} } -func (m *RpcBlockObjectTypeSet) String() string { return proto.CompactTextString(m) } -func (*RpcBlockObjectTypeSet) ProtoMessage() {} -func (*RpcBlockObjectTypeSet) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 13, 0} -} -func (m *RpcBlockObjectTypeSet) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockObjectTypeSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockObjectTypeSet.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockObjectTypeSet) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockObjectTypeSet.Merge(m, src) -} -func (m *RpcBlockObjectTypeSet) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockObjectTypeSet) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockObjectTypeSet.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockObjectTypeSet proto.InternalMessageInfo - -type RpcBlockObjectTypeSetRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - ObjectTypeUrl string `protobuf:"bytes,3,opt,name=objectTypeUrl,proto3" json:"objectTypeUrl,omitempty"` -} - -func (m *RpcBlockObjectTypeSetRequest) Reset() { *m = RpcBlockObjectTypeSetRequest{} } -func (m *RpcBlockObjectTypeSetRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockObjectTypeSetRequest) ProtoMessage() {} -func (*RpcBlockObjectTypeSetRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 13, 0, 0} -} -func (m *RpcBlockObjectTypeSetRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockObjectTypeSetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockObjectTypeSetRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockObjectTypeSetRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockObjectTypeSetRequest.Merge(m, src) -} -func (m *RpcBlockObjectTypeSetRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockObjectTypeSetRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockObjectTypeSetRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockObjectTypeSetRequest proto.InternalMessageInfo - -func (m *RpcBlockObjectTypeSetRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockObjectTypeSetRequest) GetObjectTypeUrl() string { - if m != nil { - return m.ObjectTypeUrl - } - return "" -} - -type RpcBlockObjectTypeSetResponse struct { - Error *RpcBlockObjectTypeSetResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockObjectTypeSetResponse) Reset() { *m = RpcBlockObjectTypeSetResponse{} } -func (m *RpcBlockObjectTypeSetResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockObjectTypeSetResponse) ProtoMessage() {} -func (*RpcBlockObjectTypeSetResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 13, 0, 1} -} -func (m *RpcBlockObjectTypeSetResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockObjectTypeSetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockObjectTypeSetResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockObjectTypeSetResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockObjectTypeSetResponse.Merge(m, src) -} -func (m *RpcBlockObjectTypeSetResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockObjectTypeSetResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockObjectTypeSetResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockObjectTypeSetResponse proto.InternalMessageInfo - -func (m *RpcBlockObjectTypeSetResponse) GetError() *RpcBlockObjectTypeSetResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockObjectTypeSetResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockObjectTypeSetResponseError struct { - Code RpcBlockObjectTypeSetResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockObjectTypeSetResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockObjectTypeSetResponseError) Reset() { *m = RpcBlockObjectTypeSetResponseError{} } -func (m *RpcBlockObjectTypeSetResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockObjectTypeSetResponseError) ProtoMessage() {} -func (*RpcBlockObjectTypeSetResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 13, 0, 1, 0} -} -func (m *RpcBlockObjectTypeSetResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockObjectTypeSetResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockObjectTypeSetResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockObjectTypeSetResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockObjectTypeSetResponseError.Merge(m, src) -} -func (m *RpcBlockObjectTypeSetResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockObjectTypeSetResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockObjectTypeSetResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockObjectTypeSetResponseError proto.InternalMessageInfo - -func (m *RpcBlockObjectTypeSetResponseError) GetCode() RpcBlockObjectTypeSetResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockObjectTypeSetResponseError_NULL -} - -func (m *RpcBlockObjectTypeSetResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockBookmark struct { -} - -func (m *RpcBlockBookmark) Reset() { *m = RpcBlockBookmark{} } -func (m *RpcBlockBookmark) String() string { return proto.CompactTextString(m) } -func (*RpcBlockBookmark) ProtoMessage() {} -func (*RpcBlockBookmark) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 14} -} -func (m *RpcBlockBookmark) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockBookmark) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockBookmark.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockBookmark) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockBookmark.Merge(m, src) -} -func (m *RpcBlockBookmark) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockBookmark) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockBookmark.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockBookmark proto.InternalMessageInfo - -type RpcBlockBookmarkFetch struct { -} - -func (m *RpcBlockBookmarkFetch) Reset() { *m = RpcBlockBookmarkFetch{} } -func (m *RpcBlockBookmarkFetch) String() string { return proto.CompactTextString(m) } -func (*RpcBlockBookmarkFetch) ProtoMessage() {} -func (*RpcBlockBookmarkFetch) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 14, 0} -} -func (m *RpcBlockBookmarkFetch) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockBookmarkFetch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockBookmarkFetch.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockBookmarkFetch) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockBookmarkFetch.Merge(m, src) -} -func (m *RpcBlockBookmarkFetch) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockBookmarkFetch) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockBookmarkFetch.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockBookmarkFetch proto.InternalMessageInfo - -type RpcBlockBookmarkFetchRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` -} - -func (m *RpcBlockBookmarkFetchRequest) Reset() { *m = RpcBlockBookmarkFetchRequest{} } -func (m *RpcBlockBookmarkFetchRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockBookmarkFetchRequest) ProtoMessage() {} -func (*RpcBlockBookmarkFetchRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 14, 0, 0} -} -func (m *RpcBlockBookmarkFetchRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockBookmarkFetchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockBookmarkFetchRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockBookmarkFetchRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockBookmarkFetchRequest.Merge(m, src) -} -func (m *RpcBlockBookmarkFetchRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockBookmarkFetchRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockBookmarkFetchRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockBookmarkFetchRequest proto.InternalMessageInfo - -func (m *RpcBlockBookmarkFetchRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockBookmarkFetchRequest) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockBookmarkFetchRequest) GetUrl() string { - if m != nil { - return m.Url - } - return "" -} - -type RpcBlockBookmarkFetchResponse struct { - Error *RpcBlockBookmarkFetchResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockBookmarkFetchResponse) Reset() { *m = RpcBlockBookmarkFetchResponse{} } -func (m *RpcBlockBookmarkFetchResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockBookmarkFetchResponse) ProtoMessage() {} -func (*RpcBlockBookmarkFetchResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 14, 0, 1} -} -func (m *RpcBlockBookmarkFetchResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockBookmarkFetchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockBookmarkFetchResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockBookmarkFetchResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockBookmarkFetchResponse.Merge(m, src) -} -func (m *RpcBlockBookmarkFetchResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockBookmarkFetchResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockBookmarkFetchResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockBookmarkFetchResponse proto.InternalMessageInfo - -func (m *RpcBlockBookmarkFetchResponse) GetError() *RpcBlockBookmarkFetchResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockBookmarkFetchResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockBookmarkFetchResponseError struct { - Code RpcBlockBookmarkFetchResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockBookmarkFetchResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockBookmarkFetchResponseError) Reset() { *m = RpcBlockBookmarkFetchResponseError{} } -func (m *RpcBlockBookmarkFetchResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockBookmarkFetchResponseError) ProtoMessage() {} -func (*RpcBlockBookmarkFetchResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 14, 0, 1, 0} -} -func (m *RpcBlockBookmarkFetchResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockBookmarkFetchResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockBookmarkFetchResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockBookmarkFetchResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockBookmarkFetchResponseError.Merge(m, src) -} -func (m *RpcBlockBookmarkFetchResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockBookmarkFetchResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockBookmarkFetchResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockBookmarkFetchResponseError proto.InternalMessageInfo - -func (m *RpcBlockBookmarkFetchResponseError) GetCode() RpcBlockBookmarkFetchResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockBookmarkFetchResponseError_NULL -} - -func (m *RpcBlockBookmarkFetchResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockBookmarkCreateAndFetch struct { -} - -func (m *RpcBlockBookmarkCreateAndFetch) Reset() { *m = RpcBlockBookmarkCreateAndFetch{} } -func (m *RpcBlockBookmarkCreateAndFetch) String() string { return proto.CompactTextString(m) } -func (*RpcBlockBookmarkCreateAndFetch) ProtoMessage() {} -func (*RpcBlockBookmarkCreateAndFetch) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 14, 1} -} -func (m *RpcBlockBookmarkCreateAndFetch) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockBookmarkCreateAndFetch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockBookmarkCreateAndFetch.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockBookmarkCreateAndFetch) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockBookmarkCreateAndFetch.Merge(m, src) -} -func (m *RpcBlockBookmarkCreateAndFetch) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockBookmarkCreateAndFetch) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockBookmarkCreateAndFetch.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockBookmarkCreateAndFetch proto.InternalMessageInfo - -type RpcBlockBookmarkCreateAndFetchRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - TargetId string `protobuf:"bytes,2,opt,name=targetId,proto3" json:"targetId,omitempty"` - Position model.BlockPosition `protobuf:"varint,3,opt,name=position,proto3,enum=anytype.model.BlockPosition" json:"position,omitempty"` - Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"` -} - -func (m *RpcBlockBookmarkCreateAndFetchRequest) Reset() { *m = RpcBlockBookmarkCreateAndFetchRequest{} } -func (m *RpcBlockBookmarkCreateAndFetchRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockBookmarkCreateAndFetchRequest) ProtoMessage() {} -func (*RpcBlockBookmarkCreateAndFetchRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 14, 1, 0} -} -func (m *RpcBlockBookmarkCreateAndFetchRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockBookmarkCreateAndFetchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockBookmarkCreateAndFetchRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockBookmarkCreateAndFetchRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockBookmarkCreateAndFetchRequest.Merge(m, src) -} -func (m *RpcBlockBookmarkCreateAndFetchRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockBookmarkCreateAndFetchRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockBookmarkCreateAndFetchRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockBookmarkCreateAndFetchRequest proto.InternalMessageInfo - -func (m *RpcBlockBookmarkCreateAndFetchRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockBookmarkCreateAndFetchRequest) GetTargetId() string { - if m != nil { - return m.TargetId - } - return "" -} - -func (m *RpcBlockBookmarkCreateAndFetchRequest) GetPosition() model.BlockPosition { - if m != nil { - return m.Position - } - return model.Block_None -} - -func (m *RpcBlockBookmarkCreateAndFetchRequest) GetUrl() string { - if m != nil { - return m.Url - } - return "" -} - -type RpcBlockBookmarkCreateAndFetchResponse struct { - Error *RpcBlockBookmarkCreateAndFetchResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - Event *ResponseEvent `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockBookmarkCreateAndFetchResponse) Reset() { - *m = RpcBlockBookmarkCreateAndFetchResponse{} -} -func (m *RpcBlockBookmarkCreateAndFetchResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockBookmarkCreateAndFetchResponse) ProtoMessage() {} -func (*RpcBlockBookmarkCreateAndFetchResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 14, 1, 1} -} -func (m *RpcBlockBookmarkCreateAndFetchResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockBookmarkCreateAndFetchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockBookmarkCreateAndFetchResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockBookmarkCreateAndFetchResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockBookmarkCreateAndFetchResponse.Merge(m, src) -} -func (m *RpcBlockBookmarkCreateAndFetchResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockBookmarkCreateAndFetchResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockBookmarkCreateAndFetchResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockBookmarkCreateAndFetchResponse proto.InternalMessageInfo - -func (m *RpcBlockBookmarkCreateAndFetchResponse) GetError() *RpcBlockBookmarkCreateAndFetchResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockBookmarkCreateAndFetchResponse) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockBookmarkCreateAndFetchResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockBookmarkCreateAndFetchResponseError struct { - Code RpcBlockBookmarkCreateAndFetchResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockBookmarkCreateAndFetchResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockBookmarkCreateAndFetchResponseError) Reset() { - *m = RpcBlockBookmarkCreateAndFetchResponseError{} -} -func (m *RpcBlockBookmarkCreateAndFetchResponseError) String() string { - return proto.CompactTextString(m) -} -func (*RpcBlockBookmarkCreateAndFetchResponseError) ProtoMessage() {} -func (*RpcBlockBookmarkCreateAndFetchResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 14, 1, 1, 0} -} -func (m *RpcBlockBookmarkCreateAndFetchResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockBookmarkCreateAndFetchResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockBookmarkCreateAndFetchResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockBookmarkCreateAndFetchResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockBookmarkCreateAndFetchResponseError.Merge(m, src) -} -func (m *RpcBlockBookmarkCreateAndFetchResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockBookmarkCreateAndFetchResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockBookmarkCreateAndFetchResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockBookmarkCreateAndFetchResponseError proto.InternalMessageInfo - -func (m *RpcBlockBookmarkCreateAndFetchResponseError) GetCode() RpcBlockBookmarkCreateAndFetchResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockBookmarkCreateAndFetchResponseError_NULL -} - -func (m *RpcBlockBookmarkCreateAndFetchResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockFile struct { -} - -func (m *RpcBlockFile) Reset() { *m = RpcBlockFile{} } -func (m *RpcBlockFile) String() string { return proto.CompactTextString(m) } -func (*RpcBlockFile) ProtoMessage() {} -func (*RpcBlockFile) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 15} -} -func (m *RpcBlockFile) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockFile.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockFile) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockFile.Merge(m, src) -} -func (m *RpcBlockFile) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockFile) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockFile.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockFile proto.InternalMessageInfo - -type RpcBlockFileCreateAndUpload struct { -} - -func (m *RpcBlockFileCreateAndUpload) Reset() { *m = RpcBlockFileCreateAndUpload{} } -func (m *RpcBlockFileCreateAndUpload) String() string { return proto.CompactTextString(m) } -func (*RpcBlockFileCreateAndUpload) ProtoMessage() {} -func (*RpcBlockFileCreateAndUpload) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 15, 0} -} -func (m *RpcBlockFileCreateAndUpload) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockFileCreateAndUpload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockFileCreateAndUpload.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockFileCreateAndUpload) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockFileCreateAndUpload.Merge(m, src) -} -func (m *RpcBlockFileCreateAndUpload) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockFileCreateAndUpload) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockFileCreateAndUpload.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockFileCreateAndUpload proto.InternalMessageInfo - -type RpcBlockFileCreateAndUploadRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - TargetId string `protobuf:"bytes,2,opt,name=targetId,proto3" json:"targetId,omitempty"` - Position model.BlockPosition `protobuf:"varint,3,opt,name=position,proto3,enum=anytype.model.BlockPosition" json:"position,omitempty"` - Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"` - LocalPath string `protobuf:"bytes,5,opt,name=localPath,proto3" json:"localPath,omitempty"` - FileType model.BlockContentFileType `protobuf:"varint,6,opt,name=fileType,proto3,enum=anytype.model.BlockContentFileType" json:"fileType,omitempty"` -} - -func (m *RpcBlockFileCreateAndUploadRequest) Reset() { *m = RpcBlockFileCreateAndUploadRequest{} } -func (m *RpcBlockFileCreateAndUploadRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockFileCreateAndUploadRequest) ProtoMessage() {} -func (*RpcBlockFileCreateAndUploadRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 15, 0, 0} -} -func (m *RpcBlockFileCreateAndUploadRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockFileCreateAndUploadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockFileCreateAndUploadRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockFileCreateAndUploadRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockFileCreateAndUploadRequest.Merge(m, src) -} -func (m *RpcBlockFileCreateAndUploadRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockFileCreateAndUploadRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockFileCreateAndUploadRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockFileCreateAndUploadRequest proto.InternalMessageInfo - -func (m *RpcBlockFileCreateAndUploadRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockFileCreateAndUploadRequest) GetTargetId() string { - if m != nil { - return m.TargetId - } - return "" -} - -func (m *RpcBlockFileCreateAndUploadRequest) GetPosition() model.BlockPosition { - if m != nil { - return m.Position - } - return model.Block_None -} - -func (m *RpcBlockFileCreateAndUploadRequest) GetUrl() string { - if m != nil { - return m.Url - } - return "" -} - -func (m *RpcBlockFileCreateAndUploadRequest) GetLocalPath() string { - if m != nil { - return m.LocalPath - } - return "" -} - -func (m *RpcBlockFileCreateAndUploadRequest) GetFileType() model.BlockContentFileType { - if m != nil { - return m.FileType - } - return model.BlockContentFile_None -} - -type RpcBlockFileCreateAndUploadResponse struct { - Error *RpcBlockFileCreateAndUploadResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - Event *ResponseEvent `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockFileCreateAndUploadResponse) Reset() { *m = RpcBlockFileCreateAndUploadResponse{} } -func (m *RpcBlockFileCreateAndUploadResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockFileCreateAndUploadResponse) ProtoMessage() {} -func (*RpcBlockFileCreateAndUploadResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 15, 0, 1} -} -func (m *RpcBlockFileCreateAndUploadResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockFileCreateAndUploadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockFileCreateAndUploadResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockFileCreateAndUploadResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockFileCreateAndUploadResponse.Merge(m, src) -} -func (m *RpcBlockFileCreateAndUploadResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockFileCreateAndUploadResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockFileCreateAndUploadResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockFileCreateAndUploadResponse proto.InternalMessageInfo - -func (m *RpcBlockFileCreateAndUploadResponse) GetError() *RpcBlockFileCreateAndUploadResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockFileCreateAndUploadResponse) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockFileCreateAndUploadResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockFileCreateAndUploadResponseError struct { - Code RpcBlockFileCreateAndUploadResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockFileCreateAndUploadResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockFileCreateAndUploadResponseError) Reset() { - *m = RpcBlockFileCreateAndUploadResponseError{} -} -func (m *RpcBlockFileCreateAndUploadResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockFileCreateAndUploadResponseError) ProtoMessage() {} -func (*RpcBlockFileCreateAndUploadResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 15, 0, 1, 0} -} -func (m *RpcBlockFileCreateAndUploadResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockFileCreateAndUploadResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockFileCreateAndUploadResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockFileCreateAndUploadResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockFileCreateAndUploadResponseError.Merge(m, src) -} -func (m *RpcBlockFileCreateAndUploadResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockFileCreateAndUploadResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockFileCreateAndUploadResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockFileCreateAndUploadResponseError proto.InternalMessageInfo - -func (m *RpcBlockFileCreateAndUploadResponseError) GetCode() RpcBlockFileCreateAndUploadResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockFileCreateAndUploadResponseError_NULL -} - -func (m *RpcBlockFileCreateAndUploadResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockDataview struct { -} - -func (m *RpcBlockDataview) Reset() { *m = RpcBlockDataview{} } -func (m *RpcBlockDataview) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDataview) ProtoMessage() {} -func (*RpcBlockDataview) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16} -} -func (m *RpcBlockDataview) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataview.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataview) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataview.Merge(m, src) -} -func (m *RpcBlockDataview) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataview) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataview.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataview proto.InternalMessageInfo - -type RpcBlockDataviewViewCreate struct { -} - -func (m *RpcBlockDataviewViewCreate) Reset() { *m = RpcBlockDataviewViewCreate{} } -func (m *RpcBlockDataviewViewCreate) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDataviewViewCreate) ProtoMessage() {} -func (*RpcBlockDataviewViewCreate) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 0} -} -func (m *RpcBlockDataviewViewCreate) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewViewCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewViewCreate.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewViewCreate) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewViewCreate.Merge(m, src) -} -func (m *RpcBlockDataviewViewCreate) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewViewCreate) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewViewCreate.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewViewCreate proto.InternalMessageInfo - -type RpcBlockDataviewViewCreateRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - View *model.BlockContentDataviewView `protobuf:"bytes,4,opt,name=view,proto3" json:"view,omitempty"` -} - -func (m *RpcBlockDataviewViewCreateRequest) Reset() { *m = RpcBlockDataviewViewCreateRequest{} } -func (m *RpcBlockDataviewViewCreateRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDataviewViewCreateRequest) ProtoMessage() {} -func (*RpcBlockDataviewViewCreateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 0, 0} -} -func (m *RpcBlockDataviewViewCreateRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewViewCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewViewCreateRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewViewCreateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewViewCreateRequest.Merge(m, src) -} -func (m *RpcBlockDataviewViewCreateRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewViewCreateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewViewCreateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewViewCreateRequest proto.InternalMessageInfo - -func (m *RpcBlockDataviewViewCreateRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockDataviewViewCreateRequest) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockDataviewViewCreateRequest) GetView() *model.BlockContentDataviewView { - if m != nil { - return m.View - } - return nil -} - -type RpcBlockDataviewViewCreateResponse struct { - Error *RpcBlockDataviewViewCreateResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` - ViewId string `protobuf:"bytes,3,opt,name=viewId,proto3" json:"viewId,omitempty"` -} - -func (m *RpcBlockDataviewViewCreateResponse) Reset() { *m = RpcBlockDataviewViewCreateResponse{} } -func (m *RpcBlockDataviewViewCreateResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDataviewViewCreateResponse) ProtoMessage() {} -func (*RpcBlockDataviewViewCreateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 0, 1} -} -func (m *RpcBlockDataviewViewCreateResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewViewCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewViewCreateResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewViewCreateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewViewCreateResponse.Merge(m, src) -} -func (m *RpcBlockDataviewViewCreateResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewViewCreateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewViewCreateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewViewCreateResponse proto.InternalMessageInfo - -func (m *RpcBlockDataviewViewCreateResponse) GetError() *RpcBlockDataviewViewCreateResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockDataviewViewCreateResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -func (m *RpcBlockDataviewViewCreateResponse) GetViewId() string { - if m != nil { - return m.ViewId - } - return "" -} - -type RpcBlockDataviewViewCreateResponseError struct { - Code RpcBlockDataviewViewCreateResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockDataviewViewCreateResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockDataviewViewCreateResponseError) Reset() { - *m = RpcBlockDataviewViewCreateResponseError{} -} -func (m *RpcBlockDataviewViewCreateResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDataviewViewCreateResponseError) ProtoMessage() {} -func (*RpcBlockDataviewViewCreateResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 0, 1, 0} -} -func (m *RpcBlockDataviewViewCreateResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewViewCreateResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewViewCreateResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewViewCreateResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewViewCreateResponseError.Merge(m, src) -} -func (m *RpcBlockDataviewViewCreateResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewViewCreateResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewViewCreateResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewViewCreateResponseError proto.InternalMessageInfo - -func (m *RpcBlockDataviewViewCreateResponseError) GetCode() RpcBlockDataviewViewCreateResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockDataviewViewCreateResponseError_NULL -} - -func (m *RpcBlockDataviewViewCreateResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockDataviewViewUpdate struct { -} - -func (m *RpcBlockDataviewViewUpdate) Reset() { *m = RpcBlockDataviewViewUpdate{} } -func (m *RpcBlockDataviewViewUpdate) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDataviewViewUpdate) ProtoMessage() {} -func (*RpcBlockDataviewViewUpdate) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 1} -} -func (m *RpcBlockDataviewViewUpdate) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewViewUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewViewUpdate.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewViewUpdate) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewViewUpdate.Merge(m, src) -} -func (m *RpcBlockDataviewViewUpdate) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewViewUpdate) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewViewUpdate.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewViewUpdate proto.InternalMessageInfo - -type RpcBlockDataviewViewUpdateRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - ViewId string `protobuf:"bytes,3,opt,name=viewId,proto3" json:"viewId,omitempty"` - View *model.BlockContentDataviewView `protobuf:"bytes,4,opt,name=view,proto3" json:"view,omitempty"` -} - -func (m *RpcBlockDataviewViewUpdateRequest) Reset() { *m = RpcBlockDataviewViewUpdateRequest{} } -func (m *RpcBlockDataviewViewUpdateRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDataviewViewUpdateRequest) ProtoMessage() {} -func (*RpcBlockDataviewViewUpdateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 1, 0} -} -func (m *RpcBlockDataviewViewUpdateRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewViewUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewViewUpdateRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewViewUpdateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewViewUpdateRequest.Merge(m, src) -} -func (m *RpcBlockDataviewViewUpdateRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewViewUpdateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewViewUpdateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewViewUpdateRequest proto.InternalMessageInfo - -func (m *RpcBlockDataviewViewUpdateRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockDataviewViewUpdateRequest) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockDataviewViewUpdateRequest) GetViewId() string { - if m != nil { - return m.ViewId - } - return "" -} - -func (m *RpcBlockDataviewViewUpdateRequest) GetView() *model.BlockContentDataviewView { - if m != nil { - return m.View - } - return nil -} - -type RpcBlockDataviewViewUpdateResponse struct { - Error *RpcBlockDataviewViewUpdateResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockDataviewViewUpdateResponse) Reset() { *m = RpcBlockDataviewViewUpdateResponse{} } -func (m *RpcBlockDataviewViewUpdateResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDataviewViewUpdateResponse) ProtoMessage() {} -func (*RpcBlockDataviewViewUpdateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 1, 1} -} -func (m *RpcBlockDataviewViewUpdateResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewViewUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewViewUpdateResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewViewUpdateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewViewUpdateResponse.Merge(m, src) -} -func (m *RpcBlockDataviewViewUpdateResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewViewUpdateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewViewUpdateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewViewUpdateResponse proto.InternalMessageInfo - -func (m *RpcBlockDataviewViewUpdateResponse) GetError() *RpcBlockDataviewViewUpdateResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockDataviewViewUpdateResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockDataviewViewUpdateResponseError struct { - Code RpcBlockDataviewViewUpdateResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockDataviewViewUpdateResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockDataviewViewUpdateResponseError) Reset() { - *m = RpcBlockDataviewViewUpdateResponseError{} -} -func (m *RpcBlockDataviewViewUpdateResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDataviewViewUpdateResponseError) ProtoMessage() {} -func (*RpcBlockDataviewViewUpdateResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 1, 1, 0} -} -func (m *RpcBlockDataviewViewUpdateResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewViewUpdateResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewViewUpdateResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewViewUpdateResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewViewUpdateResponseError.Merge(m, src) -} -func (m *RpcBlockDataviewViewUpdateResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewViewUpdateResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewViewUpdateResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewViewUpdateResponseError proto.InternalMessageInfo - -func (m *RpcBlockDataviewViewUpdateResponseError) GetCode() RpcBlockDataviewViewUpdateResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockDataviewViewUpdateResponseError_NULL -} - -func (m *RpcBlockDataviewViewUpdateResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockDataviewViewDelete struct { -} - -func (m *RpcBlockDataviewViewDelete) Reset() { *m = RpcBlockDataviewViewDelete{} } -func (m *RpcBlockDataviewViewDelete) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDataviewViewDelete) ProtoMessage() {} -func (*RpcBlockDataviewViewDelete) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 2} -} -func (m *RpcBlockDataviewViewDelete) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewViewDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewViewDelete.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewViewDelete) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewViewDelete.Merge(m, src) -} -func (m *RpcBlockDataviewViewDelete) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewViewDelete) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewViewDelete.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewViewDelete proto.InternalMessageInfo - -type RpcBlockDataviewViewDeleteRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - ViewId string `protobuf:"bytes,4,opt,name=viewId,proto3" json:"viewId,omitempty"` -} - -func (m *RpcBlockDataviewViewDeleteRequest) Reset() { *m = RpcBlockDataviewViewDeleteRequest{} } -func (m *RpcBlockDataviewViewDeleteRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDataviewViewDeleteRequest) ProtoMessage() {} -func (*RpcBlockDataviewViewDeleteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 2, 0} -} -func (m *RpcBlockDataviewViewDeleteRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewViewDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewViewDeleteRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewViewDeleteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewViewDeleteRequest.Merge(m, src) -} -func (m *RpcBlockDataviewViewDeleteRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewViewDeleteRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewViewDeleteRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewViewDeleteRequest proto.InternalMessageInfo - -func (m *RpcBlockDataviewViewDeleteRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockDataviewViewDeleteRequest) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockDataviewViewDeleteRequest) GetViewId() string { - if m != nil { - return m.ViewId - } - return "" -} - -type RpcBlockDataviewViewDeleteResponse struct { - Error *RpcBlockDataviewViewDeleteResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockDataviewViewDeleteResponse) Reset() { *m = RpcBlockDataviewViewDeleteResponse{} } -func (m *RpcBlockDataviewViewDeleteResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDataviewViewDeleteResponse) ProtoMessage() {} -func (*RpcBlockDataviewViewDeleteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 2, 1} -} -func (m *RpcBlockDataviewViewDeleteResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewViewDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewViewDeleteResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewViewDeleteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewViewDeleteResponse.Merge(m, src) -} -func (m *RpcBlockDataviewViewDeleteResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewViewDeleteResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewViewDeleteResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewViewDeleteResponse proto.InternalMessageInfo - -func (m *RpcBlockDataviewViewDeleteResponse) GetError() *RpcBlockDataviewViewDeleteResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockDataviewViewDeleteResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockDataviewViewDeleteResponseError struct { - Code RpcBlockDataviewViewDeleteResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockDataviewViewDeleteResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockDataviewViewDeleteResponseError) Reset() { - *m = RpcBlockDataviewViewDeleteResponseError{} -} -func (m *RpcBlockDataviewViewDeleteResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDataviewViewDeleteResponseError) ProtoMessage() {} -func (*RpcBlockDataviewViewDeleteResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 2, 1, 0} -} -func (m *RpcBlockDataviewViewDeleteResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewViewDeleteResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewViewDeleteResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewViewDeleteResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewViewDeleteResponseError.Merge(m, src) -} -func (m *RpcBlockDataviewViewDeleteResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewViewDeleteResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewViewDeleteResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewViewDeleteResponseError proto.InternalMessageInfo - -func (m *RpcBlockDataviewViewDeleteResponseError) GetCode() RpcBlockDataviewViewDeleteResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockDataviewViewDeleteResponseError_NULL -} - -func (m *RpcBlockDataviewViewDeleteResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockDataviewViewSetPosition struct { -} - -func (m *RpcBlockDataviewViewSetPosition) Reset() { *m = RpcBlockDataviewViewSetPosition{} } -func (m *RpcBlockDataviewViewSetPosition) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDataviewViewSetPosition) ProtoMessage() {} -func (*RpcBlockDataviewViewSetPosition) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 3} -} -func (m *RpcBlockDataviewViewSetPosition) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewViewSetPosition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewViewSetPosition.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewViewSetPosition) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewViewSetPosition.Merge(m, src) -} -func (m *RpcBlockDataviewViewSetPosition) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewViewSetPosition) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewViewSetPosition.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewViewSetPosition proto.InternalMessageInfo - -type RpcBlockDataviewViewSetPositionRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - ViewId string `protobuf:"bytes,4,opt,name=viewId,proto3" json:"viewId,omitempty"` - Position uint32 `protobuf:"varint,5,opt,name=position,proto3" json:"position,omitempty"` -} - -func (m *RpcBlockDataviewViewSetPositionRequest) Reset() { - *m = RpcBlockDataviewViewSetPositionRequest{} -} -func (m *RpcBlockDataviewViewSetPositionRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDataviewViewSetPositionRequest) ProtoMessage() {} -func (*RpcBlockDataviewViewSetPositionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 3, 0} -} -func (m *RpcBlockDataviewViewSetPositionRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewViewSetPositionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewViewSetPositionRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewViewSetPositionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewViewSetPositionRequest.Merge(m, src) -} -func (m *RpcBlockDataviewViewSetPositionRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewViewSetPositionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewViewSetPositionRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewViewSetPositionRequest proto.InternalMessageInfo - -func (m *RpcBlockDataviewViewSetPositionRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockDataviewViewSetPositionRequest) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockDataviewViewSetPositionRequest) GetViewId() string { - if m != nil { - return m.ViewId - } - return "" -} - -func (m *RpcBlockDataviewViewSetPositionRequest) GetPosition() uint32 { - if m != nil { - return m.Position - } - return 0 -} - -type RpcBlockDataviewViewSetPositionResponse struct { - Error *RpcBlockDataviewViewSetPositionResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockDataviewViewSetPositionResponse) Reset() { - *m = RpcBlockDataviewViewSetPositionResponse{} -} -func (m *RpcBlockDataviewViewSetPositionResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDataviewViewSetPositionResponse) ProtoMessage() {} -func (*RpcBlockDataviewViewSetPositionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 3, 1} -} -func (m *RpcBlockDataviewViewSetPositionResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewViewSetPositionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewViewSetPositionResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewViewSetPositionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewViewSetPositionResponse.Merge(m, src) -} -func (m *RpcBlockDataviewViewSetPositionResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewViewSetPositionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewViewSetPositionResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewViewSetPositionResponse proto.InternalMessageInfo - -func (m *RpcBlockDataviewViewSetPositionResponse) GetError() *RpcBlockDataviewViewSetPositionResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockDataviewViewSetPositionResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockDataviewViewSetPositionResponseError struct { - Code RpcBlockDataviewViewSetPositionResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockDataviewViewSetPositionResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockDataviewViewSetPositionResponseError) Reset() { - *m = RpcBlockDataviewViewSetPositionResponseError{} -} -func (m *RpcBlockDataviewViewSetPositionResponseError) String() string { - return proto.CompactTextString(m) -} -func (*RpcBlockDataviewViewSetPositionResponseError) ProtoMessage() {} -func (*RpcBlockDataviewViewSetPositionResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 3, 1, 0} -} -func (m *RpcBlockDataviewViewSetPositionResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewViewSetPositionResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewViewSetPositionResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewViewSetPositionResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewViewSetPositionResponseError.Merge(m, src) -} -func (m *RpcBlockDataviewViewSetPositionResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewViewSetPositionResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewViewSetPositionResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewViewSetPositionResponseError proto.InternalMessageInfo - -func (m *RpcBlockDataviewViewSetPositionResponseError) GetCode() RpcBlockDataviewViewSetPositionResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockDataviewViewSetPositionResponseError_NULL -} - -func (m *RpcBlockDataviewViewSetPositionResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -// set the current active view (persisted only within a session) -type RpcBlockDataviewViewSetActive struct { -} - -func (m *RpcBlockDataviewViewSetActive) Reset() { *m = RpcBlockDataviewViewSetActive{} } -func (m *RpcBlockDataviewViewSetActive) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDataviewViewSetActive) ProtoMessage() {} -func (*RpcBlockDataviewViewSetActive) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 4} -} -func (m *RpcBlockDataviewViewSetActive) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewViewSetActive) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewViewSetActive.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewViewSetActive) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewViewSetActive.Merge(m, src) -} -func (m *RpcBlockDataviewViewSetActive) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewViewSetActive) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewViewSetActive.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewViewSetActive proto.InternalMessageInfo - -type RpcBlockDataviewViewSetActiveRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - ViewId string `protobuf:"bytes,3,opt,name=viewId,proto3" json:"viewId,omitempty"` - Offset uint32 `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint32 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"` -} - -func (m *RpcBlockDataviewViewSetActiveRequest) Reset() { *m = RpcBlockDataviewViewSetActiveRequest{} } -func (m *RpcBlockDataviewViewSetActiveRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDataviewViewSetActiveRequest) ProtoMessage() {} -func (*RpcBlockDataviewViewSetActiveRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 4, 0} -} -func (m *RpcBlockDataviewViewSetActiveRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewViewSetActiveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewViewSetActiveRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewViewSetActiveRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewViewSetActiveRequest.Merge(m, src) -} -func (m *RpcBlockDataviewViewSetActiveRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewViewSetActiveRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewViewSetActiveRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewViewSetActiveRequest proto.InternalMessageInfo - -func (m *RpcBlockDataviewViewSetActiveRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockDataviewViewSetActiveRequest) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockDataviewViewSetActiveRequest) GetViewId() string { - if m != nil { - return m.ViewId - } - return "" -} - -func (m *RpcBlockDataviewViewSetActiveRequest) GetOffset() uint32 { - if m != nil { - return m.Offset - } - return 0 -} - -func (m *RpcBlockDataviewViewSetActiveRequest) GetLimit() uint32 { - if m != nil { - return m.Limit - } - return 0 -} - -type RpcBlockDataviewViewSetActiveResponse struct { - Error *RpcBlockDataviewViewSetActiveResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockDataviewViewSetActiveResponse) Reset() { *m = RpcBlockDataviewViewSetActiveResponse{} } -func (m *RpcBlockDataviewViewSetActiveResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDataviewViewSetActiveResponse) ProtoMessage() {} -func (*RpcBlockDataviewViewSetActiveResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 4, 1} -} -func (m *RpcBlockDataviewViewSetActiveResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewViewSetActiveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewViewSetActiveResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewViewSetActiveResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewViewSetActiveResponse.Merge(m, src) -} -func (m *RpcBlockDataviewViewSetActiveResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewViewSetActiveResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewViewSetActiveResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewViewSetActiveResponse proto.InternalMessageInfo - -func (m *RpcBlockDataviewViewSetActiveResponse) GetError() *RpcBlockDataviewViewSetActiveResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockDataviewViewSetActiveResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockDataviewViewSetActiveResponseError struct { - Code RpcBlockDataviewViewSetActiveResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockDataviewViewSetActiveResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockDataviewViewSetActiveResponseError) Reset() { - *m = RpcBlockDataviewViewSetActiveResponseError{} -} -func (m *RpcBlockDataviewViewSetActiveResponseError) String() string { - return proto.CompactTextString(m) -} -func (*RpcBlockDataviewViewSetActiveResponseError) ProtoMessage() {} -func (*RpcBlockDataviewViewSetActiveResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 4, 1, 0} -} -func (m *RpcBlockDataviewViewSetActiveResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewViewSetActiveResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewViewSetActiveResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewViewSetActiveResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewViewSetActiveResponseError.Merge(m, src) -} -func (m *RpcBlockDataviewViewSetActiveResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewViewSetActiveResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewViewSetActiveResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewViewSetActiveResponseError proto.InternalMessageInfo - -func (m *RpcBlockDataviewViewSetActiveResponseError) GetCode() RpcBlockDataviewViewSetActiveResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockDataviewViewSetActiveResponseError_NULL -} - -func (m *RpcBlockDataviewViewSetActiveResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockDataviewRecordUpdate struct { -} - -func (m *RpcBlockDataviewRecordUpdate) Reset() { *m = RpcBlockDataviewRecordUpdate{} } -func (m *RpcBlockDataviewRecordUpdate) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDataviewRecordUpdate) ProtoMessage() {} -func (*RpcBlockDataviewRecordUpdate) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 5} -} -func (m *RpcBlockDataviewRecordUpdate) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewRecordUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewRecordUpdate.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewRecordUpdate) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewRecordUpdate.Merge(m, src) -} -func (m *RpcBlockDataviewRecordUpdate) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewRecordUpdate) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewRecordUpdate.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewRecordUpdate proto.InternalMessageInfo - -type RpcBlockDataviewRecordUpdateRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - RecordId string `protobuf:"bytes,3,opt,name=recordId,proto3" json:"recordId,omitempty"` - Record *types.Struct `protobuf:"bytes,4,opt,name=record,proto3" json:"record,omitempty"` -} - -func (m *RpcBlockDataviewRecordUpdateRequest) Reset() { *m = RpcBlockDataviewRecordUpdateRequest{} } -func (m *RpcBlockDataviewRecordUpdateRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDataviewRecordUpdateRequest) ProtoMessage() {} -func (*RpcBlockDataviewRecordUpdateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 5, 0} -} -func (m *RpcBlockDataviewRecordUpdateRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewRecordUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewRecordUpdateRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewRecordUpdateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewRecordUpdateRequest.Merge(m, src) -} -func (m *RpcBlockDataviewRecordUpdateRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewRecordUpdateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewRecordUpdateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewRecordUpdateRequest proto.InternalMessageInfo - -func (m *RpcBlockDataviewRecordUpdateRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockDataviewRecordUpdateRequest) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockDataviewRecordUpdateRequest) GetRecordId() string { - if m != nil { - return m.RecordId - } - return "" -} - -func (m *RpcBlockDataviewRecordUpdateRequest) GetRecord() *types.Struct { - if m != nil { - return m.Record - } - return nil -} - -type RpcBlockDataviewRecordUpdateResponse struct { - Error *RpcBlockDataviewRecordUpdateResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` -} - -func (m *RpcBlockDataviewRecordUpdateResponse) Reset() { *m = RpcBlockDataviewRecordUpdateResponse{} } -func (m *RpcBlockDataviewRecordUpdateResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDataviewRecordUpdateResponse) ProtoMessage() {} -func (*RpcBlockDataviewRecordUpdateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 5, 1} -} -func (m *RpcBlockDataviewRecordUpdateResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewRecordUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewRecordUpdateResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewRecordUpdateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewRecordUpdateResponse.Merge(m, src) -} -func (m *RpcBlockDataviewRecordUpdateResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewRecordUpdateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewRecordUpdateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewRecordUpdateResponse proto.InternalMessageInfo - -func (m *RpcBlockDataviewRecordUpdateResponse) GetError() *RpcBlockDataviewRecordUpdateResponseError { - if m != nil { - return m.Error - } - return nil -} - -type RpcBlockDataviewRecordUpdateResponseError struct { - Code RpcBlockDataviewRecordUpdateResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockDataviewRecordUpdateResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockDataviewRecordUpdateResponseError) Reset() { - *m = RpcBlockDataviewRecordUpdateResponseError{} -} -func (m *RpcBlockDataviewRecordUpdateResponseError) String() string { - return proto.CompactTextString(m) -} -func (*RpcBlockDataviewRecordUpdateResponseError) ProtoMessage() {} -func (*RpcBlockDataviewRecordUpdateResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 5, 1, 0} -} -func (m *RpcBlockDataviewRecordUpdateResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewRecordUpdateResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewRecordUpdateResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewRecordUpdateResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewRecordUpdateResponseError.Merge(m, src) -} -func (m *RpcBlockDataviewRecordUpdateResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewRecordUpdateResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewRecordUpdateResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewRecordUpdateResponseError proto.InternalMessageInfo - -func (m *RpcBlockDataviewRecordUpdateResponseError) GetCode() RpcBlockDataviewRecordUpdateResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockDataviewRecordUpdateResponseError_NULL -} - -func (m *RpcBlockDataviewRecordUpdateResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockDataviewRecordDelete struct { -} - -func (m *RpcBlockDataviewRecordDelete) Reset() { *m = RpcBlockDataviewRecordDelete{} } -func (m *RpcBlockDataviewRecordDelete) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDataviewRecordDelete) ProtoMessage() {} -func (*RpcBlockDataviewRecordDelete) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 6} -} -func (m *RpcBlockDataviewRecordDelete) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewRecordDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewRecordDelete.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewRecordDelete) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewRecordDelete.Merge(m, src) -} -func (m *RpcBlockDataviewRecordDelete) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewRecordDelete) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewRecordDelete.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewRecordDelete proto.InternalMessageInfo - -type RpcBlockDataviewRecordDeleteRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - RecordId string `protobuf:"bytes,3,opt,name=recordId,proto3" json:"recordId,omitempty"` -} - -func (m *RpcBlockDataviewRecordDeleteRequest) Reset() { *m = RpcBlockDataviewRecordDeleteRequest{} } -func (m *RpcBlockDataviewRecordDeleteRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDataviewRecordDeleteRequest) ProtoMessage() {} -func (*RpcBlockDataviewRecordDeleteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 6, 0} -} -func (m *RpcBlockDataviewRecordDeleteRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewRecordDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewRecordDeleteRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewRecordDeleteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewRecordDeleteRequest.Merge(m, src) -} -func (m *RpcBlockDataviewRecordDeleteRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewRecordDeleteRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewRecordDeleteRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewRecordDeleteRequest proto.InternalMessageInfo - -func (m *RpcBlockDataviewRecordDeleteRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockDataviewRecordDeleteRequest) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockDataviewRecordDeleteRequest) GetRecordId() string { - if m != nil { - return m.RecordId - } - return "" -} - -type RpcBlockDataviewRecordDeleteResponse struct { - Error *RpcBlockDataviewRecordDeleteResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockDataviewRecordDeleteResponse) Reset() { *m = RpcBlockDataviewRecordDeleteResponse{} } -func (m *RpcBlockDataviewRecordDeleteResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDataviewRecordDeleteResponse) ProtoMessage() {} -func (*RpcBlockDataviewRecordDeleteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 6, 1} -} -func (m *RpcBlockDataviewRecordDeleteResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewRecordDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewRecordDeleteResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewRecordDeleteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewRecordDeleteResponse.Merge(m, src) -} -func (m *RpcBlockDataviewRecordDeleteResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewRecordDeleteResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewRecordDeleteResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewRecordDeleteResponse proto.InternalMessageInfo - -func (m *RpcBlockDataviewRecordDeleteResponse) GetError() *RpcBlockDataviewRecordDeleteResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockDataviewRecordDeleteResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockDataviewRecordDeleteResponseError struct { - Code RpcBlockDataviewRecordDeleteResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockDataviewRecordDeleteResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockDataviewRecordDeleteResponseError) Reset() { - *m = RpcBlockDataviewRecordDeleteResponseError{} -} -func (m *RpcBlockDataviewRecordDeleteResponseError) String() string { - return proto.CompactTextString(m) -} -func (*RpcBlockDataviewRecordDeleteResponseError) ProtoMessage() {} -func (*RpcBlockDataviewRecordDeleteResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 6, 1, 0} -} -func (m *RpcBlockDataviewRecordDeleteResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewRecordDeleteResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewRecordDeleteResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewRecordDeleteResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewRecordDeleteResponseError.Merge(m, src) -} -func (m *RpcBlockDataviewRecordDeleteResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewRecordDeleteResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewRecordDeleteResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewRecordDeleteResponseError proto.InternalMessageInfo - -func (m *RpcBlockDataviewRecordDeleteResponseError) GetCode() RpcBlockDataviewRecordDeleteResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockDataviewRecordDeleteResponseError_NULL -} - -func (m *RpcBlockDataviewRecordDeleteResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockDataviewRecordCreate struct { -} - -func (m *RpcBlockDataviewRecordCreate) Reset() { *m = RpcBlockDataviewRecordCreate{} } -func (m *RpcBlockDataviewRecordCreate) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDataviewRecordCreate) ProtoMessage() {} -func (*RpcBlockDataviewRecordCreate) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 7} -} -func (m *RpcBlockDataviewRecordCreate) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewRecordCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewRecordCreate.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewRecordCreate) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewRecordCreate.Merge(m, src) -} -func (m *RpcBlockDataviewRecordCreate) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewRecordCreate) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewRecordCreate.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewRecordCreate proto.InternalMessageInfo - -type RpcBlockDataviewRecordCreateRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - Record *types.Struct `protobuf:"bytes,3,opt,name=record,proto3" json:"record,omitempty"` - TemplateId string `protobuf:"bytes,4,opt,name=templateId,proto3" json:"templateId,omitempty"` -} - -func (m *RpcBlockDataviewRecordCreateRequest) Reset() { *m = RpcBlockDataviewRecordCreateRequest{} } -func (m *RpcBlockDataviewRecordCreateRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDataviewRecordCreateRequest) ProtoMessage() {} -func (*RpcBlockDataviewRecordCreateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 7, 0} -} -func (m *RpcBlockDataviewRecordCreateRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewRecordCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewRecordCreateRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewRecordCreateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewRecordCreateRequest.Merge(m, src) -} -func (m *RpcBlockDataviewRecordCreateRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewRecordCreateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewRecordCreateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewRecordCreateRequest proto.InternalMessageInfo - -func (m *RpcBlockDataviewRecordCreateRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockDataviewRecordCreateRequest) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockDataviewRecordCreateRequest) GetRecord() *types.Struct { - if m != nil { - return m.Record - } - return nil -} - -func (m *RpcBlockDataviewRecordCreateRequest) GetTemplateId() string { - if m != nil { - return m.TemplateId - } - return "" -} - -type RpcBlockDataviewRecordCreateResponse struct { - Error *RpcBlockDataviewRecordCreateResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Record *types.Struct `protobuf:"bytes,2,opt,name=record,proto3" json:"record,omitempty"` -} - -func (m *RpcBlockDataviewRecordCreateResponse) Reset() { *m = RpcBlockDataviewRecordCreateResponse{} } -func (m *RpcBlockDataviewRecordCreateResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDataviewRecordCreateResponse) ProtoMessage() {} -func (*RpcBlockDataviewRecordCreateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 7, 1} -} -func (m *RpcBlockDataviewRecordCreateResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewRecordCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewRecordCreateResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewRecordCreateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewRecordCreateResponse.Merge(m, src) -} -func (m *RpcBlockDataviewRecordCreateResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewRecordCreateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewRecordCreateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewRecordCreateResponse proto.InternalMessageInfo - -func (m *RpcBlockDataviewRecordCreateResponse) GetError() *RpcBlockDataviewRecordCreateResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockDataviewRecordCreateResponse) GetRecord() *types.Struct { - if m != nil { - return m.Record - } - return nil -} - -type RpcBlockDataviewRecordCreateResponseError struct { - Code RpcBlockDataviewRecordCreateResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockDataviewRecordCreateResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockDataviewRecordCreateResponseError) Reset() { - *m = RpcBlockDataviewRecordCreateResponseError{} -} -func (m *RpcBlockDataviewRecordCreateResponseError) String() string { - return proto.CompactTextString(m) -} -func (*RpcBlockDataviewRecordCreateResponseError) ProtoMessage() {} -func (*RpcBlockDataviewRecordCreateResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 7, 1, 0} -} -func (m *RpcBlockDataviewRecordCreateResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewRecordCreateResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewRecordCreateResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewRecordCreateResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewRecordCreateResponseError.Merge(m, src) -} -func (m *RpcBlockDataviewRecordCreateResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewRecordCreateResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewRecordCreateResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewRecordCreateResponseError proto.InternalMessageInfo - -func (m *RpcBlockDataviewRecordCreateResponseError) GetCode() RpcBlockDataviewRecordCreateResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockDataviewRecordCreateResponseError_NULL -} - -func (m *RpcBlockDataviewRecordCreateResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockDataviewRelationAdd struct { -} - -func (m *RpcBlockDataviewRelationAdd) Reset() { *m = RpcBlockDataviewRelationAdd{} } -func (m *RpcBlockDataviewRelationAdd) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDataviewRelationAdd) ProtoMessage() {} -func (*RpcBlockDataviewRelationAdd) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 8} -} -func (m *RpcBlockDataviewRelationAdd) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewRelationAdd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewRelationAdd.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewRelationAdd) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewRelationAdd.Merge(m, src) -} -func (m *RpcBlockDataviewRelationAdd) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewRelationAdd) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewRelationAdd.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewRelationAdd proto.InternalMessageInfo - -type RpcBlockDataviewRelationAddRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - Relation *model.Relation `protobuf:"bytes,3,opt,name=relation,proto3" json:"relation,omitempty"` -} - -func (m *RpcBlockDataviewRelationAddRequest) Reset() { *m = RpcBlockDataviewRelationAddRequest{} } -func (m *RpcBlockDataviewRelationAddRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDataviewRelationAddRequest) ProtoMessage() {} -func (*RpcBlockDataviewRelationAddRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 8, 0} -} -func (m *RpcBlockDataviewRelationAddRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewRelationAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewRelationAddRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewRelationAddRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewRelationAddRequest.Merge(m, src) -} -func (m *RpcBlockDataviewRelationAddRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewRelationAddRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewRelationAddRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewRelationAddRequest proto.InternalMessageInfo - -func (m *RpcBlockDataviewRelationAddRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockDataviewRelationAddRequest) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockDataviewRelationAddRequest) GetRelation() *model.Relation { - if m != nil { - return m.Relation - } - return nil -} - -type RpcBlockDataviewRelationAddResponse struct { - Error *RpcBlockDataviewRelationAddResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` - RelationKey string `protobuf:"bytes,3,opt,name=relationKey,proto3" json:"relationKey,omitempty"` - Relation *model.Relation `protobuf:"bytes,4,opt,name=relation,proto3" json:"relation,omitempty"` -} - -func (m *RpcBlockDataviewRelationAddResponse) Reset() { *m = RpcBlockDataviewRelationAddResponse{} } -func (m *RpcBlockDataviewRelationAddResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDataviewRelationAddResponse) ProtoMessage() {} -func (*RpcBlockDataviewRelationAddResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 8, 1} -} -func (m *RpcBlockDataviewRelationAddResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewRelationAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewRelationAddResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewRelationAddResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewRelationAddResponse.Merge(m, src) -} -func (m *RpcBlockDataviewRelationAddResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewRelationAddResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewRelationAddResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewRelationAddResponse proto.InternalMessageInfo - -func (m *RpcBlockDataviewRelationAddResponse) GetError() *RpcBlockDataviewRelationAddResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockDataviewRelationAddResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -func (m *RpcBlockDataviewRelationAddResponse) GetRelationKey() string { - if m != nil { - return m.RelationKey - } - return "" -} - -func (m *RpcBlockDataviewRelationAddResponse) GetRelation() *model.Relation { - if m != nil { - return m.Relation - } - return nil -} - -type RpcBlockDataviewRelationAddResponseError struct { - Code RpcBlockDataviewRelationAddResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockDataviewRelationAddResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockDataviewRelationAddResponseError) Reset() { - *m = RpcBlockDataviewRelationAddResponseError{} -} -func (m *RpcBlockDataviewRelationAddResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDataviewRelationAddResponseError) ProtoMessage() {} -func (*RpcBlockDataviewRelationAddResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 8, 1, 0} -} -func (m *RpcBlockDataviewRelationAddResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewRelationAddResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewRelationAddResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewRelationAddResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewRelationAddResponseError.Merge(m, src) -} -func (m *RpcBlockDataviewRelationAddResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewRelationAddResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewRelationAddResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewRelationAddResponseError proto.InternalMessageInfo - -func (m *RpcBlockDataviewRelationAddResponseError) GetCode() RpcBlockDataviewRelationAddResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockDataviewRelationAddResponseError_NULL -} - -func (m *RpcBlockDataviewRelationAddResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockDataviewRelationUpdate struct { -} - -func (m *RpcBlockDataviewRelationUpdate) Reset() { *m = RpcBlockDataviewRelationUpdate{} } -func (m *RpcBlockDataviewRelationUpdate) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDataviewRelationUpdate) ProtoMessage() {} -func (*RpcBlockDataviewRelationUpdate) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 9} -} -func (m *RpcBlockDataviewRelationUpdate) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewRelationUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewRelationUpdate.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewRelationUpdate) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewRelationUpdate.Merge(m, src) -} -func (m *RpcBlockDataviewRelationUpdate) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewRelationUpdate) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewRelationUpdate.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewRelationUpdate proto.InternalMessageInfo - -type RpcBlockDataviewRelationUpdateRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - RelationKey string `protobuf:"bytes,3,opt,name=relationKey,proto3" json:"relationKey,omitempty"` - Relation *model.Relation `protobuf:"bytes,4,opt,name=relation,proto3" json:"relation,omitempty"` -} - -func (m *RpcBlockDataviewRelationUpdateRequest) Reset() { *m = RpcBlockDataviewRelationUpdateRequest{} } -func (m *RpcBlockDataviewRelationUpdateRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDataviewRelationUpdateRequest) ProtoMessage() {} -func (*RpcBlockDataviewRelationUpdateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 9, 0} -} -func (m *RpcBlockDataviewRelationUpdateRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewRelationUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewRelationUpdateRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewRelationUpdateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewRelationUpdateRequest.Merge(m, src) -} -func (m *RpcBlockDataviewRelationUpdateRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewRelationUpdateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewRelationUpdateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewRelationUpdateRequest proto.InternalMessageInfo - -func (m *RpcBlockDataviewRelationUpdateRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockDataviewRelationUpdateRequest) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockDataviewRelationUpdateRequest) GetRelationKey() string { - if m != nil { - return m.RelationKey - } - return "" -} - -func (m *RpcBlockDataviewRelationUpdateRequest) GetRelation() *model.Relation { - if m != nil { - return m.Relation - } - return nil -} - -type RpcBlockDataviewRelationUpdateResponse struct { - Error *RpcBlockDataviewRelationUpdateResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockDataviewRelationUpdateResponse) Reset() { - *m = RpcBlockDataviewRelationUpdateResponse{} -} -func (m *RpcBlockDataviewRelationUpdateResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDataviewRelationUpdateResponse) ProtoMessage() {} -func (*RpcBlockDataviewRelationUpdateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 9, 1} -} -func (m *RpcBlockDataviewRelationUpdateResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewRelationUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewRelationUpdateResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewRelationUpdateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewRelationUpdateResponse.Merge(m, src) -} -func (m *RpcBlockDataviewRelationUpdateResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewRelationUpdateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewRelationUpdateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewRelationUpdateResponse proto.InternalMessageInfo - -func (m *RpcBlockDataviewRelationUpdateResponse) GetError() *RpcBlockDataviewRelationUpdateResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockDataviewRelationUpdateResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockDataviewRelationUpdateResponseError struct { - Code RpcBlockDataviewRelationUpdateResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockDataviewRelationUpdateResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockDataviewRelationUpdateResponseError) Reset() { - *m = RpcBlockDataviewRelationUpdateResponseError{} -} -func (m *RpcBlockDataviewRelationUpdateResponseError) String() string { - return proto.CompactTextString(m) -} -func (*RpcBlockDataviewRelationUpdateResponseError) ProtoMessage() {} -func (*RpcBlockDataviewRelationUpdateResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 9, 1, 0} -} -func (m *RpcBlockDataviewRelationUpdateResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewRelationUpdateResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewRelationUpdateResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewRelationUpdateResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewRelationUpdateResponseError.Merge(m, src) -} -func (m *RpcBlockDataviewRelationUpdateResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewRelationUpdateResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewRelationUpdateResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewRelationUpdateResponseError proto.InternalMessageInfo - -func (m *RpcBlockDataviewRelationUpdateResponseError) GetCode() RpcBlockDataviewRelationUpdateResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockDataviewRelationUpdateResponseError_NULL -} - -func (m *RpcBlockDataviewRelationUpdateResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockDataviewRelationDelete struct { -} - -func (m *RpcBlockDataviewRelationDelete) Reset() { *m = RpcBlockDataviewRelationDelete{} } -func (m *RpcBlockDataviewRelationDelete) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDataviewRelationDelete) ProtoMessage() {} -func (*RpcBlockDataviewRelationDelete) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 10} -} -func (m *RpcBlockDataviewRelationDelete) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewRelationDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewRelationDelete.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewRelationDelete) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewRelationDelete.Merge(m, src) -} -func (m *RpcBlockDataviewRelationDelete) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewRelationDelete) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewRelationDelete.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewRelationDelete proto.InternalMessageInfo - -type RpcBlockDataviewRelationDeleteRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - RelationKey string `protobuf:"bytes,3,opt,name=relationKey,proto3" json:"relationKey,omitempty"` -} - -func (m *RpcBlockDataviewRelationDeleteRequest) Reset() { *m = RpcBlockDataviewRelationDeleteRequest{} } -func (m *RpcBlockDataviewRelationDeleteRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDataviewRelationDeleteRequest) ProtoMessage() {} -func (*RpcBlockDataviewRelationDeleteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 10, 0} -} -func (m *RpcBlockDataviewRelationDeleteRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewRelationDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewRelationDeleteRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewRelationDeleteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewRelationDeleteRequest.Merge(m, src) -} -func (m *RpcBlockDataviewRelationDeleteRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewRelationDeleteRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewRelationDeleteRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewRelationDeleteRequest proto.InternalMessageInfo - -func (m *RpcBlockDataviewRelationDeleteRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockDataviewRelationDeleteRequest) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockDataviewRelationDeleteRequest) GetRelationKey() string { - if m != nil { - return m.RelationKey - } - return "" -} - -type RpcBlockDataviewRelationDeleteResponse struct { - Error *RpcBlockDataviewRelationDeleteResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockDataviewRelationDeleteResponse) Reset() { - *m = RpcBlockDataviewRelationDeleteResponse{} -} -func (m *RpcBlockDataviewRelationDeleteResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDataviewRelationDeleteResponse) ProtoMessage() {} -func (*RpcBlockDataviewRelationDeleteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 10, 1} -} -func (m *RpcBlockDataviewRelationDeleteResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewRelationDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewRelationDeleteResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewRelationDeleteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewRelationDeleteResponse.Merge(m, src) -} -func (m *RpcBlockDataviewRelationDeleteResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewRelationDeleteResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewRelationDeleteResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewRelationDeleteResponse proto.InternalMessageInfo - -func (m *RpcBlockDataviewRelationDeleteResponse) GetError() *RpcBlockDataviewRelationDeleteResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockDataviewRelationDeleteResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockDataviewRelationDeleteResponseError struct { - Code RpcBlockDataviewRelationDeleteResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockDataviewRelationDeleteResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockDataviewRelationDeleteResponseError) Reset() { - *m = RpcBlockDataviewRelationDeleteResponseError{} -} -func (m *RpcBlockDataviewRelationDeleteResponseError) String() string { - return proto.CompactTextString(m) -} -func (*RpcBlockDataviewRelationDeleteResponseError) ProtoMessage() {} -func (*RpcBlockDataviewRelationDeleteResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 10, 1, 0} -} -func (m *RpcBlockDataviewRelationDeleteResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewRelationDeleteResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewRelationDeleteResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewRelationDeleteResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewRelationDeleteResponseError.Merge(m, src) -} -func (m *RpcBlockDataviewRelationDeleteResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewRelationDeleteResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewRelationDeleteResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewRelationDeleteResponseError proto.InternalMessageInfo - -func (m *RpcBlockDataviewRelationDeleteResponseError) GetCode() RpcBlockDataviewRelationDeleteResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockDataviewRelationDeleteResponseError_NULL -} - -func (m *RpcBlockDataviewRelationDeleteResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -// RecordRelationOptionAdd may return existing option in case object specified with recordId already have the option with the same name or ID -type RpcBlockDataviewRecordRelationOptionAdd struct { -} - -func (m *RpcBlockDataviewRecordRelationOptionAdd) Reset() { - *m = RpcBlockDataviewRecordRelationOptionAdd{} -} -func (m *RpcBlockDataviewRecordRelationOptionAdd) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDataviewRecordRelationOptionAdd) ProtoMessage() {} -func (*RpcBlockDataviewRecordRelationOptionAdd) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 11} -} -func (m *RpcBlockDataviewRecordRelationOptionAdd) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewRecordRelationOptionAdd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewRecordRelationOptionAdd.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewRecordRelationOptionAdd) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewRecordRelationOptionAdd.Merge(m, src) -} -func (m *RpcBlockDataviewRecordRelationOptionAdd) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewRecordRelationOptionAdd) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewRecordRelationOptionAdd.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewRecordRelationOptionAdd proto.InternalMessageInfo - -type RpcBlockDataviewRecordRelationOptionAddRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - RelationKey string `protobuf:"bytes,3,opt,name=relationKey,proto3" json:"relationKey,omitempty"` - Option *model.RelationOption `protobuf:"bytes,4,opt,name=option,proto3" json:"option,omitempty"` - RecordId string `protobuf:"bytes,5,opt,name=recordId,proto3" json:"recordId,omitempty"` -} - -func (m *RpcBlockDataviewRecordRelationOptionAddRequest) Reset() { - *m = RpcBlockDataviewRecordRelationOptionAddRequest{} -} -func (m *RpcBlockDataviewRecordRelationOptionAddRequest) String() string { - return proto.CompactTextString(m) -} -func (*RpcBlockDataviewRecordRelationOptionAddRequest) ProtoMessage() {} -func (*RpcBlockDataviewRecordRelationOptionAddRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 11, 0} -} -func (m *RpcBlockDataviewRecordRelationOptionAddRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewRecordRelationOptionAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewRecordRelationOptionAddRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewRecordRelationOptionAddRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewRecordRelationOptionAddRequest.Merge(m, src) -} -func (m *RpcBlockDataviewRecordRelationOptionAddRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewRecordRelationOptionAddRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewRecordRelationOptionAddRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewRecordRelationOptionAddRequest proto.InternalMessageInfo - -func (m *RpcBlockDataviewRecordRelationOptionAddRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockDataviewRecordRelationOptionAddRequest) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockDataviewRecordRelationOptionAddRequest) GetRelationKey() string { - if m != nil { - return m.RelationKey - } - return "" -} - -func (m *RpcBlockDataviewRecordRelationOptionAddRequest) GetOption() *model.RelationOption { - if m != nil { - return m.Option - } - return nil -} - -func (m *RpcBlockDataviewRecordRelationOptionAddRequest) GetRecordId() string { - if m != nil { - return m.RecordId - } - return "" -} - -type RpcBlockDataviewRecordRelationOptionAddResponse struct { - Error *RpcBlockDataviewRecordRelationOptionAddResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` - Option *model.RelationOption `protobuf:"bytes,3,opt,name=option,proto3" json:"option,omitempty"` -} - -func (m *RpcBlockDataviewRecordRelationOptionAddResponse) Reset() { - *m = RpcBlockDataviewRecordRelationOptionAddResponse{} -} -func (m *RpcBlockDataviewRecordRelationOptionAddResponse) String() string { - return proto.CompactTextString(m) -} -func (*RpcBlockDataviewRecordRelationOptionAddResponse) ProtoMessage() {} -func (*RpcBlockDataviewRecordRelationOptionAddResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 11, 1} -} -func (m *RpcBlockDataviewRecordRelationOptionAddResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewRecordRelationOptionAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewRecordRelationOptionAddResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewRecordRelationOptionAddResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewRecordRelationOptionAddResponse.Merge(m, src) -} -func (m *RpcBlockDataviewRecordRelationOptionAddResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewRecordRelationOptionAddResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewRecordRelationOptionAddResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewRecordRelationOptionAddResponse proto.InternalMessageInfo - -func (m *RpcBlockDataviewRecordRelationOptionAddResponse) GetError() *RpcBlockDataviewRecordRelationOptionAddResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockDataviewRecordRelationOptionAddResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -func (m *RpcBlockDataviewRecordRelationOptionAddResponse) GetOption() *model.RelationOption { - if m != nil { - return m.Option - } - return nil -} - -type RpcBlockDataviewRecordRelationOptionAddResponseError struct { - Code RpcBlockDataviewRecordRelationOptionAddResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockDataviewRecordRelationOptionAddResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockDataviewRecordRelationOptionAddResponseError) Reset() { - *m = RpcBlockDataviewRecordRelationOptionAddResponseError{} -} -func (m *RpcBlockDataviewRecordRelationOptionAddResponseError) String() string { - return proto.CompactTextString(m) -} -func (*RpcBlockDataviewRecordRelationOptionAddResponseError) ProtoMessage() {} -func (*RpcBlockDataviewRecordRelationOptionAddResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 11, 1, 0} -} -func (m *RpcBlockDataviewRecordRelationOptionAddResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewRecordRelationOptionAddResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewRecordRelationOptionAddResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewRecordRelationOptionAddResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewRecordRelationOptionAddResponseError.Merge(m, src) -} -func (m *RpcBlockDataviewRecordRelationOptionAddResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewRecordRelationOptionAddResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewRecordRelationOptionAddResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewRecordRelationOptionAddResponseError proto.InternalMessageInfo - -func (m *RpcBlockDataviewRecordRelationOptionAddResponseError) GetCode() RpcBlockDataviewRecordRelationOptionAddResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockDataviewRecordRelationOptionAddResponseError_NULL -} - -func (m *RpcBlockDataviewRecordRelationOptionAddResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockDataviewRecordRelationOptionUpdate struct { -} - -func (m *RpcBlockDataviewRecordRelationOptionUpdate) Reset() { - *m = RpcBlockDataviewRecordRelationOptionUpdate{} -} -func (m *RpcBlockDataviewRecordRelationOptionUpdate) String() string { - return proto.CompactTextString(m) -} -func (*RpcBlockDataviewRecordRelationOptionUpdate) ProtoMessage() {} -func (*RpcBlockDataviewRecordRelationOptionUpdate) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 12} -} -func (m *RpcBlockDataviewRecordRelationOptionUpdate) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewRecordRelationOptionUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewRecordRelationOptionUpdate.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewRecordRelationOptionUpdate) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewRecordRelationOptionUpdate.Merge(m, src) -} -func (m *RpcBlockDataviewRecordRelationOptionUpdate) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewRecordRelationOptionUpdate) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewRecordRelationOptionUpdate.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewRecordRelationOptionUpdate proto.InternalMessageInfo - -type RpcBlockDataviewRecordRelationOptionUpdateRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - RelationKey string `protobuf:"bytes,3,opt,name=relationKey,proto3" json:"relationKey,omitempty"` - Option *model.RelationOption `protobuf:"bytes,4,opt,name=option,proto3" json:"option,omitempty"` - RecordId string `protobuf:"bytes,5,opt,name=recordId,proto3" json:"recordId,omitempty"` -} - -func (m *RpcBlockDataviewRecordRelationOptionUpdateRequest) Reset() { - *m = RpcBlockDataviewRecordRelationOptionUpdateRequest{} -} -func (m *RpcBlockDataviewRecordRelationOptionUpdateRequest) String() string { - return proto.CompactTextString(m) -} -func (*RpcBlockDataviewRecordRelationOptionUpdateRequest) ProtoMessage() {} -func (*RpcBlockDataviewRecordRelationOptionUpdateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 12, 0} -} -func (m *RpcBlockDataviewRecordRelationOptionUpdateRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewRecordRelationOptionUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewRecordRelationOptionUpdateRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewRecordRelationOptionUpdateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewRecordRelationOptionUpdateRequest.Merge(m, src) -} -func (m *RpcBlockDataviewRecordRelationOptionUpdateRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewRecordRelationOptionUpdateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewRecordRelationOptionUpdateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewRecordRelationOptionUpdateRequest proto.InternalMessageInfo - -func (m *RpcBlockDataviewRecordRelationOptionUpdateRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockDataviewRecordRelationOptionUpdateRequest) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockDataviewRecordRelationOptionUpdateRequest) GetRelationKey() string { - if m != nil { - return m.RelationKey - } - return "" -} - -func (m *RpcBlockDataviewRecordRelationOptionUpdateRequest) GetOption() *model.RelationOption { - if m != nil { - return m.Option - } - return nil -} - -func (m *RpcBlockDataviewRecordRelationOptionUpdateRequest) GetRecordId() string { - if m != nil { - return m.RecordId - } - return "" -} - -type RpcBlockDataviewRecordRelationOptionUpdateResponse struct { - Error *RpcBlockDataviewRecordRelationOptionUpdateResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockDataviewRecordRelationOptionUpdateResponse) Reset() { - *m = RpcBlockDataviewRecordRelationOptionUpdateResponse{} -} -func (m *RpcBlockDataviewRecordRelationOptionUpdateResponse) String() string { - return proto.CompactTextString(m) -} -func (*RpcBlockDataviewRecordRelationOptionUpdateResponse) ProtoMessage() {} -func (*RpcBlockDataviewRecordRelationOptionUpdateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 12, 1} -} -func (m *RpcBlockDataviewRecordRelationOptionUpdateResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewRecordRelationOptionUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewRecordRelationOptionUpdateResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewRecordRelationOptionUpdateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewRecordRelationOptionUpdateResponse.Merge(m, src) -} -func (m *RpcBlockDataviewRecordRelationOptionUpdateResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewRecordRelationOptionUpdateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewRecordRelationOptionUpdateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewRecordRelationOptionUpdateResponse proto.InternalMessageInfo - -func (m *RpcBlockDataviewRecordRelationOptionUpdateResponse) GetError() *RpcBlockDataviewRecordRelationOptionUpdateResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockDataviewRecordRelationOptionUpdateResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockDataviewRecordRelationOptionUpdateResponseError struct { - Code RpcBlockDataviewRecordRelationOptionUpdateResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockDataviewRecordRelationOptionUpdateResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockDataviewRecordRelationOptionUpdateResponseError) Reset() { - *m = RpcBlockDataviewRecordRelationOptionUpdateResponseError{} -} -func (m *RpcBlockDataviewRecordRelationOptionUpdateResponseError) String() string { - return proto.CompactTextString(m) -} -func (*RpcBlockDataviewRecordRelationOptionUpdateResponseError) ProtoMessage() {} -func (*RpcBlockDataviewRecordRelationOptionUpdateResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 12, 1, 0} -} -func (m *RpcBlockDataviewRecordRelationOptionUpdateResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewRecordRelationOptionUpdateResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewRecordRelationOptionUpdateResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewRecordRelationOptionUpdateResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewRecordRelationOptionUpdateResponseError.Merge(m, src) -} -func (m *RpcBlockDataviewRecordRelationOptionUpdateResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewRecordRelationOptionUpdateResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewRecordRelationOptionUpdateResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewRecordRelationOptionUpdateResponseError proto.InternalMessageInfo - -func (m *RpcBlockDataviewRecordRelationOptionUpdateResponseError) GetCode() RpcBlockDataviewRecordRelationOptionUpdateResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockDataviewRecordRelationOptionUpdateResponseError_NULL -} - -func (m *RpcBlockDataviewRecordRelationOptionUpdateResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockDataviewRecordRelationOptionDelete struct { -} - -func (m *RpcBlockDataviewRecordRelationOptionDelete) Reset() { - *m = RpcBlockDataviewRecordRelationOptionDelete{} -} -func (m *RpcBlockDataviewRecordRelationOptionDelete) String() string { - return proto.CompactTextString(m) -} -func (*RpcBlockDataviewRecordRelationOptionDelete) ProtoMessage() {} -func (*RpcBlockDataviewRecordRelationOptionDelete) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 13} -} -func (m *RpcBlockDataviewRecordRelationOptionDelete) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewRecordRelationOptionDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewRecordRelationOptionDelete.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewRecordRelationOptionDelete) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewRecordRelationOptionDelete.Merge(m, src) -} -func (m *RpcBlockDataviewRecordRelationOptionDelete) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewRecordRelationOptionDelete) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewRecordRelationOptionDelete.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewRecordRelationOptionDelete proto.InternalMessageInfo - -type RpcBlockDataviewRecordRelationOptionDeleteRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - RelationKey string `protobuf:"bytes,3,opt,name=relationKey,proto3" json:"relationKey,omitempty"` - OptionId string `protobuf:"bytes,4,opt,name=optionId,proto3" json:"optionId,omitempty"` - RecordId string `protobuf:"bytes,5,opt,name=recordId,proto3" json:"recordId,omitempty"` -} - -func (m *RpcBlockDataviewRecordRelationOptionDeleteRequest) Reset() { - *m = RpcBlockDataviewRecordRelationOptionDeleteRequest{} -} -func (m *RpcBlockDataviewRecordRelationOptionDeleteRequest) String() string { - return proto.CompactTextString(m) -} -func (*RpcBlockDataviewRecordRelationOptionDeleteRequest) ProtoMessage() {} -func (*RpcBlockDataviewRecordRelationOptionDeleteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 13, 0} -} -func (m *RpcBlockDataviewRecordRelationOptionDeleteRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewRecordRelationOptionDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewRecordRelationOptionDeleteRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewRecordRelationOptionDeleteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewRecordRelationOptionDeleteRequest.Merge(m, src) -} -func (m *RpcBlockDataviewRecordRelationOptionDeleteRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewRecordRelationOptionDeleteRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewRecordRelationOptionDeleteRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewRecordRelationOptionDeleteRequest proto.InternalMessageInfo - -func (m *RpcBlockDataviewRecordRelationOptionDeleteRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockDataviewRecordRelationOptionDeleteRequest) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockDataviewRecordRelationOptionDeleteRequest) GetRelationKey() string { - if m != nil { - return m.RelationKey - } - return "" -} - -func (m *RpcBlockDataviewRecordRelationOptionDeleteRequest) GetOptionId() string { - if m != nil { - return m.OptionId - } - return "" -} - -func (m *RpcBlockDataviewRecordRelationOptionDeleteRequest) GetRecordId() string { - if m != nil { - return m.RecordId - } - return "" -} - -type RpcBlockDataviewRecordRelationOptionDeleteResponse struct { - Error *RpcBlockDataviewRecordRelationOptionDeleteResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockDataviewRecordRelationOptionDeleteResponse) Reset() { - *m = RpcBlockDataviewRecordRelationOptionDeleteResponse{} -} -func (m *RpcBlockDataviewRecordRelationOptionDeleteResponse) String() string { - return proto.CompactTextString(m) -} -func (*RpcBlockDataviewRecordRelationOptionDeleteResponse) ProtoMessage() {} -func (*RpcBlockDataviewRecordRelationOptionDeleteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 13, 1} -} -func (m *RpcBlockDataviewRecordRelationOptionDeleteResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewRecordRelationOptionDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewRecordRelationOptionDeleteResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewRecordRelationOptionDeleteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewRecordRelationOptionDeleteResponse.Merge(m, src) -} -func (m *RpcBlockDataviewRecordRelationOptionDeleteResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewRecordRelationOptionDeleteResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewRecordRelationOptionDeleteResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewRecordRelationOptionDeleteResponse proto.InternalMessageInfo - -func (m *RpcBlockDataviewRecordRelationOptionDeleteResponse) GetError() *RpcBlockDataviewRecordRelationOptionDeleteResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockDataviewRecordRelationOptionDeleteResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockDataviewRecordRelationOptionDeleteResponseError struct { - Code RpcBlockDataviewRecordRelationOptionDeleteResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockDataviewRecordRelationOptionDeleteResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockDataviewRecordRelationOptionDeleteResponseError) Reset() { - *m = RpcBlockDataviewRecordRelationOptionDeleteResponseError{} -} -func (m *RpcBlockDataviewRecordRelationOptionDeleteResponseError) String() string { - return proto.CompactTextString(m) -} -func (*RpcBlockDataviewRecordRelationOptionDeleteResponseError) ProtoMessage() {} -func (*RpcBlockDataviewRecordRelationOptionDeleteResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 13, 1, 0} -} -func (m *RpcBlockDataviewRecordRelationOptionDeleteResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewRecordRelationOptionDeleteResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewRecordRelationOptionDeleteResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewRecordRelationOptionDeleteResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewRecordRelationOptionDeleteResponseError.Merge(m, src) -} -func (m *RpcBlockDataviewRecordRelationOptionDeleteResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewRecordRelationOptionDeleteResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewRecordRelationOptionDeleteResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewRecordRelationOptionDeleteResponseError proto.InternalMessageInfo - -func (m *RpcBlockDataviewRecordRelationOptionDeleteResponseError) GetCode() RpcBlockDataviewRecordRelationOptionDeleteResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockDataviewRecordRelationOptionDeleteResponseError_NULL -} - -func (m *RpcBlockDataviewRecordRelationOptionDeleteResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockDataviewRelationListAvailable struct { -} - -func (m *RpcBlockDataviewRelationListAvailable) Reset() { *m = RpcBlockDataviewRelationListAvailable{} } -func (m *RpcBlockDataviewRelationListAvailable) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDataviewRelationListAvailable) ProtoMessage() {} -func (*RpcBlockDataviewRelationListAvailable) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 14} -} -func (m *RpcBlockDataviewRelationListAvailable) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewRelationListAvailable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewRelationListAvailable.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewRelationListAvailable) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewRelationListAvailable.Merge(m, src) -} -func (m *RpcBlockDataviewRelationListAvailable) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewRelationListAvailable) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewRelationListAvailable.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewRelationListAvailable proto.InternalMessageInfo - -type RpcBlockDataviewRelationListAvailableRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` -} - -func (m *RpcBlockDataviewRelationListAvailableRequest) Reset() { - *m = RpcBlockDataviewRelationListAvailableRequest{} -} -func (m *RpcBlockDataviewRelationListAvailableRequest) String() string { - return proto.CompactTextString(m) -} -func (*RpcBlockDataviewRelationListAvailableRequest) ProtoMessage() {} -func (*RpcBlockDataviewRelationListAvailableRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 14, 0} -} -func (m *RpcBlockDataviewRelationListAvailableRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewRelationListAvailableRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewRelationListAvailableRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewRelationListAvailableRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewRelationListAvailableRequest.Merge(m, src) -} -func (m *RpcBlockDataviewRelationListAvailableRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewRelationListAvailableRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewRelationListAvailableRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewRelationListAvailableRequest proto.InternalMessageInfo - -func (m *RpcBlockDataviewRelationListAvailableRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockDataviewRelationListAvailableRequest) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -type RpcBlockDataviewRelationListAvailableResponse struct { - Error *RpcBlockDataviewRelationListAvailableResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Relations []*model.Relation `protobuf:"bytes,2,rep,name=relations,proto3" json:"relations,omitempty"` -} - -func (m *RpcBlockDataviewRelationListAvailableResponse) Reset() { - *m = RpcBlockDataviewRelationListAvailableResponse{} -} -func (m *RpcBlockDataviewRelationListAvailableResponse) String() string { - return proto.CompactTextString(m) -} -func (*RpcBlockDataviewRelationListAvailableResponse) ProtoMessage() {} -func (*RpcBlockDataviewRelationListAvailableResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 14, 1} -} -func (m *RpcBlockDataviewRelationListAvailableResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewRelationListAvailableResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewRelationListAvailableResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewRelationListAvailableResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewRelationListAvailableResponse.Merge(m, src) -} -func (m *RpcBlockDataviewRelationListAvailableResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewRelationListAvailableResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewRelationListAvailableResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewRelationListAvailableResponse proto.InternalMessageInfo - -func (m *RpcBlockDataviewRelationListAvailableResponse) GetError() *RpcBlockDataviewRelationListAvailableResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockDataviewRelationListAvailableResponse) GetRelations() []*model.Relation { - if m != nil { - return m.Relations - } - return nil -} - -type RpcBlockDataviewRelationListAvailableResponseError struct { - Code RpcBlockDataviewRelationListAvailableResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockDataviewRelationListAvailableResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockDataviewRelationListAvailableResponseError) Reset() { - *m = RpcBlockDataviewRelationListAvailableResponseError{} -} -func (m *RpcBlockDataviewRelationListAvailableResponseError) String() string { - return proto.CompactTextString(m) -} -func (*RpcBlockDataviewRelationListAvailableResponseError) ProtoMessage() {} -func (*RpcBlockDataviewRelationListAvailableResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 14, 1, 0} -} -func (m *RpcBlockDataviewRelationListAvailableResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewRelationListAvailableResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewRelationListAvailableResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewRelationListAvailableResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewRelationListAvailableResponseError.Merge(m, src) -} -func (m *RpcBlockDataviewRelationListAvailableResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewRelationListAvailableResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewRelationListAvailableResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewRelationListAvailableResponseError proto.InternalMessageInfo - -func (m *RpcBlockDataviewRelationListAvailableResponseError) GetCode() RpcBlockDataviewRelationListAvailableResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockDataviewRelationListAvailableResponseError_NULL -} - -func (m *RpcBlockDataviewRelationListAvailableResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockDataviewSetSource struct { -} - -func (m *RpcBlockDataviewSetSource) Reset() { *m = RpcBlockDataviewSetSource{} } -func (m *RpcBlockDataviewSetSource) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDataviewSetSource) ProtoMessage() {} -func (*RpcBlockDataviewSetSource) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 15} -} -func (m *RpcBlockDataviewSetSource) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewSetSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewSetSource.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewSetSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewSetSource.Merge(m, src) -} -func (m *RpcBlockDataviewSetSource) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewSetSource) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewSetSource.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewSetSource proto.InternalMessageInfo - -type RpcBlockDataviewSetSourceRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - Source []string `protobuf:"bytes,3,rep,name=source,proto3" json:"source,omitempty"` -} - -func (m *RpcBlockDataviewSetSourceRequest) Reset() { *m = RpcBlockDataviewSetSourceRequest{} } -func (m *RpcBlockDataviewSetSourceRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDataviewSetSourceRequest) ProtoMessage() {} -func (*RpcBlockDataviewSetSourceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 15, 0} -} -func (m *RpcBlockDataviewSetSourceRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewSetSourceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewSetSourceRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewSetSourceRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewSetSourceRequest.Merge(m, src) -} -func (m *RpcBlockDataviewSetSourceRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewSetSourceRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewSetSourceRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewSetSourceRequest proto.InternalMessageInfo - -func (m *RpcBlockDataviewSetSourceRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockDataviewSetSourceRequest) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockDataviewSetSourceRequest) GetSource() []string { - if m != nil { - return m.Source - } - return nil -} - -type RpcBlockDataviewSetSourceResponse struct { - Error *RpcBlockDataviewSetSourceResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,4,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockDataviewSetSourceResponse) Reset() { *m = RpcBlockDataviewSetSourceResponse{} } -func (m *RpcBlockDataviewSetSourceResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDataviewSetSourceResponse) ProtoMessage() {} -func (*RpcBlockDataviewSetSourceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 15, 1} -} -func (m *RpcBlockDataviewSetSourceResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewSetSourceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewSetSourceResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewSetSourceResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewSetSourceResponse.Merge(m, src) -} -func (m *RpcBlockDataviewSetSourceResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewSetSourceResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewSetSourceResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewSetSourceResponse proto.InternalMessageInfo - -func (m *RpcBlockDataviewSetSourceResponse) GetError() *RpcBlockDataviewSetSourceResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockDataviewSetSourceResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockDataviewSetSourceResponseError struct { - Code RpcBlockDataviewSetSourceResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockDataviewSetSourceResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockDataviewSetSourceResponseError) Reset() { - *m = RpcBlockDataviewSetSourceResponseError{} -} -func (m *RpcBlockDataviewSetSourceResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockDataviewSetSourceResponseError) ProtoMessage() {} -func (*RpcBlockDataviewSetSourceResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 16, 15, 1, 0} -} -func (m *RpcBlockDataviewSetSourceResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockDataviewSetSourceResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockDataviewSetSourceResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockDataviewSetSourceResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockDataviewSetSourceResponseError.Merge(m, src) -} -func (m *RpcBlockDataviewSetSourceResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockDataviewSetSourceResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockDataviewSetSourceResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockDataviewSetSourceResponseError proto.InternalMessageInfo - -func (m *RpcBlockDataviewSetSourceResponseError) GetCode() RpcBlockDataviewSetSourceResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockDataviewSetSourceResponseError_NULL -} - -func (m *RpcBlockDataviewSetSourceResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockGet struct { -} - -func (m *RpcBlockGet) Reset() { *m = RpcBlockGet{} } -func (m *RpcBlockGet) String() string { return proto.CompactTextString(m) } -func (*RpcBlockGet) ProtoMessage() {} -func (*RpcBlockGet) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 17} -} -func (m *RpcBlockGet) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockGet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockGet.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockGet) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockGet.Merge(m, src) -} -func (m *RpcBlockGet) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockGet) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockGet.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockGet proto.InternalMessageInfo - -// -// Get marks list in the selected range in text block. -type RpcBlockGetMarks struct { -} - -func (m *RpcBlockGetMarks) Reset() { *m = RpcBlockGetMarks{} } -func (m *RpcBlockGetMarks) String() string { return proto.CompactTextString(m) } -func (*RpcBlockGetMarks) ProtoMessage() {} -func (*RpcBlockGetMarks) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 17, 0} -} -func (m *RpcBlockGetMarks) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockGetMarks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockGetMarks.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockGetMarks) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockGetMarks.Merge(m, src) -} -func (m *RpcBlockGetMarks) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockGetMarks) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockGetMarks.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockGetMarks proto.InternalMessageInfo - -type RpcBlockGetMarksRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,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 *RpcBlockGetMarksRequest) Reset() { *m = RpcBlockGetMarksRequest{} } -func (m *RpcBlockGetMarksRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockGetMarksRequest) ProtoMessage() {} -func (*RpcBlockGetMarksRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 17, 0, 0} -} -func (m *RpcBlockGetMarksRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockGetMarksRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockGetMarksRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockGetMarksRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockGetMarksRequest.Merge(m, src) -} -func (m *RpcBlockGetMarksRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockGetMarksRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockGetMarksRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockGetMarksRequest proto.InternalMessageInfo - -func (m *RpcBlockGetMarksRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockGetMarksRequest) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockGetMarksRequest) GetRange() *model.Range { - if m != nil { - return m.Range - } - return nil -} - -type RpcBlockGetMarksResponse struct { - Error *RpcBlockGetMarksResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockGetMarksResponse) Reset() { *m = RpcBlockGetMarksResponse{} } -func (m *RpcBlockGetMarksResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockGetMarksResponse) ProtoMessage() {} -func (*RpcBlockGetMarksResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 17, 0, 1} -} -func (m *RpcBlockGetMarksResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockGetMarksResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockGetMarksResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockGetMarksResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockGetMarksResponse.Merge(m, src) -} -func (m *RpcBlockGetMarksResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockGetMarksResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockGetMarksResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockGetMarksResponse proto.InternalMessageInfo - -func (m *RpcBlockGetMarksResponse) GetError() *RpcBlockGetMarksResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockGetMarksResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockGetMarksResponseError struct { - Code RpcBlockGetMarksResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockGetMarksResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockGetMarksResponseError) Reset() { *m = RpcBlockGetMarksResponseError{} } -func (m *RpcBlockGetMarksResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockGetMarksResponseError) ProtoMessage() {} -func (*RpcBlockGetMarksResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 17, 0, 1, 0} -} -func (m *RpcBlockGetMarksResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockGetMarksResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockGetMarksResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockGetMarksResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockGetMarksResponseError.Merge(m, src) -} -func (m *RpcBlockGetMarksResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockGetMarksResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockGetMarksResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockGetMarksResponseError proto.InternalMessageInfo - -func (m *RpcBlockGetMarksResponseError) GetCode() RpcBlockGetMarksResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockGetMarksResponseError_NULL -} - -func (m *RpcBlockGetMarksResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -// Available undo/redo operations -type RpcBlockUndoRedoCounter struct { - Undo int32 `protobuf:"varint,1,opt,name=undo,proto3" json:"undo,omitempty"` - Redo int32 `protobuf:"varint,2,opt,name=redo,proto3" json:"redo,omitempty"` -} - -func (m *RpcBlockUndoRedoCounter) Reset() { *m = RpcBlockUndoRedoCounter{} } -func (m *RpcBlockUndoRedoCounter) String() string { return proto.CompactTextString(m) } -func (*RpcBlockUndoRedoCounter) ProtoMessage() {} -func (*RpcBlockUndoRedoCounter) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 18} -} -func (m *RpcBlockUndoRedoCounter) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockUndoRedoCounter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockUndoRedoCounter.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockUndoRedoCounter) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockUndoRedoCounter.Merge(m, src) -} -func (m *RpcBlockUndoRedoCounter) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockUndoRedoCounter) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockUndoRedoCounter.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockUndoRedoCounter proto.InternalMessageInfo - -func (m *RpcBlockUndoRedoCounter) GetUndo() int32 { - if m != nil { - return m.Undo - } - return 0 -} - -func (m *RpcBlockUndoRedoCounter) GetRedo() int32 { - if m != nil { - return m.Redo - } - return 0 -} - -type RpcBlockUndo struct { -} - -func (m *RpcBlockUndo) Reset() { *m = RpcBlockUndo{} } -func (m *RpcBlockUndo) String() string { return proto.CompactTextString(m) } -func (*RpcBlockUndo) ProtoMessage() {} -func (*RpcBlockUndo) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 19} -} -func (m *RpcBlockUndo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockUndo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockUndo.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockUndo) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockUndo.Merge(m, src) -} -func (m *RpcBlockUndo) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockUndo) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockUndo.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockUndo proto.InternalMessageInfo - -type RpcBlockUndoRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` -} - -func (m *RpcBlockUndoRequest) Reset() { *m = RpcBlockUndoRequest{} } -func (m *RpcBlockUndoRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockUndoRequest) ProtoMessage() {} -func (*RpcBlockUndoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 19, 0} -} -func (m *RpcBlockUndoRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockUndoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockUndoRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockUndoRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockUndoRequest.Merge(m, src) -} -func (m *RpcBlockUndoRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockUndoRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockUndoRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockUndoRequest proto.InternalMessageInfo - -func (m *RpcBlockUndoRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -type RpcBlockUndoResponse struct { - Error *RpcBlockUndoResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` - Counters *RpcBlockUndoRedoCounter `protobuf:"bytes,3,opt,name=counters,proto3" json:"counters,omitempty"` -} - -func (m *RpcBlockUndoResponse) Reset() { *m = RpcBlockUndoResponse{} } -func (m *RpcBlockUndoResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockUndoResponse) ProtoMessage() {} -func (*RpcBlockUndoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 19, 1} -} -func (m *RpcBlockUndoResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockUndoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockUndoResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockUndoResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockUndoResponse.Merge(m, src) -} -func (m *RpcBlockUndoResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockUndoResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockUndoResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockUndoResponse proto.InternalMessageInfo - -func (m *RpcBlockUndoResponse) GetError() *RpcBlockUndoResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockUndoResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -func (m *RpcBlockUndoResponse) GetCounters() *RpcBlockUndoRedoCounter { - if m != nil { - return m.Counters - } - return nil -} - -type RpcBlockUndoResponseError struct { - Code RpcBlockUndoResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockUndoResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockUndoResponseError) Reset() { *m = RpcBlockUndoResponseError{} } -func (m *RpcBlockUndoResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockUndoResponseError) ProtoMessage() {} -func (*RpcBlockUndoResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 19, 1, 0} -} -func (m *RpcBlockUndoResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockUndoResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockUndoResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockUndoResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockUndoResponseError.Merge(m, src) -} -func (m *RpcBlockUndoResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockUndoResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockUndoResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockUndoResponseError proto.InternalMessageInfo - -func (m *RpcBlockUndoResponseError) GetCode() RpcBlockUndoResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockUndoResponseError_NULL -} - -func (m *RpcBlockUndoResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockRedo struct { -} - -func (m *RpcBlockRedo) Reset() { *m = RpcBlockRedo{} } -func (m *RpcBlockRedo) String() string { return proto.CompactTextString(m) } -func (*RpcBlockRedo) ProtoMessage() {} -func (*RpcBlockRedo) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 20} -} -func (m *RpcBlockRedo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockRedo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockRedo.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockRedo) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockRedo.Merge(m, src) -} -func (m *RpcBlockRedo) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockRedo) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockRedo.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockRedo proto.InternalMessageInfo - -type RpcBlockRedoRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` -} - -func (m *RpcBlockRedoRequest) Reset() { *m = RpcBlockRedoRequest{} } -func (m *RpcBlockRedoRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockRedoRequest) ProtoMessage() {} -func (*RpcBlockRedoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 20, 0} -} -func (m *RpcBlockRedoRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockRedoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockRedoRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockRedoRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockRedoRequest.Merge(m, src) -} -func (m *RpcBlockRedoRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockRedoRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockRedoRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockRedoRequest proto.InternalMessageInfo - -func (m *RpcBlockRedoRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -type RpcBlockRedoResponse struct { - Error *RpcBlockRedoResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` - Counters *RpcBlockUndoRedoCounter `protobuf:"bytes,3,opt,name=counters,proto3" json:"counters,omitempty"` -} - -func (m *RpcBlockRedoResponse) Reset() { *m = RpcBlockRedoResponse{} } -func (m *RpcBlockRedoResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockRedoResponse) ProtoMessage() {} -func (*RpcBlockRedoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 20, 1} -} -func (m *RpcBlockRedoResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockRedoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockRedoResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockRedoResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockRedoResponse.Merge(m, src) -} -func (m *RpcBlockRedoResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockRedoResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockRedoResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockRedoResponse proto.InternalMessageInfo - -func (m *RpcBlockRedoResponse) GetError() *RpcBlockRedoResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockRedoResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -func (m *RpcBlockRedoResponse) GetCounters() *RpcBlockUndoRedoCounter { - if m != nil { - return m.Counters - } - return nil -} - -type RpcBlockRedoResponseError struct { - Code RpcBlockRedoResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockRedoResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockRedoResponseError) Reset() { *m = RpcBlockRedoResponseError{} } -func (m *RpcBlockRedoResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockRedoResponseError) ProtoMessage() {} -func (*RpcBlockRedoResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 20, 1, 0} -} -func (m *RpcBlockRedoResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockRedoResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockRedoResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockRedoResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockRedoResponseError.Merge(m, src) -} -func (m *RpcBlockRedoResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockRedoResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockRedoResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockRedoResponseError proto.InternalMessageInfo - -func (m *RpcBlockRedoResponseError) GetCode() RpcBlockRedoResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockRedoResponseError_NULL -} - -func (m *RpcBlockRedoResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -// -// Works with a smart blocks (block-organizers, like page, dashboard etc) -// **Example scenario** -// 1A. On front-end start. -// 1. Front -> MW: Rpc.Block.Open.Request(dashboard.id) -// 2. MW -> Front: BlockShow(dashboard) -// 3. MW -> Front: Rpc.Block.Open.Response(err) -// 1B. User clicks on a page icon on the dashboard. -// 1. Front -> MW: Rpc.Block.Close.Request(dashboard.id) -// Get close response first, then open request: -// 2. MW -> Front: Rpc.Block.Close.Response(err) -// 3. Front -> MW: Rpc.Block.Open.Request(page.id) -// 4. MW -> Front: BlockShow() -// 5. MW -> Front: Rpc.Block.Open.Response(err) -// Image/Video/File blocks then: -// 6. MW -> Front: BlockShow() -type RpcBlockOpen struct { -} - -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_8261c968b2e6f45c, []int{0, 3, 21} -} -func (m *RpcBlockOpen) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockOpen) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockOpen.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockOpen) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockOpen.Merge(m, src) -} -func (m *RpcBlockOpen) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockOpen) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockOpen.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockOpen proto.InternalMessageInfo - -type RpcBlockOpenRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - TraceId string `protobuf:"bytes,3,opt,name=traceId,proto3" json:"traceId,omitempty"` -} - -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_8261c968b2e6f45c, []int{0, 3, 21, 0} -} -func (m *RpcBlockOpenRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockOpenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockOpenRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockOpenRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockOpenRequest.Merge(m, src) -} -func (m *RpcBlockOpenRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockOpenRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockOpenRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockOpenRequest proto.InternalMessageInfo - -func (m *RpcBlockOpenRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockOpenRequest) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockOpenRequest) GetTraceId() string { - if m != nil { - return m.TraceId - } - return "" -} - -type RpcBlockOpenResponse struct { - Error *RpcBlockOpenResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -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_8261c968b2e6f45c, []int{0, 3, 21, 1} -} -func (m *RpcBlockOpenResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockOpenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockOpenResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockOpenResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockOpenResponse.Merge(m, src) -} -func (m *RpcBlockOpenResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockOpenResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockOpenResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockOpenResponse proto.InternalMessageInfo - -func (m *RpcBlockOpenResponse) GetError() *RpcBlockOpenResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockOpenResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -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 *RpcBlockOpenResponseError) Reset() { *m = RpcBlockOpenResponseError{} } -func (m *RpcBlockOpenResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockOpenResponseError) ProtoMessage() {} -func (*RpcBlockOpenResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 21, 1, 0} -} -func (m *RpcBlockOpenResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockOpenResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockOpenResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockOpenResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockOpenResponseError.Merge(m, src) -} -func (m *RpcBlockOpenResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockOpenResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockOpenResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockOpenResponseError proto.InternalMessageInfo - -func (m *RpcBlockOpenResponseError) GetCode() RpcBlockOpenResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockOpenResponseError_NULL -} - -func (m *RpcBlockOpenResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockShow struct { -} - -func (m *RpcBlockShow) Reset() { *m = RpcBlockShow{} } -func (m *RpcBlockShow) String() string { return proto.CompactTextString(m) } -func (*RpcBlockShow) ProtoMessage() {} -func (*RpcBlockShow) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 22} -} -func (m *RpcBlockShow) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockShow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockShow.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockShow) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockShow.Merge(m, src) -} -func (m *RpcBlockShow) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockShow) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockShow.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockShow proto.InternalMessageInfo - -type RpcBlockShowRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - TraceId string `protobuf:"bytes,3,opt,name=traceId,proto3" json:"traceId,omitempty"` -} - -func (m *RpcBlockShowRequest) Reset() { *m = RpcBlockShowRequest{} } -func (m *RpcBlockShowRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockShowRequest) ProtoMessage() {} -func (*RpcBlockShowRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 22, 0} -} -func (m *RpcBlockShowRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockShowRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockShowRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockShowRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockShowRequest.Merge(m, src) -} -func (m *RpcBlockShowRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockShowRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockShowRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockShowRequest proto.InternalMessageInfo - -func (m *RpcBlockShowRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockShowRequest) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockShowRequest) GetTraceId() string { - if m != nil { - return m.TraceId - } - return "" -} - -type RpcBlockShowResponse struct { - Error *RpcBlockShowResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockShowResponse) Reset() { *m = RpcBlockShowResponse{} } -func (m *RpcBlockShowResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockShowResponse) ProtoMessage() {} -func (*RpcBlockShowResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 22, 1} -} -func (m *RpcBlockShowResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockShowResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockShowResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockShowResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockShowResponse.Merge(m, src) -} -func (m *RpcBlockShowResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockShowResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockShowResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockShowResponse proto.InternalMessageInfo - -func (m *RpcBlockShowResponse) GetError() *RpcBlockShowResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockShowResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockShowResponseError struct { - Code RpcBlockShowResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockShowResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockShowResponseError) Reset() { *m = RpcBlockShowResponseError{} } -func (m *RpcBlockShowResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockShowResponseError) ProtoMessage() {} -func (*RpcBlockShowResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 22, 1, 0} -} -func (m *RpcBlockShowResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockShowResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockShowResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockShowResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockShowResponseError.Merge(m, src) -} -func (m *RpcBlockShowResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockShowResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockShowResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockShowResponseError proto.InternalMessageInfo - -func (m *RpcBlockShowResponseError) GetCode() RpcBlockShowResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockShowResponseError_NULL -} - -func (m *RpcBlockShowResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockGetPublicWebURL struct { -} - -func (m *RpcBlockGetPublicWebURL) Reset() { *m = RpcBlockGetPublicWebURL{} } -func (m *RpcBlockGetPublicWebURL) String() string { return proto.CompactTextString(m) } -func (*RpcBlockGetPublicWebURL) ProtoMessage() {} -func (*RpcBlockGetPublicWebURL) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 23} -} -func (m *RpcBlockGetPublicWebURL) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockGetPublicWebURL) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockGetPublicWebURL.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockGetPublicWebURL) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockGetPublicWebURL.Merge(m, src) -} -func (m *RpcBlockGetPublicWebURL) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockGetPublicWebURL) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockGetPublicWebURL.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockGetPublicWebURL proto.InternalMessageInfo - -type RpcBlockGetPublicWebURLRequest struct { - BlockId string `protobuf:"bytes,1,opt,name=blockId,proto3" json:"blockId,omitempty"` -} - -func (m *RpcBlockGetPublicWebURLRequest) Reset() { *m = RpcBlockGetPublicWebURLRequest{} } -func (m *RpcBlockGetPublicWebURLRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockGetPublicWebURLRequest) ProtoMessage() {} -func (*RpcBlockGetPublicWebURLRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 23, 0} -} -func (m *RpcBlockGetPublicWebURLRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockGetPublicWebURLRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockGetPublicWebURLRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockGetPublicWebURLRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockGetPublicWebURLRequest.Merge(m, src) -} -func (m *RpcBlockGetPublicWebURLRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockGetPublicWebURLRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockGetPublicWebURLRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockGetPublicWebURLRequest proto.InternalMessageInfo - -func (m *RpcBlockGetPublicWebURLRequest) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -type RpcBlockGetPublicWebURLResponse struct { - Error *RpcBlockGetPublicWebURLResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` -} - -func (m *RpcBlockGetPublicWebURLResponse) Reset() { *m = RpcBlockGetPublicWebURLResponse{} } -func (m *RpcBlockGetPublicWebURLResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockGetPublicWebURLResponse) ProtoMessage() {} -func (*RpcBlockGetPublicWebURLResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 23, 1} -} -func (m *RpcBlockGetPublicWebURLResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockGetPublicWebURLResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockGetPublicWebURLResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockGetPublicWebURLResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockGetPublicWebURLResponse.Merge(m, src) -} -func (m *RpcBlockGetPublicWebURLResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockGetPublicWebURLResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockGetPublicWebURLResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockGetPublicWebURLResponse proto.InternalMessageInfo - -func (m *RpcBlockGetPublicWebURLResponse) GetError() *RpcBlockGetPublicWebURLResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockGetPublicWebURLResponse) GetUrl() string { - if m != nil { - return m.Url - } - return "" -} - -type RpcBlockGetPublicWebURLResponseError struct { - Code RpcBlockGetPublicWebURLResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockGetPublicWebURLResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockGetPublicWebURLResponseError) Reset() { *m = RpcBlockGetPublicWebURLResponseError{} } -func (m *RpcBlockGetPublicWebURLResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockGetPublicWebURLResponseError) ProtoMessage() {} -func (*RpcBlockGetPublicWebURLResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 23, 1, 0} -} -func (m *RpcBlockGetPublicWebURLResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockGetPublicWebURLResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockGetPublicWebURLResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockGetPublicWebURLResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockGetPublicWebURLResponseError.Merge(m, src) -} -func (m *RpcBlockGetPublicWebURLResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockGetPublicWebURLResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockGetPublicWebURLResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockGetPublicWebURLResponseError proto.InternalMessageInfo - -func (m *RpcBlockGetPublicWebURLResponseError) GetCode() RpcBlockGetPublicWebURLResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockGetPublicWebURLResponseError_NULL -} - -func (m *RpcBlockGetPublicWebURLResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockOpenBreadcrumbs struct { -} - -func (m *RpcBlockOpenBreadcrumbs) Reset() { *m = RpcBlockOpenBreadcrumbs{} } -func (m *RpcBlockOpenBreadcrumbs) String() string { return proto.CompactTextString(m) } -func (*RpcBlockOpenBreadcrumbs) ProtoMessage() {} -func (*RpcBlockOpenBreadcrumbs) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 24} -} -func (m *RpcBlockOpenBreadcrumbs) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockOpenBreadcrumbs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockOpenBreadcrumbs.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockOpenBreadcrumbs) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockOpenBreadcrumbs.Merge(m, src) -} -func (m *RpcBlockOpenBreadcrumbs) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockOpenBreadcrumbs) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockOpenBreadcrumbs.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockOpenBreadcrumbs proto.InternalMessageInfo - -type RpcBlockOpenBreadcrumbsRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - TraceId string `protobuf:"bytes,2,opt,name=traceId,proto3" json:"traceId,omitempty"` -} - -func (m *RpcBlockOpenBreadcrumbsRequest) Reset() { *m = RpcBlockOpenBreadcrumbsRequest{} } -func (m *RpcBlockOpenBreadcrumbsRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockOpenBreadcrumbsRequest) ProtoMessage() {} -func (*RpcBlockOpenBreadcrumbsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 24, 0} -} -func (m *RpcBlockOpenBreadcrumbsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockOpenBreadcrumbsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockOpenBreadcrumbsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockOpenBreadcrumbsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockOpenBreadcrumbsRequest.Merge(m, src) -} -func (m *RpcBlockOpenBreadcrumbsRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockOpenBreadcrumbsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockOpenBreadcrumbsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockOpenBreadcrumbsRequest proto.InternalMessageInfo - -func (m *RpcBlockOpenBreadcrumbsRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockOpenBreadcrumbsRequest) GetTraceId() string { - if m != nil { - return m.TraceId - } - return "" -} - -type RpcBlockOpenBreadcrumbsResponse struct { - Error *RpcBlockOpenBreadcrumbsResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - Event *ResponseEvent `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockOpenBreadcrumbsResponse) Reset() { *m = RpcBlockOpenBreadcrumbsResponse{} } -func (m *RpcBlockOpenBreadcrumbsResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockOpenBreadcrumbsResponse) ProtoMessage() {} -func (*RpcBlockOpenBreadcrumbsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 24, 1} -} -func (m *RpcBlockOpenBreadcrumbsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockOpenBreadcrumbsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockOpenBreadcrumbsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockOpenBreadcrumbsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockOpenBreadcrumbsResponse.Merge(m, src) -} -func (m *RpcBlockOpenBreadcrumbsResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockOpenBreadcrumbsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockOpenBreadcrumbsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockOpenBreadcrumbsResponse proto.InternalMessageInfo - -func (m *RpcBlockOpenBreadcrumbsResponse) GetError() *RpcBlockOpenBreadcrumbsResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockOpenBreadcrumbsResponse) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockOpenBreadcrumbsResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockOpenBreadcrumbsResponseError struct { - Code RpcBlockOpenBreadcrumbsResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockOpenBreadcrumbsResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockOpenBreadcrumbsResponseError) Reset() { *m = RpcBlockOpenBreadcrumbsResponseError{} } -func (m *RpcBlockOpenBreadcrumbsResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockOpenBreadcrumbsResponseError) ProtoMessage() {} -func (*RpcBlockOpenBreadcrumbsResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 24, 1, 0} -} -func (m *RpcBlockOpenBreadcrumbsResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockOpenBreadcrumbsResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockOpenBreadcrumbsResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockOpenBreadcrumbsResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockOpenBreadcrumbsResponseError.Merge(m, src) -} -func (m *RpcBlockOpenBreadcrumbsResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockOpenBreadcrumbsResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockOpenBreadcrumbsResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockOpenBreadcrumbsResponseError proto.InternalMessageInfo - -func (m *RpcBlockOpenBreadcrumbsResponseError) GetCode() RpcBlockOpenBreadcrumbsResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockOpenBreadcrumbsResponseError_NULL -} - -func (m *RpcBlockOpenBreadcrumbsResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockSetBreadcrumbs struct { -} - -func (m *RpcBlockSetBreadcrumbs) Reset() { *m = RpcBlockSetBreadcrumbs{} } -func (m *RpcBlockSetBreadcrumbs) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetBreadcrumbs) ProtoMessage() {} -func (*RpcBlockSetBreadcrumbs) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 25} -} -func (m *RpcBlockSetBreadcrumbs) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetBreadcrumbs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetBreadcrumbs.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetBreadcrumbs) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetBreadcrumbs.Merge(m, src) -} -func (m *RpcBlockSetBreadcrumbs) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetBreadcrumbs) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetBreadcrumbs.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetBreadcrumbs proto.InternalMessageInfo - -type RpcBlockSetBreadcrumbsRequest struct { - BreadcrumbsId string `protobuf:"bytes,1,opt,name=breadcrumbsId,proto3" json:"breadcrumbsId,omitempty"` - Ids []string `protobuf:"bytes,2,rep,name=ids,proto3" json:"ids,omitempty"` -} - -func (m *RpcBlockSetBreadcrumbsRequest) Reset() { *m = RpcBlockSetBreadcrumbsRequest{} } -func (m *RpcBlockSetBreadcrumbsRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetBreadcrumbsRequest) ProtoMessage() {} -func (*RpcBlockSetBreadcrumbsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 25, 0} -} -func (m *RpcBlockSetBreadcrumbsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetBreadcrumbsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetBreadcrumbsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetBreadcrumbsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetBreadcrumbsRequest.Merge(m, src) -} -func (m *RpcBlockSetBreadcrumbsRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetBreadcrumbsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetBreadcrumbsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetBreadcrumbsRequest proto.InternalMessageInfo - -func (m *RpcBlockSetBreadcrumbsRequest) GetBreadcrumbsId() string { - if m != nil { - return m.BreadcrumbsId - } - return "" -} - -func (m *RpcBlockSetBreadcrumbsRequest) GetIds() []string { - if m != nil { - return m.Ids - } - return nil -} - -type RpcBlockSetBreadcrumbsResponse struct { - Error *RpcBlockSetBreadcrumbsResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockSetBreadcrumbsResponse) Reset() { *m = RpcBlockSetBreadcrumbsResponse{} } -func (m *RpcBlockSetBreadcrumbsResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetBreadcrumbsResponse) ProtoMessage() {} -func (*RpcBlockSetBreadcrumbsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 25, 1} -} -func (m *RpcBlockSetBreadcrumbsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetBreadcrumbsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetBreadcrumbsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetBreadcrumbsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetBreadcrumbsResponse.Merge(m, src) -} -func (m *RpcBlockSetBreadcrumbsResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetBreadcrumbsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetBreadcrumbsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetBreadcrumbsResponse proto.InternalMessageInfo - -func (m *RpcBlockSetBreadcrumbsResponse) GetError() *RpcBlockSetBreadcrumbsResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockSetBreadcrumbsResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockSetBreadcrumbsResponseError struct { - Code RpcBlockSetBreadcrumbsResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockSetBreadcrumbsResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockSetBreadcrumbsResponseError) Reset() { *m = RpcBlockSetBreadcrumbsResponseError{} } -func (m *RpcBlockSetBreadcrumbsResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockSetBreadcrumbsResponseError) ProtoMessage() {} -func (*RpcBlockSetBreadcrumbsResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 25, 1, 0} -} -func (m *RpcBlockSetBreadcrumbsResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockSetBreadcrumbsResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockSetBreadcrumbsResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockSetBreadcrumbsResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockSetBreadcrumbsResponseError.Merge(m, src) -} -func (m *RpcBlockSetBreadcrumbsResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockSetBreadcrumbsResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockSetBreadcrumbsResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockSetBreadcrumbsResponseError proto.InternalMessageInfo - -func (m *RpcBlockSetBreadcrumbsResponseError) GetCode() RpcBlockSetBreadcrumbsResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockSetBreadcrumbsResponseError_NULL -} - -func (m *RpcBlockSetBreadcrumbsResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -// -// Create a Smart/Internal block. Request can contain a block with a content, or it can be an empty block with a specific block.content. -// **Example scenario** -// 1A. Create Page on a dashboard -// 1. Front -> MW: Rpc.Block.Create.Request(blockId:dashboard.id, position:bottom, block: emtpy block with page content and id = "") -// 2. Front -> MW: Rpc.Block.Close.Request(block: dashboard.id) -// 3. Front <- MW: Rpc.Block.Close.Response(err) -// 4. Front <- MW: Rpc.Block.Create.Response(page.id) -// 5. Front <- MW: Rpc.Block.Open.Response(err) -// 6. Front <- MW: Event.Block.Show(page) -// 1B. Create Page on a Page -// 1. Front -> MW: Rpc.Block.Create.Request(blockId:dashboard.id, position:bottom, block: emtpy block with page content and id = "") -// 2. Front <- MW: Rpc.Block.Create.Response(newPage.id) -// 3. Front <- MW: Event.Block.Show(newPage) -type RpcBlockCreate struct { -} - -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_8261c968b2e6f45c, []int{0, 3, 26} -} -func (m *RpcBlockCreate) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockCreate.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockCreate) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockCreate.Merge(m, src) -} -func (m *RpcBlockCreate) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockCreate) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockCreate.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockCreate proto.InternalMessageInfo - -// common simple block command -type RpcBlockCreateRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - TargetId string `protobuf:"bytes,2,opt,name=targetId,proto3" json:"targetId,omitempty"` - Block *model.Block `protobuf:"bytes,3,opt,name=block,proto3" json:"block,omitempty"` - Position model.BlockPosition `protobuf:"varint,4,opt,name=position,proto3,enum=anytype.model.BlockPosition" json:"position,omitempty"` -} - -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_8261c968b2e6f45c, []int{0, 3, 26, 0} -} -func (m *RpcBlockCreateRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockCreateRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockCreateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockCreateRequest.Merge(m, src) -} -func (m *RpcBlockCreateRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockCreateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockCreateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockCreateRequest proto.InternalMessageInfo - -func (m *RpcBlockCreateRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockCreateRequest) GetTargetId() string { - if m != nil { - return m.TargetId - } - return "" -} - -func (m *RpcBlockCreateRequest) GetBlock() *model.Block { - if m != nil { - return m.Block - } - return nil -} - -func (m *RpcBlockCreateRequest) GetPosition() model.BlockPosition { - if m != nil { - return m.Position - } - return model.Block_None -} - -type RpcBlockCreateResponse struct { - Error *RpcBlockCreateResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - Event *ResponseEvent `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"` -} - -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_8261c968b2e6f45c, []int{0, 3, 26, 1} -} -func (m *RpcBlockCreateResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockCreateResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockCreateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockCreateResponse.Merge(m, src) -} -func (m *RpcBlockCreateResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockCreateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockCreateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockCreateResponse proto.InternalMessageInfo - -func (m *RpcBlockCreateResponse) GetError() *RpcBlockCreateResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockCreateResponse) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockCreateResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -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 *RpcBlockCreateResponseError) Reset() { *m = RpcBlockCreateResponseError{} } -func (m *RpcBlockCreateResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockCreateResponseError) ProtoMessage() {} -func (*RpcBlockCreateResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 26, 1, 0} -} -func (m *RpcBlockCreateResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockCreateResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockCreateResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockCreateResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockCreateResponseError.Merge(m, src) -} -func (m *RpcBlockCreateResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockCreateResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockCreateResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockCreateResponseError proto.InternalMessageInfo - -func (m *RpcBlockCreateResponseError) GetCode() RpcBlockCreateResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockCreateResponseError_NULL -} - -func (m *RpcBlockCreateResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockCreatePage struct { -} - -func (m *RpcBlockCreatePage) Reset() { *m = RpcBlockCreatePage{} } -func (m *RpcBlockCreatePage) String() string { return proto.CompactTextString(m) } -func (*RpcBlockCreatePage) ProtoMessage() {} -func (*RpcBlockCreatePage) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 27} -} -func (m *RpcBlockCreatePage) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockCreatePage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockCreatePage.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockCreatePage) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockCreatePage.Merge(m, src) -} -func (m *RpcBlockCreatePage) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockCreatePage) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockCreatePage.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockCreatePage proto.InternalMessageInfo - -type RpcBlockCreatePageRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - Details *types.Struct `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"` - TemplateId string `protobuf:"bytes,5,opt,name=templateId,proto3" json:"templateId,omitempty"` - // link block params - TargetId string `protobuf:"bytes,2,opt,name=targetId,proto3" json:"targetId,omitempty"` - Position model.BlockPosition `protobuf:"varint,4,opt,name=position,proto3,enum=anytype.model.BlockPosition" json:"position,omitempty"` - Fields *types.Struct `protobuf:"bytes,6,opt,name=fields,proto3" json:"fields,omitempty"` -} - -func (m *RpcBlockCreatePageRequest) Reset() { *m = RpcBlockCreatePageRequest{} } -func (m *RpcBlockCreatePageRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockCreatePageRequest) ProtoMessage() {} -func (*RpcBlockCreatePageRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 27, 0} -} -func (m *RpcBlockCreatePageRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockCreatePageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockCreatePageRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockCreatePageRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockCreatePageRequest.Merge(m, src) -} -func (m *RpcBlockCreatePageRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockCreatePageRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockCreatePageRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockCreatePageRequest proto.InternalMessageInfo - -func (m *RpcBlockCreatePageRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockCreatePageRequest) GetDetails() *types.Struct { - if m != nil { - return m.Details - } - return nil -} - -func (m *RpcBlockCreatePageRequest) GetTemplateId() string { - if m != nil { - return m.TemplateId - } - return "" -} - -func (m *RpcBlockCreatePageRequest) GetTargetId() string { - if m != nil { - return m.TargetId - } - return "" -} - -func (m *RpcBlockCreatePageRequest) GetPosition() model.BlockPosition { - if m != nil { - return m.Position - } - return model.Block_None -} - -func (m *RpcBlockCreatePageRequest) GetFields() *types.Struct { - if m != nil { - return m.Fields - } - return nil -} - -type RpcBlockCreatePageResponse struct { - Error *RpcBlockCreatePageResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - TargetId string `protobuf:"bytes,3,opt,name=targetId,proto3" json:"targetId,omitempty"` - Event *ResponseEvent `protobuf:"bytes,4,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockCreatePageResponse) Reset() { *m = RpcBlockCreatePageResponse{} } -func (m *RpcBlockCreatePageResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockCreatePageResponse) ProtoMessage() {} -func (*RpcBlockCreatePageResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 27, 1} -} -func (m *RpcBlockCreatePageResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockCreatePageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockCreatePageResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockCreatePageResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockCreatePageResponse.Merge(m, src) -} -func (m *RpcBlockCreatePageResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockCreatePageResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockCreatePageResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockCreatePageResponse proto.InternalMessageInfo - -func (m *RpcBlockCreatePageResponse) GetError() *RpcBlockCreatePageResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockCreatePageResponse) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockCreatePageResponse) GetTargetId() string { - if m != nil { - return m.TargetId - } - return "" -} - -func (m *RpcBlockCreatePageResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockCreatePageResponseError struct { - Code RpcBlockCreatePageResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockCreatePageResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockCreatePageResponseError) Reset() { *m = RpcBlockCreatePageResponseError{} } -func (m *RpcBlockCreatePageResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockCreatePageResponseError) ProtoMessage() {} -func (*RpcBlockCreatePageResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 27, 1, 0} -} -func (m *RpcBlockCreatePageResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockCreatePageResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockCreatePageResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockCreatePageResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockCreatePageResponseError.Merge(m, src) -} -func (m *RpcBlockCreatePageResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockCreatePageResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockCreatePageResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockCreatePageResponseError proto.InternalMessageInfo - -func (m *RpcBlockCreatePageResponseError) GetCode() RpcBlockCreatePageResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockCreatePageResponseError_NULL -} - -func (m *RpcBlockCreatePageResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcBlockCreateSet struct { -} - -func (m *RpcBlockCreateSet) Reset() { *m = RpcBlockCreateSet{} } -func (m *RpcBlockCreateSet) String() string { return proto.CompactTextString(m) } -func (*RpcBlockCreateSet) ProtoMessage() {} -func (*RpcBlockCreateSet) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 28} -} -func (m *RpcBlockCreateSet) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockCreateSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockCreateSet.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockCreateSet) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockCreateSet.Merge(m, src) -} -func (m *RpcBlockCreateSet) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockCreateSet) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockCreateSet.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockCreateSet proto.InternalMessageInfo - -type RpcBlockCreateSetRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - TargetId string `protobuf:"bytes,2,opt,name=targetId,proto3" json:"targetId,omitempty"` - Source []string `protobuf:"bytes,3,rep,name=source,proto3" json:"source,omitempty"` - Details *types.Struct `protobuf:"bytes,4,opt,name=details,proto3" json:"details,omitempty"` - Position model.BlockPosition `protobuf:"varint,5,opt,name=position,proto3,enum=anytype.model.BlockPosition" json:"position,omitempty"` -} - -func (m *RpcBlockCreateSetRequest) Reset() { *m = RpcBlockCreateSetRequest{} } -func (m *RpcBlockCreateSetRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockCreateSetRequest) ProtoMessage() {} -func (*RpcBlockCreateSetRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 28, 0} -} -func (m *RpcBlockCreateSetRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockCreateSetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockCreateSetRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockCreateSetRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockCreateSetRequest.Merge(m, src) -} -func (m *RpcBlockCreateSetRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockCreateSetRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockCreateSetRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockCreateSetRequest proto.InternalMessageInfo - -func (m *RpcBlockCreateSetRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockCreateSetRequest) GetTargetId() string { - if m != nil { - return m.TargetId - } - return "" -} - -func (m *RpcBlockCreateSetRequest) GetSource() []string { - if m != nil { - return m.Source - } - return nil -} - -func (m *RpcBlockCreateSetRequest) GetDetails() *types.Struct { - if m != nil { - return m.Details - } - return nil -} - -func (m *RpcBlockCreateSetRequest) GetPosition() model.BlockPosition { - if m != nil { - return m.Position - } - return model.Block_None -} - -type RpcBlockCreateSetResponse struct { - Error *RpcBlockCreateSetResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` - TargetId string `protobuf:"bytes,3,opt,name=targetId,proto3" json:"targetId,omitempty"` - Event *ResponseEvent `protobuf:"bytes,4,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockCreateSetResponse) Reset() { *m = RpcBlockCreateSetResponse{} } -func (m *RpcBlockCreateSetResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockCreateSetResponse) ProtoMessage() {} -func (*RpcBlockCreateSetResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 28, 1} -} -func (m *RpcBlockCreateSetResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockCreateSetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockCreateSetResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockCreateSetResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockCreateSetResponse.Merge(m, src) -} -func (m *RpcBlockCreateSetResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockCreateSetResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockCreateSetResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockCreateSetResponse proto.InternalMessageInfo - -func (m *RpcBlockCreateSetResponse) GetError() *RpcBlockCreateSetResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockCreateSetResponse) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -func (m *RpcBlockCreateSetResponse) GetTargetId() string { - if m != nil { - return m.TargetId - } - return "" -} - -func (m *RpcBlockCreateSetResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockCreateSetResponseError struct { - Code RpcBlockCreateSetResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockCreateSetResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockCreateSetResponseError) Reset() { *m = RpcBlockCreateSetResponseError{} } -func (m *RpcBlockCreateSetResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockCreateSetResponseError) ProtoMessage() {} -func (*RpcBlockCreateSetResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 28, 1, 0} -} -func (m *RpcBlockCreateSetResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockCreateSetResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockCreateSetResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockCreateSetResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockCreateSetResponseError.Merge(m, src) -} -func (m *RpcBlockCreateSetResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockCreateSetResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockCreateSetResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockCreateSetResponseError proto.InternalMessageInfo - -func (m *RpcBlockCreateSetResponseError) GetCode() RpcBlockCreateSetResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockCreateSetResponseError_NULL -} - -func (m *RpcBlockCreateSetResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -// -// Remove blocks from the childrenIds of its parents -type RpcBlockUnlink struct { -} - -func (m *RpcBlockUnlink) Reset() { *m = RpcBlockUnlink{} } -func (m *RpcBlockUnlink) String() string { return proto.CompactTextString(m) } -func (*RpcBlockUnlink) ProtoMessage() {} -func (*RpcBlockUnlink) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 29} -} -func (m *RpcBlockUnlink) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockUnlink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockUnlink.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockUnlink) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockUnlink.Merge(m, src) -} -func (m *RpcBlockUnlink) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockUnlink) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockUnlink.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockUnlink proto.InternalMessageInfo - -type RpcBlockUnlinkRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockIds []string `protobuf:"bytes,2,rep,name=blockIds,proto3" json:"blockIds,omitempty"` -} - -func (m *RpcBlockUnlinkRequest) Reset() { *m = RpcBlockUnlinkRequest{} } -func (m *RpcBlockUnlinkRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockUnlinkRequest) ProtoMessage() {} -func (*RpcBlockUnlinkRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 29, 0} -} -func (m *RpcBlockUnlinkRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockUnlinkRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockUnlinkRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockUnlinkRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockUnlinkRequest.Merge(m, src) -} -func (m *RpcBlockUnlinkRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockUnlinkRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockUnlinkRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockUnlinkRequest proto.InternalMessageInfo - -func (m *RpcBlockUnlinkRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockUnlinkRequest) GetBlockIds() []string { - if m != nil { - return m.BlockIds - } - return nil -} - -type RpcBlockUnlinkResponse struct { - Error *RpcBlockUnlinkResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcBlockUnlinkResponse) Reset() { *m = RpcBlockUnlinkResponse{} } -func (m *RpcBlockUnlinkResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockUnlinkResponse) ProtoMessage() {} -func (*RpcBlockUnlinkResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 29, 1} -} -func (m *RpcBlockUnlinkResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockUnlinkResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockUnlinkResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockUnlinkResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockUnlinkResponse.Merge(m, src) -} -func (m *RpcBlockUnlinkResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockUnlinkResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockUnlinkResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockUnlinkResponse proto.InternalMessageInfo - -func (m *RpcBlockUnlinkResponse) GetError() *RpcBlockUnlinkResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcBlockUnlinkResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcBlockUnlinkResponseError struct { - Code RpcBlockUnlinkResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockUnlinkResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockUnlinkResponseError) Reset() { *m = RpcBlockUnlinkResponseError{} } -func (m *RpcBlockUnlinkResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockUnlinkResponseError) ProtoMessage() {} -func (*RpcBlockUnlinkResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 29, 1, 0} -} -func (m *RpcBlockUnlinkResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockUnlinkResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockUnlinkResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockUnlinkResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockUnlinkResponseError.Merge(m, src) -} -func (m *RpcBlockUnlinkResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockUnlinkResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockUnlinkResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockUnlinkResponseError proto.InternalMessageInfo - -func (m *RpcBlockUnlinkResponseError) GetCode() RpcBlockUnlinkResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockUnlinkResponseError_NULL -} - -func (m *RpcBlockUnlinkResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -// -// Block.Close – it means unsubscribe from a block. -// Precondition: block should be opened. -type RpcBlockClose struct { -} - -func (m *RpcBlockClose) Reset() { *m = RpcBlockClose{} } -func (m *RpcBlockClose) String() string { return proto.CompactTextString(m) } -func (*RpcBlockClose) ProtoMessage() {} -func (*RpcBlockClose) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 30} -} -func (m *RpcBlockClose) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockClose) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockClose.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockClose) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockClose.Merge(m, src) -} -func (m *RpcBlockClose) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockClose) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockClose.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockClose proto.InternalMessageInfo - -type RpcBlockCloseRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` -} - -func (m *RpcBlockCloseRequest) Reset() { *m = RpcBlockCloseRequest{} } -func (m *RpcBlockCloseRequest) String() string { return proto.CompactTextString(m) } -func (*RpcBlockCloseRequest) ProtoMessage() {} -func (*RpcBlockCloseRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 30, 0} -} -func (m *RpcBlockCloseRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockCloseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockCloseRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockCloseRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockCloseRequest.Merge(m, src) -} -func (m *RpcBlockCloseRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockCloseRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockCloseRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockCloseRequest proto.InternalMessageInfo - -func (m *RpcBlockCloseRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcBlockCloseRequest) GetBlockId() string { - if m != nil { - return m.BlockId - } - return "" -} - -type RpcBlockCloseResponse struct { - Error *RpcBlockCloseResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` -} - -func (m *RpcBlockCloseResponse) Reset() { *m = RpcBlockCloseResponse{} } -func (m *RpcBlockCloseResponse) String() string { return proto.CompactTextString(m) } -func (*RpcBlockCloseResponse) ProtoMessage() {} -func (*RpcBlockCloseResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 30, 1} -} -func (m *RpcBlockCloseResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockCloseResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockCloseResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockCloseResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockCloseResponse.Merge(m, src) -} -func (m *RpcBlockCloseResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockCloseResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockCloseResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockCloseResponse proto.InternalMessageInfo - -func (m *RpcBlockCloseResponse) GetError() *RpcBlockCloseResponseError { - if m != nil { - return m.Error - } - return nil -} - -type RpcBlockCloseResponseError struct { - Code RpcBlockCloseResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockCloseResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcBlockCloseResponseError) Reset() { *m = RpcBlockCloseResponseError{} } -func (m *RpcBlockCloseResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcBlockCloseResponseError) ProtoMessage() {} -func (*RpcBlockCloseResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 30, 1, 0} -} -func (m *RpcBlockCloseResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcBlockCloseResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcBlockCloseResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcBlockCloseResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcBlockCloseResponseError.Merge(m, src) -} -func (m *RpcBlockCloseResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcBlockCloseResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcBlockCloseResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcBlockCloseResponseError proto.InternalMessageInfo - -func (m *RpcBlockCloseResponseError) GetCode() RpcBlockCloseResponseErrorCode { - if m != nil { - return m.Code - } - return RpcBlockCloseResponseError_NULL -} - -func (m *RpcBlockCloseResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcWorkspace struct { -} - -func (m *RpcWorkspace) Reset() { *m = RpcWorkspace{} } -func (m *RpcWorkspace) String() string { return proto.CompactTextString(m) } -func (*RpcWorkspace) ProtoMessage() {} -func (*RpcWorkspace) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 4} -} -func (m *RpcWorkspace) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcWorkspace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcWorkspace.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcWorkspace) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcWorkspace.Merge(m, src) -} -func (m *RpcWorkspace) XXX_Size() int { - return m.Size() -} -func (m *RpcWorkspace) XXX_DiscardUnknown() { - xxx_messageInfo_RpcWorkspace.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcWorkspace proto.InternalMessageInfo - -type RpcWorkspaceGetCurrent struct { -} - -func (m *RpcWorkspaceGetCurrent) Reset() { *m = RpcWorkspaceGetCurrent{} } -func (m *RpcWorkspaceGetCurrent) String() string { return proto.CompactTextString(m) } -func (*RpcWorkspaceGetCurrent) ProtoMessage() {} -func (*RpcWorkspaceGetCurrent) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 0} -} -func (m *RpcWorkspaceGetCurrent) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcWorkspaceGetCurrent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcWorkspaceGetCurrent.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcWorkspaceGetCurrent) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcWorkspaceGetCurrent.Merge(m, src) -} -func (m *RpcWorkspaceGetCurrent) XXX_Size() int { - return m.Size() -} -func (m *RpcWorkspaceGetCurrent) XXX_DiscardUnknown() { - xxx_messageInfo_RpcWorkspaceGetCurrent.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcWorkspaceGetCurrent proto.InternalMessageInfo - -type RpcWorkspaceGetCurrentRequest struct { -} - -func (m *RpcWorkspaceGetCurrentRequest) Reset() { *m = RpcWorkspaceGetCurrentRequest{} } -func (m *RpcWorkspaceGetCurrentRequest) String() string { return proto.CompactTextString(m) } -func (*RpcWorkspaceGetCurrentRequest) ProtoMessage() {} -func (*RpcWorkspaceGetCurrentRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 0, 0} -} -func (m *RpcWorkspaceGetCurrentRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcWorkspaceGetCurrentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcWorkspaceGetCurrentRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcWorkspaceGetCurrentRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcWorkspaceGetCurrentRequest.Merge(m, src) -} -func (m *RpcWorkspaceGetCurrentRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcWorkspaceGetCurrentRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcWorkspaceGetCurrentRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcWorkspaceGetCurrentRequest proto.InternalMessageInfo - -type RpcWorkspaceGetCurrentResponse struct { - Error *RpcWorkspaceGetCurrentResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - WorkspaceId string `protobuf:"bytes,2,opt,name=workspaceId,proto3" json:"workspaceId,omitempty"` -} - -func (m *RpcWorkspaceGetCurrentResponse) Reset() { *m = RpcWorkspaceGetCurrentResponse{} } -func (m *RpcWorkspaceGetCurrentResponse) String() string { return proto.CompactTextString(m) } -func (*RpcWorkspaceGetCurrentResponse) ProtoMessage() {} -func (*RpcWorkspaceGetCurrentResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 0, 1} -} -func (m *RpcWorkspaceGetCurrentResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcWorkspaceGetCurrentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcWorkspaceGetCurrentResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcWorkspaceGetCurrentResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcWorkspaceGetCurrentResponse.Merge(m, src) -} -func (m *RpcWorkspaceGetCurrentResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcWorkspaceGetCurrentResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcWorkspaceGetCurrentResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcWorkspaceGetCurrentResponse proto.InternalMessageInfo - -func (m *RpcWorkspaceGetCurrentResponse) GetError() *RpcWorkspaceGetCurrentResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcWorkspaceGetCurrentResponse) GetWorkspaceId() string { - if m != nil { - return m.WorkspaceId - } - return "" -} - -type RpcWorkspaceGetCurrentResponseError struct { - Code RpcWorkspaceGetCurrentResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcWorkspaceGetCurrentResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcWorkspaceGetCurrentResponseError) Reset() { *m = RpcWorkspaceGetCurrentResponseError{} } -func (m *RpcWorkspaceGetCurrentResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcWorkspaceGetCurrentResponseError) ProtoMessage() {} -func (*RpcWorkspaceGetCurrentResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 0, 1, 0} -} -func (m *RpcWorkspaceGetCurrentResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcWorkspaceGetCurrentResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcWorkspaceGetCurrentResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcWorkspaceGetCurrentResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcWorkspaceGetCurrentResponseError.Merge(m, src) -} -func (m *RpcWorkspaceGetCurrentResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcWorkspaceGetCurrentResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcWorkspaceGetCurrentResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcWorkspaceGetCurrentResponseError proto.InternalMessageInfo - -func (m *RpcWorkspaceGetCurrentResponseError) GetCode() RpcWorkspaceGetCurrentResponseErrorCode { - if m != nil { - return m.Code - } - return RpcWorkspaceGetCurrentResponseError_NULL -} - -func (m *RpcWorkspaceGetCurrentResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcWorkspaceGetAll struct { -} - -func (m *RpcWorkspaceGetAll) Reset() { *m = RpcWorkspaceGetAll{} } -func (m *RpcWorkspaceGetAll) String() string { return proto.CompactTextString(m) } -func (*RpcWorkspaceGetAll) ProtoMessage() {} -func (*RpcWorkspaceGetAll) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 1} -} -func (m *RpcWorkspaceGetAll) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcWorkspaceGetAll) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcWorkspaceGetAll.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcWorkspaceGetAll) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcWorkspaceGetAll.Merge(m, src) -} -func (m *RpcWorkspaceGetAll) XXX_Size() int { - return m.Size() -} -func (m *RpcWorkspaceGetAll) XXX_DiscardUnknown() { - xxx_messageInfo_RpcWorkspaceGetAll.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcWorkspaceGetAll proto.InternalMessageInfo - -type RpcWorkspaceGetAllRequest struct { -} - -func (m *RpcWorkspaceGetAllRequest) Reset() { *m = RpcWorkspaceGetAllRequest{} } -func (m *RpcWorkspaceGetAllRequest) String() string { return proto.CompactTextString(m) } -func (*RpcWorkspaceGetAllRequest) ProtoMessage() {} -func (*RpcWorkspaceGetAllRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 1, 0} -} -func (m *RpcWorkspaceGetAllRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcWorkspaceGetAllRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcWorkspaceGetAllRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcWorkspaceGetAllRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcWorkspaceGetAllRequest.Merge(m, src) -} -func (m *RpcWorkspaceGetAllRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcWorkspaceGetAllRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcWorkspaceGetAllRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcWorkspaceGetAllRequest proto.InternalMessageInfo - -type RpcWorkspaceGetAllResponse struct { - Error *RpcWorkspaceGetAllResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - WorkspaceIds []string `protobuf:"bytes,2,rep,name=workspaceIds,proto3" json:"workspaceIds,omitempty"` -} - -func (m *RpcWorkspaceGetAllResponse) Reset() { *m = RpcWorkspaceGetAllResponse{} } -func (m *RpcWorkspaceGetAllResponse) String() string { return proto.CompactTextString(m) } -func (*RpcWorkspaceGetAllResponse) ProtoMessage() {} -func (*RpcWorkspaceGetAllResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 1, 1} -} -func (m *RpcWorkspaceGetAllResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcWorkspaceGetAllResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcWorkspaceGetAllResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcWorkspaceGetAllResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcWorkspaceGetAllResponse.Merge(m, src) -} -func (m *RpcWorkspaceGetAllResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcWorkspaceGetAllResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcWorkspaceGetAllResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcWorkspaceGetAllResponse proto.InternalMessageInfo - -func (m *RpcWorkspaceGetAllResponse) GetError() *RpcWorkspaceGetAllResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcWorkspaceGetAllResponse) GetWorkspaceIds() []string { - if m != nil { - return m.WorkspaceIds - } - return nil -} - -type RpcWorkspaceGetAllResponseError struct { - Code RpcWorkspaceGetAllResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcWorkspaceGetAllResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcWorkspaceGetAllResponseError) Reset() { *m = RpcWorkspaceGetAllResponseError{} } -func (m *RpcWorkspaceGetAllResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcWorkspaceGetAllResponseError) ProtoMessage() {} -func (*RpcWorkspaceGetAllResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 1, 1, 0} -} -func (m *RpcWorkspaceGetAllResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcWorkspaceGetAllResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcWorkspaceGetAllResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcWorkspaceGetAllResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcWorkspaceGetAllResponseError.Merge(m, src) -} -func (m *RpcWorkspaceGetAllResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcWorkspaceGetAllResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcWorkspaceGetAllResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcWorkspaceGetAllResponseError proto.InternalMessageInfo - -func (m *RpcWorkspaceGetAllResponseError) GetCode() RpcWorkspaceGetAllResponseErrorCode { - if m != nil { - return m.Code - } - return RpcWorkspaceGetAllResponseError_NULL -} - -func (m *RpcWorkspaceGetAllResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcWorkspaceCreate struct { -} - -func (m *RpcWorkspaceCreate) Reset() { *m = RpcWorkspaceCreate{} } -func (m *RpcWorkspaceCreate) String() string { return proto.CompactTextString(m) } -func (*RpcWorkspaceCreate) ProtoMessage() {} -func (*RpcWorkspaceCreate) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 2} -} -func (m *RpcWorkspaceCreate) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcWorkspaceCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcWorkspaceCreate.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcWorkspaceCreate) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcWorkspaceCreate.Merge(m, src) -} -func (m *RpcWorkspaceCreate) XXX_Size() int { - return m.Size() -} -func (m *RpcWorkspaceCreate) XXX_DiscardUnknown() { - xxx_messageInfo_RpcWorkspaceCreate.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcWorkspaceCreate proto.InternalMessageInfo - -type RpcWorkspaceCreateRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` -} - -func (m *RpcWorkspaceCreateRequest) Reset() { *m = RpcWorkspaceCreateRequest{} } -func (m *RpcWorkspaceCreateRequest) String() string { return proto.CompactTextString(m) } -func (*RpcWorkspaceCreateRequest) ProtoMessage() {} -func (*RpcWorkspaceCreateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 2, 0} -} -func (m *RpcWorkspaceCreateRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcWorkspaceCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcWorkspaceCreateRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcWorkspaceCreateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcWorkspaceCreateRequest.Merge(m, src) -} -func (m *RpcWorkspaceCreateRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcWorkspaceCreateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcWorkspaceCreateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcWorkspaceCreateRequest proto.InternalMessageInfo - -func (m *RpcWorkspaceCreateRequest) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -type RpcWorkspaceCreateResponse struct { - Error *RpcWorkspaceCreateResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - WorkspaceId string `protobuf:"bytes,2,opt,name=workspaceId,proto3" json:"workspaceId,omitempty"` -} - -func (m *RpcWorkspaceCreateResponse) Reset() { *m = RpcWorkspaceCreateResponse{} } -func (m *RpcWorkspaceCreateResponse) String() string { return proto.CompactTextString(m) } -func (*RpcWorkspaceCreateResponse) ProtoMessage() {} -func (*RpcWorkspaceCreateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 2, 1} -} -func (m *RpcWorkspaceCreateResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcWorkspaceCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcWorkspaceCreateResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcWorkspaceCreateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcWorkspaceCreateResponse.Merge(m, src) -} -func (m *RpcWorkspaceCreateResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcWorkspaceCreateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcWorkspaceCreateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcWorkspaceCreateResponse proto.InternalMessageInfo - -func (m *RpcWorkspaceCreateResponse) GetError() *RpcWorkspaceCreateResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcWorkspaceCreateResponse) GetWorkspaceId() string { - if m != nil { - return m.WorkspaceId - } - return "" -} - -type RpcWorkspaceCreateResponseError struct { - Code RpcWorkspaceCreateResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcWorkspaceCreateResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcWorkspaceCreateResponseError) Reset() { *m = RpcWorkspaceCreateResponseError{} } -func (m *RpcWorkspaceCreateResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcWorkspaceCreateResponseError) ProtoMessage() {} -func (*RpcWorkspaceCreateResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 2, 1, 0} -} -func (m *RpcWorkspaceCreateResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcWorkspaceCreateResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcWorkspaceCreateResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcWorkspaceCreateResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcWorkspaceCreateResponseError.Merge(m, src) -} -func (m *RpcWorkspaceCreateResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcWorkspaceCreateResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcWorkspaceCreateResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcWorkspaceCreateResponseError proto.InternalMessageInfo - -func (m *RpcWorkspaceCreateResponseError) GetCode() RpcWorkspaceCreateResponseErrorCode { - if m != nil { - return m.Code - } - return RpcWorkspaceCreateResponseError_NULL -} - -func (m *RpcWorkspaceCreateResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcWorkspaceSetIsHighlighted struct { -} - -func (m *RpcWorkspaceSetIsHighlighted) Reset() { *m = RpcWorkspaceSetIsHighlighted{} } -func (m *RpcWorkspaceSetIsHighlighted) String() string { return proto.CompactTextString(m) } -func (*RpcWorkspaceSetIsHighlighted) ProtoMessage() {} -func (*RpcWorkspaceSetIsHighlighted) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 3} -} -func (m *RpcWorkspaceSetIsHighlighted) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcWorkspaceSetIsHighlighted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcWorkspaceSetIsHighlighted.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcWorkspaceSetIsHighlighted) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcWorkspaceSetIsHighlighted.Merge(m, src) -} -func (m *RpcWorkspaceSetIsHighlighted) XXX_Size() int { - return m.Size() -} -func (m *RpcWorkspaceSetIsHighlighted) XXX_DiscardUnknown() { - xxx_messageInfo_RpcWorkspaceSetIsHighlighted.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcWorkspaceSetIsHighlighted proto.InternalMessageInfo - -type RpcWorkspaceSetIsHighlightedRequest struct { - ObjectId string `protobuf:"bytes,1,opt,name=objectId,proto3" json:"objectId,omitempty"` - IsHighlighted bool `protobuf:"varint,2,opt,name=isHighlighted,proto3" json:"isHighlighted,omitempty"` -} - -func (m *RpcWorkspaceSetIsHighlightedRequest) Reset() { *m = RpcWorkspaceSetIsHighlightedRequest{} } -func (m *RpcWorkspaceSetIsHighlightedRequest) String() string { return proto.CompactTextString(m) } -func (*RpcWorkspaceSetIsHighlightedRequest) ProtoMessage() {} -func (*RpcWorkspaceSetIsHighlightedRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 3, 0} -} -func (m *RpcWorkspaceSetIsHighlightedRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcWorkspaceSetIsHighlightedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcWorkspaceSetIsHighlightedRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcWorkspaceSetIsHighlightedRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcWorkspaceSetIsHighlightedRequest.Merge(m, src) -} -func (m *RpcWorkspaceSetIsHighlightedRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcWorkspaceSetIsHighlightedRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcWorkspaceSetIsHighlightedRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcWorkspaceSetIsHighlightedRequest proto.InternalMessageInfo - -func (m *RpcWorkspaceSetIsHighlightedRequest) GetObjectId() string { - if m != nil { - return m.ObjectId - } - return "" -} - -func (m *RpcWorkspaceSetIsHighlightedRequest) GetIsHighlighted() bool { - if m != nil { - return m.IsHighlighted - } - return false -} - -type RpcWorkspaceSetIsHighlightedResponse struct { - Error *RpcWorkspaceSetIsHighlightedResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` -} - -func (m *RpcWorkspaceSetIsHighlightedResponse) Reset() { *m = RpcWorkspaceSetIsHighlightedResponse{} } -func (m *RpcWorkspaceSetIsHighlightedResponse) String() string { return proto.CompactTextString(m) } -func (*RpcWorkspaceSetIsHighlightedResponse) ProtoMessage() {} -func (*RpcWorkspaceSetIsHighlightedResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 3, 1} -} -func (m *RpcWorkspaceSetIsHighlightedResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcWorkspaceSetIsHighlightedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcWorkspaceSetIsHighlightedResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcWorkspaceSetIsHighlightedResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcWorkspaceSetIsHighlightedResponse.Merge(m, src) -} -func (m *RpcWorkspaceSetIsHighlightedResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcWorkspaceSetIsHighlightedResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcWorkspaceSetIsHighlightedResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcWorkspaceSetIsHighlightedResponse proto.InternalMessageInfo - -func (m *RpcWorkspaceSetIsHighlightedResponse) GetError() *RpcWorkspaceSetIsHighlightedResponseError { - if m != nil { - return m.Error - } - return nil -} - -type RpcWorkspaceSetIsHighlightedResponseError struct { - Code RpcWorkspaceSetIsHighlightedResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcWorkspaceSetIsHighlightedResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcWorkspaceSetIsHighlightedResponseError) Reset() { - *m = RpcWorkspaceSetIsHighlightedResponseError{} -} -func (m *RpcWorkspaceSetIsHighlightedResponseError) String() string { - return proto.CompactTextString(m) -} -func (*RpcWorkspaceSetIsHighlightedResponseError) ProtoMessage() {} -func (*RpcWorkspaceSetIsHighlightedResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 3, 1, 0} -} -func (m *RpcWorkspaceSetIsHighlightedResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcWorkspaceSetIsHighlightedResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcWorkspaceSetIsHighlightedResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcWorkspaceSetIsHighlightedResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcWorkspaceSetIsHighlightedResponseError.Merge(m, src) -} -func (m *RpcWorkspaceSetIsHighlightedResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcWorkspaceSetIsHighlightedResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcWorkspaceSetIsHighlightedResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcWorkspaceSetIsHighlightedResponseError proto.InternalMessageInfo - -func (m *RpcWorkspaceSetIsHighlightedResponseError) GetCode() RpcWorkspaceSetIsHighlightedResponseErrorCode { - if m != nil { - return m.Code - } - return RpcWorkspaceSetIsHighlightedResponseError_NULL -} - -func (m *RpcWorkspaceSetIsHighlightedResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcWorkspaceSelect struct { -} - -func (m *RpcWorkspaceSelect) Reset() { *m = RpcWorkspaceSelect{} } -func (m *RpcWorkspaceSelect) String() string { return proto.CompactTextString(m) } -func (*RpcWorkspaceSelect) ProtoMessage() {} -func (*RpcWorkspaceSelect) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 4} -} -func (m *RpcWorkspaceSelect) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcWorkspaceSelect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcWorkspaceSelect.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcWorkspaceSelect) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcWorkspaceSelect.Merge(m, src) -} -func (m *RpcWorkspaceSelect) XXX_Size() int { - return m.Size() -} -func (m *RpcWorkspaceSelect) XXX_DiscardUnknown() { - xxx_messageInfo_RpcWorkspaceSelect.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcWorkspaceSelect proto.InternalMessageInfo - -type RpcWorkspaceSelectRequest struct { - WorkspaceId string `protobuf:"bytes,1,opt,name=workspaceId,proto3" json:"workspaceId,omitempty"` -} - -func (m *RpcWorkspaceSelectRequest) Reset() { *m = RpcWorkspaceSelectRequest{} } -func (m *RpcWorkspaceSelectRequest) String() string { return proto.CompactTextString(m) } -func (*RpcWorkspaceSelectRequest) ProtoMessage() {} -func (*RpcWorkspaceSelectRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 4, 0} -} -func (m *RpcWorkspaceSelectRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcWorkspaceSelectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcWorkspaceSelectRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcWorkspaceSelectRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcWorkspaceSelectRequest.Merge(m, src) -} -func (m *RpcWorkspaceSelectRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcWorkspaceSelectRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcWorkspaceSelectRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcWorkspaceSelectRequest proto.InternalMessageInfo - -func (m *RpcWorkspaceSelectRequest) GetWorkspaceId() string { - if m != nil { - return m.WorkspaceId - } - return "" -} - -type RpcWorkspaceSelectResponse struct { - Error *RpcWorkspaceSelectResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` -} - -func (m *RpcWorkspaceSelectResponse) Reset() { *m = RpcWorkspaceSelectResponse{} } -func (m *RpcWorkspaceSelectResponse) String() string { return proto.CompactTextString(m) } -func (*RpcWorkspaceSelectResponse) ProtoMessage() {} -func (*RpcWorkspaceSelectResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 4, 1} -} -func (m *RpcWorkspaceSelectResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcWorkspaceSelectResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcWorkspaceSelectResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcWorkspaceSelectResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcWorkspaceSelectResponse.Merge(m, src) -} -func (m *RpcWorkspaceSelectResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcWorkspaceSelectResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcWorkspaceSelectResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcWorkspaceSelectResponse proto.InternalMessageInfo - -func (m *RpcWorkspaceSelectResponse) GetError() *RpcWorkspaceSelectResponseError { - if m != nil { - return m.Error - } - return nil -} - -type RpcWorkspaceSelectResponseError struct { - Code RpcWorkspaceSelectResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcWorkspaceSelectResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcWorkspaceSelectResponseError) Reset() { *m = RpcWorkspaceSelectResponseError{} } -func (m *RpcWorkspaceSelectResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcWorkspaceSelectResponseError) ProtoMessage() {} -func (*RpcWorkspaceSelectResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 4, 1, 0} -} -func (m *RpcWorkspaceSelectResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcWorkspaceSelectResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcWorkspaceSelectResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcWorkspaceSelectResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcWorkspaceSelectResponseError.Merge(m, src) -} -func (m *RpcWorkspaceSelectResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcWorkspaceSelectResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcWorkspaceSelectResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcWorkspaceSelectResponseError proto.InternalMessageInfo - -func (m *RpcWorkspaceSelectResponseError) GetCode() RpcWorkspaceSelectResponseErrorCode { - if m != nil { - return m.Code - } - return RpcWorkspaceSelectResponseError_NULL -} - -func (m *RpcWorkspaceSelectResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -// -// Namespace, that aggregates subtopics and actions, that relates to wallet. type RpcWallet struct { } @@ -22860,7 +5158,7 @@ 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_8261c968b2e6f45c, []int{0, 5} + return fileDescriptor_8261c968b2e6f45c, []int{0, 1} } func (m *RpcWallet) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -22896,7 +5194,7 @@ 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_8261c968b2e6f45c, []int{0, 5, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 1, 0} } func (m *RpcWalletCreate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -22935,7 +5233,7 @@ 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_8261c968b2e6f45c, []int{0, 5, 0, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 1, 0, 0} } func (m *RpcWalletCreateRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -22982,7 +5280,7 @@ 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_8261c968b2e6f45c, []int{0, 5, 0, 1} + return fileDescriptor_8261c968b2e6f45c, []int{0, 1, 0, 1} } func (m *RpcWalletCreateResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -23034,7 +5332,7 @@ func (m *RpcWalletCreateResponseError) Reset() { *m = RpcWalletCreateRes func (m *RpcWalletCreateResponseError) String() string { return proto.CompactTextString(m) } func (*RpcWalletCreateResponseError) ProtoMessage() {} func (*RpcWalletCreateResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 5, 0, 1, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 1, 0, 1, 0} } func (m *RpcWalletCreateResponseError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -23084,7 +5382,7 @@ 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_8261c968b2e6f45c, []int{0, 5, 1} + return fileDescriptor_8261c968b2e6f45c, []int{0, 1, 1} } func (m *RpcWalletRecover) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -23124,7 +5422,7 @@ 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_8261c968b2e6f45c, []int{0, 5, 1, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 1, 1, 0} } func (m *RpcWalletRecoverRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -23177,7 +5475,7 @@ func (m *RpcWalletRecoverResponse) Reset() { *m = RpcWalletRecoverRespon func (m *RpcWalletRecoverResponse) String() string { return proto.CompactTextString(m) } func (*RpcWalletRecoverResponse) ProtoMessage() {} func (*RpcWalletRecoverResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 5, 1, 1} + return fileDescriptor_8261c968b2e6f45c, []int{0, 1, 1, 1} } func (m *RpcWalletRecoverResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -23222,7 +5520,7 @@ func (m *RpcWalletRecoverResponseError) Reset() { *m = RpcWalletRecoverR func (m *RpcWalletRecoverResponseError) String() string { return proto.CompactTextString(m) } func (*RpcWalletRecoverResponseError) ProtoMessage() {} func (*RpcWalletRecoverResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 5, 1, 1, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 1, 1, 1, 0} } func (m *RpcWalletRecoverResponseError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -23272,7 +5570,7 @@ func (m *RpcWalletConvert) Reset() { *m = RpcWalletConvert{} } func (m *RpcWalletConvert) String() string { return proto.CompactTextString(m) } func (*RpcWalletConvert) ProtoMessage() {} func (*RpcWalletConvert) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 5, 2} + return fileDescriptor_8261c968b2e6f45c, []int{0, 1, 2} } func (m *RpcWalletConvert) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -23310,7 +5608,7 @@ func (m *RpcWalletConvertRequest) Reset() { *m = RpcWalletConvertRequest func (m *RpcWalletConvertRequest) String() string { return proto.CompactTextString(m) } func (*RpcWalletConvertRequest) ProtoMessage() {} func (*RpcWalletConvertRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 5, 2, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 1, 2, 0} } func (m *RpcWalletConvertRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -23363,7 +5661,7 @@ func (m *RpcWalletConvertResponse) Reset() { *m = RpcWalletConvertRespon func (m *RpcWalletConvertResponse) String() string { return proto.CompactTextString(m) } func (*RpcWalletConvertResponse) ProtoMessage() {} func (*RpcWalletConvertResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 5, 2, 1} + return fileDescriptor_8261c968b2e6f45c, []int{0, 1, 2, 1} } func (m *RpcWalletConvertResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -23422,7 +5720,7 @@ func (m *RpcWalletConvertResponseError) Reset() { *m = RpcWalletConvertR func (m *RpcWalletConvertResponseError) String() string { return proto.CompactTextString(m) } func (*RpcWalletConvertResponseError) ProtoMessage() {} func (*RpcWalletConvertResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 5, 2, 1, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 1, 2, 1, 0} } func (m *RpcWalletConvertResponseError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -23465,8 +5763,6 @@ func (m *RpcWalletConvertResponseError) GetDescription() string { return "" } -// -// Namespace, that agregates subtopics and actions, that relates to account. type RpcAccount struct { } @@ -23474,7 +5770,7 @@ 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_8261c968b2e6f45c, []int{0, 6} + return fileDescriptor_8261c968b2e6f45c, []int{0, 2} } func (m *RpcAccount) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -23503,7 +5799,6 @@ func (m *RpcAccount) XXX_DiscardUnknown() { var xxx_messageInfo_RpcAccount proto.InternalMessageInfo -// TODO: use model from models.proto type RpcAccountConfig struct { EnableDataview bool `protobuf:"varint,1,opt,name=enableDataview,proto3" json:"enableDataview,omitempty"` EnableDebug bool `protobuf:"varint,2,opt,name=enableDebug,proto3" json:"enableDebug,omitempty"` @@ -23516,7 +5811,7 @@ func (m *RpcAccountConfig) Reset() { *m = RpcAccountConfig{} } func (m *RpcAccountConfig) String() string { return proto.CompactTextString(m) } func (*RpcAccountConfig) ProtoMessage() {} func (*RpcAccountConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 6, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 0} } func (m *RpcAccountConfig) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -23587,7 +5882,7 @@ 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_8261c968b2e6f45c, []int{0, 6, 1} + return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 1} } func (m *RpcAccountCreate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -23630,7 +5925,7 @@ 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_8261c968b2e6f45c, []int{0, 6, 1, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 1, 0} } func (m *RpcAccountCreateRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -23718,7 +6013,7 @@ func (m *RpcAccountCreateResponse) Reset() { *m = RpcAccountCreateRespon func (m *RpcAccountCreateResponse) String() string { return proto.CompactTextString(m) } func (*RpcAccountCreateResponse) ProtoMessage() {} func (*RpcAccountCreateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 6, 1, 1} + return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 1, 1} } func (m *RpcAccountCreateResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -23777,7 +6072,7 @@ func (m *RpcAccountCreateResponseError) Reset() { *m = RpcAccountCreateR func (m *RpcAccountCreateResponseError) String() string { return proto.CompactTextString(m) } func (*RpcAccountCreateResponseError) ProtoMessage() {} func (*RpcAccountCreateResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 6, 1, 1, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 1, 1, 0} } func (m *RpcAccountCreateResponseError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -23827,7 +6122,7 @@ 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_8261c968b2e6f45c, []int{0, 6, 2} + return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 2} } func (m *RpcAccountRecover) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -23866,7 +6161,7 @@ func (m *RpcAccountRecoverRequest) Reset() { *m = RpcAccountRecoverReque func (m *RpcAccountRecoverRequest) String() string { return proto.CompactTextString(m) } func (*RpcAccountRecoverRequest) ProtoMessage() {} func (*RpcAccountRecoverRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 6, 2, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 2, 0} } func (m *RpcAccountRecoverRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -23905,7 +6200,7 @@ func (m *RpcAccountRecoverResponse) Reset() { *m = RpcAccountRecoverResp func (m *RpcAccountRecoverResponse) String() string { return proto.CompactTextString(m) } func (*RpcAccountRecoverResponse) ProtoMessage() {} func (*RpcAccountRecoverResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 6, 2, 1} + return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 2, 1} } func (m *RpcAccountRecoverResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -23950,7 +6245,7 @@ func (m *RpcAccountRecoverResponseError) Reset() { *m = RpcAccountRecove func (m *RpcAccountRecoverResponseError) String() string { return proto.CompactTextString(m) } func (*RpcAccountRecoverResponseError) ProtoMessage() {} func (*RpcAccountRecoverResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 6, 2, 1, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 2, 1, 0} } func (m *RpcAccountRecoverResponseError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -24000,7 +6295,7 @@ func (m *RpcAccountDelete) Reset() { *m = RpcAccountDelete{} } func (m *RpcAccountDelete) String() string { return proto.CompactTextString(m) } func (*RpcAccountDelete) ProtoMessage() {} func (*RpcAccountDelete) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 6, 3} + return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 3} } func (m *RpcAccountDelete) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -24037,7 +6332,7 @@ func (m *RpcAccountDeleteRequest) Reset() { *m = RpcAccountDeleteRequest func (m *RpcAccountDeleteRequest) String() string { return proto.CompactTextString(m) } func (*RpcAccountDeleteRequest) ProtoMessage() {} func (*RpcAccountDeleteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 6, 3, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 3, 0} } func (m *RpcAccountDeleteRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -24082,7 +6377,7 @@ func (m *RpcAccountDeleteResponse) Reset() { *m = RpcAccountDeleteRespon func (m *RpcAccountDeleteResponse) String() string { return proto.CompactTextString(m) } func (*RpcAccountDeleteResponse) ProtoMessage() {} func (*RpcAccountDeleteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 6, 3, 1} + return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 3, 1} } func (m *RpcAccountDeleteResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -24134,7 +6429,7 @@ func (m *RpcAccountDeleteResponseError) Reset() { *m = RpcAccountDeleteR func (m *RpcAccountDeleteResponseError) String() string { return proto.CompactTextString(m) } func (*RpcAccountDeleteResponseError) ProtoMessage() {} func (*RpcAccountDeleteResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 6, 3, 1, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 3, 1, 0} } func (m *RpcAccountDeleteResponseError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -24184,7 +6479,7 @@ 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_8261c968b2e6f45c, []int{0, 6, 4} + return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4} } func (m *RpcAccountSelect) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -24225,7 +6520,7 @@ 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_8261c968b2e6f45c, []int{0, 6, 4, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 0} } func (m *RpcAccountSelectRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -24280,7 +6575,7 @@ func (m *RpcAccountSelectResponse) Reset() { *m = RpcAccountSelectRespon func (m *RpcAccountSelectResponse) String() string { return proto.CompactTextString(m) } func (*RpcAccountSelectResponse) ProtoMessage() {} func (*RpcAccountSelectResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 6, 4, 1} + return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 1} } func (m *RpcAccountSelectResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -24339,7 +6634,7 @@ func (m *RpcAccountSelectResponseError) Reset() { *m = RpcAccountSelectR func (m *RpcAccountSelectResponseError) String() string { return proto.CompactTextString(m) } func (*RpcAccountSelectResponseError) ProtoMessage() {} func (*RpcAccountSelectResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 6, 4, 1, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 4, 1, 0} } func (m *RpcAccountSelectResponseError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -24389,7 +6684,7 @@ func (m *RpcAccountStop) Reset() { *m = RpcAccountStop{} } func (m *RpcAccountStop) String() string { return proto.CompactTextString(m) } func (*RpcAccountStop) ProtoMessage() {} func (*RpcAccountStop) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 6, 5} + return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 5} } func (m *RpcAccountStop) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -24428,7 +6723,7 @@ func (m *RpcAccountStopRequest) Reset() { *m = RpcAccountStopRequest{} } func (m *RpcAccountStopRequest) String() string { return proto.CompactTextString(m) } func (*RpcAccountStopRequest) ProtoMessage() {} func (*RpcAccountStopRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 6, 5, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 5, 0} } func (m *RpcAccountStopRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -24474,7 +6769,7 @@ func (m *RpcAccountStopResponse) Reset() { *m = RpcAccountStopResponse{} func (m *RpcAccountStopResponse) String() string { return proto.CompactTextString(m) } func (*RpcAccountStopResponse) ProtoMessage() {} func (*RpcAccountStopResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 6, 5, 1} + return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 5, 1} } func (m *RpcAccountStopResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -24519,7 +6814,7 @@ func (m *RpcAccountStopResponseError) Reset() { *m = RpcAccountStopRespo func (m *RpcAccountStopResponseError) String() string { return proto.CompactTextString(m) } func (*RpcAccountStopResponseError) ProtoMessage() {} func (*RpcAccountStopResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 6, 5, 1, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 5, 1, 0} } func (m *RpcAccountStopResponseError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -24562,24 +6857,21 @@ func (m *RpcAccountStopResponseError) GetDescription() string { return "" } -// -// Namespace, that agregates log subtopics and actions. -// Usage: send request with topic (Level) and description (message) from client to middleware to log. -type RpcLog struct { +type RpcAccountGetConfig struct { } -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_8261c968b2e6f45c, []int{0, 7} +func (m *RpcAccountGetConfig) Reset() { *m = RpcAccountGetConfig{} } +func (m *RpcAccountGetConfig) String() string { return proto.CompactTextString(m) } +func (*RpcAccountGetConfig) ProtoMessage() {} +func (*RpcAccountGetConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 6} } -func (m *RpcLog) XXX_Unmarshal(b []byte) error { +func (m *RpcAccountGetConfig) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcAccountGetConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcLog.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcAccountGetConfig.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -24589,33 +6881,33 @@ func (m *RpcLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } -func (m *RpcLog) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcLog.Merge(m, src) +func (m *RpcAccountGetConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcAccountGetConfig.Merge(m, src) } -func (m *RpcLog) XXX_Size() int { +func (m *RpcAccountGetConfig) XXX_Size() int { return m.Size() } -func (m *RpcLog) XXX_DiscardUnknown() { - xxx_messageInfo_RpcLog.DiscardUnknown(m) +func (m *RpcAccountGetConfig) XXX_DiscardUnknown() { + xxx_messageInfo_RpcAccountGetConfig.DiscardUnknown(m) } -var xxx_messageInfo_RpcLog proto.InternalMessageInfo +var xxx_messageInfo_RpcAccountGetConfig proto.InternalMessageInfo -type RpcLogSend struct { +type RpcAccountGetConfigGet struct { } -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_8261c968b2e6f45c, []int{0, 7, 0} +func (m *RpcAccountGetConfigGet) Reset() { *m = RpcAccountGetConfigGet{} } +func (m *RpcAccountGetConfigGet) String() string { return proto.CompactTextString(m) } +func (*RpcAccountGetConfigGet) ProtoMessage() {} +func (*RpcAccountGetConfigGet) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 6, 0} } -func (m *RpcLogSend) XXX_Unmarshal(b []byte) error { +func (m *RpcAccountGetConfigGet) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcLogSend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcAccountGetConfigGet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcLogSend.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcAccountGetConfigGet.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -24625,35 +6917,33 @@ func (m *RpcLogSend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } -func (m *RpcLogSend) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcLogSend.Merge(m, src) +func (m *RpcAccountGetConfigGet) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcAccountGetConfigGet.Merge(m, src) } -func (m *RpcLogSend) XXX_Size() int { +func (m *RpcAccountGetConfigGet) XXX_Size() int { return m.Size() } -func (m *RpcLogSend) XXX_DiscardUnknown() { - xxx_messageInfo_RpcLogSend.DiscardUnknown(m) +func (m *RpcAccountGetConfigGet) XXX_DiscardUnknown() { + xxx_messageInfo_RpcAccountGetConfigGet.DiscardUnknown(m) } -var xxx_messageInfo_RpcLogSend proto.InternalMessageInfo +var xxx_messageInfo_RpcAccountGetConfigGet proto.InternalMessageInfo -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"` +type RpcAccountGetConfigGetRequest struct { } -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_8261c968b2e6f45c, []int{0, 7, 0, 0} +func (m *RpcAccountGetConfigGetRequest) Reset() { *m = RpcAccountGetConfigGetRequest{} } +func (m *RpcAccountGetConfigGetRequest) String() string { return proto.CompactTextString(m) } +func (*RpcAccountGetConfigGetRequest) ProtoMessage() {} +func (*RpcAccountGetConfigGetRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 2, 6, 0, 0} } -func (m *RpcLogSendRequest) XXX_Unmarshal(b []byte) error { +func (m *RpcAccountGetConfigGetRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcLogSendRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcAccountGetConfigGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcLogSendRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcAccountGetConfigGetRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -24663,48 +6953,33 @@ func (m *RpcLogSendRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return b[:n], nil } } -func (m *RpcLogSendRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcLogSendRequest.Merge(m, src) +func (m *RpcAccountGetConfigGetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcAccountGetConfigGetRequest.Merge(m, src) } -func (m *RpcLogSendRequest) XXX_Size() int { +func (m *RpcAccountGetConfigGetRequest) XXX_Size() int { return m.Size() } -func (m *RpcLogSendRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcLogSendRequest.DiscardUnknown(m) +func (m *RpcAccountGetConfigGetRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcAccountGetConfigGetRequest.DiscardUnknown(m) } -var xxx_messageInfo_RpcLogSendRequest proto.InternalMessageInfo +var xxx_messageInfo_RpcAccountGetConfigGetRequest proto.InternalMessageInfo -func (m *RpcLogSendRequest) GetMessage() string { - if m != nil { - return m.Message - } - return "" +type RpcWorkspace struct { } -func (m *RpcLogSendRequest) GetLevel() RpcLogSendRequestLevel { - if m != nil { - return m.Level - } - return RpcLogSendRequest_DEBUG +func (m *RpcWorkspace) Reset() { *m = RpcWorkspace{} } +func (m *RpcWorkspace) String() string { return proto.CompactTextString(m) } +func (*RpcWorkspace) ProtoMessage() {} +func (*RpcWorkspace) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 3} } - -type RpcLogSendResponse struct { - Error *RpcLogSendResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` -} - -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_8261c968b2e6f45c, []int{0, 7, 0, 1} -} -func (m *RpcLogSendResponse) XXX_Unmarshal(b []byte) error { +func (m *RpcWorkspace) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcLogSendResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcWorkspace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcLogSendResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcWorkspace.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -24714,42 +6989,159 @@ func (m *RpcLogSendResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *RpcLogSendResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcLogSendResponse.Merge(m, src) +func (m *RpcWorkspace) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcWorkspace.Merge(m, src) } -func (m *RpcLogSendResponse) XXX_Size() int { +func (m *RpcWorkspace) XXX_Size() int { return m.Size() } -func (m *RpcLogSendResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcLogSendResponse.DiscardUnknown(m) +func (m *RpcWorkspace) XXX_DiscardUnknown() { + xxx_messageInfo_RpcWorkspace.DiscardUnknown(m) } -var xxx_messageInfo_RpcLogSendResponse proto.InternalMessageInfo +var xxx_messageInfo_RpcWorkspace proto.InternalMessageInfo -func (m *RpcLogSendResponse) GetError() *RpcLogSendResponseError { +type RpcWorkspaceGetCurrent struct { +} + +func (m *RpcWorkspaceGetCurrent) Reset() { *m = RpcWorkspaceGetCurrent{} } +func (m *RpcWorkspaceGetCurrent) String() string { return proto.CompactTextString(m) } +func (*RpcWorkspaceGetCurrent) ProtoMessage() {} +func (*RpcWorkspaceGetCurrent) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 0} +} +func (m *RpcWorkspaceGetCurrent) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcWorkspaceGetCurrent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcWorkspaceGetCurrent.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcWorkspaceGetCurrent) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcWorkspaceGetCurrent.Merge(m, src) +} +func (m *RpcWorkspaceGetCurrent) XXX_Size() int { + return m.Size() +} +func (m *RpcWorkspaceGetCurrent) XXX_DiscardUnknown() { + xxx_messageInfo_RpcWorkspaceGetCurrent.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcWorkspaceGetCurrent proto.InternalMessageInfo + +type RpcWorkspaceGetCurrentRequest struct { +} + +func (m *RpcWorkspaceGetCurrentRequest) Reset() { *m = RpcWorkspaceGetCurrentRequest{} } +func (m *RpcWorkspaceGetCurrentRequest) String() string { return proto.CompactTextString(m) } +func (*RpcWorkspaceGetCurrentRequest) ProtoMessage() {} +func (*RpcWorkspaceGetCurrentRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 0, 0} +} +func (m *RpcWorkspaceGetCurrentRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcWorkspaceGetCurrentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcWorkspaceGetCurrentRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcWorkspaceGetCurrentRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcWorkspaceGetCurrentRequest.Merge(m, src) +} +func (m *RpcWorkspaceGetCurrentRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcWorkspaceGetCurrentRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcWorkspaceGetCurrentRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcWorkspaceGetCurrentRequest proto.InternalMessageInfo + +type RpcWorkspaceGetCurrentResponse struct { + Error *RpcWorkspaceGetCurrentResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + WorkspaceId string `protobuf:"bytes,2,opt,name=workspaceId,proto3" json:"workspaceId,omitempty"` +} + +func (m *RpcWorkspaceGetCurrentResponse) Reset() { *m = RpcWorkspaceGetCurrentResponse{} } +func (m *RpcWorkspaceGetCurrentResponse) String() string { return proto.CompactTextString(m) } +func (*RpcWorkspaceGetCurrentResponse) ProtoMessage() {} +func (*RpcWorkspaceGetCurrentResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 0, 1} +} +func (m *RpcWorkspaceGetCurrentResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcWorkspaceGetCurrentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcWorkspaceGetCurrentResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcWorkspaceGetCurrentResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcWorkspaceGetCurrentResponse.Merge(m, src) +} +func (m *RpcWorkspaceGetCurrentResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcWorkspaceGetCurrentResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcWorkspaceGetCurrentResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcWorkspaceGetCurrentResponse proto.InternalMessageInfo + +func (m *RpcWorkspaceGetCurrentResponse) GetError() *RpcWorkspaceGetCurrentResponseError { if m != nil { return m.Error } return nil } -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 *RpcWorkspaceGetCurrentResponse) GetWorkspaceId() string { + if m != nil { + return m.WorkspaceId + } + return "" } -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_8261c968b2e6f45c, []int{0, 7, 0, 1, 0} +type RpcWorkspaceGetCurrentResponseError struct { + Code RpcWorkspaceGetCurrentResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcWorkspaceGetCurrentResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` } -func (m *RpcLogSendResponseError) XXX_Unmarshal(b []byte) error { + +func (m *RpcWorkspaceGetCurrentResponseError) Reset() { *m = RpcWorkspaceGetCurrentResponseError{} } +func (m *RpcWorkspaceGetCurrentResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcWorkspaceGetCurrentResponseError) ProtoMessage() {} +func (*RpcWorkspaceGetCurrentResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 0, 1, 0} +} +func (m *RpcWorkspaceGetCurrentResponseError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcLogSendResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcWorkspaceGetCurrentResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcLogSendResponseError.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcWorkspaceGetCurrentResponseError.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -24759,50 +7151,47 @@ func (m *RpcLogSendResponseError) XXX_Marshal(b []byte, deterministic bool) ([]b return b[:n], nil } } -func (m *RpcLogSendResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcLogSendResponseError.Merge(m, src) +func (m *RpcWorkspaceGetCurrentResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcWorkspaceGetCurrentResponseError.Merge(m, src) } -func (m *RpcLogSendResponseError) XXX_Size() int { +func (m *RpcWorkspaceGetCurrentResponseError) XXX_Size() int { return m.Size() } -func (m *RpcLogSendResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcLogSendResponseError.DiscardUnknown(m) +func (m *RpcWorkspaceGetCurrentResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcWorkspaceGetCurrentResponseError.DiscardUnknown(m) } -var xxx_messageInfo_RpcLogSendResponseError proto.InternalMessageInfo +var xxx_messageInfo_RpcWorkspaceGetCurrentResponseError proto.InternalMessageInfo -func (m *RpcLogSendResponseError) GetCode() RpcLogSendResponseErrorCode { +func (m *RpcWorkspaceGetCurrentResponseError) GetCode() RpcWorkspaceGetCurrentResponseErrorCode { if m != nil { return m.Code } - return RpcLogSendResponseError_NULL + return RpcWorkspaceGetCurrentResponseError_NULL } -func (m *RpcLogSendResponseError) GetDescription() string { +func (m *RpcWorkspaceGetCurrentResponseError) GetDescription() string { if m != nil { return m.Description } return "" } -// -// Get info about a version of a middleware. -// Info is a string, that contains: BuildDate, GitCommit, GitBranch, GitState -type RpcVersion struct { +type RpcWorkspaceGetAll struct { } -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_8261c968b2e6f45c, []int{0, 8} +func (m *RpcWorkspaceGetAll) Reset() { *m = RpcWorkspaceGetAll{} } +func (m *RpcWorkspaceGetAll) String() string { return proto.CompactTextString(m) } +func (*RpcWorkspaceGetAll) ProtoMessage() {} +func (*RpcWorkspaceGetAll) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 1} } -func (m *RpcVersion) XXX_Unmarshal(b []byte) error { +func (m *RpcWorkspaceGetAll) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcWorkspaceGetAll) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcVersion.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcWorkspaceGetAll.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -24812,33 +7201,33 @@ func (m *RpcVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } -func (m *RpcVersion) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcVersion.Merge(m, src) +func (m *RpcWorkspaceGetAll) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcWorkspaceGetAll.Merge(m, src) } -func (m *RpcVersion) XXX_Size() int { +func (m *RpcWorkspaceGetAll) XXX_Size() int { return m.Size() } -func (m *RpcVersion) XXX_DiscardUnknown() { - xxx_messageInfo_RpcVersion.DiscardUnknown(m) +func (m *RpcWorkspaceGetAll) XXX_DiscardUnknown() { + xxx_messageInfo_RpcWorkspaceGetAll.DiscardUnknown(m) } -var xxx_messageInfo_RpcVersion proto.InternalMessageInfo +var xxx_messageInfo_RpcWorkspaceGetAll proto.InternalMessageInfo -type RpcVersionGet struct { +type RpcWorkspaceGetAllRequest struct { } -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_8261c968b2e6f45c, []int{0, 8, 0} +func (m *RpcWorkspaceGetAllRequest) Reset() { *m = RpcWorkspaceGetAllRequest{} } +func (m *RpcWorkspaceGetAllRequest) String() string { return proto.CompactTextString(m) } +func (*RpcWorkspaceGetAllRequest) ProtoMessage() {} +func (*RpcWorkspaceGetAllRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 1, 0} } -func (m *RpcVersionGet) XXX_Unmarshal(b []byte) error { +func (m *RpcWorkspaceGetAllRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcVersionGet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcWorkspaceGetAllRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcVersionGet.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcWorkspaceGetAllRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -24848,33 +7237,35 @@ func (m *RpcVersionGet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return b[:n], nil } } -func (m *RpcVersionGet) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcVersionGet.Merge(m, src) +func (m *RpcWorkspaceGetAllRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcWorkspaceGetAllRequest.Merge(m, src) } -func (m *RpcVersionGet) XXX_Size() int { +func (m *RpcWorkspaceGetAllRequest) XXX_Size() int { return m.Size() } -func (m *RpcVersionGet) XXX_DiscardUnknown() { - xxx_messageInfo_RpcVersionGet.DiscardUnknown(m) +func (m *RpcWorkspaceGetAllRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcWorkspaceGetAllRequest.DiscardUnknown(m) } -var xxx_messageInfo_RpcVersionGet proto.InternalMessageInfo +var xxx_messageInfo_RpcWorkspaceGetAllRequest proto.InternalMessageInfo -type RpcVersionGetRequest struct { +type RpcWorkspaceGetAllResponse struct { + Error *RpcWorkspaceGetAllResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + WorkspaceIds []string `protobuf:"bytes,2,rep,name=workspaceIds,proto3" json:"workspaceIds,omitempty"` } -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_8261c968b2e6f45c, []int{0, 8, 0, 0} +func (m *RpcWorkspaceGetAllResponse) Reset() { *m = RpcWorkspaceGetAllResponse{} } +func (m *RpcWorkspaceGetAllResponse) String() string { return proto.CompactTextString(m) } +func (*RpcWorkspaceGetAllResponse) ProtoMessage() {} +func (*RpcWorkspaceGetAllResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 1, 1} } -func (m *RpcVersionGetRequest) XXX_Unmarshal(b []byte) error { +func (m *RpcWorkspaceGetAllResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcVersionGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcWorkspaceGetAllResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcVersionGetRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcWorkspaceGetAllResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -24884,95 +7275,49 @@ func (m *RpcVersionGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte return b[:n], nil } } -func (m *RpcVersionGetRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcVersionGetRequest.Merge(m, src) +func (m *RpcWorkspaceGetAllResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcWorkspaceGetAllResponse.Merge(m, src) } -func (m *RpcVersionGetRequest) XXX_Size() int { +func (m *RpcWorkspaceGetAllResponse) XXX_Size() int { return m.Size() } -func (m *RpcVersionGetRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcVersionGetRequest.DiscardUnknown(m) +func (m *RpcWorkspaceGetAllResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcWorkspaceGetAllResponse.DiscardUnknown(m) } -var xxx_messageInfo_RpcVersionGetRequest proto.InternalMessageInfo +var xxx_messageInfo_RpcWorkspaceGetAllResponse proto.InternalMessageInfo -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"` - Details string `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"` -} - -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_8261c968b2e6f45c, []int{0, 8, 0, 1} -} -func (m *RpcVersionGetResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcVersionGetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcVersionGetResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcVersionGetResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcVersionGetResponse.Merge(m, src) -} -func (m *RpcVersionGetResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcVersionGetResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcVersionGetResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcVersionGetResponse proto.InternalMessageInfo - -func (m *RpcVersionGetResponse) GetError() *RpcVersionGetResponseError { +func (m *RpcWorkspaceGetAllResponse) GetError() *RpcWorkspaceGetAllResponseError { if m != nil { return m.Error } return nil } -func (m *RpcVersionGetResponse) GetVersion() string { +func (m *RpcWorkspaceGetAllResponse) GetWorkspaceIds() []string { if m != nil { - return m.Version + return m.WorkspaceIds } - return "" + return nil } -func (m *RpcVersionGetResponse) GetDetails() string { - if m != nil { - return m.Details - } - return "" +type RpcWorkspaceGetAllResponseError struct { + Code RpcWorkspaceGetAllResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcWorkspaceGetAllResponseErrorCode" 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 *RpcWorkspaceGetAllResponseError) Reset() { *m = RpcWorkspaceGetAllResponseError{} } +func (m *RpcWorkspaceGetAllResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcWorkspaceGetAllResponseError) ProtoMessage() {} +func (*RpcWorkspaceGetAllResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 1, 1, 0} } - -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_8261c968b2e6f45c, []int{0, 8, 0, 1, 0} -} -func (m *RpcVersionGetResponseError) XXX_Unmarshal(b []byte) error { +func (m *RpcWorkspaceGetAllResponseError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcVersionGetResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcWorkspaceGetAllResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcVersionGetResponseError.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcWorkspaceGetAllResponseError.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -24982,26 +7327,10809 @@ func (m *RpcVersionGetResponseError) XXX_Marshal(b []byte, deterministic bool) ( return b[:n], nil } } -func (m *RpcVersionGetResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcVersionGetResponseError.Merge(m, src) +func (m *RpcWorkspaceGetAllResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcWorkspaceGetAllResponseError.Merge(m, src) } -func (m *RpcVersionGetResponseError) XXX_Size() int { +func (m *RpcWorkspaceGetAllResponseError) XXX_Size() int { return m.Size() } -func (m *RpcVersionGetResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcVersionGetResponseError.DiscardUnknown(m) +func (m *RpcWorkspaceGetAllResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcWorkspaceGetAllResponseError.DiscardUnknown(m) } -var xxx_messageInfo_RpcVersionGetResponseError proto.InternalMessageInfo +var xxx_messageInfo_RpcWorkspaceGetAllResponseError proto.InternalMessageInfo -func (m *RpcVersionGetResponseError) GetCode() RpcVersionGetResponseErrorCode { +func (m *RpcWorkspaceGetAllResponseError) GetCode() RpcWorkspaceGetAllResponseErrorCode { if m != nil { return m.Code } - return RpcVersionGetResponseError_NULL + return RpcWorkspaceGetAllResponseError_NULL } -func (m *RpcVersionGetResponseError) GetDescription() string { +func (m *RpcWorkspaceGetAllResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcWorkspaceCreate struct { +} + +func (m *RpcWorkspaceCreate) Reset() { *m = RpcWorkspaceCreate{} } +func (m *RpcWorkspaceCreate) String() string { return proto.CompactTextString(m) } +func (*RpcWorkspaceCreate) ProtoMessage() {} +func (*RpcWorkspaceCreate) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 2} +} +func (m *RpcWorkspaceCreate) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcWorkspaceCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcWorkspaceCreate.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcWorkspaceCreate) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcWorkspaceCreate.Merge(m, src) +} +func (m *RpcWorkspaceCreate) XXX_Size() int { + return m.Size() +} +func (m *RpcWorkspaceCreate) XXX_DiscardUnknown() { + xxx_messageInfo_RpcWorkspaceCreate.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcWorkspaceCreate proto.InternalMessageInfo + +type RpcWorkspaceCreateRequest struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` +} + +func (m *RpcWorkspaceCreateRequest) Reset() { *m = RpcWorkspaceCreateRequest{} } +func (m *RpcWorkspaceCreateRequest) String() string { return proto.CompactTextString(m) } +func (*RpcWorkspaceCreateRequest) ProtoMessage() {} +func (*RpcWorkspaceCreateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 2, 0} +} +func (m *RpcWorkspaceCreateRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcWorkspaceCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcWorkspaceCreateRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcWorkspaceCreateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcWorkspaceCreateRequest.Merge(m, src) +} +func (m *RpcWorkspaceCreateRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcWorkspaceCreateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcWorkspaceCreateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcWorkspaceCreateRequest proto.InternalMessageInfo + +func (m *RpcWorkspaceCreateRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +type RpcWorkspaceCreateResponse struct { + Error *RpcWorkspaceCreateResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + WorkspaceId string `protobuf:"bytes,2,opt,name=workspaceId,proto3" json:"workspaceId,omitempty"` +} + +func (m *RpcWorkspaceCreateResponse) Reset() { *m = RpcWorkspaceCreateResponse{} } +func (m *RpcWorkspaceCreateResponse) String() string { return proto.CompactTextString(m) } +func (*RpcWorkspaceCreateResponse) ProtoMessage() {} +func (*RpcWorkspaceCreateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 2, 1} +} +func (m *RpcWorkspaceCreateResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcWorkspaceCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcWorkspaceCreateResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcWorkspaceCreateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcWorkspaceCreateResponse.Merge(m, src) +} +func (m *RpcWorkspaceCreateResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcWorkspaceCreateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcWorkspaceCreateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcWorkspaceCreateResponse proto.InternalMessageInfo + +func (m *RpcWorkspaceCreateResponse) GetError() *RpcWorkspaceCreateResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcWorkspaceCreateResponse) GetWorkspaceId() string { + if m != nil { + return m.WorkspaceId + } + return "" +} + +type RpcWorkspaceCreateResponseError struct { + Code RpcWorkspaceCreateResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcWorkspaceCreateResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcWorkspaceCreateResponseError) Reset() { *m = RpcWorkspaceCreateResponseError{} } +func (m *RpcWorkspaceCreateResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcWorkspaceCreateResponseError) ProtoMessage() {} +func (*RpcWorkspaceCreateResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 2, 1, 0} +} +func (m *RpcWorkspaceCreateResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcWorkspaceCreateResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcWorkspaceCreateResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcWorkspaceCreateResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcWorkspaceCreateResponseError.Merge(m, src) +} +func (m *RpcWorkspaceCreateResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcWorkspaceCreateResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcWorkspaceCreateResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcWorkspaceCreateResponseError proto.InternalMessageInfo + +func (m *RpcWorkspaceCreateResponseError) GetCode() RpcWorkspaceCreateResponseErrorCode { + if m != nil { + return m.Code + } + return RpcWorkspaceCreateResponseError_NULL +} + +func (m *RpcWorkspaceCreateResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcWorkspaceSetIsHighlighted struct { +} + +func (m *RpcWorkspaceSetIsHighlighted) Reset() { *m = RpcWorkspaceSetIsHighlighted{} } +func (m *RpcWorkspaceSetIsHighlighted) String() string { return proto.CompactTextString(m) } +func (*RpcWorkspaceSetIsHighlighted) ProtoMessage() {} +func (*RpcWorkspaceSetIsHighlighted) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 3} +} +func (m *RpcWorkspaceSetIsHighlighted) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcWorkspaceSetIsHighlighted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcWorkspaceSetIsHighlighted.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcWorkspaceSetIsHighlighted) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcWorkspaceSetIsHighlighted.Merge(m, src) +} +func (m *RpcWorkspaceSetIsHighlighted) XXX_Size() int { + return m.Size() +} +func (m *RpcWorkspaceSetIsHighlighted) XXX_DiscardUnknown() { + xxx_messageInfo_RpcWorkspaceSetIsHighlighted.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcWorkspaceSetIsHighlighted proto.InternalMessageInfo + +type RpcWorkspaceSetIsHighlightedRequest struct { + ObjectId string `protobuf:"bytes,1,opt,name=objectId,proto3" json:"objectId,omitempty"` + IsHighlighted bool `protobuf:"varint,2,opt,name=isHighlighted,proto3" json:"isHighlighted,omitempty"` +} + +func (m *RpcWorkspaceSetIsHighlightedRequest) Reset() { *m = RpcWorkspaceSetIsHighlightedRequest{} } +func (m *RpcWorkspaceSetIsHighlightedRequest) String() string { return proto.CompactTextString(m) } +func (*RpcWorkspaceSetIsHighlightedRequest) ProtoMessage() {} +func (*RpcWorkspaceSetIsHighlightedRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 3, 0} +} +func (m *RpcWorkspaceSetIsHighlightedRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcWorkspaceSetIsHighlightedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcWorkspaceSetIsHighlightedRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcWorkspaceSetIsHighlightedRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcWorkspaceSetIsHighlightedRequest.Merge(m, src) +} +func (m *RpcWorkspaceSetIsHighlightedRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcWorkspaceSetIsHighlightedRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcWorkspaceSetIsHighlightedRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcWorkspaceSetIsHighlightedRequest proto.InternalMessageInfo + +func (m *RpcWorkspaceSetIsHighlightedRequest) GetObjectId() string { + if m != nil { + return m.ObjectId + } + return "" +} + +func (m *RpcWorkspaceSetIsHighlightedRequest) GetIsHighlighted() bool { + if m != nil { + return m.IsHighlighted + } + return false +} + +type RpcWorkspaceSetIsHighlightedResponse struct { + Error *RpcWorkspaceSetIsHighlightedResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +} + +func (m *RpcWorkspaceSetIsHighlightedResponse) Reset() { *m = RpcWorkspaceSetIsHighlightedResponse{} } +func (m *RpcWorkspaceSetIsHighlightedResponse) String() string { return proto.CompactTextString(m) } +func (*RpcWorkspaceSetIsHighlightedResponse) ProtoMessage() {} +func (*RpcWorkspaceSetIsHighlightedResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 3, 1} +} +func (m *RpcWorkspaceSetIsHighlightedResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcWorkspaceSetIsHighlightedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcWorkspaceSetIsHighlightedResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcWorkspaceSetIsHighlightedResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcWorkspaceSetIsHighlightedResponse.Merge(m, src) +} +func (m *RpcWorkspaceSetIsHighlightedResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcWorkspaceSetIsHighlightedResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcWorkspaceSetIsHighlightedResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcWorkspaceSetIsHighlightedResponse proto.InternalMessageInfo + +func (m *RpcWorkspaceSetIsHighlightedResponse) GetError() *RpcWorkspaceSetIsHighlightedResponseError { + if m != nil { + return m.Error + } + return nil +} + +type RpcWorkspaceSetIsHighlightedResponseError struct { + Code RpcWorkspaceSetIsHighlightedResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcWorkspaceSetIsHighlightedResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcWorkspaceSetIsHighlightedResponseError) Reset() { + *m = RpcWorkspaceSetIsHighlightedResponseError{} +} +func (m *RpcWorkspaceSetIsHighlightedResponseError) String() string { + return proto.CompactTextString(m) +} +func (*RpcWorkspaceSetIsHighlightedResponseError) ProtoMessage() {} +func (*RpcWorkspaceSetIsHighlightedResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 3, 1, 0} +} +func (m *RpcWorkspaceSetIsHighlightedResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcWorkspaceSetIsHighlightedResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcWorkspaceSetIsHighlightedResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcWorkspaceSetIsHighlightedResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcWorkspaceSetIsHighlightedResponseError.Merge(m, src) +} +func (m *RpcWorkspaceSetIsHighlightedResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcWorkspaceSetIsHighlightedResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcWorkspaceSetIsHighlightedResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcWorkspaceSetIsHighlightedResponseError proto.InternalMessageInfo + +func (m *RpcWorkspaceSetIsHighlightedResponseError) GetCode() RpcWorkspaceSetIsHighlightedResponseErrorCode { + if m != nil { + return m.Code + } + return RpcWorkspaceSetIsHighlightedResponseError_NULL +} + +func (m *RpcWorkspaceSetIsHighlightedResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcWorkspaceSelect struct { +} + +func (m *RpcWorkspaceSelect) Reset() { *m = RpcWorkspaceSelect{} } +func (m *RpcWorkspaceSelect) String() string { return proto.CompactTextString(m) } +func (*RpcWorkspaceSelect) ProtoMessage() {} +func (*RpcWorkspaceSelect) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 4} +} +func (m *RpcWorkspaceSelect) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcWorkspaceSelect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcWorkspaceSelect.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcWorkspaceSelect) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcWorkspaceSelect.Merge(m, src) +} +func (m *RpcWorkspaceSelect) XXX_Size() int { + return m.Size() +} +func (m *RpcWorkspaceSelect) XXX_DiscardUnknown() { + xxx_messageInfo_RpcWorkspaceSelect.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcWorkspaceSelect proto.InternalMessageInfo + +type RpcWorkspaceSelectRequest struct { + WorkspaceId string `protobuf:"bytes,1,opt,name=workspaceId,proto3" json:"workspaceId,omitempty"` +} + +func (m *RpcWorkspaceSelectRequest) Reset() { *m = RpcWorkspaceSelectRequest{} } +func (m *RpcWorkspaceSelectRequest) String() string { return proto.CompactTextString(m) } +func (*RpcWorkspaceSelectRequest) ProtoMessage() {} +func (*RpcWorkspaceSelectRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 4, 0} +} +func (m *RpcWorkspaceSelectRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcWorkspaceSelectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcWorkspaceSelectRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcWorkspaceSelectRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcWorkspaceSelectRequest.Merge(m, src) +} +func (m *RpcWorkspaceSelectRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcWorkspaceSelectRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcWorkspaceSelectRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcWorkspaceSelectRequest proto.InternalMessageInfo + +func (m *RpcWorkspaceSelectRequest) GetWorkspaceId() string { + if m != nil { + return m.WorkspaceId + } + return "" +} + +type RpcWorkspaceSelectResponse struct { + Error *RpcWorkspaceSelectResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +} + +func (m *RpcWorkspaceSelectResponse) Reset() { *m = RpcWorkspaceSelectResponse{} } +func (m *RpcWorkspaceSelectResponse) String() string { return proto.CompactTextString(m) } +func (*RpcWorkspaceSelectResponse) ProtoMessage() {} +func (*RpcWorkspaceSelectResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 4, 1} +} +func (m *RpcWorkspaceSelectResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcWorkspaceSelectResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcWorkspaceSelectResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcWorkspaceSelectResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcWorkspaceSelectResponse.Merge(m, src) +} +func (m *RpcWorkspaceSelectResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcWorkspaceSelectResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcWorkspaceSelectResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcWorkspaceSelectResponse proto.InternalMessageInfo + +func (m *RpcWorkspaceSelectResponse) GetError() *RpcWorkspaceSelectResponseError { + if m != nil { + return m.Error + } + return nil +} + +type RpcWorkspaceSelectResponseError struct { + Code RpcWorkspaceSelectResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcWorkspaceSelectResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcWorkspaceSelectResponseError) Reset() { *m = RpcWorkspaceSelectResponseError{} } +func (m *RpcWorkspaceSelectResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcWorkspaceSelectResponseError) ProtoMessage() {} +func (*RpcWorkspaceSelectResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 4, 1, 0} +} +func (m *RpcWorkspaceSelectResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcWorkspaceSelectResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcWorkspaceSelectResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcWorkspaceSelectResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcWorkspaceSelectResponseError.Merge(m, src) +} +func (m *RpcWorkspaceSelectResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcWorkspaceSelectResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcWorkspaceSelectResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcWorkspaceSelectResponseError proto.InternalMessageInfo + +func (m *RpcWorkspaceSelectResponseError) GetCode() RpcWorkspaceSelectResponseErrorCode { + if m != nil { + return m.Code + } + return RpcWorkspaceSelectResponseError_NULL +} + +func (m *RpcWorkspaceSelectResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcWorkspaceExport struct { +} + +func (m *RpcWorkspaceExport) Reset() { *m = RpcWorkspaceExport{} } +func (m *RpcWorkspaceExport) String() string { return proto.CompactTextString(m) } +func (*RpcWorkspaceExport) ProtoMessage() {} +func (*RpcWorkspaceExport) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 5} +} +func (m *RpcWorkspaceExport) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcWorkspaceExport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcWorkspaceExport.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcWorkspaceExport) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcWorkspaceExport.Merge(m, src) +} +func (m *RpcWorkspaceExport) XXX_Size() int { + return m.Size() +} +func (m *RpcWorkspaceExport) XXX_DiscardUnknown() { + xxx_messageInfo_RpcWorkspaceExport.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcWorkspaceExport proto.InternalMessageInfo + +type RpcWorkspaceExportRequest struct { + // the path where export files will place + Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` + WorkspaceId string `protobuf:"bytes,2,opt,name=workspaceId,proto3" json:"workspaceId,omitempty"` +} + +func (m *RpcWorkspaceExportRequest) Reset() { *m = RpcWorkspaceExportRequest{} } +func (m *RpcWorkspaceExportRequest) String() string { return proto.CompactTextString(m) } +func (*RpcWorkspaceExportRequest) ProtoMessage() {} +func (*RpcWorkspaceExportRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 5, 0} +} +func (m *RpcWorkspaceExportRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcWorkspaceExportRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcWorkspaceExportRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcWorkspaceExportRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcWorkspaceExportRequest.Merge(m, src) +} +func (m *RpcWorkspaceExportRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcWorkspaceExportRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcWorkspaceExportRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcWorkspaceExportRequest proto.InternalMessageInfo + +func (m *RpcWorkspaceExportRequest) GetPath() string { + if m != nil { + return m.Path + } + return "" +} + +func (m *RpcWorkspaceExportRequest) GetWorkspaceId() string { + if m != nil { + return m.WorkspaceId + } + return "" +} + +type RpcWorkspaceExportResponse struct { + Error *RpcWorkspaceExportResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` + Event *ResponseEvent `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcWorkspaceExportResponse) Reset() { *m = RpcWorkspaceExportResponse{} } +func (m *RpcWorkspaceExportResponse) String() string { return proto.CompactTextString(m) } +func (*RpcWorkspaceExportResponse) ProtoMessage() {} +func (*RpcWorkspaceExportResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 5, 1} +} +func (m *RpcWorkspaceExportResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcWorkspaceExportResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcWorkspaceExportResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcWorkspaceExportResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcWorkspaceExportResponse.Merge(m, src) +} +func (m *RpcWorkspaceExportResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcWorkspaceExportResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcWorkspaceExportResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcWorkspaceExportResponse proto.InternalMessageInfo + +func (m *RpcWorkspaceExportResponse) GetError() *RpcWorkspaceExportResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcWorkspaceExportResponse) GetPath() string { + if m != nil { + return m.Path + } + return "" +} + +func (m *RpcWorkspaceExportResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcWorkspaceExportResponseError struct { + Code RpcWorkspaceExportResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcWorkspaceExportResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcWorkspaceExportResponseError) Reset() { *m = RpcWorkspaceExportResponseError{} } +func (m *RpcWorkspaceExportResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcWorkspaceExportResponseError) ProtoMessage() {} +func (*RpcWorkspaceExportResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 3, 5, 1, 0} +} +func (m *RpcWorkspaceExportResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcWorkspaceExportResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcWorkspaceExportResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcWorkspaceExportResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcWorkspaceExportResponseError.Merge(m, src) +} +func (m *RpcWorkspaceExportResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcWorkspaceExportResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcWorkspaceExportResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcWorkspaceExportResponseError proto.InternalMessageInfo + +func (m *RpcWorkspaceExportResponseError) GetCode() RpcWorkspaceExportResponseErrorCode { + if m != nil { + return m.Code + } + return RpcWorkspaceExportResponseError_NULL +} + +func (m *RpcWorkspaceExportResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcObject struct { +} + +func (m *RpcObject) Reset() { *m = RpcObject{} } +func (m *RpcObject) String() string { return proto.CompactTextString(m) } +func (*RpcObject) ProtoMessage() {} +func (*RpcObject) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4} +} +func (m *RpcObject) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObject.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObject) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObject.Merge(m, src) +} +func (m *RpcObject) XXX_Size() int { + return m.Size() +} +func (m *RpcObject) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObject.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObject proto.InternalMessageInfo + +type RpcObjectOpen struct { +} + +func (m *RpcObjectOpen) Reset() { *m = RpcObjectOpen{} } +func (m *RpcObjectOpen) String() string { return proto.CompactTextString(m) } +func (*RpcObjectOpen) ProtoMessage() {} +func (*RpcObjectOpen) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 0} +} +func (m *RpcObjectOpen) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectOpen) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectOpen.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectOpen) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectOpen.Merge(m, src) +} +func (m *RpcObjectOpen) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectOpen) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectOpen.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectOpen proto.InternalMessageInfo + +type RpcObjectOpenRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + ObjectId string `protobuf:"bytes,2,opt,name=objectId,proto3" json:"objectId,omitempty"` + TraceId string `protobuf:"bytes,3,opt,name=traceId,proto3" json:"traceId,omitempty"` +} + +func (m *RpcObjectOpenRequest) Reset() { *m = RpcObjectOpenRequest{} } +func (m *RpcObjectOpenRequest) String() string { return proto.CompactTextString(m) } +func (*RpcObjectOpenRequest) ProtoMessage() {} +func (*RpcObjectOpenRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 0, 0} +} +func (m *RpcObjectOpenRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectOpenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectOpenRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectOpenRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectOpenRequest.Merge(m, src) +} +func (m *RpcObjectOpenRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectOpenRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectOpenRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectOpenRequest proto.InternalMessageInfo + +func (m *RpcObjectOpenRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcObjectOpenRequest) GetObjectId() string { + if m != nil { + return m.ObjectId + } + return "" +} + +func (m *RpcObjectOpenRequest) GetTraceId() string { + if m != nil { + return m.TraceId + } + return "" +} + +type RpcObjectOpenResponse struct { + Error *RpcObjectOpenResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcObjectOpenResponse) Reset() { *m = RpcObjectOpenResponse{} } +func (m *RpcObjectOpenResponse) String() string { return proto.CompactTextString(m) } +func (*RpcObjectOpenResponse) ProtoMessage() {} +func (*RpcObjectOpenResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 0, 1} +} +func (m *RpcObjectOpenResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectOpenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectOpenResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectOpenResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectOpenResponse.Merge(m, src) +} +func (m *RpcObjectOpenResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectOpenResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectOpenResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectOpenResponse proto.InternalMessageInfo + +func (m *RpcObjectOpenResponse) GetError() *RpcObjectOpenResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcObjectOpenResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcObjectOpenResponseError struct { + Code RpcObjectOpenResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectOpenResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcObjectOpenResponseError) Reset() { *m = RpcObjectOpenResponseError{} } +func (m *RpcObjectOpenResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcObjectOpenResponseError) ProtoMessage() {} +func (*RpcObjectOpenResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 0, 1, 0} +} +func (m *RpcObjectOpenResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectOpenResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectOpenResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectOpenResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectOpenResponseError.Merge(m, src) +} +func (m *RpcObjectOpenResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectOpenResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectOpenResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectOpenResponseError proto.InternalMessageInfo + +func (m *RpcObjectOpenResponseError) GetCode() RpcObjectOpenResponseErrorCode { + if m != nil { + return m.Code + } + return RpcObjectOpenResponseError_NULL +} + +func (m *RpcObjectOpenResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcObjectClose struct { +} + +func (m *RpcObjectClose) Reset() { *m = RpcObjectClose{} } +func (m *RpcObjectClose) String() string { return proto.CompactTextString(m) } +func (*RpcObjectClose) ProtoMessage() {} +func (*RpcObjectClose) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 1} +} +func (m *RpcObjectClose) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectClose) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectClose.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectClose) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectClose.Merge(m, src) +} +func (m *RpcObjectClose) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectClose) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectClose.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectClose proto.InternalMessageInfo + +type RpcObjectCloseRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + ObjectId string `protobuf:"bytes,2,opt,name=objectId,proto3" json:"objectId,omitempty"` +} + +func (m *RpcObjectCloseRequest) Reset() { *m = RpcObjectCloseRequest{} } +func (m *RpcObjectCloseRequest) String() string { return proto.CompactTextString(m) } +func (*RpcObjectCloseRequest) ProtoMessage() {} +func (*RpcObjectCloseRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 1, 0} +} +func (m *RpcObjectCloseRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectCloseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectCloseRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectCloseRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectCloseRequest.Merge(m, src) +} +func (m *RpcObjectCloseRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectCloseRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectCloseRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectCloseRequest proto.InternalMessageInfo + +func (m *RpcObjectCloseRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcObjectCloseRequest) GetObjectId() string { + if m != nil { + return m.ObjectId + } + return "" +} + +type RpcObjectCloseResponse struct { + Error *RpcObjectCloseResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +} + +func (m *RpcObjectCloseResponse) Reset() { *m = RpcObjectCloseResponse{} } +func (m *RpcObjectCloseResponse) String() string { return proto.CompactTextString(m) } +func (*RpcObjectCloseResponse) ProtoMessage() {} +func (*RpcObjectCloseResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 1, 1} +} +func (m *RpcObjectCloseResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectCloseResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectCloseResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectCloseResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectCloseResponse.Merge(m, src) +} +func (m *RpcObjectCloseResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectCloseResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectCloseResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectCloseResponse proto.InternalMessageInfo + +func (m *RpcObjectCloseResponse) GetError() *RpcObjectCloseResponseError { + if m != nil { + return m.Error + } + return nil +} + +type RpcObjectCloseResponseError struct { + Code RpcObjectCloseResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectCloseResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcObjectCloseResponseError) Reset() { *m = RpcObjectCloseResponseError{} } +func (m *RpcObjectCloseResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcObjectCloseResponseError) ProtoMessage() {} +func (*RpcObjectCloseResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 1, 1, 0} +} +func (m *RpcObjectCloseResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectCloseResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectCloseResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectCloseResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectCloseResponseError.Merge(m, src) +} +func (m *RpcObjectCloseResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectCloseResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectCloseResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectCloseResponseError proto.InternalMessageInfo + +func (m *RpcObjectCloseResponseError) GetCode() RpcObjectCloseResponseErrorCode { + if m != nil { + return m.Code + } + return RpcObjectCloseResponseError_NULL +} + +func (m *RpcObjectCloseResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcObjectShow struct { +} + +func (m *RpcObjectShow) Reset() { *m = RpcObjectShow{} } +func (m *RpcObjectShow) String() string { return proto.CompactTextString(m) } +func (*RpcObjectShow) ProtoMessage() {} +func (*RpcObjectShow) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 2} +} +func (m *RpcObjectShow) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectShow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectShow.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectShow) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectShow.Merge(m, src) +} +func (m *RpcObjectShow) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectShow) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectShow.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectShow proto.InternalMessageInfo + +type RpcObjectShowRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + ObjectId string `protobuf:"bytes,2,opt,name=objectId,proto3" json:"objectId,omitempty"` + TraceId string `protobuf:"bytes,3,opt,name=traceId,proto3" json:"traceId,omitempty"` +} + +func (m *RpcObjectShowRequest) Reset() { *m = RpcObjectShowRequest{} } +func (m *RpcObjectShowRequest) String() string { return proto.CompactTextString(m) } +func (*RpcObjectShowRequest) ProtoMessage() {} +func (*RpcObjectShowRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 2, 0} +} +func (m *RpcObjectShowRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectShowRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectShowRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectShowRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectShowRequest.Merge(m, src) +} +func (m *RpcObjectShowRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectShowRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectShowRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectShowRequest proto.InternalMessageInfo + +func (m *RpcObjectShowRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcObjectShowRequest) GetObjectId() string { + if m != nil { + return m.ObjectId + } + return "" +} + +func (m *RpcObjectShowRequest) GetTraceId() string { + if m != nil { + return m.TraceId + } + return "" +} + +type RpcObjectShowResponse struct { + Error *RpcObjectShowResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcObjectShowResponse) Reset() { *m = RpcObjectShowResponse{} } +func (m *RpcObjectShowResponse) String() string { return proto.CompactTextString(m) } +func (*RpcObjectShowResponse) ProtoMessage() {} +func (*RpcObjectShowResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 2, 1} +} +func (m *RpcObjectShowResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectShowResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectShowResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectShowResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectShowResponse.Merge(m, src) +} +func (m *RpcObjectShowResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectShowResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectShowResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectShowResponse proto.InternalMessageInfo + +func (m *RpcObjectShowResponse) GetError() *RpcObjectShowResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcObjectShowResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcObjectShowResponseError struct { + Code RpcObjectShowResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectShowResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcObjectShowResponseError) Reset() { *m = RpcObjectShowResponseError{} } +func (m *RpcObjectShowResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcObjectShowResponseError) ProtoMessage() {} +func (*RpcObjectShowResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 2, 1, 0} +} +func (m *RpcObjectShowResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectShowResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectShowResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectShowResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectShowResponseError.Merge(m, src) +} +func (m *RpcObjectShowResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectShowResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectShowResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectShowResponseError proto.InternalMessageInfo + +func (m *RpcObjectShowResponseError) GetCode() RpcObjectShowResponseErrorCode { + if m != nil { + return m.Code + } + return RpcObjectShowResponseError_NULL +} + +func (m *RpcObjectShowResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcObjectCreate struct { +} + +func (m *RpcObjectCreate) Reset() { *m = RpcObjectCreate{} } +func (m *RpcObjectCreate) String() string { return proto.CompactTextString(m) } +func (*RpcObjectCreate) ProtoMessage() {} +func (*RpcObjectCreate) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 3} +} +func (m *RpcObjectCreate) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectCreate.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectCreate) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectCreate.Merge(m, src) +} +func (m *RpcObjectCreate) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectCreate) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectCreate.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectCreate proto.InternalMessageInfo + +type RpcObjectCreateRequest struct { + Details *types.Struct `protobuf:"bytes,1,opt,name=details,proto3" json:"details,omitempty"` +} + +func (m *RpcObjectCreateRequest) Reset() { *m = RpcObjectCreateRequest{} } +func (m *RpcObjectCreateRequest) String() string { return proto.CompactTextString(m) } +func (*RpcObjectCreateRequest) ProtoMessage() {} +func (*RpcObjectCreateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 3, 0} +} +func (m *RpcObjectCreateRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectCreateRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectCreateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectCreateRequest.Merge(m, src) +} +func (m *RpcObjectCreateRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectCreateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectCreateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectCreateRequest proto.InternalMessageInfo + +func (m *RpcObjectCreateRequest) GetDetails() *types.Struct { + if m != nil { + return m.Details + } + return nil +} + +type RpcObjectCreateResponse struct { + Error *RpcObjectCreateResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + PageId string `protobuf:"bytes,3,opt,name=pageId,proto3" json:"pageId,omitempty"` + Event *ResponseEvent `protobuf:"bytes,4,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcObjectCreateResponse) Reset() { *m = RpcObjectCreateResponse{} } +func (m *RpcObjectCreateResponse) String() string { return proto.CompactTextString(m) } +func (*RpcObjectCreateResponse) ProtoMessage() {} +func (*RpcObjectCreateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 3, 1} +} +func (m *RpcObjectCreateResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectCreateResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectCreateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectCreateResponse.Merge(m, src) +} +func (m *RpcObjectCreateResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectCreateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectCreateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectCreateResponse proto.InternalMessageInfo + +func (m *RpcObjectCreateResponse) GetError() *RpcObjectCreateResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcObjectCreateResponse) GetPageId() string { + if m != nil { + return m.PageId + } + return "" +} + +func (m *RpcObjectCreateResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcObjectCreateResponseError struct { + Code RpcObjectCreateResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectCreateResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcObjectCreateResponseError) Reset() { *m = RpcObjectCreateResponseError{} } +func (m *RpcObjectCreateResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcObjectCreateResponseError) ProtoMessage() {} +func (*RpcObjectCreateResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 3, 1, 0} +} +func (m *RpcObjectCreateResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectCreateResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectCreateResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectCreateResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectCreateResponseError.Merge(m, src) +} +func (m *RpcObjectCreateResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectCreateResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectCreateResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectCreateResponseError proto.InternalMessageInfo + +func (m *RpcObjectCreateResponseError) GetCode() RpcObjectCreateResponseErrorCode { + if m != nil { + return m.Code + } + return RpcObjectCreateResponseError_NULL +} + +func (m *RpcObjectCreateResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcObjectCreateSet struct { +} + +func (m *RpcObjectCreateSet) Reset() { *m = RpcObjectCreateSet{} } +func (m *RpcObjectCreateSet) String() string { return proto.CompactTextString(m) } +func (*RpcObjectCreateSet) ProtoMessage() {} +func (*RpcObjectCreateSet) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 4} +} +func (m *RpcObjectCreateSet) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectCreateSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectCreateSet.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectCreateSet) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectCreateSet.Merge(m, src) +} +func (m *RpcObjectCreateSet) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectCreateSet) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectCreateSet.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectCreateSet proto.InternalMessageInfo + +type RpcObjectCreateSetRequest struct { + Source []string `protobuf:"bytes,1,rep,name=source,proto3" json:"source,omitempty"` + Details *types.Struct `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"` + TemplateId string `protobuf:"bytes,3,opt,name=templateId,proto3" json:"templateId,omitempty"` +} + +func (m *RpcObjectCreateSetRequest) Reset() { *m = RpcObjectCreateSetRequest{} } +func (m *RpcObjectCreateSetRequest) String() string { return proto.CompactTextString(m) } +func (*RpcObjectCreateSetRequest) ProtoMessage() {} +func (*RpcObjectCreateSetRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 4, 0} +} +func (m *RpcObjectCreateSetRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectCreateSetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectCreateSetRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectCreateSetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectCreateSetRequest.Merge(m, src) +} +func (m *RpcObjectCreateSetRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectCreateSetRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectCreateSetRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectCreateSetRequest proto.InternalMessageInfo + +func (m *RpcObjectCreateSetRequest) GetSource() []string { + if m != nil { + return m.Source + } + return nil +} + +func (m *RpcObjectCreateSetRequest) GetDetails() *types.Struct { + if m != nil { + return m.Details + } + return nil +} + +func (m *RpcObjectCreateSetRequest) GetTemplateId() string { + if m != nil { + return m.TemplateId + } + return "" +} + +type RpcObjectCreateSetResponse struct { + Error *RpcObjectCreateSetResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` + Event *ResponseEvent `protobuf:"bytes,4,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcObjectCreateSetResponse) Reset() { *m = RpcObjectCreateSetResponse{} } +func (m *RpcObjectCreateSetResponse) String() string { return proto.CompactTextString(m) } +func (*RpcObjectCreateSetResponse) ProtoMessage() {} +func (*RpcObjectCreateSetResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 4, 1} +} +func (m *RpcObjectCreateSetResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectCreateSetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectCreateSetResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectCreateSetResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectCreateSetResponse.Merge(m, src) +} +func (m *RpcObjectCreateSetResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectCreateSetResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectCreateSetResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectCreateSetResponse proto.InternalMessageInfo + +func (m *RpcObjectCreateSetResponse) GetError() *RpcObjectCreateSetResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcObjectCreateSetResponse) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *RpcObjectCreateSetResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcObjectCreateSetResponseError struct { + Code RpcObjectCreateSetResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectCreateSetResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcObjectCreateSetResponseError) Reset() { *m = RpcObjectCreateSetResponseError{} } +func (m *RpcObjectCreateSetResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcObjectCreateSetResponseError) ProtoMessage() {} +func (*RpcObjectCreateSetResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 4, 1, 0} +} +func (m *RpcObjectCreateSetResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectCreateSetResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectCreateSetResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectCreateSetResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectCreateSetResponseError.Merge(m, src) +} +func (m *RpcObjectCreateSetResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectCreateSetResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectCreateSetResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectCreateSetResponseError proto.InternalMessageInfo + +func (m *RpcObjectCreateSetResponseError) GetCode() RpcObjectCreateSetResponseErrorCode { + if m != nil { + return m.Code + } + return RpcObjectCreateSetResponseError_NULL +} + +func (m *RpcObjectCreateSetResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcObjectDuplicate struct { +} + +func (m *RpcObjectDuplicate) Reset() { *m = RpcObjectDuplicate{} } +func (m *RpcObjectDuplicate) String() string { return proto.CompactTextString(m) } +func (*RpcObjectDuplicate) ProtoMessage() {} +func (*RpcObjectDuplicate) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 5} +} +func (m *RpcObjectDuplicate) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectDuplicate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectDuplicate.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectDuplicate) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectDuplicate.Merge(m, src) +} +func (m *RpcObjectDuplicate) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectDuplicate) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectDuplicate.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectDuplicate proto.InternalMessageInfo + +type RpcObjectDuplicateRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` +} + +func (m *RpcObjectDuplicateRequest) Reset() { *m = RpcObjectDuplicateRequest{} } +func (m *RpcObjectDuplicateRequest) String() string { return proto.CompactTextString(m) } +func (*RpcObjectDuplicateRequest) ProtoMessage() {} +func (*RpcObjectDuplicateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 5, 0} +} +func (m *RpcObjectDuplicateRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectDuplicateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectDuplicateRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectDuplicateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectDuplicateRequest.Merge(m, src) +} +func (m *RpcObjectDuplicateRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectDuplicateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectDuplicateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectDuplicateRequest proto.InternalMessageInfo + +func (m *RpcObjectDuplicateRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +type RpcObjectDuplicateResponse struct { + Error *RpcObjectDuplicateResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + // created template id + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` +} + +func (m *RpcObjectDuplicateResponse) Reset() { *m = RpcObjectDuplicateResponse{} } +func (m *RpcObjectDuplicateResponse) String() string { return proto.CompactTextString(m) } +func (*RpcObjectDuplicateResponse) ProtoMessage() {} +func (*RpcObjectDuplicateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 5, 1} +} +func (m *RpcObjectDuplicateResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectDuplicateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectDuplicateResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectDuplicateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectDuplicateResponse.Merge(m, src) +} +func (m *RpcObjectDuplicateResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectDuplicateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectDuplicateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectDuplicateResponse proto.InternalMessageInfo + +func (m *RpcObjectDuplicateResponse) GetError() *RpcObjectDuplicateResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcObjectDuplicateResponse) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +type RpcObjectDuplicateResponseError struct { + Code RpcObjectDuplicateResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectDuplicateResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcObjectDuplicateResponseError) Reset() { *m = RpcObjectDuplicateResponseError{} } +func (m *RpcObjectDuplicateResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcObjectDuplicateResponseError) ProtoMessage() {} +func (*RpcObjectDuplicateResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 5, 1, 0} +} +func (m *RpcObjectDuplicateResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectDuplicateResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectDuplicateResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectDuplicateResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectDuplicateResponseError.Merge(m, src) +} +func (m *RpcObjectDuplicateResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectDuplicateResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectDuplicateResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectDuplicateResponseError proto.InternalMessageInfo + +func (m *RpcObjectDuplicateResponseError) GetCode() RpcObjectDuplicateResponseErrorCode { + if m != nil { + return m.Code + } + return RpcObjectDuplicateResponseError_NULL +} + +func (m *RpcObjectDuplicateResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcObjectOpenBreadcrumbs struct { +} + +func (m *RpcObjectOpenBreadcrumbs) Reset() { *m = RpcObjectOpenBreadcrumbs{} } +func (m *RpcObjectOpenBreadcrumbs) String() string { return proto.CompactTextString(m) } +func (*RpcObjectOpenBreadcrumbs) ProtoMessage() {} +func (*RpcObjectOpenBreadcrumbs) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 6} +} +func (m *RpcObjectOpenBreadcrumbs) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectOpenBreadcrumbs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectOpenBreadcrumbs.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectOpenBreadcrumbs) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectOpenBreadcrumbs.Merge(m, src) +} +func (m *RpcObjectOpenBreadcrumbs) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectOpenBreadcrumbs) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectOpenBreadcrumbs.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectOpenBreadcrumbs proto.InternalMessageInfo + +type RpcObjectOpenBreadcrumbsRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + TraceId string `protobuf:"bytes,2,opt,name=traceId,proto3" json:"traceId,omitempty"` +} + +func (m *RpcObjectOpenBreadcrumbsRequest) Reset() { *m = RpcObjectOpenBreadcrumbsRequest{} } +func (m *RpcObjectOpenBreadcrumbsRequest) String() string { return proto.CompactTextString(m) } +func (*RpcObjectOpenBreadcrumbsRequest) ProtoMessage() {} +func (*RpcObjectOpenBreadcrumbsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 6, 0} +} +func (m *RpcObjectOpenBreadcrumbsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectOpenBreadcrumbsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectOpenBreadcrumbsRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectOpenBreadcrumbsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectOpenBreadcrumbsRequest.Merge(m, src) +} +func (m *RpcObjectOpenBreadcrumbsRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectOpenBreadcrumbsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectOpenBreadcrumbsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectOpenBreadcrumbsRequest proto.InternalMessageInfo + +func (m *RpcObjectOpenBreadcrumbsRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcObjectOpenBreadcrumbsRequest) GetTraceId() string { + if m != nil { + return m.TraceId + } + return "" +} + +type RpcObjectOpenBreadcrumbsResponse struct { + Error *RpcObjectOpenBreadcrumbsResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + ObjectId string `protobuf:"bytes,2,opt,name=objectId,proto3" json:"objectId,omitempty"` + Event *ResponseEvent `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcObjectOpenBreadcrumbsResponse) Reset() { *m = RpcObjectOpenBreadcrumbsResponse{} } +func (m *RpcObjectOpenBreadcrumbsResponse) String() string { return proto.CompactTextString(m) } +func (*RpcObjectOpenBreadcrumbsResponse) ProtoMessage() {} +func (*RpcObjectOpenBreadcrumbsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 6, 1} +} +func (m *RpcObjectOpenBreadcrumbsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectOpenBreadcrumbsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectOpenBreadcrumbsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectOpenBreadcrumbsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectOpenBreadcrumbsResponse.Merge(m, src) +} +func (m *RpcObjectOpenBreadcrumbsResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectOpenBreadcrumbsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectOpenBreadcrumbsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectOpenBreadcrumbsResponse proto.InternalMessageInfo + +func (m *RpcObjectOpenBreadcrumbsResponse) GetError() *RpcObjectOpenBreadcrumbsResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcObjectOpenBreadcrumbsResponse) GetObjectId() string { + if m != nil { + return m.ObjectId + } + return "" +} + +func (m *RpcObjectOpenBreadcrumbsResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcObjectOpenBreadcrumbsResponseError struct { + Code RpcObjectOpenBreadcrumbsResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectOpenBreadcrumbsResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcObjectOpenBreadcrumbsResponseError) Reset() { *m = RpcObjectOpenBreadcrumbsResponseError{} } +func (m *RpcObjectOpenBreadcrumbsResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcObjectOpenBreadcrumbsResponseError) ProtoMessage() {} +func (*RpcObjectOpenBreadcrumbsResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 6, 1, 0} +} +func (m *RpcObjectOpenBreadcrumbsResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectOpenBreadcrumbsResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectOpenBreadcrumbsResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectOpenBreadcrumbsResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectOpenBreadcrumbsResponseError.Merge(m, src) +} +func (m *RpcObjectOpenBreadcrumbsResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectOpenBreadcrumbsResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectOpenBreadcrumbsResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectOpenBreadcrumbsResponseError proto.InternalMessageInfo + +func (m *RpcObjectOpenBreadcrumbsResponseError) GetCode() RpcObjectOpenBreadcrumbsResponseErrorCode { + if m != nil { + return m.Code + } + return RpcObjectOpenBreadcrumbsResponseError_NULL +} + +func (m *RpcObjectOpenBreadcrumbsResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcObjectSetBreadcrumbs struct { +} + +func (m *RpcObjectSetBreadcrumbs) Reset() { *m = RpcObjectSetBreadcrumbs{} } +func (m *RpcObjectSetBreadcrumbs) String() string { return proto.CompactTextString(m) } +func (*RpcObjectSetBreadcrumbs) ProtoMessage() {} +func (*RpcObjectSetBreadcrumbs) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 7} +} +func (m *RpcObjectSetBreadcrumbs) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectSetBreadcrumbs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectSetBreadcrumbs.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectSetBreadcrumbs) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectSetBreadcrumbs.Merge(m, src) +} +func (m *RpcObjectSetBreadcrumbs) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectSetBreadcrumbs) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectSetBreadcrumbs.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectSetBreadcrumbs proto.InternalMessageInfo + +type RpcObjectSetBreadcrumbsRequest struct { + BreadcrumbsId string `protobuf:"bytes,1,opt,name=breadcrumbsId,proto3" json:"breadcrumbsId,omitempty"` + Ids []string `protobuf:"bytes,2,rep,name=ids,proto3" json:"ids,omitempty"` +} + +func (m *RpcObjectSetBreadcrumbsRequest) Reset() { *m = RpcObjectSetBreadcrumbsRequest{} } +func (m *RpcObjectSetBreadcrumbsRequest) String() string { return proto.CompactTextString(m) } +func (*RpcObjectSetBreadcrumbsRequest) ProtoMessage() {} +func (*RpcObjectSetBreadcrumbsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 7, 0} +} +func (m *RpcObjectSetBreadcrumbsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectSetBreadcrumbsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectSetBreadcrumbsRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectSetBreadcrumbsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectSetBreadcrumbsRequest.Merge(m, src) +} +func (m *RpcObjectSetBreadcrumbsRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectSetBreadcrumbsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectSetBreadcrumbsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectSetBreadcrumbsRequest proto.InternalMessageInfo + +func (m *RpcObjectSetBreadcrumbsRequest) GetBreadcrumbsId() string { + if m != nil { + return m.BreadcrumbsId + } + return "" +} + +func (m *RpcObjectSetBreadcrumbsRequest) GetIds() []string { + if m != nil { + return m.Ids + } + return nil +} + +type RpcObjectSetBreadcrumbsResponse struct { + Error *RpcObjectSetBreadcrumbsResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcObjectSetBreadcrumbsResponse) Reset() { *m = RpcObjectSetBreadcrumbsResponse{} } +func (m *RpcObjectSetBreadcrumbsResponse) String() string { return proto.CompactTextString(m) } +func (*RpcObjectSetBreadcrumbsResponse) ProtoMessage() {} +func (*RpcObjectSetBreadcrumbsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 7, 1} +} +func (m *RpcObjectSetBreadcrumbsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectSetBreadcrumbsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectSetBreadcrumbsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectSetBreadcrumbsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectSetBreadcrumbsResponse.Merge(m, src) +} +func (m *RpcObjectSetBreadcrumbsResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectSetBreadcrumbsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectSetBreadcrumbsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectSetBreadcrumbsResponse proto.InternalMessageInfo + +func (m *RpcObjectSetBreadcrumbsResponse) GetError() *RpcObjectSetBreadcrumbsResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcObjectSetBreadcrumbsResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcObjectSetBreadcrumbsResponseError struct { + Code RpcObjectSetBreadcrumbsResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectSetBreadcrumbsResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcObjectSetBreadcrumbsResponseError) Reset() { *m = RpcObjectSetBreadcrumbsResponseError{} } +func (m *RpcObjectSetBreadcrumbsResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcObjectSetBreadcrumbsResponseError) ProtoMessage() {} +func (*RpcObjectSetBreadcrumbsResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 7, 1, 0} +} +func (m *RpcObjectSetBreadcrumbsResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectSetBreadcrumbsResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectSetBreadcrumbsResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectSetBreadcrumbsResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectSetBreadcrumbsResponseError.Merge(m, src) +} +func (m *RpcObjectSetBreadcrumbsResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectSetBreadcrumbsResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectSetBreadcrumbsResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectSetBreadcrumbsResponseError proto.InternalMessageInfo + +func (m *RpcObjectSetBreadcrumbsResponseError) GetCode() RpcObjectSetBreadcrumbsResponseErrorCode { + if m != nil { + return m.Code + } + return RpcObjectSetBreadcrumbsResponseError_NULL +} + +func (m *RpcObjectSetBreadcrumbsResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcObjectImportMarkdown struct { +} + +func (m *RpcObjectImportMarkdown) Reset() { *m = RpcObjectImportMarkdown{} } +func (m *RpcObjectImportMarkdown) String() string { return proto.CompactTextString(m) } +func (*RpcObjectImportMarkdown) ProtoMessage() {} +func (*RpcObjectImportMarkdown) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 8} +} +func (m *RpcObjectImportMarkdown) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectImportMarkdown) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectImportMarkdown.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectImportMarkdown) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectImportMarkdown.Merge(m, src) +} +func (m *RpcObjectImportMarkdown) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectImportMarkdown) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectImportMarkdown.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectImportMarkdown proto.InternalMessageInfo + +type RpcObjectImportMarkdownRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + ImportPath string `protobuf:"bytes,2,opt,name=importPath,proto3" json:"importPath,omitempty"` +} + +func (m *RpcObjectImportMarkdownRequest) Reset() { *m = RpcObjectImportMarkdownRequest{} } +func (m *RpcObjectImportMarkdownRequest) String() string { return proto.CompactTextString(m) } +func (*RpcObjectImportMarkdownRequest) ProtoMessage() {} +func (*RpcObjectImportMarkdownRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 8, 0} +} +func (m *RpcObjectImportMarkdownRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectImportMarkdownRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectImportMarkdownRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectImportMarkdownRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectImportMarkdownRequest.Merge(m, src) +} +func (m *RpcObjectImportMarkdownRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectImportMarkdownRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectImportMarkdownRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectImportMarkdownRequest proto.InternalMessageInfo + +func (m *RpcObjectImportMarkdownRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcObjectImportMarkdownRequest) GetImportPath() string { + if m != nil { + return m.ImportPath + } + return "" +} + +type RpcObjectImportMarkdownResponse struct { + Error *RpcObjectImportMarkdownResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + RootLinkIds []string `protobuf:"bytes,2,rep,name=rootLinkIds,proto3" json:"rootLinkIds,omitempty"` + Event *ResponseEvent `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcObjectImportMarkdownResponse) Reset() { *m = RpcObjectImportMarkdownResponse{} } +func (m *RpcObjectImportMarkdownResponse) String() string { return proto.CompactTextString(m) } +func (*RpcObjectImportMarkdownResponse) ProtoMessage() {} +func (*RpcObjectImportMarkdownResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 8, 1} +} +func (m *RpcObjectImportMarkdownResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectImportMarkdownResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectImportMarkdownResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectImportMarkdownResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectImportMarkdownResponse.Merge(m, src) +} +func (m *RpcObjectImportMarkdownResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectImportMarkdownResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectImportMarkdownResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectImportMarkdownResponse proto.InternalMessageInfo + +func (m *RpcObjectImportMarkdownResponse) GetError() *RpcObjectImportMarkdownResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcObjectImportMarkdownResponse) GetRootLinkIds() []string { + if m != nil { + return m.RootLinkIds + } + return nil +} + +func (m *RpcObjectImportMarkdownResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcObjectImportMarkdownResponseError struct { + Code RpcObjectImportMarkdownResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectImportMarkdownResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcObjectImportMarkdownResponseError) Reset() { *m = RpcObjectImportMarkdownResponseError{} } +func (m *RpcObjectImportMarkdownResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcObjectImportMarkdownResponseError) ProtoMessage() {} +func (*RpcObjectImportMarkdownResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 8, 1, 0} +} +func (m *RpcObjectImportMarkdownResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectImportMarkdownResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectImportMarkdownResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectImportMarkdownResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectImportMarkdownResponseError.Merge(m, src) +} +func (m *RpcObjectImportMarkdownResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectImportMarkdownResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectImportMarkdownResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectImportMarkdownResponseError proto.InternalMessageInfo + +func (m *RpcObjectImportMarkdownResponseError) GetCode() RpcObjectImportMarkdownResponseErrorCode { + if m != nil { + return m.Code + } + return RpcObjectImportMarkdownResponseError_NULL +} + +func (m *RpcObjectImportMarkdownResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcObjectShareByLink struct { +} + +func (m *RpcObjectShareByLink) Reset() { *m = RpcObjectShareByLink{} } +func (m *RpcObjectShareByLink) String() string { return proto.CompactTextString(m) } +func (*RpcObjectShareByLink) ProtoMessage() {} +func (*RpcObjectShareByLink) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 9} +} +func (m *RpcObjectShareByLink) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectShareByLink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectShareByLink.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectShareByLink) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectShareByLink.Merge(m, src) +} +func (m *RpcObjectShareByLink) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectShareByLink) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectShareByLink.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectShareByLink proto.InternalMessageInfo + +type RpcObjectShareByLinkRequest struct { + ObjectId string `protobuf:"bytes,1,opt,name=objectId,proto3" json:"objectId,omitempty"` +} + +func (m *RpcObjectShareByLinkRequest) Reset() { *m = RpcObjectShareByLinkRequest{} } +func (m *RpcObjectShareByLinkRequest) String() string { return proto.CompactTextString(m) } +func (*RpcObjectShareByLinkRequest) ProtoMessage() {} +func (*RpcObjectShareByLinkRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 9, 0} +} +func (m *RpcObjectShareByLinkRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectShareByLinkRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectShareByLinkRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectShareByLinkRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectShareByLinkRequest.Merge(m, src) +} +func (m *RpcObjectShareByLinkRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectShareByLinkRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectShareByLinkRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectShareByLinkRequest proto.InternalMessageInfo + +func (m *RpcObjectShareByLinkRequest) GetObjectId() string { + if m != nil { + return m.ObjectId + } + return "" +} + +type RpcObjectShareByLinkResponse struct { + Link string `protobuf:"bytes,1,opt,name=link,proto3" json:"link,omitempty"` + Error *RpcObjectShareByLinkResponseError `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` +} + +func (m *RpcObjectShareByLinkResponse) Reset() { *m = RpcObjectShareByLinkResponse{} } +func (m *RpcObjectShareByLinkResponse) String() string { return proto.CompactTextString(m) } +func (*RpcObjectShareByLinkResponse) ProtoMessage() {} +func (*RpcObjectShareByLinkResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 9, 1} +} +func (m *RpcObjectShareByLinkResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectShareByLinkResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectShareByLinkResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectShareByLinkResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectShareByLinkResponse.Merge(m, src) +} +func (m *RpcObjectShareByLinkResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectShareByLinkResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectShareByLinkResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectShareByLinkResponse proto.InternalMessageInfo + +func (m *RpcObjectShareByLinkResponse) GetLink() string { + if m != nil { + return m.Link + } + return "" +} + +func (m *RpcObjectShareByLinkResponse) GetError() *RpcObjectShareByLinkResponseError { + if m != nil { + return m.Error + } + return nil +} + +type RpcObjectShareByLinkResponseError struct { + Code RpcObjectShareByLinkResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectShareByLinkResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcObjectShareByLinkResponseError) Reset() { *m = RpcObjectShareByLinkResponseError{} } +func (m *RpcObjectShareByLinkResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcObjectShareByLinkResponseError) ProtoMessage() {} +func (*RpcObjectShareByLinkResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 9, 1, 0} +} +func (m *RpcObjectShareByLinkResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectShareByLinkResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectShareByLinkResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectShareByLinkResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectShareByLinkResponseError.Merge(m, src) +} +func (m *RpcObjectShareByLinkResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectShareByLinkResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectShareByLinkResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectShareByLinkResponseError proto.InternalMessageInfo + +func (m *RpcObjectShareByLinkResponseError) GetCode() RpcObjectShareByLinkResponseErrorCode { + if m != nil { + return m.Code + } + return RpcObjectShareByLinkResponseError_NULL +} + +func (m *RpcObjectShareByLinkResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcObjectAddWithObjectId struct { +} + +func (m *RpcObjectAddWithObjectId) Reset() { *m = RpcObjectAddWithObjectId{} } +func (m *RpcObjectAddWithObjectId) String() string { return proto.CompactTextString(m) } +func (*RpcObjectAddWithObjectId) ProtoMessage() {} +func (*RpcObjectAddWithObjectId) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 10} +} +func (m *RpcObjectAddWithObjectId) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectAddWithObjectId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectAddWithObjectId.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectAddWithObjectId) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectAddWithObjectId.Merge(m, src) +} +func (m *RpcObjectAddWithObjectId) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectAddWithObjectId) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectAddWithObjectId.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectAddWithObjectId proto.InternalMessageInfo + +type RpcObjectAddWithObjectIdRequest struct { + ObjectId string `protobuf:"bytes,1,opt,name=objectId,proto3" json:"objectId,omitempty"` + Payload string `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` +} + +func (m *RpcObjectAddWithObjectIdRequest) Reset() { *m = RpcObjectAddWithObjectIdRequest{} } +func (m *RpcObjectAddWithObjectIdRequest) String() string { return proto.CompactTextString(m) } +func (*RpcObjectAddWithObjectIdRequest) ProtoMessage() {} +func (*RpcObjectAddWithObjectIdRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 10, 0} +} +func (m *RpcObjectAddWithObjectIdRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectAddWithObjectIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectAddWithObjectIdRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectAddWithObjectIdRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectAddWithObjectIdRequest.Merge(m, src) +} +func (m *RpcObjectAddWithObjectIdRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectAddWithObjectIdRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectAddWithObjectIdRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectAddWithObjectIdRequest proto.InternalMessageInfo + +func (m *RpcObjectAddWithObjectIdRequest) GetObjectId() string { + if m != nil { + return m.ObjectId + } + return "" +} + +func (m *RpcObjectAddWithObjectIdRequest) GetPayload() string { + if m != nil { + return m.Payload + } + return "" +} + +type RpcObjectAddWithObjectIdResponse struct { + Error *RpcObjectAddWithObjectIdResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +} + +func (m *RpcObjectAddWithObjectIdResponse) Reset() { *m = RpcObjectAddWithObjectIdResponse{} } +func (m *RpcObjectAddWithObjectIdResponse) String() string { return proto.CompactTextString(m) } +func (*RpcObjectAddWithObjectIdResponse) ProtoMessage() {} +func (*RpcObjectAddWithObjectIdResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 10, 1} +} +func (m *RpcObjectAddWithObjectIdResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectAddWithObjectIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectAddWithObjectIdResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectAddWithObjectIdResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectAddWithObjectIdResponse.Merge(m, src) +} +func (m *RpcObjectAddWithObjectIdResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectAddWithObjectIdResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectAddWithObjectIdResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectAddWithObjectIdResponse proto.InternalMessageInfo + +func (m *RpcObjectAddWithObjectIdResponse) GetError() *RpcObjectAddWithObjectIdResponseError { + if m != nil { + return m.Error + } + return nil +} + +type RpcObjectAddWithObjectIdResponseError struct { + Code RpcObjectAddWithObjectIdResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectAddWithObjectIdResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcObjectAddWithObjectIdResponseError) Reset() { *m = RpcObjectAddWithObjectIdResponseError{} } +func (m *RpcObjectAddWithObjectIdResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcObjectAddWithObjectIdResponseError) ProtoMessage() {} +func (*RpcObjectAddWithObjectIdResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 10, 1, 0} +} +func (m *RpcObjectAddWithObjectIdResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectAddWithObjectIdResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectAddWithObjectIdResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectAddWithObjectIdResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectAddWithObjectIdResponseError.Merge(m, src) +} +func (m *RpcObjectAddWithObjectIdResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectAddWithObjectIdResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectAddWithObjectIdResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectAddWithObjectIdResponseError proto.InternalMessageInfo + +func (m *RpcObjectAddWithObjectIdResponseError) GetCode() RpcObjectAddWithObjectIdResponseErrorCode { + if m != nil { + return m.Code + } + return RpcObjectAddWithObjectIdResponseError_NULL +} + +func (m *RpcObjectAddWithObjectIdResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcObjectSearch struct { +} + +func (m *RpcObjectSearch) Reset() { *m = RpcObjectSearch{} } +func (m *RpcObjectSearch) String() string { return proto.CompactTextString(m) } +func (*RpcObjectSearch) ProtoMessage() {} +func (*RpcObjectSearch) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 11} +} +func (m *RpcObjectSearch) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectSearch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectSearch.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectSearch) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectSearch.Merge(m, src) +} +func (m *RpcObjectSearch) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectSearch) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectSearch.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectSearch proto.InternalMessageInfo + +type RpcObjectSearchRequest struct { + Filters []*model.BlockContentDataviewFilter `protobuf:"bytes,1,rep,name=filters,proto3" json:"filters,omitempty"` + Sorts []*model.BlockContentDataviewSort `protobuf:"bytes,2,rep,name=sorts,proto3" json:"sorts,omitempty"` + FullText string `protobuf:"bytes,3,opt,name=fullText,proto3" json:"fullText,omitempty"` + Offset int32 `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"` + Limit int32 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"` + // additional filter by objectTypes + ObjectTypeFilter []string `protobuf:"bytes,6,rep,name=objectTypeFilter,proto3" json:"objectTypeFilter,omitempty"` + // needed keys in details for return, when empty - will return all + Keys []string `protobuf:"bytes,7,rep,name=keys,proto3" json:"keys,omitempty"` +} + +func (m *RpcObjectSearchRequest) Reset() { *m = RpcObjectSearchRequest{} } +func (m *RpcObjectSearchRequest) String() string { return proto.CompactTextString(m) } +func (*RpcObjectSearchRequest) ProtoMessage() {} +func (*RpcObjectSearchRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 11, 0} +} +func (m *RpcObjectSearchRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectSearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectSearchRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectSearchRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectSearchRequest.Merge(m, src) +} +func (m *RpcObjectSearchRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectSearchRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectSearchRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectSearchRequest proto.InternalMessageInfo + +func (m *RpcObjectSearchRequest) GetFilters() []*model.BlockContentDataviewFilter { + if m != nil { + return m.Filters + } + return nil +} + +func (m *RpcObjectSearchRequest) GetSorts() []*model.BlockContentDataviewSort { + if m != nil { + return m.Sorts + } + return nil +} + +func (m *RpcObjectSearchRequest) GetFullText() string { + if m != nil { + return m.FullText + } + return "" +} + +func (m *RpcObjectSearchRequest) GetOffset() int32 { + if m != nil { + return m.Offset + } + return 0 +} + +func (m *RpcObjectSearchRequest) GetLimit() int32 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *RpcObjectSearchRequest) GetObjectTypeFilter() []string { + if m != nil { + return m.ObjectTypeFilter + } + return nil +} + +func (m *RpcObjectSearchRequest) GetKeys() []string { + if m != nil { + return m.Keys + } + return nil +} + +type RpcObjectSearchResponse struct { + Error *RpcObjectSearchResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Records []*types.Struct `protobuf:"bytes,2,rep,name=records,proto3" json:"records,omitempty"` +} + +func (m *RpcObjectSearchResponse) Reset() { *m = RpcObjectSearchResponse{} } +func (m *RpcObjectSearchResponse) String() string { return proto.CompactTextString(m) } +func (*RpcObjectSearchResponse) ProtoMessage() {} +func (*RpcObjectSearchResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 11, 1} +} +func (m *RpcObjectSearchResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectSearchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectSearchResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectSearchResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectSearchResponse.Merge(m, src) +} +func (m *RpcObjectSearchResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectSearchResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectSearchResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectSearchResponse proto.InternalMessageInfo + +func (m *RpcObjectSearchResponse) GetError() *RpcObjectSearchResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcObjectSearchResponse) GetRecords() []*types.Struct { + if m != nil { + return m.Records + } + return nil +} + +type RpcObjectSearchResponseError struct { + Code RpcObjectSearchResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectSearchResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcObjectSearchResponseError) Reset() { *m = RpcObjectSearchResponseError{} } +func (m *RpcObjectSearchResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcObjectSearchResponseError) ProtoMessage() {} +func (*RpcObjectSearchResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 11, 1, 0} +} +func (m *RpcObjectSearchResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectSearchResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectSearchResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectSearchResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectSearchResponseError.Merge(m, src) +} +func (m *RpcObjectSearchResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectSearchResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectSearchResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectSearchResponseError proto.InternalMessageInfo + +func (m *RpcObjectSearchResponseError) GetCode() RpcObjectSearchResponseErrorCode { + if m != nil { + return m.Code + } + return RpcObjectSearchResponseError_NULL +} + +func (m *RpcObjectSearchResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcObjectGraph struct { +} + +func (m *RpcObjectGraph) Reset() { *m = RpcObjectGraph{} } +func (m *RpcObjectGraph) String() string { return proto.CompactTextString(m) } +func (*RpcObjectGraph) ProtoMessage() {} +func (*RpcObjectGraph) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 12} +} +func (m *RpcObjectGraph) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectGraph) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectGraph.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectGraph) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectGraph.Merge(m, src) +} +func (m *RpcObjectGraph) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectGraph) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectGraph.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectGraph proto.InternalMessageInfo + +type RpcObjectGraphRequest struct { + Filters []*model.BlockContentDataviewFilter `protobuf:"bytes,1,rep,name=filters,proto3" json:"filters,omitempty"` + Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` + // additional filter by objectTypes + ObjectTypeFilter []string `protobuf:"bytes,3,rep,name=objectTypeFilter,proto3" json:"objectTypeFilter,omitempty"` + Keys []string `protobuf:"bytes,4,rep,name=keys,proto3" json:"keys,omitempty"` +} + +func (m *RpcObjectGraphRequest) Reset() { *m = RpcObjectGraphRequest{} } +func (m *RpcObjectGraphRequest) String() string { return proto.CompactTextString(m) } +func (*RpcObjectGraphRequest) ProtoMessage() {} +func (*RpcObjectGraphRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 12, 0} +} +func (m *RpcObjectGraphRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectGraphRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectGraphRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectGraphRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectGraphRequest.Merge(m, src) +} +func (m *RpcObjectGraphRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectGraphRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectGraphRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectGraphRequest proto.InternalMessageInfo + +func (m *RpcObjectGraphRequest) GetFilters() []*model.BlockContentDataviewFilter { + if m != nil { + return m.Filters + } + return nil +} + +func (m *RpcObjectGraphRequest) GetLimit() int32 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *RpcObjectGraphRequest) GetObjectTypeFilter() []string { + if m != nil { + return m.ObjectTypeFilter + } + return nil +} + +func (m *RpcObjectGraphRequest) GetKeys() []string { + if m != nil { + return m.Keys + } + return nil +} + +type RpcObjectGraphEdge struct { + Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` + Target string `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + Type RpcObjectGraphEdgeType `protobuf:"varint,4,opt,name=type,proto3,enum=anytype.RpcObjectGraphEdgeType" json:"type,omitempty"` + Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` + IconImage string `protobuf:"bytes,6,opt,name=iconImage,proto3" json:"iconImage,omitempty"` + IconEmoji string `protobuf:"bytes,7,opt,name=iconEmoji,proto3" json:"iconEmoji,omitempty"` + Hidden bool `protobuf:"varint,8,opt,name=hidden,proto3" json:"hidden,omitempty"` +} + +func (m *RpcObjectGraphEdge) Reset() { *m = RpcObjectGraphEdge{} } +func (m *RpcObjectGraphEdge) String() string { return proto.CompactTextString(m) } +func (*RpcObjectGraphEdge) ProtoMessage() {} +func (*RpcObjectGraphEdge) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 12, 1} +} +func (m *RpcObjectGraphEdge) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectGraphEdge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectGraphEdge.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectGraphEdge) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectGraphEdge.Merge(m, src) +} +func (m *RpcObjectGraphEdge) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectGraphEdge) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectGraphEdge.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectGraphEdge proto.InternalMessageInfo + +func (m *RpcObjectGraphEdge) GetSource() string { + if m != nil { + return m.Source + } + return "" +} + +func (m *RpcObjectGraphEdge) GetTarget() string { + if m != nil { + return m.Target + } + return "" +} + +func (m *RpcObjectGraphEdge) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *RpcObjectGraphEdge) GetType() RpcObjectGraphEdgeType { + if m != nil { + return m.Type + } + return RpcObjectGraphEdge_Link +} + +func (m *RpcObjectGraphEdge) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +func (m *RpcObjectGraphEdge) GetIconImage() string { + if m != nil { + return m.IconImage + } + return "" +} + +func (m *RpcObjectGraphEdge) GetIconEmoji() string { + if m != nil { + return m.IconEmoji + } + return "" +} + +func (m *RpcObjectGraphEdge) GetHidden() bool { + if m != nil { + return m.Hidden + } + return false +} + +type RpcObjectGraphResponse struct { + Error *RpcObjectGraphResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Nodes []*types.Struct `protobuf:"bytes,2,rep,name=nodes,proto3" json:"nodes,omitempty"` + Edges []*RpcObjectGraphEdge `protobuf:"bytes,3,rep,name=edges,proto3" json:"edges,omitempty"` +} + +func (m *RpcObjectGraphResponse) Reset() { *m = RpcObjectGraphResponse{} } +func (m *RpcObjectGraphResponse) String() string { return proto.CompactTextString(m) } +func (*RpcObjectGraphResponse) ProtoMessage() {} +func (*RpcObjectGraphResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 12, 2} +} +func (m *RpcObjectGraphResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectGraphResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectGraphResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectGraphResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectGraphResponse.Merge(m, src) +} +func (m *RpcObjectGraphResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectGraphResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectGraphResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectGraphResponse proto.InternalMessageInfo + +func (m *RpcObjectGraphResponse) GetError() *RpcObjectGraphResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcObjectGraphResponse) GetNodes() []*types.Struct { + if m != nil { + return m.Nodes + } + return nil +} + +func (m *RpcObjectGraphResponse) GetEdges() []*RpcObjectGraphEdge { + if m != nil { + return m.Edges + } + return nil +} + +type RpcObjectGraphResponseError struct { + Code RpcObjectGraphResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectGraphResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcObjectGraphResponseError) Reset() { *m = RpcObjectGraphResponseError{} } +func (m *RpcObjectGraphResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcObjectGraphResponseError) ProtoMessage() {} +func (*RpcObjectGraphResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 12, 2, 0} +} +func (m *RpcObjectGraphResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectGraphResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectGraphResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectGraphResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectGraphResponseError.Merge(m, src) +} +func (m *RpcObjectGraphResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectGraphResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectGraphResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectGraphResponseError proto.InternalMessageInfo + +func (m *RpcObjectGraphResponseError) GetCode() RpcObjectGraphResponseErrorCode { + if m != nil { + return m.Code + } + return RpcObjectGraphResponseError_NULL +} + +func (m *RpcObjectGraphResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcObjectSearchSubscribe struct { +} + +func (m *RpcObjectSearchSubscribe) Reset() { *m = RpcObjectSearchSubscribe{} } +func (m *RpcObjectSearchSubscribe) String() string { return proto.CompactTextString(m) } +func (*RpcObjectSearchSubscribe) ProtoMessage() {} +func (*RpcObjectSearchSubscribe) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 13} +} +func (m *RpcObjectSearchSubscribe) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectSearchSubscribe) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectSearchSubscribe.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectSearchSubscribe) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectSearchSubscribe.Merge(m, src) +} +func (m *RpcObjectSearchSubscribe) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectSearchSubscribe) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectSearchSubscribe.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectSearchSubscribe proto.InternalMessageInfo + +type RpcObjectSearchSubscribeRequest struct { + // (optional) subscription identifier + // client can provide some string or middleware will generate it automatically + // if subId is already registered on middleware, the new query will replace previous subscription + SubId string `protobuf:"bytes,1,opt,name=subId,proto3" json:"subId,omitempty"` + // filters + Filters []*model.BlockContentDataviewFilter `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` + // sorts + Sorts []*model.BlockContentDataviewSort `protobuf:"bytes,3,rep,name=sorts,proto3" json:"sorts,omitempty"` + // results limit + Limit int64 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"` + // initial offset; middleware will find afterId + Offset int64 `protobuf:"varint,6,opt,name=offset,proto3" json:"offset,omitempty"` + // (required) needed keys in details for return, for object fields mw will return (and subscribe) objects as dependent + Keys []string `protobuf:"bytes,7,rep,name=keys,proto3" json:"keys,omitempty"` + // (optional) pagination: middleware will return results after given id + AfterId string `protobuf:"bytes,8,opt,name=afterId,proto3" json:"afterId,omitempty"` + // (optional) pagination: middleware will return results before given id + BeforeId string `protobuf:"bytes,9,opt,name=beforeId,proto3" json:"beforeId,omitempty"` + Source []string `protobuf:"bytes,10,rep,name=source,proto3" json:"source,omitempty"` + IgnoreWorkspace string `protobuf:"bytes,12,opt,name=ignoreWorkspace,proto3" json:"ignoreWorkspace,omitempty"` + // disable dependent subscription + NoDepSubscription bool `protobuf:"varint,13,opt,name=noDepSubscription,proto3" json:"noDepSubscription,omitempty"` +} + +func (m *RpcObjectSearchSubscribeRequest) Reset() { *m = RpcObjectSearchSubscribeRequest{} } +func (m *RpcObjectSearchSubscribeRequest) String() string { return proto.CompactTextString(m) } +func (*RpcObjectSearchSubscribeRequest) ProtoMessage() {} +func (*RpcObjectSearchSubscribeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 13, 0} +} +func (m *RpcObjectSearchSubscribeRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectSearchSubscribeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectSearchSubscribeRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectSearchSubscribeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectSearchSubscribeRequest.Merge(m, src) +} +func (m *RpcObjectSearchSubscribeRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectSearchSubscribeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectSearchSubscribeRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectSearchSubscribeRequest proto.InternalMessageInfo + +func (m *RpcObjectSearchSubscribeRequest) GetSubId() string { + if m != nil { + return m.SubId + } + return "" +} + +func (m *RpcObjectSearchSubscribeRequest) GetFilters() []*model.BlockContentDataviewFilter { + if m != nil { + return m.Filters + } + return nil +} + +func (m *RpcObjectSearchSubscribeRequest) GetSorts() []*model.BlockContentDataviewSort { + if m != nil { + return m.Sorts + } + return nil +} + +func (m *RpcObjectSearchSubscribeRequest) GetLimit() int64 { + if m != nil { + return m.Limit + } + return 0 +} + +func (m *RpcObjectSearchSubscribeRequest) GetOffset() int64 { + if m != nil { + return m.Offset + } + return 0 +} + +func (m *RpcObjectSearchSubscribeRequest) GetKeys() []string { + if m != nil { + return m.Keys + } + return nil +} + +func (m *RpcObjectSearchSubscribeRequest) GetAfterId() string { + if m != nil { + return m.AfterId + } + return "" +} + +func (m *RpcObjectSearchSubscribeRequest) GetBeforeId() string { + if m != nil { + return m.BeforeId + } + return "" +} + +func (m *RpcObjectSearchSubscribeRequest) GetSource() []string { + if m != nil { + return m.Source + } + return nil +} + +func (m *RpcObjectSearchSubscribeRequest) GetIgnoreWorkspace() string { + if m != nil { + return m.IgnoreWorkspace + } + return "" +} + +func (m *RpcObjectSearchSubscribeRequest) GetNoDepSubscription() bool { + if m != nil { + return m.NoDepSubscription + } + return false +} + +type RpcObjectSearchSubscribeResponse struct { + Error *RpcObjectSearchSubscribeResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Records []*types.Struct `protobuf:"bytes,2,rep,name=records,proto3" json:"records,omitempty"` + Dependencies []*types.Struct `protobuf:"bytes,3,rep,name=dependencies,proto3" json:"dependencies,omitempty"` + SubId string `protobuf:"bytes,4,opt,name=subId,proto3" json:"subId,omitempty"` + Counters *EventObjectSubscriptionCounters `protobuf:"bytes,5,opt,name=counters,proto3" json:"counters,omitempty"` +} + +func (m *RpcObjectSearchSubscribeResponse) Reset() { *m = RpcObjectSearchSubscribeResponse{} } +func (m *RpcObjectSearchSubscribeResponse) String() string { return proto.CompactTextString(m) } +func (*RpcObjectSearchSubscribeResponse) ProtoMessage() {} +func (*RpcObjectSearchSubscribeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 13, 1} +} +func (m *RpcObjectSearchSubscribeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectSearchSubscribeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectSearchSubscribeResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectSearchSubscribeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectSearchSubscribeResponse.Merge(m, src) +} +func (m *RpcObjectSearchSubscribeResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectSearchSubscribeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectSearchSubscribeResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectSearchSubscribeResponse proto.InternalMessageInfo + +func (m *RpcObjectSearchSubscribeResponse) GetError() *RpcObjectSearchSubscribeResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcObjectSearchSubscribeResponse) GetRecords() []*types.Struct { + if m != nil { + return m.Records + } + return nil +} + +func (m *RpcObjectSearchSubscribeResponse) GetDependencies() []*types.Struct { + if m != nil { + return m.Dependencies + } + return nil +} + +func (m *RpcObjectSearchSubscribeResponse) GetSubId() string { + if m != nil { + return m.SubId + } + return "" +} + +func (m *RpcObjectSearchSubscribeResponse) GetCounters() *EventObjectSubscriptionCounters { + if m != nil { + return m.Counters + } + return nil +} + +type RpcObjectSearchSubscribeResponseError struct { + Code RpcObjectSearchSubscribeResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectSearchSubscribeResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcObjectSearchSubscribeResponseError) Reset() { *m = RpcObjectSearchSubscribeResponseError{} } +func (m *RpcObjectSearchSubscribeResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcObjectSearchSubscribeResponseError) ProtoMessage() {} +func (*RpcObjectSearchSubscribeResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 13, 1, 0} +} +func (m *RpcObjectSearchSubscribeResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectSearchSubscribeResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectSearchSubscribeResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectSearchSubscribeResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectSearchSubscribeResponseError.Merge(m, src) +} +func (m *RpcObjectSearchSubscribeResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectSearchSubscribeResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectSearchSubscribeResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectSearchSubscribeResponseError proto.InternalMessageInfo + +func (m *RpcObjectSearchSubscribeResponseError) GetCode() RpcObjectSearchSubscribeResponseErrorCode { + if m != nil { + return m.Code + } + return RpcObjectSearchSubscribeResponseError_NULL +} + +func (m *RpcObjectSearchSubscribeResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcObjectSubscribeIds struct { +} + +func (m *RpcObjectSubscribeIds) Reset() { *m = RpcObjectSubscribeIds{} } +func (m *RpcObjectSubscribeIds) String() string { return proto.CompactTextString(m) } +func (*RpcObjectSubscribeIds) ProtoMessage() {} +func (*RpcObjectSubscribeIds) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 14} +} +func (m *RpcObjectSubscribeIds) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectSubscribeIds) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectSubscribeIds.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectSubscribeIds) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectSubscribeIds.Merge(m, src) +} +func (m *RpcObjectSubscribeIds) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectSubscribeIds) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectSubscribeIds.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectSubscribeIds proto.InternalMessageInfo + +type RpcObjectSubscribeIdsRequest struct { + // (optional) subscription identifier + // client can provide some string or middleware will generate it automatically + // if subId is already registered on middleware, the new query will replace previous subscription + SubId string `protobuf:"bytes,1,opt,name=subId,proto3" json:"subId,omitempty"` + // ids for subscribe + Ids []string `protobuf:"bytes,2,rep,name=ids,proto3" json:"ids,omitempty"` + // sorts + // (required) needed keys in details for return, for object fields mw will return (and subscribe) objects as dependent + Keys []string `protobuf:"bytes,3,rep,name=keys,proto3" json:"keys,omitempty"` + IgnoreWorkspace string `protobuf:"bytes,11,opt,name=ignoreWorkspace,proto3" json:"ignoreWorkspace,omitempty"` +} + +func (m *RpcObjectSubscribeIdsRequest) Reset() { *m = RpcObjectSubscribeIdsRequest{} } +func (m *RpcObjectSubscribeIdsRequest) String() string { return proto.CompactTextString(m) } +func (*RpcObjectSubscribeIdsRequest) ProtoMessage() {} +func (*RpcObjectSubscribeIdsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 14, 0} +} +func (m *RpcObjectSubscribeIdsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectSubscribeIdsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectSubscribeIdsRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectSubscribeIdsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectSubscribeIdsRequest.Merge(m, src) +} +func (m *RpcObjectSubscribeIdsRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectSubscribeIdsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectSubscribeIdsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectSubscribeIdsRequest proto.InternalMessageInfo + +func (m *RpcObjectSubscribeIdsRequest) GetSubId() string { + if m != nil { + return m.SubId + } + return "" +} + +func (m *RpcObjectSubscribeIdsRequest) GetIds() []string { + if m != nil { + return m.Ids + } + return nil +} + +func (m *RpcObjectSubscribeIdsRequest) GetKeys() []string { + if m != nil { + return m.Keys + } + return nil +} + +func (m *RpcObjectSubscribeIdsRequest) GetIgnoreWorkspace() string { + if m != nil { + return m.IgnoreWorkspace + } + return "" +} + +type RpcObjectSubscribeIdsResponse struct { + Error *RpcObjectSubscribeIdsResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Records []*types.Struct `protobuf:"bytes,2,rep,name=records,proto3" json:"records,omitempty"` + Dependencies []*types.Struct `protobuf:"bytes,3,rep,name=dependencies,proto3" json:"dependencies,omitempty"` + SubId string `protobuf:"bytes,4,opt,name=subId,proto3" json:"subId,omitempty"` +} + +func (m *RpcObjectSubscribeIdsResponse) Reset() { *m = RpcObjectSubscribeIdsResponse{} } +func (m *RpcObjectSubscribeIdsResponse) String() string { return proto.CompactTextString(m) } +func (*RpcObjectSubscribeIdsResponse) ProtoMessage() {} +func (*RpcObjectSubscribeIdsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 14, 1} +} +func (m *RpcObjectSubscribeIdsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectSubscribeIdsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectSubscribeIdsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectSubscribeIdsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectSubscribeIdsResponse.Merge(m, src) +} +func (m *RpcObjectSubscribeIdsResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectSubscribeIdsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectSubscribeIdsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectSubscribeIdsResponse proto.InternalMessageInfo + +func (m *RpcObjectSubscribeIdsResponse) GetError() *RpcObjectSubscribeIdsResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcObjectSubscribeIdsResponse) GetRecords() []*types.Struct { + if m != nil { + return m.Records + } + return nil +} + +func (m *RpcObjectSubscribeIdsResponse) GetDependencies() []*types.Struct { + if m != nil { + return m.Dependencies + } + return nil +} + +func (m *RpcObjectSubscribeIdsResponse) GetSubId() string { + if m != nil { + return m.SubId + } + return "" +} + +type RpcObjectSubscribeIdsResponseError struct { + Code RpcObjectSubscribeIdsResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectSubscribeIdsResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcObjectSubscribeIdsResponseError) Reset() { *m = RpcObjectSubscribeIdsResponseError{} } +func (m *RpcObjectSubscribeIdsResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcObjectSubscribeIdsResponseError) ProtoMessage() {} +func (*RpcObjectSubscribeIdsResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 14, 1, 0} +} +func (m *RpcObjectSubscribeIdsResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectSubscribeIdsResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectSubscribeIdsResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectSubscribeIdsResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectSubscribeIdsResponseError.Merge(m, src) +} +func (m *RpcObjectSubscribeIdsResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectSubscribeIdsResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectSubscribeIdsResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectSubscribeIdsResponseError proto.InternalMessageInfo + +func (m *RpcObjectSubscribeIdsResponseError) GetCode() RpcObjectSubscribeIdsResponseErrorCode { + if m != nil { + return m.Code + } + return RpcObjectSubscribeIdsResponseError_NULL +} + +func (m *RpcObjectSubscribeIdsResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcObjectSearchUnsubscribe struct { +} + +func (m *RpcObjectSearchUnsubscribe) Reset() { *m = RpcObjectSearchUnsubscribe{} } +func (m *RpcObjectSearchUnsubscribe) String() string { return proto.CompactTextString(m) } +func (*RpcObjectSearchUnsubscribe) ProtoMessage() {} +func (*RpcObjectSearchUnsubscribe) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 15} +} +func (m *RpcObjectSearchUnsubscribe) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectSearchUnsubscribe) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectSearchUnsubscribe.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectSearchUnsubscribe) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectSearchUnsubscribe.Merge(m, src) +} +func (m *RpcObjectSearchUnsubscribe) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectSearchUnsubscribe) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectSearchUnsubscribe.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectSearchUnsubscribe proto.InternalMessageInfo + +type RpcObjectSearchUnsubscribeRequest struct { + SubIds []string `protobuf:"bytes,1,rep,name=subIds,proto3" json:"subIds,omitempty"` +} + +func (m *RpcObjectSearchUnsubscribeRequest) Reset() { *m = RpcObjectSearchUnsubscribeRequest{} } +func (m *RpcObjectSearchUnsubscribeRequest) String() string { return proto.CompactTextString(m) } +func (*RpcObjectSearchUnsubscribeRequest) ProtoMessage() {} +func (*RpcObjectSearchUnsubscribeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 15, 0} +} +func (m *RpcObjectSearchUnsubscribeRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectSearchUnsubscribeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectSearchUnsubscribeRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectSearchUnsubscribeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectSearchUnsubscribeRequest.Merge(m, src) +} +func (m *RpcObjectSearchUnsubscribeRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectSearchUnsubscribeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectSearchUnsubscribeRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectSearchUnsubscribeRequest proto.InternalMessageInfo + +func (m *RpcObjectSearchUnsubscribeRequest) GetSubIds() []string { + if m != nil { + return m.SubIds + } + return nil +} + +type RpcObjectSearchUnsubscribeResponse struct { + Error *RpcObjectSearchUnsubscribeResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +} + +func (m *RpcObjectSearchUnsubscribeResponse) Reset() { *m = RpcObjectSearchUnsubscribeResponse{} } +func (m *RpcObjectSearchUnsubscribeResponse) String() string { return proto.CompactTextString(m) } +func (*RpcObjectSearchUnsubscribeResponse) ProtoMessage() {} +func (*RpcObjectSearchUnsubscribeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 15, 1} +} +func (m *RpcObjectSearchUnsubscribeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectSearchUnsubscribeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectSearchUnsubscribeResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectSearchUnsubscribeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectSearchUnsubscribeResponse.Merge(m, src) +} +func (m *RpcObjectSearchUnsubscribeResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectSearchUnsubscribeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectSearchUnsubscribeResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectSearchUnsubscribeResponse proto.InternalMessageInfo + +func (m *RpcObjectSearchUnsubscribeResponse) GetError() *RpcObjectSearchUnsubscribeResponseError { + if m != nil { + return m.Error + } + return nil +} + +type RpcObjectSearchUnsubscribeResponseError struct { + Code RpcObjectSearchUnsubscribeResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectSearchUnsubscribeResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcObjectSearchUnsubscribeResponseError) Reset() { + *m = RpcObjectSearchUnsubscribeResponseError{} +} +func (m *RpcObjectSearchUnsubscribeResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcObjectSearchUnsubscribeResponseError) ProtoMessage() {} +func (*RpcObjectSearchUnsubscribeResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 15, 1, 0} +} +func (m *RpcObjectSearchUnsubscribeResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectSearchUnsubscribeResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectSearchUnsubscribeResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectSearchUnsubscribeResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectSearchUnsubscribeResponseError.Merge(m, src) +} +func (m *RpcObjectSearchUnsubscribeResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectSearchUnsubscribeResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectSearchUnsubscribeResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectSearchUnsubscribeResponseError proto.InternalMessageInfo + +func (m *RpcObjectSearchUnsubscribeResponseError) GetCode() RpcObjectSearchUnsubscribeResponseErrorCode { + if m != nil { + return m.Code + } + return RpcObjectSearchUnsubscribeResponseError_NULL +} + +func (m *RpcObjectSearchUnsubscribeResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcObjectSetLayout struct { +} + +func (m *RpcObjectSetLayout) Reset() { *m = RpcObjectSetLayout{} } +func (m *RpcObjectSetLayout) String() string { return proto.CompactTextString(m) } +func (*RpcObjectSetLayout) ProtoMessage() {} +func (*RpcObjectSetLayout) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 16} +} +func (m *RpcObjectSetLayout) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectSetLayout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectSetLayout.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectSetLayout) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectSetLayout.Merge(m, src) +} +func (m *RpcObjectSetLayout) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectSetLayout) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectSetLayout.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectSetLayout proto.InternalMessageInfo + +type RpcObjectSetLayoutRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + Layout model.ObjectTypeLayout `protobuf:"varint,3,opt,name=layout,proto3,enum=anytype.model.ObjectTypeLayout" json:"layout,omitempty"` +} + +func (m *RpcObjectSetLayoutRequest) Reset() { *m = RpcObjectSetLayoutRequest{} } +func (m *RpcObjectSetLayoutRequest) String() string { return proto.CompactTextString(m) } +func (*RpcObjectSetLayoutRequest) ProtoMessage() {} +func (*RpcObjectSetLayoutRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 16, 0} +} +func (m *RpcObjectSetLayoutRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectSetLayoutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectSetLayoutRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectSetLayoutRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectSetLayoutRequest.Merge(m, src) +} +func (m *RpcObjectSetLayoutRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectSetLayoutRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectSetLayoutRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectSetLayoutRequest proto.InternalMessageInfo + +func (m *RpcObjectSetLayoutRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcObjectSetLayoutRequest) GetLayout() model.ObjectTypeLayout { + if m != nil { + return m.Layout + } + return model.ObjectType_basic +} + +type RpcObjectSetLayoutResponse struct { + Error *RpcObjectSetLayoutResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcObjectSetLayoutResponse) Reset() { *m = RpcObjectSetLayoutResponse{} } +func (m *RpcObjectSetLayoutResponse) String() string { return proto.CompactTextString(m) } +func (*RpcObjectSetLayoutResponse) ProtoMessage() {} +func (*RpcObjectSetLayoutResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 16, 1} +} +func (m *RpcObjectSetLayoutResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectSetLayoutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectSetLayoutResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectSetLayoutResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectSetLayoutResponse.Merge(m, src) +} +func (m *RpcObjectSetLayoutResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectSetLayoutResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectSetLayoutResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectSetLayoutResponse proto.InternalMessageInfo + +func (m *RpcObjectSetLayoutResponse) GetError() *RpcObjectSetLayoutResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcObjectSetLayoutResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcObjectSetLayoutResponseError struct { + Code RpcObjectSetLayoutResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectSetLayoutResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcObjectSetLayoutResponseError) Reset() { *m = RpcObjectSetLayoutResponseError{} } +func (m *RpcObjectSetLayoutResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcObjectSetLayoutResponseError) ProtoMessage() {} +func (*RpcObjectSetLayoutResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 16, 1, 0} +} +func (m *RpcObjectSetLayoutResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectSetLayoutResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectSetLayoutResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectSetLayoutResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectSetLayoutResponseError.Merge(m, src) +} +func (m *RpcObjectSetLayoutResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectSetLayoutResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectSetLayoutResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectSetLayoutResponseError proto.InternalMessageInfo + +func (m *RpcObjectSetLayoutResponseError) GetCode() RpcObjectSetLayoutResponseErrorCode { + if m != nil { + return m.Code + } + return RpcObjectSetLayoutResponseError_NULL +} + +func (m *RpcObjectSetLayoutResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcObjectSetIsFavorite struct { +} + +func (m *RpcObjectSetIsFavorite) Reset() { *m = RpcObjectSetIsFavorite{} } +func (m *RpcObjectSetIsFavorite) String() string { return proto.CompactTextString(m) } +func (*RpcObjectSetIsFavorite) ProtoMessage() {} +func (*RpcObjectSetIsFavorite) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 17} +} +func (m *RpcObjectSetIsFavorite) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectSetIsFavorite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectSetIsFavorite.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectSetIsFavorite) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectSetIsFavorite.Merge(m, src) +} +func (m *RpcObjectSetIsFavorite) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectSetIsFavorite) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectSetIsFavorite.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectSetIsFavorite proto.InternalMessageInfo + +type RpcObjectSetIsFavoriteRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + IsFavorite bool `protobuf:"varint,2,opt,name=isFavorite,proto3" json:"isFavorite,omitempty"` +} + +func (m *RpcObjectSetIsFavoriteRequest) Reset() { *m = RpcObjectSetIsFavoriteRequest{} } +func (m *RpcObjectSetIsFavoriteRequest) String() string { return proto.CompactTextString(m) } +func (*RpcObjectSetIsFavoriteRequest) ProtoMessage() {} +func (*RpcObjectSetIsFavoriteRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 17, 0} +} +func (m *RpcObjectSetIsFavoriteRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectSetIsFavoriteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectSetIsFavoriteRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectSetIsFavoriteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectSetIsFavoriteRequest.Merge(m, src) +} +func (m *RpcObjectSetIsFavoriteRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectSetIsFavoriteRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectSetIsFavoriteRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectSetIsFavoriteRequest proto.InternalMessageInfo + +func (m *RpcObjectSetIsFavoriteRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcObjectSetIsFavoriteRequest) GetIsFavorite() bool { + if m != nil { + return m.IsFavorite + } + return false +} + +type RpcObjectSetIsFavoriteResponse struct { + Error *RpcObjectSetIsFavoriteResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcObjectSetIsFavoriteResponse) Reset() { *m = RpcObjectSetIsFavoriteResponse{} } +func (m *RpcObjectSetIsFavoriteResponse) String() string { return proto.CompactTextString(m) } +func (*RpcObjectSetIsFavoriteResponse) ProtoMessage() {} +func (*RpcObjectSetIsFavoriteResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 17, 1} +} +func (m *RpcObjectSetIsFavoriteResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectSetIsFavoriteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectSetIsFavoriteResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectSetIsFavoriteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectSetIsFavoriteResponse.Merge(m, src) +} +func (m *RpcObjectSetIsFavoriteResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectSetIsFavoriteResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectSetIsFavoriteResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectSetIsFavoriteResponse proto.InternalMessageInfo + +func (m *RpcObjectSetIsFavoriteResponse) GetError() *RpcObjectSetIsFavoriteResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcObjectSetIsFavoriteResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcObjectSetIsFavoriteResponseError struct { + Code RpcObjectSetIsFavoriteResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectSetIsFavoriteResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcObjectSetIsFavoriteResponseError) Reset() { *m = RpcObjectSetIsFavoriteResponseError{} } +func (m *RpcObjectSetIsFavoriteResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcObjectSetIsFavoriteResponseError) ProtoMessage() {} +func (*RpcObjectSetIsFavoriteResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 17, 1, 0} +} +func (m *RpcObjectSetIsFavoriteResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectSetIsFavoriteResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectSetIsFavoriteResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectSetIsFavoriteResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectSetIsFavoriteResponseError.Merge(m, src) +} +func (m *RpcObjectSetIsFavoriteResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectSetIsFavoriteResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectSetIsFavoriteResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectSetIsFavoriteResponseError proto.InternalMessageInfo + +func (m *RpcObjectSetIsFavoriteResponseError) GetCode() RpcObjectSetIsFavoriteResponseErrorCode { + if m != nil { + return m.Code + } + return RpcObjectSetIsFavoriteResponseError_NULL +} + +func (m *RpcObjectSetIsFavoriteResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcObjectSetIsArchived struct { +} + +func (m *RpcObjectSetIsArchived) Reset() { *m = RpcObjectSetIsArchived{} } +func (m *RpcObjectSetIsArchived) String() string { return proto.CompactTextString(m) } +func (*RpcObjectSetIsArchived) ProtoMessage() {} +func (*RpcObjectSetIsArchived) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 18} +} +func (m *RpcObjectSetIsArchived) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectSetIsArchived) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectSetIsArchived.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectSetIsArchived) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectSetIsArchived.Merge(m, src) +} +func (m *RpcObjectSetIsArchived) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectSetIsArchived) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectSetIsArchived.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectSetIsArchived proto.InternalMessageInfo + +type RpcObjectSetIsArchivedRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + IsArchived bool `protobuf:"varint,2,opt,name=isArchived,proto3" json:"isArchived,omitempty"` +} + +func (m *RpcObjectSetIsArchivedRequest) Reset() { *m = RpcObjectSetIsArchivedRequest{} } +func (m *RpcObjectSetIsArchivedRequest) String() string { return proto.CompactTextString(m) } +func (*RpcObjectSetIsArchivedRequest) ProtoMessage() {} +func (*RpcObjectSetIsArchivedRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 18, 0} +} +func (m *RpcObjectSetIsArchivedRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectSetIsArchivedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectSetIsArchivedRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectSetIsArchivedRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectSetIsArchivedRequest.Merge(m, src) +} +func (m *RpcObjectSetIsArchivedRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectSetIsArchivedRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectSetIsArchivedRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectSetIsArchivedRequest proto.InternalMessageInfo + +func (m *RpcObjectSetIsArchivedRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcObjectSetIsArchivedRequest) GetIsArchived() bool { + if m != nil { + return m.IsArchived + } + return false +} + +type RpcObjectSetIsArchivedResponse struct { + Error *RpcObjectSetIsArchivedResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcObjectSetIsArchivedResponse) Reset() { *m = RpcObjectSetIsArchivedResponse{} } +func (m *RpcObjectSetIsArchivedResponse) String() string { return proto.CompactTextString(m) } +func (*RpcObjectSetIsArchivedResponse) ProtoMessage() {} +func (*RpcObjectSetIsArchivedResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 18, 1} +} +func (m *RpcObjectSetIsArchivedResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectSetIsArchivedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectSetIsArchivedResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectSetIsArchivedResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectSetIsArchivedResponse.Merge(m, src) +} +func (m *RpcObjectSetIsArchivedResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectSetIsArchivedResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectSetIsArchivedResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectSetIsArchivedResponse proto.InternalMessageInfo + +func (m *RpcObjectSetIsArchivedResponse) GetError() *RpcObjectSetIsArchivedResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcObjectSetIsArchivedResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcObjectSetIsArchivedResponseError struct { + Code RpcObjectSetIsArchivedResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectSetIsArchivedResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcObjectSetIsArchivedResponseError) Reset() { *m = RpcObjectSetIsArchivedResponseError{} } +func (m *RpcObjectSetIsArchivedResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcObjectSetIsArchivedResponseError) ProtoMessage() {} +func (*RpcObjectSetIsArchivedResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 18, 1, 0} +} +func (m *RpcObjectSetIsArchivedResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectSetIsArchivedResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectSetIsArchivedResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectSetIsArchivedResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectSetIsArchivedResponseError.Merge(m, src) +} +func (m *RpcObjectSetIsArchivedResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectSetIsArchivedResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectSetIsArchivedResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectSetIsArchivedResponseError proto.InternalMessageInfo + +func (m *RpcObjectSetIsArchivedResponseError) GetCode() RpcObjectSetIsArchivedResponseErrorCode { + if m != nil { + return m.Code + } + return RpcObjectSetIsArchivedResponseError_NULL +} + +func (m *RpcObjectSetIsArchivedResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcObjectSetObjectType struct { +} + +func (m *RpcObjectSetObjectType) Reset() { *m = RpcObjectSetObjectType{} } +func (m *RpcObjectSetObjectType) String() string { return proto.CompactTextString(m) } +func (*RpcObjectSetObjectType) ProtoMessage() {} +func (*RpcObjectSetObjectType) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 19} +} +func (m *RpcObjectSetObjectType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectSetObjectType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectSetObjectType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectSetObjectType) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectSetObjectType.Merge(m, src) +} +func (m *RpcObjectSetObjectType) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectSetObjectType) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectSetObjectType.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectSetObjectType proto.InternalMessageInfo + +type RpcObjectSetObjectTypeRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + ObjectTypeUrl string `protobuf:"bytes,3,opt,name=objectTypeUrl,proto3" json:"objectTypeUrl,omitempty"` +} + +func (m *RpcObjectSetObjectTypeRequest) Reset() { *m = RpcObjectSetObjectTypeRequest{} } +func (m *RpcObjectSetObjectTypeRequest) String() string { return proto.CompactTextString(m) } +func (*RpcObjectSetObjectTypeRequest) ProtoMessage() {} +func (*RpcObjectSetObjectTypeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 19, 0} +} +func (m *RpcObjectSetObjectTypeRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectSetObjectTypeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectSetObjectTypeRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectSetObjectTypeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectSetObjectTypeRequest.Merge(m, src) +} +func (m *RpcObjectSetObjectTypeRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectSetObjectTypeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectSetObjectTypeRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectSetObjectTypeRequest proto.InternalMessageInfo + +func (m *RpcObjectSetObjectTypeRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcObjectSetObjectTypeRequest) GetObjectTypeUrl() string { + if m != nil { + return m.ObjectTypeUrl + } + return "" +} + +type RpcObjectSetObjectTypeResponse struct { + Error *RpcObjectSetObjectTypeResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcObjectSetObjectTypeResponse) Reset() { *m = RpcObjectSetObjectTypeResponse{} } +func (m *RpcObjectSetObjectTypeResponse) String() string { return proto.CompactTextString(m) } +func (*RpcObjectSetObjectTypeResponse) ProtoMessage() {} +func (*RpcObjectSetObjectTypeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 19, 1} +} +func (m *RpcObjectSetObjectTypeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectSetObjectTypeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectSetObjectTypeResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectSetObjectTypeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectSetObjectTypeResponse.Merge(m, src) +} +func (m *RpcObjectSetObjectTypeResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectSetObjectTypeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectSetObjectTypeResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectSetObjectTypeResponse proto.InternalMessageInfo + +func (m *RpcObjectSetObjectTypeResponse) GetError() *RpcObjectSetObjectTypeResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcObjectSetObjectTypeResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcObjectSetObjectTypeResponseError struct { + Code RpcObjectSetObjectTypeResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectSetObjectTypeResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcObjectSetObjectTypeResponseError) Reset() { *m = RpcObjectSetObjectTypeResponseError{} } +func (m *RpcObjectSetObjectTypeResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcObjectSetObjectTypeResponseError) ProtoMessage() {} +func (*RpcObjectSetObjectTypeResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 19, 1, 0} +} +func (m *RpcObjectSetObjectTypeResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectSetObjectTypeResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectSetObjectTypeResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectSetObjectTypeResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectSetObjectTypeResponseError.Merge(m, src) +} +func (m *RpcObjectSetObjectTypeResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectSetObjectTypeResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectSetObjectTypeResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectSetObjectTypeResponseError proto.InternalMessageInfo + +func (m *RpcObjectSetObjectTypeResponseError) GetCode() RpcObjectSetObjectTypeResponseErrorCode { + if m != nil { + return m.Code + } + return RpcObjectSetObjectTypeResponseError_NULL +} + +func (m *RpcObjectSetObjectTypeResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcObjectSetDetails struct { +} + +func (m *RpcObjectSetDetails) Reset() { *m = RpcObjectSetDetails{} } +func (m *RpcObjectSetDetails) String() string { return proto.CompactTextString(m) } +func (*RpcObjectSetDetails) ProtoMessage() {} +func (*RpcObjectSetDetails) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 20} +} +func (m *RpcObjectSetDetails) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectSetDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectSetDetails.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectSetDetails) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectSetDetails.Merge(m, src) +} +func (m *RpcObjectSetDetails) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectSetDetails) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectSetDetails.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectSetDetails proto.InternalMessageInfo + +type RpcObjectSetDetailsDetail struct { + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value *types.Value `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *RpcObjectSetDetailsDetail) Reset() { *m = RpcObjectSetDetailsDetail{} } +func (m *RpcObjectSetDetailsDetail) String() string { return proto.CompactTextString(m) } +func (*RpcObjectSetDetailsDetail) ProtoMessage() {} +func (*RpcObjectSetDetailsDetail) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 20, 0} +} +func (m *RpcObjectSetDetailsDetail) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectSetDetailsDetail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectSetDetailsDetail.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectSetDetailsDetail) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectSetDetailsDetail.Merge(m, src) +} +func (m *RpcObjectSetDetailsDetail) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectSetDetailsDetail) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectSetDetailsDetail.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectSetDetailsDetail proto.InternalMessageInfo + +func (m *RpcObjectSetDetailsDetail) GetKey() string { + if m != nil { + return m.Key + } + return "" +} + +func (m *RpcObjectSetDetailsDetail) GetValue() *types.Value { + if m != nil { + return m.Value + } + return nil +} + +type RpcObjectSetDetailsRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + Details []*RpcObjectSetDetailsDetail `protobuf:"bytes,2,rep,name=details,proto3" json:"details,omitempty"` +} + +func (m *RpcObjectSetDetailsRequest) Reset() { *m = RpcObjectSetDetailsRequest{} } +func (m *RpcObjectSetDetailsRequest) String() string { return proto.CompactTextString(m) } +func (*RpcObjectSetDetailsRequest) ProtoMessage() {} +func (*RpcObjectSetDetailsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 20, 1} +} +func (m *RpcObjectSetDetailsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectSetDetailsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectSetDetailsRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectSetDetailsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectSetDetailsRequest.Merge(m, src) +} +func (m *RpcObjectSetDetailsRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectSetDetailsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectSetDetailsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectSetDetailsRequest proto.InternalMessageInfo + +func (m *RpcObjectSetDetailsRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcObjectSetDetailsRequest) GetDetails() []*RpcObjectSetDetailsDetail { + if m != nil { + return m.Details + } + return nil +} + +type RpcObjectSetDetailsResponse struct { + Error *RpcObjectSetDetailsResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcObjectSetDetailsResponse) Reset() { *m = RpcObjectSetDetailsResponse{} } +func (m *RpcObjectSetDetailsResponse) String() string { return proto.CompactTextString(m) } +func (*RpcObjectSetDetailsResponse) ProtoMessage() {} +func (*RpcObjectSetDetailsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 20, 2} +} +func (m *RpcObjectSetDetailsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectSetDetailsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectSetDetailsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectSetDetailsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectSetDetailsResponse.Merge(m, src) +} +func (m *RpcObjectSetDetailsResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectSetDetailsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectSetDetailsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectSetDetailsResponse proto.InternalMessageInfo + +func (m *RpcObjectSetDetailsResponse) GetError() *RpcObjectSetDetailsResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcObjectSetDetailsResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcObjectSetDetailsResponseError struct { + Code RpcObjectSetDetailsResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectSetDetailsResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcObjectSetDetailsResponseError) Reset() { *m = RpcObjectSetDetailsResponseError{} } +func (m *RpcObjectSetDetailsResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcObjectSetDetailsResponseError) ProtoMessage() {} +func (*RpcObjectSetDetailsResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 20, 2, 0} +} +func (m *RpcObjectSetDetailsResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectSetDetailsResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectSetDetailsResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectSetDetailsResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectSetDetailsResponseError.Merge(m, src) +} +func (m *RpcObjectSetDetailsResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectSetDetailsResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectSetDetailsResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectSetDetailsResponseError proto.InternalMessageInfo + +func (m *RpcObjectSetDetailsResponseError) GetCode() RpcObjectSetDetailsResponseErrorCode { + if m != nil { + return m.Code + } + return RpcObjectSetDetailsResponseError_NULL +} + +func (m *RpcObjectSetDetailsResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcObjectToSet struct { +} + +func (m *RpcObjectToSet) Reset() { *m = RpcObjectToSet{} } +func (m *RpcObjectToSet) String() string { return proto.CompactTextString(m) } +func (*RpcObjectToSet) ProtoMessage() {} +func (*RpcObjectToSet) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 21} +} +func (m *RpcObjectToSet) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectToSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectToSet.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectToSet) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectToSet.Merge(m, src) +} +func (m *RpcObjectToSet) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectToSet) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectToSet.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectToSet proto.InternalMessageInfo + +type RpcObjectToSetRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + Source []string `protobuf:"bytes,2,rep,name=source,proto3" json:"source,omitempty"` +} + +func (m *RpcObjectToSetRequest) Reset() { *m = RpcObjectToSetRequest{} } +func (m *RpcObjectToSetRequest) String() string { return proto.CompactTextString(m) } +func (*RpcObjectToSetRequest) ProtoMessage() {} +func (*RpcObjectToSetRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 21, 0} +} +func (m *RpcObjectToSetRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectToSetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectToSetRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectToSetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectToSetRequest.Merge(m, src) +} +func (m *RpcObjectToSetRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectToSetRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectToSetRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectToSetRequest proto.InternalMessageInfo + +func (m *RpcObjectToSetRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcObjectToSetRequest) GetSource() []string { + if m != nil { + return m.Source + } + return nil +} + +type RpcObjectToSetResponse struct { + Error *RpcObjectToSetResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + SetId string `protobuf:"bytes,2,opt,name=setId,proto3" json:"setId,omitempty"` +} + +func (m *RpcObjectToSetResponse) Reset() { *m = RpcObjectToSetResponse{} } +func (m *RpcObjectToSetResponse) String() string { return proto.CompactTextString(m) } +func (*RpcObjectToSetResponse) ProtoMessage() {} +func (*RpcObjectToSetResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 21, 1} +} +func (m *RpcObjectToSetResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectToSetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectToSetResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectToSetResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectToSetResponse.Merge(m, src) +} +func (m *RpcObjectToSetResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectToSetResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectToSetResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectToSetResponse proto.InternalMessageInfo + +func (m *RpcObjectToSetResponse) GetError() *RpcObjectToSetResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcObjectToSetResponse) GetSetId() string { + if m != nil { + return m.SetId + } + return "" +} + +type RpcObjectToSetResponseError struct { + Code RpcObjectToSetResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectToSetResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcObjectToSetResponseError) Reset() { *m = RpcObjectToSetResponseError{} } +func (m *RpcObjectToSetResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcObjectToSetResponseError) ProtoMessage() {} +func (*RpcObjectToSetResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 21, 1, 0} +} +func (m *RpcObjectToSetResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectToSetResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectToSetResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectToSetResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectToSetResponseError.Merge(m, src) +} +func (m *RpcObjectToSetResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectToSetResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectToSetResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectToSetResponseError proto.InternalMessageInfo + +func (m *RpcObjectToSetResponseError) GetCode() RpcObjectToSetResponseErrorCode { + if m != nil { + return m.Code + } + return RpcObjectToSetResponseError_NULL +} + +func (m *RpcObjectToSetResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +// Available undo/redo operations +type RpcObjectUndoRedoCounter struct { + Undo int32 `protobuf:"varint,1,opt,name=undo,proto3" json:"undo,omitempty"` + Redo int32 `protobuf:"varint,2,opt,name=redo,proto3" json:"redo,omitempty"` +} + +func (m *RpcObjectUndoRedoCounter) Reset() { *m = RpcObjectUndoRedoCounter{} } +func (m *RpcObjectUndoRedoCounter) String() string { return proto.CompactTextString(m) } +func (*RpcObjectUndoRedoCounter) ProtoMessage() {} +func (*RpcObjectUndoRedoCounter) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 22} +} +func (m *RpcObjectUndoRedoCounter) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectUndoRedoCounter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectUndoRedoCounter.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectUndoRedoCounter) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectUndoRedoCounter.Merge(m, src) +} +func (m *RpcObjectUndoRedoCounter) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectUndoRedoCounter) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectUndoRedoCounter.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectUndoRedoCounter proto.InternalMessageInfo + +func (m *RpcObjectUndoRedoCounter) GetUndo() int32 { + if m != nil { + return m.Undo + } + return 0 +} + +func (m *RpcObjectUndoRedoCounter) GetRedo() int32 { + if m != nil { + return m.Redo + } + return 0 +} + +type RpcObjectUndo struct { +} + +func (m *RpcObjectUndo) Reset() { *m = RpcObjectUndo{} } +func (m *RpcObjectUndo) String() string { return proto.CompactTextString(m) } +func (*RpcObjectUndo) ProtoMessage() {} +func (*RpcObjectUndo) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 23} +} +func (m *RpcObjectUndo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectUndo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectUndo.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectUndo) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectUndo.Merge(m, src) +} +func (m *RpcObjectUndo) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectUndo) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectUndo.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectUndo proto.InternalMessageInfo + +type RpcObjectUndoRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` +} + +func (m *RpcObjectUndoRequest) Reset() { *m = RpcObjectUndoRequest{} } +func (m *RpcObjectUndoRequest) String() string { return proto.CompactTextString(m) } +func (*RpcObjectUndoRequest) ProtoMessage() {} +func (*RpcObjectUndoRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 23, 0} +} +func (m *RpcObjectUndoRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectUndoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectUndoRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectUndoRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectUndoRequest.Merge(m, src) +} +func (m *RpcObjectUndoRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectUndoRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectUndoRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectUndoRequest proto.InternalMessageInfo + +func (m *RpcObjectUndoRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +type RpcObjectUndoResponse struct { + Error *RpcObjectUndoResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` + Counters *RpcObjectUndoRedoCounter `protobuf:"bytes,3,opt,name=counters,proto3" json:"counters,omitempty"` +} + +func (m *RpcObjectUndoResponse) Reset() { *m = RpcObjectUndoResponse{} } +func (m *RpcObjectUndoResponse) String() string { return proto.CompactTextString(m) } +func (*RpcObjectUndoResponse) ProtoMessage() {} +func (*RpcObjectUndoResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 23, 1} +} +func (m *RpcObjectUndoResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectUndoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectUndoResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectUndoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectUndoResponse.Merge(m, src) +} +func (m *RpcObjectUndoResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectUndoResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectUndoResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectUndoResponse proto.InternalMessageInfo + +func (m *RpcObjectUndoResponse) GetError() *RpcObjectUndoResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcObjectUndoResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +func (m *RpcObjectUndoResponse) GetCounters() *RpcObjectUndoRedoCounter { + if m != nil { + return m.Counters + } + return nil +} + +type RpcObjectUndoResponseError struct { + Code RpcObjectUndoResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectUndoResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcObjectUndoResponseError) Reset() { *m = RpcObjectUndoResponseError{} } +func (m *RpcObjectUndoResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcObjectUndoResponseError) ProtoMessage() {} +func (*RpcObjectUndoResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 23, 1, 0} +} +func (m *RpcObjectUndoResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectUndoResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectUndoResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectUndoResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectUndoResponseError.Merge(m, src) +} +func (m *RpcObjectUndoResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectUndoResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectUndoResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectUndoResponseError proto.InternalMessageInfo + +func (m *RpcObjectUndoResponseError) GetCode() RpcObjectUndoResponseErrorCode { + if m != nil { + return m.Code + } + return RpcObjectUndoResponseError_NULL +} + +func (m *RpcObjectUndoResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcObjectRedo struct { +} + +func (m *RpcObjectRedo) Reset() { *m = RpcObjectRedo{} } +func (m *RpcObjectRedo) String() string { return proto.CompactTextString(m) } +func (*RpcObjectRedo) ProtoMessage() {} +func (*RpcObjectRedo) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 24} +} +func (m *RpcObjectRedo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectRedo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectRedo.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectRedo) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectRedo.Merge(m, src) +} +func (m *RpcObjectRedo) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectRedo) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectRedo.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectRedo proto.InternalMessageInfo + +type RpcObjectRedoRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` +} + +func (m *RpcObjectRedoRequest) Reset() { *m = RpcObjectRedoRequest{} } +func (m *RpcObjectRedoRequest) String() string { return proto.CompactTextString(m) } +func (*RpcObjectRedoRequest) ProtoMessage() {} +func (*RpcObjectRedoRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 24, 0} +} +func (m *RpcObjectRedoRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectRedoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectRedoRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectRedoRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectRedoRequest.Merge(m, src) +} +func (m *RpcObjectRedoRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectRedoRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectRedoRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectRedoRequest proto.InternalMessageInfo + +func (m *RpcObjectRedoRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +type RpcObjectRedoResponse struct { + Error *RpcObjectRedoResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` + Counters *RpcObjectUndoRedoCounter `protobuf:"bytes,3,opt,name=counters,proto3" json:"counters,omitempty"` +} + +func (m *RpcObjectRedoResponse) Reset() { *m = RpcObjectRedoResponse{} } +func (m *RpcObjectRedoResponse) String() string { return proto.CompactTextString(m) } +func (*RpcObjectRedoResponse) ProtoMessage() {} +func (*RpcObjectRedoResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 24, 1} +} +func (m *RpcObjectRedoResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectRedoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectRedoResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectRedoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectRedoResponse.Merge(m, src) +} +func (m *RpcObjectRedoResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectRedoResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectRedoResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectRedoResponse proto.InternalMessageInfo + +func (m *RpcObjectRedoResponse) GetError() *RpcObjectRedoResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcObjectRedoResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +func (m *RpcObjectRedoResponse) GetCounters() *RpcObjectUndoRedoCounter { + if m != nil { + return m.Counters + } + return nil +} + +type RpcObjectRedoResponseError struct { + Code RpcObjectRedoResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectRedoResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcObjectRedoResponseError) Reset() { *m = RpcObjectRedoResponseError{} } +func (m *RpcObjectRedoResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcObjectRedoResponseError) ProtoMessage() {} +func (*RpcObjectRedoResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 24, 1, 0} +} +func (m *RpcObjectRedoResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectRedoResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectRedoResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectRedoResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectRedoResponseError.Merge(m, src) +} +func (m *RpcObjectRedoResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectRedoResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectRedoResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectRedoResponseError proto.InternalMessageInfo + +func (m *RpcObjectRedoResponseError) GetCode() RpcObjectRedoResponseErrorCode { + if m != nil { + return m.Code + } + return RpcObjectRedoResponseError_NULL +} + +func (m *RpcObjectRedoResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcObjectListDuplicate struct { +} + +func (m *RpcObjectListDuplicate) Reset() { *m = RpcObjectListDuplicate{} } +func (m *RpcObjectListDuplicate) String() string { return proto.CompactTextString(m) } +func (*RpcObjectListDuplicate) ProtoMessage() {} +func (*RpcObjectListDuplicate) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 25} +} +func (m *RpcObjectListDuplicate) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectListDuplicate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectListDuplicate.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectListDuplicate) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectListDuplicate.Merge(m, src) +} +func (m *RpcObjectListDuplicate) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectListDuplicate) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectListDuplicate.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectListDuplicate proto.InternalMessageInfo + +type RpcObjectListDuplicateRequest struct { + ObjectIds []string `protobuf:"bytes,1,rep,name=objectIds,proto3" json:"objectIds,omitempty"` +} + +func (m *RpcObjectListDuplicateRequest) Reset() { *m = RpcObjectListDuplicateRequest{} } +func (m *RpcObjectListDuplicateRequest) String() string { return proto.CompactTextString(m) } +func (*RpcObjectListDuplicateRequest) ProtoMessage() {} +func (*RpcObjectListDuplicateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 25, 0} +} +func (m *RpcObjectListDuplicateRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectListDuplicateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectListDuplicateRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectListDuplicateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectListDuplicateRequest.Merge(m, src) +} +func (m *RpcObjectListDuplicateRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectListDuplicateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectListDuplicateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectListDuplicateRequest proto.InternalMessageInfo + +func (m *RpcObjectListDuplicateRequest) GetObjectIds() []string { + if m != nil { + return m.ObjectIds + } + return nil +} + +type RpcObjectListDuplicateResponse struct { + Error *RpcObjectListDuplicateResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Ids []string `protobuf:"bytes,2,rep,name=ids,proto3" json:"ids,omitempty"` +} + +func (m *RpcObjectListDuplicateResponse) Reset() { *m = RpcObjectListDuplicateResponse{} } +func (m *RpcObjectListDuplicateResponse) String() string { return proto.CompactTextString(m) } +func (*RpcObjectListDuplicateResponse) ProtoMessage() {} +func (*RpcObjectListDuplicateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 25, 1} +} +func (m *RpcObjectListDuplicateResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectListDuplicateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectListDuplicateResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectListDuplicateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectListDuplicateResponse.Merge(m, src) +} +func (m *RpcObjectListDuplicateResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectListDuplicateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectListDuplicateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectListDuplicateResponse proto.InternalMessageInfo + +func (m *RpcObjectListDuplicateResponse) GetError() *RpcObjectListDuplicateResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcObjectListDuplicateResponse) GetIds() []string { + if m != nil { + return m.Ids + } + return nil +} + +type RpcObjectListDuplicateResponseError struct { + Code RpcObjectListDuplicateResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectListDuplicateResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcObjectListDuplicateResponseError) Reset() { *m = RpcObjectListDuplicateResponseError{} } +func (m *RpcObjectListDuplicateResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcObjectListDuplicateResponseError) ProtoMessage() {} +func (*RpcObjectListDuplicateResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 25, 1, 0} +} +func (m *RpcObjectListDuplicateResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectListDuplicateResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectListDuplicateResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectListDuplicateResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectListDuplicateResponseError.Merge(m, src) +} +func (m *RpcObjectListDuplicateResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectListDuplicateResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectListDuplicateResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectListDuplicateResponseError proto.InternalMessageInfo + +func (m *RpcObjectListDuplicateResponseError) GetCode() RpcObjectListDuplicateResponseErrorCode { + if m != nil { + return m.Code + } + return RpcObjectListDuplicateResponseError_NULL +} + +func (m *RpcObjectListDuplicateResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcObjectListDelete struct { +} + +func (m *RpcObjectListDelete) Reset() { *m = RpcObjectListDelete{} } +func (m *RpcObjectListDelete) String() string { return proto.CompactTextString(m) } +func (*RpcObjectListDelete) ProtoMessage() {} +func (*RpcObjectListDelete) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 26} +} +func (m *RpcObjectListDelete) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectListDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectListDelete.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectListDelete) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectListDelete.Merge(m, src) +} +func (m *RpcObjectListDelete) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectListDelete) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectListDelete.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectListDelete proto.InternalMessageInfo + +// Deletes the object, keys from the local store and unsubscribe from remote changes. Also offloads all orphan files +type RpcObjectListDeleteRequest struct { + ObjectIds []string `protobuf:"bytes,1,rep,name=objectIds,proto3" json:"objectIds,omitempty"` +} + +func (m *RpcObjectListDeleteRequest) Reset() { *m = RpcObjectListDeleteRequest{} } +func (m *RpcObjectListDeleteRequest) String() string { return proto.CompactTextString(m) } +func (*RpcObjectListDeleteRequest) ProtoMessage() {} +func (*RpcObjectListDeleteRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 26, 0} +} +func (m *RpcObjectListDeleteRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectListDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectListDeleteRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectListDeleteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectListDeleteRequest.Merge(m, src) +} +func (m *RpcObjectListDeleteRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectListDeleteRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectListDeleteRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectListDeleteRequest proto.InternalMessageInfo + +func (m *RpcObjectListDeleteRequest) GetObjectIds() []string { + if m != nil { + return m.ObjectIds + } + return nil +} + +type RpcObjectListDeleteResponse struct { + Error *RpcObjectListDeleteResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcObjectListDeleteResponse) Reset() { *m = RpcObjectListDeleteResponse{} } +func (m *RpcObjectListDeleteResponse) String() string { return proto.CompactTextString(m) } +func (*RpcObjectListDeleteResponse) ProtoMessage() {} +func (*RpcObjectListDeleteResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 26, 1} +} +func (m *RpcObjectListDeleteResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectListDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectListDeleteResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectListDeleteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectListDeleteResponse.Merge(m, src) +} +func (m *RpcObjectListDeleteResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectListDeleteResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectListDeleteResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectListDeleteResponse proto.InternalMessageInfo + +func (m *RpcObjectListDeleteResponse) GetError() *RpcObjectListDeleteResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcObjectListDeleteResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcObjectListDeleteResponseError struct { + Code RpcObjectListDeleteResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectListDeleteResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcObjectListDeleteResponseError) Reset() { *m = RpcObjectListDeleteResponseError{} } +func (m *RpcObjectListDeleteResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcObjectListDeleteResponseError) ProtoMessage() {} +func (*RpcObjectListDeleteResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 26, 1, 0} +} +func (m *RpcObjectListDeleteResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectListDeleteResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectListDeleteResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectListDeleteResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectListDeleteResponseError.Merge(m, src) +} +func (m *RpcObjectListDeleteResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectListDeleteResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectListDeleteResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectListDeleteResponseError proto.InternalMessageInfo + +func (m *RpcObjectListDeleteResponseError) GetCode() RpcObjectListDeleteResponseErrorCode { + if m != nil { + return m.Code + } + return RpcObjectListDeleteResponseError_NULL +} + +func (m *RpcObjectListDeleteResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcObjectListSetIsArchived struct { +} + +func (m *RpcObjectListSetIsArchived) Reset() { *m = RpcObjectListSetIsArchived{} } +func (m *RpcObjectListSetIsArchived) String() string { return proto.CompactTextString(m) } +func (*RpcObjectListSetIsArchived) ProtoMessage() {} +func (*RpcObjectListSetIsArchived) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 27} +} +func (m *RpcObjectListSetIsArchived) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectListSetIsArchived) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectListSetIsArchived.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectListSetIsArchived) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectListSetIsArchived.Merge(m, src) +} +func (m *RpcObjectListSetIsArchived) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectListSetIsArchived) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectListSetIsArchived.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectListSetIsArchived proto.InternalMessageInfo + +type RpcObjectListSetIsArchivedRequest struct { + ObjectIds []string `protobuf:"bytes,1,rep,name=objectIds,proto3" json:"objectIds,omitempty"` + IsArchived bool `protobuf:"varint,2,opt,name=isArchived,proto3" json:"isArchived,omitempty"` +} + +func (m *RpcObjectListSetIsArchivedRequest) Reset() { *m = RpcObjectListSetIsArchivedRequest{} } +func (m *RpcObjectListSetIsArchivedRequest) String() string { return proto.CompactTextString(m) } +func (*RpcObjectListSetIsArchivedRequest) ProtoMessage() {} +func (*RpcObjectListSetIsArchivedRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 27, 0} +} +func (m *RpcObjectListSetIsArchivedRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectListSetIsArchivedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectListSetIsArchivedRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectListSetIsArchivedRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectListSetIsArchivedRequest.Merge(m, src) +} +func (m *RpcObjectListSetIsArchivedRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectListSetIsArchivedRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectListSetIsArchivedRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectListSetIsArchivedRequest proto.InternalMessageInfo + +func (m *RpcObjectListSetIsArchivedRequest) GetObjectIds() []string { + if m != nil { + return m.ObjectIds + } + return nil +} + +func (m *RpcObjectListSetIsArchivedRequest) GetIsArchived() bool { + if m != nil { + return m.IsArchived + } + return false +} + +type RpcObjectListSetIsArchivedResponse struct { + Error *RpcObjectListSetIsArchivedResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +} + +func (m *RpcObjectListSetIsArchivedResponse) Reset() { *m = RpcObjectListSetIsArchivedResponse{} } +func (m *RpcObjectListSetIsArchivedResponse) String() string { return proto.CompactTextString(m) } +func (*RpcObjectListSetIsArchivedResponse) ProtoMessage() {} +func (*RpcObjectListSetIsArchivedResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 27, 1} +} +func (m *RpcObjectListSetIsArchivedResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectListSetIsArchivedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectListSetIsArchivedResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectListSetIsArchivedResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectListSetIsArchivedResponse.Merge(m, src) +} +func (m *RpcObjectListSetIsArchivedResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectListSetIsArchivedResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectListSetIsArchivedResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectListSetIsArchivedResponse proto.InternalMessageInfo + +func (m *RpcObjectListSetIsArchivedResponse) GetError() *RpcObjectListSetIsArchivedResponseError { + if m != nil { + return m.Error + } + return nil +} + +type RpcObjectListSetIsArchivedResponseError struct { + Code RpcObjectListSetIsArchivedResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectListSetIsArchivedResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcObjectListSetIsArchivedResponseError) Reset() { + *m = RpcObjectListSetIsArchivedResponseError{} +} +func (m *RpcObjectListSetIsArchivedResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcObjectListSetIsArchivedResponseError) ProtoMessage() {} +func (*RpcObjectListSetIsArchivedResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 27, 1, 0} +} +func (m *RpcObjectListSetIsArchivedResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectListSetIsArchivedResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectListSetIsArchivedResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectListSetIsArchivedResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectListSetIsArchivedResponseError.Merge(m, src) +} +func (m *RpcObjectListSetIsArchivedResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectListSetIsArchivedResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectListSetIsArchivedResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectListSetIsArchivedResponseError proto.InternalMessageInfo + +func (m *RpcObjectListSetIsArchivedResponseError) GetCode() RpcObjectListSetIsArchivedResponseErrorCode { + if m != nil { + return m.Code + } + return RpcObjectListSetIsArchivedResponseError_NULL +} + +func (m *RpcObjectListSetIsArchivedResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcObjectListSetIsFavorite struct { +} + +func (m *RpcObjectListSetIsFavorite) Reset() { *m = RpcObjectListSetIsFavorite{} } +func (m *RpcObjectListSetIsFavorite) String() string { return proto.CompactTextString(m) } +func (*RpcObjectListSetIsFavorite) ProtoMessage() {} +func (*RpcObjectListSetIsFavorite) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 28} +} +func (m *RpcObjectListSetIsFavorite) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectListSetIsFavorite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectListSetIsFavorite.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectListSetIsFavorite) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectListSetIsFavorite.Merge(m, src) +} +func (m *RpcObjectListSetIsFavorite) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectListSetIsFavorite) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectListSetIsFavorite.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectListSetIsFavorite proto.InternalMessageInfo + +type RpcObjectListSetIsFavoriteRequest struct { + ObjectIds []string `protobuf:"bytes,1,rep,name=objectIds,proto3" json:"objectIds,omitempty"` + IsFavorite bool `protobuf:"varint,2,opt,name=isFavorite,proto3" json:"isFavorite,omitempty"` +} + +func (m *RpcObjectListSetIsFavoriteRequest) Reset() { *m = RpcObjectListSetIsFavoriteRequest{} } +func (m *RpcObjectListSetIsFavoriteRequest) String() string { return proto.CompactTextString(m) } +func (*RpcObjectListSetIsFavoriteRequest) ProtoMessage() {} +func (*RpcObjectListSetIsFavoriteRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 28, 0} +} +func (m *RpcObjectListSetIsFavoriteRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectListSetIsFavoriteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectListSetIsFavoriteRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectListSetIsFavoriteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectListSetIsFavoriteRequest.Merge(m, src) +} +func (m *RpcObjectListSetIsFavoriteRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectListSetIsFavoriteRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectListSetIsFavoriteRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectListSetIsFavoriteRequest proto.InternalMessageInfo + +func (m *RpcObjectListSetIsFavoriteRequest) GetObjectIds() []string { + if m != nil { + return m.ObjectIds + } + return nil +} + +func (m *RpcObjectListSetIsFavoriteRequest) GetIsFavorite() bool { + if m != nil { + return m.IsFavorite + } + return false +} + +type RpcObjectListSetIsFavoriteResponse struct { + Error *RpcObjectListSetIsFavoriteResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +} + +func (m *RpcObjectListSetIsFavoriteResponse) Reset() { *m = RpcObjectListSetIsFavoriteResponse{} } +func (m *RpcObjectListSetIsFavoriteResponse) String() string { return proto.CompactTextString(m) } +func (*RpcObjectListSetIsFavoriteResponse) ProtoMessage() {} +func (*RpcObjectListSetIsFavoriteResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 28, 1} +} +func (m *RpcObjectListSetIsFavoriteResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectListSetIsFavoriteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectListSetIsFavoriteResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectListSetIsFavoriteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectListSetIsFavoriteResponse.Merge(m, src) +} +func (m *RpcObjectListSetIsFavoriteResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectListSetIsFavoriteResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectListSetIsFavoriteResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectListSetIsFavoriteResponse proto.InternalMessageInfo + +func (m *RpcObjectListSetIsFavoriteResponse) GetError() *RpcObjectListSetIsFavoriteResponseError { + if m != nil { + return m.Error + } + return nil +} + +type RpcObjectListSetIsFavoriteResponseError struct { + Code RpcObjectListSetIsFavoriteResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectListSetIsFavoriteResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcObjectListSetIsFavoriteResponseError) Reset() { + *m = RpcObjectListSetIsFavoriteResponseError{} +} +func (m *RpcObjectListSetIsFavoriteResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcObjectListSetIsFavoriteResponseError) ProtoMessage() {} +func (*RpcObjectListSetIsFavoriteResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 28, 1, 0} +} +func (m *RpcObjectListSetIsFavoriteResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectListSetIsFavoriteResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectListSetIsFavoriteResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectListSetIsFavoriteResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectListSetIsFavoriteResponseError.Merge(m, src) +} +func (m *RpcObjectListSetIsFavoriteResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectListSetIsFavoriteResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectListSetIsFavoriteResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectListSetIsFavoriteResponseError proto.InternalMessageInfo + +func (m *RpcObjectListSetIsFavoriteResponseError) GetCode() RpcObjectListSetIsFavoriteResponseErrorCode { + if m != nil { + return m.Code + } + return RpcObjectListSetIsFavoriteResponseError_NULL +} + +func (m *RpcObjectListSetIsFavoriteResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcObjectApplyTemplate struct { +} + +func (m *RpcObjectApplyTemplate) Reset() { *m = RpcObjectApplyTemplate{} } +func (m *RpcObjectApplyTemplate) String() string { return proto.CompactTextString(m) } +func (*RpcObjectApplyTemplate) ProtoMessage() {} +func (*RpcObjectApplyTemplate) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 29} +} +func (m *RpcObjectApplyTemplate) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectApplyTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectApplyTemplate.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectApplyTemplate) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectApplyTemplate.Merge(m, src) +} +func (m *RpcObjectApplyTemplate) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectApplyTemplate) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectApplyTemplate.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectApplyTemplate proto.InternalMessageInfo + +type RpcObjectApplyTemplateRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + // id of template + TemplateId string `protobuf:"bytes,2,opt,name=templateId,proto3" json:"templateId,omitempty"` +} + +func (m *RpcObjectApplyTemplateRequest) Reset() { *m = RpcObjectApplyTemplateRequest{} } +func (m *RpcObjectApplyTemplateRequest) String() string { return proto.CompactTextString(m) } +func (*RpcObjectApplyTemplateRequest) ProtoMessage() {} +func (*RpcObjectApplyTemplateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 29, 0} +} +func (m *RpcObjectApplyTemplateRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectApplyTemplateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectApplyTemplateRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectApplyTemplateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectApplyTemplateRequest.Merge(m, src) +} +func (m *RpcObjectApplyTemplateRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectApplyTemplateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectApplyTemplateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectApplyTemplateRequest proto.InternalMessageInfo + +func (m *RpcObjectApplyTemplateRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcObjectApplyTemplateRequest) GetTemplateId() string { + if m != nil { + return m.TemplateId + } + return "" +} + +type RpcObjectApplyTemplateResponse struct { + Error *RpcObjectApplyTemplateResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +} + +func (m *RpcObjectApplyTemplateResponse) Reset() { *m = RpcObjectApplyTemplateResponse{} } +func (m *RpcObjectApplyTemplateResponse) String() string { return proto.CompactTextString(m) } +func (*RpcObjectApplyTemplateResponse) ProtoMessage() {} +func (*RpcObjectApplyTemplateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 29, 1} +} +func (m *RpcObjectApplyTemplateResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectApplyTemplateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectApplyTemplateResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectApplyTemplateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectApplyTemplateResponse.Merge(m, src) +} +func (m *RpcObjectApplyTemplateResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectApplyTemplateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectApplyTemplateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectApplyTemplateResponse proto.InternalMessageInfo + +func (m *RpcObjectApplyTemplateResponse) GetError() *RpcObjectApplyTemplateResponseError { + if m != nil { + return m.Error + } + return nil +} + +type RpcObjectApplyTemplateResponseError struct { + Code RpcObjectApplyTemplateResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectApplyTemplateResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcObjectApplyTemplateResponseError) Reset() { *m = RpcObjectApplyTemplateResponseError{} } +func (m *RpcObjectApplyTemplateResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcObjectApplyTemplateResponseError) ProtoMessage() {} +func (*RpcObjectApplyTemplateResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 29, 1, 0} +} +func (m *RpcObjectApplyTemplateResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectApplyTemplateResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectApplyTemplateResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectApplyTemplateResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectApplyTemplateResponseError.Merge(m, src) +} +func (m *RpcObjectApplyTemplateResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectApplyTemplateResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectApplyTemplateResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectApplyTemplateResponseError proto.InternalMessageInfo + +func (m *RpcObjectApplyTemplateResponseError) GetCode() RpcObjectApplyTemplateResponseErrorCode { + if m != nil { + return m.Code + } + return RpcObjectApplyTemplateResponseError_NULL +} + +func (m *RpcObjectApplyTemplateResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcObjectListExport struct { +} + +func (m *RpcObjectListExport) Reset() { *m = RpcObjectListExport{} } +func (m *RpcObjectListExport) String() string { return proto.CompactTextString(m) } +func (*RpcObjectListExport) ProtoMessage() {} +func (*RpcObjectListExport) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 30} +} +func (m *RpcObjectListExport) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectListExport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectListExport.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectListExport) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectListExport.Merge(m, src) +} +func (m *RpcObjectListExport) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectListExport) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectListExport.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectListExport proto.InternalMessageInfo + +type RpcObjectListExportRequest struct { + // the path where export files will place + Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` + // ids of documents for export, when empty - will export all available docs + ObjectIds []string `protobuf:"bytes,2,rep,name=objectIds,proto3" json:"objectIds,omitempty"` + // export format + Format RpcObjectListExportFormat `protobuf:"varint,3,opt,name=format,proto3,enum=anytype.RpcObjectListExportFormat" json:"format,omitempty"` + // save as zip file + Zip bool `protobuf:"varint,4,opt,name=zip,proto3" json:"zip,omitempty"` + // include all nested + IncludeNested bool `protobuf:"varint,5,opt,name=includeNested,proto3" json:"includeNested,omitempty"` + // include all files + IncludeFiles bool `protobuf:"varint,6,opt,name=includeFiles,proto3" json:"includeFiles,omitempty"` +} + +func (m *RpcObjectListExportRequest) Reset() { *m = RpcObjectListExportRequest{} } +func (m *RpcObjectListExportRequest) String() string { return proto.CompactTextString(m) } +func (*RpcObjectListExportRequest) ProtoMessage() {} +func (*RpcObjectListExportRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 30, 0} +} +func (m *RpcObjectListExportRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectListExportRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectListExportRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectListExportRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectListExportRequest.Merge(m, src) +} +func (m *RpcObjectListExportRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectListExportRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectListExportRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectListExportRequest proto.InternalMessageInfo + +func (m *RpcObjectListExportRequest) GetPath() string { + if m != nil { + return m.Path + } + return "" +} + +func (m *RpcObjectListExportRequest) GetObjectIds() []string { + if m != nil { + return m.ObjectIds + } + return nil +} + +func (m *RpcObjectListExportRequest) GetFormat() RpcObjectListExportFormat { + if m != nil { + return m.Format + } + return RpcObjectListExport_Markdown +} + +func (m *RpcObjectListExportRequest) GetZip() bool { + if m != nil { + return m.Zip + } + return false +} + +func (m *RpcObjectListExportRequest) GetIncludeNested() bool { + if m != nil { + return m.IncludeNested + } + return false +} + +func (m *RpcObjectListExportRequest) GetIncludeFiles() bool { + if m != nil { + return m.IncludeFiles + } + return false +} + +type RpcObjectListExportResponse struct { + Error *RpcObjectListExportResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` + Succeed int32 `protobuf:"varint,4,opt,name=succeed,proto3" json:"succeed,omitempty"` + Event *ResponseEvent `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcObjectListExportResponse) Reset() { *m = RpcObjectListExportResponse{} } +func (m *RpcObjectListExportResponse) String() string { return proto.CompactTextString(m) } +func (*RpcObjectListExportResponse) ProtoMessage() {} +func (*RpcObjectListExportResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 30, 1} +} +func (m *RpcObjectListExportResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectListExportResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectListExportResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectListExportResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectListExportResponse.Merge(m, src) +} +func (m *RpcObjectListExportResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectListExportResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectListExportResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectListExportResponse proto.InternalMessageInfo + +func (m *RpcObjectListExportResponse) GetError() *RpcObjectListExportResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcObjectListExportResponse) GetPath() string { + if m != nil { + return m.Path + } + return "" +} + +func (m *RpcObjectListExportResponse) GetSucceed() int32 { + if m != nil { + return m.Succeed + } + return 0 +} + +func (m *RpcObjectListExportResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcObjectListExportResponseError struct { + Code RpcObjectListExportResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectListExportResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcObjectListExportResponseError) Reset() { *m = RpcObjectListExportResponseError{} } +func (m *RpcObjectListExportResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcObjectListExportResponseError) ProtoMessage() {} +func (*RpcObjectListExportResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 4, 30, 1, 0} +} +func (m *RpcObjectListExportResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectListExportResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectListExportResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectListExportResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectListExportResponseError.Merge(m, src) +} +func (m *RpcObjectListExportResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectListExportResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectListExportResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectListExportResponseError proto.InternalMessageInfo + +func (m *RpcObjectListExportResponseError) GetCode() RpcObjectListExportResponseErrorCode { + if m != nil { + return m.Code + } + return RpcObjectListExportResponseError_NULL +} + +func (m *RpcObjectListExportResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcObjectRelation struct { +} + +func (m *RpcObjectRelation) Reset() { *m = RpcObjectRelation{} } +func (m *RpcObjectRelation) String() string { return proto.CompactTextString(m) } +func (*RpcObjectRelation) ProtoMessage() {} +func (*RpcObjectRelation) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 5} +} +func (m *RpcObjectRelation) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectRelation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectRelation.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectRelation) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectRelation.Merge(m, src) +} +func (m *RpcObjectRelation) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectRelation) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectRelation.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectRelation proto.InternalMessageInfo + +type RpcObjectRelationAdd struct { +} + +func (m *RpcObjectRelationAdd) Reset() { *m = RpcObjectRelationAdd{} } +func (m *RpcObjectRelationAdd) String() string { return proto.CompactTextString(m) } +func (*RpcObjectRelationAdd) ProtoMessage() {} +func (*RpcObjectRelationAdd) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 5, 0} +} +func (m *RpcObjectRelationAdd) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectRelationAdd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectRelationAdd.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectRelationAdd) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectRelationAdd.Merge(m, src) +} +func (m *RpcObjectRelationAdd) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectRelationAdd) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectRelationAdd.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectRelationAdd proto.InternalMessageInfo + +type RpcObjectRelationAddRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + Relation *model.Relation `protobuf:"bytes,2,opt,name=relation,proto3" json:"relation,omitempty"` +} + +func (m *RpcObjectRelationAddRequest) Reset() { *m = RpcObjectRelationAddRequest{} } +func (m *RpcObjectRelationAddRequest) String() string { return proto.CompactTextString(m) } +func (*RpcObjectRelationAddRequest) ProtoMessage() {} +func (*RpcObjectRelationAddRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 5, 0, 0} +} +func (m *RpcObjectRelationAddRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectRelationAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectRelationAddRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectRelationAddRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectRelationAddRequest.Merge(m, src) +} +func (m *RpcObjectRelationAddRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectRelationAddRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectRelationAddRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectRelationAddRequest proto.InternalMessageInfo + +func (m *RpcObjectRelationAddRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcObjectRelationAddRequest) GetRelation() *model.Relation { + if m != nil { + return m.Relation + } + return nil +} + +type RpcObjectRelationAddResponse struct { + Error *RpcObjectRelationAddResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` + RelationKey string `protobuf:"bytes,3,opt,name=relationKey,proto3" json:"relationKey,omitempty"` + Relation *model.Relation `protobuf:"bytes,4,opt,name=relation,proto3" json:"relation,omitempty"` +} + +func (m *RpcObjectRelationAddResponse) Reset() { *m = RpcObjectRelationAddResponse{} } +func (m *RpcObjectRelationAddResponse) String() string { return proto.CompactTextString(m) } +func (*RpcObjectRelationAddResponse) ProtoMessage() {} +func (*RpcObjectRelationAddResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 5, 0, 1} +} +func (m *RpcObjectRelationAddResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectRelationAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectRelationAddResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectRelationAddResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectRelationAddResponse.Merge(m, src) +} +func (m *RpcObjectRelationAddResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectRelationAddResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectRelationAddResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectRelationAddResponse proto.InternalMessageInfo + +func (m *RpcObjectRelationAddResponse) GetError() *RpcObjectRelationAddResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcObjectRelationAddResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +func (m *RpcObjectRelationAddResponse) GetRelationKey() string { + if m != nil { + return m.RelationKey + } + return "" +} + +func (m *RpcObjectRelationAddResponse) GetRelation() *model.Relation { + if m != nil { + return m.Relation + } + return nil +} + +type RpcObjectRelationAddResponseError struct { + Code RpcObjectRelationAddResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectRelationAddResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcObjectRelationAddResponseError) Reset() { *m = RpcObjectRelationAddResponseError{} } +func (m *RpcObjectRelationAddResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcObjectRelationAddResponseError) ProtoMessage() {} +func (*RpcObjectRelationAddResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 5, 0, 1, 0} +} +func (m *RpcObjectRelationAddResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectRelationAddResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectRelationAddResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectRelationAddResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectRelationAddResponseError.Merge(m, src) +} +func (m *RpcObjectRelationAddResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectRelationAddResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectRelationAddResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectRelationAddResponseError proto.InternalMessageInfo + +func (m *RpcObjectRelationAddResponseError) GetCode() RpcObjectRelationAddResponseErrorCode { + if m != nil { + return m.Code + } + return RpcObjectRelationAddResponseError_NULL +} + +func (m *RpcObjectRelationAddResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcObjectRelationUpdate struct { +} + +func (m *RpcObjectRelationUpdate) Reset() { *m = RpcObjectRelationUpdate{} } +func (m *RpcObjectRelationUpdate) String() string { return proto.CompactTextString(m) } +func (*RpcObjectRelationUpdate) ProtoMessage() {} +func (*RpcObjectRelationUpdate) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 5, 1} +} +func (m *RpcObjectRelationUpdate) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectRelationUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectRelationUpdate.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectRelationUpdate) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectRelationUpdate.Merge(m, src) +} +func (m *RpcObjectRelationUpdate) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectRelationUpdate) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectRelationUpdate.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectRelationUpdate proto.InternalMessageInfo + +type RpcObjectRelationUpdateRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + RelationKey string `protobuf:"bytes,2,opt,name=relationKey,proto3" json:"relationKey,omitempty"` + Relation *model.Relation `protobuf:"bytes,3,opt,name=relation,proto3" json:"relation,omitempty"` +} + +func (m *RpcObjectRelationUpdateRequest) Reset() { *m = RpcObjectRelationUpdateRequest{} } +func (m *RpcObjectRelationUpdateRequest) String() string { return proto.CompactTextString(m) } +func (*RpcObjectRelationUpdateRequest) ProtoMessage() {} +func (*RpcObjectRelationUpdateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 5, 1, 0} +} +func (m *RpcObjectRelationUpdateRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectRelationUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectRelationUpdateRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectRelationUpdateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectRelationUpdateRequest.Merge(m, src) +} +func (m *RpcObjectRelationUpdateRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectRelationUpdateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectRelationUpdateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectRelationUpdateRequest proto.InternalMessageInfo + +func (m *RpcObjectRelationUpdateRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcObjectRelationUpdateRequest) GetRelationKey() string { + if m != nil { + return m.RelationKey + } + return "" +} + +func (m *RpcObjectRelationUpdateRequest) GetRelation() *model.Relation { + if m != nil { + return m.Relation + } + return nil +} + +type RpcObjectRelationUpdateResponse struct { + Error *RpcObjectRelationUpdateResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcObjectRelationUpdateResponse) Reset() { *m = RpcObjectRelationUpdateResponse{} } +func (m *RpcObjectRelationUpdateResponse) String() string { return proto.CompactTextString(m) } +func (*RpcObjectRelationUpdateResponse) ProtoMessage() {} +func (*RpcObjectRelationUpdateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 5, 1, 1} +} +func (m *RpcObjectRelationUpdateResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectRelationUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectRelationUpdateResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectRelationUpdateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectRelationUpdateResponse.Merge(m, src) +} +func (m *RpcObjectRelationUpdateResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectRelationUpdateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectRelationUpdateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectRelationUpdateResponse proto.InternalMessageInfo + +func (m *RpcObjectRelationUpdateResponse) GetError() *RpcObjectRelationUpdateResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcObjectRelationUpdateResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcObjectRelationUpdateResponseError struct { + Code RpcObjectRelationUpdateResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectRelationUpdateResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcObjectRelationUpdateResponseError) Reset() { *m = RpcObjectRelationUpdateResponseError{} } +func (m *RpcObjectRelationUpdateResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcObjectRelationUpdateResponseError) ProtoMessage() {} +func (*RpcObjectRelationUpdateResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 5, 1, 1, 0} +} +func (m *RpcObjectRelationUpdateResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectRelationUpdateResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectRelationUpdateResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectRelationUpdateResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectRelationUpdateResponseError.Merge(m, src) +} +func (m *RpcObjectRelationUpdateResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectRelationUpdateResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectRelationUpdateResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectRelationUpdateResponseError proto.InternalMessageInfo + +func (m *RpcObjectRelationUpdateResponseError) GetCode() RpcObjectRelationUpdateResponseErrorCode { + if m != nil { + return m.Code + } + return RpcObjectRelationUpdateResponseError_NULL +} + +func (m *RpcObjectRelationUpdateResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcObjectRelationDelete struct { +} + +func (m *RpcObjectRelationDelete) Reset() { *m = RpcObjectRelationDelete{} } +func (m *RpcObjectRelationDelete) String() string { return proto.CompactTextString(m) } +func (*RpcObjectRelationDelete) ProtoMessage() {} +func (*RpcObjectRelationDelete) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 5, 2} +} +func (m *RpcObjectRelationDelete) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectRelationDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectRelationDelete.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectRelationDelete) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectRelationDelete.Merge(m, src) +} +func (m *RpcObjectRelationDelete) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectRelationDelete) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectRelationDelete.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectRelationDelete proto.InternalMessageInfo + +type RpcObjectRelationDeleteRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + RelationKey string `protobuf:"bytes,2,opt,name=relationKey,proto3" json:"relationKey,omitempty"` +} + +func (m *RpcObjectRelationDeleteRequest) Reset() { *m = RpcObjectRelationDeleteRequest{} } +func (m *RpcObjectRelationDeleteRequest) String() string { return proto.CompactTextString(m) } +func (*RpcObjectRelationDeleteRequest) ProtoMessage() {} +func (*RpcObjectRelationDeleteRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 5, 2, 0} +} +func (m *RpcObjectRelationDeleteRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectRelationDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectRelationDeleteRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectRelationDeleteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectRelationDeleteRequest.Merge(m, src) +} +func (m *RpcObjectRelationDeleteRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectRelationDeleteRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectRelationDeleteRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectRelationDeleteRequest proto.InternalMessageInfo + +func (m *RpcObjectRelationDeleteRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcObjectRelationDeleteRequest) GetRelationKey() string { + if m != nil { + return m.RelationKey + } + return "" +} + +type RpcObjectRelationDeleteResponse struct { + Error *RpcObjectRelationDeleteResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcObjectRelationDeleteResponse) Reset() { *m = RpcObjectRelationDeleteResponse{} } +func (m *RpcObjectRelationDeleteResponse) String() string { return proto.CompactTextString(m) } +func (*RpcObjectRelationDeleteResponse) ProtoMessage() {} +func (*RpcObjectRelationDeleteResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 5, 2, 1} +} +func (m *RpcObjectRelationDeleteResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectRelationDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectRelationDeleteResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectRelationDeleteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectRelationDeleteResponse.Merge(m, src) +} +func (m *RpcObjectRelationDeleteResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectRelationDeleteResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectRelationDeleteResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectRelationDeleteResponse proto.InternalMessageInfo + +func (m *RpcObjectRelationDeleteResponse) GetError() *RpcObjectRelationDeleteResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcObjectRelationDeleteResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcObjectRelationDeleteResponseError struct { + Code RpcObjectRelationDeleteResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectRelationDeleteResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcObjectRelationDeleteResponseError) Reset() { *m = RpcObjectRelationDeleteResponseError{} } +func (m *RpcObjectRelationDeleteResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcObjectRelationDeleteResponseError) ProtoMessage() {} +func (*RpcObjectRelationDeleteResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 5, 2, 1, 0} +} +func (m *RpcObjectRelationDeleteResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectRelationDeleteResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectRelationDeleteResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectRelationDeleteResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectRelationDeleteResponseError.Merge(m, src) +} +func (m *RpcObjectRelationDeleteResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectRelationDeleteResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectRelationDeleteResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectRelationDeleteResponseError proto.InternalMessageInfo + +func (m *RpcObjectRelationDeleteResponseError) GetCode() RpcObjectRelationDeleteResponseErrorCode { + if m != nil { + return m.Code + } + return RpcObjectRelationDeleteResponseError_NULL +} + +func (m *RpcObjectRelationDeleteResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcObjectRelationListAvailable struct { +} + +func (m *RpcObjectRelationListAvailable) Reset() { *m = RpcObjectRelationListAvailable{} } +func (m *RpcObjectRelationListAvailable) String() string { return proto.CompactTextString(m) } +func (*RpcObjectRelationListAvailable) ProtoMessage() {} +func (*RpcObjectRelationListAvailable) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 5, 3} +} +func (m *RpcObjectRelationListAvailable) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectRelationListAvailable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectRelationListAvailable.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectRelationListAvailable) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectRelationListAvailable.Merge(m, src) +} +func (m *RpcObjectRelationListAvailable) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectRelationListAvailable) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectRelationListAvailable.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectRelationListAvailable proto.InternalMessageInfo + +type RpcObjectRelationListAvailableRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` +} + +func (m *RpcObjectRelationListAvailableRequest) Reset() { *m = RpcObjectRelationListAvailableRequest{} } +func (m *RpcObjectRelationListAvailableRequest) String() string { return proto.CompactTextString(m) } +func (*RpcObjectRelationListAvailableRequest) ProtoMessage() {} +func (*RpcObjectRelationListAvailableRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 5, 3, 0} +} +func (m *RpcObjectRelationListAvailableRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectRelationListAvailableRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectRelationListAvailableRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectRelationListAvailableRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectRelationListAvailableRequest.Merge(m, src) +} +func (m *RpcObjectRelationListAvailableRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectRelationListAvailableRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectRelationListAvailableRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectRelationListAvailableRequest proto.InternalMessageInfo + +func (m *RpcObjectRelationListAvailableRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +type RpcObjectRelationListAvailableResponse struct { + Error *RpcObjectRelationListAvailableResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Relations []*model.Relation `protobuf:"bytes,2,rep,name=relations,proto3" json:"relations,omitempty"` +} + +func (m *RpcObjectRelationListAvailableResponse) Reset() { + *m = RpcObjectRelationListAvailableResponse{} +} +func (m *RpcObjectRelationListAvailableResponse) String() string { return proto.CompactTextString(m) } +func (*RpcObjectRelationListAvailableResponse) ProtoMessage() {} +func (*RpcObjectRelationListAvailableResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 5, 3, 1} +} +func (m *RpcObjectRelationListAvailableResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectRelationListAvailableResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectRelationListAvailableResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectRelationListAvailableResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectRelationListAvailableResponse.Merge(m, src) +} +func (m *RpcObjectRelationListAvailableResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectRelationListAvailableResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectRelationListAvailableResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectRelationListAvailableResponse proto.InternalMessageInfo + +func (m *RpcObjectRelationListAvailableResponse) GetError() *RpcObjectRelationListAvailableResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcObjectRelationListAvailableResponse) GetRelations() []*model.Relation { + if m != nil { + return m.Relations + } + return nil +} + +type RpcObjectRelationListAvailableResponseError struct { + Code RpcObjectRelationListAvailableResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectRelationListAvailableResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcObjectRelationListAvailableResponseError) Reset() { + *m = RpcObjectRelationListAvailableResponseError{} +} +func (m *RpcObjectRelationListAvailableResponseError) String() string { + return proto.CompactTextString(m) +} +func (*RpcObjectRelationListAvailableResponseError) ProtoMessage() {} +func (*RpcObjectRelationListAvailableResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 5, 3, 1, 0} +} +func (m *RpcObjectRelationListAvailableResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectRelationListAvailableResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectRelationListAvailableResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectRelationListAvailableResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectRelationListAvailableResponseError.Merge(m, src) +} +func (m *RpcObjectRelationListAvailableResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectRelationListAvailableResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectRelationListAvailableResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectRelationListAvailableResponseError proto.InternalMessageInfo + +func (m *RpcObjectRelationListAvailableResponseError) GetCode() RpcObjectRelationListAvailableResponseErrorCode { + if m != nil { + return m.Code + } + return RpcObjectRelationListAvailableResponseError_NULL +} + +func (m *RpcObjectRelationListAvailableResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcObjectRelationAddFeatured struct { +} + +func (m *RpcObjectRelationAddFeatured) Reset() { *m = RpcObjectRelationAddFeatured{} } +func (m *RpcObjectRelationAddFeatured) String() string { return proto.CompactTextString(m) } +func (*RpcObjectRelationAddFeatured) ProtoMessage() {} +func (*RpcObjectRelationAddFeatured) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 5, 4} +} +func (m *RpcObjectRelationAddFeatured) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectRelationAddFeatured) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectRelationAddFeatured.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectRelationAddFeatured) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectRelationAddFeatured.Merge(m, src) +} +func (m *RpcObjectRelationAddFeatured) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectRelationAddFeatured) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectRelationAddFeatured.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectRelationAddFeatured proto.InternalMessageInfo + +type RpcObjectRelationAddFeaturedRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + Relations []string `protobuf:"bytes,2,rep,name=relations,proto3" json:"relations,omitempty"` +} + +func (m *RpcObjectRelationAddFeaturedRequest) Reset() { *m = RpcObjectRelationAddFeaturedRequest{} } +func (m *RpcObjectRelationAddFeaturedRequest) String() string { return proto.CompactTextString(m) } +func (*RpcObjectRelationAddFeaturedRequest) ProtoMessage() {} +func (*RpcObjectRelationAddFeaturedRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 5, 4, 0} +} +func (m *RpcObjectRelationAddFeaturedRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectRelationAddFeaturedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectRelationAddFeaturedRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectRelationAddFeaturedRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectRelationAddFeaturedRequest.Merge(m, src) +} +func (m *RpcObjectRelationAddFeaturedRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectRelationAddFeaturedRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectRelationAddFeaturedRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectRelationAddFeaturedRequest proto.InternalMessageInfo + +func (m *RpcObjectRelationAddFeaturedRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcObjectRelationAddFeaturedRequest) GetRelations() []string { + if m != nil { + return m.Relations + } + return nil +} + +type RpcObjectRelationAddFeaturedResponse struct { + Error *RpcObjectRelationAddFeaturedResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcObjectRelationAddFeaturedResponse) Reset() { *m = RpcObjectRelationAddFeaturedResponse{} } +func (m *RpcObjectRelationAddFeaturedResponse) String() string { return proto.CompactTextString(m) } +func (*RpcObjectRelationAddFeaturedResponse) ProtoMessage() {} +func (*RpcObjectRelationAddFeaturedResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 5, 4, 1} +} +func (m *RpcObjectRelationAddFeaturedResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectRelationAddFeaturedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectRelationAddFeaturedResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectRelationAddFeaturedResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectRelationAddFeaturedResponse.Merge(m, src) +} +func (m *RpcObjectRelationAddFeaturedResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectRelationAddFeaturedResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectRelationAddFeaturedResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectRelationAddFeaturedResponse proto.InternalMessageInfo + +func (m *RpcObjectRelationAddFeaturedResponse) GetError() *RpcObjectRelationAddFeaturedResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcObjectRelationAddFeaturedResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcObjectRelationAddFeaturedResponseError struct { + Code RpcObjectRelationAddFeaturedResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectRelationAddFeaturedResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcObjectRelationAddFeaturedResponseError) Reset() { + *m = RpcObjectRelationAddFeaturedResponseError{} +} +func (m *RpcObjectRelationAddFeaturedResponseError) String() string { + return proto.CompactTextString(m) +} +func (*RpcObjectRelationAddFeaturedResponseError) ProtoMessage() {} +func (*RpcObjectRelationAddFeaturedResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 5, 4, 1, 0} +} +func (m *RpcObjectRelationAddFeaturedResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectRelationAddFeaturedResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectRelationAddFeaturedResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectRelationAddFeaturedResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectRelationAddFeaturedResponseError.Merge(m, src) +} +func (m *RpcObjectRelationAddFeaturedResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectRelationAddFeaturedResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectRelationAddFeaturedResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectRelationAddFeaturedResponseError proto.InternalMessageInfo + +func (m *RpcObjectRelationAddFeaturedResponseError) GetCode() RpcObjectRelationAddFeaturedResponseErrorCode { + if m != nil { + return m.Code + } + return RpcObjectRelationAddFeaturedResponseError_NULL +} + +func (m *RpcObjectRelationAddFeaturedResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcObjectRelationRemoveFeatured struct { +} + +func (m *RpcObjectRelationRemoveFeatured) Reset() { *m = RpcObjectRelationRemoveFeatured{} } +func (m *RpcObjectRelationRemoveFeatured) String() string { return proto.CompactTextString(m) } +func (*RpcObjectRelationRemoveFeatured) ProtoMessage() {} +func (*RpcObjectRelationRemoveFeatured) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 5, 5} +} +func (m *RpcObjectRelationRemoveFeatured) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectRelationRemoveFeatured) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectRelationRemoveFeatured.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectRelationRemoveFeatured) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectRelationRemoveFeatured.Merge(m, src) +} +func (m *RpcObjectRelationRemoveFeatured) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectRelationRemoveFeatured) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectRelationRemoveFeatured.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectRelationRemoveFeatured proto.InternalMessageInfo + +type RpcObjectRelationRemoveFeaturedRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + Relations []string `protobuf:"bytes,2,rep,name=relations,proto3" json:"relations,omitempty"` +} + +func (m *RpcObjectRelationRemoveFeaturedRequest) Reset() { + *m = RpcObjectRelationRemoveFeaturedRequest{} +} +func (m *RpcObjectRelationRemoveFeaturedRequest) String() string { return proto.CompactTextString(m) } +func (*RpcObjectRelationRemoveFeaturedRequest) ProtoMessage() {} +func (*RpcObjectRelationRemoveFeaturedRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 5, 5, 0} +} +func (m *RpcObjectRelationRemoveFeaturedRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectRelationRemoveFeaturedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectRelationRemoveFeaturedRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectRelationRemoveFeaturedRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectRelationRemoveFeaturedRequest.Merge(m, src) +} +func (m *RpcObjectRelationRemoveFeaturedRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectRelationRemoveFeaturedRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectRelationRemoveFeaturedRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectRelationRemoveFeaturedRequest proto.InternalMessageInfo + +func (m *RpcObjectRelationRemoveFeaturedRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcObjectRelationRemoveFeaturedRequest) GetRelations() []string { + if m != nil { + return m.Relations + } + return nil +} + +type RpcObjectRelationRemoveFeaturedResponse struct { + Error *RpcObjectRelationRemoveFeaturedResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcObjectRelationRemoveFeaturedResponse) Reset() { + *m = RpcObjectRelationRemoveFeaturedResponse{} +} +func (m *RpcObjectRelationRemoveFeaturedResponse) String() string { return proto.CompactTextString(m) } +func (*RpcObjectRelationRemoveFeaturedResponse) ProtoMessage() {} +func (*RpcObjectRelationRemoveFeaturedResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 5, 5, 1} +} +func (m *RpcObjectRelationRemoveFeaturedResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectRelationRemoveFeaturedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectRelationRemoveFeaturedResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectRelationRemoveFeaturedResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectRelationRemoveFeaturedResponse.Merge(m, src) +} +func (m *RpcObjectRelationRemoveFeaturedResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectRelationRemoveFeaturedResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectRelationRemoveFeaturedResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectRelationRemoveFeaturedResponse proto.InternalMessageInfo + +func (m *RpcObjectRelationRemoveFeaturedResponse) GetError() *RpcObjectRelationRemoveFeaturedResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcObjectRelationRemoveFeaturedResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcObjectRelationRemoveFeaturedResponseError struct { + Code RpcObjectRelationRemoveFeaturedResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectRelationRemoveFeaturedResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcObjectRelationRemoveFeaturedResponseError) Reset() { + *m = RpcObjectRelationRemoveFeaturedResponseError{} +} +func (m *RpcObjectRelationRemoveFeaturedResponseError) String() string { + return proto.CompactTextString(m) +} +func (*RpcObjectRelationRemoveFeaturedResponseError) ProtoMessage() {} +func (*RpcObjectRelationRemoveFeaturedResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 5, 5, 1, 0} +} +func (m *RpcObjectRelationRemoveFeaturedResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectRelationRemoveFeaturedResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectRelationRemoveFeaturedResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectRelationRemoveFeaturedResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectRelationRemoveFeaturedResponseError.Merge(m, src) +} +func (m *RpcObjectRelationRemoveFeaturedResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectRelationRemoveFeaturedResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectRelationRemoveFeaturedResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectRelationRemoveFeaturedResponseError proto.InternalMessageInfo + +func (m *RpcObjectRelationRemoveFeaturedResponseError) GetCode() RpcObjectRelationRemoveFeaturedResponseErrorCode { + if m != nil { + return m.Code + } + return RpcObjectRelationRemoveFeaturedResponseError_NULL +} + +func (m *RpcObjectRelationRemoveFeaturedResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcObjectRelationOption struct { +} + +func (m *RpcObjectRelationOption) Reset() { *m = RpcObjectRelationOption{} } +func (m *RpcObjectRelationOption) String() string { return proto.CompactTextString(m) } +func (*RpcObjectRelationOption) ProtoMessage() {} +func (*RpcObjectRelationOption) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 6} +} +func (m *RpcObjectRelationOption) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectRelationOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectRelationOption.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectRelationOption) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectRelationOption.Merge(m, src) +} +func (m *RpcObjectRelationOption) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectRelationOption) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectRelationOption.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectRelationOption proto.InternalMessageInfo + +type RpcObjectRelationOptionAdd struct { +} + +func (m *RpcObjectRelationOptionAdd) Reset() { *m = RpcObjectRelationOptionAdd{} } +func (m *RpcObjectRelationOptionAdd) String() string { return proto.CompactTextString(m) } +func (*RpcObjectRelationOptionAdd) ProtoMessage() {} +func (*RpcObjectRelationOptionAdd) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 6, 0} +} +func (m *RpcObjectRelationOptionAdd) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectRelationOptionAdd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectRelationOptionAdd.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectRelationOptionAdd) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectRelationOptionAdd.Merge(m, src) +} +func (m *RpcObjectRelationOptionAdd) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectRelationOptionAdd) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectRelationOptionAdd.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectRelationOptionAdd proto.InternalMessageInfo + +type RpcObjectRelationOptionAddRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + RelationKey string `protobuf:"bytes,2,opt,name=relationKey,proto3" json:"relationKey,omitempty"` + Option *model.RelationOption `protobuf:"bytes,3,opt,name=option,proto3" json:"option,omitempty"` +} + +func (m *RpcObjectRelationOptionAddRequest) Reset() { *m = RpcObjectRelationOptionAddRequest{} } +func (m *RpcObjectRelationOptionAddRequest) String() string { return proto.CompactTextString(m) } +func (*RpcObjectRelationOptionAddRequest) ProtoMessage() {} +func (*RpcObjectRelationOptionAddRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 6, 0, 0} +} +func (m *RpcObjectRelationOptionAddRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectRelationOptionAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectRelationOptionAddRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectRelationOptionAddRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectRelationOptionAddRequest.Merge(m, src) +} +func (m *RpcObjectRelationOptionAddRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectRelationOptionAddRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectRelationOptionAddRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectRelationOptionAddRequest proto.InternalMessageInfo + +func (m *RpcObjectRelationOptionAddRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcObjectRelationOptionAddRequest) GetRelationKey() string { + if m != nil { + return m.RelationKey + } + return "" +} + +func (m *RpcObjectRelationOptionAddRequest) GetOption() *model.RelationOption { + if m != nil { + return m.Option + } + return nil +} + +type RpcObjectRelationOptionAddResponse struct { + Error *RpcObjectRelationOptionAddResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` + Option *model.RelationOption `protobuf:"bytes,3,opt,name=option,proto3" json:"option,omitempty"` +} + +func (m *RpcObjectRelationOptionAddResponse) Reset() { *m = RpcObjectRelationOptionAddResponse{} } +func (m *RpcObjectRelationOptionAddResponse) String() string { return proto.CompactTextString(m) } +func (*RpcObjectRelationOptionAddResponse) ProtoMessage() {} +func (*RpcObjectRelationOptionAddResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 6, 0, 1} +} +func (m *RpcObjectRelationOptionAddResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectRelationOptionAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectRelationOptionAddResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectRelationOptionAddResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectRelationOptionAddResponse.Merge(m, src) +} +func (m *RpcObjectRelationOptionAddResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectRelationOptionAddResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectRelationOptionAddResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectRelationOptionAddResponse proto.InternalMessageInfo + +func (m *RpcObjectRelationOptionAddResponse) GetError() *RpcObjectRelationOptionAddResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcObjectRelationOptionAddResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +func (m *RpcObjectRelationOptionAddResponse) GetOption() *model.RelationOption { + if m != nil { + return m.Option + } + return nil +} + +type RpcObjectRelationOptionAddResponseError struct { + Code RpcObjectRelationOptionAddResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectRelationOptionAddResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcObjectRelationOptionAddResponseError) Reset() { + *m = RpcObjectRelationOptionAddResponseError{} +} +func (m *RpcObjectRelationOptionAddResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcObjectRelationOptionAddResponseError) ProtoMessage() {} +func (*RpcObjectRelationOptionAddResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 6, 0, 1, 0} +} +func (m *RpcObjectRelationOptionAddResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectRelationOptionAddResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectRelationOptionAddResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectRelationOptionAddResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectRelationOptionAddResponseError.Merge(m, src) +} +func (m *RpcObjectRelationOptionAddResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectRelationOptionAddResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectRelationOptionAddResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectRelationOptionAddResponseError proto.InternalMessageInfo + +func (m *RpcObjectRelationOptionAddResponseError) GetCode() RpcObjectRelationOptionAddResponseErrorCode { + if m != nil { + return m.Code + } + return RpcObjectRelationOptionAddResponseError_NULL +} + +func (m *RpcObjectRelationOptionAddResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcObjectRelationOptionUpdate struct { +} + +func (m *RpcObjectRelationOptionUpdate) Reset() { *m = RpcObjectRelationOptionUpdate{} } +func (m *RpcObjectRelationOptionUpdate) String() string { return proto.CompactTextString(m) } +func (*RpcObjectRelationOptionUpdate) ProtoMessage() {} +func (*RpcObjectRelationOptionUpdate) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 6, 1} +} +func (m *RpcObjectRelationOptionUpdate) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectRelationOptionUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectRelationOptionUpdate.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectRelationOptionUpdate) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectRelationOptionUpdate.Merge(m, src) +} +func (m *RpcObjectRelationOptionUpdate) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectRelationOptionUpdate) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectRelationOptionUpdate.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectRelationOptionUpdate proto.InternalMessageInfo + +type RpcObjectRelationOptionUpdateRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + RelationKey string `protobuf:"bytes,2,opt,name=relationKey,proto3" json:"relationKey,omitempty"` + Option *model.RelationOption `protobuf:"bytes,3,opt,name=option,proto3" json:"option,omitempty"` +} + +func (m *RpcObjectRelationOptionUpdateRequest) Reset() { *m = RpcObjectRelationOptionUpdateRequest{} } +func (m *RpcObjectRelationOptionUpdateRequest) String() string { return proto.CompactTextString(m) } +func (*RpcObjectRelationOptionUpdateRequest) ProtoMessage() {} +func (*RpcObjectRelationOptionUpdateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 6, 1, 0} +} +func (m *RpcObjectRelationOptionUpdateRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectRelationOptionUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectRelationOptionUpdateRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectRelationOptionUpdateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectRelationOptionUpdateRequest.Merge(m, src) +} +func (m *RpcObjectRelationOptionUpdateRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectRelationOptionUpdateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectRelationOptionUpdateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectRelationOptionUpdateRequest proto.InternalMessageInfo + +func (m *RpcObjectRelationOptionUpdateRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcObjectRelationOptionUpdateRequest) GetRelationKey() string { + if m != nil { + return m.RelationKey + } + return "" +} + +func (m *RpcObjectRelationOptionUpdateRequest) GetOption() *model.RelationOption { + if m != nil { + return m.Option + } + return nil +} + +type RpcObjectRelationOptionUpdateResponse struct { + Error *RpcObjectRelationOptionUpdateResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcObjectRelationOptionUpdateResponse) Reset() { *m = RpcObjectRelationOptionUpdateResponse{} } +func (m *RpcObjectRelationOptionUpdateResponse) String() string { return proto.CompactTextString(m) } +func (*RpcObjectRelationOptionUpdateResponse) ProtoMessage() {} +func (*RpcObjectRelationOptionUpdateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 6, 1, 1} +} +func (m *RpcObjectRelationOptionUpdateResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectRelationOptionUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectRelationOptionUpdateResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectRelationOptionUpdateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectRelationOptionUpdateResponse.Merge(m, src) +} +func (m *RpcObjectRelationOptionUpdateResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectRelationOptionUpdateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectRelationOptionUpdateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectRelationOptionUpdateResponse proto.InternalMessageInfo + +func (m *RpcObjectRelationOptionUpdateResponse) GetError() *RpcObjectRelationOptionUpdateResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcObjectRelationOptionUpdateResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcObjectRelationOptionUpdateResponseError struct { + Code RpcObjectRelationOptionUpdateResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectRelationOptionUpdateResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcObjectRelationOptionUpdateResponseError) Reset() { + *m = RpcObjectRelationOptionUpdateResponseError{} +} +func (m *RpcObjectRelationOptionUpdateResponseError) String() string { + return proto.CompactTextString(m) +} +func (*RpcObjectRelationOptionUpdateResponseError) ProtoMessage() {} +func (*RpcObjectRelationOptionUpdateResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 6, 1, 1, 0} +} +func (m *RpcObjectRelationOptionUpdateResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectRelationOptionUpdateResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectRelationOptionUpdateResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectRelationOptionUpdateResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectRelationOptionUpdateResponseError.Merge(m, src) +} +func (m *RpcObjectRelationOptionUpdateResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectRelationOptionUpdateResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectRelationOptionUpdateResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectRelationOptionUpdateResponseError proto.InternalMessageInfo + +func (m *RpcObjectRelationOptionUpdateResponseError) GetCode() RpcObjectRelationOptionUpdateResponseErrorCode { + if m != nil { + return m.Code + } + return RpcObjectRelationOptionUpdateResponseError_NULL +} + +func (m *RpcObjectRelationOptionUpdateResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcObjectRelationOptionDelete struct { +} + +func (m *RpcObjectRelationOptionDelete) Reset() { *m = RpcObjectRelationOptionDelete{} } +func (m *RpcObjectRelationOptionDelete) String() string { return proto.CompactTextString(m) } +func (*RpcObjectRelationOptionDelete) ProtoMessage() {} +func (*RpcObjectRelationOptionDelete) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 6, 2} +} +func (m *RpcObjectRelationOptionDelete) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectRelationOptionDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectRelationOptionDelete.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectRelationOptionDelete) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectRelationOptionDelete.Merge(m, src) +} +func (m *RpcObjectRelationOptionDelete) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectRelationOptionDelete) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectRelationOptionDelete.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectRelationOptionDelete proto.InternalMessageInfo + +type RpcObjectRelationOptionDeleteRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + RelationKey string `protobuf:"bytes,2,opt,name=relationKey,proto3" json:"relationKey,omitempty"` + OptionId string `protobuf:"bytes,3,opt,name=optionId,proto3" json:"optionId,omitempty"` + ConfirmRemoveAllValuesInRecords bool `protobuf:"varint,4,opt,name=confirmRemoveAllValuesInRecords,proto3" json:"confirmRemoveAllValuesInRecords,omitempty"` +} + +func (m *RpcObjectRelationOptionDeleteRequest) Reset() { *m = RpcObjectRelationOptionDeleteRequest{} } +func (m *RpcObjectRelationOptionDeleteRequest) String() string { return proto.CompactTextString(m) } +func (*RpcObjectRelationOptionDeleteRequest) ProtoMessage() {} +func (*RpcObjectRelationOptionDeleteRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 6, 2, 0} +} +func (m *RpcObjectRelationOptionDeleteRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectRelationOptionDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectRelationOptionDeleteRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectRelationOptionDeleteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectRelationOptionDeleteRequest.Merge(m, src) +} +func (m *RpcObjectRelationOptionDeleteRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectRelationOptionDeleteRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectRelationOptionDeleteRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectRelationOptionDeleteRequest proto.InternalMessageInfo + +func (m *RpcObjectRelationOptionDeleteRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcObjectRelationOptionDeleteRequest) GetRelationKey() string { + if m != nil { + return m.RelationKey + } + return "" +} + +func (m *RpcObjectRelationOptionDeleteRequest) GetOptionId() string { + if m != nil { + return m.OptionId + } + return "" +} + +func (m *RpcObjectRelationOptionDeleteRequest) GetConfirmRemoveAllValuesInRecords() bool { + if m != nil { + return m.ConfirmRemoveAllValuesInRecords + } + return false +} + +type RpcObjectRelationOptionDeleteResponse struct { + Error *RpcObjectRelationOptionDeleteResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcObjectRelationOptionDeleteResponse) Reset() { *m = RpcObjectRelationOptionDeleteResponse{} } +func (m *RpcObjectRelationOptionDeleteResponse) String() string { return proto.CompactTextString(m) } +func (*RpcObjectRelationOptionDeleteResponse) ProtoMessage() {} +func (*RpcObjectRelationOptionDeleteResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 6, 2, 1} +} +func (m *RpcObjectRelationOptionDeleteResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectRelationOptionDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectRelationOptionDeleteResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectRelationOptionDeleteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectRelationOptionDeleteResponse.Merge(m, src) +} +func (m *RpcObjectRelationOptionDeleteResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectRelationOptionDeleteResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectRelationOptionDeleteResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectRelationOptionDeleteResponse proto.InternalMessageInfo + +func (m *RpcObjectRelationOptionDeleteResponse) GetError() *RpcObjectRelationOptionDeleteResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcObjectRelationOptionDeleteResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcObjectRelationOptionDeleteResponseError struct { + Code RpcObjectRelationOptionDeleteResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectRelationOptionDeleteResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcObjectRelationOptionDeleteResponseError) Reset() { + *m = RpcObjectRelationOptionDeleteResponseError{} +} +func (m *RpcObjectRelationOptionDeleteResponseError) String() string { + return proto.CompactTextString(m) +} +func (*RpcObjectRelationOptionDeleteResponseError) ProtoMessage() {} +func (*RpcObjectRelationOptionDeleteResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 6, 2, 1, 0} +} +func (m *RpcObjectRelationOptionDeleteResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectRelationOptionDeleteResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectRelationOptionDeleteResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectRelationOptionDeleteResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectRelationOptionDeleteResponseError.Merge(m, src) +} +func (m *RpcObjectRelationOptionDeleteResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectRelationOptionDeleteResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectRelationOptionDeleteResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectRelationOptionDeleteResponseError proto.InternalMessageInfo + +func (m *RpcObjectRelationOptionDeleteResponseError) GetCode() RpcObjectRelationOptionDeleteResponseErrorCode { + if m != nil { + return m.Code + } + return RpcObjectRelationOptionDeleteResponseError_NULL +} + +func (m *RpcObjectRelationOptionDeleteResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcObjectType struct { +} + +func (m *RpcObjectType) Reset() { *m = RpcObjectType{} } +func (m *RpcObjectType) String() string { return proto.CompactTextString(m) } +func (*RpcObjectType) ProtoMessage() {} +func (*RpcObjectType) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 7} +} +func (m *RpcObjectType) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectType.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectType) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectType.Merge(m, src) +} +func (m *RpcObjectType) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectType) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectType.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectType proto.InternalMessageInfo + +type RpcObjectTypeList struct { +} + +func (m *RpcObjectTypeList) Reset() { *m = RpcObjectTypeList{} } +func (m *RpcObjectTypeList) String() string { return proto.CompactTextString(m) } +func (*RpcObjectTypeList) ProtoMessage() {} +func (*RpcObjectTypeList) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 7, 0} +} +func (m *RpcObjectTypeList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectTypeList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectTypeList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectTypeList) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectTypeList.Merge(m, src) +} +func (m *RpcObjectTypeList) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectTypeList) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectTypeList.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectTypeList proto.InternalMessageInfo + +type RpcObjectTypeListRequest struct { +} + +func (m *RpcObjectTypeListRequest) Reset() { *m = RpcObjectTypeListRequest{} } +func (m *RpcObjectTypeListRequest) String() string { return proto.CompactTextString(m) } +func (*RpcObjectTypeListRequest) ProtoMessage() {} +func (*RpcObjectTypeListRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 7, 0, 0} +} +func (m *RpcObjectTypeListRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectTypeListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectTypeListRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectTypeListRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectTypeListRequest.Merge(m, src) +} +func (m *RpcObjectTypeListRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectTypeListRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectTypeListRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectTypeListRequest proto.InternalMessageInfo + +type RpcObjectTypeListResponse struct { + Error *RpcObjectTypeListResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + ObjectTypes []*model.ObjectType `protobuf:"bytes,2,rep,name=objectTypes,proto3" json:"objectTypes,omitempty"` +} + +func (m *RpcObjectTypeListResponse) Reset() { *m = RpcObjectTypeListResponse{} } +func (m *RpcObjectTypeListResponse) String() string { return proto.CompactTextString(m) } +func (*RpcObjectTypeListResponse) ProtoMessage() {} +func (*RpcObjectTypeListResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 7, 0, 1} +} +func (m *RpcObjectTypeListResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectTypeListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectTypeListResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectTypeListResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectTypeListResponse.Merge(m, src) +} +func (m *RpcObjectTypeListResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectTypeListResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectTypeListResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectTypeListResponse proto.InternalMessageInfo + +func (m *RpcObjectTypeListResponse) GetError() *RpcObjectTypeListResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcObjectTypeListResponse) GetObjectTypes() []*model.ObjectType { + if m != nil { + return m.ObjectTypes + } + return nil +} + +type RpcObjectTypeListResponseError struct { + Code RpcObjectTypeListResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectTypeListResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcObjectTypeListResponseError) Reset() { *m = RpcObjectTypeListResponseError{} } +func (m *RpcObjectTypeListResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcObjectTypeListResponseError) ProtoMessage() {} +func (*RpcObjectTypeListResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 7, 0, 1, 0} +} +func (m *RpcObjectTypeListResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectTypeListResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectTypeListResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectTypeListResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectTypeListResponseError.Merge(m, src) +} +func (m *RpcObjectTypeListResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectTypeListResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectTypeListResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectTypeListResponseError proto.InternalMessageInfo + +func (m *RpcObjectTypeListResponseError) GetCode() RpcObjectTypeListResponseErrorCode { + if m != nil { + return m.Code + } + return RpcObjectTypeListResponseError_NULL +} + +func (m *RpcObjectTypeListResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcObjectTypeCreate struct { +} + +func (m *RpcObjectTypeCreate) Reset() { *m = RpcObjectTypeCreate{} } +func (m *RpcObjectTypeCreate) String() string { return proto.CompactTextString(m) } +func (*RpcObjectTypeCreate) ProtoMessage() {} +func (*RpcObjectTypeCreate) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 7, 1} +} +func (m *RpcObjectTypeCreate) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectTypeCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectTypeCreate.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectTypeCreate) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectTypeCreate.Merge(m, src) +} +func (m *RpcObjectTypeCreate) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectTypeCreate) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectTypeCreate.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectTypeCreate proto.InternalMessageInfo + +type RpcObjectTypeCreateRequest struct { + ObjectType *model.ObjectType `protobuf:"bytes,1,opt,name=objectType,proto3" json:"objectType,omitempty"` +} + +func (m *RpcObjectTypeCreateRequest) Reset() { *m = RpcObjectTypeCreateRequest{} } +func (m *RpcObjectTypeCreateRequest) String() string { return proto.CompactTextString(m) } +func (*RpcObjectTypeCreateRequest) ProtoMessage() {} +func (*RpcObjectTypeCreateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 7, 1, 0} +} +func (m *RpcObjectTypeCreateRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectTypeCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectTypeCreateRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectTypeCreateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectTypeCreateRequest.Merge(m, src) +} +func (m *RpcObjectTypeCreateRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectTypeCreateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectTypeCreateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectTypeCreateRequest proto.InternalMessageInfo + +func (m *RpcObjectTypeCreateRequest) GetObjectType() *model.ObjectType { + if m != nil { + return m.ObjectType + } + return nil +} + +type RpcObjectTypeCreateResponse struct { + Error *RpcObjectTypeCreateResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + ObjectType *model.ObjectType `protobuf:"bytes,2,opt,name=objectType,proto3" json:"objectType,omitempty"` +} + +func (m *RpcObjectTypeCreateResponse) Reset() { *m = RpcObjectTypeCreateResponse{} } +func (m *RpcObjectTypeCreateResponse) String() string { return proto.CompactTextString(m) } +func (*RpcObjectTypeCreateResponse) ProtoMessage() {} +func (*RpcObjectTypeCreateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 7, 1, 1} +} +func (m *RpcObjectTypeCreateResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectTypeCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectTypeCreateResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectTypeCreateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectTypeCreateResponse.Merge(m, src) +} +func (m *RpcObjectTypeCreateResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectTypeCreateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectTypeCreateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectTypeCreateResponse proto.InternalMessageInfo + +func (m *RpcObjectTypeCreateResponse) GetError() *RpcObjectTypeCreateResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcObjectTypeCreateResponse) GetObjectType() *model.ObjectType { + if m != nil { + return m.ObjectType + } + return nil +} + +type RpcObjectTypeCreateResponseError struct { + Code RpcObjectTypeCreateResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectTypeCreateResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcObjectTypeCreateResponseError) Reset() { *m = RpcObjectTypeCreateResponseError{} } +func (m *RpcObjectTypeCreateResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcObjectTypeCreateResponseError) ProtoMessage() {} +func (*RpcObjectTypeCreateResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 7, 1, 1, 0} +} +func (m *RpcObjectTypeCreateResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectTypeCreateResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectTypeCreateResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectTypeCreateResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectTypeCreateResponseError.Merge(m, src) +} +func (m *RpcObjectTypeCreateResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectTypeCreateResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectTypeCreateResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectTypeCreateResponseError proto.InternalMessageInfo + +func (m *RpcObjectTypeCreateResponseError) GetCode() RpcObjectTypeCreateResponseErrorCode { + if m != nil { + return m.Code + } + return RpcObjectTypeCreateResponseError_NULL +} + +func (m *RpcObjectTypeCreateResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcObjectTypeRelation struct { +} + +func (m *RpcObjectTypeRelation) Reset() { *m = RpcObjectTypeRelation{} } +func (m *RpcObjectTypeRelation) String() string { return proto.CompactTextString(m) } +func (*RpcObjectTypeRelation) ProtoMessage() {} +func (*RpcObjectTypeRelation) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 7, 2} +} +func (m *RpcObjectTypeRelation) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectTypeRelation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectTypeRelation.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectTypeRelation) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectTypeRelation.Merge(m, src) +} +func (m *RpcObjectTypeRelation) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectTypeRelation) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectTypeRelation.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectTypeRelation proto.InternalMessageInfo + +type RpcObjectTypeRelationAdd struct { +} + +func (m *RpcObjectTypeRelationAdd) Reset() { *m = RpcObjectTypeRelationAdd{} } +func (m *RpcObjectTypeRelationAdd) String() string { return proto.CompactTextString(m) } +func (*RpcObjectTypeRelationAdd) ProtoMessage() {} +func (*RpcObjectTypeRelationAdd) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 7, 2, 0} +} +func (m *RpcObjectTypeRelationAdd) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectTypeRelationAdd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectTypeRelationAdd.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectTypeRelationAdd) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectTypeRelationAdd.Merge(m, src) +} +func (m *RpcObjectTypeRelationAdd) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectTypeRelationAdd) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectTypeRelationAdd.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectTypeRelationAdd proto.InternalMessageInfo + +type RpcObjectTypeRelationAddRequest struct { + ObjectTypeUrl string `protobuf:"bytes,1,opt,name=objectTypeUrl,proto3" json:"objectTypeUrl,omitempty"` + Relations []*model.Relation `protobuf:"bytes,2,rep,name=relations,proto3" json:"relations,omitempty"` +} + +func (m *RpcObjectTypeRelationAddRequest) Reset() { *m = RpcObjectTypeRelationAddRequest{} } +func (m *RpcObjectTypeRelationAddRequest) String() string { return proto.CompactTextString(m) } +func (*RpcObjectTypeRelationAddRequest) ProtoMessage() {} +func (*RpcObjectTypeRelationAddRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 7, 2, 0, 0} +} +func (m *RpcObjectTypeRelationAddRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectTypeRelationAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectTypeRelationAddRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectTypeRelationAddRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectTypeRelationAddRequest.Merge(m, src) +} +func (m *RpcObjectTypeRelationAddRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectTypeRelationAddRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectTypeRelationAddRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectTypeRelationAddRequest proto.InternalMessageInfo + +func (m *RpcObjectTypeRelationAddRequest) GetObjectTypeUrl() string { + if m != nil { + return m.ObjectTypeUrl + } + return "" +} + +func (m *RpcObjectTypeRelationAddRequest) GetRelations() []*model.Relation { + if m != nil { + return m.Relations + } + return nil +} + +type RpcObjectTypeRelationAddResponse struct { + Error *RpcObjectTypeRelationAddResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Relations []*model.Relation `protobuf:"bytes,2,rep,name=relations,proto3" json:"relations,omitempty"` +} + +func (m *RpcObjectTypeRelationAddResponse) Reset() { *m = RpcObjectTypeRelationAddResponse{} } +func (m *RpcObjectTypeRelationAddResponse) String() string { return proto.CompactTextString(m) } +func (*RpcObjectTypeRelationAddResponse) ProtoMessage() {} +func (*RpcObjectTypeRelationAddResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 7, 2, 0, 1} +} +func (m *RpcObjectTypeRelationAddResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectTypeRelationAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectTypeRelationAddResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectTypeRelationAddResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectTypeRelationAddResponse.Merge(m, src) +} +func (m *RpcObjectTypeRelationAddResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectTypeRelationAddResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectTypeRelationAddResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectTypeRelationAddResponse proto.InternalMessageInfo + +func (m *RpcObjectTypeRelationAddResponse) GetError() *RpcObjectTypeRelationAddResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcObjectTypeRelationAddResponse) GetRelations() []*model.Relation { + if m != nil { + return m.Relations + } + return nil +} + +type RpcObjectTypeRelationAddResponseError struct { + Code RpcObjectTypeRelationAddResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectTypeRelationAddResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcObjectTypeRelationAddResponseError) Reset() { *m = RpcObjectTypeRelationAddResponseError{} } +func (m *RpcObjectTypeRelationAddResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcObjectTypeRelationAddResponseError) ProtoMessage() {} +func (*RpcObjectTypeRelationAddResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 7, 2, 0, 1, 0} +} +func (m *RpcObjectTypeRelationAddResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectTypeRelationAddResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectTypeRelationAddResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectTypeRelationAddResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectTypeRelationAddResponseError.Merge(m, src) +} +func (m *RpcObjectTypeRelationAddResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectTypeRelationAddResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectTypeRelationAddResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectTypeRelationAddResponseError proto.InternalMessageInfo + +func (m *RpcObjectTypeRelationAddResponseError) GetCode() RpcObjectTypeRelationAddResponseErrorCode { + if m != nil { + return m.Code + } + return RpcObjectTypeRelationAddResponseError_NULL +} + +func (m *RpcObjectTypeRelationAddResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcObjectTypeRelationRemove struct { +} + +func (m *RpcObjectTypeRelationRemove) Reset() { *m = RpcObjectTypeRelationRemove{} } +func (m *RpcObjectTypeRelationRemove) String() string { return proto.CompactTextString(m) } +func (*RpcObjectTypeRelationRemove) ProtoMessage() {} +func (*RpcObjectTypeRelationRemove) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 7, 2, 1} +} +func (m *RpcObjectTypeRelationRemove) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectTypeRelationRemove) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectTypeRelationRemove.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectTypeRelationRemove) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectTypeRelationRemove.Merge(m, src) +} +func (m *RpcObjectTypeRelationRemove) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectTypeRelationRemove) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectTypeRelationRemove.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectTypeRelationRemove proto.InternalMessageInfo + +type RpcObjectTypeRelationRemoveRequest struct { + ObjectTypeUrl string `protobuf:"bytes,1,opt,name=objectTypeUrl,proto3" json:"objectTypeUrl,omitempty"` + RelationKey string `protobuf:"bytes,2,opt,name=relationKey,proto3" json:"relationKey,omitempty"` +} + +func (m *RpcObjectTypeRelationRemoveRequest) Reset() { *m = RpcObjectTypeRelationRemoveRequest{} } +func (m *RpcObjectTypeRelationRemoveRequest) String() string { return proto.CompactTextString(m) } +func (*RpcObjectTypeRelationRemoveRequest) ProtoMessage() {} +func (*RpcObjectTypeRelationRemoveRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 7, 2, 1, 0} +} +func (m *RpcObjectTypeRelationRemoveRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectTypeRelationRemoveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectTypeRelationRemoveRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectTypeRelationRemoveRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectTypeRelationRemoveRequest.Merge(m, src) +} +func (m *RpcObjectTypeRelationRemoveRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectTypeRelationRemoveRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectTypeRelationRemoveRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectTypeRelationRemoveRequest proto.InternalMessageInfo + +func (m *RpcObjectTypeRelationRemoveRequest) GetObjectTypeUrl() string { + if m != nil { + return m.ObjectTypeUrl + } + return "" +} + +func (m *RpcObjectTypeRelationRemoveRequest) GetRelationKey() string { + if m != nil { + return m.RelationKey + } + return "" +} + +type RpcObjectTypeRelationRemoveResponse struct { + Error *RpcObjectTypeRelationRemoveResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +} + +func (m *RpcObjectTypeRelationRemoveResponse) Reset() { *m = RpcObjectTypeRelationRemoveResponse{} } +func (m *RpcObjectTypeRelationRemoveResponse) String() string { return proto.CompactTextString(m) } +func (*RpcObjectTypeRelationRemoveResponse) ProtoMessage() {} +func (*RpcObjectTypeRelationRemoveResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 7, 2, 1, 1} +} +func (m *RpcObjectTypeRelationRemoveResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectTypeRelationRemoveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectTypeRelationRemoveResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectTypeRelationRemoveResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectTypeRelationRemoveResponse.Merge(m, src) +} +func (m *RpcObjectTypeRelationRemoveResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectTypeRelationRemoveResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectTypeRelationRemoveResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectTypeRelationRemoveResponse proto.InternalMessageInfo + +func (m *RpcObjectTypeRelationRemoveResponse) GetError() *RpcObjectTypeRelationRemoveResponseError { + if m != nil { + return m.Error + } + return nil +} + +type RpcObjectTypeRelationRemoveResponseError struct { + Code RpcObjectTypeRelationRemoveResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectTypeRelationRemoveResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcObjectTypeRelationRemoveResponseError) Reset() { + *m = RpcObjectTypeRelationRemoveResponseError{} +} +func (m *RpcObjectTypeRelationRemoveResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcObjectTypeRelationRemoveResponseError) ProtoMessage() {} +func (*RpcObjectTypeRelationRemoveResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 7, 2, 1, 1, 0} +} +func (m *RpcObjectTypeRelationRemoveResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectTypeRelationRemoveResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectTypeRelationRemoveResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectTypeRelationRemoveResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectTypeRelationRemoveResponseError.Merge(m, src) +} +func (m *RpcObjectTypeRelationRemoveResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectTypeRelationRemoveResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectTypeRelationRemoveResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectTypeRelationRemoveResponseError proto.InternalMessageInfo + +func (m *RpcObjectTypeRelationRemoveResponseError) GetCode() RpcObjectTypeRelationRemoveResponseErrorCode { + if m != nil { + return m.Code + } + return RpcObjectTypeRelationRemoveResponseError_NULL +} + +func (m *RpcObjectTypeRelationRemoveResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcObjectTypeRelationUpdate struct { +} + +func (m *RpcObjectTypeRelationUpdate) Reset() { *m = RpcObjectTypeRelationUpdate{} } +func (m *RpcObjectTypeRelationUpdate) String() string { return proto.CompactTextString(m) } +func (*RpcObjectTypeRelationUpdate) ProtoMessage() {} +func (*RpcObjectTypeRelationUpdate) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 7, 2, 2} +} +func (m *RpcObjectTypeRelationUpdate) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectTypeRelationUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectTypeRelationUpdate.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectTypeRelationUpdate) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectTypeRelationUpdate.Merge(m, src) +} +func (m *RpcObjectTypeRelationUpdate) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectTypeRelationUpdate) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectTypeRelationUpdate.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectTypeRelationUpdate proto.InternalMessageInfo + +type RpcObjectTypeRelationUpdateRequest struct { + ObjectTypeUrl string `protobuf:"bytes,1,opt,name=objectTypeUrl,proto3" json:"objectTypeUrl,omitempty"` + Relation *model.Relation `protobuf:"bytes,2,opt,name=relation,proto3" json:"relation,omitempty"` +} + +func (m *RpcObjectTypeRelationUpdateRequest) Reset() { *m = RpcObjectTypeRelationUpdateRequest{} } +func (m *RpcObjectTypeRelationUpdateRequest) String() string { return proto.CompactTextString(m) } +func (*RpcObjectTypeRelationUpdateRequest) ProtoMessage() {} +func (*RpcObjectTypeRelationUpdateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 7, 2, 2, 0} +} +func (m *RpcObjectTypeRelationUpdateRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectTypeRelationUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectTypeRelationUpdateRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectTypeRelationUpdateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectTypeRelationUpdateRequest.Merge(m, src) +} +func (m *RpcObjectTypeRelationUpdateRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectTypeRelationUpdateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectTypeRelationUpdateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectTypeRelationUpdateRequest proto.InternalMessageInfo + +func (m *RpcObjectTypeRelationUpdateRequest) GetObjectTypeUrl() string { + if m != nil { + return m.ObjectTypeUrl + } + return "" +} + +func (m *RpcObjectTypeRelationUpdateRequest) GetRelation() *model.Relation { + if m != nil { + return m.Relation + } + return nil +} + +type RpcObjectTypeRelationUpdateResponse struct { + Error *RpcObjectTypeRelationUpdateResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +} + +func (m *RpcObjectTypeRelationUpdateResponse) Reset() { *m = RpcObjectTypeRelationUpdateResponse{} } +func (m *RpcObjectTypeRelationUpdateResponse) String() string { return proto.CompactTextString(m) } +func (*RpcObjectTypeRelationUpdateResponse) ProtoMessage() {} +func (*RpcObjectTypeRelationUpdateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 7, 2, 2, 1} +} +func (m *RpcObjectTypeRelationUpdateResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectTypeRelationUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectTypeRelationUpdateResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectTypeRelationUpdateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectTypeRelationUpdateResponse.Merge(m, src) +} +func (m *RpcObjectTypeRelationUpdateResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectTypeRelationUpdateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectTypeRelationUpdateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectTypeRelationUpdateResponse proto.InternalMessageInfo + +func (m *RpcObjectTypeRelationUpdateResponse) GetError() *RpcObjectTypeRelationUpdateResponseError { + if m != nil { + return m.Error + } + return nil +} + +type RpcObjectTypeRelationUpdateResponseError struct { + Code RpcObjectTypeRelationUpdateResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectTypeRelationUpdateResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcObjectTypeRelationUpdateResponseError) Reset() { + *m = RpcObjectTypeRelationUpdateResponseError{} +} +func (m *RpcObjectTypeRelationUpdateResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcObjectTypeRelationUpdateResponseError) ProtoMessage() {} +func (*RpcObjectTypeRelationUpdateResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 7, 2, 2, 1, 0} +} +func (m *RpcObjectTypeRelationUpdateResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectTypeRelationUpdateResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectTypeRelationUpdateResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectTypeRelationUpdateResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectTypeRelationUpdateResponseError.Merge(m, src) +} +func (m *RpcObjectTypeRelationUpdateResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectTypeRelationUpdateResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectTypeRelationUpdateResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectTypeRelationUpdateResponseError proto.InternalMessageInfo + +func (m *RpcObjectTypeRelationUpdateResponseError) GetCode() RpcObjectTypeRelationUpdateResponseErrorCode { + if m != nil { + return m.Code + } + return RpcObjectTypeRelationUpdateResponseError_NULL +} + +func (m *RpcObjectTypeRelationUpdateResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcObjectTypeRelationList struct { +} + +func (m *RpcObjectTypeRelationList) Reset() { *m = RpcObjectTypeRelationList{} } +func (m *RpcObjectTypeRelationList) String() string { return proto.CompactTextString(m) } +func (*RpcObjectTypeRelationList) ProtoMessage() {} +func (*RpcObjectTypeRelationList) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 7, 2, 3} +} +func (m *RpcObjectTypeRelationList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectTypeRelationList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectTypeRelationList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectTypeRelationList) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectTypeRelationList.Merge(m, src) +} +func (m *RpcObjectTypeRelationList) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectTypeRelationList) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectTypeRelationList.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectTypeRelationList proto.InternalMessageInfo + +type RpcObjectTypeRelationListRequest struct { + ObjectTypeUrl string `protobuf:"bytes,1,opt,name=objectTypeUrl,proto3" json:"objectTypeUrl,omitempty"` + AppendRelationsFromOtherTypes bool `protobuf:"varint,2,opt,name=appendRelationsFromOtherTypes,proto3" json:"appendRelationsFromOtherTypes,omitempty"` +} + +func (m *RpcObjectTypeRelationListRequest) Reset() { *m = RpcObjectTypeRelationListRequest{} } +func (m *RpcObjectTypeRelationListRequest) String() string { return proto.CompactTextString(m) } +func (*RpcObjectTypeRelationListRequest) ProtoMessage() {} +func (*RpcObjectTypeRelationListRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 7, 2, 3, 0} +} +func (m *RpcObjectTypeRelationListRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectTypeRelationListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectTypeRelationListRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectTypeRelationListRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectTypeRelationListRequest.Merge(m, src) +} +func (m *RpcObjectTypeRelationListRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectTypeRelationListRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectTypeRelationListRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectTypeRelationListRequest proto.InternalMessageInfo + +func (m *RpcObjectTypeRelationListRequest) GetObjectTypeUrl() string { + if m != nil { + return m.ObjectTypeUrl + } + return "" +} + +func (m *RpcObjectTypeRelationListRequest) GetAppendRelationsFromOtherTypes() bool { + if m != nil { + return m.AppendRelationsFromOtherTypes + } + return false +} + +type RpcObjectTypeRelationListResponse struct { + Error *RpcObjectTypeRelationListResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Relations []*model.Relation `protobuf:"bytes,2,rep,name=relations,proto3" json:"relations,omitempty"` +} + +func (m *RpcObjectTypeRelationListResponse) Reset() { *m = RpcObjectTypeRelationListResponse{} } +func (m *RpcObjectTypeRelationListResponse) String() string { return proto.CompactTextString(m) } +func (*RpcObjectTypeRelationListResponse) ProtoMessage() {} +func (*RpcObjectTypeRelationListResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 7, 2, 3, 1} +} +func (m *RpcObjectTypeRelationListResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectTypeRelationListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectTypeRelationListResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectTypeRelationListResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectTypeRelationListResponse.Merge(m, src) +} +func (m *RpcObjectTypeRelationListResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectTypeRelationListResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectTypeRelationListResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectTypeRelationListResponse proto.InternalMessageInfo + +func (m *RpcObjectTypeRelationListResponse) GetError() *RpcObjectTypeRelationListResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcObjectTypeRelationListResponse) GetRelations() []*model.Relation { + if m != nil { + return m.Relations + } + return nil +} + +type RpcObjectTypeRelationListResponseError struct { + Code RpcObjectTypeRelationListResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectTypeRelationListResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcObjectTypeRelationListResponseError) Reset() { + *m = RpcObjectTypeRelationListResponseError{} +} +func (m *RpcObjectTypeRelationListResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcObjectTypeRelationListResponseError) ProtoMessage() {} +func (*RpcObjectTypeRelationListResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 7, 2, 3, 1, 0} +} +func (m *RpcObjectTypeRelationListResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcObjectTypeRelationListResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcObjectTypeRelationListResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcObjectTypeRelationListResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcObjectTypeRelationListResponseError.Merge(m, src) +} +func (m *RpcObjectTypeRelationListResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcObjectTypeRelationListResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcObjectTypeRelationListResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcObjectTypeRelationListResponseError proto.InternalMessageInfo + +func (m *RpcObjectTypeRelationListResponseError) GetCode() RpcObjectTypeRelationListResponseErrorCode { + if m != nil { + return m.Code + } + return RpcObjectTypeRelationListResponseError_NULL +} + +func (m *RpcObjectTypeRelationListResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcHistory struct { +} + +func (m *RpcHistory) Reset() { *m = RpcHistory{} } +func (m *RpcHistory) String() string { return proto.CompactTextString(m) } +func (*RpcHistory) ProtoMessage() {} +func (*RpcHistory) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 8} +} +func (m *RpcHistory) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcHistory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcHistory.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcHistory) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcHistory.Merge(m, src) +} +func (m *RpcHistory) XXX_Size() int { + return m.Size() +} +func (m *RpcHistory) XXX_DiscardUnknown() { + xxx_messageInfo_RpcHistory.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcHistory proto.InternalMessageInfo + +type RpcHistoryVersion struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + PreviousIds []string `protobuf:"bytes,2,rep,name=previousIds,proto3" json:"previousIds,omitempty"` + AuthorId string `protobuf:"bytes,3,opt,name=authorId,proto3" json:"authorId,omitempty"` + AuthorName string `protobuf:"bytes,4,opt,name=authorName,proto3" json:"authorName,omitempty"` + Time int64 `protobuf:"varint,5,opt,name=time,proto3" json:"time,omitempty"` + GroupId int64 `protobuf:"varint,6,opt,name=groupId,proto3" json:"groupId,omitempty"` +} + +func (m *RpcHistoryVersion) Reset() { *m = RpcHistoryVersion{} } +func (m *RpcHistoryVersion) String() string { return proto.CompactTextString(m) } +func (*RpcHistoryVersion) ProtoMessage() {} +func (*RpcHistoryVersion) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 8, 0} +} +func (m *RpcHistoryVersion) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcHistoryVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcHistoryVersion.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcHistoryVersion) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcHistoryVersion.Merge(m, src) +} +func (m *RpcHistoryVersion) XXX_Size() int { + return m.Size() +} +func (m *RpcHistoryVersion) XXX_DiscardUnknown() { + xxx_messageInfo_RpcHistoryVersion.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcHistoryVersion proto.InternalMessageInfo + +func (m *RpcHistoryVersion) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *RpcHistoryVersion) GetPreviousIds() []string { + if m != nil { + return m.PreviousIds + } + return nil +} + +func (m *RpcHistoryVersion) GetAuthorId() string { + if m != nil { + return m.AuthorId + } + return "" +} + +func (m *RpcHistoryVersion) GetAuthorName() string { + if m != nil { + return m.AuthorName + } + return "" +} + +func (m *RpcHistoryVersion) GetTime() int64 { + if m != nil { + return m.Time + } + return 0 +} + +func (m *RpcHistoryVersion) GetGroupId() int64 { + if m != nil { + return m.GroupId + } + return 0 +} + +// returns list of versions (changes) +type RpcHistoryGetVersions struct { +} + +func (m *RpcHistoryGetVersions) Reset() { *m = RpcHistoryGetVersions{} } +func (m *RpcHistoryGetVersions) String() string { return proto.CompactTextString(m) } +func (*RpcHistoryGetVersions) ProtoMessage() {} +func (*RpcHistoryGetVersions) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 8, 1} +} +func (m *RpcHistoryGetVersions) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcHistoryGetVersions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcHistoryGetVersions.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcHistoryGetVersions) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcHistoryGetVersions.Merge(m, src) +} +func (m *RpcHistoryGetVersions) XXX_Size() int { + return m.Size() +} +func (m *RpcHistoryGetVersions) XXX_DiscardUnknown() { + xxx_messageInfo_RpcHistoryGetVersions.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcHistoryGetVersions proto.InternalMessageInfo + +type RpcHistoryGetVersionsRequest struct { + PageId string `protobuf:"bytes,1,opt,name=pageId,proto3" json:"pageId,omitempty"` + // when indicated, results will include versions before given id + LastVersionId string `protobuf:"bytes,2,opt,name=lastVersionId,proto3" json:"lastVersionId,omitempty"` + // desired count of versions + Limit int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` +} + +func (m *RpcHistoryGetVersionsRequest) Reset() { *m = RpcHistoryGetVersionsRequest{} } +func (m *RpcHistoryGetVersionsRequest) String() string { return proto.CompactTextString(m) } +func (*RpcHistoryGetVersionsRequest) ProtoMessage() {} +func (*RpcHistoryGetVersionsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 8, 1, 0} +} +func (m *RpcHistoryGetVersionsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcHistoryGetVersionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcHistoryGetVersionsRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcHistoryGetVersionsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcHistoryGetVersionsRequest.Merge(m, src) +} +func (m *RpcHistoryGetVersionsRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcHistoryGetVersionsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcHistoryGetVersionsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcHistoryGetVersionsRequest proto.InternalMessageInfo + +func (m *RpcHistoryGetVersionsRequest) GetPageId() string { + if m != nil { + return m.PageId + } + return "" +} + +func (m *RpcHistoryGetVersionsRequest) GetLastVersionId() string { + if m != nil { + return m.LastVersionId + } + return "" +} + +func (m *RpcHistoryGetVersionsRequest) GetLimit() int32 { + if m != nil { + return m.Limit + } + return 0 +} + +type RpcHistoryGetVersionsResponse struct { + Error *RpcHistoryGetVersionsResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Versions []*RpcHistoryVersion `protobuf:"bytes,2,rep,name=versions,proto3" json:"versions,omitempty"` +} + +func (m *RpcHistoryGetVersionsResponse) Reset() { *m = RpcHistoryGetVersionsResponse{} } +func (m *RpcHistoryGetVersionsResponse) String() string { return proto.CompactTextString(m) } +func (*RpcHistoryGetVersionsResponse) ProtoMessage() {} +func (*RpcHistoryGetVersionsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 8, 1, 1} +} +func (m *RpcHistoryGetVersionsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcHistoryGetVersionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcHistoryGetVersionsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcHistoryGetVersionsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcHistoryGetVersionsResponse.Merge(m, src) +} +func (m *RpcHistoryGetVersionsResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcHistoryGetVersionsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcHistoryGetVersionsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcHistoryGetVersionsResponse proto.InternalMessageInfo + +func (m *RpcHistoryGetVersionsResponse) GetError() *RpcHistoryGetVersionsResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcHistoryGetVersionsResponse) GetVersions() []*RpcHistoryVersion { + if m != nil { + return m.Versions + } + return nil +} + +type RpcHistoryGetVersionsResponseError struct { + Code RpcHistoryGetVersionsResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcHistoryGetVersionsResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcHistoryGetVersionsResponseError) Reset() { *m = RpcHistoryGetVersionsResponseError{} } +func (m *RpcHistoryGetVersionsResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcHistoryGetVersionsResponseError) ProtoMessage() {} +func (*RpcHistoryGetVersionsResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 8, 1, 1, 0} +} +func (m *RpcHistoryGetVersionsResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcHistoryGetVersionsResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcHistoryGetVersionsResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcHistoryGetVersionsResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcHistoryGetVersionsResponseError.Merge(m, src) +} +func (m *RpcHistoryGetVersionsResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcHistoryGetVersionsResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcHistoryGetVersionsResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcHistoryGetVersionsResponseError proto.InternalMessageInfo + +func (m *RpcHistoryGetVersionsResponseError) GetCode() RpcHistoryGetVersionsResponseErrorCode { + if m != nil { + return m.Code + } + return RpcHistoryGetVersionsResponseError_NULL +} + +func (m *RpcHistoryGetVersionsResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +// returns blockShow event for given version +type RpcHistoryShowVersion struct { +} + +func (m *RpcHistoryShowVersion) Reset() { *m = RpcHistoryShowVersion{} } +func (m *RpcHistoryShowVersion) String() string { return proto.CompactTextString(m) } +func (*RpcHistoryShowVersion) ProtoMessage() {} +func (*RpcHistoryShowVersion) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 8, 2} +} +func (m *RpcHistoryShowVersion) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcHistoryShowVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcHistoryShowVersion.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcHistoryShowVersion) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcHistoryShowVersion.Merge(m, src) +} +func (m *RpcHistoryShowVersion) XXX_Size() int { + return m.Size() +} +func (m *RpcHistoryShowVersion) XXX_DiscardUnknown() { + xxx_messageInfo_RpcHistoryShowVersion.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcHistoryShowVersion proto.InternalMessageInfo + +type RpcHistoryShowVersionRequest struct { + PageId string `protobuf:"bytes,1,opt,name=pageId,proto3" json:"pageId,omitempty"` + VersionId string `protobuf:"bytes,2,opt,name=versionId,proto3" json:"versionId,omitempty"` + TraceId string `protobuf:"bytes,3,opt,name=traceId,proto3" json:"traceId,omitempty"` +} + +func (m *RpcHistoryShowVersionRequest) Reset() { *m = RpcHistoryShowVersionRequest{} } +func (m *RpcHistoryShowVersionRequest) String() string { return proto.CompactTextString(m) } +func (*RpcHistoryShowVersionRequest) ProtoMessage() {} +func (*RpcHistoryShowVersionRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 8, 2, 0} +} +func (m *RpcHistoryShowVersionRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcHistoryShowVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcHistoryShowVersionRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcHistoryShowVersionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcHistoryShowVersionRequest.Merge(m, src) +} +func (m *RpcHistoryShowVersionRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcHistoryShowVersionRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcHistoryShowVersionRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcHistoryShowVersionRequest proto.InternalMessageInfo + +func (m *RpcHistoryShowVersionRequest) GetPageId() string { + if m != nil { + return m.PageId + } + return "" +} + +func (m *RpcHistoryShowVersionRequest) GetVersionId() string { + if m != nil { + return m.VersionId + } + return "" +} + +func (m *RpcHistoryShowVersionRequest) GetTraceId() string { + if m != nil { + return m.TraceId + } + return "" +} + +type RpcHistoryShowVersionResponse struct { + Error *RpcHistoryShowVersionResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + ObjectShow *EventObjectShow `protobuf:"bytes,2,opt,name=objectShow,proto3" json:"objectShow,omitempty"` + Version *RpcHistoryVersion `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` + TraceId string `protobuf:"bytes,4,opt,name=traceId,proto3" json:"traceId,omitempty"` +} + +func (m *RpcHistoryShowVersionResponse) Reset() { *m = RpcHistoryShowVersionResponse{} } +func (m *RpcHistoryShowVersionResponse) String() string { return proto.CompactTextString(m) } +func (*RpcHistoryShowVersionResponse) ProtoMessage() {} +func (*RpcHistoryShowVersionResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 8, 2, 1} +} +func (m *RpcHistoryShowVersionResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcHistoryShowVersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcHistoryShowVersionResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcHistoryShowVersionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcHistoryShowVersionResponse.Merge(m, src) +} +func (m *RpcHistoryShowVersionResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcHistoryShowVersionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcHistoryShowVersionResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcHistoryShowVersionResponse proto.InternalMessageInfo + +func (m *RpcHistoryShowVersionResponse) GetError() *RpcHistoryShowVersionResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcHistoryShowVersionResponse) GetObjectShow() *EventObjectShow { + if m != nil { + return m.ObjectShow + } + return nil +} + +func (m *RpcHistoryShowVersionResponse) GetVersion() *RpcHistoryVersion { + if m != nil { + return m.Version + } + return nil +} + +func (m *RpcHistoryShowVersionResponse) GetTraceId() string { + if m != nil { + return m.TraceId + } + return "" +} + +type RpcHistoryShowVersionResponseError struct { + Code RpcHistoryShowVersionResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcHistoryShowVersionResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcHistoryShowVersionResponseError) Reset() { *m = RpcHistoryShowVersionResponseError{} } +func (m *RpcHistoryShowVersionResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcHistoryShowVersionResponseError) ProtoMessage() {} +func (*RpcHistoryShowVersionResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 8, 2, 1, 0} +} +func (m *RpcHistoryShowVersionResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcHistoryShowVersionResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcHistoryShowVersionResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcHistoryShowVersionResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcHistoryShowVersionResponseError.Merge(m, src) +} +func (m *RpcHistoryShowVersionResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcHistoryShowVersionResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcHistoryShowVersionResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcHistoryShowVersionResponseError proto.InternalMessageInfo + +func (m *RpcHistoryShowVersionResponseError) GetCode() RpcHistoryShowVersionResponseErrorCode { + if m != nil { + return m.Code + } + return RpcHistoryShowVersionResponseError_NULL +} + +func (m *RpcHistoryShowVersionResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcHistorySetVersion struct { +} + +func (m *RpcHistorySetVersion) Reset() { *m = RpcHistorySetVersion{} } +func (m *RpcHistorySetVersion) String() string { return proto.CompactTextString(m) } +func (*RpcHistorySetVersion) ProtoMessage() {} +func (*RpcHistorySetVersion) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 8, 3} +} +func (m *RpcHistorySetVersion) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcHistorySetVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcHistorySetVersion.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcHistorySetVersion) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcHistorySetVersion.Merge(m, src) +} +func (m *RpcHistorySetVersion) XXX_Size() int { + return m.Size() +} +func (m *RpcHistorySetVersion) XXX_DiscardUnknown() { + xxx_messageInfo_RpcHistorySetVersion.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcHistorySetVersion proto.InternalMessageInfo + +type RpcHistorySetVersionRequest struct { + PageId string `protobuf:"bytes,1,opt,name=pageId,proto3" json:"pageId,omitempty"` + VersionId string `protobuf:"bytes,2,opt,name=versionId,proto3" json:"versionId,omitempty"` +} + +func (m *RpcHistorySetVersionRequest) Reset() { *m = RpcHistorySetVersionRequest{} } +func (m *RpcHistorySetVersionRequest) String() string { return proto.CompactTextString(m) } +func (*RpcHistorySetVersionRequest) ProtoMessage() {} +func (*RpcHistorySetVersionRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 8, 3, 0} +} +func (m *RpcHistorySetVersionRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcHistorySetVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcHistorySetVersionRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcHistorySetVersionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcHistorySetVersionRequest.Merge(m, src) +} +func (m *RpcHistorySetVersionRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcHistorySetVersionRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcHistorySetVersionRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcHistorySetVersionRequest proto.InternalMessageInfo + +func (m *RpcHistorySetVersionRequest) GetPageId() string { + if m != nil { + return m.PageId + } + return "" +} + +func (m *RpcHistorySetVersionRequest) GetVersionId() string { + if m != nil { + return m.VersionId + } + return "" +} + +type RpcHistorySetVersionResponse struct { + Error *RpcHistorySetVersionResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +} + +func (m *RpcHistorySetVersionResponse) Reset() { *m = RpcHistorySetVersionResponse{} } +func (m *RpcHistorySetVersionResponse) String() string { return proto.CompactTextString(m) } +func (*RpcHistorySetVersionResponse) ProtoMessage() {} +func (*RpcHistorySetVersionResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 8, 3, 1} +} +func (m *RpcHistorySetVersionResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcHistorySetVersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcHistorySetVersionResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcHistorySetVersionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcHistorySetVersionResponse.Merge(m, src) +} +func (m *RpcHistorySetVersionResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcHistorySetVersionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcHistorySetVersionResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcHistorySetVersionResponse proto.InternalMessageInfo + +func (m *RpcHistorySetVersionResponse) GetError() *RpcHistorySetVersionResponseError { + if m != nil { + return m.Error + } + return nil +} + +type RpcHistorySetVersionResponseError struct { + Code RpcHistorySetVersionResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcHistorySetVersionResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcHistorySetVersionResponseError) Reset() { *m = RpcHistorySetVersionResponseError{} } +func (m *RpcHistorySetVersionResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcHistorySetVersionResponseError) ProtoMessage() {} +func (*RpcHistorySetVersionResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 8, 3, 1, 0} +} +func (m *RpcHistorySetVersionResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcHistorySetVersionResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcHistorySetVersionResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcHistorySetVersionResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcHistorySetVersionResponseError.Merge(m, src) +} +func (m *RpcHistorySetVersionResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcHistorySetVersionResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcHistorySetVersionResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcHistorySetVersionResponseError proto.InternalMessageInfo + +func (m *RpcHistorySetVersionResponseError) GetCode() RpcHistorySetVersionResponseErrorCode { + if m != nil { + return m.Code + } + return RpcHistorySetVersionResponseError_NULL +} + +func (m *RpcHistorySetVersionResponseError) GetDescription() string { if m != nil { return m.Description } @@ -25236,42 +18364,6 @@ func (m *RpcFileOffloadResponseError) GetDescription() string { return "" } -type RpcFileList struct { -} - -func (m *RpcFileList) Reset() { *m = RpcFileList{} } -func (m *RpcFileList) String() string { return proto.CompactTextString(m) } -func (*RpcFileList) ProtoMessage() {} -func (*RpcFileList) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 10} -} -func (m *RpcFileList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcFileList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcFileList.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcFileList) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcFileList.Merge(m, src) -} -func (m *RpcFileList) XXX_Size() int { - return m.Size() -} -func (m *RpcFileList) XXX_DiscardUnknown() { - xxx_messageInfo_RpcFileList.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcFileList proto.InternalMessageInfo - type RpcFileListOffload struct { } @@ -25279,7 +18371,7 @@ func (m *RpcFileListOffload) Reset() { *m = RpcFileListOffload{} } func (m *RpcFileListOffload) String() string { return proto.CompactTextString(m) } func (*RpcFileListOffload) ProtoMessage() {} func (*RpcFileListOffload) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 10, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 9, 1} } func (m *RpcFileListOffload) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -25317,7 +18409,7 @@ func (m *RpcFileListOffloadRequest) Reset() { *m = RpcFileListOffloadReq func (m *RpcFileListOffloadRequest) String() string { return proto.CompactTextString(m) } func (*RpcFileListOffloadRequest) ProtoMessage() {} func (*RpcFileListOffloadRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 10, 0, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 9, 1, 0} } func (m *RpcFileListOffloadRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -25370,7 +18462,7 @@ func (m *RpcFileListOffloadResponse) Reset() { *m = RpcFileListOffloadRe func (m *RpcFileListOffloadResponse) String() string { return proto.CompactTextString(m) } func (*RpcFileListOffloadResponse) ProtoMessage() {} func (*RpcFileListOffloadResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 10, 0, 1} + return fileDescriptor_8261c968b2e6f45c, []int{0, 9, 1, 1} } func (m *RpcFileListOffloadResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -25429,7 +18521,7 @@ func (m *RpcFileListOffloadResponseError) Reset() { *m = RpcFileListOffl func (m *RpcFileListOffloadResponseError) String() string { return proto.CompactTextString(m) } func (*RpcFileListOffloadResponseError) ProtoMessage() {} func (*RpcFileListOffloadResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 10, 0, 1, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 9, 1, 1, 0} } func (m *RpcFileListOffloadResponseError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -25472,21 +18564,21 @@ func (m *RpcFileListOffloadResponseError) GetDescription() string { return "" } -type RpcShutdown struct { +type RpcFileUpload struct { } -func (m *RpcShutdown) Reset() { *m = RpcShutdown{} } -func (m *RpcShutdown) String() string { return proto.CompactTextString(m) } -func (*RpcShutdown) ProtoMessage() {} -func (*RpcShutdown) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 11} +func (m *RpcFileUpload) Reset() { *m = RpcFileUpload{} } +func (m *RpcFileUpload) String() string { return proto.CompactTextString(m) } +func (*RpcFileUpload) ProtoMessage() {} +func (*RpcFileUpload) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 9, 2} } -func (m *RpcShutdown) XXX_Unmarshal(b []byte) error { +func (m *RpcFileUpload) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcShutdown) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcFileUpload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcShutdown.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcFileUpload.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -25496,1219 +18588,19 @@ func (m *RpcShutdown) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return b[:n], nil } } -func (m *RpcShutdown) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcShutdown.Merge(m, src) +func (m *RpcFileUpload) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcFileUpload.Merge(m, src) } -func (m *RpcShutdown) XXX_Size() int { +func (m *RpcFileUpload) XXX_Size() int { return m.Size() } -func (m *RpcShutdown) XXX_DiscardUnknown() { - xxx_messageInfo_RpcShutdown.DiscardUnknown(m) +func (m *RpcFileUpload) XXX_DiscardUnknown() { + xxx_messageInfo_RpcFileUpload.DiscardUnknown(m) } -var xxx_messageInfo_RpcShutdown proto.InternalMessageInfo +var xxx_messageInfo_RpcFileUpload proto.InternalMessageInfo -type RpcShutdownRequest struct { -} - -func (m *RpcShutdownRequest) Reset() { *m = RpcShutdownRequest{} } -func (m *RpcShutdownRequest) String() string { return proto.CompactTextString(m) } -func (*RpcShutdownRequest) ProtoMessage() {} -func (*RpcShutdownRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 11, 0} -} -func (m *RpcShutdownRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcShutdownRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcShutdownRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcShutdownRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcShutdownRequest.Merge(m, src) -} -func (m *RpcShutdownRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcShutdownRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcShutdownRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcShutdownRequest proto.InternalMessageInfo - -type RpcShutdownResponse struct { - Error *RpcShutdownResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` -} - -func (m *RpcShutdownResponse) Reset() { *m = RpcShutdownResponse{} } -func (m *RpcShutdownResponse) String() string { return proto.CompactTextString(m) } -func (*RpcShutdownResponse) ProtoMessage() {} -func (*RpcShutdownResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 11, 1} -} -func (m *RpcShutdownResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcShutdownResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcShutdownResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcShutdownResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcShutdownResponse.Merge(m, src) -} -func (m *RpcShutdownResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcShutdownResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcShutdownResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcShutdownResponse proto.InternalMessageInfo - -func (m *RpcShutdownResponse) GetError() *RpcShutdownResponseError { - if m != nil { - return m.Error - } - return nil -} - -type RpcShutdownResponseError struct { - Code RpcShutdownResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcShutdownResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcShutdownResponseError) Reset() { *m = RpcShutdownResponseError{} } -func (m *RpcShutdownResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcShutdownResponseError) ProtoMessage() {} -func (*RpcShutdownResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 11, 1, 0} -} -func (m *RpcShutdownResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcShutdownResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcShutdownResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcShutdownResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcShutdownResponseError.Merge(m, src) -} -func (m *RpcShutdownResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcShutdownResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcShutdownResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcShutdownResponseError proto.InternalMessageInfo - -func (m *RpcShutdownResponseError) GetCode() RpcShutdownResponseErrorCode { - if m != nil { - return m.Code - } - return RpcShutdownResponseError_NULL -} - -func (m *RpcShutdownResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcDeviceState struct { -} - -func (m *RpcDeviceState) Reset() { *m = RpcDeviceState{} } -func (m *RpcDeviceState) String() string { return proto.CompactTextString(m) } -func (*RpcDeviceState) ProtoMessage() {} -func (*RpcDeviceState) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 12} -} -func (m *RpcDeviceState) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcDeviceState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcDeviceState.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcDeviceState) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcDeviceState.Merge(m, src) -} -func (m *RpcDeviceState) XXX_Size() int { - return m.Size() -} -func (m *RpcDeviceState) XXX_DiscardUnknown() { - xxx_messageInfo_RpcDeviceState.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcDeviceState proto.InternalMessageInfo - -type RpcDeviceStateRequest struct { - DeviceState RpcDeviceStateRequestDeviceState `protobuf:"varint,1,opt,name=deviceState,proto3,enum=anytype.RpcDeviceStateRequestDeviceState" json:"deviceState,omitempty"` -} - -func (m *RpcDeviceStateRequest) Reset() { *m = RpcDeviceStateRequest{} } -func (m *RpcDeviceStateRequest) String() string { return proto.CompactTextString(m) } -func (*RpcDeviceStateRequest) ProtoMessage() {} -func (*RpcDeviceStateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 12, 0} -} -func (m *RpcDeviceStateRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcDeviceStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcDeviceStateRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcDeviceStateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcDeviceStateRequest.Merge(m, src) -} -func (m *RpcDeviceStateRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcDeviceStateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcDeviceStateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcDeviceStateRequest proto.InternalMessageInfo - -func (m *RpcDeviceStateRequest) GetDeviceState() RpcDeviceStateRequestDeviceState { - if m != nil { - return m.DeviceState - } - return RpcDeviceStateRequest_BACKGROUND -} - -type RpcDeviceStateResponse struct { - Error *RpcDeviceStateResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` -} - -func (m *RpcDeviceStateResponse) Reset() { *m = RpcDeviceStateResponse{} } -func (m *RpcDeviceStateResponse) String() string { return proto.CompactTextString(m) } -func (*RpcDeviceStateResponse) ProtoMessage() {} -func (*RpcDeviceStateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 12, 1} -} -func (m *RpcDeviceStateResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcDeviceStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcDeviceStateResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcDeviceStateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcDeviceStateResponse.Merge(m, src) -} -func (m *RpcDeviceStateResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcDeviceStateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcDeviceStateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcDeviceStateResponse proto.InternalMessageInfo - -func (m *RpcDeviceStateResponse) GetError() *RpcDeviceStateResponseError { - if m != nil { - return m.Error - } - return nil -} - -type RpcDeviceStateResponseError struct { - Code RpcDeviceStateResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcDeviceStateResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcDeviceStateResponseError) Reset() { *m = RpcDeviceStateResponseError{} } -func (m *RpcDeviceStateResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcDeviceStateResponseError) ProtoMessage() {} -func (*RpcDeviceStateResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 12, 1, 0} -} -func (m *RpcDeviceStateResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcDeviceStateResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcDeviceStateResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcDeviceStateResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcDeviceStateResponseError.Merge(m, src) -} -func (m *RpcDeviceStateResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcDeviceStateResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcDeviceStateResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcDeviceStateResponseError proto.InternalMessageInfo - -func (m *RpcDeviceStateResponseError) GetCode() RpcDeviceStateResponseErrorCode { - if m != nil { - return m.Code - } - return RpcDeviceStateResponseError_NULL -} - -func (m *RpcDeviceStateResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcConfig struct { -} - -func (m *RpcConfig) Reset() { *m = RpcConfig{} } -func (m *RpcConfig) String() string { return proto.CompactTextString(m) } -func (*RpcConfig) ProtoMessage() {} -func (*RpcConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 13} -} -func (m *RpcConfig) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcConfig.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcConfig.Merge(m, src) -} -func (m *RpcConfig) XXX_Size() int { - return m.Size() -} -func (m *RpcConfig) XXX_DiscardUnknown() { - xxx_messageInfo_RpcConfig.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcConfig proto.InternalMessageInfo - -type RpcConfigGet struct { -} - -func (m *RpcConfigGet) Reset() { *m = RpcConfigGet{} } -func (m *RpcConfigGet) String() string { return proto.CompactTextString(m) } -func (*RpcConfigGet) ProtoMessage() {} -func (*RpcConfigGet) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 13, 0} -} -func (m *RpcConfigGet) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcConfigGet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcConfigGet.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcConfigGet) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcConfigGet.Merge(m, src) -} -func (m *RpcConfigGet) XXX_Size() int { - return m.Size() -} -func (m *RpcConfigGet) XXX_DiscardUnknown() { - xxx_messageInfo_RpcConfigGet.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcConfigGet proto.InternalMessageInfo - -type RpcConfigGetRequest struct { -} - -func (m *RpcConfigGetRequest) Reset() { *m = RpcConfigGetRequest{} } -func (m *RpcConfigGetRequest) String() string { return proto.CompactTextString(m) } -func (*RpcConfigGetRequest) ProtoMessage() {} -func (*RpcConfigGetRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 13, 0, 0} -} -func (m *RpcConfigGetRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcConfigGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcConfigGetRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcConfigGetRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcConfigGetRequest.Merge(m, src) -} -func (m *RpcConfigGetRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcConfigGetRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcConfigGetRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcConfigGetRequest proto.InternalMessageInfo - -type RpcConfigGetResponse struct { - Error *RpcConfigGetResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - HomeBlockId string `protobuf:"bytes,2,opt,name=homeBlockId,proto3" json:"homeBlockId,omitempty"` - ArchiveBlockId string `protobuf:"bytes,3,opt,name=archiveBlockId,proto3" json:"archiveBlockId,omitempty"` - ProfileBlockId string `protobuf:"bytes,4,opt,name=profileBlockId,proto3" json:"profileBlockId,omitempty"` - MarketplaceTypeId string `protobuf:"bytes,5,opt,name=marketplaceTypeId,proto3" json:"marketplaceTypeId,omitempty"` - MarketplaceRelationId string `protobuf:"bytes,6,opt,name=marketplaceRelationId,proto3" json:"marketplaceRelationId,omitempty"` - MarketplaceTemplateId string `protobuf:"bytes,7,opt,name=marketplaceTemplateId,proto3" json:"marketplaceTemplateId,omitempty"` - DeviceId string `protobuf:"bytes,8,opt,name=deviceId,proto3" json:"deviceId,omitempty"` - GatewayUrl string `protobuf:"bytes,101,opt,name=gatewayUrl,proto3" json:"gatewayUrl,omitempty"` -} - -func (m *RpcConfigGetResponse) Reset() { *m = RpcConfigGetResponse{} } -func (m *RpcConfigGetResponse) String() string { return proto.CompactTextString(m) } -func (*RpcConfigGetResponse) ProtoMessage() {} -func (*RpcConfigGetResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 13, 0, 1} -} -func (m *RpcConfigGetResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcConfigGetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcConfigGetResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcConfigGetResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcConfigGetResponse.Merge(m, src) -} -func (m *RpcConfigGetResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcConfigGetResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcConfigGetResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcConfigGetResponse proto.InternalMessageInfo - -func (m *RpcConfigGetResponse) GetError() *RpcConfigGetResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcConfigGetResponse) GetHomeBlockId() string { - if m != nil { - return m.HomeBlockId - } - return "" -} - -func (m *RpcConfigGetResponse) GetArchiveBlockId() string { - if m != nil { - return m.ArchiveBlockId - } - return "" -} - -func (m *RpcConfigGetResponse) GetProfileBlockId() string { - if m != nil { - return m.ProfileBlockId - } - return "" -} - -func (m *RpcConfigGetResponse) GetMarketplaceTypeId() string { - if m != nil { - return m.MarketplaceTypeId - } - return "" -} - -func (m *RpcConfigGetResponse) GetMarketplaceRelationId() string { - if m != nil { - return m.MarketplaceRelationId - } - return "" -} - -func (m *RpcConfigGetResponse) GetMarketplaceTemplateId() string { - if m != nil { - return m.MarketplaceTemplateId - } - return "" -} - -func (m *RpcConfigGetResponse) GetDeviceId() string { - if m != nil { - return m.DeviceId - } - return "" -} - -func (m *RpcConfigGetResponse) GetGatewayUrl() string { - if m != nil { - return m.GatewayUrl - } - return "" -} - -type RpcConfigGetResponseError struct { - Code RpcConfigGetResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcConfigGetResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcConfigGetResponseError) Reset() { *m = RpcConfigGetResponseError{} } -func (m *RpcConfigGetResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcConfigGetResponseError) ProtoMessage() {} -func (*RpcConfigGetResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 13, 0, 1, 0} -} -func (m *RpcConfigGetResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcConfigGetResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcConfigGetResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcConfigGetResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcConfigGetResponseError.Merge(m, src) -} -func (m *RpcConfigGetResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcConfigGetResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcConfigGetResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcConfigGetResponseError proto.InternalMessageInfo - -func (m *RpcConfigGetResponseError) GetCode() RpcConfigGetResponseErrorCode { - if m != nil { - return m.Code - } - return RpcConfigGetResponseError_NULL -} - -func (m *RpcConfigGetResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcPing struct { -} - -func (m *RpcPing) Reset() { *m = RpcPing{} } -func (m *RpcPing) String() string { return proto.CompactTextString(m) } -func (*RpcPing) ProtoMessage() {} -func (*RpcPing) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 14} -} -func (m *RpcPing) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcPing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcPing.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcPing) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcPing.Merge(m, src) -} -func (m *RpcPing) XXX_Size() int { - return m.Size() -} -func (m *RpcPing) XXX_DiscardUnknown() { - xxx_messageInfo_RpcPing.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcPing proto.InternalMessageInfo - -type RpcPingRequest struct { - Index int32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` - NumberOfEventsToSend int32 `protobuf:"varint,2,opt,name=numberOfEventsToSend,proto3" json:"numberOfEventsToSend,omitempty"` -} - -func (m *RpcPingRequest) Reset() { *m = RpcPingRequest{} } -func (m *RpcPingRequest) String() string { return proto.CompactTextString(m) } -func (*RpcPingRequest) ProtoMessage() {} -func (*RpcPingRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 0} -} -func (m *RpcPingRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcPingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcPingRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcPingRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcPingRequest.Merge(m, src) -} -func (m *RpcPingRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcPingRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcPingRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcPingRequest proto.InternalMessageInfo - -func (m *RpcPingRequest) GetIndex() int32 { - if m != nil { - return m.Index - } - return 0 -} - -func (m *RpcPingRequest) GetNumberOfEventsToSend() int32 { - if m != nil { - return m.NumberOfEventsToSend - } - return 0 -} - -type RpcPingResponse struct { - Error *RpcPingResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Index int32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` -} - -func (m *RpcPingResponse) Reset() { *m = RpcPingResponse{} } -func (m *RpcPingResponse) String() string { return proto.CompactTextString(m) } -func (*RpcPingResponse) ProtoMessage() {} -func (*RpcPingResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 1} -} -func (m *RpcPingResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcPingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcPingResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcPingResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcPingResponse.Merge(m, src) -} -func (m *RpcPingResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcPingResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcPingResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcPingResponse proto.InternalMessageInfo - -func (m *RpcPingResponse) GetError() *RpcPingResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcPingResponse) GetIndex() int32 { - if m != nil { - return m.Index - } - return 0 -} - -type RpcPingResponseError struct { - Code RpcPingResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcPingResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcPingResponseError) Reset() { *m = RpcPingResponseError{} } -func (m *RpcPingResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcPingResponseError) ProtoMessage() {} -func (*RpcPingResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 1, 0} -} -func (m *RpcPingResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcPingResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcPingResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcPingResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcPingResponseError.Merge(m, src) -} -func (m *RpcPingResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcPingResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcPingResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcPingResponseError proto.InternalMessageInfo - -func (m *RpcPingResponseError) GetCode() RpcPingResponseErrorCode { - if m != nil { - return m.Code - } - return RpcPingResponseError_NULL -} - -func (m *RpcPingResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcProcess struct { -} - -func (m *RpcProcess) Reset() { *m = RpcProcess{} } -func (m *RpcProcess) String() string { return proto.CompactTextString(m) } -func (*RpcProcess) ProtoMessage() {} -func (*RpcProcess) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 15} -} -func (m *RpcProcess) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcProcess) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcProcess.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcProcess) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcProcess.Merge(m, src) -} -func (m *RpcProcess) XXX_Size() int { - return m.Size() -} -func (m *RpcProcess) XXX_DiscardUnknown() { - xxx_messageInfo_RpcProcess.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcProcess proto.InternalMessageInfo - -type RpcProcessCancel struct { -} - -func (m *RpcProcessCancel) Reset() { *m = RpcProcessCancel{} } -func (m *RpcProcessCancel) String() string { return proto.CompactTextString(m) } -func (*RpcProcessCancel) ProtoMessage() {} -func (*RpcProcessCancel) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 15, 0} -} -func (m *RpcProcessCancel) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcProcessCancel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcProcessCancel.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcProcessCancel) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcProcessCancel.Merge(m, src) -} -func (m *RpcProcessCancel) XXX_Size() int { - return m.Size() -} -func (m *RpcProcessCancel) XXX_DiscardUnknown() { - xxx_messageInfo_RpcProcessCancel.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcProcessCancel proto.InternalMessageInfo - -type RpcProcessCancelRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (m *RpcProcessCancelRequest) Reset() { *m = RpcProcessCancelRequest{} } -func (m *RpcProcessCancelRequest) String() string { return proto.CompactTextString(m) } -func (*RpcProcessCancelRequest) ProtoMessage() {} -func (*RpcProcessCancelRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 15, 0, 0} -} -func (m *RpcProcessCancelRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcProcessCancelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcProcessCancelRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcProcessCancelRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcProcessCancelRequest.Merge(m, src) -} -func (m *RpcProcessCancelRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcProcessCancelRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcProcessCancelRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcProcessCancelRequest proto.InternalMessageInfo - -func (m *RpcProcessCancelRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -type RpcProcessCancelResponse struct { - Error *RpcProcessCancelResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` -} - -func (m *RpcProcessCancelResponse) Reset() { *m = RpcProcessCancelResponse{} } -func (m *RpcProcessCancelResponse) String() string { return proto.CompactTextString(m) } -func (*RpcProcessCancelResponse) ProtoMessage() {} -func (*RpcProcessCancelResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 15, 0, 1} -} -func (m *RpcProcessCancelResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcProcessCancelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcProcessCancelResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcProcessCancelResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcProcessCancelResponse.Merge(m, src) -} -func (m *RpcProcessCancelResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcProcessCancelResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcProcessCancelResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcProcessCancelResponse proto.InternalMessageInfo - -func (m *RpcProcessCancelResponse) GetError() *RpcProcessCancelResponseError { - if m != nil { - return m.Error - } - return nil -} - -type RpcProcessCancelResponseError struct { - Code RpcProcessCancelResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcProcessCancelResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcProcessCancelResponseError) Reset() { *m = RpcProcessCancelResponseError{} } -func (m *RpcProcessCancelResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcProcessCancelResponseError) ProtoMessage() {} -func (*RpcProcessCancelResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 15, 0, 1, 0} -} -func (m *RpcProcessCancelResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcProcessCancelResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcProcessCancelResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcProcessCancelResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcProcessCancelResponseError.Merge(m, src) -} -func (m *RpcProcessCancelResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcProcessCancelResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcProcessCancelResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcProcessCancelResponseError proto.InternalMessageInfo - -func (m *RpcProcessCancelResponseError) GetCode() RpcProcessCancelResponseErrorCode { - if m != nil { - return m.Code - } - return RpcProcessCancelResponseError_NULL -} - -func (m *RpcProcessCancelResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcLinkPreview struct { -} - -func (m *RpcLinkPreview) Reset() { *m = RpcLinkPreview{} } -func (m *RpcLinkPreview) String() string { return proto.CompactTextString(m) } -func (*RpcLinkPreview) ProtoMessage() {} -func (*RpcLinkPreview) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 16} -} -func (m *RpcLinkPreview) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcLinkPreview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcLinkPreview.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcLinkPreview) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcLinkPreview.Merge(m, src) -} -func (m *RpcLinkPreview) XXX_Size() int { - return m.Size() -} -func (m *RpcLinkPreview) XXX_DiscardUnknown() { - xxx_messageInfo_RpcLinkPreview.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcLinkPreview proto.InternalMessageInfo - -type RpcLinkPreviewRequest struct { - Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` -} - -func (m *RpcLinkPreviewRequest) Reset() { *m = RpcLinkPreviewRequest{} } -func (m *RpcLinkPreviewRequest) String() string { return proto.CompactTextString(m) } -func (*RpcLinkPreviewRequest) ProtoMessage() {} -func (*RpcLinkPreviewRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 0} -} -func (m *RpcLinkPreviewRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcLinkPreviewRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcLinkPreviewRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcLinkPreviewRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcLinkPreviewRequest.Merge(m, src) -} -func (m *RpcLinkPreviewRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcLinkPreviewRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcLinkPreviewRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcLinkPreviewRequest proto.InternalMessageInfo - -func (m *RpcLinkPreviewRequest) GetUrl() string { - if m != nil { - return m.Url - } - return "" -} - -type RpcLinkPreviewResponse struct { - Error *RpcLinkPreviewResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - LinkPreview *model.LinkPreview `protobuf:"bytes,2,opt,name=linkPreview,proto3" json:"linkPreview,omitempty"` -} - -func (m *RpcLinkPreviewResponse) Reset() { *m = RpcLinkPreviewResponse{} } -func (m *RpcLinkPreviewResponse) String() string { return proto.CompactTextString(m) } -func (*RpcLinkPreviewResponse) ProtoMessage() {} -func (*RpcLinkPreviewResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 1} -} -func (m *RpcLinkPreviewResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcLinkPreviewResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcLinkPreviewResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcLinkPreviewResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcLinkPreviewResponse.Merge(m, src) -} -func (m *RpcLinkPreviewResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcLinkPreviewResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcLinkPreviewResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcLinkPreviewResponse proto.InternalMessageInfo - -func (m *RpcLinkPreviewResponse) GetError() *RpcLinkPreviewResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcLinkPreviewResponse) GetLinkPreview() *model.LinkPreview { - if m != nil { - return m.LinkPreview - } - return nil -} - -type RpcLinkPreviewResponseError struct { - Code RpcLinkPreviewResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcLinkPreviewResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcLinkPreviewResponseError) Reset() { *m = RpcLinkPreviewResponseError{} } -func (m *RpcLinkPreviewResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcLinkPreviewResponseError) ProtoMessage() {} -func (*RpcLinkPreviewResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 1, 0} -} -func (m *RpcLinkPreviewResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcLinkPreviewResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcLinkPreviewResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcLinkPreviewResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcLinkPreviewResponseError.Merge(m, src) -} -func (m *RpcLinkPreviewResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcLinkPreviewResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcLinkPreviewResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcLinkPreviewResponseError proto.InternalMessageInfo - -func (m *RpcLinkPreviewResponseError) GetCode() RpcLinkPreviewResponseErrorCode { - if m != nil { - return m.Code - } - return RpcLinkPreviewResponseError_NULL -} - -func (m *RpcLinkPreviewResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcUploadFile struct { -} - -func (m *RpcUploadFile) Reset() { *m = RpcUploadFile{} } -func (m *RpcUploadFile) String() string { return proto.CompactTextString(m) } -func (*RpcUploadFile) ProtoMessage() {} -func (*RpcUploadFile) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 17} -} -func (m *RpcUploadFile) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcUploadFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcUploadFile.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcUploadFile) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcUploadFile.Merge(m, src) -} -func (m *RpcUploadFile) XXX_Size() int { - return m.Size() -} -func (m *RpcUploadFile) XXX_DiscardUnknown() { - xxx_messageInfo_RpcUploadFile.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcUploadFile proto.InternalMessageInfo - -type RpcUploadFileRequest struct { +type RpcFileUploadRequest struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` LocalPath string `protobuf:"bytes,2,opt,name=localPath,proto3" json:"localPath,omitempty"` Type model.BlockContentFileType `protobuf:"varint,3,opt,name=type,proto3,enum=anytype.model.BlockContentFileType" json:"type,omitempty"` @@ -26716,18 +18608,18 @@ type RpcUploadFileRequest struct { Style model.BlockContentFileStyle `protobuf:"varint,5,opt,name=style,proto3,enum=anytype.model.BlockContentFileStyle" json:"style,omitempty"` } -func (m *RpcUploadFileRequest) Reset() { *m = RpcUploadFileRequest{} } -func (m *RpcUploadFileRequest) String() string { return proto.CompactTextString(m) } -func (*RpcUploadFileRequest) ProtoMessage() {} -func (*RpcUploadFileRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 17, 0} +func (m *RpcFileUploadRequest) Reset() { *m = RpcFileUploadRequest{} } +func (m *RpcFileUploadRequest) String() string { return proto.CompactTextString(m) } +func (*RpcFileUploadRequest) ProtoMessage() {} +func (*RpcFileUploadRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 9, 2, 0} } -func (m *RpcUploadFileRequest) XXX_Unmarshal(b []byte) error { +func (m *RpcFileUploadRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcUploadFileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcFileUploadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcUploadFileRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcFileUploadRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -26737,70 +18629,70 @@ func (m *RpcUploadFileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte return b[:n], nil } } -func (m *RpcUploadFileRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcUploadFileRequest.Merge(m, src) +func (m *RpcFileUploadRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcFileUploadRequest.Merge(m, src) } -func (m *RpcUploadFileRequest) XXX_Size() int { +func (m *RpcFileUploadRequest) XXX_Size() int { return m.Size() } -func (m *RpcUploadFileRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcUploadFileRequest.DiscardUnknown(m) +func (m *RpcFileUploadRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcFileUploadRequest.DiscardUnknown(m) } -var xxx_messageInfo_RpcUploadFileRequest proto.InternalMessageInfo +var xxx_messageInfo_RpcFileUploadRequest proto.InternalMessageInfo -func (m *RpcUploadFileRequest) GetUrl() string { +func (m *RpcFileUploadRequest) GetUrl() string { if m != nil { return m.Url } return "" } -func (m *RpcUploadFileRequest) GetLocalPath() string { +func (m *RpcFileUploadRequest) GetLocalPath() string { if m != nil { return m.LocalPath } return "" } -func (m *RpcUploadFileRequest) GetType() model.BlockContentFileType { +func (m *RpcFileUploadRequest) GetType() model.BlockContentFileType { if m != nil { return m.Type } return model.BlockContentFile_None } -func (m *RpcUploadFileRequest) GetDisableEncryption() bool { +func (m *RpcFileUploadRequest) GetDisableEncryption() bool { if m != nil { return m.DisableEncryption } return false } -func (m *RpcUploadFileRequest) GetStyle() model.BlockContentFileStyle { +func (m *RpcFileUploadRequest) GetStyle() model.BlockContentFileStyle { if m != nil { return m.Style } return model.BlockContentFile_Auto } -type RpcUploadFileResponse struct { - Error *RpcUploadFileResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +type RpcFileUploadResponse struct { + Error *RpcFileUploadResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` Hash string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` } -func (m *RpcUploadFileResponse) Reset() { *m = RpcUploadFileResponse{} } -func (m *RpcUploadFileResponse) String() string { return proto.CompactTextString(m) } -func (*RpcUploadFileResponse) ProtoMessage() {} -func (*RpcUploadFileResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 17, 1} +func (m *RpcFileUploadResponse) Reset() { *m = RpcFileUploadResponse{} } +func (m *RpcFileUploadResponse) String() string { return proto.CompactTextString(m) } +func (*RpcFileUploadResponse) ProtoMessage() {} +func (*RpcFileUploadResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 9, 2, 1} } -func (m *RpcUploadFileResponse) XXX_Unmarshal(b []byte) error { +func (m *RpcFileUploadResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcUploadFileResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcFileUploadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcUploadFileResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcFileUploadResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -26810,49 +18702,49 @@ func (m *RpcUploadFileResponse) XXX_Marshal(b []byte, deterministic bool) ([]byt return b[:n], nil } } -func (m *RpcUploadFileResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcUploadFileResponse.Merge(m, src) +func (m *RpcFileUploadResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcFileUploadResponse.Merge(m, src) } -func (m *RpcUploadFileResponse) XXX_Size() int { +func (m *RpcFileUploadResponse) XXX_Size() int { return m.Size() } -func (m *RpcUploadFileResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcUploadFileResponse.DiscardUnknown(m) +func (m *RpcFileUploadResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcFileUploadResponse.DiscardUnknown(m) } -var xxx_messageInfo_RpcUploadFileResponse proto.InternalMessageInfo +var xxx_messageInfo_RpcFileUploadResponse proto.InternalMessageInfo -func (m *RpcUploadFileResponse) GetError() *RpcUploadFileResponseError { +func (m *RpcFileUploadResponse) GetError() *RpcFileUploadResponseError { if m != nil { return m.Error } return nil } -func (m *RpcUploadFileResponse) GetHash() string { +func (m *RpcFileUploadResponse) GetHash() string { if m != nil { return m.Hash } return "" } -type RpcUploadFileResponseError struct { - Code RpcUploadFileResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcUploadFileResponseErrorCode" json:"code,omitempty"` +type RpcFileUploadResponseError struct { + Code RpcFileUploadResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcFileUploadResponseErrorCode" json:"code,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` } -func (m *RpcUploadFileResponseError) Reset() { *m = RpcUploadFileResponseError{} } -func (m *RpcUploadFileResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcUploadFileResponseError) ProtoMessage() {} -func (*RpcUploadFileResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 17, 1, 0} +func (m *RpcFileUploadResponseError) Reset() { *m = RpcFileUploadResponseError{} } +func (m *RpcFileUploadResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcFileUploadResponseError) ProtoMessage() {} +func (*RpcFileUploadResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 9, 2, 1, 0} } -func (m *RpcUploadFileResponseError) XXX_Unmarshal(b []byte) error { +func (m *RpcFileUploadResponseError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcUploadFileResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcFileUploadResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcUploadFileResponseError.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcFileUploadResponseError.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -26862,47 +18754,47 @@ func (m *RpcUploadFileResponseError) XXX_Marshal(b []byte, deterministic bool) ( return b[:n], nil } } -func (m *RpcUploadFileResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcUploadFileResponseError.Merge(m, src) +func (m *RpcFileUploadResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcFileUploadResponseError.Merge(m, src) } -func (m *RpcUploadFileResponseError) XXX_Size() int { +func (m *RpcFileUploadResponseError) XXX_Size() int { return m.Size() } -func (m *RpcUploadFileResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcUploadFileResponseError.DiscardUnknown(m) +func (m *RpcFileUploadResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcFileUploadResponseError.DiscardUnknown(m) } -var xxx_messageInfo_RpcUploadFileResponseError proto.InternalMessageInfo +var xxx_messageInfo_RpcFileUploadResponseError proto.InternalMessageInfo -func (m *RpcUploadFileResponseError) GetCode() RpcUploadFileResponseErrorCode { +func (m *RpcFileUploadResponseError) GetCode() RpcFileUploadResponseErrorCode { if m != nil { return m.Code } - return RpcUploadFileResponseError_NULL + return RpcFileUploadResponseError_NULL } -func (m *RpcUploadFileResponseError) GetDescription() string { +func (m *RpcFileUploadResponseError) GetDescription() string { if m != nil { return m.Description } return "" } -type RpcDownloadFile struct { +type RpcFileDownload struct { } -func (m *RpcDownloadFile) Reset() { *m = RpcDownloadFile{} } -func (m *RpcDownloadFile) String() string { return proto.CompactTextString(m) } -func (*RpcDownloadFile) ProtoMessage() {} -func (*RpcDownloadFile) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 18} +func (m *RpcFileDownload) Reset() { *m = RpcFileDownload{} } +func (m *RpcFileDownload) String() string { return proto.CompactTextString(m) } +func (*RpcFileDownload) ProtoMessage() {} +func (*RpcFileDownload) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 9, 3} } -func (m *RpcDownloadFile) XXX_Unmarshal(b []byte) error { +func (m *RpcFileDownload) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcDownloadFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcFileDownload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcDownloadFile.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcFileDownload.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -26912,35 +18804,35 @@ func (m *RpcDownloadFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return b[:n], nil } } -func (m *RpcDownloadFile) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcDownloadFile.Merge(m, src) +func (m *RpcFileDownload) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcFileDownload.Merge(m, src) } -func (m *RpcDownloadFile) XXX_Size() int { +func (m *RpcFileDownload) XXX_Size() int { return m.Size() } -func (m *RpcDownloadFile) XXX_DiscardUnknown() { - xxx_messageInfo_RpcDownloadFile.DiscardUnknown(m) +func (m *RpcFileDownload) XXX_DiscardUnknown() { + xxx_messageInfo_RpcFileDownload.DiscardUnknown(m) } -var xxx_messageInfo_RpcDownloadFile proto.InternalMessageInfo +var xxx_messageInfo_RpcFileDownload proto.InternalMessageInfo -type RpcDownloadFileRequest struct { +type RpcFileDownloadRequest struct { Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` } -func (m *RpcDownloadFileRequest) Reset() { *m = RpcDownloadFileRequest{} } -func (m *RpcDownloadFileRequest) String() string { return proto.CompactTextString(m) } -func (*RpcDownloadFileRequest) ProtoMessage() {} -func (*RpcDownloadFileRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 18, 0} +func (m *RpcFileDownloadRequest) Reset() { *m = RpcFileDownloadRequest{} } +func (m *RpcFileDownloadRequest) String() string { return proto.CompactTextString(m) } +func (*RpcFileDownloadRequest) ProtoMessage() {} +func (*RpcFileDownloadRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 9, 3, 0} } -func (m *RpcDownloadFileRequest) XXX_Unmarshal(b []byte) error { +func (m *RpcFileDownloadRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcDownloadFileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcFileDownloadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcDownloadFileRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcFileDownloadRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -26950,49 +18842,49 @@ func (m *RpcDownloadFileRequest) XXX_Marshal(b []byte, deterministic bool) ([]by return b[:n], nil } } -func (m *RpcDownloadFileRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcDownloadFileRequest.Merge(m, src) +func (m *RpcFileDownloadRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcFileDownloadRequest.Merge(m, src) } -func (m *RpcDownloadFileRequest) XXX_Size() int { +func (m *RpcFileDownloadRequest) XXX_Size() int { return m.Size() } -func (m *RpcDownloadFileRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcDownloadFileRequest.DiscardUnknown(m) +func (m *RpcFileDownloadRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcFileDownloadRequest.DiscardUnknown(m) } -var xxx_messageInfo_RpcDownloadFileRequest proto.InternalMessageInfo +var xxx_messageInfo_RpcFileDownloadRequest proto.InternalMessageInfo -func (m *RpcDownloadFileRequest) GetHash() string { +func (m *RpcFileDownloadRequest) GetHash() string { if m != nil { return m.Hash } return "" } -func (m *RpcDownloadFileRequest) GetPath() string { +func (m *RpcFileDownloadRequest) GetPath() string { if m != nil { return m.Path } return "" } -type RpcDownloadFileResponse struct { - Error *RpcDownloadFileResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +type RpcFileDownloadResponse struct { + Error *RpcFileDownloadResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` LocalPath string `protobuf:"bytes,2,opt,name=localPath,proto3" json:"localPath,omitempty"` } -func (m *RpcDownloadFileResponse) Reset() { *m = RpcDownloadFileResponse{} } -func (m *RpcDownloadFileResponse) String() string { return proto.CompactTextString(m) } -func (*RpcDownloadFileResponse) ProtoMessage() {} -func (*RpcDownloadFileResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 18, 1} +func (m *RpcFileDownloadResponse) Reset() { *m = RpcFileDownloadResponse{} } +func (m *RpcFileDownloadResponse) String() string { return proto.CompactTextString(m) } +func (*RpcFileDownloadResponse) ProtoMessage() {} +func (*RpcFileDownloadResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 9, 3, 1} } -func (m *RpcDownloadFileResponse) XXX_Unmarshal(b []byte) error { +func (m *RpcFileDownloadResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcDownloadFileResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcFileDownloadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcDownloadFileResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcFileDownloadResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -27002,49 +18894,49 @@ func (m *RpcDownloadFileResponse) XXX_Marshal(b []byte, deterministic bool) ([]b return b[:n], nil } } -func (m *RpcDownloadFileResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcDownloadFileResponse.Merge(m, src) +func (m *RpcFileDownloadResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcFileDownloadResponse.Merge(m, src) } -func (m *RpcDownloadFileResponse) XXX_Size() int { +func (m *RpcFileDownloadResponse) XXX_Size() int { return m.Size() } -func (m *RpcDownloadFileResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcDownloadFileResponse.DiscardUnknown(m) +func (m *RpcFileDownloadResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcFileDownloadResponse.DiscardUnknown(m) } -var xxx_messageInfo_RpcDownloadFileResponse proto.InternalMessageInfo +var xxx_messageInfo_RpcFileDownloadResponse proto.InternalMessageInfo -func (m *RpcDownloadFileResponse) GetError() *RpcDownloadFileResponseError { +func (m *RpcFileDownloadResponse) GetError() *RpcFileDownloadResponseError { if m != nil { return m.Error } return nil } -func (m *RpcDownloadFileResponse) GetLocalPath() string { +func (m *RpcFileDownloadResponse) GetLocalPath() string { if m != nil { return m.LocalPath } return "" } -type RpcDownloadFileResponseError struct { - Code RpcDownloadFileResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcDownloadFileResponseErrorCode" json:"code,omitempty"` +type RpcFileDownloadResponseError struct { + Code RpcFileDownloadResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcFileDownloadResponseErrorCode" json:"code,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` } -func (m *RpcDownloadFileResponseError) Reset() { *m = RpcDownloadFileResponseError{} } -func (m *RpcDownloadFileResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcDownloadFileResponseError) ProtoMessage() {} -func (*RpcDownloadFileResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 18, 1, 0} +func (m *RpcFileDownloadResponseError) Reset() { *m = RpcFileDownloadResponseError{} } +func (m *RpcFileDownloadResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcFileDownloadResponseError) ProtoMessage() {} +func (*RpcFileDownloadResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 9, 3, 1, 0} } -func (m *RpcDownloadFileResponseError) XXX_Unmarshal(b []byte) error { +func (m *RpcFileDownloadResponseError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcDownloadFileResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcFileDownloadResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcDownloadFileResponseError.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcFileDownloadResponseError.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -27054,26 +18946,234 @@ func (m *RpcDownloadFileResponseError) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *RpcDownloadFileResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcDownloadFileResponseError.Merge(m, src) +func (m *RpcFileDownloadResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcFileDownloadResponseError.Merge(m, src) } -func (m *RpcDownloadFileResponseError) XXX_Size() int { +func (m *RpcFileDownloadResponseError) XXX_Size() int { return m.Size() } -func (m *RpcDownloadFileResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcDownloadFileResponseError.DiscardUnknown(m) +func (m *RpcFileDownloadResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcFileDownloadResponseError.DiscardUnknown(m) } -var xxx_messageInfo_RpcDownloadFileResponseError proto.InternalMessageInfo +var xxx_messageInfo_RpcFileDownloadResponseError proto.InternalMessageInfo -func (m *RpcDownloadFileResponseError) GetCode() RpcDownloadFileResponseErrorCode { +func (m *RpcFileDownloadResponseError) GetCode() RpcFileDownloadResponseErrorCode { if m != nil { return m.Code } - return RpcDownloadFileResponseError_NULL + return RpcFileDownloadResponseError_NULL } -func (m *RpcDownloadFileResponseError) GetDescription() string { +func (m *RpcFileDownloadResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcFileDrop struct { +} + +func (m *RpcFileDrop) Reset() { *m = RpcFileDrop{} } +func (m *RpcFileDrop) String() string { return proto.CompactTextString(m) } +func (*RpcFileDrop) ProtoMessage() {} +func (*RpcFileDrop) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 9, 4} +} +func (m *RpcFileDrop) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcFileDrop) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcFileDrop.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcFileDrop) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcFileDrop.Merge(m, src) +} +func (m *RpcFileDrop) XXX_Size() int { + return m.Size() +} +func (m *RpcFileDrop) XXX_DiscardUnknown() { + xxx_messageInfo_RpcFileDrop.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcFileDrop proto.InternalMessageInfo + +type RpcFileDropRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + DropTargetId string `protobuf:"bytes,2,opt,name=dropTargetId,proto3" json:"dropTargetId,omitempty"` + Position model.BlockPosition `protobuf:"varint,3,opt,name=position,proto3,enum=anytype.model.BlockPosition" json:"position,omitempty"` + LocalFilePaths []string `protobuf:"bytes,4,rep,name=localFilePaths,proto3" json:"localFilePaths,omitempty"` +} + +func (m *RpcFileDropRequest) Reset() { *m = RpcFileDropRequest{} } +func (m *RpcFileDropRequest) String() string { return proto.CompactTextString(m) } +func (*RpcFileDropRequest) ProtoMessage() {} +func (*RpcFileDropRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 9, 4, 0} +} +func (m *RpcFileDropRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcFileDropRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcFileDropRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcFileDropRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcFileDropRequest.Merge(m, src) +} +func (m *RpcFileDropRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcFileDropRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcFileDropRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcFileDropRequest proto.InternalMessageInfo + +func (m *RpcFileDropRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcFileDropRequest) GetDropTargetId() string { + if m != nil { + return m.DropTargetId + } + return "" +} + +func (m *RpcFileDropRequest) GetPosition() model.BlockPosition { + if m != nil { + return m.Position + } + return model.Block_None +} + +func (m *RpcFileDropRequest) GetLocalFilePaths() []string { + if m != nil { + return m.LocalFilePaths + } + return nil +} + +type RpcFileDropResponse struct { + Error *RpcFileDropResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcFileDropResponse) Reset() { *m = RpcFileDropResponse{} } +func (m *RpcFileDropResponse) String() string { return proto.CompactTextString(m) } +func (*RpcFileDropResponse) ProtoMessage() {} +func (*RpcFileDropResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 9, 4, 1} +} +func (m *RpcFileDropResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcFileDropResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcFileDropResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcFileDropResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcFileDropResponse.Merge(m, src) +} +func (m *RpcFileDropResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcFileDropResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcFileDropResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcFileDropResponse proto.InternalMessageInfo + +func (m *RpcFileDropResponse) GetError() *RpcFileDropResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcFileDropResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcFileDropResponseError struct { + Code RpcFileDropResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcFileDropResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcFileDropResponseError) Reset() { *m = RpcFileDropResponseError{} } +func (m *RpcFileDropResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcFileDropResponseError) ProtoMessage() {} +func (*RpcFileDropResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 9, 4, 1, 0} +} +func (m *RpcFileDropResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcFileDropResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcFileDropResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcFileDropResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcFileDropResponseError.Merge(m, src) +} +func (m *RpcFileDropResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcFileDropResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcFileDropResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcFileDropResponseError proto.InternalMessageInfo + +func (m *RpcFileDropResponseError) GetCode() RpcFileDropResponseErrorCode { + if m != nil { + return m.Code + } + return RpcFileDropResponseError_NULL +} + +func (m *RpcFileDropResponseError) GetDescription() string { if m != nil { return m.Description } @@ -27087,7 +19187,7 @@ func (m *RpcNavigation) Reset() { *m = RpcNavigation{} } func (m *RpcNavigation) String() string { return proto.CompactTextString(m) } func (*RpcNavigation) ProtoMessage() {} func (*RpcNavigation) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 19} + return fileDescriptor_8261c968b2e6f45c, []int{0, 10} } func (m *RpcNavigation) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -27123,7 +19223,7 @@ func (m *RpcNavigationListObjects) Reset() { *m = RpcNavigationListObjec func (m *RpcNavigationListObjects) String() string { return proto.CompactTextString(m) } func (*RpcNavigationListObjects) ProtoMessage() {} func (*RpcNavigationListObjects) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 19, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 10, 0} } func (m *RpcNavigationListObjects) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -27163,7 +19263,7 @@ func (m *RpcNavigationListObjectsRequest) Reset() { *m = RpcNavigationLi func (m *RpcNavigationListObjectsRequest) String() string { return proto.CompactTextString(m) } func (*RpcNavigationListObjectsRequest) ProtoMessage() {} func (*RpcNavigationListObjectsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 19, 0, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 10, 0, 0} } func (m *RpcNavigationListObjectsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -27229,7 +19329,7 @@ func (m *RpcNavigationListObjectsResponse) Reset() { *m = RpcNavigationL func (m *RpcNavigationListObjectsResponse) String() string { return proto.CompactTextString(m) } func (*RpcNavigationListObjectsResponse) ProtoMessage() {} func (*RpcNavigationListObjectsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 19, 0, 1} + return fileDescriptor_8261c968b2e6f45c, []int{0, 10, 0, 1} } func (m *RpcNavigationListObjectsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -27281,7 +19381,7 @@ func (m *RpcNavigationListObjectsResponseError) Reset() { *m = RpcNaviga func (m *RpcNavigationListObjectsResponseError) String() string { return proto.CompactTextString(m) } func (*RpcNavigationListObjectsResponseError) ProtoMessage() {} func (*RpcNavigationListObjectsResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 19, 0, 1, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 10, 0, 1, 0} } func (m *RpcNavigationListObjectsResponseError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -27333,7 +19433,7 @@ func (m *RpcNavigationGetObjectInfoWithLinks) Reset() { *m = RpcNavigati func (m *RpcNavigationGetObjectInfoWithLinks) String() string { return proto.CompactTextString(m) } func (*RpcNavigationGetObjectInfoWithLinks) ProtoMessage() {} func (*RpcNavigationGetObjectInfoWithLinks) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 19, 1} + return fileDescriptor_8261c968b2e6f45c, []int{0, 10, 1} } func (m *RpcNavigationGetObjectInfoWithLinks) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -27375,7 +19475,7 @@ func (m *RpcNavigationGetObjectInfoWithLinksRequest) String() string { } func (*RpcNavigationGetObjectInfoWithLinksRequest) ProtoMessage() {} func (*RpcNavigationGetObjectInfoWithLinksRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 19, 1, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 10, 1, 0} } func (m *RpcNavigationGetObjectInfoWithLinksRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -27431,7 +19531,7 @@ func (m *RpcNavigationGetObjectInfoWithLinksResponse) String() string { } func (*RpcNavigationGetObjectInfoWithLinksResponse) ProtoMessage() {} func (*RpcNavigationGetObjectInfoWithLinksResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 19, 1, 1} + return fileDescriptor_8261c968b2e6f45c, []int{0, 10, 1, 1} } func (m *RpcNavigationGetObjectInfoWithLinksResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -27487,7 +19587,7 @@ func (m *RpcNavigationGetObjectInfoWithLinksResponseError) String() string { } func (*RpcNavigationGetObjectInfoWithLinksResponseError) ProtoMessage() {} func (*RpcNavigationGetObjectInfoWithLinksResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 19, 1, 1, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 10, 1, 1, 0} } func (m *RpcNavigationGetObjectInfoWithLinksResponseError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -27530,21 +19630,21 @@ func (m *RpcNavigationGetObjectInfoWithLinksResponseError) GetDescription() stri return "" } -type RpcHistory struct { +type RpcTemplate struct { } -func (m *RpcHistory) Reset() { *m = RpcHistory{} } -func (m *RpcHistory) String() string { return proto.CompactTextString(m) } -func (*RpcHistory) ProtoMessage() {} -func (*RpcHistory) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 20} +func (m *RpcTemplate) Reset() { *m = RpcTemplate{} } +func (m *RpcTemplate) String() string { return proto.CompactTextString(m) } +func (*RpcTemplate) ProtoMessage() {} +func (*RpcTemplate) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 11} } -func (m *RpcHistory) XXX_Unmarshal(b []byte) error { +func (m *RpcTemplate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcHistory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcHistory.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcTemplate.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -27554,34 +19654,33 @@ func (m *RpcHistory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } -func (m *RpcHistory) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcHistory.Merge(m, src) +func (m *RpcTemplate) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcTemplate.Merge(m, src) } -func (m *RpcHistory) XXX_Size() int { +func (m *RpcTemplate) XXX_Size() int { return m.Size() } -func (m *RpcHistory) XXX_DiscardUnknown() { - xxx_messageInfo_RpcHistory.DiscardUnknown(m) +func (m *RpcTemplate) XXX_DiscardUnknown() { + xxx_messageInfo_RpcTemplate.DiscardUnknown(m) } -var xxx_messageInfo_RpcHistory proto.InternalMessageInfo +var xxx_messageInfo_RpcTemplate proto.InternalMessageInfo -// returns list of versions (changes) -type RpcHistoryVersions struct { +type RpcTemplateCreateFromObject struct { } -func (m *RpcHistoryVersions) Reset() { *m = RpcHistoryVersions{} } -func (m *RpcHistoryVersions) String() string { return proto.CompactTextString(m) } -func (*RpcHistoryVersions) ProtoMessage() {} -func (*RpcHistoryVersions) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 20, 0} +func (m *RpcTemplateCreateFromObject) Reset() { *m = RpcTemplateCreateFromObject{} } +func (m *RpcTemplateCreateFromObject) String() string { return proto.CompactTextString(m) } +func (*RpcTemplateCreateFromObject) ProtoMessage() {} +func (*RpcTemplateCreateFromObject) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 11, 0} } -func (m *RpcHistoryVersions) XXX_Unmarshal(b []byte) error { +func (m *RpcTemplateCreateFromObject) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcHistoryVersions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcTemplateCreateFromObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcHistoryVersions.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcTemplateCreateFromObject.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -27591,8318 +19690,35 @@ func (m *RpcHistoryVersions) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *RpcHistoryVersions) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcHistoryVersions.Merge(m, src) +func (m *RpcTemplateCreateFromObject) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcTemplateCreateFromObject.Merge(m, src) } -func (m *RpcHistoryVersions) XXX_Size() int { +func (m *RpcTemplateCreateFromObject) XXX_Size() int { return m.Size() } -func (m *RpcHistoryVersions) XXX_DiscardUnknown() { - xxx_messageInfo_RpcHistoryVersions.DiscardUnknown(m) +func (m *RpcTemplateCreateFromObject) XXX_DiscardUnknown() { + xxx_messageInfo_RpcTemplateCreateFromObject.DiscardUnknown(m) } -var xxx_messageInfo_RpcHistoryVersions proto.InternalMessageInfo +var xxx_messageInfo_RpcTemplateCreateFromObject proto.InternalMessageInfo -type RpcHistoryVersionsVersion struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - PreviousIds []string `protobuf:"bytes,2,rep,name=previousIds,proto3" json:"previousIds,omitempty"` - AuthorId string `protobuf:"bytes,3,opt,name=authorId,proto3" json:"authorId,omitempty"` - AuthorName string `protobuf:"bytes,4,opt,name=authorName,proto3" json:"authorName,omitempty"` - Time int64 `protobuf:"varint,5,opt,name=time,proto3" json:"time,omitempty"` - GroupId int64 `protobuf:"varint,6,opt,name=groupId,proto3" json:"groupId,omitempty"` -} - -func (m *RpcHistoryVersionsVersion) Reset() { *m = RpcHistoryVersionsVersion{} } -func (m *RpcHistoryVersionsVersion) String() string { return proto.CompactTextString(m) } -func (*RpcHistoryVersionsVersion) ProtoMessage() {} -func (*RpcHistoryVersionsVersion) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 20, 0, 0} -} -func (m *RpcHistoryVersionsVersion) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcHistoryVersionsVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcHistoryVersionsVersion.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcHistoryVersionsVersion) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcHistoryVersionsVersion.Merge(m, src) -} -func (m *RpcHistoryVersionsVersion) XXX_Size() int { - return m.Size() -} -func (m *RpcHistoryVersionsVersion) XXX_DiscardUnknown() { - xxx_messageInfo_RpcHistoryVersionsVersion.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcHistoryVersionsVersion proto.InternalMessageInfo - -func (m *RpcHistoryVersionsVersion) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *RpcHistoryVersionsVersion) GetPreviousIds() []string { - if m != nil { - return m.PreviousIds - } - return nil -} - -func (m *RpcHistoryVersionsVersion) GetAuthorId() string { - if m != nil { - return m.AuthorId - } - return "" -} - -func (m *RpcHistoryVersionsVersion) GetAuthorName() string { - if m != nil { - return m.AuthorName - } - return "" -} - -func (m *RpcHistoryVersionsVersion) GetTime() int64 { - if m != nil { - return m.Time - } - return 0 -} - -func (m *RpcHistoryVersionsVersion) GetGroupId() int64 { - if m != nil { - return m.GroupId - } - return 0 -} - -type RpcHistoryVersionsRequest struct { - PageId string `protobuf:"bytes,1,opt,name=pageId,proto3" json:"pageId,omitempty"` - // when indicated, results will include versions before given id - LastVersionId string `protobuf:"bytes,2,opt,name=lastVersionId,proto3" json:"lastVersionId,omitempty"` - // desired count of versions - Limit int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` -} - -func (m *RpcHistoryVersionsRequest) Reset() { *m = RpcHistoryVersionsRequest{} } -func (m *RpcHistoryVersionsRequest) String() string { return proto.CompactTextString(m) } -func (*RpcHistoryVersionsRequest) ProtoMessage() {} -func (*RpcHistoryVersionsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 20, 0, 1} -} -func (m *RpcHistoryVersionsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcHistoryVersionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcHistoryVersionsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcHistoryVersionsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcHistoryVersionsRequest.Merge(m, src) -} -func (m *RpcHistoryVersionsRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcHistoryVersionsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcHistoryVersionsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcHistoryVersionsRequest proto.InternalMessageInfo - -func (m *RpcHistoryVersionsRequest) GetPageId() string { - if m != nil { - return m.PageId - } - return "" -} - -func (m *RpcHistoryVersionsRequest) GetLastVersionId() string { - if m != nil { - return m.LastVersionId - } - return "" -} - -func (m *RpcHistoryVersionsRequest) GetLimit() int32 { - if m != nil { - return m.Limit - } - return 0 -} - -type RpcHistoryVersionsResponse struct { - Error *RpcHistoryVersionsResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Versions []*RpcHistoryVersionsVersion `protobuf:"bytes,2,rep,name=versions,proto3" json:"versions,omitempty"` -} - -func (m *RpcHistoryVersionsResponse) Reset() { *m = RpcHistoryVersionsResponse{} } -func (m *RpcHistoryVersionsResponse) String() string { return proto.CompactTextString(m) } -func (*RpcHistoryVersionsResponse) ProtoMessage() {} -func (*RpcHistoryVersionsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 20, 0, 2} -} -func (m *RpcHistoryVersionsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcHistoryVersionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcHistoryVersionsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcHistoryVersionsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcHistoryVersionsResponse.Merge(m, src) -} -func (m *RpcHistoryVersionsResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcHistoryVersionsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcHistoryVersionsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcHistoryVersionsResponse proto.InternalMessageInfo - -func (m *RpcHistoryVersionsResponse) GetError() *RpcHistoryVersionsResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcHistoryVersionsResponse) GetVersions() []*RpcHistoryVersionsVersion { - if m != nil { - return m.Versions - } - return nil -} - -type RpcHistoryVersionsResponseError struct { - Code RpcHistoryVersionsResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcHistoryVersionsResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcHistoryVersionsResponseError) Reset() { *m = RpcHistoryVersionsResponseError{} } -func (m *RpcHistoryVersionsResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcHistoryVersionsResponseError) ProtoMessage() {} -func (*RpcHistoryVersionsResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 20, 0, 2, 0} -} -func (m *RpcHistoryVersionsResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcHistoryVersionsResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcHistoryVersionsResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcHistoryVersionsResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcHistoryVersionsResponseError.Merge(m, src) -} -func (m *RpcHistoryVersionsResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcHistoryVersionsResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcHistoryVersionsResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcHistoryVersionsResponseError proto.InternalMessageInfo - -func (m *RpcHistoryVersionsResponseError) GetCode() RpcHistoryVersionsResponseErrorCode { - if m != nil { - return m.Code - } - return RpcHistoryVersionsResponseError_NULL -} - -func (m *RpcHistoryVersionsResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -// returns blockShow event for given version -type RpcHistoryShow struct { -} - -func (m *RpcHistoryShow) Reset() { *m = RpcHistoryShow{} } -func (m *RpcHistoryShow) String() string { return proto.CompactTextString(m) } -func (*RpcHistoryShow) ProtoMessage() {} -func (*RpcHistoryShow) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 20, 1} -} -func (m *RpcHistoryShow) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcHistoryShow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcHistoryShow.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcHistoryShow) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcHistoryShow.Merge(m, src) -} -func (m *RpcHistoryShow) XXX_Size() int { - return m.Size() -} -func (m *RpcHistoryShow) XXX_DiscardUnknown() { - xxx_messageInfo_RpcHistoryShow.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcHistoryShow proto.InternalMessageInfo - -type RpcHistoryShowRequest struct { - PageId string `protobuf:"bytes,1,opt,name=pageId,proto3" json:"pageId,omitempty"` - VersionId string `protobuf:"bytes,2,opt,name=versionId,proto3" json:"versionId,omitempty"` - TraceId string `protobuf:"bytes,3,opt,name=traceId,proto3" json:"traceId,omitempty"` -} - -func (m *RpcHistoryShowRequest) Reset() { *m = RpcHistoryShowRequest{} } -func (m *RpcHistoryShowRequest) String() string { return proto.CompactTextString(m) } -func (*RpcHistoryShowRequest) ProtoMessage() {} -func (*RpcHistoryShowRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 20, 1, 0} -} -func (m *RpcHistoryShowRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcHistoryShowRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcHistoryShowRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcHistoryShowRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcHistoryShowRequest.Merge(m, src) -} -func (m *RpcHistoryShowRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcHistoryShowRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcHistoryShowRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcHistoryShowRequest proto.InternalMessageInfo - -func (m *RpcHistoryShowRequest) GetPageId() string { - if m != nil { - return m.PageId - } - return "" -} - -func (m *RpcHistoryShowRequest) GetVersionId() string { - if m != nil { - return m.VersionId - } - return "" -} - -func (m *RpcHistoryShowRequest) GetTraceId() string { - if m != nil { - return m.TraceId - } - return "" -} - -type RpcHistoryShowResponse struct { - Error *RpcHistoryShowResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - ObjectShow *EventObjectShow `protobuf:"bytes,2,opt,name=objectShow,proto3" json:"objectShow,omitempty"` - Version *RpcHistoryVersionsVersion `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` - TraceId string `protobuf:"bytes,4,opt,name=traceId,proto3" json:"traceId,omitempty"` -} - -func (m *RpcHistoryShowResponse) Reset() { *m = RpcHistoryShowResponse{} } -func (m *RpcHistoryShowResponse) String() string { return proto.CompactTextString(m) } -func (*RpcHistoryShowResponse) ProtoMessage() {} -func (*RpcHistoryShowResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 20, 1, 1} -} -func (m *RpcHistoryShowResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcHistoryShowResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcHistoryShowResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcHistoryShowResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcHistoryShowResponse.Merge(m, src) -} -func (m *RpcHistoryShowResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcHistoryShowResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcHistoryShowResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcHistoryShowResponse proto.InternalMessageInfo - -func (m *RpcHistoryShowResponse) GetError() *RpcHistoryShowResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcHistoryShowResponse) GetObjectShow() *EventObjectShow { - if m != nil { - return m.ObjectShow - } - return nil -} - -func (m *RpcHistoryShowResponse) GetVersion() *RpcHistoryVersionsVersion { - if m != nil { - return m.Version - } - return nil -} - -func (m *RpcHistoryShowResponse) GetTraceId() string { - if m != nil { - return m.TraceId - } - return "" -} - -type RpcHistoryShowResponseError struct { - Code RpcHistoryShowResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcHistoryShowResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcHistoryShowResponseError) Reset() { *m = RpcHistoryShowResponseError{} } -func (m *RpcHistoryShowResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcHistoryShowResponseError) ProtoMessage() {} -func (*RpcHistoryShowResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 20, 1, 1, 0} -} -func (m *RpcHistoryShowResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcHistoryShowResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcHistoryShowResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcHistoryShowResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcHistoryShowResponseError.Merge(m, src) -} -func (m *RpcHistoryShowResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcHistoryShowResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcHistoryShowResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcHistoryShowResponseError proto.InternalMessageInfo - -func (m *RpcHistoryShowResponseError) GetCode() RpcHistoryShowResponseErrorCode { - if m != nil { - return m.Code - } - return RpcHistoryShowResponseError_NULL -} - -func (m *RpcHistoryShowResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcHistorySetVersion struct { -} - -func (m *RpcHistorySetVersion) Reset() { *m = RpcHistorySetVersion{} } -func (m *RpcHistorySetVersion) String() string { return proto.CompactTextString(m) } -func (*RpcHistorySetVersion) ProtoMessage() {} -func (*RpcHistorySetVersion) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 20, 2} -} -func (m *RpcHistorySetVersion) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcHistorySetVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcHistorySetVersion.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcHistorySetVersion) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcHistorySetVersion.Merge(m, src) -} -func (m *RpcHistorySetVersion) XXX_Size() int { - return m.Size() -} -func (m *RpcHistorySetVersion) XXX_DiscardUnknown() { - xxx_messageInfo_RpcHistorySetVersion.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcHistorySetVersion proto.InternalMessageInfo - -type RpcHistorySetVersionRequest struct { - PageId string `protobuf:"bytes,1,opt,name=pageId,proto3" json:"pageId,omitempty"` - VersionId string `protobuf:"bytes,2,opt,name=versionId,proto3" json:"versionId,omitempty"` -} - -func (m *RpcHistorySetVersionRequest) Reset() { *m = RpcHistorySetVersionRequest{} } -func (m *RpcHistorySetVersionRequest) String() string { return proto.CompactTextString(m) } -func (*RpcHistorySetVersionRequest) ProtoMessage() {} -func (*RpcHistorySetVersionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 20, 2, 0} -} -func (m *RpcHistorySetVersionRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcHistorySetVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcHistorySetVersionRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcHistorySetVersionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcHistorySetVersionRequest.Merge(m, src) -} -func (m *RpcHistorySetVersionRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcHistorySetVersionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcHistorySetVersionRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcHistorySetVersionRequest proto.InternalMessageInfo - -func (m *RpcHistorySetVersionRequest) GetPageId() string { - if m != nil { - return m.PageId - } - return "" -} - -func (m *RpcHistorySetVersionRequest) GetVersionId() string { - if m != nil { - return m.VersionId - } - return "" -} - -type RpcHistorySetVersionResponse struct { - Error *RpcHistorySetVersionResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` -} - -func (m *RpcHistorySetVersionResponse) Reset() { *m = RpcHistorySetVersionResponse{} } -func (m *RpcHistorySetVersionResponse) String() string { return proto.CompactTextString(m) } -func (*RpcHistorySetVersionResponse) ProtoMessage() {} -func (*RpcHistorySetVersionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 20, 2, 1} -} -func (m *RpcHistorySetVersionResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcHistorySetVersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcHistorySetVersionResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcHistorySetVersionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcHistorySetVersionResponse.Merge(m, src) -} -func (m *RpcHistorySetVersionResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcHistorySetVersionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcHistorySetVersionResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcHistorySetVersionResponse proto.InternalMessageInfo - -func (m *RpcHistorySetVersionResponse) GetError() *RpcHistorySetVersionResponseError { - if m != nil { - return m.Error - } - return nil -} - -type RpcHistorySetVersionResponseError struct { - Code RpcHistorySetVersionResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcHistorySetVersionResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcHistorySetVersionResponseError) Reset() { *m = RpcHistorySetVersionResponseError{} } -func (m *RpcHistorySetVersionResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcHistorySetVersionResponseError) ProtoMessage() {} -func (*RpcHistorySetVersionResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 20, 2, 1, 0} -} -func (m *RpcHistorySetVersionResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcHistorySetVersionResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcHistorySetVersionResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcHistorySetVersionResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcHistorySetVersionResponseError.Merge(m, src) -} -func (m *RpcHistorySetVersionResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcHistorySetVersionResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcHistorySetVersionResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcHistorySetVersionResponseError proto.InternalMessageInfo - -func (m *RpcHistorySetVersionResponseError) GetCode() RpcHistorySetVersionResponseErrorCode { - if m != nil { - return m.Code - } - return RpcHistorySetVersionResponseError_NULL -} - -func (m *RpcHistorySetVersionResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcPage struct { -} - -func (m *RpcPage) Reset() { *m = RpcPage{} } -func (m *RpcPage) String() string { return proto.CompactTextString(m) } -func (*RpcPage) ProtoMessage() {} -func (*RpcPage) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 21} -} -func (m *RpcPage) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcPage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcPage.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcPage) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcPage.Merge(m, src) -} -func (m *RpcPage) XXX_Size() int { - return m.Size() -} -func (m *RpcPage) XXX_DiscardUnknown() { - xxx_messageInfo_RpcPage.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcPage proto.InternalMessageInfo - -type RpcPageCreate struct { -} - -func (m *RpcPageCreate) Reset() { *m = RpcPageCreate{} } -func (m *RpcPageCreate) String() string { return proto.CompactTextString(m) } -func (*RpcPageCreate) ProtoMessage() {} -func (*RpcPageCreate) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 21, 0} -} -func (m *RpcPageCreate) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcPageCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcPageCreate.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcPageCreate) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcPageCreate.Merge(m, src) -} -func (m *RpcPageCreate) XXX_Size() int { - return m.Size() -} -func (m *RpcPageCreate) XXX_DiscardUnknown() { - xxx_messageInfo_RpcPageCreate.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcPageCreate proto.InternalMessageInfo - -type RpcPageCreateRequest struct { - Details *types.Struct `protobuf:"bytes,1,opt,name=details,proto3" json:"details,omitempty"` -} - -func (m *RpcPageCreateRequest) Reset() { *m = RpcPageCreateRequest{} } -func (m *RpcPageCreateRequest) String() string { return proto.CompactTextString(m) } -func (*RpcPageCreateRequest) ProtoMessage() {} -func (*RpcPageCreateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 21, 0, 0} -} -func (m *RpcPageCreateRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcPageCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcPageCreateRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcPageCreateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcPageCreateRequest.Merge(m, src) -} -func (m *RpcPageCreateRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcPageCreateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcPageCreateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcPageCreateRequest proto.InternalMessageInfo - -func (m *RpcPageCreateRequest) GetDetails() *types.Struct { - if m != nil { - return m.Details - } - return nil -} - -type RpcPageCreateResponse struct { - Error *RpcPageCreateResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - PageId string `protobuf:"bytes,3,opt,name=pageId,proto3" json:"pageId,omitempty"` - Event *ResponseEvent `protobuf:"bytes,4,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcPageCreateResponse) Reset() { *m = RpcPageCreateResponse{} } -func (m *RpcPageCreateResponse) String() string { return proto.CompactTextString(m) } -func (*RpcPageCreateResponse) ProtoMessage() {} -func (*RpcPageCreateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 21, 0, 1} -} -func (m *RpcPageCreateResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcPageCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcPageCreateResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcPageCreateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcPageCreateResponse.Merge(m, src) -} -func (m *RpcPageCreateResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcPageCreateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcPageCreateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcPageCreateResponse proto.InternalMessageInfo - -func (m *RpcPageCreateResponse) GetError() *RpcPageCreateResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcPageCreateResponse) GetPageId() string { - if m != nil { - return m.PageId - } - return "" -} - -func (m *RpcPageCreateResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcPageCreateResponseError struct { - Code RpcPageCreateResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcPageCreateResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcPageCreateResponseError) Reset() { *m = RpcPageCreateResponseError{} } -func (m *RpcPageCreateResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcPageCreateResponseError) ProtoMessage() {} -func (*RpcPageCreateResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 21, 0, 1, 0} -} -func (m *RpcPageCreateResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcPageCreateResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcPageCreateResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcPageCreateResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcPageCreateResponseError.Merge(m, src) -} -func (m *RpcPageCreateResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcPageCreateResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcPageCreateResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcPageCreateResponseError proto.InternalMessageInfo - -func (m *RpcPageCreateResponseError) GetCode() RpcPageCreateResponseErrorCode { - if m != nil { - return m.Code - } - return RpcPageCreateResponseError_NULL -} - -func (m *RpcPageCreateResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcSet struct { -} - -func (m *RpcSet) Reset() { *m = RpcSet{} } -func (m *RpcSet) String() string { return proto.CompactTextString(m) } -func (*RpcSet) ProtoMessage() {} -func (*RpcSet) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 22} -} -func (m *RpcSet) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcSet.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcSet) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcSet.Merge(m, src) -} -func (m *RpcSet) XXX_Size() int { - return m.Size() -} -func (m *RpcSet) XXX_DiscardUnknown() { - xxx_messageInfo_RpcSet.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcSet proto.InternalMessageInfo - -type RpcSetCreate struct { -} - -func (m *RpcSetCreate) Reset() { *m = RpcSetCreate{} } -func (m *RpcSetCreate) String() string { return proto.CompactTextString(m) } -func (*RpcSetCreate) ProtoMessage() {} -func (*RpcSetCreate) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 22, 0} -} -func (m *RpcSetCreate) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcSetCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcSetCreate.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcSetCreate) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcSetCreate.Merge(m, src) -} -func (m *RpcSetCreate) XXX_Size() int { - return m.Size() -} -func (m *RpcSetCreate) XXX_DiscardUnknown() { - xxx_messageInfo_RpcSetCreate.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcSetCreate proto.InternalMessageInfo - -type RpcSetCreateRequest struct { - Source []string `protobuf:"bytes,1,rep,name=source,proto3" json:"source,omitempty"` - Details *types.Struct `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"` - TemplateId string `protobuf:"bytes,3,opt,name=templateId,proto3" json:"templateId,omitempty"` -} - -func (m *RpcSetCreateRequest) Reset() { *m = RpcSetCreateRequest{} } -func (m *RpcSetCreateRequest) String() string { return proto.CompactTextString(m) } -func (*RpcSetCreateRequest) ProtoMessage() {} -func (*RpcSetCreateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 22, 0, 0} -} -func (m *RpcSetCreateRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcSetCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcSetCreateRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcSetCreateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcSetCreateRequest.Merge(m, src) -} -func (m *RpcSetCreateRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcSetCreateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcSetCreateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcSetCreateRequest proto.InternalMessageInfo - -func (m *RpcSetCreateRequest) GetSource() []string { - if m != nil { - return m.Source - } - return nil -} - -func (m *RpcSetCreateRequest) GetDetails() *types.Struct { - if m != nil { - return m.Details - } - return nil -} - -func (m *RpcSetCreateRequest) GetTemplateId() string { - if m != nil { - return m.TemplateId - } - return "" -} - -type RpcSetCreateResponse struct { - Error *RpcSetCreateResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` - Event *ResponseEvent `protobuf:"bytes,4,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcSetCreateResponse) Reset() { *m = RpcSetCreateResponse{} } -func (m *RpcSetCreateResponse) String() string { return proto.CompactTextString(m) } -func (*RpcSetCreateResponse) ProtoMessage() {} -func (*RpcSetCreateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 22, 0, 1} -} -func (m *RpcSetCreateResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcSetCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcSetCreateResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcSetCreateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcSetCreateResponse.Merge(m, src) -} -func (m *RpcSetCreateResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcSetCreateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcSetCreateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcSetCreateResponse proto.InternalMessageInfo - -func (m *RpcSetCreateResponse) GetError() *RpcSetCreateResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcSetCreateResponse) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *RpcSetCreateResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcSetCreateResponseError struct { - Code RpcSetCreateResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcSetCreateResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcSetCreateResponseError) Reset() { *m = RpcSetCreateResponseError{} } -func (m *RpcSetCreateResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcSetCreateResponseError) ProtoMessage() {} -func (*RpcSetCreateResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 22, 0, 1, 0} -} -func (m *RpcSetCreateResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcSetCreateResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcSetCreateResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcSetCreateResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcSetCreateResponseError.Merge(m, src) -} -func (m *RpcSetCreateResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcSetCreateResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcSetCreateResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcSetCreateResponseError proto.InternalMessageInfo - -func (m *RpcSetCreateResponseError) GetCode() RpcSetCreateResponseErrorCode { - if m != nil { - return m.Code - } - return RpcSetCreateResponseError_NULL -} - -func (m *RpcSetCreateResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcObjectType struct { -} - -func (m *RpcObjectType) Reset() { *m = RpcObjectType{} } -func (m *RpcObjectType) String() string { return proto.CompactTextString(m) } -func (*RpcObjectType) ProtoMessage() {} -func (*RpcObjectType) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 23} -} -func (m *RpcObjectType) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectType.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectType) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectType.Merge(m, src) -} -func (m *RpcObjectType) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectType) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectType.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectType proto.InternalMessageInfo - -type RpcObjectTypeList struct { -} - -func (m *RpcObjectTypeList) Reset() { *m = RpcObjectTypeList{} } -func (m *RpcObjectTypeList) String() string { return proto.CompactTextString(m) } -func (*RpcObjectTypeList) ProtoMessage() {} -func (*RpcObjectTypeList) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 23, 0} -} -func (m *RpcObjectTypeList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectTypeList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectTypeList.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectTypeList) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectTypeList.Merge(m, src) -} -func (m *RpcObjectTypeList) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectTypeList) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectTypeList.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectTypeList proto.InternalMessageInfo - -type RpcObjectTypeListRequest struct { -} - -func (m *RpcObjectTypeListRequest) Reset() { *m = RpcObjectTypeListRequest{} } -func (m *RpcObjectTypeListRequest) String() string { return proto.CompactTextString(m) } -func (*RpcObjectTypeListRequest) ProtoMessage() {} -func (*RpcObjectTypeListRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 23, 0, 0} -} -func (m *RpcObjectTypeListRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectTypeListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectTypeListRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectTypeListRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectTypeListRequest.Merge(m, src) -} -func (m *RpcObjectTypeListRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectTypeListRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectTypeListRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectTypeListRequest proto.InternalMessageInfo - -type RpcObjectTypeListResponse struct { - Error *RpcObjectTypeListResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - ObjectTypes []*model.ObjectType `protobuf:"bytes,2,rep,name=objectTypes,proto3" json:"objectTypes,omitempty"` -} - -func (m *RpcObjectTypeListResponse) Reset() { *m = RpcObjectTypeListResponse{} } -func (m *RpcObjectTypeListResponse) String() string { return proto.CompactTextString(m) } -func (*RpcObjectTypeListResponse) ProtoMessage() {} -func (*RpcObjectTypeListResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 23, 0, 1} -} -func (m *RpcObjectTypeListResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectTypeListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectTypeListResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectTypeListResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectTypeListResponse.Merge(m, src) -} -func (m *RpcObjectTypeListResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectTypeListResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectTypeListResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectTypeListResponse proto.InternalMessageInfo - -func (m *RpcObjectTypeListResponse) GetError() *RpcObjectTypeListResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcObjectTypeListResponse) GetObjectTypes() []*model.ObjectType { - if m != nil { - return m.ObjectTypes - } - return nil -} - -type RpcObjectTypeListResponseError struct { - Code RpcObjectTypeListResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectTypeListResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcObjectTypeListResponseError) Reset() { *m = RpcObjectTypeListResponseError{} } -func (m *RpcObjectTypeListResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcObjectTypeListResponseError) ProtoMessage() {} -func (*RpcObjectTypeListResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 23, 0, 1, 0} -} -func (m *RpcObjectTypeListResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectTypeListResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectTypeListResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectTypeListResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectTypeListResponseError.Merge(m, src) -} -func (m *RpcObjectTypeListResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectTypeListResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectTypeListResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectTypeListResponseError proto.InternalMessageInfo - -func (m *RpcObjectTypeListResponseError) GetCode() RpcObjectTypeListResponseErrorCode { - if m != nil { - return m.Code - } - return RpcObjectTypeListResponseError_NULL -} - -func (m *RpcObjectTypeListResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcObjectTypeCreate struct { -} - -func (m *RpcObjectTypeCreate) Reset() { *m = RpcObjectTypeCreate{} } -func (m *RpcObjectTypeCreate) String() string { return proto.CompactTextString(m) } -func (*RpcObjectTypeCreate) ProtoMessage() {} -func (*RpcObjectTypeCreate) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 23, 1} -} -func (m *RpcObjectTypeCreate) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectTypeCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectTypeCreate.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectTypeCreate) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectTypeCreate.Merge(m, src) -} -func (m *RpcObjectTypeCreate) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectTypeCreate) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectTypeCreate.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectTypeCreate proto.InternalMessageInfo - -type RpcObjectTypeCreateRequest struct { - ObjectType *model.ObjectType `protobuf:"bytes,1,opt,name=objectType,proto3" json:"objectType,omitempty"` -} - -func (m *RpcObjectTypeCreateRequest) Reset() { *m = RpcObjectTypeCreateRequest{} } -func (m *RpcObjectTypeCreateRequest) String() string { return proto.CompactTextString(m) } -func (*RpcObjectTypeCreateRequest) ProtoMessage() {} -func (*RpcObjectTypeCreateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 23, 1, 0} -} -func (m *RpcObjectTypeCreateRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectTypeCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectTypeCreateRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectTypeCreateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectTypeCreateRequest.Merge(m, src) -} -func (m *RpcObjectTypeCreateRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectTypeCreateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectTypeCreateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectTypeCreateRequest proto.InternalMessageInfo - -func (m *RpcObjectTypeCreateRequest) GetObjectType() *model.ObjectType { - if m != nil { - return m.ObjectType - } - return nil -} - -type RpcObjectTypeCreateResponse struct { - Error *RpcObjectTypeCreateResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - ObjectType *model.ObjectType `protobuf:"bytes,2,opt,name=objectType,proto3" json:"objectType,omitempty"` -} - -func (m *RpcObjectTypeCreateResponse) Reset() { *m = RpcObjectTypeCreateResponse{} } -func (m *RpcObjectTypeCreateResponse) String() string { return proto.CompactTextString(m) } -func (*RpcObjectTypeCreateResponse) ProtoMessage() {} -func (*RpcObjectTypeCreateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 23, 1, 1} -} -func (m *RpcObjectTypeCreateResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectTypeCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectTypeCreateResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectTypeCreateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectTypeCreateResponse.Merge(m, src) -} -func (m *RpcObjectTypeCreateResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectTypeCreateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectTypeCreateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectTypeCreateResponse proto.InternalMessageInfo - -func (m *RpcObjectTypeCreateResponse) GetError() *RpcObjectTypeCreateResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcObjectTypeCreateResponse) GetObjectType() *model.ObjectType { - if m != nil { - return m.ObjectType - } - return nil -} - -type RpcObjectTypeCreateResponseError struct { - Code RpcObjectTypeCreateResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectTypeCreateResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcObjectTypeCreateResponseError) Reset() { *m = RpcObjectTypeCreateResponseError{} } -func (m *RpcObjectTypeCreateResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcObjectTypeCreateResponseError) ProtoMessage() {} -func (*RpcObjectTypeCreateResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 23, 1, 1, 0} -} -func (m *RpcObjectTypeCreateResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectTypeCreateResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectTypeCreateResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectTypeCreateResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectTypeCreateResponseError.Merge(m, src) -} -func (m *RpcObjectTypeCreateResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectTypeCreateResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectTypeCreateResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectTypeCreateResponseError proto.InternalMessageInfo - -func (m *RpcObjectTypeCreateResponseError) GetCode() RpcObjectTypeCreateResponseErrorCode { - if m != nil { - return m.Code - } - return RpcObjectTypeCreateResponseError_NULL -} - -func (m *RpcObjectTypeCreateResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcObjectTypeRelation struct { -} - -func (m *RpcObjectTypeRelation) Reset() { *m = RpcObjectTypeRelation{} } -func (m *RpcObjectTypeRelation) String() string { return proto.CompactTextString(m) } -func (*RpcObjectTypeRelation) ProtoMessage() {} -func (*RpcObjectTypeRelation) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 23, 2} -} -func (m *RpcObjectTypeRelation) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectTypeRelation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectTypeRelation.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectTypeRelation) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectTypeRelation.Merge(m, src) -} -func (m *RpcObjectTypeRelation) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectTypeRelation) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectTypeRelation.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectTypeRelation proto.InternalMessageInfo - -type RpcObjectTypeRelationAdd struct { -} - -func (m *RpcObjectTypeRelationAdd) Reset() { *m = RpcObjectTypeRelationAdd{} } -func (m *RpcObjectTypeRelationAdd) String() string { return proto.CompactTextString(m) } -func (*RpcObjectTypeRelationAdd) ProtoMessage() {} -func (*RpcObjectTypeRelationAdd) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 23, 2, 0} -} -func (m *RpcObjectTypeRelationAdd) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectTypeRelationAdd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectTypeRelationAdd.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectTypeRelationAdd) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectTypeRelationAdd.Merge(m, src) -} -func (m *RpcObjectTypeRelationAdd) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectTypeRelationAdd) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectTypeRelationAdd.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectTypeRelationAdd proto.InternalMessageInfo - -type RpcObjectTypeRelationAddRequest struct { - ObjectTypeUrl string `protobuf:"bytes,1,opt,name=objectTypeUrl,proto3" json:"objectTypeUrl,omitempty"` - Relations []*model.Relation `protobuf:"bytes,2,rep,name=relations,proto3" json:"relations,omitempty"` -} - -func (m *RpcObjectTypeRelationAddRequest) Reset() { *m = RpcObjectTypeRelationAddRequest{} } -func (m *RpcObjectTypeRelationAddRequest) String() string { return proto.CompactTextString(m) } -func (*RpcObjectTypeRelationAddRequest) ProtoMessage() {} -func (*RpcObjectTypeRelationAddRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 23, 2, 0, 0} -} -func (m *RpcObjectTypeRelationAddRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectTypeRelationAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectTypeRelationAddRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectTypeRelationAddRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectTypeRelationAddRequest.Merge(m, src) -} -func (m *RpcObjectTypeRelationAddRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectTypeRelationAddRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectTypeRelationAddRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectTypeRelationAddRequest proto.InternalMessageInfo - -func (m *RpcObjectTypeRelationAddRequest) GetObjectTypeUrl() string { - if m != nil { - return m.ObjectTypeUrl - } - return "" -} - -func (m *RpcObjectTypeRelationAddRequest) GetRelations() []*model.Relation { - if m != nil { - return m.Relations - } - return nil -} - -type RpcObjectTypeRelationAddResponse struct { - Error *RpcObjectTypeRelationAddResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Relations []*model.Relation `protobuf:"bytes,2,rep,name=relations,proto3" json:"relations,omitempty"` -} - -func (m *RpcObjectTypeRelationAddResponse) Reset() { *m = RpcObjectTypeRelationAddResponse{} } -func (m *RpcObjectTypeRelationAddResponse) String() string { return proto.CompactTextString(m) } -func (*RpcObjectTypeRelationAddResponse) ProtoMessage() {} -func (*RpcObjectTypeRelationAddResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 23, 2, 0, 1} -} -func (m *RpcObjectTypeRelationAddResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectTypeRelationAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectTypeRelationAddResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectTypeRelationAddResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectTypeRelationAddResponse.Merge(m, src) -} -func (m *RpcObjectTypeRelationAddResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectTypeRelationAddResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectTypeRelationAddResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectTypeRelationAddResponse proto.InternalMessageInfo - -func (m *RpcObjectTypeRelationAddResponse) GetError() *RpcObjectTypeRelationAddResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcObjectTypeRelationAddResponse) GetRelations() []*model.Relation { - if m != nil { - return m.Relations - } - return nil -} - -type RpcObjectTypeRelationAddResponseError struct { - Code RpcObjectTypeRelationAddResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectTypeRelationAddResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcObjectTypeRelationAddResponseError) Reset() { *m = RpcObjectTypeRelationAddResponseError{} } -func (m *RpcObjectTypeRelationAddResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcObjectTypeRelationAddResponseError) ProtoMessage() {} -func (*RpcObjectTypeRelationAddResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 23, 2, 0, 1, 0} -} -func (m *RpcObjectTypeRelationAddResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectTypeRelationAddResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectTypeRelationAddResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectTypeRelationAddResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectTypeRelationAddResponseError.Merge(m, src) -} -func (m *RpcObjectTypeRelationAddResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectTypeRelationAddResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectTypeRelationAddResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectTypeRelationAddResponseError proto.InternalMessageInfo - -func (m *RpcObjectTypeRelationAddResponseError) GetCode() RpcObjectTypeRelationAddResponseErrorCode { - if m != nil { - return m.Code - } - return RpcObjectTypeRelationAddResponseError_NULL -} - -func (m *RpcObjectTypeRelationAddResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcObjectTypeRelationRemove struct { -} - -func (m *RpcObjectTypeRelationRemove) Reset() { *m = RpcObjectTypeRelationRemove{} } -func (m *RpcObjectTypeRelationRemove) String() string { return proto.CompactTextString(m) } -func (*RpcObjectTypeRelationRemove) ProtoMessage() {} -func (*RpcObjectTypeRelationRemove) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 23, 2, 1} -} -func (m *RpcObjectTypeRelationRemove) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectTypeRelationRemove) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectTypeRelationRemove.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectTypeRelationRemove) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectTypeRelationRemove.Merge(m, src) -} -func (m *RpcObjectTypeRelationRemove) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectTypeRelationRemove) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectTypeRelationRemove.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectTypeRelationRemove proto.InternalMessageInfo - -type RpcObjectTypeRelationRemoveRequest struct { - ObjectTypeUrl string `protobuf:"bytes,1,opt,name=objectTypeUrl,proto3" json:"objectTypeUrl,omitempty"` - RelationKey string `protobuf:"bytes,2,opt,name=relationKey,proto3" json:"relationKey,omitempty"` -} - -func (m *RpcObjectTypeRelationRemoveRequest) Reset() { *m = RpcObjectTypeRelationRemoveRequest{} } -func (m *RpcObjectTypeRelationRemoveRequest) String() string { return proto.CompactTextString(m) } -func (*RpcObjectTypeRelationRemoveRequest) ProtoMessage() {} -func (*RpcObjectTypeRelationRemoveRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 23, 2, 1, 0} -} -func (m *RpcObjectTypeRelationRemoveRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectTypeRelationRemoveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectTypeRelationRemoveRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectTypeRelationRemoveRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectTypeRelationRemoveRequest.Merge(m, src) -} -func (m *RpcObjectTypeRelationRemoveRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectTypeRelationRemoveRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectTypeRelationRemoveRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectTypeRelationRemoveRequest proto.InternalMessageInfo - -func (m *RpcObjectTypeRelationRemoveRequest) GetObjectTypeUrl() string { - if m != nil { - return m.ObjectTypeUrl - } - return "" -} - -func (m *RpcObjectTypeRelationRemoveRequest) GetRelationKey() string { - if m != nil { - return m.RelationKey - } - return "" -} - -type RpcObjectTypeRelationRemoveResponse struct { - Error *RpcObjectTypeRelationRemoveResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` -} - -func (m *RpcObjectTypeRelationRemoveResponse) Reset() { *m = RpcObjectTypeRelationRemoveResponse{} } -func (m *RpcObjectTypeRelationRemoveResponse) String() string { return proto.CompactTextString(m) } -func (*RpcObjectTypeRelationRemoveResponse) ProtoMessage() {} -func (*RpcObjectTypeRelationRemoveResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 23, 2, 1, 1} -} -func (m *RpcObjectTypeRelationRemoveResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectTypeRelationRemoveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectTypeRelationRemoveResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectTypeRelationRemoveResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectTypeRelationRemoveResponse.Merge(m, src) -} -func (m *RpcObjectTypeRelationRemoveResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectTypeRelationRemoveResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectTypeRelationRemoveResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectTypeRelationRemoveResponse proto.InternalMessageInfo - -func (m *RpcObjectTypeRelationRemoveResponse) GetError() *RpcObjectTypeRelationRemoveResponseError { - if m != nil { - return m.Error - } - return nil -} - -type RpcObjectTypeRelationRemoveResponseError struct { - Code RpcObjectTypeRelationRemoveResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectTypeRelationRemoveResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcObjectTypeRelationRemoveResponseError) Reset() { - *m = RpcObjectTypeRelationRemoveResponseError{} -} -func (m *RpcObjectTypeRelationRemoveResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcObjectTypeRelationRemoveResponseError) ProtoMessage() {} -func (*RpcObjectTypeRelationRemoveResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 23, 2, 1, 1, 0} -} -func (m *RpcObjectTypeRelationRemoveResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectTypeRelationRemoveResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectTypeRelationRemoveResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectTypeRelationRemoveResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectTypeRelationRemoveResponseError.Merge(m, src) -} -func (m *RpcObjectTypeRelationRemoveResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectTypeRelationRemoveResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectTypeRelationRemoveResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectTypeRelationRemoveResponseError proto.InternalMessageInfo - -func (m *RpcObjectTypeRelationRemoveResponseError) GetCode() RpcObjectTypeRelationRemoveResponseErrorCode { - if m != nil { - return m.Code - } - return RpcObjectTypeRelationRemoveResponseError_NULL -} - -func (m *RpcObjectTypeRelationRemoveResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcObjectTypeRelationUpdate struct { -} - -func (m *RpcObjectTypeRelationUpdate) Reset() { *m = RpcObjectTypeRelationUpdate{} } -func (m *RpcObjectTypeRelationUpdate) String() string { return proto.CompactTextString(m) } -func (*RpcObjectTypeRelationUpdate) ProtoMessage() {} -func (*RpcObjectTypeRelationUpdate) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 23, 2, 2} -} -func (m *RpcObjectTypeRelationUpdate) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectTypeRelationUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectTypeRelationUpdate.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectTypeRelationUpdate) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectTypeRelationUpdate.Merge(m, src) -} -func (m *RpcObjectTypeRelationUpdate) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectTypeRelationUpdate) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectTypeRelationUpdate.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectTypeRelationUpdate proto.InternalMessageInfo - -type RpcObjectTypeRelationUpdateRequest struct { - ObjectTypeUrl string `protobuf:"bytes,1,opt,name=objectTypeUrl,proto3" json:"objectTypeUrl,omitempty"` - Relation *model.Relation `protobuf:"bytes,2,opt,name=relation,proto3" json:"relation,omitempty"` -} - -func (m *RpcObjectTypeRelationUpdateRequest) Reset() { *m = RpcObjectTypeRelationUpdateRequest{} } -func (m *RpcObjectTypeRelationUpdateRequest) String() string { return proto.CompactTextString(m) } -func (*RpcObjectTypeRelationUpdateRequest) ProtoMessage() {} -func (*RpcObjectTypeRelationUpdateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 23, 2, 2, 0} -} -func (m *RpcObjectTypeRelationUpdateRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectTypeRelationUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectTypeRelationUpdateRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectTypeRelationUpdateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectTypeRelationUpdateRequest.Merge(m, src) -} -func (m *RpcObjectTypeRelationUpdateRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectTypeRelationUpdateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectTypeRelationUpdateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectTypeRelationUpdateRequest proto.InternalMessageInfo - -func (m *RpcObjectTypeRelationUpdateRequest) GetObjectTypeUrl() string { - if m != nil { - return m.ObjectTypeUrl - } - return "" -} - -func (m *RpcObjectTypeRelationUpdateRequest) GetRelation() *model.Relation { - if m != nil { - return m.Relation - } - return nil -} - -type RpcObjectTypeRelationUpdateResponse struct { - Error *RpcObjectTypeRelationUpdateResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` -} - -func (m *RpcObjectTypeRelationUpdateResponse) Reset() { *m = RpcObjectTypeRelationUpdateResponse{} } -func (m *RpcObjectTypeRelationUpdateResponse) String() string { return proto.CompactTextString(m) } -func (*RpcObjectTypeRelationUpdateResponse) ProtoMessage() {} -func (*RpcObjectTypeRelationUpdateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 23, 2, 2, 1} -} -func (m *RpcObjectTypeRelationUpdateResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectTypeRelationUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectTypeRelationUpdateResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectTypeRelationUpdateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectTypeRelationUpdateResponse.Merge(m, src) -} -func (m *RpcObjectTypeRelationUpdateResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectTypeRelationUpdateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectTypeRelationUpdateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectTypeRelationUpdateResponse proto.InternalMessageInfo - -func (m *RpcObjectTypeRelationUpdateResponse) GetError() *RpcObjectTypeRelationUpdateResponseError { - if m != nil { - return m.Error - } - return nil -} - -type RpcObjectTypeRelationUpdateResponseError struct { - Code RpcObjectTypeRelationUpdateResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectTypeRelationUpdateResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcObjectTypeRelationUpdateResponseError) Reset() { - *m = RpcObjectTypeRelationUpdateResponseError{} -} -func (m *RpcObjectTypeRelationUpdateResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcObjectTypeRelationUpdateResponseError) ProtoMessage() {} -func (*RpcObjectTypeRelationUpdateResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 23, 2, 2, 1, 0} -} -func (m *RpcObjectTypeRelationUpdateResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectTypeRelationUpdateResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectTypeRelationUpdateResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectTypeRelationUpdateResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectTypeRelationUpdateResponseError.Merge(m, src) -} -func (m *RpcObjectTypeRelationUpdateResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectTypeRelationUpdateResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectTypeRelationUpdateResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectTypeRelationUpdateResponseError proto.InternalMessageInfo - -func (m *RpcObjectTypeRelationUpdateResponseError) GetCode() RpcObjectTypeRelationUpdateResponseErrorCode { - if m != nil { - return m.Code - } - return RpcObjectTypeRelationUpdateResponseError_NULL -} - -func (m *RpcObjectTypeRelationUpdateResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcObjectTypeRelationList struct { -} - -func (m *RpcObjectTypeRelationList) Reset() { *m = RpcObjectTypeRelationList{} } -func (m *RpcObjectTypeRelationList) String() string { return proto.CompactTextString(m) } -func (*RpcObjectTypeRelationList) ProtoMessage() {} -func (*RpcObjectTypeRelationList) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 23, 2, 3} -} -func (m *RpcObjectTypeRelationList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectTypeRelationList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectTypeRelationList.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectTypeRelationList) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectTypeRelationList.Merge(m, src) -} -func (m *RpcObjectTypeRelationList) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectTypeRelationList) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectTypeRelationList.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectTypeRelationList proto.InternalMessageInfo - -type RpcObjectTypeRelationListRequest struct { - ObjectTypeUrl string `protobuf:"bytes,1,opt,name=objectTypeUrl,proto3" json:"objectTypeUrl,omitempty"` - AppendRelationsFromOtherTypes bool `protobuf:"varint,2,opt,name=appendRelationsFromOtherTypes,proto3" json:"appendRelationsFromOtherTypes,omitempty"` -} - -func (m *RpcObjectTypeRelationListRequest) Reset() { *m = RpcObjectTypeRelationListRequest{} } -func (m *RpcObjectTypeRelationListRequest) String() string { return proto.CompactTextString(m) } -func (*RpcObjectTypeRelationListRequest) ProtoMessage() {} -func (*RpcObjectTypeRelationListRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 23, 2, 3, 0} -} -func (m *RpcObjectTypeRelationListRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectTypeRelationListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectTypeRelationListRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectTypeRelationListRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectTypeRelationListRequest.Merge(m, src) -} -func (m *RpcObjectTypeRelationListRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectTypeRelationListRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectTypeRelationListRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectTypeRelationListRequest proto.InternalMessageInfo - -func (m *RpcObjectTypeRelationListRequest) GetObjectTypeUrl() string { - if m != nil { - return m.ObjectTypeUrl - } - return "" -} - -func (m *RpcObjectTypeRelationListRequest) GetAppendRelationsFromOtherTypes() bool { - if m != nil { - return m.AppendRelationsFromOtherTypes - } - return false -} - -type RpcObjectTypeRelationListResponse struct { - Error *RpcObjectTypeRelationListResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Relations []*model.Relation `protobuf:"bytes,2,rep,name=relations,proto3" json:"relations,omitempty"` -} - -func (m *RpcObjectTypeRelationListResponse) Reset() { *m = RpcObjectTypeRelationListResponse{} } -func (m *RpcObjectTypeRelationListResponse) String() string { return proto.CompactTextString(m) } -func (*RpcObjectTypeRelationListResponse) ProtoMessage() {} -func (*RpcObjectTypeRelationListResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 23, 2, 3, 1} -} -func (m *RpcObjectTypeRelationListResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectTypeRelationListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectTypeRelationListResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectTypeRelationListResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectTypeRelationListResponse.Merge(m, src) -} -func (m *RpcObjectTypeRelationListResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectTypeRelationListResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectTypeRelationListResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectTypeRelationListResponse proto.InternalMessageInfo - -func (m *RpcObjectTypeRelationListResponse) GetError() *RpcObjectTypeRelationListResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcObjectTypeRelationListResponse) GetRelations() []*model.Relation { - if m != nil { - return m.Relations - } - return nil -} - -type RpcObjectTypeRelationListResponseError struct { - Code RpcObjectTypeRelationListResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectTypeRelationListResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcObjectTypeRelationListResponseError) Reset() { - *m = RpcObjectTypeRelationListResponseError{} -} -func (m *RpcObjectTypeRelationListResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcObjectTypeRelationListResponseError) ProtoMessage() {} -func (*RpcObjectTypeRelationListResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 23, 2, 3, 1, 0} -} -func (m *RpcObjectTypeRelationListResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectTypeRelationListResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectTypeRelationListResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectTypeRelationListResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectTypeRelationListResponseError.Merge(m, src) -} -func (m *RpcObjectTypeRelationListResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectTypeRelationListResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectTypeRelationListResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectTypeRelationListResponseError proto.InternalMessageInfo - -func (m *RpcObjectTypeRelationListResponseError) GetCode() RpcObjectTypeRelationListResponseErrorCode { - if m != nil { - return m.Code - } - return RpcObjectTypeRelationListResponseError_NULL -} - -func (m *RpcObjectTypeRelationListResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcObject struct { -} - -func (m *RpcObject) Reset() { *m = RpcObject{} } -func (m *RpcObject) String() string { return proto.CompactTextString(m) } -func (*RpcObject) ProtoMessage() {} -func (*RpcObject) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24} -} -func (m *RpcObject) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObject.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObject) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObject.Merge(m, src) -} -func (m *RpcObject) XXX_Size() int { - return m.Size() -} -func (m *RpcObject) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObject.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObject proto.InternalMessageInfo - -type RpcObjectShareByLink struct { -} - -func (m *RpcObjectShareByLink) Reset() { *m = RpcObjectShareByLink{} } -func (m *RpcObjectShareByLink) String() string { return proto.CompactTextString(m) } -func (*RpcObjectShareByLink) ProtoMessage() {} -func (*RpcObjectShareByLink) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 0} -} -func (m *RpcObjectShareByLink) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectShareByLink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectShareByLink.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectShareByLink) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectShareByLink.Merge(m, src) -} -func (m *RpcObjectShareByLink) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectShareByLink) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectShareByLink.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectShareByLink proto.InternalMessageInfo - -type RpcObjectShareByLinkRequest struct { - ObjectId string `protobuf:"bytes,1,opt,name=objectId,proto3" json:"objectId,omitempty"` -} - -func (m *RpcObjectShareByLinkRequest) Reset() { *m = RpcObjectShareByLinkRequest{} } -func (m *RpcObjectShareByLinkRequest) String() string { return proto.CompactTextString(m) } -func (*RpcObjectShareByLinkRequest) ProtoMessage() {} -func (*RpcObjectShareByLinkRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 0, 0} -} -func (m *RpcObjectShareByLinkRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectShareByLinkRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectShareByLinkRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectShareByLinkRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectShareByLinkRequest.Merge(m, src) -} -func (m *RpcObjectShareByLinkRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectShareByLinkRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectShareByLinkRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectShareByLinkRequest proto.InternalMessageInfo - -func (m *RpcObjectShareByLinkRequest) GetObjectId() string { - if m != nil { - return m.ObjectId - } - return "" -} - -type RpcObjectShareByLinkResponse struct { - Link string `protobuf:"bytes,1,opt,name=link,proto3" json:"link,omitempty"` - Error *RpcObjectShareByLinkResponseError `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` -} - -func (m *RpcObjectShareByLinkResponse) Reset() { *m = RpcObjectShareByLinkResponse{} } -func (m *RpcObjectShareByLinkResponse) String() string { return proto.CompactTextString(m) } -func (*RpcObjectShareByLinkResponse) ProtoMessage() {} -func (*RpcObjectShareByLinkResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 0, 1} -} -func (m *RpcObjectShareByLinkResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectShareByLinkResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectShareByLinkResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectShareByLinkResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectShareByLinkResponse.Merge(m, src) -} -func (m *RpcObjectShareByLinkResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectShareByLinkResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectShareByLinkResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectShareByLinkResponse proto.InternalMessageInfo - -func (m *RpcObjectShareByLinkResponse) GetLink() string { - if m != nil { - return m.Link - } - return "" -} - -func (m *RpcObjectShareByLinkResponse) GetError() *RpcObjectShareByLinkResponseError { - if m != nil { - return m.Error - } - return nil -} - -type RpcObjectShareByLinkResponseError struct { - Code RpcObjectShareByLinkResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectShareByLinkResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcObjectShareByLinkResponseError) Reset() { *m = RpcObjectShareByLinkResponseError{} } -func (m *RpcObjectShareByLinkResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcObjectShareByLinkResponseError) ProtoMessage() {} -func (*RpcObjectShareByLinkResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 0, 1, 0} -} -func (m *RpcObjectShareByLinkResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectShareByLinkResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectShareByLinkResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectShareByLinkResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectShareByLinkResponseError.Merge(m, src) -} -func (m *RpcObjectShareByLinkResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectShareByLinkResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectShareByLinkResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectShareByLinkResponseError proto.InternalMessageInfo - -func (m *RpcObjectShareByLinkResponseError) GetCode() RpcObjectShareByLinkResponseErrorCode { - if m != nil { - return m.Code - } - return RpcObjectShareByLinkResponseError_NULL -} - -func (m *RpcObjectShareByLinkResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcObjectAddWithObjectId struct { -} - -func (m *RpcObjectAddWithObjectId) Reset() { *m = RpcObjectAddWithObjectId{} } -func (m *RpcObjectAddWithObjectId) String() string { return proto.CompactTextString(m) } -func (*RpcObjectAddWithObjectId) ProtoMessage() {} -func (*RpcObjectAddWithObjectId) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 1} -} -func (m *RpcObjectAddWithObjectId) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectAddWithObjectId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectAddWithObjectId.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectAddWithObjectId) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectAddWithObjectId.Merge(m, src) -} -func (m *RpcObjectAddWithObjectId) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectAddWithObjectId) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectAddWithObjectId.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectAddWithObjectId proto.InternalMessageInfo - -type RpcObjectAddWithObjectIdRequest struct { - ObjectId string `protobuf:"bytes,1,opt,name=objectId,proto3" json:"objectId,omitempty"` - Payload string `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` -} - -func (m *RpcObjectAddWithObjectIdRequest) Reset() { *m = RpcObjectAddWithObjectIdRequest{} } -func (m *RpcObjectAddWithObjectIdRequest) String() string { return proto.CompactTextString(m) } -func (*RpcObjectAddWithObjectIdRequest) ProtoMessage() {} -func (*RpcObjectAddWithObjectIdRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 1, 0} -} -func (m *RpcObjectAddWithObjectIdRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectAddWithObjectIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectAddWithObjectIdRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectAddWithObjectIdRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectAddWithObjectIdRequest.Merge(m, src) -} -func (m *RpcObjectAddWithObjectIdRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectAddWithObjectIdRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectAddWithObjectIdRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectAddWithObjectIdRequest proto.InternalMessageInfo - -func (m *RpcObjectAddWithObjectIdRequest) GetObjectId() string { - if m != nil { - return m.ObjectId - } - return "" -} - -func (m *RpcObjectAddWithObjectIdRequest) GetPayload() string { - if m != nil { - return m.Payload - } - return "" -} - -type RpcObjectAddWithObjectIdResponse struct { - Error *RpcObjectAddWithObjectIdResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` -} - -func (m *RpcObjectAddWithObjectIdResponse) Reset() { *m = RpcObjectAddWithObjectIdResponse{} } -func (m *RpcObjectAddWithObjectIdResponse) String() string { return proto.CompactTextString(m) } -func (*RpcObjectAddWithObjectIdResponse) ProtoMessage() {} -func (*RpcObjectAddWithObjectIdResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 1, 1} -} -func (m *RpcObjectAddWithObjectIdResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectAddWithObjectIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectAddWithObjectIdResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectAddWithObjectIdResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectAddWithObjectIdResponse.Merge(m, src) -} -func (m *RpcObjectAddWithObjectIdResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectAddWithObjectIdResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectAddWithObjectIdResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectAddWithObjectIdResponse proto.InternalMessageInfo - -func (m *RpcObjectAddWithObjectIdResponse) GetError() *RpcObjectAddWithObjectIdResponseError { - if m != nil { - return m.Error - } - return nil -} - -type RpcObjectAddWithObjectIdResponseError struct { - Code RpcObjectAddWithObjectIdResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectAddWithObjectIdResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcObjectAddWithObjectIdResponseError) Reset() { *m = RpcObjectAddWithObjectIdResponseError{} } -func (m *RpcObjectAddWithObjectIdResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcObjectAddWithObjectIdResponseError) ProtoMessage() {} -func (*RpcObjectAddWithObjectIdResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 1, 1, 0} -} -func (m *RpcObjectAddWithObjectIdResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectAddWithObjectIdResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectAddWithObjectIdResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectAddWithObjectIdResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectAddWithObjectIdResponseError.Merge(m, src) -} -func (m *RpcObjectAddWithObjectIdResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectAddWithObjectIdResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectAddWithObjectIdResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectAddWithObjectIdResponseError proto.InternalMessageInfo - -func (m *RpcObjectAddWithObjectIdResponseError) GetCode() RpcObjectAddWithObjectIdResponseErrorCode { - if m != nil { - return m.Code - } - return RpcObjectAddWithObjectIdResponseError_NULL -} - -func (m *RpcObjectAddWithObjectIdResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcObjectRelationAdd struct { -} - -func (m *RpcObjectRelationAdd) Reset() { *m = RpcObjectRelationAdd{} } -func (m *RpcObjectRelationAdd) String() string { return proto.CompactTextString(m) } -func (*RpcObjectRelationAdd) ProtoMessage() {} -func (*RpcObjectRelationAdd) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 2} -} -func (m *RpcObjectRelationAdd) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectRelationAdd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectRelationAdd.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectRelationAdd) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectRelationAdd.Merge(m, src) -} -func (m *RpcObjectRelationAdd) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectRelationAdd) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectRelationAdd.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectRelationAdd proto.InternalMessageInfo - -type RpcObjectRelationAddRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - Relation *model.Relation `protobuf:"bytes,2,opt,name=relation,proto3" json:"relation,omitempty"` -} - -func (m *RpcObjectRelationAddRequest) Reset() { *m = RpcObjectRelationAddRequest{} } -func (m *RpcObjectRelationAddRequest) String() string { return proto.CompactTextString(m) } -func (*RpcObjectRelationAddRequest) ProtoMessage() {} -func (*RpcObjectRelationAddRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 2, 0} -} -func (m *RpcObjectRelationAddRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectRelationAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectRelationAddRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectRelationAddRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectRelationAddRequest.Merge(m, src) -} -func (m *RpcObjectRelationAddRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectRelationAddRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectRelationAddRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectRelationAddRequest proto.InternalMessageInfo - -func (m *RpcObjectRelationAddRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcObjectRelationAddRequest) GetRelation() *model.Relation { - if m != nil { - return m.Relation - } - return nil -} - -type RpcObjectRelationAddResponse struct { - Error *RpcObjectRelationAddResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` - RelationKey string `protobuf:"bytes,3,opt,name=relationKey,proto3" json:"relationKey,omitempty"` - Relation *model.Relation `protobuf:"bytes,4,opt,name=relation,proto3" json:"relation,omitempty"` -} - -func (m *RpcObjectRelationAddResponse) Reset() { *m = RpcObjectRelationAddResponse{} } -func (m *RpcObjectRelationAddResponse) String() string { return proto.CompactTextString(m) } -func (*RpcObjectRelationAddResponse) ProtoMessage() {} -func (*RpcObjectRelationAddResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 2, 1} -} -func (m *RpcObjectRelationAddResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectRelationAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectRelationAddResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectRelationAddResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectRelationAddResponse.Merge(m, src) -} -func (m *RpcObjectRelationAddResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectRelationAddResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectRelationAddResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectRelationAddResponse proto.InternalMessageInfo - -func (m *RpcObjectRelationAddResponse) GetError() *RpcObjectRelationAddResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcObjectRelationAddResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -func (m *RpcObjectRelationAddResponse) GetRelationKey() string { - if m != nil { - return m.RelationKey - } - return "" -} - -func (m *RpcObjectRelationAddResponse) GetRelation() *model.Relation { - if m != nil { - return m.Relation - } - return nil -} - -type RpcObjectRelationAddResponseError struct { - Code RpcObjectRelationAddResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectRelationAddResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcObjectRelationAddResponseError) Reset() { *m = RpcObjectRelationAddResponseError{} } -func (m *RpcObjectRelationAddResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcObjectRelationAddResponseError) ProtoMessage() {} -func (*RpcObjectRelationAddResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 2, 1, 0} -} -func (m *RpcObjectRelationAddResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectRelationAddResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectRelationAddResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectRelationAddResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectRelationAddResponseError.Merge(m, src) -} -func (m *RpcObjectRelationAddResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectRelationAddResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectRelationAddResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectRelationAddResponseError proto.InternalMessageInfo - -func (m *RpcObjectRelationAddResponseError) GetCode() RpcObjectRelationAddResponseErrorCode { - if m != nil { - return m.Code - } - return RpcObjectRelationAddResponseError_NULL -} - -func (m *RpcObjectRelationAddResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcObjectRelationUpdate struct { -} - -func (m *RpcObjectRelationUpdate) Reset() { *m = RpcObjectRelationUpdate{} } -func (m *RpcObjectRelationUpdate) String() string { return proto.CompactTextString(m) } -func (*RpcObjectRelationUpdate) ProtoMessage() {} -func (*RpcObjectRelationUpdate) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 3} -} -func (m *RpcObjectRelationUpdate) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectRelationUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectRelationUpdate.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectRelationUpdate) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectRelationUpdate.Merge(m, src) -} -func (m *RpcObjectRelationUpdate) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectRelationUpdate) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectRelationUpdate.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectRelationUpdate proto.InternalMessageInfo - -type RpcObjectRelationUpdateRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - RelationKey string `protobuf:"bytes,2,opt,name=relationKey,proto3" json:"relationKey,omitempty"` - Relation *model.Relation `protobuf:"bytes,3,opt,name=relation,proto3" json:"relation,omitempty"` -} - -func (m *RpcObjectRelationUpdateRequest) Reset() { *m = RpcObjectRelationUpdateRequest{} } -func (m *RpcObjectRelationUpdateRequest) String() string { return proto.CompactTextString(m) } -func (*RpcObjectRelationUpdateRequest) ProtoMessage() {} -func (*RpcObjectRelationUpdateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 3, 0} -} -func (m *RpcObjectRelationUpdateRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectRelationUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectRelationUpdateRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectRelationUpdateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectRelationUpdateRequest.Merge(m, src) -} -func (m *RpcObjectRelationUpdateRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectRelationUpdateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectRelationUpdateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectRelationUpdateRequest proto.InternalMessageInfo - -func (m *RpcObjectRelationUpdateRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcObjectRelationUpdateRequest) GetRelationKey() string { - if m != nil { - return m.RelationKey - } - return "" -} - -func (m *RpcObjectRelationUpdateRequest) GetRelation() *model.Relation { - if m != nil { - return m.Relation - } - return nil -} - -type RpcObjectRelationUpdateResponse struct { - Error *RpcObjectRelationUpdateResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcObjectRelationUpdateResponse) Reset() { *m = RpcObjectRelationUpdateResponse{} } -func (m *RpcObjectRelationUpdateResponse) String() string { return proto.CompactTextString(m) } -func (*RpcObjectRelationUpdateResponse) ProtoMessage() {} -func (*RpcObjectRelationUpdateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 3, 1} -} -func (m *RpcObjectRelationUpdateResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectRelationUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectRelationUpdateResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectRelationUpdateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectRelationUpdateResponse.Merge(m, src) -} -func (m *RpcObjectRelationUpdateResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectRelationUpdateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectRelationUpdateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectRelationUpdateResponse proto.InternalMessageInfo - -func (m *RpcObjectRelationUpdateResponse) GetError() *RpcObjectRelationUpdateResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcObjectRelationUpdateResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcObjectRelationUpdateResponseError struct { - Code RpcObjectRelationUpdateResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectRelationUpdateResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcObjectRelationUpdateResponseError) Reset() { *m = RpcObjectRelationUpdateResponseError{} } -func (m *RpcObjectRelationUpdateResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcObjectRelationUpdateResponseError) ProtoMessage() {} -func (*RpcObjectRelationUpdateResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 3, 1, 0} -} -func (m *RpcObjectRelationUpdateResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectRelationUpdateResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectRelationUpdateResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectRelationUpdateResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectRelationUpdateResponseError.Merge(m, src) -} -func (m *RpcObjectRelationUpdateResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectRelationUpdateResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectRelationUpdateResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectRelationUpdateResponseError proto.InternalMessageInfo - -func (m *RpcObjectRelationUpdateResponseError) GetCode() RpcObjectRelationUpdateResponseErrorCode { - if m != nil { - return m.Code - } - return RpcObjectRelationUpdateResponseError_NULL -} - -func (m *RpcObjectRelationUpdateResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcObjectRelationDelete struct { -} - -func (m *RpcObjectRelationDelete) Reset() { *m = RpcObjectRelationDelete{} } -func (m *RpcObjectRelationDelete) String() string { return proto.CompactTextString(m) } -func (*RpcObjectRelationDelete) ProtoMessage() {} -func (*RpcObjectRelationDelete) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 4} -} -func (m *RpcObjectRelationDelete) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectRelationDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectRelationDelete.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectRelationDelete) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectRelationDelete.Merge(m, src) -} -func (m *RpcObjectRelationDelete) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectRelationDelete) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectRelationDelete.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectRelationDelete proto.InternalMessageInfo - -type RpcObjectRelationDeleteRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - RelationKey string `protobuf:"bytes,2,opt,name=relationKey,proto3" json:"relationKey,omitempty"` -} - -func (m *RpcObjectRelationDeleteRequest) Reset() { *m = RpcObjectRelationDeleteRequest{} } -func (m *RpcObjectRelationDeleteRequest) String() string { return proto.CompactTextString(m) } -func (*RpcObjectRelationDeleteRequest) ProtoMessage() {} -func (*RpcObjectRelationDeleteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 4, 0} -} -func (m *RpcObjectRelationDeleteRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectRelationDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectRelationDeleteRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectRelationDeleteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectRelationDeleteRequest.Merge(m, src) -} -func (m *RpcObjectRelationDeleteRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectRelationDeleteRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectRelationDeleteRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectRelationDeleteRequest proto.InternalMessageInfo - -func (m *RpcObjectRelationDeleteRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcObjectRelationDeleteRequest) GetRelationKey() string { - if m != nil { - return m.RelationKey - } - return "" -} - -type RpcObjectRelationDeleteResponse struct { - Error *RpcObjectRelationDeleteResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcObjectRelationDeleteResponse) Reset() { *m = RpcObjectRelationDeleteResponse{} } -func (m *RpcObjectRelationDeleteResponse) String() string { return proto.CompactTextString(m) } -func (*RpcObjectRelationDeleteResponse) ProtoMessage() {} -func (*RpcObjectRelationDeleteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 4, 1} -} -func (m *RpcObjectRelationDeleteResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectRelationDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectRelationDeleteResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectRelationDeleteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectRelationDeleteResponse.Merge(m, src) -} -func (m *RpcObjectRelationDeleteResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectRelationDeleteResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectRelationDeleteResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectRelationDeleteResponse proto.InternalMessageInfo - -func (m *RpcObjectRelationDeleteResponse) GetError() *RpcObjectRelationDeleteResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcObjectRelationDeleteResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcObjectRelationDeleteResponseError struct { - Code RpcObjectRelationDeleteResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectRelationDeleteResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcObjectRelationDeleteResponseError) Reset() { *m = RpcObjectRelationDeleteResponseError{} } -func (m *RpcObjectRelationDeleteResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcObjectRelationDeleteResponseError) ProtoMessage() {} -func (*RpcObjectRelationDeleteResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 4, 1, 0} -} -func (m *RpcObjectRelationDeleteResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectRelationDeleteResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectRelationDeleteResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectRelationDeleteResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectRelationDeleteResponseError.Merge(m, src) -} -func (m *RpcObjectRelationDeleteResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectRelationDeleteResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectRelationDeleteResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectRelationDeleteResponseError proto.InternalMessageInfo - -func (m *RpcObjectRelationDeleteResponseError) GetCode() RpcObjectRelationDeleteResponseErrorCode { - if m != nil { - return m.Code - } - return RpcObjectRelationDeleteResponseError_NULL -} - -func (m *RpcObjectRelationDeleteResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -// RelationOptionAdd may return existing option in case dataview already has one with the same text -type RpcObjectRelationOptionAdd struct { -} - -func (m *RpcObjectRelationOptionAdd) Reset() { *m = RpcObjectRelationOptionAdd{} } -func (m *RpcObjectRelationOptionAdd) String() string { return proto.CompactTextString(m) } -func (*RpcObjectRelationOptionAdd) ProtoMessage() {} -func (*RpcObjectRelationOptionAdd) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 5} -} -func (m *RpcObjectRelationOptionAdd) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectRelationOptionAdd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectRelationOptionAdd.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectRelationOptionAdd) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectRelationOptionAdd.Merge(m, src) -} -func (m *RpcObjectRelationOptionAdd) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectRelationOptionAdd) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectRelationOptionAdd.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectRelationOptionAdd proto.InternalMessageInfo - -type RpcObjectRelationOptionAddRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - RelationKey string `protobuf:"bytes,2,opt,name=relationKey,proto3" json:"relationKey,omitempty"` - Option *model.RelationOption `protobuf:"bytes,3,opt,name=option,proto3" json:"option,omitempty"` -} - -func (m *RpcObjectRelationOptionAddRequest) Reset() { *m = RpcObjectRelationOptionAddRequest{} } -func (m *RpcObjectRelationOptionAddRequest) String() string { return proto.CompactTextString(m) } -func (*RpcObjectRelationOptionAddRequest) ProtoMessage() {} -func (*RpcObjectRelationOptionAddRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 5, 0} -} -func (m *RpcObjectRelationOptionAddRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectRelationOptionAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectRelationOptionAddRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectRelationOptionAddRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectRelationOptionAddRequest.Merge(m, src) -} -func (m *RpcObjectRelationOptionAddRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectRelationOptionAddRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectRelationOptionAddRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectRelationOptionAddRequest proto.InternalMessageInfo - -func (m *RpcObjectRelationOptionAddRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcObjectRelationOptionAddRequest) GetRelationKey() string { - if m != nil { - return m.RelationKey - } - return "" -} - -func (m *RpcObjectRelationOptionAddRequest) GetOption() *model.RelationOption { - if m != nil { - return m.Option - } - return nil -} - -type RpcObjectRelationOptionAddResponse struct { - Error *RpcObjectRelationOptionAddResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` - Option *model.RelationOption `protobuf:"bytes,3,opt,name=option,proto3" json:"option,omitempty"` -} - -func (m *RpcObjectRelationOptionAddResponse) Reset() { *m = RpcObjectRelationOptionAddResponse{} } -func (m *RpcObjectRelationOptionAddResponse) String() string { return proto.CompactTextString(m) } -func (*RpcObjectRelationOptionAddResponse) ProtoMessage() {} -func (*RpcObjectRelationOptionAddResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 5, 1} -} -func (m *RpcObjectRelationOptionAddResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectRelationOptionAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectRelationOptionAddResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectRelationOptionAddResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectRelationOptionAddResponse.Merge(m, src) -} -func (m *RpcObjectRelationOptionAddResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectRelationOptionAddResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectRelationOptionAddResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectRelationOptionAddResponse proto.InternalMessageInfo - -func (m *RpcObjectRelationOptionAddResponse) GetError() *RpcObjectRelationOptionAddResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcObjectRelationOptionAddResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -func (m *RpcObjectRelationOptionAddResponse) GetOption() *model.RelationOption { - if m != nil { - return m.Option - } - return nil -} - -type RpcObjectRelationOptionAddResponseError struct { - Code RpcObjectRelationOptionAddResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectRelationOptionAddResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcObjectRelationOptionAddResponseError) Reset() { - *m = RpcObjectRelationOptionAddResponseError{} -} -func (m *RpcObjectRelationOptionAddResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcObjectRelationOptionAddResponseError) ProtoMessage() {} -func (*RpcObjectRelationOptionAddResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 5, 1, 0} -} -func (m *RpcObjectRelationOptionAddResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectRelationOptionAddResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectRelationOptionAddResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectRelationOptionAddResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectRelationOptionAddResponseError.Merge(m, src) -} -func (m *RpcObjectRelationOptionAddResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectRelationOptionAddResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectRelationOptionAddResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectRelationOptionAddResponseError proto.InternalMessageInfo - -func (m *RpcObjectRelationOptionAddResponseError) GetCode() RpcObjectRelationOptionAddResponseErrorCode { - if m != nil { - return m.Code - } - return RpcObjectRelationOptionAddResponseError_NULL -} - -func (m *RpcObjectRelationOptionAddResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcObjectRelationOptionUpdate struct { -} - -func (m *RpcObjectRelationOptionUpdate) Reset() { *m = RpcObjectRelationOptionUpdate{} } -func (m *RpcObjectRelationOptionUpdate) String() string { return proto.CompactTextString(m) } -func (*RpcObjectRelationOptionUpdate) ProtoMessage() {} -func (*RpcObjectRelationOptionUpdate) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 6} -} -func (m *RpcObjectRelationOptionUpdate) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectRelationOptionUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectRelationOptionUpdate.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectRelationOptionUpdate) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectRelationOptionUpdate.Merge(m, src) -} -func (m *RpcObjectRelationOptionUpdate) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectRelationOptionUpdate) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectRelationOptionUpdate.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectRelationOptionUpdate proto.InternalMessageInfo - -type RpcObjectRelationOptionUpdateRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - RelationKey string `protobuf:"bytes,2,opt,name=relationKey,proto3" json:"relationKey,omitempty"` - Option *model.RelationOption `protobuf:"bytes,3,opt,name=option,proto3" json:"option,omitempty"` -} - -func (m *RpcObjectRelationOptionUpdateRequest) Reset() { *m = RpcObjectRelationOptionUpdateRequest{} } -func (m *RpcObjectRelationOptionUpdateRequest) String() string { return proto.CompactTextString(m) } -func (*RpcObjectRelationOptionUpdateRequest) ProtoMessage() {} -func (*RpcObjectRelationOptionUpdateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 6, 0} -} -func (m *RpcObjectRelationOptionUpdateRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectRelationOptionUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectRelationOptionUpdateRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectRelationOptionUpdateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectRelationOptionUpdateRequest.Merge(m, src) -} -func (m *RpcObjectRelationOptionUpdateRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectRelationOptionUpdateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectRelationOptionUpdateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectRelationOptionUpdateRequest proto.InternalMessageInfo - -func (m *RpcObjectRelationOptionUpdateRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcObjectRelationOptionUpdateRequest) GetRelationKey() string { - if m != nil { - return m.RelationKey - } - return "" -} - -func (m *RpcObjectRelationOptionUpdateRequest) GetOption() *model.RelationOption { - if m != nil { - return m.Option - } - return nil -} - -type RpcObjectRelationOptionUpdateResponse struct { - Error *RpcObjectRelationOptionUpdateResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcObjectRelationOptionUpdateResponse) Reset() { *m = RpcObjectRelationOptionUpdateResponse{} } -func (m *RpcObjectRelationOptionUpdateResponse) String() string { return proto.CompactTextString(m) } -func (*RpcObjectRelationOptionUpdateResponse) ProtoMessage() {} -func (*RpcObjectRelationOptionUpdateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 6, 1} -} -func (m *RpcObjectRelationOptionUpdateResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectRelationOptionUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectRelationOptionUpdateResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectRelationOptionUpdateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectRelationOptionUpdateResponse.Merge(m, src) -} -func (m *RpcObjectRelationOptionUpdateResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectRelationOptionUpdateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectRelationOptionUpdateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectRelationOptionUpdateResponse proto.InternalMessageInfo - -func (m *RpcObjectRelationOptionUpdateResponse) GetError() *RpcObjectRelationOptionUpdateResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcObjectRelationOptionUpdateResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcObjectRelationOptionUpdateResponseError struct { - Code RpcObjectRelationOptionUpdateResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectRelationOptionUpdateResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcObjectRelationOptionUpdateResponseError) Reset() { - *m = RpcObjectRelationOptionUpdateResponseError{} -} -func (m *RpcObjectRelationOptionUpdateResponseError) String() string { - return proto.CompactTextString(m) -} -func (*RpcObjectRelationOptionUpdateResponseError) ProtoMessage() {} -func (*RpcObjectRelationOptionUpdateResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 6, 1, 0} -} -func (m *RpcObjectRelationOptionUpdateResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectRelationOptionUpdateResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectRelationOptionUpdateResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectRelationOptionUpdateResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectRelationOptionUpdateResponseError.Merge(m, src) -} -func (m *RpcObjectRelationOptionUpdateResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectRelationOptionUpdateResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectRelationOptionUpdateResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectRelationOptionUpdateResponseError proto.InternalMessageInfo - -func (m *RpcObjectRelationOptionUpdateResponseError) GetCode() RpcObjectRelationOptionUpdateResponseErrorCode { - if m != nil { - return m.Code - } - return RpcObjectRelationOptionUpdateResponseError_NULL -} - -func (m *RpcObjectRelationOptionUpdateResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcObjectRelationOptionDelete struct { -} - -func (m *RpcObjectRelationOptionDelete) Reset() { *m = RpcObjectRelationOptionDelete{} } -func (m *RpcObjectRelationOptionDelete) String() string { return proto.CompactTextString(m) } -func (*RpcObjectRelationOptionDelete) ProtoMessage() {} -func (*RpcObjectRelationOptionDelete) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 7} -} -func (m *RpcObjectRelationOptionDelete) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectRelationOptionDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectRelationOptionDelete.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectRelationOptionDelete) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectRelationOptionDelete.Merge(m, src) -} -func (m *RpcObjectRelationOptionDelete) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectRelationOptionDelete) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectRelationOptionDelete.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectRelationOptionDelete proto.InternalMessageInfo - -type RpcObjectRelationOptionDeleteRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - RelationKey string `protobuf:"bytes,2,opt,name=relationKey,proto3" json:"relationKey,omitempty"` - OptionId string `protobuf:"bytes,3,opt,name=optionId,proto3" json:"optionId,omitempty"` - ConfirmRemoveAllValuesInRecords bool `protobuf:"varint,4,opt,name=confirmRemoveAllValuesInRecords,proto3" json:"confirmRemoveAllValuesInRecords,omitempty"` -} - -func (m *RpcObjectRelationOptionDeleteRequest) Reset() { *m = RpcObjectRelationOptionDeleteRequest{} } -func (m *RpcObjectRelationOptionDeleteRequest) String() string { return proto.CompactTextString(m) } -func (*RpcObjectRelationOptionDeleteRequest) ProtoMessage() {} -func (*RpcObjectRelationOptionDeleteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 7, 0} -} -func (m *RpcObjectRelationOptionDeleteRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectRelationOptionDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectRelationOptionDeleteRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectRelationOptionDeleteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectRelationOptionDeleteRequest.Merge(m, src) -} -func (m *RpcObjectRelationOptionDeleteRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectRelationOptionDeleteRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectRelationOptionDeleteRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectRelationOptionDeleteRequest proto.InternalMessageInfo - -func (m *RpcObjectRelationOptionDeleteRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcObjectRelationOptionDeleteRequest) GetRelationKey() string { - if m != nil { - return m.RelationKey - } - return "" -} - -func (m *RpcObjectRelationOptionDeleteRequest) GetOptionId() string { - if m != nil { - return m.OptionId - } - return "" -} - -func (m *RpcObjectRelationOptionDeleteRequest) GetConfirmRemoveAllValuesInRecords() bool { - if m != nil { - return m.ConfirmRemoveAllValuesInRecords - } - return false -} - -type RpcObjectRelationOptionDeleteResponse struct { - Error *RpcObjectRelationOptionDeleteResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcObjectRelationOptionDeleteResponse) Reset() { *m = RpcObjectRelationOptionDeleteResponse{} } -func (m *RpcObjectRelationOptionDeleteResponse) String() string { return proto.CompactTextString(m) } -func (*RpcObjectRelationOptionDeleteResponse) ProtoMessage() {} -func (*RpcObjectRelationOptionDeleteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 7, 1} -} -func (m *RpcObjectRelationOptionDeleteResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectRelationOptionDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectRelationOptionDeleteResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectRelationOptionDeleteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectRelationOptionDeleteResponse.Merge(m, src) -} -func (m *RpcObjectRelationOptionDeleteResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectRelationOptionDeleteResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectRelationOptionDeleteResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectRelationOptionDeleteResponse proto.InternalMessageInfo - -func (m *RpcObjectRelationOptionDeleteResponse) GetError() *RpcObjectRelationOptionDeleteResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcObjectRelationOptionDeleteResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcObjectRelationOptionDeleteResponseError struct { - Code RpcObjectRelationOptionDeleteResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectRelationOptionDeleteResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcObjectRelationOptionDeleteResponseError) Reset() { - *m = RpcObjectRelationOptionDeleteResponseError{} -} -func (m *RpcObjectRelationOptionDeleteResponseError) String() string { - return proto.CompactTextString(m) -} -func (*RpcObjectRelationOptionDeleteResponseError) ProtoMessage() {} -func (*RpcObjectRelationOptionDeleteResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 7, 1, 0} -} -func (m *RpcObjectRelationOptionDeleteResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectRelationOptionDeleteResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectRelationOptionDeleteResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectRelationOptionDeleteResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectRelationOptionDeleteResponseError.Merge(m, src) -} -func (m *RpcObjectRelationOptionDeleteResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectRelationOptionDeleteResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectRelationOptionDeleteResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectRelationOptionDeleteResponseError proto.InternalMessageInfo - -func (m *RpcObjectRelationOptionDeleteResponseError) GetCode() RpcObjectRelationOptionDeleteResponseErrorCode { - if m != nil { - return m.Code - } - return RpcObjectRelationOptionDeleteResponseError_NULL -} - -func (m *RpcObjectRelationOptionDeleteResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcObjectRelationListAvailable struct { -} - -func (m *RpcObjectRelationListAvailable) Reset() { *m = RpcObjectRelationListAvailable{} } -func (m *RpcObjectRelationListAvailable) String() string { return proto.CompactTextString(m) } -func (*RpcObjectRelationListAvailable) ProtoMessage() {} -func (*RpcObjectRelationListAvailable) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 8} -} -func (m *RpcObjectRelationListAvailable) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectRelationListAvailable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectRelationListAvailable.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectRelationListAvailable) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectRelationListAvailable.Merge(m, src) -} -func (m *RpcObjectRelationListAvailable) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectRelationListAvailable) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectRelationListAvailable.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectRelationListAvailable proto.InternalMessageInfo - -type RpcObjectRelationListAvailableRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` -} - -func (m *RpcObjectRelationListAvailableRequest) Reset() { *m = RpcObjectRelationListAvailableRequest{} } -func (m *RpcObjectRelationListAvailableRequest) String() string { return proto.CompactTextString(m) } -func (*RpcObjectRelationListAvailableRequest) ProtoMessage() {} -func (*RpcObjectRelationListAvailableRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 8, 0} -} -func (m *RpcObjectRelationListAvailableRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectRelationListAvailableRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectRelationListAvailableRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectRelationListAvailableRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectRelationListAvailableRequest.Merge(m, src) -} -func (m *RpcObjectRelationListAvailableRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectRelationListAvailableRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectRelationListAvailableRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectRelationListAvailableRequest proto.InternalMessageInfo - -func (m *RpcObjectRelationListAvailableRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -type RpcObjectRelationListAvailableResponse struct { - Error *RpcObjectRelationListAvailableResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Relations []*model.Relation `protobuf:"bytes,2,rep,name=relations,proto3" json:"relations,omitempty"` -} - -func (m *RpcObjectRelationListAvailableResponse) Reset() { - *m = RpcObjectRelationListAvailableResponse{} -} -func (m *RpcObjectRelationListAvailableResponse) String() string { return proto.CompactTextString(m) } -func (*RpcObjectRelationListAvailableResponse) ProtoMessage() {} -func (*RpcObjectRelationListAvailableResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 8, 1} -} -func (m *RpcObjectRelationListAvailableResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectRelationListAvailableResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectRelationListAvailableResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectRelationListAvailableResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectRelationListAvailableResponse.Merge(m, src) -} -func (m *RpcObjectRelationListAvailableResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectRelationListAvailableResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectRelationListAvailableResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectRelationListAvailableResponse proto.InternalMessageInfo - -func (m *RpcObjectRelationListAvailableResponse) GetError() *RpcObjectRelationListAvailableResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcObjectRelationListAvailableResponse) GetRelations() []*model.Relation { - if m != nil { - return m.Relations - } - return nil -} - -type RpcObjectRelationListAvailableResponseError struct { - Code RpcObjectRelationListAvailableResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectRelationListAvailableResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcObjectRelationListAvailableResponseError) Reset() { - *m = RpcObjectRelationListAvailableResponseError{} -} -func (m *RpcObjectRelationListAvailableResponseError) String() string { - return proto.CompactTextString(m) -} -func (*RpcObjectRelationListAvailableResponseError) ProtoMessage() {} -func (*RpcObjectRelationListAvailableResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 8, 1, 0} -} -func (m *RpcObjectRelationListAvailableResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectRelationListAvailableResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectRelationListAvailableResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectRelationListAvailableResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectRelationListAvailableResponseError.Merge(m, src) -} -func (m *RpcObjectRelationListAvailableResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectRelationListAvailableResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectRelationListAvailableResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectRelationListAvailableResponseError proto.InternalMessageInfo - -func (m *RpcObjectRelationListAvailableResponseError) GetCode() RpcObjectRelationListAvailableResponseErrorCode { - if m != nil { - return m.Code - } - return RpcObjectRelationListAvailableResponseError_NULL -} - -func (m *RpcObjectRelationListAvailableResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcObjectSearch struct { -} - -func (m *RpcObjectSearch) Reset() { *m = RpcObjectSearch{} } -func (m *RpcObjectSearch) String() string { return proto.CompactTextString(m) } -func (*RpcObjectSearch) ProtoMessage() {} -func (*RpcObjectSearch) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 9} -} -func (m *RpcObjectSearch) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectSearch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectSearch.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectSearch) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectSearch.Merge(m, src) -} -func (m *RpcObjectSearch) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectSearch) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectSearch.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectSearch proto.InternalMessageInfo - -type RpcObjectSearchRequest struct { - Filters []*model.BlockContentDataviewFilter `protobuf:"bytes,1,rep,name=filters,proto3" json:"filters,omitempty"` - Sorts []*model.BlockContentDataviewSort `protobuf:"bytes,2,rep,name=sorts,proto3" json:"sorts,omitempty"` - FullText string `protobuf:"bytes,3,opt,name=fullText,proto3" json:"fullText,omitempty"` - Offset int32 `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"` - Limit int32 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"` - // additional filter by objectTypes - ObjectTypeFilter []string `protobuf:"bytes,6,rep,name=objectTypeFilter,proto3" json:"objectTypeFilter,omitempty"` - // needed keys in details for return, when empty - will return all - Keys []string `protobuf:"bytes,7,rep,name=keys,proto3" json:"keys,omitempty"` -} - -func (m *RpcObjectSearchRequest) Reset() { *m = RpcObjectSearchRequest{} } -func (m *RpcObjectSearchRequest) String() string { return proto.CompactTextString(m) } -func (*RpcObjectSearchRequest) ProtoMessage() {} -func (*RpcObjectSearchRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 9, 0} -} -func (m *RpcObjectSearchRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectSearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectSearchRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectSearchRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectSearchRequest.Merge(m, src) -} -func (m *RpcObjectSearchRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectSearchRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectSearchRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectSearchRequest proto.InternalMessageInfo - -func (m *RpcObjectSearchRequest) GetFilters() []*model.BlockContentDataviewFilter { - if m != nil { - return m.Filters - } - return nil -} - -func (m *RpcObjectSearchRequest) GetSorts() []*model.BlockContentDataviewSort { - if m != nil { - return m.Sorts - } - return nil -} - -func (m *RpcObjectSearchRequest) GetFullText() string { - if m != nil { - return m.FullText - } - return "" -} - -func (m *RpcObjectSearchRequest) GetOffset() int32 { - if m != nil { - return m.Offset - } - return 0 -} - -func (m *RpcObjectSearchRequest) GetLimit() int32 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *RpcObjectSearchRequest) GetObjectTypeFilter() []string { - if m != nil { - return m.ObjectTypeFilter - } - return nil -} - -func (m *RpcObjectSearchRequest) GetKeys() []string { - if m != nil { - return m.Keys - } - return nil -} - -type RpcObjectSearchResponse struct { - Error *RpcObjectSearchResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Records []*types.Struct `protobuf:"bytes,2,rep,name=records,proto3" json:"records,omitempty"` -} - -func (m *RpcObjectSearchResponse) Reset() { *m = RpcObjectSearchResponse{} } -func (m *RpcObjectSearchResponse) String() string { return proto.CompactTextString(m) } -func (*RpcObjectSearchResponse) ProtoMessage() {} -func (*RpcObjectSearchResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 9, 1} -} -func (m *RpcObjectSearchResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectSearchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectSearchResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectSearchResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectSearchResponse.Merge(m, src) -} -func (m *RpcObjectSearchResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectSearchResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectSearchResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectSearchResponse proto.InternalMessageInfo - -func (m *RpcObjectSearchResponse) GetError() *RpcObjectSearchResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcObjectSearchResponse) GetRecords() []*types.Struct { - if m != nil { - return m.Records - } - return nil -} - -type RpcObjectSearchResponseError struct { - Code RpcObjectSearchResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectSearchResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcObjectSearchResponseError) Reset() { *m = RpcObjectSearchResponseError{} } -func (m *RpcObjectSearchResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcObjectSearchResponseError) ProtoMessage() {} -func (*RpcObjectSearchResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 9, 1, 0} -} -func (m *RpcObjectSearchResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectSearchResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectSearchResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectSearchResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectSearchResponseError.Merge(m, src) -} -func (m *RpcObjectSearchResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectSearchResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectSearchResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectSearchResponseError proto.InternalMessageInfo - -func (m *RpcObjectSearchResponseError) GetCode() RpcObjectSearchResponseErrorCode { - if m != nil { - return m.Code - } - return RpcObjectSearchResponseError_NULL -} - -func (m *RpcObjectSearchResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcObjectGraph struct { -} - -func (m *RpcObjectGraph) Reset() { *m = RpcObjectGraph{} } -func (m *RpcObjectGraph) String() string { return proto.CompactTextString(m) } -func (*RpcObjectGraph) ProtoMessage() {} -func (*RpcObjectGraph) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 10} -} -func (m *RpcObjectGraph) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectGraph) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectGraph.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectGraph) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectGraph.Merge(m, src) -} -func (m *RpcObjectGraph) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectGraph) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectGraph.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectGraph proto.InternalMessageInfo - -type RpcObjectGraphRequest struct { - Filters []*model.BlockContentDataviewFilter `protobuf:"bytes,1,rep,name=filters,proto3" json:"filters,omitempty"` - Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - // additional filter by objectTypes - ObjectTypeFilter []string `protobuf:"bytes,3,rep,name=objectTypeFilter,proto3" json:"objectTypeFilter,omitempty"` - Keys []string `protobuf:"bytes,4,rep,name=keys,proto3" json:"keys,omitempty"` -} - -func (m *RpcObjectGraphRequest) Reset() { *m = RpcObjectGraphRequest{} } -func (m *RpcObjectGraphRequest) String() string { return proto.CompactTextString(m) } -func (*RpcObjectGraphRequest) ProtoMessage() {} -func (*RpcObjectGraphRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 10, 0} -} -func (m *RpcObjectGraphRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectGraphRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectGraphRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectGraphRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectGraphRequest.Merge(m, src) -} -func (m *RpcObjectGraphRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectGraphRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectGraphRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectGraphRequest proto.InternalMessageInfo - -func (m *RpcObjectGraphRequest) GetFilters() []*model.BlockContentDataviewFilter { - if m != nil { - return m.Filters - } - return nil -} - -func (m *RpcObjectGraphRequest) GetLimit() int32 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *RpcObjectGraphRequest) GetObjectTypeFilter() []string { - if m != nil { - return m.ObjectTypeFilter - } - return nil -} - -func (m *RpcObjectGraphRequest) GetKeys() []string { - if m != nil { - return m.Keys - } - return nil -} - -type RpcObjectGraphEdge struct { - Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` - Target string `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - Type RpcObjectGraphEdgeType `protobuf:"varint,4,opt,name=type,proto3,enum=anytype.RpcObjectGraphEdgeType" json:"type,omitempty"` - Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` - IconImage string `protobuf:"bytes,6,opt,name=iconImage,proto3" json:"iconImage,omitempty"` - IconEmoji string `protobuf:"bytes,7,opt,name=iconEmoji,proto3" json:"iconEmoji,omitempty"` - Hidden bool `protobuf:"varint,8,opt,name=hidden,proto3" json:"hidden,omitempty"` -} - -func (m *RpcObjectGraphEdge) Reset() { *m = RpcObjectGraphEdge{} } -func (m *RpcObjectGraphEdge) String() string { return proto.CompactTextString(m) } -func (*RpcObjectGraphEdge) ProtoMessage() {} -func (*RpcObjectGraphEdge) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 10, 1} -} -func (m *RpcObjectGraphEdge) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectGraphEdge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectGraphEdge.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectGraphEdge) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectGraphEdge.Merge(m, src) -} -func (m *RpcObjectGraphEdge) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectGraphEdge) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectGraphEdge.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectGraphEdge proto.InternalMessageInfo - -func (m *RpcObjectGraphEdge) GetSource() string { - if m != nil { - return m.Source - } - return "" -} - -func (m *RpcObjectGraphEdge) GetTarget() string { - if m != nil { - return m.Target - } - return "" -} - -func (m *RpcObjectGraphEdge) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *RpcObjectGraphEdge) GetType() RpcObjectGraphEdgeType { - if m != nil { - return m.Type - } - return RpcObjectGraphEdge_Link -} - -func (m *RpcObjectGraphEdge) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -func (m *RpcObjectGraphEdge) GetIconImage() string { - if m != nil { - return m.IconImage - } - return "" -} - -func (m *RpcObjectGraphEdge) GetIconEmoji() string { - if m != nil { - return m.IconEmoji - } - return "" -} - -func (m *RpcObjectGraphEdge) GetHidden() bool { - if m != nil { - return m.Hidden - } - return false -} - -type RpcObjectGraphResponse struct { - Error *RpcObjectGraphResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Nodes []*types.Struct `protobuf:"bytes,2,rep,name=nodes,proto3" json:"nodes,omitempty"` - Edges []*RpcObjectGraphEdge `protobuf:"bytes,3,rep,name=edges,proto3" json:"edges,omitempty"` -} - -func (m *RpcObjectGraphResponse) Reset() { *m = RpcObjectGraphResponse{} } -func (m *RpcObjectGraphResponse) String() string { return proto.CompactTextString(m) } -func (*RpcObjectGraphResponse) ProtoMessage() {} -func (*RpcObjectGraphResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 10, 2} -} -func (m *RpcObjectGraphResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectGraphResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectGraphResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectGraphResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectGraphResponse.Merge(m, src) -} -func (m *RpcObjectGraphResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectGraphResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectGraphResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectGraphResponse proto.InternalMessageInfo - -func (m *RpcObjectGraphResponse) GetError() *RpcObjectGraphResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcObjectGraphResponse) GetNodes() []*types.Struct { - if m != nil { - return m.Nodes - } - return nil -} - -func (m *RpcObjectGraphResponse) GetEdges() []*RpcObjectGraphEdge { - if m != nil { - return m.Edges - } - return nil -} - -type RpcObjectGraphResponseError struct { - Code RpcObjectGraphResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectGraphResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcObjectGraphResponseError) Reset() { *m = RpcObjectGraphResponseError{} } -func (m *RpcObjectGraphResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcObjectGraphResponseError) ProtoMessage() {} -func (*RpcObjectGraphResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 10, 2, 0} -} -func (m *RpcObjectGraphResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectGraphResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectGraphResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectGraphResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectGraphResponseError.Merge(m, src) -} -func (m *RpcObjectGraphResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectGraphResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectGraphResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectGraphResponseError proto.InternalMessageInfo - -func (m *RpcObjectGraphResponseError) GetCode() RpcObjectGraphResponseErrorCode { - if m != nil { - return m.Code - } - return RpcObjectGraphResponseError_NULL -} - -func (m *RpcObjectGraphResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcObjectSearchSubscribe struct { -} - -func (m *RpcObjectSearchSubscribe) Reset() { *m = RpcObjectSearchSubscribe{} } -func (m *RpcObjectSearchSubscribe) String() string { return proto.CompactTextString(m) } -func (*RpcObjectSearchSubscribe) ProtoMessage() {} -func (*RpcObjectSearchSubscribe) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 11} -} -func (m *RpcObjectSearchSubscribe) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectSearchSubscribe) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectSearchSubscribe.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectSearchSubscribe) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectSearchSubscribe.Merge(m, src) -} -func (m *RpcObjectSearchSubscribe) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectSearchSubscribe) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectSearchSubscribe.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectSearchSubscribe proto.InternalMessageInfo - -type RpcObjectSearchSubscribeRequest struct { - // (optional) subscription identifier - // client can provide some string or middleware will generate it automatically - // if subId is already registered on middleware, the new query will replace previous subscription - SubId string `protobuf:"bytes,1,opt,name=subId,proto3" json:"subId,omitempty"` - // filters - Filters []*model.BlockContentDataviewFilter `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` - // sorts - Sorts []*model.BlockContentDataviewSort `protobuf:"bytes,3,rep,name=sorts,proto3" json:"sorts,omitempty"` - // results limit - Limit int64 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"` - // initial offset; middleware will find afterId - Offset int64 `protobuf:"varint,6,opt,name=offset,proto3" json:"offset,omitempty"` - // (required) needed keys in details for return, for object fields mw will return (and subscribe) objects as dependent - Keys []string `protobuf:"bytes,7,rep,name=keys,proto3" json:"keys,omitempty"` - // (optional) pagination: middleware will return results after given id - AfterId string `protobuf:"bytes,8,opt,name=afterId,proto3" json:"afterId,omitempty"` - // (optional) pagination: middleware will return results before given id - BeforeId string `protobuf:"bytes,9,opt,name=beforeId,proto3" json:"beforeId,omitempty"` - Source []string `protobuf:"bytes,10,rep,name=source,proto3" json:"source,omitempty"` - IgnoreWorkspace string `protobuf:"bytes,12,opt,name=ignoreWorkspace,proto3" json:"ignoreWorkspace,omitempty"` - // disable dependent subscription - NoDepSubscription bool `protobuf:"varint,13,opt,name=noDepSubscription,proto3" json:"noDepSubscription,omitempty"` -} - -func (m *RpcObjectSearchSubscribeRequest) Reset() { *m = RpcObjectSearchSubscribeRequest{} } -func (m *RpcObjectSearchSubscribeRequest) String() string { return proto.CompactTextString(m) } -func (*RpcObjectSearchSubscribeRequest) ProtoMessage() {} -func (*RpcObjectSearchSubscribeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 11, 0} -} -func (m *RpcObjectSearchSubscribeRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectSearchSubscribeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectSearchSubscribeRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectSearchSubscribeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectSearchSubscribeRequest.Merge(m, src) -} -func (m *RpcObjectSearchSubscribeRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectSearchSubscribeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectSearchSubscribeRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectSearchSubscribeRequest proto.InternalMessageInfo - -func (m *RpcObjectSearchSubscribeRequest) GetSubId() string { - if m != nil { - return m.SubId - } - return "" -} - -func (m *RpcObjectSearchSubscribeRequest) GetFilters() []*model.BlockContentDataviewFilter { - if m != nil { - return m.Filters - } - return nil -} - -func (m *RpcObjectSearchSubscribeRequest) GetSorts() []*model.BlockContentDataviewSort { - if m != nil { - return m.Sorts - } - return nil -} - -func (m *RpcObjectSearchSubscribeRequest) GetLimit() int64 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *RpcObjectSearchSubscribeRequest) GetOffset() int64 { - if m != nil { - return m.Offset - } - return 0 -} - -func (m *RpcObjectSearchSubscribeRequest) GetKeys() []string { - if m != nil { - return m.Keys - } - return nil -} - -func (m *RpcObjectSearchSubscribeRequest) GetAfterId() string { - if m != nil { - return m.AfterId - } - return "" -} - -func (m *RpcObjectSearchSubscribeRequest) GetBeforeId() string { - if m != nil { - return m.BeforeId - } - return "" -} - -func (m *RpcObjectSearchSubscribeRequest) GetSource() []string { - if m != nil { - return m.Source - } - return nil -} - -func (m *RpcObjectSearchSubscribeRequest) GetIgnoreWorkspace() string { - if m != nil { - return m.IgnoreWorkspace - } - return "" -} - -func (m *RpcObjectSearchSubscribeRequest) GetNoDepSubscription() bool { - if m != nil { - return m.NoDepSubscription - } - return false -} - -type RpcObjectSearchSubscribeResponse struct { - Error *RpcObjectSearchSubscribeResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Records []*types.Struct `protobuf:"bytes,2,rep,name=records,proto3" json:"records,omitempty"` - Dependencies []*types.Struct `protobuf:"bytes,3,rep,name=dependencies,proto3" json:"dependencies,omitempty"` - SubId string `protobuf:"bytes,4,opt,name=subId,proto3" json:"subId,omitempty"` - Counters *EventObjectSubscriptionCounters `protobuf:"bytes,5,opt,name=counters,proto3" json:"counters,omitempty"` -} - -func (m *RpcObjectSearchSubscribeResponse) Reset() { *m = RpcObjectSearchSubscribeResponse{} } -func (m *RpcObjectSearchSubscribeResponse) String() string { return proto.CompactTextString(m) } -func (*RpcObjectSearchSubscribeResponse) ProtoMessage() {} -func (*RpcObjectSearchSubscribeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 11, 1} -} -func (m *RpcObjectSearchSubscribeResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectSearchSubscribeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectSearchSubscribeResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectSearchSubscribeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectSearchSubscribeResponse.Merge(m, src) -} -func (m *RpcObjectSearchSubscribeResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectSearchSubscribeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectSearchSubscribeResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectSearchSubscribeResponse proto.InternalMessageInfo - -func (m *RpcObjectSearchSubscribeResponse) GetError() *RpcObjectSearchSubscribeResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcObjectSearchSubscribeResponse) GetRecords() []*types.Struct { - if m != nil { - return m.Records - } - return nil -} - -func (m *RpcObjectSearchSubscribeResponse) GetDependencies() []*types.Struct { - if m != nil { - return m.Dependencies - } - return nil -} - -func (m *RpcObjectSearchSubscribeResponse) GetSubId() string { - if m != nil { - return m.SubId - } - return "" -} - -func (m *RpcObjectSearchSubscribeResponse) GetCounters() *EventObjectSubscriptionCounters { - if m != nil { - return m.Counters - } - return nil -} - -type RpcObjectSearchSubscribeResponseError struct { - Code RpcObjectSearchSubscribeResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectSearchSubscribeResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcObjectSearchSubscribeResponseError) Reset() { *m = RpcObjectSearchSubscribeResponseError{} } -func (m *RpcObjectSearchSubscribeResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcObjectSearchSubscribeResponseError) ProtoMessage() {} -func (*RpcObjectSearchSubscribeResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 11, 1, 0} -} -func (m *RpcObjectSearchSubscribeResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectSearchSubscribeResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectSearchSubscribeResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectSearchSubscribeResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectSearchSubscribeResponseError.Merge(m, src) -} -func (m *RpcObjectSearchSubscribeResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectSearchSubscribeResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectSearchSubscribeResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectSearchSubscribeResponseError proto.InternalMessageInfo - -func (m *RpcObjectSearchSubscribeResponseError) GetCode() RpcObjectSearchSubscribeResponseErrorCode { - if m != nil { - return m.Code - } - return RpcObjectSearchSubscribeResponseError_NULL -} - -func (m *RpcObjectSearchSubscribeResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcObjectIdsSubscribe struct { -} - -func (m *RpcObjectIdsSubscribe) Reset() { *m = RpcObjectIdsSubscribe{} } -func (m *RpcObjectIdsSubscribe) String() string { return proto.CompactTextString(m) } -func (*RpcObjectIdsSubscribe) ProtoMessage() {} -func (*RpcObjectIdsSubscribe) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 12} -} -func (m *RpcObjectIdsSubscribe) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectIdsSubscribe) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectIdsSubscribe.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectIdsSubscribe) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectIdsSubscribe.Merge(m, src) -} -func (m *RpcObjectIdsSubscribe) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectIdsSubscribe) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectIdsSubscribe.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectIdsSubscribe proto.InternalMessageInfo - -type RpcObjectIdsSubscribeRequest struct { - // (optional) subscription identifier - // client can provide some string or middleware will generate it automatically - // if subId is already registered on middleware, the new query will replace previous subscription - SubId string `protobuf:"bytes,1,opt,name=subId,proto3" json:"subId,omitempty"` - // ids for subscribe - Ids []string `protobuf:"bytes,2,rep,name=ids,proto3" json:"ids,omitempty"` - // sorts - // (required) needed keys in details for return, for object fields mw will return (and subscribe) objects as dependent - Keys []string `protobuf:"bytes,3,rep,name=keys,proto3" json:"keys,omitempty"` - IgnoreWorkspace string `protobuf:"bytes,11,opt,name=ignoreWorkspace,proto3" json:"ignoreWorkspace,omitempty"` -} - -func (m *RpcObjectIdsSubscribeRequest) Reset() { *m = RpcObjectIdsSubscribeRequest{} } -func (m *RpcObjectIdsSubscribeRequest) String() string { return proto.CompactTextString(m) } -func (*RpcObjectIdsSubscribeRequest) ProtoMessage() {} -func (*RpcObjectIdsSubscribeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 12, 0} -} -func (m *RpcObjectIdsSubscribeRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectIdsSubscribeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectIdsSubscribeRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectIdsSubscribeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectIdsSubscribeRequest.Merge(m, src) -} -func (m *RpcObjectIdsSubscribeRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectIdsSubscribeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectIdsSubscribeRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectIdsSubscribeRequest proto.InternalMessageInfo - -func (m *RpcObjectIdsSubscribeRequest) GetSubId() string { - if m != nil { - return m.SubId - } - return "" -} - -func (m *RpcObjectIdsSubscribeRequest) GetIds() []string { - if m != nil { - return m.Ids - } - return nil -} - -func (m *RpcObjectIdsSubscribeRequest) GetKeys() []string { - if m != nil { - return m.Keys - } - return nil -} - -func (m *RpcObjectIdsSubscribeRequest) GetIgnoreWorkspace() string { - if m != nil { - return m.IgnoreWorkspace - } - return "" -} - -type RpcObjectIdsSubscribeResponse struct { - Error *RpcObjectIdsSubscribeResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Records []*types.Struct `protobuf:"bytes,2,rep,name=records,proto3" json:"records,omitempty"` - Dependencies []*types.Struct `protobuf:"bytes,3,rep,name=dependencies,proto3" json:"dependencies,omitempty"` - SubId string `protobuf:"bytes,4,opt,name=subId,proto3" json:"subId,omitempty"` -} - -func (m *RpcObjectIdsSubscribeResponse) Reset() { *m = RpcObjectIdsSubscribeResponse{} } -func (m *RpcObjectIdsSubscribeResponse) String() string { return proto.CompactTextString(m) } -func (*RpcObjectIdsSubscribeResponse) ProtoMessage() {} -func (*RpcObjectIdsSubscribeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 12, 1} -} -func (m *RpcObjectIdsSubscribeResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectIdsSubscribeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectIdsSubscribeResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectIdsSubscribeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectIdsSubscribeResponse.Merge(m, src) -} -func (m *RpcObjectIdsSubscribeResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectIdsSubscribeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectIdsSubscribeResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectIdsSubscribeResponse proto.InternalMessageInfo - -func (m *RpcObjectIdsSubscribeResponse) GetError() *RpcObjectIdsSubscribeResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcObjectIdsSubscribeResponse) GetRecords() []*types.Struct { - if m != nil { - return m.Records - } - return nil -} - -func (m *RpcObjectIdsSubscribeResponse) GetDependencies() []*types.Struct { - if m != nil { - return m.Dependencies - } - return nil -} - -func (m *RpcObjectIdsSubscribeResponse) GetSubId() string { - if m != nil { - return m.SubId - } - return "" -} - -type RpcObjectIdsSubscribeResponseError struct { - Code RpcObjectIdsSubscribeResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectIdsSubscribeResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcObjectIdsSubscribeResponseError) Reset() { *m = RpcObjectIdsSubscribeResponseError{} } -func (m *RpcObjectIdsSubscribeResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcObjectIdsSubscribeResponseError) ProtoMessage() {} -func (*RpcObjectIdsSubscribeResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 12, 1, 0} -} -func (m *RpcObjectIdsSubscribeResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectIdsSubscribeResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectIdsSubscribeResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectIdsSubscribeResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectIdsSubscribeResponseError.Merge(m, src) -} -func (m *RpcObjectIdsSubscribeResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectIdsSubscribeResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectIdsSubscribeResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectIdsSubscribeResponseError proto.InternalMessageInfo - -func (m *RpcObjectIdsSubscribeResponseError) GetCode() RpcObjectIdsSubscribeResponseErrorCode { - if m != nil { - return m.Code - } - return RpcObjectIdsSubscribeResponseError_NULL -} - -func (m *RpcObjectIdsSubscribeResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcObjectSearchUnsubscribe struct { -} - -func (m *RpcObjectSearchUnsubscribe) Reset() { *m = RpcObjectSearchUnsubscribe{} } -func (m *RpcObjectSearchUnsubscribe) String() string { return proto.CompactTextString(m) } -func (*RpcObjectSearchUnsubscribe) ProtoMessage() {} -func (*RpcObjectSearchUnsubscribe) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 13} -} -func (m *RpcObjectSearchUnsubscribe) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectSearchUnsubscribe) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectSearchUnsubscribe.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectSearchUnsubscribe) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectSearchUnsubscribe.Merge(m, src) -} -func (m *RpcObjectSearchUnsubscribe) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectSearchUnsubscribe) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectSearchUnsubscribe.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectSearchUnsubscribe proto.InternalMessageInfo - -type RpcObjectSearchUnsubscribeRequest struct { - SubIds []string `protobuf:"bytes,1,rep,name=subIds,proto3" json:"subIds,omitempty"` -} - -func (m *RpcObjectSearchUnsubscribeRequest) Reset() { *m = RpcObjectSearchUnsubscribeRequest{} } -func (m *RpcObjectSearchUnsubscribeRequest) String() string { return proto.CompactTextString(m) } -func (*RpcObjectSearchUnsubscribeRequest) ProtoMessage() {} -func (*RpcObjectSearchUnsubscribeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 13, 0} -} -func (m *RpcObjectSearchUnsubscribeRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectSearchUnsubscribeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectSearchUnsubscribeRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectSearchUnsubscribeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectSearchUnsubscribeRequest.Merge(m, src) -} -func (m *RpcObjectSearchUnsubscribeRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectSearchUnsubscribeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectSearchUnsubscribeRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectSearchUnsubscribeRequest proto.InternalMessageInfo - -func (m *RpcObjectSearchUnsubscribeRequest) GetSubIds() []string { - if m != nil { - return m.SubIds - } - return nil -} - -type RpcObjectSearchUnsubscribeResponse struct { - Error *RpcObjectSearchUnsubscribeResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` -} - -func (m *RpcObjectSearchUnsubscribeResponse) Reset() { *m = RpcObjectSearchUnsubscribeResponse{} } -func (m *RpcObjectSearchUnsubscribeResponse) String() string { return proto.CompactTextString(m) } -func (*RpcObjectSearchUnsubscribeResponse) ProtoMessage() {} -func (*RpcObjectSearchUnsubscribeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 13, 1} -} -func (m *RpcObjectSearchUnsubscribeResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectSearchUnsubscribeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectSearchUnsubscribeResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectSearchUnsubscribeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectSearchUnsubscribeResponse.Merge(m, src) -} -func (m *RpcObjectSearchUnsubscribeResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectSearchUnsubscribeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectSearchUnsubscribeResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectSearchUnsubscribeResponse proto.InternalMessageInfo - -func (m *RpcObjectSearchUnsubscribeResponse) GetError() *RpcObjectSearchUnsubscribeResponseError { - if m != nil { - return m.Error - } - return nil -} - -type RpcObjectSearchUnsubscribeResponseError struct { - Code RpcObjectSearchUnsubscribeResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectSearchUnsubscribeResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcObjectSearchUnsubscribeResponseError) Reset() { - *m = RpcObjectSearchUnsubscribeResponseError{} -} -func (m *RpcObjectSearchUnsubscribeResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcObjectSearchUnsubscribeResponseError) ProtoMessage() {} -func (*RpcObjectSearchUnsubscribeResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 13, 1, 0} -} -func (m *RpcObjectSearchUnsubscribeResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectSearchUnsubscribeResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectSearchUnsubscribeResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectSearchUnsubscribeResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectSearchUnsubscribeResponseError.Merge(m, src) -} -func (m *RpcObjectSearchUnsubscribeResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectSearchUnsubscribeResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectSearchUnsubscribeResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectSearchUnsubscribeResponseError proto.InternalMessageInfo - -func (m *RpcObjectSearchUnsubscribeResponseError) GetCode() RpcObjectSearchUnsubscribeResponseErrorCode { - if m != nil { - return m.Code - } - return RpcObjectSearchUnsubscribeResponseError_NULL -} - -func (m *RpcObjectSearchUnsubscribeResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcObjectSetLayout struct { -} - -func (m *RpcObjectSetLayout) Reset() { *m = RpcObjectSetLayout{} } -func (m *RpcObjectSetLayout) String() string { return proto.CompactTextString(m) } -func (*RpcObjectSetLayout) ProtoMessage() {} -func (*RpcObjectSetLayout) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 14} -} -func (m *RpcObjectSetLayout) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectSetLayout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectSetLayout.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectSetLayout) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectSetLayout.Merge(m, src) -} -func (m *RpcObjectSetLayout) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectSetLayout) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectSetLayout.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectSetLayout proto.InternalMessageInfo - -type RpcObjectSetLayoutRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - Layout model.ObjectTypeLayout `protobuf:"varint,3,opt,name=layout,proto3,enum=anytype.model.ObjectTypeLayout" json:"layout,omitempty"` -} - -func (m *RpcObjectSetLayoutRequest) Reset() { *m = RpcObjectSetLayoutRequest{} } -func (m *RpcObjectSetLayoutRequest) String() string { return proto.CompactTextString(m) } -func (*RpcObjectSetLayoutRequest) ProtoMessage() {} -func (*RpcObjectSetLayoutRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 14, 0} -} -func (m *RpcObjectSetLayoutRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectSetLayoutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectSetLayoutRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectSetLayoutRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectSetLayoutRequest.Merge(m, src) -} -func (m *RpcObjectSetLayoutRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectSetLayoutRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectSetLayoutRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectSetLayoutRequest proto.InternalMessageInfo - -func (m *RpcObjectSetLayoutRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcObjectSetLayoutRequest) GetLayout() model.ObjectTypeLayout { - if m != nil { - return m.Layout - } - return model.ObjectType_basic -} - -type RpcObjectSetLayoutResponse struct { - Error *RpcObjectSetLayoutResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcObjectSetLayoutResponse) Reset() { *m = RpcObjectSetLayoutResponse{} } -func (m *RpcObjectSetLayoutResponse) String() string { return proto.CompactTextString(m) } -func (*RpcObjectSetLayoutResponse) ProtoMessage() {} -func (*RpcObjectSetLayoutResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 14, 1} -} -func (m *RpcObjectSetLayoutResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectSetLayoutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectSetLayoutResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectSetLayoutResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectSetLayoutResponse.Merge(m, src) -} -func (m *RpcObjectSetLayoutResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectSetLayoutResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectSetLayoutResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectSetLayoutResponse proto.InternalMessageInfo - -func (m *RpcObjectSetLayoutResponse) GetError() *RpcObjectSetLayoutResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcObjectSetLayoutResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcObjectSetLayoutResponseError struct { - Code RpcObjectSetLayoutResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectSetLayoutResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcObjectSetLayoutResponseError) Reset() { *m = RpcObjectSetLayoutResponseError{} } -func (m *RpcObjectSetLayoutResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcObjectSetLayoutResponseError) ProtoMessage() {} -func (*RpcObjectSetLayoutResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 14, 1, 0} -} -func (m *RpcObjectSetLayoutResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectSetLayoutResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectSetLayoutResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectSetLayoutResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectSetLayoutResponseError.Merge(m, src) -} -func (m *RpcObjectSetLayoutResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectSetLayoutResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectSetLayoutResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectSetLayoutResponseError proto.InternalMessageInfo - -func (m *RpcObjectSetLayoutResponseError) GetCode() RpcObjectSetLayoutResponseErrorCode { - if m != nil { - return m.Code - } - return RpcObjectSetLayoutResponseError_NULL -} - -func (m *RpcObjectSetLayoutResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcObjectSetIsFavorite struct { -} - -func (m *RpcObjectSetIsFavorite) Reset() { *m = RpcObjectSetIsFavorite{} } -func (m *RpcObjectSetIsFavorite) String() string { return proto.CompactTextString(m) } -func (*RpcObjectSetIsFavorite) ProtoMessage() {} -func (*RpcObjectSetIsFavorite) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 15} -} -func (m *RpcObjectSetIsFavorite) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectSetIsFavorite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectSetIsFavorite.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectSetIsFavorite) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectSetIsFavorite.Merge(m, src) -} -func (m *RpcObjectSetIsFavorite) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectSetIsFavorite) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectSetIsFavorite.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectSetIsFavorite proto.InternalMessageInfo - -type RpcObjectSetIsFavoriteRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - IsFavorite bool `protobuf:"varint,2,opt,name=isFavorite,proto3" json:"isFavorite,omitempty"` -} - -func (m *RpcObjectSetIsFavoriteRequest) Reset() { *m = RpcObjectSetIsFavoriteRequest{} } -func (m *RpcObjectSetIsFavoriteRequest) String() string { return proto.CompactTextString(m) } -func (*RpcObjectSetIsFavoriteRequest) ProtoMessage() {} -func (*RpcObjectSetIsFavoriteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 15, 0} -} -func (m *RpcObjectSetIsFavoriteRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectSetIsFavoriteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectSetIsFavoriteRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectSetIsFavoriteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectSetIsFavoriteRequest.Merge(m, src) -} -func (m *RpcObjectSetIsFavoriteRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectSetIsFavoriteRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectSetIsFavoriteRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectSetIsFavoriteRequest proto.InternalMessageInfo - -func (m *RpcObjectSetIsFavoriteRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcObjectSetIsFavoriteRequest) GetIsFavorite() bool { - if m != nil { - return m.IsFavorite - } - return false -} - -type RpcObjectSetIsFavoriteResponse struct { - Error *RpcObjectSetIsFavoriteResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcObjectSetIsFavoriteResponse) Reset() { *m = RpcObjectSetIsFavoriteResponse{} } -func (m *RpcObjectSetIsFavoriteResponse) String() string { return proto.CompactTextString(m) } -func (*RpcObjectSetIsFavoriteResponse) ProtoMessage() {} -func (*RpcObjectSetIsFavoriteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 15, 1} -} -func (m *RpcObjectSetIsFavoriteResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectSetIsFavoriteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectSetIsFavoriteResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectSetIsFavoriteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectSetIsFavoriteResponse.Merge(m, src) -} -func (m *RpcObjectSetIsFavoriteResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectSetIsFavoriteResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectSetIsFavoriteResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectSetIsFavoriteResponse proto.InternalMessageInfo - -func (m *RpcObjectSetIsFavoriteResponse) GetError() *RpcObjectSetIsFavoriteResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcObjectSetIsFavoriteResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcObjectSetIsFavoriteResponseError struct { - Code RpcObjectSetIsFavoriteResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectSetIsFavoriteResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcObjectSetIsFavoriteResponseError) Reset() { *m = RpcObjectSetIsFavoriteResponseError{} } -func (m *RpcObjectSetIsFavoriteResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcObjectSetIsFavoriteResponseError) ProtoMessage() {} -func (*RpcObjectSetIsFavoriteResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 15, 1, 0} -} -func (m *RpcObjectSetIsFavoriteResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectSetIsFavoriteResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectSetIsFavoriteResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectSetIsFavoriteResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectSetIsFavoriteResponseError.Merge(m, src) -} -func (m *RpcObjectSetIsFavoriteResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectSetIsFavoriteResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectSetIsFavoriteResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectSetIsFavoriteResponseError proto.InternalMessageInfo - -func (m *RpcObjectSetIsFavoriteResponseError) GetCode() RpcObjectSetIsFavoriteResponseErrorCode { - if m != nil { - return m.Code - } - return RpcObjectSetIsFavoriteResponseError_NULL -} - -func (m *RpcObjectSetIsFavoriteResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcObjectSetIsArchived struct { -} - -func (m *RpcObjectSetIsArchived) Reset() { *m = RpcObjectSetIsArchived{} } -func (m *RpcObjectSetIsArchived) String() string { return proto.CompactTextString(m) } -func (*RpcObjectSetIsArchived) ProtoMessage() {} -func (*RpcObjectSetIsArchived) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 16} -} -func (m *RpcObjectSetIsArchived) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectSetIsArchived) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectSetIsArchived.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectSetIsArchived) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectSetIsArchived.Merge(m, src) -} -func (m *RpcObjectSetIsArchived) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectSetIsArchived) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectSetIsArchived.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectSetIsArchived proto.InternalMessageInfo - -type RpcObjectSetIsArchivedRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - IsArchived bool `protobuf:"varint,2,opt,name=isArchived,proto3" json:"isArchived,omitempty"` -} - -func (m *RpcObjectSetIsArchivedRequest) Reset() { *m = RpcObjectSetIsArchivedRequest{} } -func (m *RpcObjectSetIsArchivedRequest) String() string { return proto.CompactTextString(m) } -func (*RpcObjectSetIsArchivedRequest) ProtoMessage() {} -func (*RpcObjectSetIsArchivedRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 16, 0} -} -func (m *RpcObjectSetIsArchivedRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectSetIsArchivedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectSetIsArchivedRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectSetIsArchivedRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectSetIsArchivedRequest.Merge(m, src) -} -func (m *RpcObjectSetIsArchivedRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectSetIsArchivedRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectSetIsArchivedRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectSetIsArchivedRequest proto.InternalMessageInfo - -func (m *RpcObjectSetIsArchivedRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcObjectSetIsArchivedRequest) GetIsArchived() bool { - if m != nil { - return m.IsArchived - } - return false -} - -type RpcObjectSetIsArchivedResponse struct { - Error *RpcObjectSetIsArchivedResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcObjectSetIsArchivedResponse) Reset() { *m = RpcObjectSetIsArchivedResponse{} } -func (m *RpcObjectSetIsArchivedResponse) String() string { return proto.CompactTextString(m) } -func (*RpcObjectSetIsArchivedResponse) ProtoMessage() {} -func (*RpcObjectSetIsArchivedResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 16, 1} -} -func (m *RpcObjectSetIsArchivedResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectSetIsArchivedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectSetIsArchivedResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectSetIsArchivedResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectSetIsArchivedResponse.Merge(m, src) -} -func (m *RpcObjectSetIsArchivedResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectSetIsArchivedResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectSetIsArchivedResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectSetIsArchivedResponse proto.InternalMessageInfo - -func (m *RpcObjectSetIsArchivedResponse) GetError() *RpcObjectSetIsArchivedResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcObjectSetIsArchivedResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcObjectSetIsArchivedResponseError struct { - Code RpcObjectSetIsArchivedResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectSetIsArchivedResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcObjectSetIsArchivedResponseError) Reset() { *m = RpcObjectSetIsArchivedResponseError{} } -func (m *RpcObjectSetIsArchivedResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcObjectSetIsArchivedResponseError) ProtoMessage() {} -func (*RpcObjectSetIsArchivedResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 16, 1, 0} -} -func (m *RpcObjectSetIsArchivedResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectSetIsArchivedResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectSetIsArchivedResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectSetIsArchivedResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectSetIsArchivedResponseError.Merge(m, src) -} -func (m *RpcObjectSetIsArchivedResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectSetIsArchivedResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectSetIsArchivedResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectSetIsArchivedResponseError proto.InternalMessageInfo - -func (m *RpcObjectSetIsArchivedResponseError) GetCode() RpcObjectSetIsArchivedResponseErrorCode { - if m != nil { - return m.Code - } - return RpcObjectSetIsArchivedResponseError_NULL -} - -func (m *RpcObjectSetIsArchivedResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcObjectFeaturedRelation struct { -} - -func (m *RpcObjectFeaturedRelation) Reset() { *m = RpcObjectFeaturedRelation{} } -func (m *RpcObjectFeaturedRelation) String() string { return proto.CompactTextString(m) } -func (*RpcObjectFeaturedRelation) ProtoMessage() {} -func (*RpcObjectFeaturedRelation) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 17} -} -func (m *RpcObjectFeaturedRelation) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectFeaturedRelation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectFeaturedRelation.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectFeaturedRelation) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectFeaturedRelation.Merge(m, src) -} -func (m *RpcObjectFeaturedRelation) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectFeaturedRelation) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectFeaturedRelation.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectFeaturedRelation proto.InternalMessageInfo - -type RpcObjectFeaturedRelationAdd struct { -} - -func (m *RpcObjectFeaturedRelationAdd) Reset() { *m = RpcObjectFeaturedRelationAdd{} } -func (m *RpcObjectFeaturedRelationAdd) String() string { return proto.CompactTextString(m) } -func (*RpcObjectFeaturedRelationAdd) ProtoMessage() {} -func (*RpcObjectFeaturedRelationAdd) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 17, 0} -} -func (m *RpcObjectFeaturedRelationAdd) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectFeaturedRelationAdd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectFeaturedRelationAdd.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectFeaturedRelationAdd) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectFeaturedRelationAdd.Merge(m, src) -} -func (m *RpcObjectFeaturedRelationAdd) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectFeaturedRelationAdd) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectFeaturedRelationAdd.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectFeaturedRelationAdd proto.InternalMessageInfo - -type RpcObjectFeaturedRelationAddRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - Relations []string `protobuf:"bytes,2,rep,name=relations,proto3" json:"relations,omitempty"` -} - -func (m *RpcObjectFeaturedRelationAddRequest) Reset() { *m = RpcObjectFeaturedRelationAddRequest{} } -func (m *RpcObjectFeaturedRelationAddRequest) String() string { return proto.CompactTextString(m) } -func (*RpcObjectFeaturedRelationAddRequest) ProtoMessage() {} -func (*RpcObjectFeaturedRelationAddRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 17, 0, 0} -} -func (m *RpcObjectFeaturedRelationAddRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectFeaturedRelationAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectFeaturedRelationAddRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectFeaturedRelationAddRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectFeaturedRelationAddRequest.Merge(m, src) -} -func (m *RpcObjectFeaturedRelationAddRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectFeaturedRelationAddRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectFeaturedRelationAddRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectFeaturedRelationAddRequest proto.InternalMessageInfo - -func (m *RpcObjectFeaturedRelationAddRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcObjectFeaturedRelationAddRequest) GetRelations() []string { - if m != nil { - return m.Relations - } - return nil -} - -type RpcObjectFeaturedRelationAddResponse struct { - Error *RpcObjectFeaturedRelationAddResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcObjectFeaturedRelationAddResponse) Reset() { *m = RpcObjectFeaturedRelationAddResponse{} } -func (m *RpcObjectFeaturedRelationAddResponse) String() string { return proto.CompactTextString(m) } -func (*RpcObjectFeaturedRelationAddResponse) ProtoMessage() {} -func (*RpcObjectFeaturedRelationAddResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 17, 0, 1} -} -func (m *RpcObjectFeaturedRelationAddResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectFeaturedRelationAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectFeaturedRelationAddResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectFeaturedRelationAddResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectFeaturedRelationAddResponse.Merge(m, src) -} -func (m *RpcObjectFeaturedRelationAddResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectFeaturedRelationAddResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectFeaturedRelationAddResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectFeaturedRelationAddResponse proto.InternalMessageInfo - -func (m *RpcObjectFeaturedRelationAddResponse) GetError() *RpcObjectFeaturedRelationAddResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcObjectFeaturedRelationAddResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcObjectFeaturedRelationAddResponseError struct { - Code RpcObjectFeaturedRelationAddResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectFeaturedRelationAddResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcObjectFeaturedRelationAddResponseError) Reset() { - *m = RpcObjectFeaturedRelationAddResponseError{} -} -func (m *RpcObjectFeaturedRelationAddResponseError) String() string { - return proto.CompactTextString(m) -} -func (*RpcObjectFeaturedRelationAddResponseError) ProtoMessage() {} -func (*RpcObjectFeaturedRelationAddResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 17, 0, 1, 0} -} -func (m *RpcObjectFeaturedRelationAddResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectFeaturedRelationAddResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectFeaturedRelationAddResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectFeaturedRelationAddResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectFeaturedRelationAddResponseError.Merge(m, src) -} -func (m *RpcObjectFeaturedRelationAddResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectFeaturedRelationAddResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectFeaturedRelationAddResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectFeaturedRelationAddResponseError proto.InternalMessageInfo - -func (m *RpcObjectFeaturedRelationAddResponseError) GetCode() RpcObjectFeaturedRelationAddResponseErrorCode { - if m != nil { - return m.Code - } - return RpcObjectFeaturedRelationAddResponseError_NULL -} - -func (m *RpcObjectFeaturedRelationAddResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcObjectFeaturedRelationRemove struct { -} - -func (m *RpcObjectFeaturedRelationRemove) Reset() { *m = RpcObjectFeaturedRelationRemove{} } -func (m *RpcObjectFeaturedRelationRemove) String() string { return proto.CompactTextString(m) } -func (*RpcObjectFeaturedRelationRemove) ProtoMessage() {} -func (*RpcObjectFeaturedRelationRemove) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 17, 1} -} -func (m *RpcObjectFeaturedRelationRemove) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectFeaturedRelationRemove) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectFeaturedRelationRemove.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectFeaturedRelationRemove) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectFeaturedRelationRemove.Merge(m, src) -} -func (m *RpcObjectFeaturedRelationRemove) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectFeaturedRelationRemove) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectFeaturedRelationRemove.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectFeaturedRelationRemove proto.InternalMessageInfo - -type RpcObjectFeaturedRelationRemoveRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - Relations []string `protobuf:"bytes,2,rep,name=relations,proto3" json:"relations,omitempty"` -} - -func (m *RpcObjectFeaturedRelationRemoveRequest) Reset() { - *m = RpcObjectFeaturedRelationRemoveRequest{} -} -func (m *RpcObjectFeaturedRelationRemoveRequest) String() string { return proto.CompactTextString(m) } -func (*RpcObjectFeaturedRelationRemoveRequest) ProtoMessage() {} -func (*RpcObjectFeaturedRelationRemoveRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 17, 1, 0} -} -func (m *RpcObjectFeaturedRelationRemoveRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectFeaturedRelationRemoveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectFeaturedRelationRemoveRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectFeaturedRelationRemoveRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectFeaturedRelationRemoveRequest.Merge(m, src) -} -func (m *RpcObjectFeaturedRelationRemoveRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectFeaturedRelationRemoveRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectFeaturedRelationRemoveRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectFeaturedRelationRemoveRequest proto.InternalMessageInfo - -func (m *RpcObjectFeaturedRelationRemoveRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcObjectFeaturedRelationRemoveRequest) GetRelations() []string { - if m != nil { - return m.Relations - } - return nil -} - -type RpcObjectFeaturedRelationRemoveResponse struct { - Error *RpcObjectFeaturedRelationRemoveResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcObjectFeaturedRelationRemoveResponse) Reset() { - *m = RpcObjectFeaturedRelationRemoveResponse{} -} -func (m *RpcObjectFeaturedRelationRemoveResponse) String() string { return proto.CompactTextString(m) } -func (*RpcObjectFeaturedRelationRemoveResponse) ProtoMessage() {} -func (*RpcObjectFeaturedRelationRemoveResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 17, 1, 1} -} -func (m *RpcObjectFeaturedRelationRemoveResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectFeaturedRelationRemoveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectFeaturedRelationRemoveResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectFeaturedRelationRemoveResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectFeaturedRelationRemoveResponse.Merge(m, src) -} -func (m *RpcObjectFeaturedRelationRemoveResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectFeaturedRelationRemoveResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectFeaturedRelationRemoveResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectFeaturedRelationRemoveResponse proto.InternalMessageInfo - -func (m *RpcObjectFeaturedRelationRemoveResponse) GetError() *RpcObjectFeaturedRelationRemoveResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcObjectFeaturedRelationRemoveResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcObjectFeaturedRelationRemoveResponseError struct { - Code RpcObjectFeaturedRelationRemoveResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectFeaturedRelationRemoveResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcObjectFeaturedRelationRemoveResponseError) Reset() { - *m = RpcObjectFeaturedRelationRemoveResponseError{} -} -func (m *RpcObjectFeaturedRelationRemoveResponseError) String() string { - return proto.CompactTextString(m) -} -func (*RpcObjectFeaturedRelationRemoveResponseError) ProtoMessage() {} -func (*RpcObjectFeaturedRelationRemoveResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 17, 1, 1, 0} -} -func (m *RpcObjectFeaturedRelationRemoveResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectFeaturedRelationRemoveResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectFeaturedRelationRemoveResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectFeaturedRelationRemoveResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectFeaturedRelationRemoveResponseError.Merge(m, src) -} -func (m *RpcObjectFeaturedRelationRemoveResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectFeaturedRelationRemoveResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectFeaturedRelationRemoveResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectFeaturedRelationRemoveResponseError proto.InternalMessageInfo - -func (m *RpcObjectFeaturedRelationRemoveResponseError) GetCode() RpcObjectFeaturedRelationRemoveResponseErrorCode { - if m != nil { - return m.Code - } - return RpcObjectFeaturedRelationRemoveResponseError_NULL -} - -func (m *RpcObjectFeaturedRelationRemoveResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcObjectToSet struct { -} - -func (m *RpcObjectToSet) Reset() { *m = RpcObjectToSet{} } -func (m *RpcObjectToSet) String() string { return proto.CompactTextString(m) } -func (*RpcObjectToSet) ProtoMessage() {} -func (*RpcObjectToSet) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 18} -} -func (m *RpcObjectToSet) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectToSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectToSet.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectToSet) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectToSet.Merge(m, src) -} -func (m *RpcObjectToSet) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectToSet) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectToSet.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectToSet proto.InternalMessageInfo - -type RpcObjectToSetRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - Source []string `protobuf:"bytes,2,rep,name=source,proto3" json:"source,omitempty"` -} - -func (m *RpcObjectToSetRequest) Reset() { *m = RpcObjectToSetRequest{} } -func (m *RpcObjectToSetRequest) String() string { return proto.CompactTextString(m) } -func (*RpcObjectToSetRequest) ProtoMessage() {} -func (*RpcObjectToSetRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 18, 0} -} -func (m *RpcObjectToSetRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectToSetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectToSetRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectToSetRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectToSetRequest.Merge(m, src) -} -func (m *RpcObjectToSetRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectToSetRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectToSetRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectToSetRequest proto.InternalMessageInfo - -func (m *RpcObjectToSetRequest) GetContextId() string { - if m != nil { - return m.ContextId - } - return "" -} - -func (m *RpcObjectToSetRequest) GetSource() []string { - if m != nil { - return m.Source - } - return nil -} - -type RpcObjectToSetResponse struct { - Error *RpcObjectToSetResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - SetId string `protobuf:"bytes,2,opt,name=setId,proto3" json:"setId,omitempty"` -} - -func (m *RpcObjectToSetResponse) Reset() { *m = RpcObjectToSetResponse{} } -func (m *RpcObjectToSetResponse) String() string { return proto.CompactTextString(m) } -func (*RpcObjectToSetResponse) ProtoMessage() {} -func (*RpcObjectToSetResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 18, 1} -} -func (m *RpcObjectToSetResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectToSetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectToSetResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectToSetResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectToSetResponse.Merge(m, src) -} -func (m *RpcObjectToSetResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectToSetResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectToSetResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectToSetResponse proto.InternalMessageInfo - -func (m *RpcObjectToSetResponse) GetError() *RpcObjectToSetResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcObjectToSetResponse) GetSetId() string { - if m != nil { - return m.SetId - } - return "" -} - -type RpcObjectToSetResponseError struct { - Code RpcObjectToSetResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectToSetResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcObjectToSetResponseError) Reset() { *m = RpcObjectToSetResponseError{} } -func (m *RpcObjectToSetResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcObjectToSetResponseError) ProtoMessage() {} -func (*RpcObjectToSetResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 18, 1, 0} -} -func (m *RpcObjectToSetResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectToSetResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectToSetResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectToSetResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectToSetResponseError.Merge(m, src) -} -func (m *RpcObjectToSetResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectToSetResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectToSetResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectToSetResponseError proto.InternalMessageInfo - -func (m *RpcObjectToSetResponseError) GetCode() RpcObjectToSetResponseErrorCode { - if m != nil { - return m.Code - } - return RpcObjectToSetResponseError_NULL -} - -func (m *RpcObjectToSetResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcObjectList struct { -} - -func (m *RpcObjectList) Reset() { *m = RpcObjectList{} } -func (m *RpcObjectList) String() string { return proto.CompactTextString(m) } -func (*RpcObjectList) ProtoMessage() {} -func (*RpcObjectList) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 25} -} -func (m *RpcObjectList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectList.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectList) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectList.Merge(m, src) -} -func (m *RpcObjectList) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectList) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectList.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectList proto.InternalMessageInfo - -type RpcObjectListDuplicate struct { -} - -func (m *RpcObjectListDuplicate) Reset() { *m = RpcObjectListDuplicate{} } -func (m *RpcObjectListDuplicate) String() string { return proto.CompactTextString(m) } -func (*RpcObjectListDuplicate) ProtoMessage() {} -func (*RpcObjectListDuplicate) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 0} -} -func (m *RpcObjectListDuplicate) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectListDuplicate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectListDuplicate.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectListDuplicate) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectListDuplicate.Merge(m, src) -} -func (m *RpcObjectListDuplicate) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectListDuplicate) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectListDuplicate.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectListDuplicate proto.InternalMessageInfo - -type RpcObjectListDuplicateRequest struct { - ObjectIds []string `protobuf:"bytes,1,rep,name=objectIds,proto3" json:"objectIds,omitempty"` -} - -func (m *RpcObjectListDuplicateRequest) Reset() { *m = RpcObjectListDuplicateRequest{} } -func (m *RpcObjectListDuplicateRequest) String() string { return proto.CompactTextString(m) } -func (*RpcObjectListDuplicateRequest) ProtoMessage() {} -func (*RpcObjectListDuplicateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 0, 0} -} -func (m *RpcObjectListDuplicateRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectListDuplicateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectListDuplicateRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectListDuplicateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectListDuplicateRequest.Merge(m, src) -} -func (m *RpcObjectListDuplicateRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectListDuplicateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectListDuplicateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectListDuplicateRequest proto.InternalMessageInfo - -func (m *RpcObjectListDuplicateRequest) GetObjectIds() []string { - if m != nil { - return m.ObjectIds - } - return nil -} - -type RpcObjectListDuplicateResponse struct { - Error *RpcObjectListDuplicateResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Ids []string `protobuf:"bytes,2,rep,name=ids,proto3" json:"ids,omitempty"` -} - -func (m *RpcObjectListDuplicateResponse) Reset() { *m = RpcObjectListDuplicateResponse{} } -func (m *RpcObjectListDuplicateResponse) String() string { return proto.CompactTextString(m) } -func (*RpcObjectListDuplicateResponse) ProtoMessage() {} -func (*RpcObjectListDuplicateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 0, 1} -} -func (m *RpcObjectListDuplicateResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectListDuplicateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectListDuplicateResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectListDuplicateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectListDuplicateResponse.Merge(m, src) -} -func (m *RpcObjectListDuplicateResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectListDuplicateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectListDuplicateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectListDuplicateResponse proto.InternalMessageInfo - -func (m *RpcObjectListDuplicateResponse) GetError() *RpcObjectListDuplicateResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcObjectListDuplicateResponse) GetIds() []string { - if m != nil { - return m.Ids - } - return nil -} - -type RpcObjectListDuplicateResponseError struct { - Code RpcObjectListDuplicateResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectListDuplicateResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcObjectListDuplicateResponseError) Reset() { *m = RpcObjectListDuplicateResponseError{} } -func (m *RpcObjectListDuplicateResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcObjectListDuplicateResponseError) ProtoMessage() {} -func (*RpcObjectListDuplicateResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 0, 1, 0} -} -func (m *RpcObjectListDuplicateResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectListDuplicateResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectListDuplicateResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectListDuplicateResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectListDuplicateResponseError.Merge(m, src) -} -func (m *RpcObjectListDuplicateResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectListDuplicateResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectListDuplicateResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectListDuplicateResponseError proto.InternalMessageInfo - -func (m *RpcObjectListDuplicateResponseError) GetCode() RpcObjectListDuplicateResponseErrorCode { - if m != nil { - return m.Code - } - return RpcObjectListDuplicateResponseError_NULL -} - -func (m *RpcObjectListDuplicateResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcObjectListDelete struct { -} - -func (m *RpcObjectListDelete) Reset() { *m = RpcObjectListDelete{} } -func (m *RpcObjectListDelete) String() string { return proto.CompactTextString(m) } -func (*RpcObjectListDelete) ProtoMessage() {} -func (*RpcObjectListDelete) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 1} -} -func (m *RpcObjectListDelete) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectListDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectListDelete.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectListDelete) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectListDelete.Merge(m, src) -} -func (m *RpcObjectListDelete) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectListDelete) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectListDelete.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectListDelete proto.InternalMessageInfo - -// Deletes the object, keys from the local store and unsubscribe from remote changes. Also offloads all orphan files -type RpcObjectListDeleteRequest struct { - ObjectIds []string `protobuf:"bytes,1,rep,name=objectIds,proto3" json:"objectIds,omitempty"` -} - -func (m *RpcObjectListDeleteRequest) Reset() { *m = RpcObjectListDeleteRequest{} } -func (m *RpcObjectListDeleteRequest) String() string { return proto.CompactTextString(m) } -func (*RpcObjectListDeleteRequest) ProtoMessage() {} -func (*RpcObjectListDeleteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 1, 0} -} -func (m *RpcObjectListDeleteRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectListDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectListDeleteRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectListDeleteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectListDeleteRequest.Merge(m, src) -} -func (m *RpcObjectListDeleteRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectListDeleteRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectListDeleteRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectListDeleteRequest proto.InternalMessageInfo - -func (m *RpcObjectListDeleteRequest) GetObjectIds() []string { - if m != nil { - return m.ObjectIds - } - return nil -} - -type RpcObjectListDeleteResponse struct { - Error *RpcObjectListDeleteResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcObjectListDeleteResponse) Reset() { *m = RpcObjectListDeleteResponse{} } -func (m *RpcObjectListDeleteResponse) String() string { return proto.CompactTextString(m) } -func (*RpcObjectListDeleteResponse) ProtoMessage() {} -func (*RpcObjectListDeleteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 1, 1} -} -func (m *RpcObjectListDeleteResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectListDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectListDeleteResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectListDeleteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectListDeleteResponse.Merge(m, src) -} -func (m *RpcObjectListDeleteResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectListDeleteResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectListDeleteResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectListDeleteResponse proto.InternalMessageInfo - -func (m *RpcObjectListDeleteResponse) GetError() *RpcObjectListDeleteResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcObjectListDeleteResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcObjectListDeleteResponseError struct { - Code RpcObjectListDeleteResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectListDeleteResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcObjectListDeleteResponseError) Reset() { *m = RpcObjectListDeleteResponseError{} } -func (m *RpcObjectListDeleteResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcObjectListDeleteResponseError) ProtoMessage() {} -func (*RpcObjectListDeleteResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 1, 1, 0} -} -func (m *RpcObjectListDeleteResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectListDeleteResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectListDeleteResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectListDeleteResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectListDeleteResponseError.Merge(m, src) -} -func (m *RpcObjectListDeleteResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectListDeleteResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectListDeleteResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectListDeleteResponseError proto.InternalMessageInfo - -func (m *RpcObjectListDeleteResponseError) GetCode() RpcObjectListDeleteResponseErrorCode { - if m != nil { - return m.Code - } - return RpcObjectListDeleteResponseError_NULL -} - -func (m *RpcObjectListDeleteResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcObjectListSet struct { -} - -func (m *RpcObjectListSet) Reset() { *m = RpcObjectListSet{} } -func (m *RpcObjectListSet) String() string { return proto.CompactTextString(m) } -func (*RpcObjectListSet) ProtoMessage() {} -func (*RpcObjectListSet) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 2} -} -func (m *RpcObjectListSet) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectListSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectListSet.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectListSet) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectListSet.Merge(m, src) -} -func (m *RpcObjectListSet) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectListSet) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectListSet.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectListSet proto.InternalMessageInfo - -type RpcObjectListSetIsArchived struct { -} - -func (m *RpcObjectListSetIsArchived) Reset() { *m = RpcObjectListSetIsArchived{} } -func (m *RpcObjectListSetIsArchived) String() string { return proto.CompactTextString(m) } -func (*RpcObjectListSetIsArchived) ProtoMessage() {} -func (*RpcObjectListSetIsArchived) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 2, 0} -} -func (m *RpcObjectListSetIsArchived) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectListSetIsArchived) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectListSetIsArchived.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectListSetIsArchived) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectListSetIsArchived.Merge(m, src) -} -func (m *RpcObjectListSetIsArchived) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectListSetIsArchived) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectListSetIsArchived.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectListSetIsArchived proto.InternalMessageInfo - -type RpcObjectListSetIsArchivedRequest struct { - ObjectIds []string `protobuf:"bytes,1,rep,name=objectIds,proto3" json:"objectIds,omitempty"` - IsArchived bool `protobuf:"varint,2,opt,name=isArchived,proto3" json:"isArchived,omitempty"` -} - -func (m *RpcObjectListSetIsArchivedRequest) Reset() { *m = RpcObjectListSetIsArchivedRequest{} } -func (m *RpcObjectListSetIsArchivedRequest) String() string { return proto.CompactTextString(m) } -func (*RpcObjectListSetIsArchivedRequest) ProtoMessage() {} -func (*RpcObjectListSetIsArchivedRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 2, 0, 0} -} -func (m *RpcObjectListSetIsArchivedRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectListSetIsArchivedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectListSetIsArchivedRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectListSetIsArchivedRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectListSetIsArchivedRequest.Merge(m, src) -} -func (m *RpcObjectListSetIsArchivedRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectListSetIsArchivedRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectListSetIsArchivedRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectListSetIsArchivedRequest proto.InternalMessageInfo - -func (m *RpcObjectListSetIsArchivedRequest) GetObjectIds() []string { - if m != nil { - return m.ObjectIds - } - return nil -} - -func (m *RpcObjectListSetIsArchivedRequest) GetIsArchived() bool { - if m != nil { - return m.IsArchived - } - return false -} - -type RpcObjectListSetIsArchivedResponse struct { - Error *RpcObjectListSetIsArchivedResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` -} - -func (m *RpcObjectListSetIsArchivedResponse) Reset() { *m = RpcObjectListSetIsArchivedResponse{} } -func (m *RpcObjectListSetIsArchivedResponse) String() string { return proto.CompactTextString(m) } -func (*RpcObjectListSetIsArchivedResponse) ProtoMessage() {} -func (*RpcObjectListSetIsArchivedResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 2, 0, 1} -} -func (m *RpcObjectListSetIsArchivedResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectListSetIsArchivedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectListSetIsArchivedResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectListSetIsArchivedResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectListSetIsArchivedResponse.Merge(m, src) -} -func (m *RpcObjectListSetIsArchivedResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectListSetIsArchivedResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectListSetIsArchivedResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectListSetIsArchivedResponse proto.InternalMessageInfo - -func (m *RpcObjectListSetIsArchivedResponse) GetError() *RpcObjectListSetIsArchivedResponseError { - if m != nil { - return m.Error - } - return nil -} - -type RpcObjectListSetIsArchivedResponseError struct { - Code RpcObjectListSetIsArchivedResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectListSetIsArchivedResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcObjectListSetIsArchivedResponseError) Reset() { - *m = RpcObjectListSetIsArchivedResponseError{} -} -func (m *RpcObjectListSetIsArchivedResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcObjectListSetIsArchivedResponseError) ProtoMessage() {} -func (*RpcObjectListSetIsArchivedResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 2, 0, 1, 0} -} -func (m *RpcObjectListSetIsArchivedResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectListSetIsArchivedResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectListSetIsArchivedResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectListSetIsArchivedResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectListSetIsArchivedResponseError.Merge(m, src) -} -func (m *RpcObjectListSetIsArchivedResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectListSetIsArchivedResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectListSetIsArchivedResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectListSetIsArchivedResponseError proto.InternalMessageInfo - -func (m *RpcObjectListSetIsArchivedResponseError) GetCode() RpcObjectListSetIsArchivedResponseErrorCode { - if m != nil { - return m.Code - } - return RpcObjectListSetIsArchivedResponseError_NULL -} - -func (m *RpcObjectListSetIsArchivedResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcObjectListSetIsFavorite struct { -} - -func (m *RpcObjectListSetIsFavorite) Reset() { *m = RpcObjectListSetIsFavorite{} } -func (m *RpcObjectListSetIsFavorite) String() string { return proto.CompactTextString(m) } -func (*RpcObjectListSetIsFavorite) ProtoMessage() {} -func (*RpcObjectListSetIsFavorite) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 2, 1} -} -func (m *RpcObjectListSetIsFavorite) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectListSetIsFavorite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectListSetIsFavorite.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectListSetIsFavorite) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectListSetIsFavorite.Merge(m, src) -} -func (m *RpcObjectListSetIsFavorite) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectListSetIsFavorite) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectListSetIsFavorite.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectListSetIsFavorite proto.InternalMessageInfo - -type RpcObjectListSetIsFavoriteRequest struct { - ObjectIds []string `protobuf:"bytes,1,rep,name=objectIds,proto3" json:"objectIds,omitempty"` - IsFavorite bool `protobuf:"varint,2,opt,name=isFavorite,proto3" json:"isFavorite,omitempty"` -} - -func (m *RpcObjectListSetIsFavoriteRequest) Reset() { *m = RpcObjectListSetIsFavoriteRequest{} } -func (m *RpcObjectListSetIsFavoriteRequest) String() string { return proto.CompactTextString(m) } -func (*RpcObjectListSetIsFavoriteRequest) ProtoMessage() {} -func (*RpcObjectListSetIsFavoriteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 2, 1, 0} -} -func (m *RpcObjectListSetIsFavoriteRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectListSetIsFavoriteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectListSetIsFavoriteRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectListSetIsFavoriteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectListSetIsFavoriteRequest.Merge(m, src) -} -func (m *RpcObjectListSetIsFavoriteRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectListSetIsFavoriteRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectListSetIsFavoriteRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectListSetIsFavoriteRequest proto.InternalMessageInfo - -func (m *RpcObjectListSetIsFavoriteRequest) GetObjectIds() []string { - if m != nil { - return m.ObjectIds - } - return nil -} - -func (m *RpcObjectListSetIsFavoriteRequest) GetIsFavorite() bool { - if m != nil { - return m.IsFavorite - } - return false -} - -type RpcObjectListSetIsFavoriteResponse struct { - Error *RpcObjectListSetIsFavoriteResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` -} - -func (m *RpcObjectListSetIsFavoriteResponse) Reset() { *m = RpcObjectListSetIsFavoriteResponse{} } -func (m *RpcObjectListSetIsFavoriteResponse) String() string { return proto.CompactTextString(m) } -func (*RpcObjectListSetIsFavoriteResponse) ProtoMessage() {} -func (*RpcObjectListSetIsFavoriteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 2, 1, 1} -} -func (m *RpcObjectListSetIsFavoriteResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectListSetIsFavoriteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectListSetIsFavoriteResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectListSetIsFavoriteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectListSetIsFavoriteResponse.Merge(m, src) -} -func (m *RpcObjectListSetIsFavoriteResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectListSetIsFavoriteResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectListSetIsFavoriteResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectListSetIsFavoriteResponse proto.InternalMessageInfo - -func (m *RpcObjectListSetIsFavoriteResponse) GetError() *RpcObjectListSetIsFavoriteResponseError { - if m != nil { - return m.Error - } - return nil -} - -type RpcObjectListSetIsFavoriteResponseError struct { - Code RpcObjectListSetIsFavoriteResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectListSetIsFavoriteResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcObjectListSetIsFavoriteResponseError) Reset() { - *m = RpcObjectListSetIsFavoriteResponseError{} -} -func (m *RpcObjectListSetIsFavoriteResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcObjectListSetIsFavoriteResponseError) ProtoMessage() {} -func (*RpcObjectListSetIsFavoriteResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 2, 1, 1, 0} -} -func (m *RpcObjectListSetIsFavoriteResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcObjectListSetIsFavoriteResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcObjectListSetIsFavoriteResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcObjectListSetIsFavoriteResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectListSetIsFavoriteResponseError.Merge(m, src) -} -func (m *RpcObjectListSetIsFavoriteResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcObjectListSetIsFavoriteResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectListSetIsFavoriteResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcObjectListSetIsFavoriteResponseError proto.InternalMessageInfo - -func (m *RpcObjectListSetIsFavoriteResponseError) GetCode() RpcObjectListSetIsFavoriteResponseErrorCode { - if m != nil { - return m.Code - } - return RpcObjectListSetIsFavoriteResponseError_NULL -} - -func (m *RpcObjectListSetIsFavoriteResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcExport struct { -} - -func (m *RpcExport) Reset() { *m = RpcExport{} } -func (m *RpcExport) String() string { return proto.CompactTextString(m) } -func (*RpcExport) ProtoMessage() {} -func (*RpcExport) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 26} -} -func (m *RpcExport) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcExport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcExport.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcExport) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcExport.Merge(m, src) -} -func (m *RpcExport) XXX_Size() int { - return m.Size() -} -func (m *RpcExport) XXX_DiscardUnknown() { - xxx_messageInfo_RpcExport.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcExport proto.InternalMessageInfo - -type RpcExportRequest struct { - // the path where export files will place - Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` - // ids of documents for export, when empty - will export all available docs - DocIds []string `protobuf:"bytes,2,rep,name=docIds,proto3" json:"docIds,omitempty"` - // export format - Format RpcExportFormat `protobuf:"varint,3,opt,name=format,proto3,enum=anytype.RpcExportFormat" json:"format,omitempty"` - // save as zip file - Zip bool `protobuf:"varint,4,opt,name=zip,proto3" json:"zip,omitempty"` - // include all nested - IncludeNested bool `protobuf:"varint,5,opt,name=includeNested,proto3" json:"includeNested,omitempty"` - // include all files - IncludeFiles bool `protobuf:"varint,6,opt,name=includeFiles,proto3" json:"includeFiles,omitempty"` -} - -func (m *RpcExportRequest) Reset() { *m = RpcExportRequest{} } -func (m *RpcExportRequest) String() string { return proto.CompactTextString(m) } -func (*RpcExportRequest) ProtoMessage() {} -func (*RpcExportRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 26, 0} -} -func (m *RpcExportRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcExportRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcExportRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcExportRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcExportRequest.Merge(m, src) -} -func (m *RpcExportRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcExportRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcExportRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcExportRequest proto.InternalMessageInfo - -func (m *RpcExportRequest) GetPath() string { - if m != nil { - return m.Path - } - return "" -} - -func (m *RpcExportRequest) GetDocIds() []string { - if m != nil { - return m.DocIds - } - return nil -} - -func (m *RpcExportRequest) GetFormat() RpcExportFormat { - if m != nil { - return m.Format - } - return RpcExport_Markdown -} - -func (m *RpcExportRequest) GetZip() bool { - if m != nil { - return m.Zip - } - return false -} - -func (m *RpcExportRequest) GetIncludeNested() bool { - if m != nil { - return m.IncludeNested - } - return false -} - -func (m *RpcExportRequest) GetIncludeFiles() bool { - if m != nil { - return m.IncludeFiles - } - return false -} - -type RpcExportResponse struct { - Error *RpcExportResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` - Succeed int32 `protobuf:"varint,4,opt,name=succeed,proto3" json:"succeed,omitempty"` - Event *ResponseEvent `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcExportResponse) Reset() { *m = RpcExportResponse{} } -func (m *RpcExportResponse) String() string { return proto.CompactTextString(m) } -func (*RpcExportResponse) ProtoMessage() {} -func (*RpcExportResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 26, 1} -} -func (m *RpcExportResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcExportResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcExportResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcExportResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcExportResponse.Merge(m, src) -} -func (m *RpcExportResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcExportResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcExportResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcExportResponse proto.InternalMessageInfo - -func (m *RpcExportResponse) GetError() *RpcExportResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcExportResponse) GetPath() string { - if m != nil { - return m.Path - } - return "" -} - -func (m *RpcExportResponse) GetSucceed() int32 { - if m != nil { - return m.Succeed - } - return 0 -} - -func (m *RpcExportResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcExportResponseError struct { - Code RpcExportResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcExportResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcExportResponseError) Reset() { *m = RpcExportResponseError{} } -func (m *RpcExportResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcExportResponseError) ProtoMessage() {} -func (*RpcExportResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 26, 1, 0} -} -func (m *RpcExportResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcExportResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcExportResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcExportResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcExportResponseError.Merge(m, src) -} -func (m *RpcExportResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcExportResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcExportResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcExportResponseError proto.InternalMessageInfo - -func (m *RpcExportResponseError) GetCode() RpcExportResponseErrorCode { - if m != nil { - return m.Code - } - return RpcExportResponseError_NULL -} - -func (m *RpcExportResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcExportWorkspace struct { -} - -func (m *RpcExportWorkspace) Reset() { *m = RpcExportWorkspace{} } -func (m *RpcExportWorkspace) String() string { return proto.CompactTextString(m) } -func (*RpcExportWorkspace) ProtoMessage() {} -func (*RpcExportWorkspace) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 27} -} -func (m *RpcExportWorkspace) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcExportWorkspace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcExportWorkspace.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcExportWorkspace) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcExportWorkspace.Merge(m, src) -} -func (m *RpcExportWorkspace) XXX_Size() int { - return m.Size() -} -func (m *RpcExportWorkspace) XXX_DiscardUnknown() { - xxx_messageInfo_RpcExportWorkspace.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcExportWorkspace proto.InternalMessageInfo - -type RpcExportWorkspaceRequest struct { - // the path where export files will place - Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` - WorkspaceId string `protobuf:"bytes,2,opt,name=workspaceId,proto3" json:"workspaceId,omitempty"` -} - -func (m *RpcExportWorkspaceRequest) Reset() { *m = RpcExportWorkspaceRequest{} } -func (m *RpcExportWorkspaceRequest) String() string { return proto.CompactTextString(m) } -func (*RpcExportWorkspaceRequest) ProtoMessage() {} -func (*RpcExportWorkspaceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 27, 0} -} -func (m *RpcExportWorkspaceRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcExportWorkspaceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcExportWorkspaceRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcExportWorkspaceRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcExportWorkspaceRequest.Merge(m, src) -} -func (m *RpcExportWorkspaceRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcExportWorkspaceRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcExportWorkspaceRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcExportWorkspaceRequest proto.InternalMessageInfo - -func (m *RpcExportWorkspaceRequest) GetPath() string { - if m != nil { - return m.Path - } - return "" -} - -func (m *RpcExportWorkspaceRequest) GetWorkspaceId() string { - if m != nil { - return m.WorkspaceId - } - return "" -} - -type RpcExportWorkspaceResponse struct { - Error *RpcExportWorkspaceResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` - Event *ResponseEvent `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcExportWorkspaceResponse) Reset() { *m = RpcExportWorkspaceResponse{} } -func (m *RpcExportWorkspaceResponse) String() string { return proto.CompactTextString(m) } -func (*RpcExportWorkspaceResponse) ProtoMessage() {} -func (*RpcExportWorkspaceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 27, 1} -} -func (m *RpcExportWorkspaceResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcExportWorkspaceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcExportWorkspaceResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcExportWorkspaceResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcExportWorkspaceResponse.Merge(m, src) -} -func (m *RpcExportWorkspaceResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcExportWorkspaceResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcExportWorkspaceResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcExportWorkspaceResponse proto.InternalMessageInfo - -func (m *RpcExportWorkspaceResponse) GetError() *RpcExportWorkspaceResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcExportWorkspaceResponse) GetPath() string { - if m != nil { - return m.Path - } - return "" -} - -func (m *RpcExportWorkspaceResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcExportWorkspaceResponseError struct { - Code RpcExportWorkspaceResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcExportWorkspaceResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcExportWorkspaceResponseError) Reset() { *m = RpcExportWorkspaceResponseError{} } -func (m *RpcExportWorkspaceResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcExportWorkspaceResponseError) ProtoMessage() {} -func (*RpcExportWorkspaceResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 27, 1, 0} -} -func (m *RpcExportWorkspaceResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcExportWorkspaceResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcExportWorkspaceResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcExportWorkspaceResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcExportWorkspaceResponseError.Merge(m, src) -} -func (m *RpcExportWorkspaceResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcExportWorkspaceResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcExportWorkspaceResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcExportWorkspaceResponseError proto.InternalMessageInfo - -func (m *RpcExportWorkspaceResponseError) GetCode() RpcExportWorkspaceResponseErrorCode { - if m != nil { - return m.Code - } - return RpcExportWorkspaceResponseError_NULL -} - -func (m *RpcExportWorkspaceResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcExportTemplates struct { -} - -func (m *RpcExportTemplates) Reset() { *m = RpcExportTemplates{} } -func (m *RpcExportTemplates) String() string { return proto.CompactTextString(m) } -func (*RpcExportTemplates) ProtoMessage() {} -func (*RpcExportTemplates) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 28} -} -func (m *RpcExportTemplates) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcExportTemplates) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcExportTemplates.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcExportTemplates) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcExportTemplates.Merge(m, src) -} -func (m *RpcExportTemplates) XXX_Size() int { - return m.Size() -} -func (m *RpcExportTemplates) XXX_DiscardUnknown() { - xxx_messageInfo_RpcExportTemplates.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcExportTemplates proto.InternalMessageInfo - -type RpcExportTemplatesRequest struct { - // the path where export files will place - Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` -} - -func (m *RpcExportTemplatesRequest) Reset() { *m = RpcExportTemplatesRequest{} } -func (m *RpcExportTemplatesRequest) String() string { return proto.CompactTextString(m) } -func (*RpcExportTemplatesRequest) ProtoMessage() {} -func (*RpcExportTemplatesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 28, 0} -} -func (m *RpcExportTemplatesRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcExportTemplatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcExportTemplatesRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcExportTemplatesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcExportTemplatesRequest.Merge(m, src) -} -func (m *RpcExportTemplatesRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcExportTemplatesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcExportTemplatesRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcExportTemplatesRequest proto.InternalMessageInfo - -func (m *RpcExportTemplatesRequest) GetPath() string { - if m != nil { - return m.Path - } - return "" -} - -type RpcExportTemplatesResponse struct { - Error *RpcExportTemplatesResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` - Event *ResponseEvent `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcExportTemplatesResponse) Reset() { *m = RpcExportTemplatesResponse{} } -func (m *RpcExportTemplatesResponse) String() string { return proto.CompactTextString(m) } -func (*RpcExportTemplatesResponse) ProtoMessage() {} -func (*RpcExportTemplatesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 28, 1} -} -func (m *RpcExportTemplatesResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcExportTemplatesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcExportTemplatesResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcExportTemplatesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcExportTemplatesResponse.Merge(m, src) -} -func (m *RpcExportTemplatesResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcExportTemplatesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcExportTemplatesResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcExportTemplatesResponse proto.InternalMessageInfo - -func (m *RpcExportTemplatesResponse) GetError() *RpcExportTemplatesResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcExportTemplatesResponse) GetPath() string { - if m != nil { - return m.Path - } - return "" -} - -func (m *RpcExportTemplatesResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcExportTemplatesResponseError struct { - Code RpcExportTemplatesResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcExportTemplatesResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcExportTemplatesResponseError) Reset() { *m = RpcExportTemplatesResponseError{} } -func (m *RpcExportTemplatesResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcExportTemplatesResponseError) ProtoMessage() {} -func (*RpcExportTemplatesResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 28, 1, 0} -} -func (m *RpcExportTemplatesResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcExportTemplatesResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcExportTemplatesResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcExportTemplatesResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcExportTemplatesResponseError.Merge(m, src) -} -func (m *RpcExportTemplatesResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcExportTemplatesResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcExportTemplatesResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcExportTemplatesResponseError proto.InternalMessageInfo - -func (m *RpcExportTemplatesResponseError) GetCode() RpcExportTemplatesResponseErrorCode { - if m != nil { - return m.Code - } - return RpcExportTemplatesResponseError_NULL -} - -func (m *RpcExportTemplatesResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcExportLocalstore struct { -} - -func (m *RpcExportLocalstore) Reset() { *m = RpcExportLocalstore{} } -func (m *RpcExportLocalstore) String() string { return proto.CompactTextString(m) } -func (*RpcExportLocalstore) ProtoMessage() {} -func (*RpcExportLocalstore) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 29} -} -func (m *RpcExportLocalstore) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcExportLocalstore) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcExportLocalstore.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcExportLocalstore) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcExportLocalstore.Merge(m, src) -} -func (m *RpcExportLocalstore) XXX_Size() int { - return m.Size() -} -func (m *RpcExportLocalstore) XXX_DiscardUnknown() { - xxx_messageInfo_RpcExportLocalstore.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcExportLocalstore proto.InternalMessageInfo - -type RpcExportLocalstoreRequest struct { - // the path where export files will place - Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` - // ids of documents for export, when empty - will export all available docs - DocIds []string `protobuf:"bytes,2,rep,name=docIds,proto3" json:"docIds,omitempty"` -} - -func (m *RpcExportLocalstoreRequest) Reset() { *m = RpcExportLocalstoreRequest{} } -func (m *RpcExportLocalstoreRequest) String() string { return proto.CompactTextString(m) } -func (*RpcExportLocalstoreRequest) ProtoMessage() {} -func (*RpcExportLocalstoreRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 29, 0} -} -func (m *RpcExportLocalstoreRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcExportLocalstoreRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcExportLocalstoreRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcExportLocalstoreRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcExportLocalstoreRequest.Merge(m, src) -} -func (m *RpcExportLocalstoreRequest) XXX_Size() int { - return m.Size() -} -func (m *RpcExportLocalstoreRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcExportLocalstoreRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcExportLocalstoreRequest proto.InternalMessageInfo - -func (m *RpcExportLocalstoreRequest) GetPath() string { - if m != nil { - return m.Path - } - return "" -} - -func (m *RpcExportLocalstoreRequest) GetDocIds() []string { - if m != nil { - return m.DocIds - } - return nil -} - -type RpcExportLocalstoreResponse struct { - Error *RpcExportLocalstoreResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` - Event *ResponseEvent `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"` -} - -func (m *RpcExportLocalstoreResponse) Reset() { *m = RpcExportLocalstoreResponse{} } -func (m *RpcExportLocalstoreResponse) String() string { return proto.CompactTextString(m) } -func (*RpcExportLocalstoreResponse) ProtoMessage() {} -func (*RpcExportLocalstoreResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 29, 1} -} -func (m *RpcExportLocalstoreResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcExportLocalstoreResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcExportLocalstoreResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcExportLocalstoreResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcExportLocalstoreResponse.Merge(m, src) -} -func (m *RpcExportLocalstoreResponse) XXX_Size() int { - return m.Size() -} -func (m *RpcExportLocalstoreResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcExportLocalstoreResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcExportLocalstoreResponse proto.InternalMessageInfo - -func (m *RpcExportLocalstoreResponse) GetError() *RpcExportLocalstoreResponseError { - if m != nil { - return m.Error - } - return nil -} - -func (m *RpcExportLocalstoreResponse) GetPath() string { - if m != nil { - return m.Path - } - return "" -} - -func (m *RpcExportLocalstoreResponse) GetEvent() *ResponseEvent { - if m != nil { - return m.Event - } - return nil -} - -type RpcExportLocalstoreResponseError struct { - Code RpcExportLocalstoreResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcExportLocalstoreResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (m *RpcExportLocalstoreResponseError) Reset() { *m = RpcExportLocalstoreResponseError{} } -func (m *RpcExportLocalstoreResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcExportLocalstoreResponseError) ProtoMessage() {} -func (*RpcExportLocalstoreResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 29, 1, 0} -} -func (m *RpcExportLocalstoreResponseError) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcExportLocalstoreResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcExportLocalstoreResponseError.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcExportLocalstoreResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcExportLocalstoreResponseError.Merge(m, src) -} -func (m *RpcExportLocalstoreResponseError) XXX_Size() int { - return m.Size() -} -func (m *RpcExportLocalstoreResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcExportLocalstoreResponseError.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcExportLocalstoreResponseError proto.InternalMessageInfo - -func (m *RpcExportLocalstoreResponseError) GetCode() RpcExportLocalstoreResponseErrorCode { - if m != nil { - return m.Code - } - return RpcExportLocalstoreResponseError_NULL -} - -func (m *RpcExportLocalstoreResponseError) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type RpcMakeTemplate struct { -} - -func (m *RpcMakeTemplate) Reset() { *m = RpcMakeTemplate{} } -func (m *RpcMakeTemplate) String() string { return proto.CompactTextString(m) } -func (*RpcMakeTemplate) ProtoMessage() {} -func (*RpcMakeTemplate) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 30} -} -func (m *RpcMakeTemplate) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RpcMakeTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RpcMakeTemplate.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RpcMakeTemplate) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcMakeTemplate.Merge(m, src) -} -func (m *RpcMakeTemplate) XXX_Size() int { - return m.Size() -} -func (m *RpcMakeTemplate) XXX_DiscardUnknown() { - xxx_messageInfo_RpcMakeTemplate.DiscardUnknown(m) -} - -var xxx_messageInfo_RpcMakeTemplate proto.InternalMessageInfo - -type RpcMakeTemplateRequest struct { +type RpcTemplateCreateFromObjectRequest struct { // id of block for making them template ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` } -func (m *RpcMakeTemplateRequest) Reset() { *m = RpcMakeTemplateRequest{} } -func (m *RpcMakeTemplateRequest) String() string { return proto.CompactTextString(m) } -func (*RpcMakeTemplateRequest) ProtoMessage() {} -func (*RpcMakeTemplateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 30, 0} +func (m *RpcTemplateCreateFromObjectRequest) Reset() { *m = RpcTemplateCreateFromObjectRequest{} } +func (m *RpcTemplateCreateFromObjectRequest) String() string { return proto.CompactTextString(m) } +func (*RpcTemplateCreateFromObjectRequest) ProtoMessage() {} +func (*RpcTemplateCreateFromObjectRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 11, 0, 0} } -func (m *RpcMakeTemplateRequest) XXX_Unmarshal(b []byte) error { +func (m *RpcTemplateCreateFromObjectRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcMakeTemplateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcTemplateCreateFromObjectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcMakeTemplateRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcTemplateCreateFromObjectRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -35912,43 +19728,43 @@ func (m *RpcMakeTemplateRequest) XXX_Marshal(b []byte, deterministic bool) ([]by return b[:n], nil } } -func (m *RpcMakeTemplateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcMakeTemplateRequest.Merge(m, src) +func (m *RpcTemplateCreateFromObjectRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcTemplateCreateFromObjectRequest.Merge(m, src) } -func (m *RpcMakeTemplateRequest) XXX_Size() int { +func (m *RpcTemplateCreateFromObjectRequest) XXX_Size() int { return m.Size() } -func (m *RpcMakeTemplateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcMakeTemplateRequest.DiscardUnknown(m) +func (m *RpcTemplateCreateFromObjectRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcTemplateCreateFromObjectRequest.DiscardUnknown(m) } -var xxx_messageInfo_RpcMakeTemplateRequest proto.InternalMessageInfo +var xxx_messageInfo_RpcTemplateCreateFromObjectRequest proto.InternalMessageInfo -func (m *RpcMakeTemplateRequest) GetContextId() string { +func (m *RpcTemplateCreateFromObjectRequest) GetContextId() string { if m != nil { return m.ContextId } return "" } -type RpcMakeTemplateResponse struct { - Error *RpcMakeTemplateResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +type RpcTemplateCreateFromObjectResponse struct { + Error *RpcTemplateCreateFromObjectResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` // created template id Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` } -func (m *RpcMakeTemplateResponse) Reset() { *m = RpcMakeTemplateResponse{} } -func (m *RpcMakeTemplateResponse) String() string { return proto.CompactTextString(m) } -func (*RpcMakeTemplateResponse) ProtoMessage() {} -func (*RpcMakeTemplateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 30, 1} +func (m *RpcTemplateCreateFromObjectResponse) Reset() { *m = RpcTemplateCreateFromObjectResponse{} } +func (m *RpcTemplateCreateFromObjectResponse) String() string { return proto.CompactTextString(m) } +func (*RpcTemplateCreateFromObjectResponse) ProtoMessage() {} +func (*RpcTemplateCreateFromObjectResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 11, 0, 1} } -func (m *RpcMakeTemplateResponse) XXX_Unmarshal(b []byte) error { +func (m *RpcTemplateCreateFromObjectResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcMakeTemplateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcTemplateCreateFromObjectResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcMakeTemplateResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcTemplateCreateFromObjectResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -35958,49 +19774,51 @@ func (m *RpcMakeTemplateResponse) XXX_Marshal(b []byte, deterministic bool) ([]b return b[:n], nil } } -func (m *RpcMakeTemplateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcMakeTemplateResponse.Merge(m, src) +func (m *RpcTemplateCreateFromObjectResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcTemplateCreateFromObjectResponse.Merge(m, src) } -func (m *RpcMakeTemplateResponse) XXX_Size() int { +func (m *RpcTemplateCreateFromObjectResponse) XXX_Size() int { return m.Size() } -func (m *RpcMakeTemplateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcMakeTemplateResponse.DiscardUnknown(m) +func (m *RpcTemplateCreateFromObjectResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcTemplateCreateFromObjectResponse.DiscardUnknown(m) } -var xxx_messageInfo_RpcMakeTemplateResponse proto.InternalMessageInfo +var xxx_messageInfo_RpcTemplateCreateFromObjectResponse proto.InternalMessageInfo -func (m *RpcMakeTemplateResponse) GetError() *RpcMakeTemplateResponseError { +func (m *RpcTemplateCreateFromObjectResponse) GetError() *RpcTemplateCreateFromObjectResponseError { if m != nil { return m.Error } return nil } -func (m *RpcMakeTemplateResponse) GetId() string { +func (m *RpcTemplateCreateFromObjectResponse) GetId() string { if m != nil { return m.Id } return "" } -type RpcMakeTemplateResponseError struct { - Code RpcMakeTemplateResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcMakeTemplateResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +type RpcTemplateCreateFromObjectResponseError struct { + Code RpcTemplateCreateFromObjectResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcTemplateCreateFromObjectResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` } -func (m *RpcMakeTemplateResponseError) Reset() { *m = RpcMakeTemplateResponseError{} } -func (m *RpcMakeTemplateResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcMakeTemplateResponseError) ProtoMessage() {} -func (*RpcMakeTemplateResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 30, 1, 0} +func (m *RpcTemplateCreateFromObjectResponseError) Reset() { + *m = RpcTemplateCreateFromObjectResponseError{} } -func (m *RpcMakeTemplateResponseError) XXX_Unmarshal(b []byte) error { +func (m *RpcTemplateCreateFromObjectResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcTemplateCreateFromObjectResponseError) ProtoMessage() {} +func (*RpcTemplateCreateFromObjectResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 11, 0, 1, 0} +} +func (m *RpcTemplateCreateFromObjectResponseError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcMakeTemplateResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcTemplateCreateFromObjectResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcMakeTemplateResponseError.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcTemplateCreateFromObjectResponseError.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -36010,47 +19828,47 @@ func (m *RpcMakeTemplateResponseError) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *RpcMakeTemplateResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcMakeTemplateResponseError.Merge(m, src) +func (m *RpcTemplateCreateFromObjectResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcTemplateCreateFromObjectResponseError.Merge(m, src) } -func (m *RpcMakeTemplateResponseError) XXX_Size() int { +func (m *RpcTemplateCreateFromObjectResponseError) XXX_Size() int { return m.Size() } -func (m *RpcMakeTemplateResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcMakeTemplateResponseError.DiscardUnknown(m) +func (m *RpcTemplateCreateFromObjectResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcTemplateCreateFromObjectResponseError.DiscardUnknown(m) } -var xxx_messageInfo_RpcMakeTemplateResponseError proto.InternalMessageInfo +var xxx_messageInfo_RpcTemplateCreateFromObjectResponseError proto.InternalMessageInfo -func (m *RpcMakeTemplateResponseError) GetCode() RpcMakeTemplateResponseErrorCode { +func (m *RpcTemplateCreateFromObjectResponseError) GetCode() RpcTemplateCreateFromObjectResponseErrorCode { if m != nil { return m.Code } - return RpcMakeTemplateResponseError_NULL + return RpcTemplateCreateFromObjectResponseError_NULL } -func (m *RpcMakeTemplateResponseError) GetDescription() string { +func (m *RpcTemplateCreateFromObjectResponseError) GetDescription() string { if m != nil { return m.Description } return "" } -type RpcMakeTemplateByObjectType struct { +type RpcTemplateCreateFromObjectType struct { } -func (m *RpcMakeTemplateByObjectType) Reset() { *m = RpcMakeTemplateByObjectType{} } -func (m *RpcMakeTemplateByObjectType) String() string { return proto.CompactTextString(m) } -func (*RpcMakeTemplateByObjectType) ProtoMessage() {} -func (*RpcMakeTemplateByObjectType) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 31} +func (m *RpcTemplateCreateFromObjectType) Reset() { *m = RpcTemplateCreateFromObjectType{} } +func (m *RpcTemplateCreateFromObjectType) String() string { return proto.CompactTextString(m) } +func (*RpcTemplateCreateFromObjectType) ProtoMessage() {} +func (*RpcTemplateCreateFromObjectType) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 11, 1} } -func (m *RpcMakeTemplateByObjectType) XXX_Unmarshal(b []byte) error { +func (m *RpcTemplateCreateFromObjectType) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcMakeTemplateByObjectType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcTemplateCreateFromObjectType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcMakeTemplateByObjectType.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcTemplateCreateFromObjectType.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -36060,35 +19878,37 @@ func (m *RpcMakeTemplateByObjectType) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *RpcMakeTemplateByObjectType) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcMakeTemplateByObjectType.Merge(m, src) +func (m *RpcTemplateCreateFromObjectType) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcTemplateCreateFromObjectType.Merge(m, src) } -func (m *RpcMakeTemplateByObjectType) XXX_Size() int { +func (m *RpcTemplateCreateFromObjectType) XXX_Size() int { return m.Size() } -func (m *RpcMakeTemplateByObjectType) XXX_DiscardUnknown() { - xxx_messageInfo_RpcMakeTemplateByObjectType.DiscardUnknown(m) +func (m *RpcTemplateCreateFromObjectType) XXX_DiscardUnknown() { + xxx_messageInfo_RpcTemplateCreateFromObjectType.DiscardUnknown(m) } -var xxx_messageInfo_RpcMakeTemplateByObjectType proto.InternalMessageInfo +var xxx_messageInfo_RpcTemplateCreateFromObjectType proto.InternalMessageInfo -type RpcMakeTemplateByObjectTypeRequest struct { +type RpcTemplateCreateFromObjectTypeRequest struct { // id of desired object type ObjectType string `protobuf:"bytes,1,opt,name=objectType,proto3" json:"objectType,omitempty"` } -func (m *RpcMakeTemplateByObjectTypeRequest) Reset() { *m = RpcMakeTemplateByObjectTypeRequest{} } -func (m *RpcMakeTemplateByObjectTypeRequest) String() string { return proto.CompactTextString(m) } -func (*RpcMakeTemplateByObjectTypeRequest) ProtoMessage() {} -func (*RpcMakeTemplateByObjectTypeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 31, 0} +func (m *RpcTemplateCreateFromObjectTypeRequest) Reset() { + *m = RpcTemplateCreateFromObjectTypeRequest{} } -func (m *RpcMakeTemplateByObjectTypeRequest) XXX_Unmarshal(b []byte) error { +func (m *RpcTemplateCreateFromObjectTypeRequest) String() string { return proto.CompactTextString(m) } +func (*RpcTemplateCreateFromObjectTypeRequest) ProtoMessage() {} +func (*RpcTemplateCreateFromObjectTypeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 11, 1, 0} +} +func (m *RpcTemplateCreateFromObjectTypeRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcMakeTemplateByObjectTypeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcTemplateCreateFromObjectTypeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcMakeTemplateByObjectTypeRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcTemplateCreateFromObjectTypeRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -36098,43 +19918,45 @@ func (m *RpcMakeTemplateByObjectTypeRequest) XXX_Marshal(b []byte, deterministic return b[:n], nil } } -func (m *RpcMakeTemplateByObjectTypeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcMakeTemplateByObjectTypeRequest.Merge(m, src) +func (m *RpcTemplateCreateFromObjectTypeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcTemplateCreateFromObjectTypeRequest.Merge(m, src) } -func (m *RpcMakeTemplateByObjectTypeRequest) XXX_Size() int { +func (m *RpcTemplateCreateFromObjectTypeRequest) XXX_Size() int { return m.Size() } -func (m *RpcMakeTemplateByObjectTypeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcMakeTemplateByObjectTypeRequest.DiscardUnknown(m) +func (m *RpcTemplateCreateFromObjectTypeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcTemplateCreateFromObjectTypeRequest.DiscardUnknown(m) } -var xxx_messageInfo_RpcMakeTemplateByObjectTypeRequest proto.InternalMessageInfo +var xxx_messageInfo_RpcTemplateCreateFromObjectTypeRequest proto.InternalMessageInfo -func (m *RpcMakeTemplateByObjectTypeRequest) GetObjectType() string { +func (m *RpcTemplateCreateFromObjectTypeRequest) GetObjectType() string { if m != nil { return m.ObjectType } return "" } -type RpcMakeTemplateByObjectTypeResponse struct { - Error *RpcMakeTemplateByObjectTypeResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +type RpcTemplateCreateFromObjectTypeResponse struct { + Error *RpcTemplateCreateFromObjectTypeResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` // created template id Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` } -func (m *RpcMakeTemplateByObjectTypeResponse) Reset() { *m = RpcMakeTemplateByObjectTypeResponse{} } -func (m *RpcMakeTemplateByObjectTypeResponse) String() string { return proto.CompactTextString(m) } -func (*RpcMakeTemplateByObjectTypeResponse) ProtoMessage() {} -func (*RpcMakeTemplateByObjectTypeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 31, 1} +func (m *RpcTemplateCreateFromObjectTypeResponse) Reset() { + *m = RpcTemplateCreateFromObjectTypeResponse{} } -func (m *RpcMakeTemplateByObjectTypeResponse) XXX_Unmarshal(b []byte) error { +func (m *RpcTemplateCreateFromObjectTypeResponse) String() string { return proto.CompactTextString(m) } +func (*RpcTemplateCreateFromObjectTypeResponse) ProtoMessage() {} +func (*RpcTemplateCreateFromObjectTypeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 11, 1, 1} +} +func (m *RpcTemplateCreateFromObjectTypeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcMakeTemplateByObjectTypeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcTemplateCreateFromObjectTypeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcMakeTemplateByObjectTypeResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcTemplateCreateFromObjectTypeResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -36144,51 +19966,53 @@ func (m *RpcMakeTemplateByObjectTypeResponse) XXX_Marshal(b []byte, deterministi return b[:n], nil } } -func (m *RpcMakeTemplateByObjectTypeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcMakeTemplateByObjectTypeResponse.Merge(m, src) +func (m *RpcTemplateCreateFromObjectTypeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcTemplateCreateFromObjectTypeResponse.Merge(m, src) } -func (m *RpcMakeTemplateByObjectTypeResponse) XXX_Size() int { +func (m *RpcTemplateCreateFromObjectTypeResponse) XXX_Size() int { return m.Size() } -func (m *RpcMakeTemplateByObjectTypeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcMakeTemplateByObjectTypeResponse.DiscardUnknown(m) +func (m *RpcTemplateCreateFromObjectTypeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcTemplateCreateFromObjectTypeResponse.DiscardUnknown(m) } -var xxx_messageInfo_RpcMakeTemplateByObjectTypeResponse proto.InternalMessageInfo +var xxx_messageInfo_RpcTemplateCreateFromObjectTypeResponse proto.InternalMessageInfo -func (m *RpcMakeTemplateByObjectTypeResponse) GetError() *RpcMakeTemplateByObjectTypeResponseError { +func (m *RpcTemplateCreateFromObjectTypeResponse) GetError() *RpcTemplateCreateFromObjectTypeResponseError { if m != nil { return m.Error } return nil } -func (m *RpcMakeTemplateByObjectTypeResponse) GetId() string { +func (m *RpcTemplateCreateFromObjectTypeResponse) GetId() string { if m != nil { return m.Id } return "" } -type RpcMakeTemplateByObjectTypeResponseError struct { - Code RpcMakeTemplateByObjectTypeResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcMakeTemplateByObjectTypeResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +type RpcTemplateCreateFromObjectTypeResponseError struct { + Code RpcTemplateCreateFromObjectTypeResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcTemplateCreateFromObjectTypeResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` } -func (m *RpcMakeTemplateByObjectTypeResponseError) Reset() { - *m = RpcMakeTemplateByObjectTypeResponseError{} +func (m *RpcTemplateCreateFromObjectTypeResponseError) Reset() { + *m = RpcTemplateCreateFromObjectTypeResponseError{} } -func (m *RpcMakeTemplateByObjectTypeResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcMakeTemplateByObjectTypeResponseError) ProtoMessage() {} -func (*RpcMakeTemplateByObjectTypeResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 31, 1, 0} +func (m *RpcTemplateCreateFromObjectTypeResponseError) String() string { + return proto.CompactTextString(m) } -func (m *RpcMakeTemplateByObjectTypeResponseError) XXX_Unmarshal(b []byte) error { +func (*RpcTemplateCreateFromObjectTypeResponseError) ProtoMessage() {} +func (*RpcTemplateCreateFromObjectTypeResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 11, 1, 1, 0} +} +func (m *RpcTemplateCreateFromObjectTypeResponseError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcMakeTemplateByObjectTypeResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcTemplateCreateFromObjectTypeResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcMakeTemplateByObjectTypeResponseError.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcTemplateCreateFromObjectTypeResponseError.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -36198,47 +20022,47 @@ func (m *RpcMakeTemplateByObjectTypeResponseError) XXX_Marshal(b []byte, determi return b[:n], nil } } -func (m *RpcMakeTemplateByObjectTypeResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcMakeTemplateByObjectTypeResponseError.Merge(m, src) +func (m *RpcTemplateCreateFromObjectTypeResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcTemplateCreateFromObjectTypeResponseError.Merge(m, src) } -func (m *RpcMakeTemplateByObjectTypeResponseError) XXX_Size() int { +func (m *RpcTemplateCreateFromObjectTypeResponseError) XXX_Size() int { return m.Size() } -func (m *RpcMakeTemplateByObjectTypeResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcMakeTemplateByObjectTypeResponseError.DiscardUnknown(m) +func (m *RpcTemplateCreateFromObjectTypeResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcTemplateCreateFromObjectTypeResponseError.DiscardUnknown(m) } -var xxx_messageInfo_RpcMakeTemplateByObjectTypeResponseError proto.InternalMessageInfo +var xxx_messageInfo_RpcTemplateCreateFromObjectTypeResponseError proto.InternalMessageInfo -func (m *RpcMakeTemplateByObjectTypeResponseError) GetCode() RpcMakeTemplateByObjectTypeResponseErrorCode { +func (m *RpcTemplateCreateFromObjectTypeResponseError) GetCode() RpcTemplateCreateFromObjectTypeResponseErrorCode { if m != nil { return m.Code } - return RpcMakeTemplateByObjectTypeResponseError_NULL + return RpcTemplateCreateFromObjectTypeResponseError_NULL } -func (m *RpcMakeTemplateByObjectTypeResponseError) GetDescription() string { +func (m *RpcTemplateCreateFromObjectTypeResponseError) GetDescription() string { if m != nil { return m.Description } return "" } -type RpcCloneTemplate struct { +type RpcTemplateClone struct { } -func (m *RpcCloneTemplate) Reset() { *m = RpcCloneTemplate{} } -func (m *RpcCloneTemplate) String() string { return proto.CompactTextString(m) } -func (*RpcCloneTemplate) ProtoMessage() {} -func (*RpcCloneTemplate) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 32} +func (m *RpcTemplateClone) Reset() { *m = RpcTemplateClone{} } +func (m *RpcTemplateClone) String() string { return proto.CompactTextString(m) } +func (*RpcTemplateClone) ProtoMessage() {} +func (*RpcTemplateClone) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 11, 2} } -func (m *RpcCloneTemplate) XXX_Unmarshal(b []byte) error { +func (m *RpcTemplateClone) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcCloneTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcTemplateClone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcCloneTemplate.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcTemplateClone.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -36248,35 +20072,35 @@ func (m *RpcCloneTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return b[:n], nil } } -func (m *RpcCloneTemplate) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcCloneTemplate.Merge(m, src) +func (m *RpcTemplateClone) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcTemplateClone.Merge(m, src) } -func (m *RpcCloneTemplate) XXX_Size() int { +func (m *RpcTemplateClone) XXX_Size() int { return m.Size() } -func (m *RpcCloneTemplate) XXX_DiscardUnknown() { - xxx_messageInfo_RpcCloneTemplate.DiscardUnknown(m) +func (m *RpcTemplateClone) XXX_DiscardUnknown() { + xxx_messageInfo_RpcTemplateClone.DiscardUnknown(m) } -var xxx_messageInfo_RpcCloneTemplate proto.InternalMessageInfo +var xxx_messageInfo_RpcTemplateClone proto.InternalMessageInfo -type RpcCloneTemplateRequest struct { +type RpcTemplateCloneRequest struct { // id of template block for cloning ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` } -func (m *RpcCloneTemplateRequest) Reset() { *m = RpcCloneTemplateRequest{} } -func (m *RpcCloneTemplateRequest) String() string { return proto.CompactTextString(m) } -func (*RpcCloneTemplateRequest) ProtoMessage() {} -func (*RpcCloneTemplateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 32, 0} +func (m *RpcTemplateCloneRequest) Reset() { *m = RpcTemplateCloneRequest{} } +func (m *RpcTemplateCloneRequest) String() string { return proto.CompactTextString(m) } +func (*RpcTemplateCloneRequest) ProtoMessage() {} +func (*RpcTemplateCloneRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 11, 2, 0} } -func (m *RpcCloneTemplateRequest) XXX_Unmarshal(b []byte) error { +func (m *RpcTemplateCloneRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcCloneTemplateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcTemplateCloneRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcCloneTemplateRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcTemplateCloneRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -36286,43 +20110,43 @@ func (m *RpcCloneTemplateRequest) XXX_Marshal(b []byte, deterministic bool) ([]b return b[:n], nil } } -func (m *RpcCloneTemplateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcCloneTemplateRequest.Merge(m, src) +func (m *RpcTemplateCloneRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcTemplateCloneRequest.Merge(m, src) } -func (m *RpcCloneTemplateRequest) XXX_Size() int { +func (m *RpcTemplateCloneRequest) XXX_Size() int { return m.Size() } -func (m *RpcCloneTemplateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcCloneTemplateRequest.DiscardUnknown(m) +func (m *RpcTemplateCloneRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcTemplateCloneRequest.DiscardUnknown(m) } -var xxx_messageInfo_RpcCloneTemplateRequest proto.InternalMessageInfo +var xxx_messageInfo_RpcTemplateCloneRequest proto.InternalMessageInfo -func (m *RpcCloneTemplateRequest) GetContextId() string { +func (m *RpcTemplateCloneRequest) GetContextId() string { if m != nil { return m.ContextId } return "" } -type RpcCloneTemplateResponse struct { - Error *RpcCloneTemplateResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +type RpcTemplateCloneResponse struct { + Error *RpcTemplateCloneResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` // created template id Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` } -func (m *RpcCloneTemplateResponse) Reset() { *m = RpcCloneTemplateResponse{} } -func (m *RpcCloneTemplateResponse) String() string { return proto.CompactTextString(m) } -func (*RpcCloneTemplateResponse) ProtoMessage() {} -func (*RpcCloneTemplateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 32, 1} +func (m *RpcTemplateCloneResponse) Reset() { *m = RpcTemplateCloneResponse{} } +func (m *RpcTemplateCloneResponse) String() string { return proto.CompactTextString(m) } +func (*RpcTemplateCloneResponse) ProtoMessage() {} +func (*RpcTemplateCloneResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 11, 2, 1} } -func (m *RpcCloneTemplateResponse) XXX_Unmarshal(b []byte) error { +func (m *RpcTemplateCloneResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcCloneTemplateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcTemplateCloneResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcCloneTemplateResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcTemplateCloneResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -36332,49 +20156,49 @@ func (m *RpcCloneTemplateResponse) XXX_Marshal(b []byte, deterministic bool) ([] return b[:n], nil } } -func (m *RpcCloneTemplateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcCloneTemplateResponse.Merge(m, src) +func (m *RpcTemplateCloneResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcTemplateCloneResponse.Merge(m, src) } -func (m *RpcCloneTemplateResponse) XXX_Size() int { +func (m *RpcTemplateCloneResponse) XXX_Size() int { return m.Size() } -func (m *RpcCloneTemplateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcCloneTemplateResponse.DiscardUnknown(m) +func (m *RpcTemplateCloneResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcTemplateCloneResponse.DiscardUnknown(m) } -var xxx_messageInfo_RpcCloneTemplateResponse proto.InternalMessageInfo +var xxx_messageInfo_RpcTemplateCloneResponse proto.InternalMessageInfo -func (m *RpcCloneTemplateResponse) GetError() *RpcCloneTemplateResponseError { +func (m *RpcTemplateCloneResponse) GetError() *RpcTemplateCloneResponseError { if m != nil { return m.Error } return nil } -func (m *RpcCloneTemplateResponse) GetId() string { +func (m *RpcTemplateCloneResponse) GetId() string { if m != nil { return m.Id } return "" } -type RpcCloneTemplateResponseError struct { - Code RpcCloneTemplateResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcCloneTemplateResponseErrorCode" json:"code,omitempty"` +type RpcTemplateCloneResponseError struct { + Code RpcTemplateCloneResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcTemplateCloneResponseErrorCode" json:"code,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` } -func (m *RpcCloneTemplateResponseError) Reset() { *m = RpcCloneTemplateResponseError{} } -func (m *RpcCloneTemplateResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcCloneTemplateResponseError) ProtoMessage() {} -func (*RpcCloneTemplateResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 32, 1, 0} +func (m *RpcTemplateCloneResponseError) Reset() { *m = RpcTemplateCloneResponseError{} } +func (m *RpcTemplateCloneResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcTemplateCloneResponseError) ProtoMessage() {} +func (*RpcTemplateCloneResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 11, 2, 1, 0} } -func (m *RpcCloneTemplateResponseError) XXX_Unmarshal(b []byte) error { +func (m *RpcTemplateCloneResponseError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcCloneTemplateResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcTemplateCloneResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcCloneTemplateResponseError.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcTemplateCloneResponseError.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -36384,47 +20208,47 @@ func (m *RpcCloneTemplateResponseError) XXX_Marshal(b []byte, deterministic bool return b[:n], nil } } -func (m *RpcCloneTemplateResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcCloneTemplateResponseError.Merge(m, src) +func (m *RpcTemplateCloneResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcTemplateCloneResponseError.Merge(m, src) } -func (m *RpcCloneTemplateResponseError) XXX_Size() int { +func (m *RpcTemplateCloneResponseError) XXX_Size() int { return m.Size() } -func (m *RpcCloneTemplateResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcCloneTemplateResponseError.DiscardUnknown(m) +func (m *RpcTemplateCloneResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcTemplateCloneResponseError.DiscardUnknown(m) } -var xxx_messageInfo_RpcCloneTemplateResponseError proto.InternalMessageInfo +var xxx_messageInfo_RpcTemplateCloneResponseError proto.InternalMessageInfo -func (m *RpcCloneTemplateResponseError) GetCode() RpcCloneTemplateResponseErrorCode { +func (m *RpcTemplateCloneResponseError) GetCode() RpcTemplateCloneResponseErrorCode { if m != nil { return m.Code } - return RpcCloneTemplateResponseError_NULL + return RpcTemplateCloneResponseError_NULL } -func (m *RpcCloneTemplateResponseError) GetDescription() string { +func (m *RpcTemplateCloneResponseError) GetDescription() string { if m != nil { return m.Description } return "" } -type RpcObjectDuplicate struct { +type RpcTemplateExportAll struct { } -func (m *RpcObjectDuplicate) Reset() { *m = RpcObjectDuplicate{} } -func (m *RpcObjectDuplicate) String() string { return proto.CompactTextString(m) } -func (*RpcObjectDuplicate) ProtoMessage() {} -func (*RpcObjectDuplicate) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 33} +func (m *RpcTemplateExportAll) Reset() { *m = RpcTemplateExportAll{} } +func (m *RpcTemplateExportAll) String() string { return proto.CompactTextString(m) } +func (*RpcTemplateExportAll) ProtoMessage() {} +func (*RpcTemplateExportAll) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 11, 3} } -func (m *RpcObjectDuplicate) XXX_Unmarshal(b []byte) error { +func (m *RpcTemplateExportAll) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcObjectDuplicate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcTemplateExportAll) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcObjectDuplicate.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcTemplateExportAll.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -36434,34 +20258,35 @@ func (m *RpcObjectDuplicate) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *RpcObjectDuplicate) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectDuplicate.Merge(m, src) +func (m *RpcTemplateExportAll) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcTemplateExportAll.Merge(m, src) } -func (m *RpcObjectDuplicate) XXX_Size() int { +func (m *RpcTemplateExportAll) XXX_Size() int { return m.Size() } -func (m *RpcObjectDuplicate) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectDuplicate.DiscardUnknown(m) +func (m *RpcTemplateExportAll) XXX_DiscardUnknown() { + xxx_messageInfo_RpcTemplateExportAll.DiscardUnknown(m) } -var xxx_messageInfo_RpcObjectDuplicate proto.InternalMessageInfo +var xxx_messageInfo_RpcTemplateExportAll proto.InternalMessageInfo -type RpcObjectDuplicateRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` +type RpcTemplateExportAllRequest struct { + // the path where export files will place + Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` } -func (m *RpcObjectDuplicateRequest) Reset() { *m = RpcObjectDuplicateRequest{} } -func (m *RpcObjectDuplicateRequest) String() string { return proto.CompactTextString(m) } -func (*RpcObjectDuplicateRequest) ProtoMessage() {} -func (*RpcObjectDuplicateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 33, 0} +func (m *RpcTemplateExportAllRequest) Reset() { *m = RpcTemplateExportAllRequest{} } +func (m *RpcTemplateExportAllRequest) String() string { return proto.CompactTextString(m) } +func (*RpcTemplateExportAllRequest) ProtoMessage() {} +func (*RpcTemplateExportAllRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 11, 3, 0} } -func (m *RpcObjectDuplicateRequest) XXX_Unmarshal(b []byte) error { +func (m *RpcTemplateExportAllRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcObjectDuplicateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcTemplateExportAllRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcObjectDuplicateRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcTemplateExportAllRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -36471,42 +20296,43 @@ func (m *RpcObjectDuplicateRequest) XXX_Marshal(b []byte, deterministic bool) ([ return b[:n], nil } } -func (m *RpcObjectDuplicateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectDuplicateRequest.Merge(m, src) +func (m *RpcTemplateExportAllRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcTemplateExportAllRequest.Merge(m, src) } -func (m *RpcObjectDuplicateRequest) XXX_Size() int { +func (m *RpcTemplateExportAllRequest) XXX_Size() int { return m.Size() } -func (m *RpcObjectDuplicateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectDuplicateRequest.DiscardUnknown(m) +func (m *RpcTemplateExportAllRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcTemplateExportAllRequest.DiscardUnknown(m) } -var xxx_messageInfo_RpcObjectDuplicateRequest proto.InternalMessageInfo +var xxx_messageInfo_RpcTemplateExportAllRequest proto.InternalMessageInfo -func (m *RpcObjectDuplicateRequest) GetContextId() string { +func (m *RpcTemplateExportAllRequest) GetPath() string { if m != nil { - return m.ContextId + return m.Path } return "" } -type RpcObjectDuplicateResponse struct { - Error *RpcObjectDuplicateResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` +type RpcTemplateExportAllResponse struct { + Error *RpcTemplateExportAllResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` + Event *ResponseEvent `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"` } -func (m *RpcObjectDuplicateResponse) Reset() { *m = RpcObjectDuplicateResponse{} } -func (m *RpcObjectDuplicateResponse) String() string { return proto.CompactTextString(m) } -func (*RpcObjectDuplicateResponse) ProtoMessage() {} -func (*RpcObjectDuplicateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 33, 1} +func (m *RpcTemplateExportAllResponse) Reset() { *m = RpcTemplateExportAllResponse{} } +func (m *RpcTemplateExportAllResponse) String() string { return proto.CompactTextString(m) } +func (*RpcTemplateExportAllResponse) ProtoMessage() {} +func (*RpcTemplateExportAllResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 11, 3, 1} } -func (m *RpcObjectDuplicateResponse) XXX_Unmarshal(b []byte) error { +func (m *RpcTemplateExportAllResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcObjectDuplicateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcTemplateExportAllResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcObjectDuplicateResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcTemplateExportAllResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -36516,49 +20342,56 @@ func (m *RpcObjectDuplicateResponse) XXX_Marshal(b []byte, deterministic bool) ( return b[:n], nil } } -func (m *RpcObjectDuplicateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectDuplicateResponse.Merge(m, src) +func (m *RpcTemplateExportAllResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcTemplateExportAllResponse.Merge(m, src) } -func (m *RpcObjectDuplicateResponse) XXX_Size() int { +func (m *RpcTemplateExportAllResponse) XXX_Size() int { return m.Size() } -func (m *RpcObjectDuplicateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectDuplicateResponse.DiscardUnknown(m) +func (m *RpcTemplateExportAllResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcTemplateExportAllResponse.DiscardUnknown(m) } -var xxx_messageInfo_RpcObjectDuplicateResponse proto.InternalMessageInfo +var xxx_messageInfo_RpcTemplateExportAllResponse proto.InternalMessageInfo -func (m *RpcObjectDuplicateResponse) GetError() *RpcObjectDuplicateResponseError { +func (m *RpcTemplateExportAllResponse) GetError() *RpcTemplateExportAllResponseError { if m != nil { return m.Error } return nil } -func (m *RpcObjectDuplicateResponse) GetId() string { +func (m *RpcTemplateExportAllResponse) GetPath() string { if m != nil { - return m.Id + return m.Path } return "" } -type RpcObjectDuplicateResponseError struct { - Code RpcObjectDuplicateResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcObjectDuplicateResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +func (m *RpcTemplateExportAllResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil } -func (m *RpcObjectDuplicateResponseError) Reset() { *m = RpcObjectDuplicateResponseError{} } -func (m *RpcObjectDuplicateResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcObjectDuplicateResponseError) ProtoMessage() {} -func (*RpcObjectDuplicateResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 33, 1, 0} +type RpcTemplateExportAllResponseError struct { + Code RpcTemplateExportAllResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcTemplateExportAllResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` } -func (m *RpcObjectDuplicateResponseError) XXX_Unmarshal(b []byte) error { + +func (m *RpcTemplateExportAllResponseError) Reset() { *m = RpcTemplateExportAllResponseError{} } +func (m *RpcTemplateExportAllResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcTemplateExportAllResponseError) ProtoMessage() {} +func (*RpcTemplateExportAllResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 11, 3, 1, 0} +} +func (m *RpcTemplateExportAllResponseError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcObjectDuplicateResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcTemplateExportAllResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcObjectDuplicateResponseError.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcTemplateExportAllResponseError.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -36568,32 +20401,252 @@ func (m *RpcObjectDuplicateResponseError) XXX_Marshal(b []byte, deterministic bo return b[:n], nil } } -func (m *RpcObjectDuplicateResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcObjectDuplicateResponseError.Merge(m, src) +func (m *RpcTemplateExportAllResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcTemplateExportAllResponseError.Merge(m, src) } -func (m *RpcObjectDuplicateResponseError) XXX_Size() int { +func (m *RpcTemplateExportAllResponseError) XXX_Size() int { return m.Size() } -func (m *RpcObjectDuplicateResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcObjectDuplicateResponseError.DiscardUnknown(m) +func (m *RpcTemplateExportAllResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcTemplateExportAllResponseError.DiscardUnknown(m) } -var xxx_messageInfo_RpcObjectDuplicateResponseError proto.InternalMessageInfo +var xxx_messageInfo_RpcTemplateExportAllResponseError proto.InternalMessageInfo -func (m *RpcObjectDuplicateResponseError) GetCode() RpcObjectDuplicateResponseErrorCode { +func (m *RpcTemplateExportAllResponseError) GetCode() RpcTemplateExportAllResponseErrorCode { if m != nil { return m.Code } - return RpcObjectDuplicateResponseError_NULL + return RpcTemplateExportAllResponseError_NULL } -func (m *RpcObjectDuplicateResponseError) GetDescription() string { +func (m *RpcTemplateExportAllResponseError) GetDescription() string { if m != nil { return m.Description } return "" } +type RpcLinkPreview struct { +} + +func (m *RpcLinkPreview) Reset() { *m = RpcLinkPreview{} } +func (m *RpcLinkPreview) String() string { return proto.CompactTextString(m) } +func (*RpcLinkPreview) ProtoMessage() {} +func (*RpcLinkPreview) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 12} +} +func (m *RpcLinkPreview) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcLinkPreview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcLinkPreview.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcLinkPreview) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcLinkPreview.Merge(m, src) +} +func (m *RpcLinkPreview) XXX_Size() int { + return m.Size() +} +func (m *RpcLinkPreview) XXX_DiscardUnknown() { + xxx_messageInfo_RpcLinkPreview.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcLinkPreview proto.InternalMessageInfo + +type RpcLinkPreviewRequest struct { + Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` +} + +func (m *RpcLinkPreviewRequest) Reset() { *m = RpcLinkPreviewRequest{} } +func (m *RpcLinkPreviewRequest) String() string { return proto.CompactTextString(m) } +func (*RpcLinkPreviewRequest) ProtoMessage() {} +func (*RpcLinkPreviewRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 12, 0} +} +func (m *RpcLinkPreviewRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcLinkPreviewRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcLinkPreviewRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcLinkPreviewRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcLinkPreviewRequest.Merge(m, src) +} +func (m *RpcLinkPreviewRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcLinkPreviewRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcLinkPreviewRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcLinkPreviewRequest proto.InternalMessageInfo + +func (m *RpcLinkPreviewRequest) GetUrl() string { + if m != nil { + return m.Url + } + return "" +} + +type RpcLinkPreviewResponse struct { + Error *RpcLinkPreviewResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + LinkPreview *model.LinkPreview `protobuf:"bytes,2,opt,name=linkPreview,proto3" json:"linkPreview,omitempty"` +} + +func (m *RpcLinkPreviewResponse) Reset() { *m = RpcLinkPreviewResponse{} } +func (m *RpcLinkPreviewResponse) String() string { return proto.CompactTextString(m) } +func (*RpcLinkPreviewResponse) ProtoMessage() {} +func (*RpcLinkPreviewResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 12, 1} +} +func (m *RpcLinkPreviewResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcLinkPreviewResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcLinkPreviewResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcLinkPreviewResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcLinkPreviewResponse.Merge(m, src) +} +func (m *RpcLinkPreviewResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcLinkPreviewResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcLinkPreviewResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcLinkPreviewResponse proto.InternalMessageInfo + +func (m *RpcLinkPreviewResponse) GetError() *RpcLinkPreviewResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcLinkPreviewResponse) GetLinkPreview() *model.LinkPreview { + if m != nil { + return m.LinkPreview + } + return nil +} + +type RpcLinkPreviewResponseError struct { + Code RpcLinkPreviewResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcLinkPreviewResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcLinkPreviewResponseError) Reset() { *m = RpcLinkPreviewResponseError{} } +func (m *RpcLinkPreviewResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcLinkPreviewResponseError) ProtoMessage() {} +func (*RpcLinkPreviewResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 12, 1, 0} +} +func (m *RpcLinkPreviewResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcLinkPreviewResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcLinkPreviewResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcLinkPreviewResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcLinkPreviewResponseError.Merge(m, src) +} +func (m *RpcLinkPreviewResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcLinkPreviewResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcLinkPreviewResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcLinkPreviewResponseError proto.InternalMessageInfo + +func (m *RpcLinkPreviewResponseError) GetCode() RpcLinkPreviewResponseErrorCode { + if m != nil { + return m.Code + } + return RpcLinkPreviewResponseError_NULL +} + +func (m *RpcLinkPreviewResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcUnsplash struct { +} + +func (m *RpcUnsplash) Reset() { *m = RpcUnsplash{} } +func (m *RpcUnsplash) String() string { return proto.CompactTextString(m) } +func (*RpcUnsplash) ProtoMessage() {} +func (*RpcUnsplash) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 13} +} +func (m *RpcUnsplash) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcUnsplash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcUnsplash.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcUnsplash) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcUnsplash.Merge(m, src) +} +func (m *RpcUnsplash) XXX_Size() int { + return m.Size() +} +func (m *RpcUnsplash) XXX_DiscardUnknown() { + xxx_messageInfo_RpcUnsplash.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcUnsplash proto.InternalMessageInfo + type RpcUnsplashSearch struct { } @@ -36601,7 +20654,7 @@ func (m *RpcUnsplashSearch) Reset() { *m = RpcUnsplashSearch{} } func (m *RpcUnsplashSearch) String() string { return proto.CompactTextString(m) } func (*RpcUnsplashSearch) ProtoMessage() {} func (*RpcUnsplashSearch) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 34} + return fileDescriptor_8261c968b2e6f45c, []int{0, 13, 0} } func (m *RpcUnsplashSearch) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -36639,7 +20692,7 @@ func (m *RpcUnsplashSearchRequest) Reset() { *m = RpcUnsplashSearchReque func (m *RpcUnsplashSearchRequest) String() string { return proto.CompactTextString(m) } func (*RpcUnsplashSearchRequest) ProtoMessage() {} func (*RpcUnsplashSearchRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 34, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 13, 0, 0} } func (m *RpcUnsplashSearchRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -36691,7 +20744,7 @@ func (m *RpcUnsplashSearchResponse) Reset() { *m = RpcUnsplashSearchResp func (m *RpcUnsplashSearchResponse) String() string { return proto.CompactTextString(m) } func (*RpcUnsplashSearchResponse) ProtoMessage() {} func (*RpcUnsplashSearchResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 34, 1} + return fileDescriptor_8261c968b2e6f45c, []int{0, 13, 0, 1} } func (m *RpcUnsplashSearchResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -36745,7 +20798,7 @@ func (m *RpcUnsplashSearchResponsePicture) Reset() { *m = RpcUnsplashSea func (m *RpcUnsplashSearchResponsePicture) String() string { return proto.CompactTextString(m) } func (*RpcUnsplashSearchResponsePicture) ProtoMessage() {} func (*RpcUnsplashSearchResponsePicture) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 34, 1, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 13, 0, 1, 0} } func (m *RpcUnsplashSearchResponsePicture) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -36811,7 +20864,7 @@ func (m *RpcUnsplashSearchResponseError) Reset() { *m = RpcUnsplashSearc func (m *RpcUnsplashSearchResponseError) String() string { return proto.CompactTextString(m) } func (*RpcUnsplashSearchResponseError) ProtoMessage() {} func (*RpcUnsplashSearchResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 34, 1, 1} + return fileDescriptor_8261c968b2e6f45c, []int{0, 13, 0, 1, 1} } func (m *RpcUnsplashSearchResponseError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -36861,7 +20914,7 @@ func (m *RpcUnsplashDownload) Reset() { *m = RpcUnsplashDownload{} } func (m *RpcUnsplashDownload) String() string { return proto.CompactTextString(m) } func (*RpcUnsplashDownload) ProtoMessage() {} func (*RpcUnsplashDownload) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 35} + return fileDescriptor_8261c968b2e6f45c, []int{0, 13, 1} } func (m *RpcUnsplashDownload) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -36898,7 +20951,7 @@ func (m *RpcUnsplashDownloadRequest) Reset() { *m = RpcUnsplashDownloadR func (m *RpcUnsplashDownloadRequest) String() string { return proto.CompactTextString(m) } func (*RpcUnsplashDownloadRequest) ProtoMessage() {} func (*RpcUnsplashDownloadRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 35, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 13, 1, 0} } func (m *RpcUnsplashDownloadRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -36943,7 +20996,7 @@ func (m *RpcUnsplashDownloadResponse) Reset() { *m = RpcUnsplashDownload func (m *RpcUnsplashDownloadResponse) String() string { return proto.CompactTextString(m) } func (*RpcUnsplashDownloadResponse) ProtoMessage() {} func (*RpcUnsplashDownloadResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 35, 1} + return fileDescriptor_8261c968b2e6f45c, []int{0, 13, 1, 1} } func (m *RpcUnsplashDownloadResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -36995,7 +21048,7 @@ func (m *RpcUnsplashDownloadResponseError) Reset() { *m = RpcUnsplashDow func (m *RpcUnsplashDownloadResponseError) String() string { return proto.CompactTextString(m) } func (*RpcUnsplashDownloadResponseError) ProtoMessage() {} func (*RpcUnsplashDownloadResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 35, 1, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 13, 1, 1, 0} } func (m *RpcUnsplashDownloadResponseError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -37038,21 +21091,22 @@ func (m *RpcUnsplashDownloadResponseError) GetDescription() string { return "" } -type RpcApplyTemplate struct { +// Block commands +type RpcBlock struct { } -func (m *RpcApplyTemplate) Reset() { *m = RpcApplyTemplate{} } -func (m *RpcApplyTemplate) String() string { return proto.CompactTextString(m) } -func (*RpcApplyTemplate) ProtoMessage() {} -func (*RpcApplyTemplate) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 36} +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_8261c968b2e6f45c, []int{0, 14} } -func (m *RpcApplyTemplate) XXX_Unmarshal(b []byte) error { +func (m *RpcBlock) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcApplyTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcApplyTemplate.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcBlock.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -37062,36 +21116,33 @@ func (m *RpcApplyTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return b[:n], nil } } -func (m *RpcApplyTemplate) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcApplyTemplate.Merge(m, src) +func (m *RpcBlock) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlock.Merge(m, src) } -func (m *RpcApplyTemplate) XXX_Size() int { +func (m *RpcBlock) XXX_Size() int { return m.Size() } -func (m *RpcApplyTemplate) XXX_DiscardUnknown() { - xxx_messageInfo_RpcApplyTemplate.DiscardUnknown(m) +func (m *RpcBlock) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlock.DiscardUnknown(m) } -var xxx_messageInfo_RpcApplyTemplate proto.InternalMessageInfo +var xxx_messageInfo_RpcBlock proto.InternalMessageInfo -type RpcApplyTemplateRequest struct { - ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` - // id of template - TemplateId string `protobuf:"bytes,2,opt,name=templateId,proto3" json:"templateId,omitempty"` +type RpcBlockReplace struct { } -func (m *RpcApplyTemplateRequest) Reset() { *m = RpcApplyTemplateRequest{} } -func (m *RpcApplyTemplateRequest) String() string { return proto.CompactTextString(m) } -func (*RpcApplyTemplateRequest) ProtoMessage() {} -func (*RpcApplyTemplateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 36, 0} +func (m *RpcBlockReplace) Reset() { *m = RpcBlockReplace{} } +func (m *RpcBlockReplace) String() string { return proto.CompactTextString(m) } +func (*RpcBlockReplace) ProtoMessage() {} +func (*RpcBlockReplace) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 0} } -func (m *RpcApplyTemplateRequest) XXX_Unmarshal(b []byte) error { +func (m *RpcBlockReplace) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcApplyTemplateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcBlockReplace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcApplyTemplateRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcBlockReplace.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -37101,48 +21152,96 @@ func (m *RpcApplyTemplateRequest) XXX_Marshal(b []byte, deterministic bool) ([]b return b[:n], nil } } -func (m *RpcApplyTemplateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcApplyTemplateRequest.Merge(m, src) +func (m *RpcBlockReplace) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockReplace.Merge(m, src) } -func (m *RpcApplyTemplateRequest) XXX_Size() int { +func (m *RpcBlockReplace) XXX_Size() int { return m.Size() } -func (m *RpcApplyTemplateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RpcApplyTemplateRequest.DiscardUnknown(m) +func (m *RpcBlockReplace) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockReplace.DiscardUnknown(m) } -var xxx_messageInfo_RpcApplyTemplateRequest proto.InternalMessageInfo +var xxx_messageInfo_RpcBlockReplace proto.InternalMessageInfo -func (m *RpcApplyTemplateRequest) GetContextId() string { +type RpcBlockReplaceRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` + Block *model.Block `protobuf:"bytes,3,opt,name=block,proto3" json:"block,omitempty"` +} + +func (m *RpcBlockReplaceRequest) Reset() { *m = RpcBlockReplaceRequest{} } +func (m *RpcBlockReplaceRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockReplaceRequest) ProtoMessage() {} +func (*RpcBlockReplaceRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 0, 0} +} +func (m *RpcBlockReplaceRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockReplaceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockReplaceRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockReplaceRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockReplaceRequest.Merge(m, src) +} +func (m *RpcBlockReplaceRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockReplaceRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockReplaceRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockReplaceRequest proto.InternalMessageInfo + +func (m *RpcBlockReplaceRequest) GetContextId() string { if m != nil { return m.ContextId } return "" } -func (m *RpcApplyTemplateRequest) GetTemplateId() string { +func (m *RpcBlockReplaceRequest) GetBlockId() string { if m != nil { - return m.TemplateId + return m.BlockId } return "" } -type RpcApplyTemplateResponse struct { - Error *RpcApplyTemplateResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +func (m *RpcBlockReplaceRequest) GetBlock() *model.Block { + if m != nil { + return m.Block + } + return nil } -func (m *RpcApplyTemplateResponse) Reset() { *m = RpcApplyTemplateResponse{} } -func (m *RpcApplyTemplateResponse) String() string { return proto.CompactTextString(m) } -func (*RpcApplyTemplateResponse) ProtoMessage() {} -func (*RpcApplyTemplateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 36, 1} +type RpcBlockReplaceResponse struct { + Error *RpcBlockReplaceResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` + Event *ResponseEvent `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"` } -func (m *RpcApplyTemplateResponse) XXX_Unmarshal(b []byte) error { + +func (m *RpcBlockReplaceResponse) Reset() { *m = RpcBlockReplaceResponse{} } +func (m *RpcBlockReplaceResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockReplaceResponse) ProtoMessage() {} +func (*RpcBlockReplaceResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 0, 1} +} +func (m *RpcBlockReplaceResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcApplyTemplateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcBlockReplaceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcApplyTemplateResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcBlockReplaceResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -37152,42 +21251,56 @@ func (m *RpcApplyTemplateResponse) XXX_Marshal(b []byte, deterministic bool) ([] return b[:n], nil } } -func (m *RpcApplyTemplateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcApplyTemplateResponse.Merge(m, src) +func (m *RpcBlockReplaceResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockReplaceResponse.Merge(m, src) } -func (m *RpcApplyTemplateResponse) XXX_Size() int { +func (m *RpcBlockReplaceResponse) XXX_Size() int { return m.Size() } -func (m *RpcApplyTemplateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RpcApplyTemplateResponse.DiscardUnknown(m) +func (m *RpcBlockReplaceResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockReplaceResponse.DiscardUnknown(m) } -var xxx_messageInfo_RpcApplyTemplateResponse proto.InternalMessageInfo +var xxx_messageInfo_RpcBlockReplaceResponse proto.InternalMessageInfo -func (m *RpcApplyTemplateResponse) GetError() *RpcApplyTemplateResponseError { +func (m *RpcBlockReplaceResponse) GetError() *RpcBlockReplaceResponseError { if m != nil { return m.Error } return nil } -type RpcApplyTemplateResponseError struct { - Code RpcApplyTemplateResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcApplyTemplateResponseErrorCode" json:"code,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +func (m *RpcBlockReplaceResponse) GetBlockId() string { + if m != nil { + return m.BlockId + } + return "" } -func (m *RpcApplyTemplateResponseError) Reset() { *m = RpcApplyTemplateResponseError{} } -func (m *RpcApplyTemplateResponseError) String() string { return proto.CompactTextString(m) } -func (*RpcApplyTemplateResponseError) ProtoMessage() {} -func (*RpcApplyTemplateResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 36, 1, 0} +func (m *RpcBlockReplaceResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil } -func (m *RpcApplyTemplateResponseError) XXX_Unmarshal(b []byte) error { + +type RpcBlockReplaceResponseError struct { + Code RpcBlockReplaceResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockReplaceResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockReplaceResponseError) Reset() { *m = RpcBlockReplaceResponseError{} } +func (m *RpcBlockReplaceResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockReplaceResponseError) ProtoMessage() {} +func (*RpcBlockReplaceResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 0, 1, 0} +} +func (m *RpcBlockReplaceResponseError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *RpcApplyTemplateResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *RpcBlockReplaceResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_RpcApplyTemplateResponseError.Marshal(b, m, deterministic) + return xxx_messageInfo_RpcBlockReplaceResponseError.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -37197,26 +21310,13347 @@ func (m *RpcApplyTemplateResponseError) XXX_Marshal(b []byte, deterministic bool return b[:n], nil } } -func (m *RpcApplyTemplateResponseError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RpcApplyTemplateResponseError.Merge(m, src) +func (m *RpcBlockReplaceResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockReplaceResponseError.Merge(m, src) } -func (m *RpcApplyTemplateResponseError) XXX_Size() int { +func (m *RpcBlockReplaceResponseError) XXX_Size() int { return m.Size() } -func (m *RpcApplyTemplateResponseError) XXX_DiscardUnknown() { - xxx_messageInfo_RpcApplyTemplateResponseError.DiscardUnknown(m) +func (m *RpcBlockReplaceResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockReplaceResponseError.DiscardUnknown(m) } -var xxx_messageInfo_RpcApplyTemplateResponseError proto.InternalMessageInfo +var xxx_messageInfo_RpcBlockReplaceResponseError proto.InternalMessageInfo -func (m *RpcApplyTemplateResponseError) GetCode() RpcApplyTemplateResponseErrorCode { +func (m *RpcBlockReplaceResponseError) GetCode() RpcBlockReplaceResponseErrorCode { if m != nil { return m.Code } - return RpcApplyTemplateResponseError_NULL + return RpcBlockReplaceResponseError_NULL } -func (m *RpcApplyTemplateResponseError) GetDescription() string { +func (m *RpcBlockReplaceResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockSplit struct { +} + +func (m *RpcBlockSplit) Reset() { *m = RpcBlockSplit{} } +func (m *RpcBlockSplit) String() string { return proto.CompactTextString(m) } +func (*RpcBlockSplit) ProtoMessage() {} +func (*RpcBlockSplit) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 1} +} +func (m *RpcBlockSplit) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockSplit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockSplit.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockSplit) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockSplit.Merge(m, src) +} +func (m *RpcBlockSplit) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockSplit) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockSplit.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockSplit proto.InternalMessageInfo + +type RpcBlockSplitRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,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"` + Style model.BlockContentTextStyle `protobuf:"varint,4,opt,name=style,proto3,enum=anytype.model.BlockContentTextStyle" json:"style,omitempty"` + Mode RpcBlockSplitRequestMode `protobuf:"varint,5,opt,name=mode,proto3,enum=anytype.RpcBlockSplitRequestMode" json:"mode,omitempty"` +} + +func (m *RpcBlockSplitRequest) Reset() { *m = RpcBlockSplitRequest{} } +func (m *RpcBlockSplitRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockSplitRequest) ProtoMessage() {} +func (*RpcBlockSplitRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 1, 0} +} +func (m *RpcBlockSplitRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockSplitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockSplitRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockSplitRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockSplitRequest.Merge(m, src) +} +func (m *RpcBlockSplitRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockSplitRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockSplitRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockSplitRequest proto.InternalMessageInfo + +func (m *RpcBlockSplitRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockSplitRequest) GetBlockId() string { + if m != nil { + return m.BlockId + } + return "" +} + +func (m *RpcBlockSplitRequest) GetRange() *model.Range { + if m != nil { + return m.Range + } + return nil +} + +func (m *RpcBlockSplitRequest) GetStyle() model.BlockContentTextStyle { + if m != nil { + return m.Style + } + return model.BlockContentText_Paragraph +} + +func (m *RpcBlockSplitRequest) GetMode() RpcBlockSplitRequestMode { + if m != nil { + return m.Mode + } + return RpcBlockSplitRequest_BOTTOM +} + +type RpcBlockSplitResponse struct { + Error *RpcBlockSplitResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` + Event *ResponseEvent `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockSplitResponse) Reset() { *m = RpcBlockSplitResponse{} } +func (m *RpcBlockSplitResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockSplitResponse) ProtoMessage() {} +func (*RpcBlockSplitResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 1, 1} +} +func (m *RpcBlockSplitResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockSplitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockSplitResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockSplitResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockSplitResponse.Merge(m, src) +} +func (m *RpcBlockSplitResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockSplitResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockSplitResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockSplitResponse proto.InternalMessageInfo + +func (m *RpcBlockSplitResponse) GetError() *RpcBlockSplitResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockSplitResponse) GetBlockId() string { + if m != nil { + return m.BlockId + } + return "" +} + +func (m *RpcBlockSplitResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockSplitResponseError struct { + Code RpcBlockSplitResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockSplitResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockSplitResponseError) Reset() { *m = RpcBlockSplitResponseError{} } +func (m *RpcBlockSplitResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockSplitResponseError) ProtoMessage() {} +func (*RpcBlockSplitResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 1, 1, 0} +} +func (m *RpcBlockSplitResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockSplitResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockSplitResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockSplitResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockSplitResponseError.Merge(m, src) +} +func (m *RpcBlockSplitResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockSplitResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockSplitResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockSplitResponseError proto.InternalMessageInfo + +func (m *RpcBlockSplitResponseError) GetCode() RpcBlockSplitResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockSplitResponseError_NULL +} + +func (m *RpcBlockSplitResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockMerge struct { +} + +func (m *RpcBlockMerge) Reset() { *m = RpcBlockMerge{} } +func (m *RpcBlockMerge) String() string { return proto.CompactTextString(m) } +func (*RpcBlockMerge) ProtoMessage() {} +func (*RpcBlockMerge) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 2} +} +func (m *RpcBlockMerge) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockMerge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockMerge.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockMerge) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockMerge.Merge(m, src) +} +func (m *RpcBlockMerge) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockMerge) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockMerge.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockMerge proto.InternalMessageInfo + +type RpcBlockMergeRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + FirstBlockId string `protobuf:"bytes,2,opt,name=firstBlockId,proto3" json:"firstBlockId,omitempty"` + SecondBlockId string `protobuf:"bytes,3,opt,name=secondBlockId,proto3" json:"secondBlockId,omitempty"` +} + +func (m *RpcBlockMergeRequest) Reset() { *m = RpcBlockMergeRequest{} } +func (m *RpcBlockMergeRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockMergeRequest) ProtoMessage() {} +func (*RpcBlockMergeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 2, 0} +} +func (m *RpcBlockMergeRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockMergeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockMergeRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockMergeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockMergeRequest.Merge(m, src) +} +func (m *RpcBlockMergeRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockMergeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockMergeRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockMergeRequest proto.InternalMessageInfo + +func (m *RpcBlockMergeRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockMergeRequest) GetFirstBlockId() string { + if m != nil { + return m.FirstBlockId + } + return "" +} + +func (m *RpcBlockMergeRequest) GetSecondBlockId() string { + if m != nil { + return m.SecondBlockId + } + return "" +} + +type RpcBlockMergeResponse struct { + Error *RpcBlockMergeResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockMergeResponse) Reset() { *m = RpcBlockMergeResponse{} } +func (m *RpcBlockMergeResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockMergeResponse) ProtoMessage() {} +func (*RpcBlockMergeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 2, 1} +} +func (m *RpcBlockMergeResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockMergeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockMergeResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockMergeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockMergeResponse.Merge(m, src) +} +func (m *RpcBlockMergeResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockMergeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockMergeResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockMergeResponse proto.InternalMessageInfo + +func (m *RpcBlockMergeResponse) GetError() *RpcBlockMergeResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockMergeResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockMergeResponseError struct { + Code RpcBlockMergeResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockMergeResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockMergeResponseError) Reset() { *m = RpcBlockMergeResponseError{} } +func (m *RpcBlockMergeResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockMergeResponseError) ProtoMessage() {} +func (*RpcBlockMergeResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 2, 1, 0} +} +func (m *RpcBlockMergeResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockMergeResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockMergeResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockMergeResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockMergeResponseError.Merge(m, src) +} +func (m *RpcBlockMergeResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockMergeResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockMergeResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockMergeResponseError proto.InternalMessageInfo + +func (m *RpcBlockMergeResponseError) GetCode() RpcBlockMergeResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockMergeResponseError_NULL +} + +func (m *RpcBlockMergeResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockCopy struct { +} + +func (m *RpcBlockCopy) Reset() { *m = RpcBlockCopy{} } +func (m *RpcBlockCopy) String() string { return proto.CompactTextString(m) } +func (*RpcBlockCopy) ProtoMessage() {} +func (*RpcBlockCopy) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 3} +} +func (m *RpcBlockCopy) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockCopy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockCopy.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockCopy) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockCopy.Merge(m, src) +} +func (m *RpcBlockCopy) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockCopy) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockCopy.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockCopy proto.InternalMessageInfo + +type RpcBlockCopyRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + Blocks []*model.Block `protobuf:"bytes,2,rep,name=blocks,proto3" json:"blocks,omitempty"` + SelectedTextRange *model.Range `protobuf:"bytes,3,opt,name=selectedTextRange,proto3" json:"selectedTextRange,omitempty"` +} + +func (m *RpcBlockCopyRequest) Reset() { *m = RpcBlockCopyRequest{} } +func (m *RpcBlockCopyRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockCopyRequest) ProtoMessage() {} +func (*RpcBlockCopyRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 3, 0} +} +func (m *RpcBlockCopyRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockCopyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockCopyRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockCopyRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockCopyRequest.Merge(m, src) +} +func (m *RpcBlockCopyRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockCopyRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockCopyRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockCopyRequest proto.InternalMessageInfo + +func (m *RpcBlockCopyRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockCopyRequest) GetBlocks() []*model.Block { + if m != nil { + return m.Blocks + } + return nil +} + +func (m *RpcBlockCopyRequest) GetSelectedTextRange() *model.Range { + if m != nil { + return m.SelectedTextRange + } + return nil +} + +type RpcBlockCopyResponse struct { + Error *RpcBlockCopyResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + TextSlot string `protobuf:"bytes,2,opt,name=textSlot,proto3" json:"textSlot,omitempty"` + HtmlSlot string `protobuf:"bytes,3,opt,name=htmlSlot,proto3" json:"htmlSlot,omitempty"` + AnySlot []*model.Block `protobuf:"bytes,4,rep,name=anySlot,proto3" json:"anySlot,omitempty"` +} + +func (m *RpcBlockCopyResponse) Reset() { *m = RpcBlockCopyResponse{} } +func (m *RpcBlockCopyResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockCopyResponse) ProtoMessage() {} +func (*RpcBlockCopyResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 3, 1} +} +func (m *RpcBlockCopyResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockCopyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockCopyResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockCopyResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockCopyResponse.Merge(m, src) +} +func (m *RpcBlockCopyResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockCopyResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockCopyResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockCopyResponse proto.InternalMessageInfo + +func (m *RpcBlockCopyResponse) GetError() *RpcBlockCopyResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockCopyResponse) GetTextSlot() string { + if m != nil { + return m.TextSlot + } + return "" +} + +func (m *RpcBlockCopyResponse) GetHtmlSlot() string { + if m != nil { + return m.HtmlSlot + } + return "" +} + +func (m *RpcBlockCopyResponse) GetAnySlot() []*model.Block { + if m != nil { + return m.AnySlot + } + return nil +} + +type RpcBlockCopyResponseError struct { + Code RpcBlockCopyResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockCopyResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockCopyResponseError) Reset() { *m = RpcBlockCopyResponseError{} } +func (m *RpcBlockCopyResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockCopyResponseError) ProtoMessage() {} +func (*RpcBlockCopyResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 3, 1, 0} +} +func (m *RpcBlockCopyResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockCopyResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockCopyResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockCopyResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockCopyResponseError.Merge(m, src) +} +func (m *RpcBlockCopyResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockCopyResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockCopyResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockCopyResponseError proto.InternalMessageInfo + +func (m *RpcBlockCopyResponseError) GetCode() RpcBlockCopyResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockCopyResponseError_NULL +} + +func (m *RpcBlockCopyResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockPaste struct { +} + +func (m *RpcBlockPaste) Reset() { *m = RpcBlockPaste{} } +func (m *RpcBlockPaste) String() string { return proto.CompactTextString(m) } +func (*RpcBlockPaste) ProtoMessage() {} +func (*RpcBlockPaste) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 4} +} +func (m *RpcBlockPaste) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockPaste) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockPaste.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockPaste) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockPaste.Merge(m, src) +} +func (m *RpcBlockPaste) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockPaste) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockPaste.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockPaste proto.InternalMessageInfo + +type RpcBlockPasteRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + FocusedBlockId string `protobuf:"bytes,2,opt,name=focusedBlockId,proto3" json:"focusedBlockId,omitempty"` + SelectedTextRange *model.Range `protobuf:"bytes,3,opt,name=selectedTextRange,proto3" json:"selectedTextRange,omitempty"` + SelectedBlockIds []string `protobuf:"bytes,4,rep,name=selectedBlockIds,proto3" json:"selectedBlockIds,omitempty"` + IsPartOfBlock bool `protobuf:"varint,5,opt,name=isPartOfBlock,proto3" json:"isPartOfBlock,omitempty"` + TextSlot string `protobuf:"bytes,6,opt,name=textSlot,proto3" json:"textSlot,omitempty"` + HtmlSlot string `protobuf:"bytes,7,opt,name=htmlSlot,proto3" json:"htmlSlot,omitempty"` + AnySlot []*model.Block `protobuf:"bytes,8,rep,name=anySlot,proto3" json:"anySlot,omitempty"` + FileSlot []*RpcBlockPasteRequestFile `protobuf:"bytes,9,rep,name=fileSlot,proto3" json:"fileSlot,omitempty"` +} + +func (m *RpcBlockPasteRequest) Reset() { *m = RpcBlockPasteRequest{} } +func (m *RpcBlockPasteRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockPasteRequest) ProtoMessage() {} +func (*RpcBlockPasteRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 4, 0} +} +func (m *RpcBlockPasteRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockPasteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockPasteRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockPasteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockPasteRequest.Merge(m, src) +} +func (m *RpcBlockPasteRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockPasteRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockPasteRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockPasteRequest proto.InternalMessageInfo + +func (m *RpcBlockPasteRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockPasteRequest) GetFocusedBlockId() string { + if m != nil { + return m.FocusedBlockId + } + return "" +} + +func (m *RpcBlockPasteRequest) GetSelectedTextRange() *model.Range { + if m != nil { + return m.SelectedTextRange + } + return nil +} + +func (m *RpcBlockPasteRequest) GetSelectedBlockIds() []string { + if m != nil { + return m.SelectedBlockIds + } + return nil +} + +func (m *RpcBlockPasteRequest) GetIsPartOfBlock() bool { + if m != nil { + return m.IsPartOfBlock + } + return false +} + +func (m *RpcBlockPasteRequest) GetTextSlot() string { + if m != nil { + return m.TextSlot + } + return "" +} + +func (m *RpcBlockPasteRequest) GetHtmlSlot() string { + if m != nil { + return m.HtmlSlot + } + return "" +} + +func (m *RpcBlockPasteRequest) GetAnySlot() []*model.Block { + if m != nil { + return m.AnySlot + } + return nil +} + +func (m *RpcBlockPasteRequest) GetFileSlot() []*RpcBlockPasteRequestFile { + if m != nil { + return m.FileSlot + } + return nil +} + +type RpcBlockPasteRequestFile struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + LocalPath string `protobuf:"bytes,3,opt,name=localPath,proto3" json:"localPath,omitempty"` +} + +func (m *RpcBlockPasteRequestFile) Reset() { *m = RpcBlockPasteRequestFile{} } +func (m *RpcBlockPasteRequestFile) String() string { return proto.CompactTextString(m) } +func (*RpcBlockPasteRequestFile) ProtoMessage() {} +func (*RpcBlockPasteRequestFile) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 4, 0, 0} +} +func (m *RpcBlockPasteRequestFile) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockPasteRequestFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockPasteRequestFile.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockPasteRequestFile) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockPasteRequestFile.Merge(m, src) +} +func (m *RpcBlockPasteRequestFile) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockPasteRequestFile) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockPasteRequestFile.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockPasteRequestFile proto.InternalMessageInfo + +func (m *RpcBlockPasteRequestFile) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *RpcBlockPasteRequestFile) GetData() []byte { + if m != nil { + return m.Data + } + return nil +} + +func (m *RpcBlockPasteRequestFile) GetLocalPath() string { + if m != nil { + return m.LocalPath + } + return "" +} + +type RpcBlockPasteResponse struct { + Error *RpcBlockPasteResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + BlockIds []string `protobuf:"bytes,2,rep,name=blockIds,proto3" json:"blockIds,omitempty"` + CaretPosition int32 `protobuf:"varint,3,opt,name=caretPosition,proto3" json:"caretPosition,omitempty"` + IsSameBlockCaret bool `protobuf:"varint,4,opt,name=isSameBlockCaret,proto3" json:"isSameBlockCaret,omitempty"` + Event *ResponseEvent `protobuf:"bytes,5,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockPasteResponse) Reset() { *m = RpcBlockPasteResponse{} } +func (m *RpcBlockPasteResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockPasteResponse) ProtoMessage() {} +func (*RpcBlockPasteResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 4, 1} +} +func (m *RpcBlockPasteResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockPasteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockPasteResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockPasteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockPasteResponse.Merge(m, src) +} +func (m *RpcBlockPasteResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockPasteResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockPasteResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockPasteResponse proto.InternalMessageInfo + +func (m *RpcBlockPasteResponse) GetError() *RpcBlockPasteResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockPasteResponse) GetBlockIds() []string { + if m != nil { + return m.BlockIds + } + return nil +} + +func (m *RpcBlockPasteResponse) GetCaretPosition() int32 { + if m != nil { + return m.CaretPosition + } + return 0 +} + +func (m *RpcBlockPasteResponse) GetIsSameBlockCaret() bool { + if m != nil { + return m.IsSameBlockCaret + } + return false +} + +func (m *RpcBlockPasteResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockPasteResponseError struct { + Code RpcBlockPasteResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockPasteResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockPasteResponseError) Reset() { *m = RpcBlockPasteResponseError{} } +func (m *RpcBlockPasteResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockPasteResponseError) ProtoMessage() {} +func (*RpcBlockPasteResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 4, 1, 0} +} +func (m *RpcBlockPasteResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockPasteResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockPasteResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockPasteResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockPasteResponseError.Merge(m, src) +} +func (m *RpcBlockPasteResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockPasteResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockPasteResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockPasteResponseError proto.InternalMessageInfo + +func (m *RpcBlockPasteResponseError) GetCode() RpcBlockPasteResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockPasteResponseError_NULL +} + +func (m *RpcBlockPasteResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockCut struct { +} + +func (m *RpcBlockCut) Reset() { *m = RpcBlockCut{} } +func (m *RpcBlockCut) String() string { return proto.CompactTextString(m) } +func (*RpcBlockCut) ProtoMessage() {} +func (*RpcBlockCut) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 5} +} +func (m *RpcBlockCut) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockCut) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockCut.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockCut) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockCut.Merge(m, src) +} +func (m *RpcBlockCut) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockCut) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockCut.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockCut proto.InternalMessageInfo + +type RpcBlockCutRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + Blocks []*model.Block `protobuf:"bytes,2,rep,name=blocks,proto3" json:"blocks,omitempty"` + SelectedTextRange *model.Range `protobuf:"bytes,3,opt,name=selectedTextRange,proto3" json:"selectedTextRange,omitempty"` +} + +func (m *RpcBlockCutRequest) Reset() { *m = RpcBlockCutRequest{} } +func (m *RpcBlockCutRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockCutRequest) ProtoMessage() {} +func (*RpcBlockCutRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 5, 0} +} +func (m *RpcBlockCutRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockCutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockCutRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockCutRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockCutRequest.Merge(m, src) +} +func (m *RpcBlockCutRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockCutRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockCutRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockCutRequest proto.InternalMessageInfo + +func (m *RpcBlockCutRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockCutRequest) GetBlocks() []*model.Block { + if m != nil { + return m.Blocks + } + return nil +} + +func (m *RpcBlockCutRequest) GetSelectedTextRange() *model.Range { + if m != nil { + return m.SelectedTextRange + } + return nil +} + +type RpcBlockCutResponse struct { + Error *RpcBlockCutResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + TextSlot string `protobuf:"bytes,2,opt,name=textSlot,proto3" json:"textSlot,omitempty"` + HtmlSlot string `protobuf:"bytes,3,opt,name=htmlSlot,proto3" json:"htmlSlot,omitempty"` + AnySlot []*model.Block `protobuf:"bytes,4,rep,name=anySlot,proto3" json:"anySlot,omitempty"` + Event *ResponseEvent `protobuf:"bytes,5,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockCutResponse) Reset() { *m = RpcBlockCutResponse{} } +func (m *RpcBlockCutResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockCutResponse) ProtoMessage() {} +func (*RpcBlockCutResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 5, 1} +} +func (m *RpcBlockCutResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockCutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockCutResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockCutResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockCutResponse.Merge(m, src) +} +func (m *RpcBlockCutResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockCutResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockCutResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockCutResponse proto.InternalMessageInfo + +func (m *RpcBlockCutResponse) GetError() *RpcBlockCutResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockCutResponse) GetTextSlot() string { + if m != nil { + return m.TextSlot + } + return "" +} + +func (m *RpcBlockCutResponse) GetHtmlSlot() string { + if m != nil { + return m.HtmlSlot + } + return "" +} + +func (m *RpcBlockCutResponse) GetAnySlot() []*model.Block { + if m != nil { + return m.AnySlot + } + return nil +} + +func (m *RpcBlockCutResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockCutResponseError struct { + Code RpcBlockCutResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockCutResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockCutResponseError) Reset() { *m = RpcBlockCutResponseError{} } +func (m *RpcBlockCutResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockCutResponseError) ProtoMessage() {} +func (*RpcBlockCutResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 5, 1, 0} +} +func (m *RpcBlockCutResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockCutResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockCutResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockCutResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockCutResponseError.Merge(m, src) +} +func (m *RpcBlockCutResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockCutResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockCutResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockCutResponseError proto.InternalMessageInfo + +func (m *RpcBlockCutResponseError) GetCode() RpcBlockCutResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockCutResponseError_NULL +} + +func (m *RpcBlockCutResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockUpload struct { +} + +func (m *RpcBlockUpload) Reset() { *m = RpcBlockUpload{} } +func (m *RpcBlockUpload) String() string { return proto.CompactTextString(m) } +func (*RpcBlockUpload) ProtoMessage() {} +func (*RpcBlockUpload) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 6} +} +func (m *RpcBlockUpload) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockUpload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockUpload.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockUpload) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockUpload.Merge(m, src) +} +func (m *RpcBlockUpload) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockUpload) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockUpload.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockUpload proto.InternalMessageInfo + +type RpcBlockUploadRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` + FilePath string `protobuf:"bytes,3,opt,name=filePath,proto3" json:"filePath,omitempty"` + Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"` +} + +func (m *RpcBlockUploadRequest) Reset() { *m = RpcBlockUploadRequest{} } +func (m *RpcBlockUploadRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockUploadRequest) ProtoMessage() {} +func (*RpcBlockUploadRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 6, 0} +} +func (m *RpcBlockUploadRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockUploadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockUploadRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockUploadRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockUploadRequest.Merge(m, src) +} +func (m *RpcBlockUploadRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockUploadRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockUploadRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockUploadRequest proto.InternalMessageInfo + +func (m *RpcBlockUploadRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockUploadRequest) GetBlockId() string { + if m != nil { + return m.BlockId + } + return "" +} + +func (m *RpcBlockUploadRequest) GetFilePath() string { + if m != nil { + return m.FilePath + } + return "" +} + +func (m *RpcBlockUploadRequest) GetUrl() string { + if m != nil { + return m.Url + } + return "" +} + +type RpcBlockUploadResponse struct { + Error *RpcBlockUploadResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockUploadResponse) Reset() { *m = RpcBlockUploadResponse{} } +func (m *RpcBlockUploadResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockUploadResponse) ProtoMessage() {} +func (*RpcBlockUploadResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 6, 1} +} +func (m *RpcBlockUploadResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockUploadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockUploadResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockUploadResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockUploadResponse.Merge(m, src) +} +func (m *RpcBlockUploadResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockUploadResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockUploadResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockUploadResponse proto.InternalMessageInfo + +func (m *RpcBlockUploadResponse) GetError() *RpcBlockUploadResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockUploadResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockUploadResponseError struct { + Code RpcBlockUploadResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockUploadResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockUploadResponseError) Reset() { *m = RpcBlockUploadResponseError{} } +func (m *RpcBlockUploadResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockUploadResponseError) ProtoMessage() {} +func (*RpcBlockUploadResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 6, 1, 0} +} +func (m *RpcBlockUploadResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockUploadResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockUploadResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockUploadResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockUploadResponseError.Merge(m, src) +} +func (m *RpcBlockUploadResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockUploadResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockUploadResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockUploadResponseError proto.InternalMessageInfo + +func (m *RpcBlockUploadResponseError) GetCode() RpcBlockUploadResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockUploadResponseError_NULL +} + +func (m *RpcBlockUploadResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockDownload struct { +} + +func (m *RpcBlockDownload) Reset() { *m = RpcBlockDownload{} } +func (m *RpcBlockDownload) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDownload) ProtoMessage() {} +func (*RpcBlockDownload) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 7} +} +func (m *RpcBlockDownload) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDownload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDownload.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDownload) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDownload.Merge(m, src) +} +func (m *RpcBlockDownload) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDownload) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDownload.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDownload proto.InternalMessageInfo + +type RpcBlockDownloadRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` +} + +func (m *RpcBlockDownloadRequest) Reset() { *m = RpcBlockDownloadRequest{} } +func (m *RpcBlockDownloadRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDownloadRequest) ProtoMessage() {} +func (*RpcBlockDownloadRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 7, 0} +} +func (m *RpcBlockDownloadRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDownloadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDownloadRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDownloadRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDownloadRequest.Merge(m, src) +} +func (m *RpcBlockDownloadRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDownloadRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDownloadRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDownloadRequest proto.InternalMessageInfo + +func (m *RpcBlockDownloadRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockDownloadRequest) GetBlockId() string { + if m != nil { + return m.BlockId + } + return "" +} + +type RpcBlockDownloadResponse struct { + Error *RpcBlockDownloadResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockDownloadResponse) Reset() { *m = RpcBlockDownloadResponse{} } +func (m *RpcBlockDownloadResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDownloadResponse) ProtoMessage() {} +func (*RpcBlockDownloadResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 7, 1} +} +func (m *RpcBlockDownloadResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDownloadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDownloadResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDownloadResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDownloadResponse.Merge(m, src) +} +func (m *RpcBlockDownloadResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDownloadResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDownloadResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDownloadResponse proto.InternalMessageInfo + +func (m *RpcBlockDownloadResponse) GetError() *RpcBlockDownloadResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockDownloadResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockDownloadResponseError struct { + Code RpcBlockDownloadResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockDownloadResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockDownloadResponseError) Reset() { *m = RpcBlockDownloadResponseError{} } +func (m *RpcBlockDownloadResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDownloadResponseError) ProtoMessage() {} +func (*RpcBlockDownloadResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 7, 1, 0} +} +func (m *RpcBlockDownloadResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDownloadResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDownloadResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDownloadResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDownloadResponseError.Merge(m, src) +} +func (m *RpcBlockDownloadResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDownloadResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDownloadResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDownloadResponseError proto.InternalMessageInfo + +func (m *RpcBlockDownloadResponseError) GetCode() RpcBlockDownloadResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockDownloadResponseError_NULL +} + +func (m *RpcBlockDownloadResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +// +// Create a Smart/Internal block. Request can contain a block with a content, or it can be an empty block with a specific block.content. +// **Example scenario** +// 1A. Create Page on a dashboard +// 1. Front -> MW: Rpc.Block.Create.Request(blockId:dashboard.id, position:bottom, block: emtpy block with page content and id = "") +// 2. Front -> MW: Rpc.Block.Close.Request(block: dashboard.id) +// 3. Front <- MW: Rpc.Block.Close.Response(err) +// 4. Front <- MW: Rpc.Block.Create.Response(page.id) +// 5. Front <- MW: Rpc.Block.Open.Response(err) +// 6. Front <- MW: Event.Block.Show(page) +// 1B. Create Page on a Page +// 1. Front -> MW: Rpc.Block.Create.Request(blockId:dashboard.id, position:bottom, block: emtpy block with page content and id = "") +// 2. Front <- MW: Rpc.Block.Create.Response(newPage.id) +// 3. Front <- MW: Event.Block.Show(newPage) +type RpcBlockCreate struct { +} + +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_8261c968b2e6f45c, []int{0, 14, 8} +} +func (m *RpcBlockCreate) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockCreate.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockCreate) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockCreate.Merge(m, src) +} +func (m *RpcBlockCreate) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockCreate) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockCreate.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockCreate proto.InternalMessageInfo + +// common simple block command +type RpcBlockCreateRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + TargetId string `protobuf:"bytes,2,opt,name=targetId,proto3" json:"targetId,omitempty"` + Block *model.Block `protobuf:"bytes,3,opt,name=block,proto3" json:"block,omitempty"` + Position model.BlockPosition `protobuf:"varint,4,opt,name=position,proto3,enum=anytype.model.BlockPosition" json:"position,omitempty"` +} + +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_8261c968b2e6f45c, []int{0, 14, 8, 0} +} +func (m *RpcBlockCreateRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockCreateRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockCreateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockCreateRequest.Merge(m, src) +} +func (m *RpcBlockCreateRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockCreateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockCreateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockCreateRequest proto.InternalMessageInfo + +func (m *RpcBlockCreateRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockCreateRequest) GetTargetId() string { + if m != nil { + return m.TargetId + } + return "" +} + +func (m *RpcBlockCreateRequest) GetBlock() *model.Block { + if m != nil { + return m.Block + } + return nil +} + +func (m *RpcBlockCreateRequest) GetPosition() model.BlockPosition { + if m != nil { + return m.Position + } + return model.Block_None +} + +type RpcBlockCreateResponse struct { + Error *RpcBlockCreateResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` + Event *ResponseEvent `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"` +} + +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_8261c968b2e6f45c, []int{0, 14, 8, 1} +} +func (m *RpcBlockCreateResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockCreateResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockCreateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockCreateResponse.Merge(m, src) +} +func (m *RpcBlockCreateResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockCreateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockCreateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockCreateResponse proto.InternalMessageInfo + +func (m *RpcBlockCreateResponse) GetError() *RpcBlockCreateResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockCreateResponse) GetBlockId() string { + if m != nil { + return m.BlockId + } + return "" +} + +func (m *RpcBlockCreateResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +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 *RpcBlockCreateResponseError) Reset() { *m = RpcBlockCreateResponseError{} } +func (m *RpcBlockCreateResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockCreateResponseError) ProtoMessage() {} +func (*RpcBlockCreateResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 8, 1, 0} +} +func (m *RpcBlockCreateResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockCreateResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockCreateResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockCreateResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockCreateResponseError.Merge(m, src) +} +func (m *RpcBlockCreateResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockCreateResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockCreateResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockCreateResponseError proto.InternalMessageInfo + +func (m *RpcBlockCreateResponseError) GetCode() RpcBlockCreateResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockCreateResponseError_NULL +} + +func (m *RpcBlockCreateResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +// +// Remove blocks from the childrenIds of its parents +type RpcBlockListDelete struct { +} + +func (m *RpcBlockListDelete) Reset() { *m = RpcBlockListDelete{} } +func (m *RpcBlockListDelete) String() string { return proto.CompactTextString(m) } +func (*RpcBlockListDelete) ProtoMessage() {} +func (*RpcBlockListDelete) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 9} +} +func (m *RpcBlockListDelete) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockListDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockListDelete.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockListDelete) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockListDelete.Merge(m, src) +} +func (m *RpcBlockListDelete) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockListDelete) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockListDelete.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockListDelete proto.InternalMessageInfo + +type RpcBlockListDeleteRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockIds []string `protobuf:"bytes,2,rep,name=blockIds,proto3" json:"blockIds,omitempty"` +} + +func (m *RpcBlockListDeleteRequest) Reset() { *m = RpcBlockListDeleteRequest{} } +func (m *RpcBlockListDeleteRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockListDeleteRequest) ProtoMessage() {} +func (*RpcBlockListDeleteRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 9, 0} +} +func (m *RpcBlockListDeleteRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockListDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockListDeleteRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockListDeleteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockListDeleteRequest.Merge(m, src) +} +func (m *RpcBlockListDeleteRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockListDeleteRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockListDeleteRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockListDeleteRequest proto.InternalMessageInfo + +func (m *RpcBlockListDeleteRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockListDeleteRequest) GetBlockIds() []string { + if m != nil { + return m.BlockIds + } + return nil +} + +type RpcBlockListDeleteResponse struct { + Error *RpcBlockListDeleteResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockListDeleteResponse) Reset() { *m = RpcBlockListDeleteResponse{} } +func (m *RpcBlockListDeleteResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockListDeleteResponse) ProtoMessage() {} +func (*RpcBlockListDeleteResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 9, 1} +} +func (m *RpcBlockListDeleteResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockListDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockListDeleteResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockListDeleteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockListDeleteResponse.Merge(m, src) +} +func (m *RpcBlockListDeleteResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockListDeleteResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockListDeleteResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockListDeleteResponse proto.InternalMessageInfo + +func (m *RpcBlockListDeleteResponse) GetError() *RpcBlockListDeleteResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockListDeleteResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockListDeleteResponseError struct { + Code RpcBlockListDeleteResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockListDeleteResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockListDeleteResponseError) Reset() { *m = RpcBlockListDeleteResponseError{} } +func (m *RpcBlockListDeleteResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockListDeleteResponseError) ProtoMessage() {} +func (*RpcBlockListDeleteResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 9, 1, 0} +} +func (m *RpcBlockListDeleteResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockListDeleteResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockListDeleteResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockListDeleteResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockListDeleteResponseError.Merge(m, src) +} +func (m *RpcBlockListDeleteResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockListDeleteResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockListDeleteResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockListDeleteResponseError proto.InternalMessageInfo + +func (m *RpcBlockListDeleteResponseError) GetCode() RpcBlockListDeleteResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockListDeleteResponseError_NULL +} + +func (m *RpcBlockListDeleteResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockSetFields struct { +} + +func (m *RpcBlockSetFields) Reset() { *m = RpcBlockSetFields{} } +func (m *RpcBlockSetFields) String() string { return proto.CompactTextString(m) } +func (*RpcBlockSetFields) ProtoMessage() {} +func (*RpcBlockSetFields) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 10} +} +func (m *RpcBlockSetFields) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockSetFields) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockSetFields.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockSetFields) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockSetFields.Merge(m, src) +} +func (m *RpcBlockSetFields) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockSetFields) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockSetFields.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockSetFields proto.InternalMessageInfo + +type RpcBlockSetFieldsRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` + Fields *types.Struct `protobuf:"bytes,3,opt,name=fields,proto3" json:"fields,omitempty"` +} + +func (m *RpcBlockSetFieldsRequest) Reset() { *m = RpcBlockSetFieldsRequest{} } +func (m *RpcBlockSetFieldsRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockSetFieldsRequest) ProtoMessage() {} +func (*RpcBlockSetFieldsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 10, 0} +} +func (m *RpcBlockSetFieldsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockSetFieldsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockSetFieldsRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockSetFieldsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockSetFieldsRequest.Merge(m, src) +} +func (m *RpcBlockSetFieldsRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockSetFieldsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockSetFieldsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockSetFieldsRequest proto.InternalMessageInfo + +func (m *RpcBlockSetFieldsRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockSetFieldsRequest) GetBlockId() string { + if m != nil { + return m.BlockId + } + return "" +} + +func (m *RpcBlockSetFieldsRequest) GetFields() *types.Struct { + if m != nil { + return m.Fields + } + return nil +} + +type RpcBlockSetFieldsResponse struct { + Error *RpcBlockSetFieldsResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockSetFieldsResponse) Reset() { *m = RpcBlockSetFieldsResponse{} } +func (m *RpcBlockSetFieldsResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockSetFieldsResponse) ProtoMessage() {} +func (*RpcBlockSetFieldsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 10, 1} +} +func (m *RpcBlockSetFieldsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockSetFieldsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockSetFieldsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockSetFieldsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockSetFieldsResponse.Merge(m, src) +} +func (m *RpcBlockSetFieldsResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockSetFieldsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockSetFieldsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockSetFieldsResponse proto.InternalMessageInfo + +func (m *RpcBlockSetFieldsResponse) GetError() *RpcBlockSetFieldsResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockSetFieldsResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockSetFieldsResponseError struct { + Code RpcBlockSetFieldsResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockSetFieldsResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockSetFieldsResponseError) Reset() { *m = RpcBlockSetFieldsResponseError{} } +func (m *RpcBlockSetFieldsResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockSetFieldsResponseError) ProtoMessage() {} +func (*RpcBlockSetFieldsResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 10, 1, 0} +} +func (m *RpcBlockSetFieldsResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockSetFieldsResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockSetFieldsResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockSetFieldsResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockSetFieldsResponseError.Merge(m, src) +} +func (m *RpcBlockSetFieldsResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockSetFieldsResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockSetFieldsResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockSetFieldsResponseError proto.InternalMessageInfo + +func (m *RpcBlockSetFieldsResponseError) GetCode() RpcBlockSetFieldsResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockSetFieldsResponseError_NULL +} + +func (m *RpcBlockSetFieldsResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockListSetAlign struct { +} + +func (m *RpcBlockListSetAlign) Reset() { *m = RpcBlockListSetAlign{} } +func (m *RpcBlockListSetAlign) String() string { return proto.CompactTextString(m) } +func (*RpcBlockListSetAlign) ProtoMessage() {} +func (*RpcBlockListSetAlign) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 11} +} +func (m *RpcBlockListSetAlign) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockListSetAlign) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockListSetAlign.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockListSetAlign) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockListSetAlign.Merge(m, src) +} +func (m *RpcBlockListSetAlign) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockListSetAlign) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockListSetAlign.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockListSetAlign proto.InternalMessageInfo + +type RpcBlockListSetAlignRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockIds []string `protobuf:"bytes,2,rep,name=blockIds,proto3" json:"blockIds,omitempty"` + Align model.BlockAlign `protobuf:"varint,3,opt,name=align,proto3,enum=anytype.model.BlockAlign" json:"align,omitempty"` +} + +func (m *RpcBlockListSetAlignRequest) Reset() { *m = RpcBlockListSetAlignRequest{} } +func (m *RpcBlockListSetAlignRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockListSetAlignRequest) ProtoMessage() {} +func (*RpcBlockListSetAlignRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 11, 0} +} +func (m *RpcBlockListSetAlignRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockListSetAlignRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockListSetAlignRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockListSetAlignRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockListSetAlignRequest.Merge(m, src) +} +func (m *RpcBlockListSetAlignRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockListSetAlignRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockListSetAlignRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockListSetAlignRequest proto.InternalMessageInfo + +func (m *RpcBlockListSetAlignRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockListSetAlignRequest) GetBlockIds() []string { + if m != nil { + return m.BlockIds + } + return nil +} + +func (m *RpcBlockListSetAlignRequest) GetAlign() model.BlockAlign { + if m != nil { + return m.Align + } + return model.Block_AlignLeft +} + +type RpcBlockListSetAlignResponse struct { + Error *RpcBlockListSetAlignResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockListSetAlignResponse) Reset() { *m = RpcBlockListSetAlignResponse{} } +func (m *RpcBlockListSetAlignResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockListSetAlignResponse) ProtoMessage() {} +func (*RpcBlockListSetAlignResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 11, 1} +} +func (m *RpcBlockListSetAlignResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockListSetAlignResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockListSetAlignResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockListSetAlignResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockListSetAlignResponse.Merge(m, src) +} +func (m *RpcBlockListSetAlignResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockListSetAlignResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockListSetAlignResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockListSetAlignResponse proto.InternalMessageInfo + +func (m *RpcBlockListSetAlignResponse) GetError() *RpcBlockListSetAlignResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockListSetAlignResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockListSetAlignResponseError struct { + Code RpcBlockListSetAlignResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockListSetAlignResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockListSetAlignResponseError) Reset() { *m = RpcBlockListSetAlignResponseError{} } +func (m *RpcBlockListSetAlignResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockListSetAlignResponseError) ProtoMessage() {} +func (*RpcBlockListSetAlignResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 11, 1, 0} +} +func (m *RpcBlockListSetAlignResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockListSetAlignResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockListSetAlignResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockListSetAlignResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockListSetAlignResponseError.Merge(m, src) +} +func (m *RpcBlockListSetAlignResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockListSetAlignResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockListSetAlignResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockListSetAlignResponseError proto.InternalMessageInfo + +func (m *RpcBlockListSetAlignResponseError) GetCode() RpcBlockListSetAlignResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockListSetAlignResponseError_NULL +} + +func (m *RpcBlockListSetAlignResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockListSetFields struct { +} + +func (m *RpcBlockListSetFields) Reset() { *m = RpcBlockListSetFields{} } +func (m *RpcBlockListSetFields) String() string { return proto.CompactTextString(m) } +func (*RpcBlockListSetFields) ProtoMessage() {} +func (*RpcBlockListSetFields) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 12} +} +func (m *RpcBlockListSetFields) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockListSetFields) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockListSetFields.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockListSetFields) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockListSetFields.Merge(m, src) +} +func (m *RpcBlockListSetFields) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockListSetFields) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockListSetFields.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockListSetFields proto.InternalMessageInfo + +type RpcBlockListSetFieldsRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockFields []*RpcBlockListSetFieldsRequestBlockField `protobuf:"bytes,2,rep,name=blockFields,proto3" json:"blockFields,omitempty"` +} + +func (m *RpcBlockListSetFieldsRequest) Reset() { *m = RpcBlockListSetFieldsRequest{} } +func (m *RpcBlockListSetFieldsRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockListSetFieldsRequest) ProtoMessage() {} +func (*RpcBlockListSetFieldsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 12, 0} +} +func (m *RpcBlockListSetFieldsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockListSetFieldsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockListSetFieldsRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockListSetFieldsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockListSetFieldsRequest.Merge(m, src) +} +func (m *RpcBlockListSetFieldsRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockListSetFieldsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockListSetFieldsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockListSetFieldsRequest proto.InternalMessageInfo + +func (m *RpcBlockListSetFieldsRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockListSetFieldsRequest) GetBlockFields() []*RpcBlockListSetFieldsRequestBlockField { + if m != nil { + return m.BlockFields + } + return nil +} + +type RpcBlockListSetFieldsRequestBlockField struct { + BlockId string `protobuf:"bytes,1,opt,name=blockId,proto3" json:"blockId,omitempty"` + Fields *types.Struct `protobuf:"bytes,2,opt,name=fields,proto3" json:"fields,omitempty"` +} + +func (m *RpcBlockListSetFieldsRequestBlockField) Reset() { + *m = RpcBlockListSetFieldsRequestBlockField{} +} +func (m *RpcBlockListSetFieldsRequestBlockField) String() string { return proto.CompactTextString(m) } +func (*RpcBlockListSetFieldsRequestBlockField) ProtoMessage() {} +func (*RpcBlockListSetFieldsRequestBlockField) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 12, 0, 0} +} +func (m *RpcBlockListSetFieldsRequestBlockField) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockListSetFieldsRequestBlockField) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockListSetFieldsRequestBlockField.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockListSetFieldsRequestBlockField) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockListSetFieldsRequestBlockField.Merge(m, src) +} +func (m *RpcBlockListSetFieldsRequestBlockField) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockListSetFieldsRequestBlockField) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockListSetFieldsRequestBlockField.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockListSetFieldsRequestBlockField proto.InternalMessageInfo + +func (m *RpcBlockListSetFieldsRequestBlockField) GetBlockId() string { + if m != nil { + return m.BlockId + } + return "" +} + +func (m *RpcBlockListSetFieldsRequestBlockField) GetFields() *types.Struct { + if m != nil { + return m.Fields + } + return nil +} + +type RpcBlockListSetFieldsResponse struct { + Error *RpcBlockListSetFieldsResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockListSetFieldsResponse) Reset() { *m = RpcBlockListSetFieldsResponse{} } +func (m *RpcBlockListSetFieldsResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockListSetFieldsResponse) ProtoMessage() {} +func (*RpcBlockListSetFieldsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 12, 1} +} +func (m *RpcBlockListSetFieldsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockListSetFieldsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockListSetFieldsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockListSetFieldsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockListSetFieldsResponse.Merge(m, src) +} +func (m *RpcBlockListSetFieldsResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockListSetFieldsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockListSetFieldsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockListSetFieldsResponse proto.InternalMessageInfo + +func (m *RpcBlockListSetFieldsResponse) GetError() *RpcBlockListSetFieldsResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockListSetFieldsResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockListSetFieldsResponseError struct { + Code RpcBlockListSetFieldsResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockListSetFieldsResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockListSetFieldsResponseError) Reset() { *m = RpcBlockListSetFieldsResponseError{} } +func (m *RpcBlockListSetFieldsResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockListSetFieldsResponseError) ProtoMessage() {} +func (*RpcBlockListSetFieldsResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 12, 1, 0} +} +func (m *RpcBlockListSetFieldsResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockListSetFieldsResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockListSetFieldsResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockListSetFieldsResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockListSetFieldsResponseError.Merge(m, src) +} +func (m *RpcBlockListSetFieldsResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockListSetFieldsResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockListSetFieldsResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockListSetFieldsResponseError proto.InternalMessageInfo + +func (m *RpcBlockListSetFieldsResponseError) GetCode() RpcBlockListSetFieldsResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockListSetFieldsResponseError_NULL +} + +func (m *RpcBlockListSetFieldsResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +// +// Makes blocks copy by given ids and paste it to shown place +type RpcBlockListDuplicate struct { +} + +func (m *RpcBlockListDuplicate) Reset() { *m = RpcBlockListDuplicate{} } +func (m *RpcBlockListDuplicate) String() string { return proto.CompactTextString(m) } +func (*RpcBlockListDuplicate) ProtoMessage() {} +func (*RpcBlockListDuplicate) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 13} +} +func (m *RpcBlockListDuplicate) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockListDuplicate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockListDuplicate.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockListDuplicate) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockListDuplicate.Merge(m, src) +} +func (m *RpcBlockListDuplicate) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockListDuplicate) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockListDuplicate.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockListDuplicate proto.InternalMessageInfo + +type RpcBlockListDuplicateRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + TargetId string `protobuf:"bytes,2,opt,name=targetId,proto3" json:"targetId,omitempty"` + BlockIds []string `protobuf:"bytes,3,rep,name=blockIds,proto3" json:"blockIds,omitempty"` + Position model.BlockPosition `protobuf:"varint,4,opt,name=position,proto3,enum=anytype.model.BlockPosition" json:"position,omitempty"` +} + +func (m *RpcBlockListDuplicateRequest) Reset() { *m = RpcBlockListDuplicateRequest{} } +func (m *RpcBlockListDuplicateRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockListDuplicateRequest) ProtoMessage() {} +func (*RpcBlockListDuplicateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 13, 0} +} +func (m *RpcBlockListDuplicateRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockListDuplicateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockListDuplicateRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockListDuplicateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockListDuplicateRequest.Merge(m, src) +} +func (m *RpcBlockListDuplicateRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockListDuplicateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockListDuplicateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockListDuplicateRequest proto.InternalMessageInfo + +func (m *RpcBlockListDuplicateRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockListDuplicateRequest) GetTargetId() string { + if m != nil { + return m.TargetId + } + return "" +} + +func (m *RpcBlockListDuplicateRequest) GetBlockIds() []string { + if m != nil { + return m.BlockIds + } + return nil +} + +func (m *RpcBlockListDuplicateRequest) GetPosition() model.BlockPosition { + if m != nil { + return m.Position + } + return model.Block_None +} + +type RpcBlockListDuplicateResponse struct { + Error *RpcBlockListDuplicateResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + BlockIds []string `protobuf:"bytes,2,rep,name=blockIds,proto3" json:"blockIds,omitempty"` + Event *ResponseEvent `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockListDuplicateResponse) Reset() { *m = RpcBlockListDuplicateResponse{} } +func (m *RpcBlockListDuplicateResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockListDuplicateResponse) ProtoMessage() {} +func (*RpcBlockListDuplicateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 13, 1} +} +func (m *RpcBlockListDuplicateResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockListDuplicateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockListDuplicateResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockListDuplicateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockListDuplicateResponse.Merge(m, src) +} +func (m *RpcBlockListDuplicateResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockListDuplicateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockListDuplicateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockListDuplicateResponse proto.InternalMessageInfo + +func (m *RpcBlockListDuplicateResponse) GetError() *RpcBlockListDuplicateResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockListDuplicateResponse) GetBlockIds() []string { + if m != nil { + return m.BlockIds + } + return nil +} + +func (m *RpcBlockListDuplicateResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockListDuplicateResponseError struct { + Code RpcBlockListDuplicateResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockListDuplicateResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockListDuplicateResponseError) Reset() { *m = RpcBlockListDuplicateResponseError{} } +func (m *RpcBlockListDuplicateResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockListDuplicateResponseError) ProtoMessage() {} +func (*RpcBlockListDuplicateResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 13, 1, 0} +} +func (m *RpcBlockListDuplicateResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockListDuplicateResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockListDuplicateResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockListDuplicateResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockListDuplicateResponseError.Merge(m, src) +} +func (m *RpcBlockListDuplicateResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockListDuplicateResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockListDuplicateResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockListDuplicateResponseError proto.InternalMessageInfo + +func (m *RpcBlockListDuplicateResponseError) GetCode() RpcBlockListDuplicateResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockListDuplicateResponseError_NULL +} + +func (m *RpcBlockListDuplicateResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockListUpdate struct { +} + +func (m *RpcBlockListUpdate) Reset() { *m = RpcBlockListUpdate{} } +func (m *RpcBlockListUpdate) String() string { return proto.CompactTextString(m) } +func (*RpcBlockListUpdate) ProtoMessage() {} +func (*RpcBlockListUpdate) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 14} +} +func (m *RpcBlockListUpdate) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockListUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockListUpdate.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockListUpdate) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockListUpdate.Merge(m, src) +} +func (m *RpcBlockListUpdate) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockListUpdate) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockListUpdate.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockListUpdate proto.InternalMessageInfo + +type RpcBlockListUpdateRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockIds []string `protobuf:"bytes,2,rep,name=blockIds,proto3" json:"blockIds,omitempty"` + // Types that are valid to be assigned to Field: + // *RpcBlockListUpdateRequestFieldOfText + // *RpcBlockListUpdateRequestFieldOfBackgroundColor + // *RpcBlockListUpdateRequestFieldOfAlign + // *RpcBlockListUpdateRequestFieldOfFields + // *RpcBlockListUpdateRequestFieldOfDivStyle + // *RpcBlockListUpdateRequestFieldOfFileStyle + Field IsRpcBlockListUpdateRequestField `protobuf_oneof:"field"` +} + +func (m *RpcBlockListUpdateRequest) Reset() { *m = RpcBlockListUpdateRequest{} } +func (m *RpcBlockListUpdateRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockListUpdateRequest) ProtoMessage() {} +func (*RpcBlockListUpdateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 14, 0} +} +func (m *RpcBlockListUpdateRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockListUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockListUpdateRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockListUpdateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockListUpdateRequest.Merge(m, src) +} +func (m *RpcBlockListUpdateRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockListUpdateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockListUpdateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockListUpdateRequest proto.InternalMessageInfo + +type IsRpcBlockListUpdateRequestField interface { + IsRpcBlockListUpdateRequestField() + MarshalTo([]byte) (int, error) + Size() int +} + +type RpcBlockListUpdateRequestFieldOfText struct { + Text *RpcBlockListUpdateRequestText `protobuf:"bytes,3,opt,name=text,proto3,oneof" json:"text,omitempty"` +} +type RpcBlockListUpdateRequestFieldOfBackgroundColor struct { + BackgroundColor string `protobuf:"bytes,4,opt,name=backgroundColor,proto3,oneof" json:"backgroundColor,omitempty"` +} +type RpcBlockListUpdateRequestFieldOfAlign struct { + Align model.BlockAlign `protobuf:"varint,5,opt,name=align,proto3,enum=anytype.model.BlockAlign,oneof" json:"align,omitempty"` +} +type RpcBlockListUpdateRequestFieldOfFields struct { + Fields *types.Struct `protobuf:"bytes,6,opt,name=fields,proto3,oneof" json:"fields,omitempty"` +} +type RpcBlockListUpdateRequestFieldOfDivStyle struct { + DivStyle model.BlockContentDivStyle `protobuf:"varint,7,opt,name=divStyle,proto3,enum=anytype.model.BlockContentDivStyle,oneof" json:"divStyle,omitempty"` +} +type RpcBlockListUpdateRequestFieldOfFileStyle struct { + FileStyle model.BlockContentFileStyle `protobuf:"varint,8,opt,name=fileStyle,proto3,enum=anytype.model.BlockContentFileStyle,oneof" json:"fileStyle,omitempty"` +} + +func (*RpcBlockListUpdateRequestFieldOfText) IsRpcBlockListUpdateRequestField() {} +func (*RpcBlockListUpdateRequestFieldOfBackgroundColor) IsRpcBlockListUpdateRequestField() {} +func (*RpcBlockListUpdateRequestFieldOfAlign) IsRpcBlockListUpdateRequestField() {} +func (*RpcBlockListUpdateRequestFieldOfFields) IsRpcBlockListUpdateRequestField() {} +func (*RpcBlockListUpdateRequestFieldOfDivStyle) IsRpcBlockListUpdateRequestField() {} +func (*RpcBlockListUpdateRequestFieldOfFileStyle) IsRpcBlockListUpdateRequestField() {} + +func (m *RpcBlockListUpdateRequest) GetField() IsRpcBlockListUpdateRequestField { + if m != nil { + return m.Field + } + return nil +} + +func (m *RpcBlockListUpdateRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockListUpdateRequest) GetBlockIds() []string { + if m != nil { + return m.BlockIds + } + return nil +} + +func (m *RpcBlockListUpdateRequest) GetText() *RpcBlockListUpdateRequestText { + if x, ok := m.GetField().(*RpcBlockListUpdateRequestFieldOfText); ok { + return x.Text + } + return nil +} + +func (m *RpcBlockListUpdateRequest) GetBackgroundColor() string { + if x, ok := m.GetField().(*RpcBlockListUpdateRequestFieldOfBackgroundColor); ok { + return x.BackgroundColor + } + return "" +} + +func (m *RpcBlockListUpdateRequest) GetAlign() model.BlockAlign { + if x, ok := m.GetField().(*RpcBlockListUpdateRequestFieldOfAlign); ok { + return x.Align + } + return model.Block_AlignLeft +} + +func (m *RpcBlockListUpdateRequest) GetFields() *types.Struct { + if x, ok := m.GetField().(*RpcBlockListUpdateRequestFieldOfFields); ok { + return x.Fields + } + return nil +} + +func (m *RpcBlockListUpdateRequest) GetDivStyle() model.BlockContentDivStyle { + if x, ok := m.GetField().(*RpcBlockListUpdateRequestFieldOfDivStyle); ok { + return x.DivStyle + } + return model.BlockContentDiv_Line +} + +func (m *RpcBlockListUpdateRequest) GetFileStyle() model.BlockContentFileStyle { + if x, ok := m.GetField().(*RpcBlockListUpdateRequestFieldOfFileStyle); ok { + return x.FileStyle + } + return model.BlockContentFile_Auto +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*RpcBlockListUpdateRequest) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*RpcBlockListUpdateRequestFieldOfText)(nil), + (*RpcBlockListUpdateRequestFieldOfBackgroundColor)(nil), + (*RpcBlockListUpdateRequestFieldOfAlign)(nil), + (*RpcBlockListUpdateRequestFieldOfFields)(nil), + (*RpcBlockListUpdateRequestFieldOfDivStyle)(nil), + (*RpcBlockListUpdateRequestFieldOfFileStyle)(nil), + } +} + +type RpcBlockListUpdateRequestText struct { + // Types that are valid to be assigned to Field: + // *RpcBlockListUpdateRequestTextFieldOfStyle + // *RpcBlockListUpdateRequestTextFieldOfColor + // *RpcBlockListUpdateRequestTextFieldOfMark + Field IsRpcBlockListUpdateRequestTextField `protobuf_oneof:"field"` +} + +func (m *RpcBlockListUpdateRequestText) Reset() { *m = RpcBlockListUpdateRequestText{} } +func (m *RpcBlockListUpdateRequestText) String() string { return proto.CompactTextString(m) } +func (*RpcBlockListUpdateRequestText) ProtoMessage() {} +func (*RpcBlockListUpdateRequestText) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 14, 0, 0} +} +func (m *RpcBlockListUpdateRequestText) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockListUpdateRequestText) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockListUpdateRequestText.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockListUpdateRequestText) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockListUpdateRequestText.Merge(m, src) +} +func (m *RpcBlockListUpdateRequestText) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockListUpdateRequestText) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockListUpdateRequestText.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockListUpdateRequestText proto.InternalMessageInfo + +type IsRpcBlockListUpdateRequestTextField interface { + IsRpcBlockListUpdateRequestTextField() + MarshalTo([]byte) (int, error) + Size() int +} + +type RpcBlockListUpdateRequestTextFieldOfStyle struct { + Style model.BlockContentTextStyle `protobuf:"varint,1,opt,name=style,proto3,enum=anytype.model.BlockContentTextStyle,oneof" json:"style,omitempty"` +} +type RpcBlockListUpdateRequestTextFieldOfColor struct { + Color string `protobuf:"bytes,2,opt,name=color,proto3,oneof" json:"color,omitempty"` +} +type RpcBlockListUpdateRequestTextFieldOfMark struct { + Mark *model.BlockContentTextMark `protobuf:"bytes,3,opt,name=mark,proto3,oneof" json:"mark,omitempty"` +} + +func (*RpcBlockListUpdateRequestTextFieldOfStyle) IsRpcBlockListUpdateRequestTextField() {} +func (*RpcBlockListUpdateRequestTextFieldOfColor) IsRpcBlockListUpdateRequestTextField() {} +func (*RpcBlockListUpdateRequestTextFieldOfMark) IsRpcBlockListUpdateRequestTextField() {} + +func (m *RpcBlockListUpdateRequestText) GetField() IsRpcBlockListUpdateRequestTextField { + if m != nil { + return m.Field + } + return nil +} + +func (m *RpcBlockListUpdateRequestText) GetStyle() model.BlockContentTextStyle { + if x, ok := m.GetField().(*RpcBlockListUpdateRequestTextFieldOfStyle); ok { + return x.Style + } + return model.BlockContentText_Paragraph +} + +func (m *RpcBlockListUpdateRequestText) GetColor() string { + if x, ok := m.GetField().(*RpcBlockListUpdateRequestTextFieldOfColor); ok { + return x.Color + } + return "" +} + +func (m *RpcBlockListUpdateRequestText) GetMark() *model.BlockContentTextMark { + if x, ok := m.GetField().(*RpcBlockListUpdateRequestTextFieldOfMark); ok { + return x.Mark + } + return nil +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*RpcBlockListUpdateRequestText) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*RpcBlockListUpdateRequestTextFieldOfStyle)(nil), + (*RpcBlockListUpdateRequestTextFieldOfColor)(nil), + (*RpcBlockListUpdateRequestTextFieldOfMark)(nil), + } +} + +type RpcBlockListConvertToObjects struct { +} + +func (m *RpcBlockListConvertToObjects) Reset() { *m = RpcBlockListConvertToObjects{} } +func (m *RpcBlockListConvertToObjects) String() string { return proto.CompactTextString(m) } +func (*RpcBlockListConvertToObjects) ProtoMessage() {} +func (*RpcBlockListConvertToObjects) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 15} +} +func (m *RpcBlockListConvertToObjects) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockListConvertToObjects) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockListConvertToObjects.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockListConvertToObjects) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockListConvertToObjects.Merge(m, src) +} +func (m *RpcBlockListConvertToObjects) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockListConvertToObjects) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockListConvertToObjects.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockListConvertToObjects proto.InternalMessageInfo + +type RpcBlockListConvertToObjectsRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockIds []string `protobuf:"bytes,2,rep,name=blockIds,proto3" json:"blockIds,omitempty"` + ObjectType string `protobuf:"bytes,3,opt,name=objectType,proto3" json:"objectType,omitempty"` +} + +func (m *RpcBlockListConvertToObjectsRequest) Reset() { *m = RpcBlockListConvertToObjectsRequest{} } +func (m *RpcBlockListConvertToObjectsRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockListConvertToObjectsRequest) ProtoMessage() {} +func (*RpcBlockListConvertToObjectsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 15, 0} +} +func (m *RpcBlockListConvertToObjectsRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockListConvertToObjectsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockListConvertToObjectsRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockListConvertToObjectsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockListConvertToObjectsRequest.Merge(m, src) +} +func (m *RpcBlockListConvertToObjectsRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockListConvertToObjectsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockListConvertToObjectsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockListConvertToObjectsRequest proto.InternalMessageInfo + +func (m *RpcBlockListConvertToObjectsRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockListConvertToObjectsRequest) GetBlockIds() []string { + if m != nil { + return m.BlockIds + } + return nil +} + +func (m *RpcBlockListConvertToObjectsRequest) GetObjectType() string { + if m != nil { + return m.ObjectType + } + return "" +} + +type RpcBlockListConvertToObjectsResponse struct { + Error *RpcBlockListConvertToObjectsResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + LinkIds []string `protobuf:"bytes,2,rep,name=linkIds,proto3" json:"linkIds,omitempty"` + Event *ResponseEvent `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockListConvertToObjectsResponse) Reset() { *m = RpcBlockListConvertToObjectsResponse{} } +func (m *RpcBlockListConvertToObjectsResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockListConvertToObjectsResponse) ProtoMessage() {} +func (*RpcBlockListConvertToObjectsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 15, 1} +} +func (m *RpcBlockListConvertToObjectsResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockListConvertToObjectsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockListConvertToObjectsResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockListConvertToObjectsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockListConvertToObjectsResponse.Merge(m, src) +} +func (m *RpcBlockListConvertToObjectsResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockListConvertToObjectsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockListConvertToObjectsResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockListConvertToObjectsResponse proto.InternalMessageInfo + +func (m *RpcBlockListConvertToObjectsResponse) GetError() *RpcBlockListConvertToObjectsResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockListConvertToObjectsResponse) GetLinkIds() []string { + if m != nil { + return m.LinkIds + } + return nil +} + +func (m *RpcBlockListConvertToObjectsResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockListConvertToObjectsResponseError struct { + Code RpcBlockListConvertToObjectsResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockListConvertToObjectsResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockListConvertToObjectsResponseError) Reset() { + *m = RpcBlockListConvertToObjectsResponseError{} +} +func (m *RpcBlockListConvertToObjectsResponseError) String() string { + return proto.CompactTextString(m) +} +func (*RpcBlockListConvertToObjectsResponseError) ProtoMessage() {} +func (*RpcBlockListConvertToObjectsResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 15, 1, 0} +} +func (m *RpcBlockListConvertToObjectsResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockListConvertToObjectsResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockListConvertToObjectsResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockListConvertToObjectsResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockListConvertToObjectsResponseError.Merge(m, src) +} +func (m *RpcBlockListConvertToObjectsResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockListConvertToObjectsResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockListConvertToObjectsResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockListConvertToObjectsResponseError proto.InternalMessageInfo + +func (m *RpcBlockListConvertToObjectsResponseError) GetCode() RpcBlockListConvertToObjectsResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockListConvertToObjectsResponseError_NULL +} + +func (m *RpcBlockListConvertToObjectsResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockListMoveToExistingObject struct { +} + +func (m *RpcBlockListMoveToExistingObject) Reset() { *m = RpcBlockListMoveToExistingObject{} } +func (m *RpcBlockListMoveToExistingObject) String() string { return proto.CompactTextString(m) } +func (*RpcBlockListMoveToExistingObject) ProtoMessage() {} +func (*RpcBlockListMoveToExistingObject) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 16} +} +func (m *RpcBlockListMoveToExistingObject) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockListMoveToExistingObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockListMoveToExistingObject.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockListMoveToExistingObject) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockListMoveToExistingObject.Merge(m, src) +} +func (m *RpcBlockListMoveToExistingObject) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockListMoveToExistingObject) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockListMoveToExistingObject.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockListMoveToExistingObject proto.InternalMessageInfo + +type RpcBlockListMoveToExistingObjectRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockIds []string `protobuf:"bytes,2,rep,name=blockIds,proto3" json:"blockIds,omitempty"` + TargetContextId string `protobuf:"bytes,3,opt,name=targetContextId,proto3" json:"targetContextId,omitempty"` + DropTargetId string `protobuf:"bytes,4,opt,name=dropTargetId,proto3" json:"dropTargetId,omitempty"` + Position model.BlockPosition `protobuf:"varint,5,opt,name=position,proto3,enum=anytype.model.BlockPosition" json:"position,omitempty"` +} + +func (m *RpcBlockListMoveToExistingObjectRequest) Reset() { + *m = RpcBlockListMoveToExistingObjectRequest{} +} +func (m *RpcBlockListMoveToExistingObjectRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockListMoveToExistingObjectRequest) ProtoMessage() {} +func (*RpcBlockListMoveToExistingObjectRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 16, 0} +} +func (m *RpcBlockListMoveToExistingObjectRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockListMoveToExistingObjectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockListMoveToExistingObjectRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockListMoveToExistingObjectRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockListMoveToExistingObjectRequest.Merge(m, src) +} +func (m *RpcBlockListMoveToExistingObjectRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockListMoveToExistingObjectRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockListMoveToExistingObjectRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockListMoveToExistingObjectRequest proto.InternalMessageInfo + +func (m *RpcBlockListMoveToExistingObjectRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockListMoveToExistingObjectRequest) GetBlockIds() []string { + if m != nil { + return m.BlockIds + } + return nil +} + +func (m *RpcBlockListMoveToExistingObjectRequest) GetTargetContextId() string { + if m != nil { + return m.TargetContextId + } + return "" +} + +func (m *RpcBlockListMoveToExistingObjectRequest) GetDropTargetId() string { + if m != nil { + return m.DropTargetId + } + return "" +} + +func (m *RpcBlockListMoveToExistingObjectRequest) GetPosition() model.BlockPosition { + if m != nil { + return m.Position + } + return model.Block_None +} + +type RpcBlockListMoveToExistingObjectResponse struct { + Error *RpcBlockListMoveToExistingObjectResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockListMoveToExistingObjectResponse) Reset() { + *m = RpcBlockListMoveToExistingObjectResponse{} +} +func (m *RpcBlockListMoveToExistingObjectResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockListMoveToExistingObjectResponse) ProtoMessage() {} +func (*RpcBlockListMoveToExistingObjectResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 16, 1} +} +func (m *RpcBlockListMoveToExistingObjectResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockListMoveToExistingObjectResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockListMoveToExistingObjectResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockListMoveToExistingObjectResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockListMoveToExistingObjectResponse.Merge(m, src) +} +func (m *RpcBlockListMoveToExistingObjectResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockListMoveToExistingObjectResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockListMoveToExistingObjectResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockListMoveToExistingObjectResponse proto.InternalMessageInfo + +func (m *RpcBlockListMoveToExistingObjectResponse) GetError() *RpcBlockListMoveToExistingObjectResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockListMoveToExistingObjectResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockListMoveToExistingObjectResponseError struct { + Code RpcBlockListMoveToExistingObjectResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockListMoveToExistingObjectResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockListMoveToExistingObjectResponseError) Reset() { + *m = RpcBlockListMoveToExistingObjectResponseError{} +} +func (m *RpcBlockListMoveToExistingObjectResponseError) String() string { + return proto.CompactTextString(m) +} +func (*RpcBlockListMoveToExistingObjectResponseError) ProtoMessage() {} +func (*RpcBlockListMoveToExistingObjectResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 16, 1, 0} +} +func (m *RpcBlockListMoveToExistingObjectResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockListMoveToExistingObjectResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockListMoveToExistingObjectResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockListMoveToExistingObjectResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockListMoveToExistingObjectResponseError.Merge(m, src) +} +func (m *RpcBlockListMoveToExistingObjectResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockListMoveToExistingObjectResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockListMoveToExistingObjectResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockListMoveToExistingObjectResponseError proto.InternalMessageInfo + +func (m *RpcBlockListMoveToExistingObjectResponseError) GetCode() RpcBlockListMoveToExistingObjectResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockListMoveToExistingObjectResponseError_NULL +} + +func (m *RpcBlockListMoveToExistingObjectResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockListMoveToNewObject struct { +} + +func (m *RpcBlockListMoveToNewObject) Reset() { *m = RpcBlockListMoveToNewObject{} } +func (m *RpcBlockListMoveToNewObject) String() string { return proto.CompactTextString(m) } +func (*RpcBlockListMoveToNewObject) ProtoMessage() {} +func (*RpcBlockListMoveToNewObject) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 17} +} +func (m *RpcBlockListMoveToNewObject) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockListMoveToNewObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockListMoveToNewObject.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockListMoveToNewObject) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockListMoveToNewObject.Merge(m, src) +} +func (m *RpcBlockListMoveToNewObject) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockListMoveToNewObject) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockListMoveToNewObject.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockListMoveToNewObject proto.InternalMessageInfo + +type RpcBlockListMoveToNewObjectRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockIds []string `protobuf:"bytes,2,rep,name=blockIds,proto3" json:"blockIds,omitempty"` + Details *types.Struct `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"` + DropTargetId string `protobuf:"bytes,4,opt,name=dropTargetId,proto3" json:"dropTargetId,omitempty"` + Position model.BlockPosition `protobuf:"varint,5,opt,name=position,proto3,enum=anytype.model.BlockPosition" json:"position,omitempty"` +} + +func (m *RpcBlockListMoveToNewObjectRequest) Reset() { *m = RpcBlockListMoveToNewObjectRequest{} } +func (m *RpcBlockListMoveToNewObjectRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockListMoveToNewObjectRequest) ProtoMessage() {} +func (*RpcBlockListMoveToNewObjectRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 17, 0} +} +func (m *RpcBlockListMoveToNewObjectRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockListMoveToNewObjectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockListMoveToNewObjectRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockListMoveToNewObjectRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockListMoveToNewObjectRequest.Merge(m, src) +} +func (m *RpcBlockListMoveToNewObjectRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockListMoveToNewObjectRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockListMoveToNewObjectRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockListMoveToNewObjectRequest proto.InternalMessageInfo + +func (m *RpcBlockListMoveToNewObjectRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockListMoveToNewObjectRequest) GetBlockIds() []string { + if m != nil { + return m.BlockIds + } + return nil +} + +func (m *RpcBlockListMoveToNewObjectRequest) GetDetails() *types.Struct { + if m != nil { + return m.Details + } + return nil +} + +func (m *RpcBlockListMoveToNewObjectRequest) GetDropTargetId() string { + if m != nil { + return m.DropTargetId + } + return "" +} + +func (m *RpcBlockListMoveToNewObjectRequest) GetPosition() model.BlockPosition { + if m != nil { + return m.Position + } + return model.Block_None +} + +type RpcBlockListMoveToNewObjectResponse struct { + Error *RpcBlockListMoveToNewObjectResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + LinkId string `protobuf:"bytes,2,opt,name=linkId,proto3" json:"linkId,omitempty"` + Event *ResponseEvent `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockListMoveToNewObjectResponse) Reset() { *m = RpcBlockListMoveToNewObjectResponse{} } +func (m *RpcBlockListMoveToNewObjectResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockListMoveToNewObjectResponse) ProtoMessage() {} +func (*RpcBlockListMoveToNewObjectResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 17, 1} +} +func (m *RpcBlockListMoveToNewObjectResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockListMoveToNewObjectResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockListMoveToNewObjectResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockListMoveToNewObjectResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockListMoveToNewObjectResponse.Merge(m, src) +} +func (m *RpcBlockListMoveToNewObjectResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockListMoveToNewObjectResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockListMoveToNewObjectResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockListMoveToNewObjectResponse proto.InternalMessageInfo + +func (m *RpcBlockListMoveToNewObjectResponse) GetError() *RpcBlockListMoveToNewObjectResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockListMoveToNewObjectResponse) GetLinkId() string { + if m != nil { + return m.LinkId + } + return "" +} + +func (m *RpcBlockListMoveToNewObjectResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockListMoveToNewObjectResponseError struct { + Code RpcBlockListMoveToNewObjectResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockListMoveToNewObjectResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockListMoveToNewObjectResponseError) Reset() { + *m = RpcBlockListMoveToNewObjectResponseError{} +} +func (m *RpcBlockListMoveToNewObjectResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockListMoveToNewObjectResponseError) ProtoMessage() {} +func (*RpcBlockListMoveToNewObjectResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 17, 1, 0} +} +func (m *RpcBlockListMoveToNewObjectResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockListMoveToNewObjectResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockListMoveToNewObjectResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockListMoveToNewObjectResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockListMoveToNewObjectResponseError.Merge(m, src) +} +func (m *RpcBlockListMoveToNewObjectResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockListMoveToNewObjectResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockListMoveToNewObjectResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockListMoveToNewObjectResponseError proto.InternalMessageInfo + +func (m *RpcBlockListMoveToNewObjectResponseError) GetCode() RpcBlockListMoveToNewObjectResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockListMoveToNewObjectResponseError_NULL +} + +func (m *RpcBlockListMoveToNewObjectResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockListTurnInto struct { +} + +func (m *RpcBlockListTurnInto) Reset() { *m = RpcBlockListTurnInto{} } +func (m *RpcBlockListTurnInto) String() string { return proto.CompactTextString(m) } +func (*RpcBlockListTurnInto) ProtoMessage() {} +func (*RpcBlockListTurnInto) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 18} +} +func (m *RpcBlockListTurnInto) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockListTurnInto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockListTurnInto.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockListTurnInto) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockListTurnInto.Merge(m, src) +} +func (m *RpcBlockListTurnInto) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockListTurnInto) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockListTurnInto.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockListTurnInto proto.InternalMessageInfo + +type RpcBlockListTurnIntoRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockIds []string `protobuf:"bytes,2,rep,name=blockIds,proto3" json:"blockIds,omitempty"` + Style model.BlockContentTextStyle `protobuf:"varint,3,opt,name=style,proto3,enum=anytype.model.BlockContentTextStyle" json:"style,omitempty"` +} + +func (m *RpcBlockListTurnIntoRequest) Reset() { *m = RpcBlockListTurnIntoRequest{} } +func (m *RpcBlockListTurnIntoRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockListTurnIntoRequest) ProtoMessage() {} +func (*RpcBlockListTurnIntoRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 18, 0} +} +func (m *RpcBlockListTurnIntoRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockListTurnIntoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockListTurnIntoRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockListTurnIntoRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockListTurnIntoRequest.Merge(m, src) +} +func (m *RpcBlockListTurnIntoRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockListTurnIntoRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockListTurnIntoRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockListTurnIntoRequest proto.InternalMessageInfo + +func (m *RpcBlockListTurnIntoRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockListTurnIntoRequest) GetBlockIds() []string { + if m != nil { + return m.BlockIds + } + return nil +} + +func (m *RpcBlockListTurnIntoRequest) GetStyle() model.BlockContentTextStyle { + if m != nil { + return m.Style + } + return model.BlockContentText_Paragraph +} + +type RpcBlockListTurnIntoResponse struct { + Error *RpcBlockListTurnIntoResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockListTurnIntoResponse) Reset() { *m = RpcBlockListTurnIntoResponse{} } +func (m *RpcBlockListTurnIntoResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockListTurnIntoResponse) ProtoMessage() {} +func (*RpcBlockListTurnIntoResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 18, 1} +} +func (m *RpcBlockListTurnIntoResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockListTurnIntoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockListTurnIntoResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockListTurnIntoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockListTurnIntoResponse.Merge(m, src) +} +func (m *RpcBlockListTurnIntoResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockListTurnIntoResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockListTurnIntoResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockListTurnIntoResponse proto.InternalMessageInfo + +func (m *RpcBlockListTurnIntoResponse) GetError() *RpcBlockListTurnIntoResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockListTurnIntoResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockListTurnIntoResponseError struct { + Code RpcBlockListTurnIntoResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockListTurnIntoResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockListTurnIntoResponseError) Reset() { *m = RpcBlockListTurnIntoResponseError{} } +func (m *RpcBlockListTurnIntoResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockListTurnIntoResponseError) ProtoMessage() {} +func (*RpcBlockListTurnIntoResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 18, 1, 0} +} +func (m *RpcBlockListTurnIntoResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockListTurnIntoResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockListTurnIntoResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockListTurnIntoResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockListTurnIntoResponseError.Merge(m, src) +} +func (m *RpcBlockListTurnIntoResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockListTurnIntoResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockListTurnIntoResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockListTurnIntoResponseError proto.InternalMessageInfo + +func (m *RpcBlockListTurnIntoResponseError) GetCode() RpcBlockListTurnIntoResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockListTurnIntoResponseError_NULL +} + +func (m *RpcBlockListTurnIntoResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockListSetBackgroundColor struct { +} + +func (m *RpcBlockListSetBackgroundColor) Reset() { *m = RpcBlockListSetBackgroundColor{} } +func (m *RpcBlockListSetBackgroundColor) String() string { return proto.CompactTextString(m) } +func (*RpcBlockListSetBackgroundColor) ProtoMessage() {} +func (*RpcBlockListSetBackgroundColor) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 19} +} +func (m *RpcBlockListSetBackgroundColor) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockListSetBackgroundColor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockListSetBackgroundColor.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockListSetBackgroundColor) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockListSetBackgroundColor.Merge(m, src) +} +func (m *RpcBlockListSetBackgroundColor) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockListSetBackgroundColor) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockListSetBackgroundColor.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockListSetBackgroundColor proto.InternalMessageInfo + +type RpcBlockListSetBackgroundColorRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockIds []string `protobuf:"bytes,2,rep,name=blockIds,proto3" json:"blockIds,omitempty"` + Color string `protobuf:"bytes,3,opt,name=color,proto3" json:"color,omitempty"` +} + +func (m *RpcBlockListSetBackgroundColorRequest) Reset() { *m = RpcBlockListSetBackgroundColorRequest{} } +func (m *RpcBlockListSetBackgroundColorRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockListSetBackgroundColorRequest) ProtoMessage() {} +func (*RpcBlockListSetBackgroundColorRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 19, 0} +} +func (m *RpcBlockListSetBackgroundColorRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockListSetBackgroundColorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockListSetBackgroundColorRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockListSetBackgroundColorRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockListSetBackgroundColorRequest.Merge(m, src) +} +func (m *RpcBlockListSetBackgroundColorRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockListSetBackgroundColorRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockListSetBackgroundColorRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockListSetBackgroundColorRequest proto.InternalMessageInfo + +func (m *RpcBlockListSetBackgroundColorRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockListSetBackgroundColorRequest) GetBlockIds() []string { + if m != nil { + return m.BlockIds + } + return nil +} + +func (m *RpcBlockListSetBackgroundColorRequest) GetColor() string { + if m != nil { + return m.Color + } + return "" +} + +type RpcBlockListSetBackgroundColorResponse struct { + Error *RpcBlockListSetBackgroundColorResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockListSetBackgroundColorResponse) Reset() { + *m = RpcBlockListSetBackgroundColorResponse{} +} +func (m *RpcBlockListSetBackgroundColorResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockListSetBackgroundColorResponse) ProtoMessage() {} +func (*RpcBlockListSetBackgroundColorResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 19, 1} +} +func (m *RpcBlockListSetBackgroundColorResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockListSetBackgroundColorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockListSetBackgroundColorResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockListSetBackgroundColorResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockListSetBackgroundColorResponse.Merge(m, src) +} +func (m *RpcBlockListSetBackgroundColorResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockListSetBackgroundColorResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockListSetBackgroundColorResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockListSetBackgroundColorResponse proto.InternalMessageInfo + +func (m *RpcBlockListSetBackgroundColorResponse) GetError() *RpcBlockListSetBackgroundColorResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockListSetBackgroundColorResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockListSetBackgroundColorResponseError struct { + Code RpcBlockListSetBackgroundColorResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockListSetBackgroundColorResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockListSetBackgroundColorResponseError) Reset() { + *m = RpcBlockListSetBackgroundColorResponseError{} +} +func (m *RpcBlockListSetBackgroundColorResponseError) String() string { + return proto.CompactTextString(m) +} +func (*RpcBlockListSetBackgroundColorResponseError) ProtoMessage() {} +func (*RpcBlockListSetBackgroundColorResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 19, 1, 0} +} +func (m *RpcBlockListSetBackgroundColorResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockListSetBackgroundColorResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockListSetBackgroundColorResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockListSetBackgroundColorResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockListSetBackgroundColorResponseError.Merge(m, src) +} +func (m *RpcBlockListSetBackgroundColorResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockListSetBackgroundColorResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockListSetBackgroundColorResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockListSetBackgroundColorResponseError proto.InternalMessageInfo + +func (m *RpcBlockListSetBackgroundColorResponseError) GetCode() RpcBlockListSetBackgroundColorResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockListSetBackgroundColorResponseError_NULL +} + +func (m *RpcBlockListSetBackgroundColorResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockExport struct { +} + +func (m *RpcBlockExport) Reset() { *m = RpcBlockExport{} } +func (m *RpcBlockExport) String() string { return proto.CompactTextString(m) } +func (*RpcBlockExport) ProtoMessage() {} +func (*RpcBlockExport) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 20} +} +func (m *RpcBlockExport) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockExport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockExport.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockExport) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockExport.Merge(m, src) +} +func (m *RpcBlockExport) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockExport) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockExport.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockExport proto.InternalMessageInfo + +type RpcBlockExportRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + Blocks []*model.Block `protobuf:"bytes,2,rep,name=blocks,proto3" json:"blocks,omitempty"` +} + +func (m *RpcBlockExportRequest) Reset() { *m = RpcBlockExportRequest{} } +func (m *RpcBlockExportRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockExportRequest) ProtoMessage() {} +func (*RpcBlockExportRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 20, 0} +} +func (m *RpcBlockExportRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockExportRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockExportRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockExportRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockExportRequest.Merge(m, src) +} +func (m *RpcBlockExportRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockExportRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockExportRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockExportRequest proto.InternalMessageInfo + +func (m *RpcBlockExportRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockExportRequest) GetBlocks() []*model.Block { + if m != nil { + return m.Blocks + } + return nil +} + +type RpcBlockExportResponse struct { + Error *RpcBlockExportResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` + Event *ResponseEvent `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockExportResponse) Reset() { *m = RpcBlockExportResponse{} } +func (m *RpcBlockExportResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockExportResponse) ProtoMessage() {} +func (*RpcBlockExportResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 20, 1} +} +func (m *RpcBlockExportResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockExportResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockExportResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockExportResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockExportResponse.Merge(m, src) +} +func (m *RpcBlockExportResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockExportResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockExportResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockExportResponse proto.InternalMessageInfo + +func (m *RpcBlockExportResponse) GetError() *RpcBlockExportResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockExportResponse) GetPath() string { + if m != nil { + return m.Path + } + return "" +} + +func (m *RpcBlockExportResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockExportResponseError struct { + Code RpcBlockExportResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockExportResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockExportResponseError) Reset() { *m = RpcBlockExportResponseError{} } +func (m *RpcBlockExportResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockExportResponseError) ProtoMessage() {} +func (*RpcBlockExportResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 14, 20, 1, 0} +} +func (m *RpcBlockExportResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockExportResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockExportResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockExportResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockExportResponseError.Merge(m, src) +} +func (m *RpcBlockExportResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockExportResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockExportResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockExportResponseError proto.InternalMessageInfo + +func (m *RpcBlockExportResponseError) GetCode() RpcBlockExportResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockExportResponseError_NULL +} + +func (m *RpcBlockExportResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockLatex struct { +} + +func (m *RpcBlockLatex) Reset() { *m = RpcBlockLatex{} } +func (m *RpcBlockLatex) String() string { return proto.CompactTextString(m) } +func (*RpcBlockLatex) ProtoMessage() {} +func (*RpcBlockLatex) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 15} +} +func (m *RpcBlockLatex) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockLatex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockLatex.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockLatex) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockLatex.Merge(m, src) +} +func (m *RpcBlockLatex) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockLatex) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockLatex.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockLatex proto.InternalMessageInfo + +type RpcBlockLatexSetText struct { +} + +func (m *RpcBlockLatexSetText) Reset() { *m = RpcBlockLatexSetText{} } +func (m *RpcBlockLatexSetText) String() string { return proto.CompactTextString(m) } +func (*RpcBlockLatexSetText) ProtoMessage() {} +func (*RpcBlockLatexSetText) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 15, 0} +} +func (m *RpcBlockLatexSetText) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockLatexSetText) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockLatexSetText.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockLatexSetText) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockLatexSetText.Merge(m, src) +} +func (m *RpcBlockLatexSetText) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockLatexSetText) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockLatexSetText.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockLatexSetText proto.InternalMessageInfo + +type RpcBlockLatexSetTextRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` + Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"` +} + +func (m *RpcBlockLatexSetTextRequest) Reset() { *m = RpcBlockLatexSetTextRequest{} } +func (m *RpcBlockLatexSetTextRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockLatexSetTextRequest) ProtoMessage() {} +func (*RpcBlockLatexSetTextRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 15, 0, 0} +} +func (m *RpcBlockLatexSetTextRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockLatexSetTextRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockLatexSetTextRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockLatexSetTextRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockLatexSetTextRequest.Merge(m, src) +} +func (m *RpcBlockLatexSetTextRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockLatexSetTextRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockLatexSetTextRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockLatexSetTextRequest proto.InternalMessageInfo + +func (m *RpcBlockLatexSetTextRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockLatexSetTextRequest) GetBlockId() string { + if m != nil { + return m.BlockId + } + return "" +} + +func (m *RpcBlockLatexSetTextRequest) GetText() string { + if m != nil { + return m.Text + } + return "" +} + +type RpcBlockLatexSetTextResponse struct { + Error *RpcBlockLatexSetTextResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockLatexSetTextResponse) Reset() { *m = RpcBlockLatexSetTextResponse{} } +func (m *RpcBlockLatexSetTextResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockLatexSetTextResponse) ProtoMessage() {} +func (*RpcBlockLatexSetTextResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 15, 0, 1} +} +func (m *RpcBlockLatexSetTextResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockLatexSetTextResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockLatexSetTextResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockLatexSetTextResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockLatexSetTextResponse.Merge(m, src) +} +func (m *RpcBlockLatexSetTextResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockLatexSetTextResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockLatexSetTextResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockLatexSetTextResponse proto.InternalMessageInfo + +func (m *RpcBlockLatexSetTextResponse) GetError() *RpcBlockLatexSetTextResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockLatexSetTextResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockLatexSetTextResponseError struct { + Code RpcBlockLatexSetTextResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockLatexSetTextResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockLatexSetTextResponseError) Reset() { *m = RpcBlockLatexSetTextResponseError{} } +func (m *RpcBlockLatexSetTextResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockLatexSetTextResponseError) ProtoMessage() {} +func (*RpcBlockLatexSetTextResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 15, 0, 1, 0} +} +func (m *RpcBlockLatexSetTextResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockLatexSetTextResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockLatexSetTextResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockLatexSetTextResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockLatexSetTextResponseError.Merge(m, src) +} +func (m *RpcBlockLatexSetTextResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockLatexSetTextResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockLatexSetTextResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockLatexSetTextResponseError proto.InternalMessageInfo + +func (m *RpcBlockLatexSetTextResponseError) GetCode() RpcBlockLatexSetTextResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockLatexSetTextResponseError_NULL +} + +func (m *RpcBlockLatexSetTextResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockText struct { +} + +func (m *RpcBlockText) Reset() { *m = RpcBlockText{} } +func (m *RpcBlockText) String() string { return proto.CompactTextString(m) } +func (*RpcBlockText) ProtoMessage() {} +func (*RpcBlockText) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16} +} +func (m *RpcBlockText) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockText) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockText.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockText) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockText.Merge(m, src) +} +func (m *RpcBlockText) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockText) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockText.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockText proto.InternalMessageInfo + +type RpcBlockTextSetText struct { +} + +func (m *RpcBlockTextSetText) Reset() { *m = RpcBlockTextSetText{} } +func (m *RpcBlockTextSetText) String() string { return proto.CompactTextString(m) } +func (*RpcBlockTextSetText) ProtoMessage() {} +func (*RpcBlockTextSetText) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 0} +} +func (m *RpcBlockTextSetText) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockTextSetText) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockTextSetText.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockTextSetText) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockTextSetText.Merge(m, src) +} +func (m *RpcBlockTextSetText) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockTextSetText) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockTextSetText.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockTextSetText proto.InternalMessageInfo + +type RpcBlockTextSetTextRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` + Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"` + Marks *model.BlockContentTextMarks `protobuf:"bytes,4,opt,name=marks,proto3" json:"marks,omitempty"` +} + +func (m *RpcBlockTextSetTextRequest) Reset() { *m = RpcBlockTextSetTextRequest{} } +func (m *RpcBlockTextSetTextRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockTextSetTextRequest) ProtoMessage() {} +func (*RpcBlockTextSetTextRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 0, 0} +} +func (m *RpcBlockTextSetTextRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockTextSetTextRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockTextSetTextRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockTextSetTextRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockTextSetTextRequest.Merge(m, src) +} +func (m *RpcBlockTextSetTextRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockTextSetTextRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockTextSetTextRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockTextSetTextRequest proto.InternalMessageInfo + +func (m *RpcBlockTextSetTextRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockTextSetTextRequest) GetBlockId() string { + if m != nil { + return m.BlockId + } + return "" +} + +func (m *RpcBlockTextSetTextRequest) GetText() string { + if m != nil { + return m.Text + } + return "" +} + +func (m *RpcBlockTextSetTextRequest) GetMarks() *model.BlockContentTextMarks { + if m != nil { + return m.Marks + } + return nil +} + +type RpcBlockTextSetTextResponse struct { + Error *RpcBlockTextSetTextResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockTextSetTextResponse) Reset() { *m = RpcBlockTextSetTextResponse{} } +func (m *RpcBlockTextSetTextResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockTextSetTextResponse) ProtoMessage() {} +func (*RpcBlockTextSetTextResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 0, 1} +} +func (m *RpcBlockTextSetTextResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockTextSetTextResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockTextSetTextResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockTextSetTextResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockTextSetTextResponse.Merge(m, src) +} +func (m *RpcBlockTextSetTextResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockTextSetTextResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockTextSetTextResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockTextSetTextResponse proto.InternalMessageInfo + +func (m *RpcBlockTextSetTextResponse) GetError() *RpcBlockTextSetTextResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockTextSetTextResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockTextSetTextResponseError struct { + Code RpcBlockTextSetTextResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockTextSetTextResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockTextSetTextResponseError) Reset() { *m = RpcBlockTextSetTextResponseError{} } +func (m *RpcBlockTextSetTextResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockTextSetTextResponseError) ProtoMessage() {} +func (*RpcBlockTextSetTextResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 0, 1, 0} +} +func (m *RpcBlockTextSetTextResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockTextSetTextResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockTextSetTextResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockTextSetTextResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockTextSetTextResponseError.Merge(m, src) +} +func (m *RpcBlockTextSetTextResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockTextSetTextResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockTextSetTextResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockTextSetTextResponseError proto.InternalMessageInfo + +func (m *RpcBlockTextSetTextResponseError) GetCode() RpcBlockTextSetTextResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockTextSetTextResponseError_NULL +} + +func (m *RpcBlockTextSetTextResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockTextSetColor struct { +} + +func (m *RpcBlockTextSetColor) Reset() { *m = RpcBlockTextSetColor{} } +func (m *RpcBlockTextSetColor) String() string { return proto.CompactTextString(m) } +func (*RpcBlockTextSetColor) ProtoMessage() {} +func (*RpcBlockTextSetColor) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 1} +} +func (m *RpcBlockTextSetColor) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockTextSetColor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockTextSetColor.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockTextSetColor) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockTextSetColor.Merge(m, src) +} +func (m *RpcBlockTextSetColor) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockTextSetColor) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockTextSetColor.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockTextSetColor proto.InternalMessageInfo + +type RpcBlockTextSetColorRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` + Color string `protobuf:"bytes,3,opt,name=color,proto3" json:"color,omitempty"` +} + +func (m *RpcBlockTextSetColorRequest) Reset() { *m = RpcBlockTextSetColorRequest{} } +func (m *RpcBlockTextSetColorRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockTextSetColorRequest) ProtoMessage() {} +func (*RpcBlockTextSetColorRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 1, 0} +} +func (m *RpcBlockTextSetColorRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockTextSetColorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockTextSetColorRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockTextSetColorRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockTextSetColorRequest.Merge(m, src) +} +func (m *RpcBlockTextSetColorRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockTextSetColorRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockTextSetColorRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockTextSetColorRequest proto.InternalMessageInfo + +func (m *RpcBlockTextSetColorRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockTextSetColorRequest) GetBlockId() string { + if m != nil { + return m.BlockId + } + return "" +} + +func (m *RpcBlockTextSetColorRequest) GetColor() string { + if m != nil { + return m.Color + } + return "" +} + +type RpcBlockTextSetColorResponse struct { + Error *RpcBlockTextSetColorResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockTextSetColorResponse) Reset() { *m = RpcBlockTextSetColorResponse{} } +func (m *RpcBlockTextSetColorResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockTextSetColorResponse) ProtoMessage() {} +func (*RpcBlockTextSetColorResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 1, 1} +} +func (m *RpcBlockTextSetColorResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockTextSetColorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockTextSetColorResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockTextSetColorResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockTextSetColorResponse.Merge(m, src) +} +func (m *RpcBlockTextSetColorResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockTextSetColorResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockTextSetColorResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockTextSetColorResponse proto.InternalMessageInfo + +func (m *RpcBlockTextSetColorResponse) GetError() *RpcBlockTextSetColorResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockTextSetColorResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockTextSetColorResponseError struct { + Code RpcBlockTextSetColorResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockTextSetColorResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockTextSetColorResponseError) Reset() { *m = RpcBlockTextSetColorResponseError{} } +func (m *RpcBlockTextSetColorResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockTextSetColorResponseError) ProtoMessage() {} +func (*RpcBlockTextSetColorResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 1, 1, 0} +} +func (m *RpcBlockTextSetColorResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockTextSetColorResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockTextSetColorResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockTextSetColorResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockTextSetColorResponseError.Merge(m, src) +} +func (m *RpcBlockTextSetColorResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockTextSetColorResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockTextSetColorResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockTextSetColorResponseError proto.InternalMessageInfo + +func (m *RpcBlockTextSetColorResponseError) GetCode() RpcBlockTextSetColorResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockTextSetColorResponseError_NULL +} + +func (m *RpcBlockTextSetColorResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockTextSetMarks struct { +} + +func (m *RpcBlockTextSetMarks) Reset() { *m = RpcBlockTextSetMarks{} } +func (m *RpcBlockTextSetMarks) String() string { return proto.CompactTextString(m) } +func (*RpcBlockTextSetMarks) ProtoMessage() {} +func (*RpcBlockTextSetMarks) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 2} +} +func (m *RpcBlockTextSetMarks) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockTextSetMarks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockTextSetMarks.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockTextSetMarks) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockTextSetMarks.Merge(m, src) +} +func (m *RpcBlockTextSetMarks) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockTextSetMarks) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockTextSetMarks.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockTextSetMarks proto.InternalMessageInfo + +// +// Get marks list in the selected range in text block. +type RpcBlockTextSetMarksGet struct { +} + +func (m *RpcBlockTextSetMarksGet) Reset() { *m = RpcBlockTextSetMarksGet{} } +func (m *RpcBlockTextSetMarksGet) String() string { return proto.CompactTextString(m) } +func (*RpcBlockTextSetMarksGet) ProtoMessage() {} +func (*RpcBlockTextSetMarksGet) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 2, 0} +} +func (m *RpcBlockTextSetMarksGet) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockTextSetMarksGet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockTextSetMarksGet.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockTextSetMarksGet) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockTextSetMarksGet.Merge(m, src) +} +func (m *RpcBlockTextSetMarksGet) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockTextSetMarksGet) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockTextSetMarksGet.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockTextSetMarksGet proto.InternalMessageInfo + +type RpcBlockTextSetMarksGetRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,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 *RpcBlockTextSetMarksGetRequest) Reset() { *m = RpcBlockTextSetMarksGetRequest{} } +func (m *RpcBlockTextSetMarksGetRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockTextSetMarksGetRequest) ProtoMessage() {} +func (*RpcBlockTextSetMarksGetRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 2, 0, 0} +} +func (m *RpcBlockTextSetMarksGetRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockTextSetMarksGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockTextSetMarksGetRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockTextSetMarksGetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockTextSetMarksGetRequest.Merge(m, src) +} +func (m *RpcBlockTextSetMarksGetRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockTextSetMarksGetRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockTextSetMarksGetRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockTextSetMarksGetRequest proto.InternalMessageInfo + +func (m *RpcBlockTextSetMarksGetRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockTextSetMarksGetRequest) GetBlockId() string { + if m != nil { + return m.BlockId + } + return "" +} + +func (m *RpcBlockTextSetMarksGetRequest) GetRange() *model.Range { + if m != nil { + return m.Range + } + return nil +} + +type RpcBlockTextSetMarksGetResponse struct { + Error *RpcBlockTextSetMarksGetResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockTextSetMarksGetResponse) Reset() { *m = RpcBlockTextSetMarksGetResponse{} } +func (m *RpcBlockTextSetMarksGetResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockTextSetMarksGetResponse) ProtoMessage() {} +func (*RpcBlockTextSetMarksGetResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 2, 0, 1} +} +func (m *RpcBlockTextSetMarksGetResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockTextSetMarksGetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockTextSetMarksGetResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockTextSetMarksGetResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockTextSetMarksGetResponse.Merge(m, src) +} +func (m *RpcBlockTextSetMarksGetResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockTextSetMarksGetResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockTextSetMarksGetResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockTextSetMarksGetResponse proto.InternalMessageInfo + +func (m *RpcBlockTextSetMarksGetResponse) GetError() *RpcBlockTextSetMarksGetResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockTextSetMarksGetResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockTextSetMarksGetResponseError struct { + Code RpcBlockTextSetMarksGetResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockTextSetMarksGetResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockTextSetMarksGetResponseError) Reset() { *m = RpcBlockTextSetMarksGetResponseError{} } +func (m *RpcBlockTextSetMarksGetResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockTextSetMarksGetResponseError) ProtoMessage() {} +func (*RpcBlockTextSetMarksGetResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 2, 0, 1, 0} +} +func (m *RpcBlockTextSetMarksGetResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockTextSetMarksGetResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockTextSetMarksGetResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockTextSetMarksGetResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockTextSetMarksGetResponseError.Merge(m, src) +} +func (m *RpcBlockTextSetMarksGetResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockTextSetMarksGetResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockTextSetMarksGetResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockTextSetMarksGetResponseError proto.InternalMessageInfo + +func (m *RpcBlockTextSetMarksGetResponseError) GetCode() RpcBlockTextSetMarksGetResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockTextSetMarksGetResponseError_NULL +} + +func (m *RpcBlockTextSetMarksGetResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockTextSetStyle struct { +} + +func (m *RpcBlockTextSetStyle) Reset() { *m = RpcBlockTextSetStyle{} } +func (m *RpcBlockTextSetStyle) String() string { return proto.CompactTextString(m) } +func (*RpcBlockTextSetStyle) ProtoMessage() {} +func (*RpcBlockTextSetStyle) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 3} +} +func (m *RpcBlockTextSetStyle) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockTextSetStyle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockTextSetStyle.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockTextSetStyle) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockTextSetStyle.Merge(m, src) +} +func (m *RpcBlockTextSetStyle) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockTextSetStyle) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockTextSetStyle.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockTextSetStyle proto.InternalMessageInfo + +type RpcBlockTextSetStyleRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` + Style model.BlockContentTextStyle `protobuf:"varint,3,opt,name=style,proto3,enum=anytype.model.BlockContentTextStyle" json:"style,omitempty"` +} + +func (m *RpcBlockTextSetStyleRequest) Reset() { *m = RpcBlockTextSetStyleRequest{} } +func (m *RpcBlockTextSetStyleRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockTextSetStyleRequest) ProtoMessage() {} +func (*RpcBlockTextSetStyleRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 3, 0} +} +func (m *RpcBlockTextSetStyleRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockTextSetStyleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockTextSetStyleRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockTextSetStyleRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockTextSetStyleRequest.Merge(m, src) +} +func (m *RpcBlockTextSetStyleRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockTextSetStyleRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockTextSetStyleRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockTextSetStyleRequest proto.InternalMessageInfo + +func (m *RpcBlockTextSetStyleRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockTextSetStyleRequest) GetBlockId() string { + if m != nil { + return m.BlockId + } + return "" +} + +func (m *RpcBlockTextSetStyleRequest) GetStyle() model.BlockContentTextStyle { + if m != nil { + return m.Style + } + return model.BlockContentText_Paragraph +} + +type RpcBlockTextSetStyleResponse struct { + Error *RpcBlockTextSetStyleResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockTextSetStyleResponse) Reset() { *m = RpcBlockTextSetStyleResponse{} } +func (m *RpcBlockTextSetStyleResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockTextSetStyleResponse) ProtoMessage() {} +func (*RpcBlockTextSetStyleResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 3, 1} +} +func (m *RpcBlockTextSetStyleResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockTextSetStyleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockTextSetStyleResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockTextSetStyleResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockTextSetStyleResponse.Merge(m, src) +} +func (m *RpcBlockTextSetStyleResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockTextSetStyleResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockTextSetStyleResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockTextSetStyleResponse proto.InternalMessageInfo + +func (m *RpcBlockTextSetStyleResponse) GetError() *RpcBlockTextSetStyleResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockTextSetStyleResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockTextSetStyleResponseError struct { + Code RpcBlockTextSetStyleResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockTextSetStyleResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockTextSetStyleResponseError) Reset() { *m = RpcBlockTextSetStyleResponseError{} } +func (m *RpcBlockTextSetStyleResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockTextSetStyleResponseError) ProtoMessage() {} +func (*RpcBlockTextSetStyleResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 3, 1, 0} +} +func (m *RpcBlockTextSetStyleResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockTextSetStyleResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockTextSetStyleResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockTextSetStyleResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockTextSetStyleResponseError.Merge(m, src) +} +func (m *RpcBlockTextSetStyleResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockTextSetStyleResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockTextSetStyleResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockTextSetStyleResponseError proto.InternalMessageInfo + +func (m *RpcBlockTextSetStyleResponseError) GetCode() RpcBlockTextSetStyleResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockTextSetStyleResponseError_NULL +} + +func (m *RpcBlockTextSetStyleResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockTextSetChecked struct { +} + +func (m *RpcBlockTextSetChecked) Reset() { *m = RpcBlockTextSetChecked{} } +func (m *RpcBlockTextSetChecked) String() string { return proto.CompactTextString(m) } +func (*RpcBlockTextSetChecked) ProtoMessage() {} +func (*RpcBlockTextSetChecked) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 4} +} +func (m *RpcBlockTextSetChecked) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockTextSetChecked) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockTextSetChecked.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockTextSetChecked) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockTextSetChecked.Merge(m, src) +} +func (m *RpcBlockTextSetChecked) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockTextSetChecked) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockTextSetChecked.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockTextSetChecked proto.InternalMessageInfo + +type RpcBlockTextSetCheckedRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` + Checked bool `protobuf:"varint,3,opt,name=checked,proto3" json:"checked,omitempty"` +} + +func (m *RpcBlockTextSetCheckedRequest) Reset() { *m = RpcBlockTextSetCheckedRequest{} } +func (m *RpcBlockTextSetCheckedRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockTextSetCheckedRequest) ProtoMessage() {} +func (*RpcBlockTextSetCheckedRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 4, 0} +} +func (m *RpcBlockTextSetCheckedRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockTextSetCheckedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockTextSetCheckedRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockTextSetCheckedRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockTextSetCheckedRequest.Merge(m, src) +} +func (m *RpcBlockTextSetCheckedRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockTextSetCheckedRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockTextSetCheckedRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockTextSetCheckedRequest proto.InternalMessageInfo + +func (m *RpcBlockTextSetCheckedRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockTextSetCheckedRequest) GetBlockId() string { + if m != nil { + return m.BlockId + } + return "" +} + +func (m *RpcBlockTextSetCheckedRequest) GetChecked() bool { + if m != nil { + return m.Checked + } + return false +} + +type RpcBlockTextSetCheckedResponse struct { + Error *RpcBlockTextSetCheckedResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockTextSetCheckedResponse) Reset() { *m = RpcBlockTextSetCheckedResponse{} } +func (m *RpcBlockTextSetCheckedResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockTextSetCheckedResponse) ProtoMessage() {} +func (*RpcBlockTextSetCheckedResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 4, 1} +} +func (m *RpcBlockTextSetCheckedResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockTextSetCheckedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockTextSetCheckedResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockTextSetCheckedResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockTextSetCheckedResponse.Merge(m, src) +} +func (m *RpcBlockTextSetCheckedResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockTextSetCheckedResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockTextSetCheckedResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockTextSetCheckedResponse proto.InternalMessageInfo + +func (m *RpcBlockTextSetCheckedResponse) GetError() *RpcBlockTextSetCheckedResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockTextSetCheckedResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockTextSetCheckedResponseError struct { + Code RpcBlockTextSetCheckedResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockTextSetCheckedResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockTextSetCheckedResponseError) Reset() { *m = RpcBlockTextSetCheckedResponseError{} } +func (m *RpcBlockTextSetCheckedResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockTextSetCheckedResponseError) ProtoMessage() {} +func (*RpcBlockTextSetCheckedResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 4, 1, 0} +} +func (m *RpcBlockTextSetCheckedResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockTextSetCheckedResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockTextSetCheckedResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockTextSetCheckedResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockTextSetCheckedResponseError.Merge(m, src) +} +func (m *RpcBlockTextSetCheckedResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockTextSetCheckedResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockTextSetCheckedResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockTextSetCheckedResponseError proto.InternalMessageInfo + +func (m *RpcBlockTextSetCheckedResponseError) GetCode() RpcBlockTextSetCheckedResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockTextSetCheckedResponseError_NULL +} + +func (m *RpcBlockTextSetCheckedResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockTextSetIcon struct { +} + +func (m *RpcBlockTextSetIcon) Reset() { *m = RpcBlockTextSetIcon{} } +func (m *RpcBlockTextSetIcon) String() string { return proto.CompactTextString(m) } +func (*RpcBlockTextSetIcon) ProtoMessage() {} +func (*RpcBlockTextSetIcon) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 5} +} +func (m *RpcBlockTextSetIcon) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockTextSetIcon) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockTextSetIcon.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockTextSetIcon) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockTextSetIcon.Merge(m, src) +} +func (m *RpcBlockTextSetIcon) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockTextSetIcon) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockTextSetIcon.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockTextSetIcon proto.InternalMessageInfo + +type RpcBlockTextSetIconRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` + IconImage string `protobuf:"bytes,3,opt,name=iconImage,proto3" json:"iconImage,omitempty"` + IconEmoji string `protobuf:"bytes,5,opt,name=iconEmoji,proto3" json:"iconEmoji,omitempty"` +} + +func (m *RpcBlockTextSetIconRequest) Reset() { *m = RpcBlockTextSetIconRequest{} } +func (m *RpcBlockTextSetIconRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockTextSetIconRequest) ProtoMessage() {} +func (*RpcBlockTextSetIconRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 5, 0} +} +func (m *RpcBlockTextSetIconRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockTextSetIconRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockTextSetIconRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockTextSetIconRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockTextSetIconRequest.Merge(m, src) +} +func (m *RpcBlockTextSetIconRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockTextSetIconRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockTextSetIconRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockTextSetIconRequest proto.InternalMessageInfo + +func (m *RpcBlockTextSetIconRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockTextSetIconRequest) GetBlockId() string { + if m != nil { + return m.BlockId + } + return "" +} + +func (m *RpcBlockTextSetIconRequest) GetIconImage() string { + if m != nil { + return m.IconImage + } + return "" +} + +func (m *RpcBlockTextSetIconRequest) GetIconEmoji() string { + if m != nil { + return m.IconEmoji + } + return "" +} + +type RpcBlockTextSetIconResponse struct { + Error *RpcBlockTextSetIconResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockTextSetIconResponse) Reset() { *m = RpcBlockTextSetIconResponse{} } +func (m *RpcBlockTextSetIconResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockTextSetIconResponse) ProtoMessage() {} +func (*RpcBlockTextSetIconResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 5, 1} +} +func (m *RpcBlockTextSetIconResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockTextSetIconResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockTextSetIconResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockTextSetIconResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockTextSetIconResponse.Merge(m, src) +} +func (m *RpcBlockTextSetIconResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockTextSetIconResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockTextSetIconResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockTextSetIconResponse proto.InternalMessageInfo + +func (m *RpcBlockTextSetIconResponse) GetError() *RpcBlockTextSetIconResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockTextSetIconResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockTextSetIconResponseError struct { + Code RpcBlockTextSetIconResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockTextSetIconResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockTextSetIconResponseError) Reset() { *m = RpcBlockTextSetIconResponseError{} } +func (m *RpcBlockTextSetIconResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockTextSetIconResponseError) ProtoMessage() {} +func (*RpcBlockTextSetIconResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 5, 1, 0} +} +func (m *RpcBlockTextSetIconResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockTextSetIconResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockTextSetIconResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockTextSetIconResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockTextSetIconResponseError.Merge(m, src) +} +func (m *RpcBlockTextSetIconResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockTextSetIconResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockTextSetIconResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockTextSetIconResponseError proto.InternalMessageInfo + +func (m *RpcBlockTextSetIconResponseError) GetCode() RpcBlockTextSetIconResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockTextSetIconResponseError_NULL +} + +func (m *RpcBlockTextSetIconResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockTextListSetStyle struct { +} + +func (m *RpcBlockTextListSetStyle) Reset() { *m = RpcBlockTextListSetStyle{} } +func (m *RpcBlockTextListSetStyle) String() string { return proto.CompactTextString(m) } +func (*RpcBlockTextListSetStyle) ProtoMessage() {} +func (*RpcBlockTextListSetStyle) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 6} +} +func (m *RpcBlockTextListSetStyle) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockTextListSetStyle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockTextListSetStyle.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockTextListSetStyle) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockTextListSetStyle.Merge(m, src) +} +func (m *RpcBlockTextListSetStyle) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockTextListSetStyle) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockTextListSetStyle.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockTextListSetStyle proto.InternalMessageInfo + +type RpcBlockTextListSetStyleRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockIds []string `protobuf:"bytes,2,rep,name=blockIds,proto3" json:"blockIds,omitempty"` + Style model.BlockContentTextStyle `protobuf:"varint,3,opt,name=style,proto3,enum=anytype.model.BlockContentTextStyle" json:"style,omitempty"` +} + +func (m *RpcBlockTextListSetStyleRequest) Reset() { *m = RpcBlockTextListSetStyleRequest{} } +func (m *RpcBlockTextListSetStyleRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockTextListSetStyleRequest) ProtoMessage() {} +func (*RpcBlockTextListSetStyleRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 6, 0} +} +func (m *RpcBlockTextListSetStyleRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockTextListSetStyleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockTextListSetStyleRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockTextListSetStyleRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockTextListSetStyleRequest.Merge(m, src) +} +func (m *RpcBlockTextListSetStyleRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockTextListSetStyleRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockTextListSetStyleRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockTextListSetStyleRequest proto.InternalMessageInfo + +func (m *RpcBlockTextListSetStyleRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockTextListSetStyleRequest) GetBlockIds() []string { + if m != nil { + return m.BlockIds + } + return nil +} + +func (m *RpcBlockTextListSetStyleRequest) GetStyle() model.BlockContentTextStyle { + if m != nil { + return m.Style + } + return model.BlockContentText_Paragraph +} + +type RpcBlockTextListSetStyleResponse struct { + Error *RpcBlockTextListSetStyleResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockTextListSetStyleResponse) Reset() { *m = RpcBlockTextListSetStyleResponse{} } +func (m *RpcBlockTextListSetStyleResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockTextListSetStyleResponse) ProtoMessage() {} +func (*RpcBlockTextListSetStyleResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 6, 1} +} +func (m *RpcBlockTextListSetStyleResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockTextListSetStyleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockTextListSetStyleResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockTextListSetStyleResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockTextListSetStyleResponse.Merge(m, src) +} +func (m *RpcBlockTextListSetStyleResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockTextListSetStyleResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockTextListSetStyleResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockTextListSetStyleResponse proto.InternalMessageInfo + +func (m *RpcBlockTextListSetStyleResponse) GetError() *RpcBlockTextListSetStyleResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockTextListSetStyleResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockTextListSetStyleResponseError struct { + Code RpcBlockTextListSetStyleResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockTextListSetStyleResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockTextListSetStyleResponseError) Reset() { *m = RpcBlockTextListSetStyleResponseError{} } +func (m *RpcBlockTextListSetStyleResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockTextListSetStyleResponseError) ProtoMessage() {} +func (*RpcBlockTextListSetStyleResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 6, 1, 0} +} +func (m *RpcBlockTextListSetStyleResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockTextListSetStyleResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockTextListSetStyleResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockTextListSetStyleResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockTextListSetStyleResponseError.Merge(m, src) +} +func (m *RpcBlockTextListSetStyleResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockTextListSetStyleResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockTextListSetStyleResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockTextListSetStyleResponseError proto.InternalMessageInfo + +func (m *RpcBlockTextListSetStyleResponseError) GetCode() RpcBlockTextListSetStyleResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockTextListSetStyleResponseError_NULL +} + +func (m *RpcBlockTextListSetStyleResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockTextListSetColor struct { +} + +func (m *RpcBlockTextListSetColor) Reset() { *m = RpcBlockTextListSetColor{} } +func (m *RpcBlockTextListSetColor) String() string { return proto.CompactTextString(m) } +func (*RpcBlockTextListSetColor) ProtoMessage() {} +func (*RpcBlockTextListSetColor) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 7} +} +func (m *RpcBlockTextListSetColor) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockTextListSetColor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockTextListSetColor.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockTextListSetColor) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockTextListSetColor.Merge(m, src) +} +func (m *RpcBlockTextListSetColor) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockTextListSetColor) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockTextListSetColor.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockTextListSetColor proto.InternalMessageInfo + +type RpcBlockTextListSetColorRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockIds []string `protobuf:"bytes,2,rep,name=blockIds,proto3" json:"blockIds,omitempty"` + Color string `protobuf:"bytes,3,opt,name=color,proto3" json:"color,omitempty"` +} + +func (m *RpcBlockTextListSetColorRequest) Reset() { *m = RpcBlockTextListSetColorRequest{} } +func (m *RpcBlockTextListSetColorRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockTextListSetColorRequest) ProtoMessage() {} +func (*RpcBlockTextListSetColorRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 7, 0} +} +func (m *RpcBlockTextListSetColorRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockTextListSetColorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockTextListSetColorRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockTextListSetColorRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockTextListSetColorRequest.Merge(m, src) +} +func (m *RpcBlockTextListSetColorRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockTextListSetColorRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockTextListSetColorRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockTextListSetColorRequest proto.InternalMessageInfo + +func (m *RpcBlockTextListSetColorRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockTextListSetColorRequest) GetBlockIds() []string { + if m != nil { + return m.BlockIds + } + return nil +} + +func (m *RpcBlockTextListSetColorRequest) GetColor() string { + if m != nil { + return m.Color + } + return "" +} + +type RpcBlockTextListSetColorResponse struct { + Error *RpcBlockTextListSetColorResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockTextListSetColorResponse) Reset() { *m = RpcBlockTextListSetColorResponse{} } +func (m *RpcBlockTextListSetColorResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockTextListSetColorResponse) ProtoMessage() {} +func (*RpcBlockTextListSetColorResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 7, 1} +} +func (m *RpcBlockTextListSetColorResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockTextListSetColorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockTextListSetColorResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockTextListSetColorResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockTextListSetColorResponse.Merge(m, src) +} +func (m *RpcBlockTextListSetColorResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockTextListSetColorResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockTextListSetColorResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockTextListSetColorResponse proto.InternalMessageInfo + +func (m *RpcBlockTextListSetColorResponse) GetError() *RpcBlockTextListSetColorResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockTextListSetColorResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockTextListSetColorResponseError struct { + Code RpcBlockTextListSetColorResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockTextListSetColorResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockTextListSetColorResponseError) Reset() { *m = RpcBlockTextListSetColorResponseError{} } +func (m *RpcBlockTextListSetColorResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockTextListSetColorResponseError) ProtoMessage() {} +func (*RpcBlockTextListSetColorResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 7, 1, 0} +} +func (m *RpcBlockTextListSetColorResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockTextListSetColorResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockTextListSetColorResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockTextListSetColorResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockTextListSetColorResponseError.Merge(m, src) +} +func (m *RpcBlockTextListSetColorResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockTextListSetColorResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockTextListSetColorResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockTextListSetColorResponseError proto.InternalMessageInfo + +func (m *RpcBlockTextListSetColorResponseError) GetCode() RpcBlockTextListSetColorResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockTextListSetColorResponseError_NULL +} + +func (m *RpcBlockTextListSetColorResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockTextListSetMark struct { +} + +func (m *RpcBlockTextListSetMark) Reset() { *m = RpcBlockTextListSetMark{} } +func (m *RpcBlockTextListSetMark) String() string { return proto.CompactTextString(m) } +func (*RpcBlockTextListSetMark) ProtoMessage() {} +func (*RpcBlockTextListSetMark) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 8} +} +func (m *RpcBlockTextListSetMark) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockTextListSetMark) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockTextListSetMark.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockTextListSetMark) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockTextListSetMark.Merge(m, src) +} +func (m *RpcBlockTextListSetMark) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockTextListSetMark) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockTextListSetMark.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockTextListSetMark proto.InternalMessageInfo + +type RpcBlockTextListSetMarkRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockIds []string `protobuf:"bytes,2,rep,name=blockIds,proto3" json:"blockIds,omitempty"` + Mark *model.BlockContentTextMark `protobuf:"bytes,3,opt,name=mark,proto3" json:"mark,omitempty"` +} + +func (m *RpcBlockTextListSetMarkRequest) Reset() { *m = RpcBlockTextListSetMarkRequest{} } +func (m *RpcBlockTextListSetMarkRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockTextListSetMarkRequest) ProtoMessage() {} +func (*RpcBlockTextListSetMarkRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 8, 0} +} +func (m *RpcBlockTextListSetMarkRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockTextListSetMarkRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockTextListSetMarkRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockTextListSetMarkRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockTextListSetMarkRequest.Merge(m, src) +} +func (m *RpcBlockTextListSetMarkRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockTextListSetMarkRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockTextListSetMarkRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockTextListSetMarkRequest proto.InternalMessageInfo + +func (m *RpcBlockTextListSetMarkRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockTextListSetMarkRequest) GetBlockIds() []string { + if m != nil { + return m.BlockIds + } + return nil +} + +func (m *RpcBlockTextListSetMarkRequest) GetMark() *model.BlockContentTextMark { + if m != nil { + return m.Mark + } + return nil +} + +type RpcBlockTextListSetMarkResponse struct { + Error *RpcBlockTextListSetMarkResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockTextListSetMarkResponse) Reset() { *m = RpcBlockTextListSetMarkResponse{} } +func (m *RpcBlockTextListSetMarkResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockTextListSetMarkResponse) ProtoMessage() {} +func (*RpcBlockTextListSetMarkResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 8, 1} +} +func (m *RpcBlockTextListSetMarkResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockTextListSetMarkResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockTextListSetMarkResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockTextListSetMarkResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockTextListSetMarkResponse.Merge(m, src) +} +func (m *RpcBlockTextListSetMarkResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockTextListSetMarkResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockTextListSetMarkResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockTextListSetMarkResponse proto.InternalMessageInfo + +func (m *RpcBlockTextListSetMarkResponse) GetError() *RpcBlockTextListSetMarkResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockTextListSetMarkResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockTextListSetMarkResponseError struct { + Code RpcBlockTextListSetMarkResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockTextListSetMarkResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockTextListSetMarkResponseError) Reset() { *m = RpcBlockTextListSetMarkResponseError{} } +func (m *RpcBlockTextListSetMarkResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockTextListSetMarkResponseError) ProtoMessage() {} +func (*RpcBlockTextListSetMarkResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 16, 8, 1, 0} +} +func (m *RpcBlockTextListSetMarkResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockTextListSetMarkResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockTextListSetMarkResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockTextListSetMarkResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockTextListSetMarkResponseError.Merge(m, src) +} +func (m *RpcBlockTextListSetMarkResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockTextListSetMarkResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockTextListSetMarkResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockTextListSetMarkResponseError proto.InternalMessageInfo + +func (m *RpcBlockTextListSetMarkResponseError) GetCode() RpcBlockTextListSetMarkResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockTextListSetMarkResponseError_NULL +} + +func (m *RpcBlockTextListSetMarkResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockFile struct { +} + +func (m *RpcBlockFile) Reset() { *m = RpcBlockFile{} } +func (m *RpcBlockFile) String() string { return proto.CompactTextString(m) } +func (*RpcBlockFile) ProtoMessage() {} +func (*RpcBlockFile) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 17} +} +func (m *RpcBlockFile) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockFile.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockFile) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockFile.Merge(m, src) +} +func (m *RpcBlockFile) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockFile) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockFile.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockFile proto.InternalMessageInfo + +type RpcBlockFileSetName struct { +} + +func (m *RpcBlockFileSetName) Reset() { *m = RpcBlockFileSetName{} } +func (m *RpcBlockFileSetName) String() string { return proto.CompactTextString(m) } +func (*RpcBlockFileSetName) ProtoMessage() {} +func (*RpcBlockFileSetName) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 17, 0} +} +func (m *RpcBlockFileSetName) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockFileSetName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockFileSetName.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockFileSetName) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockFileSetName.Merge(m, src) +} +func (m *RpcBlockFileSetName) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockFileSetName) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockFileSetName.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockFileSetName proto.InternalMessageInfo + +type RpcBlockFileSetNameRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` +} + +func (m *RpcBlockFileSetNameRequest) Reset() { *m = RpcBlockFileSetNameRequest{} } +func (m *RpcBlockFileSetNameRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockFileSetNameRequest) ProtoMessage() {} +func (*RpcBlockFileSetNameRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 17, 0, 0} +} +func (m *RpcBlockFileSetNameRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockFileSetNameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockFileSetNameRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockFileSetNameRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockFileSetNameRequest.Merge(m, src) +} +func (m *RpcBlockFileSetNameRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockFileSetNameRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockFileSetNameRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockFileSetNameRequest proto.InternalMessageInfo + +func (m *RpcBlockFileSetNameRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockFileSetNameRequest) GetBlockId() string { + if m != nil { + return m.BlockId + } + return "" +} + +func (m *RpcBlockFileSetNameRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +type RpcBlockFileSetNameResponse struct { + Error *RpcBlockFileSetNameResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockFileSetNameResponse) Reset() { *m = RpcBlockFileSetNameResponse{} } +func (m *RpcBlockFileSetNameResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockFileSetNameResponse) ProtoMessage() {} +func (*RpcBlockFileSetNameResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 17, 0, 1} +} +func (m *RpcBlockFileSetNameResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockFileSetNameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockFileSetNameResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockFileSetNameResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockFileSetNameResponse.Merge(m, src) +} +func (m *RpcBlockFileSetNameResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockFileSetNameResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockFileSetNameResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockFileSetNameResponse proto.InternalMessageInfo + +func (m *RpcBlockFileSetNameResponse) GetError() *RpcBlockFileSetNameResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockFileSetNameResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockFileSetNameResponseError struct { + Code RpcBlockFileSetNameResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockFileSetNameResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockFileSetNameResponseError) Reset() { *m = RpcBlockFileSetNameResponseError{} } +func (m *RpcBlockFileSetNameResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockFileSetNameResponseError) ProtoMessage() {} +func (*RpcBlockFileSetNameResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 17, 0, 1, 0} +} +func (m *RpcBlockFileSetNameResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockFileSetNameResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockFileSetNameResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockFileSetNameResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockFileSetNameResponseError.Merge(m, src) +} +func (m *RpcBlockFileSetNameResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockFileSetNameResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockFileSetNameResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockFileSetNameResponseError proto.InternalMessageInfo + +func (m *RpcBlockFileSetNameResponseError) GetCode() RpcBlockFileSetNameResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockFileSetNameResponseError_NULL +} + +func (m *RpcBlockFileSetNameResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockFileCreateAndUpload struct { +} + +func (m *RpcBlockFileCreateAndUpload) Reset() { *m = RpcBlockFileCreateAndUpload{} } +func (m *RpcBlockFileCreateAndUpload) String() string { return proto.CompactTextString(m) } +func (*RpcBlockFileCreateAndUpload) ProtoMessage() {} +func (*RpcBlockFileCreateAndUpload) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 17, 1} +} +func (m *RpcBlockFileCreateAndUpload) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockFileCreateAndUpload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockFileCreateAndUpload.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockFileCreateAndUpload) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockFileCreateAndUpload.Merge(m, src) +} +func (m *RpcBlockFileCreateAndUpload) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockFileCreateAndUpload) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockFileCreateAndUpload.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockFileCreateAndUpload proto.InternalMessageInfo + +type RpcBlockFileCreateAndUploadRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + TargetId string `protobuf:"bytes,2,opt,name=targetId,proto3" json:"targetId,omitempty"` + Position model.BlockPosition `protobuf:"varint,3,opt,name=position,proto3,enum=anytype.model.BlockPosition" json:"position,omitempty"` + Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"` + LocalPath string `protobuf:"bytes,5,opt,name=localPath,proto3" json:"localPath,omitempty"` + FileType model.BlockContentFileType `protobuf:"varint,6,opt,name=fileType,proto3,enum=anytype.model.BlockContentFileType" json:"fileType,omitempty"` +} + +func (m *RpcBlockFileCreateAndUploadRequest) Reset() { *m = RpcBlockFileCreateAndUploadRequest{} } +func (m *RpcBlockFileCreateAndUploadRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockFileCreateAndUploadRequest) ProtoMessage() {} +func (*RpcBlockFileCreateAndUploadRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 17, 1, 0} +} +func (m *RpcBlockFileCreateAndUploadRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockFileCreateAndUploadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockFileCreateAndUploadRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockFileCreateAndUploadRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockFileCreateAndUploadRequest.Merge(m, src) +} +func (m *RpcBlockFileCreateAndUploadRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockFileCreateAndUploadRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockFileCreateAndUploadRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockFileCreateAndUploadRequest proto.InternalMessageInfo + +func (m *RpcBlockFileCreateAndUploadRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockFileCreateAndUploadRequest) GetTargetId() string { + if m != nil { + return m.TargetId + } + return "" +} + +func (m *RpcBlockFileCreateAndUploadRequest) GetPosition() model.BlockPosition { + if m != nil { + return m.Position + } + return model.Block_None +} + +func (m *RpcBlockFileCreateAndUploadRequest) GetUrl() string { + if m != nil { + return m.Url + } + return "" +} + +func (m *RpcBlockFileCreateAndUploadRequest) GetLocalPath() string { + if m != nil { + return m.LocalPath + } + return "" +} + +func (m *RpcBlockFileCreateAndUploadRequest) GetFileType() model.BlockContentFileType { + if m != nil { + return m.FileType + } + return model.BlockContentFile_None +} + +type RpcBlockFileCreateAndUploadResponse struct { + Error *RpcBlockFileCreateAndUploadResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` + Event *ResponseEvent `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockFileCreateAndUploadResponse) Reset() { *m = RpcBlockFileCreateAndUploadResponse{} } +func (m *RpcBlockFileCreateAndUploadResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockFileCreateAndUploadResponse) ProtoMessage() {} +func (*RpcBlockFileCreateAndUploadResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 17, 1, 1} +} +func (m *RpcBlockFileCreateAndUploadResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockFileCreateAndUploadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockFileCreateAndUploadResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockFileCreateAndUploadResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockFileCreateAndUploadResponse.Merge(m, src) +} +func (m *RpcBlockFileCreateAndUploadResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockFileCreateAndUploadResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockFileCreateAndUploadResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockFileCreateAndUploadResponse proto.InternalMessageInfo + +func (m *RpcBlockFileCreateAndUploadResponse) GetError() *RpcBlockFileCreateAndUploadResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockFileCreateAndUploadResponse) GetBlockId() string { + if m != nil { + return m.BlockId + } + return "" +} + +func (m *RpcBlockFileCreateAndUploadResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockFileCreateAndUploadResponseError struct { + Code RpcBlockFileCreateAndUploadResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockFileCreateAndUploadResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockFileCreateAndUploadResponseError) Reset() { + *m = RpcBlockFileCreateAndUploadResponseError{} +} +func (m *RpcBlockFileCreateAndUploadResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockFileCreateAndUploadResponseError) ProtoMessage() {} +func (*RpcBlockFileCreateAndUploadResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 17, 1, 1, 0} +} +func (m *RpcBlockFileCreateAndUploadResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockFileCreateAndUploadResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockFileCreateAndUploadResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockFileCreateAndUploadResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockFileCreateAndUploadResponseError.Merge(m, src) +} +func (m *RpcBlockFileCreateAndUploadResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockFileCreateAndUploadResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockFileCreateAndUploadResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockFileCreateAndUploadResponseError proto.InternalMessageInfo + +func (m *RpcBlockFileCreateAndUploadResponseError) GetCode() RpcBlockFileCreateAndUploadResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockFileCreateAndUploadResponseError_NULL +} + +func (m *RpcBlockFileCreateAndUploadResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockFileListSetStyle struct { +} + +func (m *RpcBlockFileListSetStyle) Reset() { *m = RpcBlockFileListSetStyle{} } +func (m *RpcBlockFileListSetStyle) String() string { return proto.CompactTextString(m) } +func (*RpcBlockFileListSetStyle) ProtoMessage() {} +func (*RpcBlockFileListSetStyle) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 17, 2} +} +func (m *RpcBlockFileListSetStyle) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockFileListSetStyle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockFileListSetStyle.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockFileListSetStyle) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockFileListSetStyle.Merge(m, src) +} +func (m *RpcBlockFileListSetStyle) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockFileListSetStyle) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockFileListSetStyle.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockFileListSetStyle proto.InternalMessageInfo + +type RpcBlockFileListSetStyleRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockIds []string `protobuf:"bytes,2,rep,name=blockIds,proto3" json:"blockIds,omitempty"` + Style model.BlockContentFileStyle `protobuf:"varint,3,opt,name=style,proto3,enum=anytype.model.BlockContentFileStyle" json:"style,omitempty"` +} + +func (m *RpcBlockFileListSetStyleRequest) Reset() { *m = RpcBlockFileListSetStyleRequest{} } +func (m *RpcBlockFileListSetStyleRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockFileListSetStyleRequest) ProtoMessage() {} +func (*RpcBlockFileListSetStyleRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 17, 2, 0} +} +func (m *RpcBlockFileListSetStyleRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockFileListSetStyleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockFileListSetStyleRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockFileListSetStyleRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockFileListSetStyleRequest.Merge(m, src) +} +func (m *RpcBlockFileListSetStyleRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockFileListSetStyleRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockFileListSetStyleRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockFileListSetStyleRequest proto.InternalMessageInfo + +func (m *RpcBlockFileListSetStyleRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockFileListSetStyleRequest) GetBlockIds() []string { + if m != nil { + return m.BlockIds + } + return nil +} + +func (m *RpcBlockFileListSetStyleRequest) GetStyle() model.BlockContentFileStyle { + if m != nil { + return m.Style + } + return model.BlockContentFile_Auto +} + +type RpcBlockFileListSetStyleResponse struct { + Error *RpcBlockFileListSetStyleResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockFileListSetStyleResponse) Reset() { *m = RpcBlockFileListSetStyleResponse{} } +func (m *RpcBlockFileListSetStyleResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockFileListSetStyleResponse) ProtoMessage() {} +func (*RpcBlockFileListSetStyleResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 17, 2, 1} +} +func (m *RpcBlockFileListSetStyleResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockFileListSetStyleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockFileListSetStyleResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockFileListSetStyleResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockFileListSetStyleResponse.Merge(m, src) +} +func (m *RpcBlockFileListSetStyleResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockFileListSetStyleResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockFileListSetStyleResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockFileListSetStyleResponse proto.InternalMessageInfo + +func (m *RpcBlockFileListSetStyleResponse) GetError() *RpcBlockFileListSetStyleResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockFileListSetStyleResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockFileListSetStyleResponseError struct { + Code RpcBlockFileListSetStyleResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockFileListSetStyleResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockFileListSetStyleResponseError) Reset() { *m = RpcBlockFileListSetStyleResponseError{} } +func (m *RpcBlockFileListSetStyleResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockFileListSetStyleResponseError) ProtoMessage() {} +func (*RpcBlockFileListSetStyleResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 17, 2, 1, 0} +} +func (m *RpcBlockFileListSetStyleResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockFileListSetStyleResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockFileListSetStyleResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockFileListSetStyleResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockFileListSetStyleResponseError.Merge(m, src) +} +func (m *RpcBlockFileListSetStyleResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockFileListSetStyleResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockFileListSetStyleResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockFileListSetStyleResponseError proto.InternalMessageInfo + +func (m *RpcBlockFileListSetStyleResponseError) GetCode() RpcBlockFileListSetStyleResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockFileListSetStyleResponseError_NULL +} + +func (m *RpcBlockFileListSetStyleResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockImage struct { +} + +func (m *RpcBlockImage) Reset() { *m = RpcBlockImage{} } +func (m *RpcBlockImage) String() string { return proto.CompactTextString(m) } +func (*RpcBlockImage) ProtoMessage() {} +func (*RpcBlockImage) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 18} +} +func (m *RpcBlockImage) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockImage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockImage.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockImage) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockImage.Merge(m, src) +} +func (m *RpcBlockImage) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockImage) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockImage.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockImage proto.InternalMessageInfo + +type RpcBlockImageSetName struct { +} + +func (m *RpcBlockImageSetName) Reset() { *m = RpcBlockImageSetName{} } +func (m *RpcBlockImageSetName) String() string { return proto.CompactTextString(m) } +func (*RpcBlockImageSetName) ProtoMessage() {} +func (*RpcBlockImageSetName) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 18, 0} +} +func (m *RpcBlockImageSetName) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockImageSetName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockImageSetName.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockImageSetName) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockImageSetName.Merge(m, src) +} +func (m *RpcBlockImageSetName) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockImageSetName) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockImageSetName.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockImageSetName proto.InternalMessageInfo + +type RpcBlockImageSetNameRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` +} + +func (m *RpcBlockImageSetNameRequest) Reset() { *m = RpcBlockImageSetNameRequest{} } +func (m *RpcBlockImageSetNameRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockImageSetNameRequest) ProtoMessage() {} +func (*RpcBlockImageSetNameRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 18, 0, 0} +} +func (m *RpcBlockImageSetNameRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockImageSetNameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockImageSetNameRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockImageSetNameRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockImageSetNameRequest.Merge(m, src) +} +func (m *RpcBlockImageSetNameRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockImageSetNameRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockImageSetNameRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockImageSetNameRequest proto.InternalMessageInfo + +func (m *RpcBlockImageSetNameRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockImageSetNameRequest) GetBlockId() string { + if m != nil { + return m.BlockId + } + return "" +} + +func (m *RpcBlockImageSetNameRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +type RpcBlockImageSetNameResponse struct { + Error *RpcBlockImageSetNameResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +} + +func (m *RpcBlockImageSetNameResponse) Reset() { *m = RpcBlockImageSetNameResponse{} } +func (m *RpcBlockImageSetNameResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockImageSetNameResponse) ProtoMessage() {} +func (*RpcBlockImageSetNameResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 18, 0, 1} +} +func (m *RpcBlockImageSetNameResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockImageSetNameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockImageSetNameResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockImageSetNameResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockImageSetNameResponse.Merge(m, src) +} +func (m *RpcBlockImageSetNameResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockImageSetNameResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockImageSetNameResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockImageSetNameResponse proto.InternalMessageInfo + +func (m *RpcBlockImageSetNameResponse) GetError() *RpcBlockImageSetNameResponseError { + if m != nil { + return m.Error + } + return nil +} + +type RpcBlockImageSetNameResponseError struct { + Code RpcBlockImageSetNameResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockImageSetNameResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockImageSetNameResponseError) Reset() { *m = RpcBlockImageSetNameResponseError{} } +func (m *RpcBlockImageSetNameResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockImageSetNameResponseError) ProtoMessage() {} +func (*RpcBlockImageSetNameResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 18, 0, 1, 0} +} +func (m *RpcBlockImageSetNameResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockImageSetNameResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockImageSetNameResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockImageSetNameResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockImageSetNameResponseError.Merge(m, src) +} +func (m *RpcBlockImageSetNameResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockImageSetNameResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockImageSetNameResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockImageSetNameResponseError proto.InternalMessageInfo + +func (m *RpcBlockImageSetNameResponseError) GetCode() RpcBlockImageSetNameResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockImageSetNameResponseError_NULL +} + +func (m *RpcBlockImageSetNameResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockImageSetWidth struct { +} + +func (m *RpcBlockImageSetWidth) Reset() { *m = RpcBlockImageSetWidth{} } +func (m *RpcBlockImageSetWidth) String() string { return proto.CompactTextString(m) } +func (*RpcBlockImageSetWidth) ProtoMessage() {} +func (*RpcBlockImageSetWidth) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 18, 1} +} +func (m *RpcBlockImageSetWidth) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockImageSetWidth) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockImageSetWidth.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockImageSetWidth) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockImageSetWidth.Merge(m, src) +} +func (m *RpcBlockImageSetWidth) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockImageSetWidth) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockImageSetWidth.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockImageSetWidth proto.InternalMessageInfo + +type RpcBlockImageSetWidthRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` + Width int32 `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"` +} + +func (m *RpcBlockImageSetWidthRequest) Reset() { *m = RpcBlockImageSetWidthRequest{} } +func (m *RpcBlockImageSetWidthRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockImageSetWidthRequest) ProtoMessage() {} +func (*RpcBlockImageSetWidthRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 18, 1, 0} +} +func (m *RpcBlockImageSetWidthRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockImageSetWidthRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockImageSetWidthRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockImageSetWidthRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockImageSetWidthRequest.Merge(m, src) +} +func (m *RpcBlockImageSetWidthRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockImageSetWidthRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockImageSetWidthRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockImageSetWidthRequest proto.InternalMessageInfo + +func (m *RpcBlockImageSetWidthRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockImageSetWidthRequest) GetBlockId() string { + if m != nil { + return m.BlockId + } + return "" +} + +func (m *RpcBlockImageSetWidthRequest) GetWidth() int32 { + if m != nil { + return m.Width + } + return 0 +} + +type RpcBlockImageSetWidthResponse struct { + Error *RpcBlockImageSetWidthResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +} + +func (m *RpcBlockImageSetWidthResponse) Reset() { *m = RpcBlockImageSetWidthResponse{} } +func (m *RpcBlockImageSetWidthResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockImageSetWidthResponse) ProtoMessage() {} +func (*RpcBlockImageSetWidthResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 18, 1, 1} +} +func (m *RpcBlockImageSetWidthResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockImageSetWidthResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockImageSetWidthResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockImageSetWidthResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockImageSetWidthResponse.Merge(m, src) +} +func (m *RpcBlockImageSetWidthResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockImageSetWidthResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockImageSetWidthResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockImageSetWidthResponse proto.InternalMessageInfo + +func (m *RpcBlockImageSetWidthResponse) GetError() *RpcBlockImageSetWidthResponseError { + if m != nil { + return m.Error + } + return nil +} + +type RpcBlockImageSetWidthResponseError struct { + Code RpcBlockImageSetWidthResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockImageSetWidthResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockImageSetWidthResponseError) Reset() { *m = RpcBlockImageSetWidthResponseError{} } +func (m *RpcBlockImageSetWidthResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockImageSetWidthResponseError) ProtoMessage() {} +func (*RpcBlockImageSetWidthResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 18, 1, 1, 0} +} +func (m *RpcBlockImageSetWidthResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockImageSetWidthResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockImageSetWidthResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockImageSetWidthResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockImageSetWidthResponseError.Merge(m, src) +} +func (m *RpcBlockImageSetWidthResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockImageSetWidthResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockImageSetWidthResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockImageSetWidthResponseError proto.InternalMessageInfo + +func (m *RpcBlockImageSetWidthResponseError) GetCode() RpcBlockImageSetWidthResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockImageSetWidthResponseError_NULL +} + +func (m *RpcBlockImageSetWidthResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockVideo struct { +} + +func (m *RpcBlockVideo) Reset() { *m = RpcBlockVideo{} } +func (m *RpcBlockVideo) String() string { return proto.CompactTextString(m) } +func (*RpcBlockVideo) ProtoMessage() {} +func (*RpcBlockVideo) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 19} +} +func (m *RpcBlockVideo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockVideo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockVideo.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockVideo) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockVideo.Merge(m, src) +} +func (m *RpcBlockVideo) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockVideo) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockVideo.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockVideo proto.InternalMessageInfo + +type RpcBlockVideoSetName struct { +} + +func (m *RpcBlockVideoSetName) Reset() { *m = RpcBlockVideoSetName{} } +func (m *RpcBlockVideoSetName) String() string { return proto.CompactTextString(m) } +func (*RpcBlockVideoSetName) ProtoMessage() {} +func (*RpcBlockVideoSetName) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 19, 0} +} +func (m *RpcBlockVideoSetName) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockVideoSetName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockVideoSetName.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockVideoSetName) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockVideoSetName.Merge(m, src) +} +func (m *RpcBlockVideoSetName) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockVideoSetName) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockVideoSetName.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockVideoSetName proto.InternalMessageInfo + +type RpcBlockVideoSetNameRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` +} + +func (m *RpcBlockVideoSetNameRequest) Reset() { *m = RpcBlockVideoSetNameRequest{} } +func (m *RpcBlockVideoSetNameRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockVideoSetNameRequest) ProtoMessage() {} +func (*RpcBlockVideoSetNameRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 19, 0, 0} +} +func (m *RpcBlockVideoSetNameRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockVideoSetNameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockVideoSetNameRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockVideoSetNameRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockVideoSetNameRequest.Merge(m, src) +} +func (m *RpcBlockVideoSetNameRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockVideoSetNameRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockVideoSetNameRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockVideoSetNameRequest proto.InternalMessageInfo + +func (m *RpcBlockVideoSetNameRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockVideoSetNameRequest) GetBlockId() string { + if m != nil { + return m.BlockId + } + return "" +} + +func (m *RpcBlockVideoSetNameRequest) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +type RpcBlockVideoSetNameResponse struct { + Error *RpcBlockVideoSetNameResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +} + +func (m *RpcBlockVideoSetNameResponse) Reset() { *m = RpcBlockVideoSetNameResponse{} } +func (m *RpcBlockVideoSetNameResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockVideoSetNameResponse) ProtoMessage() {} +func (*RpcBlockVideoSetNameResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 19, 0, 1} +} +func (m *RpcBlockVideoSetNameResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockVideoSetNameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockVideoSetNameResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockVideoSetNameResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockVideoSetNameResponse.Merge(m, src) +} +func (m *RpcBlockVideoSetNameResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockVideoSetNameResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockVideoSetNameResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockVideoSetNameResponse proto.InternalMessageInfo + +func (m *RpcBlockVideoSetNameResponse) GetError() *RpcBlockVideoSetNameResponseError { + if m != nil { + return m.Error + } + return nil +} + +type RpcBlockVideoSetNameResponseError struct { + Code RpcBlockVideoSetNameResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockVideoSetNameResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockVideoSetNameResponseError) Reset() { *m = RpcBlockVideoSetNameResponseError{} } +func (m *RpcBlockVideoSetNameResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockVideoSetNameResponseError) ProtoMessage() {} +func (*RpcBlockVideoSetNameResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 19, 0, 1, 0} +} +func (m *RpcBlockVideoSetNameResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockVideoSetNameResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockVideoSetNameResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockVideoSetNameResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockVideoSetNameResponseError.Merge(m, src) +} +func (m *RpcBlockVideoSetNameResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockVideoSetNameResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockVideoSetNameResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockVideoSetNameResponseError proto.InternalMessageInfo + +func (m *RpcBlockVideoSetNameResponseError) GetCode() RpcBlockVideoSetNameResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockVideoSetNameResponseError_NULL +} + +func (m *RpcBlockVideoSetNameResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockVideoSetWidth struct { +} + +func (m *RpcBlockVideoSetWidth) Reset() { *m = RpcBlockVideoSetWidth{} } +func (m *RpcBlockVideoSetWidth) String() string { return proto.CompactTextString(m) } +func (*RpcBlockVideoSetWidth) ProtoMessage() {} +func (*RpcBlockVideoSetWidth) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 19, 1} +} +func (m *RpcBlockVideoSetWidth) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockVideoSetWidth) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockVideoSetWidth.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockVideoSetWidth) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockVideoSetWidth.Merge(m, src) +} +func (m *RpcBlockVideoSetWidth) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockVideoSetWidth) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockVideoSetWidth.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockVideoSetWidth proto.InternalMessageInfo + +type RpcBlockVideoSetWidthRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` + Width int32 `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"` +} + +func (m *RpcBlockVideoSetWidthRequest) Reset() { *m = RpcBlockVideoSetWidthRequest{} } +func (m *RpcBlockVideoSetWidthRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockVideoSetWidthRequest) ProtoMessage() {} +func (*RpcBlockVideoSetWidthRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 19, 1, 0} +} +func (m *RpcBlockVideoSetWidthRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockVideoSetWidthRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockVideoSetWidthRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockVideoSetWidthRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockVideoSetWidthRequest.Merge(m, src) +} +func (m *RpcBlockVideoSetWidthRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockVideoSetWidthRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockVideoSetWidthRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockVideoSetWidthRequest proto.InternalMessageInfo + +func (m *RpcBlockVideoSetWidthRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockVideoSetWidthRequest) GetBlockId() string { + if m != nil { + return m.BlockId + } + return "" +} + +func (m *RpcBlockVideoSetWidthRequest) GetWidth() int32 { + if m != nil { + return m.Width + } + return 0 +} + +type RpcBlockVideoSetWidthResponse struct { + Error *RpcBlockVideoSetWidthResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +} + +func (m *RpcBlockVideoSetWidthResponse) Reset() { *m = RpcBlockVideoSetWidthResponse{} } +func (m *RpcBlockVideoSetWidthResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockVideoSetWidthResponse) ProtoMessage() {} +func (*RpcBlockVideoSetWidthResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 19, 1, 1} +} +func (m *RpcBlockVideoSetWidthResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockVideoSetWidthResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockVideoSetWidthResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockVideoSetWidthResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockVideoSetWidthResponse.Merge(m, src) +} +func (m *RpcBlockVideoSetWidthResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockVideoSetWidthResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockVideoSetWidthResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockVideoSetWidthResponse proto.InternalMessageInfo + +func (m *RpcBlockVideoSetWidthResponse) GetError() *RpcBlockVideoSetWidthResponseError { + if m != nil { + return m.Error + } + return nil +} + +type RpcBlockVideoSetWidthResponseError struct { + Code RpcBlockVideoSetWidthResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockVideoSetWidthResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockVideoSetWidthResponseError) Reset() { *m = RpcBlockVideoSetWidthResponseError{} } +func (m *RpcBlockVideoSetWidthResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockVideoSetWidthResponseError) ProtoMessage() {} +func (*RpcBlockVideoSetWidthResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 19, 1, 1, 0} +} +func (m *RpcBlockVideoSetWidthResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockVideoSetWidthResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockVideoSetWidthResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockVideoSetWidthResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockVideoSetWidthResponseError.Merge(m, src) +} +func (m *RpcBlockVideoSetWidthResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockVideoSetWidthResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockVideoSetWidthResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockVideoSetWidthResponseError proto.InternalMessageInfo + +func (m *RpcBlockVideoSetWidthResponseError) GetCode() RpcBlockVideoSetWidthResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockVideoSetWidthResponseError_NULL +} + +func (m *RpcBlockVideoSetWidthResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockLink struct { +} + +func (m *RpcBlockLink) Reset() { *m = RpcBlockLink{} } +func (m *RpcBlockLink) String() string { return proto.CompactTextString(m) } +func (*RpcBlockLink) ProtoMessage() {} +func (*RpcBlockLink) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 20} +} +func (m *RpcBlockLink) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockLink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockLink.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockLink) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockLink.Merge(m, src) +} +func (m *RpcBlockLink) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockLink) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockLink.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockLink proto.InternalMessageInfo + +type RpcBlockLinkCreateWithObject struct { +} + +func (m *RpcBlockLinkCreateWithObject) Reset() { *m = RpcBlockLinkCreateWithObject{} } +func (m *RpcBlockLinkCreateWithObject) String() string { return proto.CompactTextString(m) } +func (*RpcBlockLinkCreateWithObject) ProtoMessage() {} +func (*RpcBlockLinkCreateWithObject) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 20, 0} +} +func (m *RpcBlockLinkCreateWithObject) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockLinkCreateWithObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockLinkCreateWithObject.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockLinkCreateWithObject) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockLinkCreateWithObject.Merge(m, src) +} +func (m *RpcBlockLinkCreateWithObject) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockLinkCreateWithObject) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockLinkCreateWithObject.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockLinkCreateWithObject proto.InternalMessageInfo + +type RpcBlockLinkCreateWithObjectRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + Details *types.Struct `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"` + TemplateId string `protobuf:"bytes,5,opt,name=templateId,proto3" json:"templateId,omitempty"` + // link block params + TargetId string `protobuf:"bytes,2,opt,name=targetId,proto3" json:"targetId,omitempty"` + Position model.BlockPosition `protobuf:"varint,4,opt,name=position,proto3,enum=anytype.model.BlockPosition" json:"position,omitempty"` + Fields *types.Struct `protobuf:"bytes,6,opt,name=fields,proto3" json:"fields,omitempty"` +} + +func (m *RpcBlockLinkCreateWithObjectRequest) Reset() { *m = RpcBlockLinkCreateWithObjectRequest{} } +func (m *RpcBlockLinkCreateWithObjectRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockLinkCreateWithObjectRequest) ProtoMessage() {} +func (*RpcBlockLinkCreateWithObjectRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 20, 0, 0} +} +func (m *RpcBlockLinkCreateWithObjectRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockLinkCreateWithObjectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockLinkCreateWithObjectRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockLinkCreateWithObjectRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockLinkCreateWithObjectRequest.Merge(m, src) +} +func (m *RpcBlockLinkCreateWithObjectRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockLinkCreateWithObjectRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockLinkCreateWithObjectRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockLinkCreateWithObjectRequest proto.InternalMessageInfo + +func (m *RpcBlockLinkCreateWithObjectRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockLinkCreateWithObjectRequest) GetDetails() *types.Struct { + if m != nil { + return m.Details + } + return nil +} + +func (m *RpcBlockLinkCreateWithObjectRequest) GetTemplateId() string { + if m != nil { + return m.TemplateId + } + return "" +} + +func (m *RpcBlockLinkCreateWithObjectRequest) GetTargetId() string { + if m != nil { + return m.TargetId + } + return "" +} + +func (m *RpcBlockLinkCreateWithObjectRequest) GetPosition() model.BlockPosition { + if m != nil { + return m.Position + } + return model.Block_None +} + +func (m *RpcBlockLinkCreateWithObjectRequest) GetFields() *types.Struct { + if m != nil { + return m.Fields + } + return nil +} + +type RpcBlockLinkCreateWithObjectResponse struct { + Error *RpcBlockLinkCreateWithObjectResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` + TargetId string `protobuf:"bytes,3,opt,name=targetId,proto3" json:"targetId,omitempty"` + Event *ResponseEvent `protobuf:"bytes,4,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockLinkCreateWithObjectResponse) Reset() { *m = RpcBlockLinkCreateWithObjectResponse{} } +func (m *RpcBlockLinkCreateWithObjectResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockLinkCreateWithObjectResponse) ProtoMessage() {} +func (*RpcBlockLinkCreateWithObjectResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 20, 0, 1} +} +func (m *RpcBlockLinkCreateWithObjectResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockLinkCreateWithObjectResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockLinkCreateWithObjectResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockLinkCreateWithObjectResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockLinkCreateWithObjectResponse.Merge(m, src) +} +func (m *RpcBlockLinkCreateWithObjectResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockLinkCreateWithObjectResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockLinkCreateWithObjectResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockLinkCreateWithObjectResponse proto.InternalMessageInfo + +func (m *RpcBlockLinkCreateWithObjectResponse) GetError() *RpcBlockLinkCreateWithObjectResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockLinkCreateWithObjectResponse) GetBlockId() string { + if m != nil { + return m.BlockId + } + return "" +} + +func (m *RpcBlockLinkCreateWithObjectResponse) GetTargetId() string { + if m != nil { + return m.TargetId + } + return "" +} + +func (m *RpcBlockLinkCreateWithObjectResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockLinkCreateWithObjectResponseError struct { + Code RpcBlockLinkCreateWithObjectResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockLinkCreateWithObjectResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockLinkCreateWithObjectResponseError) Reset() { + *m = RpcBlockLinkCreateWithObjectResponseError{} +} +func (m *RpcBlockLinkCreateWithObjectResponseError) String() string { + return proto.CompactTextString(m) +} +func (*RpcBlockLinkCreateWithObjectResponseError) ProtoMessage() {} +func (*RpcBlockLinkCreateWithObjectResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 20, 0, 1, 0} +} +func (m *RpcBlockLinkCreateWithObjectResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockLinkCreateWithObjectResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockLinkCreateWithObjectResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockLinkCreateWithObjectResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockLinkCreateWithObjectResponseError.Merge(m, src) +} +func (m *RpcBlockLinkCreateWithObjectResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockLinkCreateWithObjectResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockLinkCreateWithObjectResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockLinkCreateWithObjectResponseError proto.InternalMessageInfo + +func (m *RpcBlockLinkCreateWithObjectResponseError) GetCode() RpcBlockLinkCreateWithObjectResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockLinkCreateWithObjectResponseError_NULL +} + +func (m *RpcBlockLinkCreateWithObjectResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockLinkListSetAppearance struct { +} + +func (m *RpcBlockLinkListSetAppearance) Reset() { *m = RpcBlockLinkListSetAppearance{} } +func (m *RpcBlockLinkListSetAppearance) String() string { return proto.CompactTextString(m) } +func (*RpcBlockLinkListSetAppearance) ProtoMessage() {} +func (*RpcBlockLinkListSetAppearance) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 20, 1} +} +func (m *RpcBlockLinkListSetAppearance) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockLinkListSetAppearance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockLinkListSetAppearance.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockLinkListSetAppearance) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockLinkListSetAppearance.Merge(m, src) +} +func (m *RpcBlockLinkListSetAppearance) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockLinkListSetAppearance) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockLinkListSetAppearance.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockLinkListSetAppearance proto.InternalMessageInfo + +type RpcBlockLinkListSetAppearanceRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockIds []string `protobuf:"bytes,2,rep,name=blockIds,proto3" json:"blockIds,omitempty"` + IconSize model.BlockContentLinkIconSize `protobuf:"varint,4,opt,name=iconSize,proto3,enum=anytype.model.BlockContentLinkIconSize" json:"iconSize,omitempty"` + CardStyle model.BlockContentLinkCardStyle `protobuf:"varint,5,opt,name=cardStyle,proto3,enum=anytype.model.BlockContentLinkCardStyle" json:"cardStyle,omitempty"` + Description model.BlockContentLinkDescription `protobuf:"varint,6,opt,name=description,proto3,enum=anytype.model.BlockContentLinkDescription" json:"description,omitempty"` + Relations []string `protobuf:"bytes,7,rep,name=relations,proto3" json:"relations,omitempty"` +} + +func (m *RpcBlockLinkListSetAppearanceRequest) Reset() { *m = RpcBlockLinkListSetAppearanceRequest{} } +func (m *RpcBlockLinkListSetAppearanceRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockLinkListSetAppearanceRequest) ProtoMessage() {} +func (*RpcBlockLinkListSetAppearanceRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 20, 1, 0} +} +func (m *RpcBlockLinkListSetAppearanceRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockLinkListSetAppearanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockLinkListSetAppearanceRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockLinkListSetAppearanceRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockLinkListSetAppearanceRequest.Merge(m, src) +} +func (m *RpcBlockLinkListSetAppearanceRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockLinkListSetAppearanceRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockLinkListSetAppearanceRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockLinkListSetAppearanceRequest proto.InternalMessageInfo + +func (m *RpcBlockLinkListSetAppearanceRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockLinkListSetAppearanceRequest) GetBlockIds() []string { + if m != nil { + return m.BlockIds + } + return nil +} + +func (m *RpcBlockLinkListSetAppearanceRequest) GetIconSize() model.BlockContentLinkIconSize { + if m != nil { + return m.IconSize + } + return model.BlockContentLink_Small +} + +func (m *RpcBlockLinkListSetAppearanceRequest) GetCardStyle() model.BlockContentLinkCardStyle { + if m != nil { + return m.CardStyle + } + return model.BlockContentLink_Text +} + +func (m *RpcBlockLinkListSetAppearanceRequest) GetDescription() model.BlockContentLinkDescription { + if m != nil { + return m.Description + } + return model.BlockContentLink_None +} + +func (m *RpcBlockLinkListSetAppearanceRequest) GetRelations() []string { + if m != nil { + return m.Relations + } + return nil +} + +type RpcBlockLinkListSetAppearanceResponse struct { + Error *RpcBlockLinkListSetAppearanceResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockLinkListSetAppearanceResponse) Reset() { *m = RpcBlockLinkListSetAppearanceResponse{} } +func (m *RpcBlockLinkListSetAppearanceResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockLinkListSetAppearanceResponse) ProtoMessage() {} +func (*RpcBlockLinkListSetAppearanceResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 20, 1, 1} +} +func (m *RpcBlockLinkListSetAppearanceResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockLinkListSetAppearanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockLinkListSetAppearanceResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockLinkListSetAppearanceResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockLinkListSetAppearanceResponse.Merge(m, src) +} +func (m *RpcBlockLinkListSetAppearanceResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockLinkListSetAppearanceResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockLinkListSetAppearanceResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockLinkListSetAppearanceResponse proto.InternalMessageInfo + +func (m *RpcBlockLinkListSetAppearanceResponse) GetError() *RpcBlockLinkListSetAppearanceResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockLinkListSetAppearanceResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockLinkListSetAppearanceResponseError struct { + Code RpcBlockLinkListSetAppearanceResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockLinkListSetAppearanceResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockLinkListSetAppearanceResponseError) Reset() { + *m = RpcBlockLinkListSetAppearanceResponseError{} +} +func (m *RpcBlockLinkListSetAppearanceResponseError) String() string { + return proto.CompactTextString(m) +} +func (*RpcBlockLinkListSetAppearanceResponseError) ProtoMessage() {} +func (*RpcBlockLinkListSetAppearanceResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 20, 1, 1, 0} +} +func (m *RpcBlockLinkListSetAppearanceResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockLinkListSetAppearanceResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockLinkListSetAppearanceResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockLinkListSetAppearanceResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockLinkListSetAppearanceResponseError.Merge(m, src) +} +func (m *RpcBlockLinkListSetAppearanceResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockLinkListSetAppearanceResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockLinkListSetAppearanceResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockLinkListSetAppearanceResponseError proto.InternalMessageInfo + +func (m *RpcBlockLinkListSetAppearanceResponseError) GetCode() RpcBlockLinkListSetAppearanceResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockLinkListSetAppearanceResponseError_NULL +} + +func (m *RpcBlockLinkListSetAppearanceResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockRelation struct { +} + +func (m *RpcBlockRelation) Reset() { *m = RpcBlockRelation{} } +func (m *RpcBlockRelation) String() string { return proto.CompactTextString(m) } +func (*RpcBlockRelation) ProtoMessage() {} +func (*RpcBlockRelation) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 21} +} +func (m *RpcBlockRelation) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockRelation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockRelation.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockRelation) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockRelation.Merge(m, src) +} +func (m *RpcBlockRelation) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockRelation) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockRelation.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockRelation proto.InternalMessageInfo + +type RpcBlockRelationSetKey struct { +} + +func (m *RpcBlockRelationSetKey) Reset() { *m = RpcBlockRelationSetKey{} } +func (m *RpcBlockRelationSetKey) String() string { return proto.CompactTextString(m) } +func (*RpcBlockRelationSetKey) ProtoMessage() {} +func (*RpcBlockRelationSetKey) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 21, 0} +} +func (m *RpcBlockRelationSetKey) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockRelationSetKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockRelationSetKey.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockRelationSetKey) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockRelationSetKey.Merge(m, src) +} +func (m *RpcBlockRelationSetKey) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockRelationSetKey) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockRelationSetKey.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockRelationSetKey proto.InternalMessageInfo + +type RpcBlockRelationSetKeyRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` + Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` +} + +func (m *RpcBlockRelationSetKeyRequest) Reset() { *m = RpcBlockRelationSetKeyRequest{} } +func (m *RpcBlockRelationSetKeyRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockRelationSetKeyRequest) ProtoMessage() {} +func (*RpcBlockRelationSetKeyRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 21, 0, 0} +} +func (m *RpcBlockRelationSetKeyRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockRelationSetKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockRelationSetKeyRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockRelationSetKeyRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockRelationSetKeyRequest.Merge(m, src) +} +func (m *RpcBlockRelationSetKeyRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockRelationSetKeyRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockRelationSetKeyRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockRelationSetKeyRequest proto.InternalMessageInfo + +func (m *RpcBlockRelationSetKeyRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockRelationSetKeyRequest) GetBlockId() string { + if m != nil { + return m.BlockId + } + return "" +} + +func (m *RpcBlockRelationSetKeyRequest) GetKey() string { + if m != nil { + return m.Key + } + return "" +} + +type RpcBlockRelationSetKeyResponse struct { + Error *RpcBlockRelationSetKeyResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockRelationSetKeyResponse) Reset() { *m = RpcBlockRelationSetKeyResponse{} } +func (m *RpcBlockRelationSetKeyResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockRelationSetKeyResponse) ProtoMessage() {} +func (*RpcBlockRelationSetKeyResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 21, 0, 1} +} +func (m *RpcBlockRelationSetKeyResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockRelationSetKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockRelationSetKeyResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockRelationSetKeyResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockRelationSetKeyResponse.Merge(m, src) +} +func (m *RpcBlockRelationSetKeyResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockRelationSetKeyResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockRelationSetKeyResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockRelationSetKeyResponse proto.InternalMessageInfo + +func (m *RpcBlockRelationSetKeyResponse) GetError() *RpcBlockRelationSetKeyResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockRelationSetKeyResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockRelationSetKeyResponseError struct { + Code RpcBlockRelationSetKeyResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockRelationSetKeyResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockRelationSetKeyResponseError) Reset() { *m = RpcBlockRelationSetKeyResponseError{} } +func (m *RpcBlockRelationSetKeyResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockRelationSetKeyResponseError) ProtoMessage() {} +func (*RpcBlockRelationSetKeyResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 21, 0, 1, 0} +} +func (m *RpcBlockRelationSetKeyResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockRelationSetKeyResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockRelationSetKeyResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockRelationSetKeyResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockRelationSetKeyResponseError.Merge(m, src) +} +func (m *RpcBlockRelationSetKeyResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockRelationSetKeyResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockRelationSetKeyResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockRelationSetKeyResponseError proto.InternalMessageInfo + +func (m *RpcBlockRelationSetKeyResponseError) GetCode() RpcBlockRelationSetKeyResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockRelationSetKeyResponseError_NULL +} + +func (m *RpcBlockRelationSetKeyResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockRelationAdd struct { +} + +func (m *RpcBlockRelationAdd) Reset() { *m = RpcBlockRelationAdd{} } +func (m *RpcBlockRelationAdd) String() string { return proto.CompactTextString(m) } +func (*RpcBlockRelationAdd) ProtoMessage() {} +func (*RpcBlockRelationAdd) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 21, 1} +} +func (m *RpcBlockRelationAdd) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockRelationAdd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockRelationAdd.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockRelationAdd) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockRelationAdd.Merge(m, src) +} +func (m *RpcBlockRelationAdd) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockRelationAdd) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockRelationAdd.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockRelationAdd proto.InternalMessageInfo + +type RpcBlockRelationAddRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` + Relation *model.Relation `protobuf:"bytes,3,opt,name=relation,proto3" json:"relation,omitempty"` +} + +func (m *RpcBlockRelationAddRequest) Reset() { *m = RpcBlockRelationAddRequest{} } +func (m *RpcBlockRelationAddRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockRelationAddRequest) ProtoMessage() {} +func (*RpcBlockRelationAddRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 21, 1, 0} +} +func (m *RpcBlockRelationAddRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockRelationAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockRelationAddRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockRelationAddRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockRelationAddRequest.Merge(m, src) +} +func (m *RpcBlockRelationAddRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockRelationAddRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockRelationAddRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockRelationAddRequest proto.InternalMessageInfo + +func (m *RpcBlockRelationAddRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockRelationAddRequest) GetBlockId() string { + if m != nil { + return m.BlockId + } + return "" +} + +func (m *RpcBlockRelationAddRequest) GetRelation() *model.Relation { + if m != nil { + return m.Relation + } + return nil +} + +type RpcBlockRelationAddResponse struct { + Error *RpcBlockRelationAddResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockRelationAddResponse) Reset() { *m = RpcBlockRelationAddResponse{} } +func (m *RpcBlockRelationAddResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockRelationAddResponse) ProtoMessage() {} +func (*RpcBlockRelationAddResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 21, 1, 1} +} +func (m *RpcBlockRelationAddResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockRelationAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockRelationAddResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockRelationAddResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockRelationAddResponse.Merge(m, src) +} +func (m *RpcBlockRelationAddResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockRelationAddResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockRelationAddResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockRelationAddResponse proto.InternalMessageInfo + +func (m *RpcBlockRelationAddResponse) GetError() *RpcBlockRelationAddResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockRelationAddResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockRelationAddResponseError struct { + Code RpcBlockRelationAddResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockRelationAddResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockRelationAddResponseError) Reset() { *m = RpcBlockRelationAddResponseError{} } +func (m *RpcBlockRelationAddResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockRelationAddResponseError) ProtoMessage() {} +func (*RpcBlockRelationAddResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 21, 1, 1, 0} +} +func (m *RpcBlockRelationAddResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockRelationAddResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockRelationAddResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockRelationAddResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockRelationAddResponseError.Merge(m, src) +} +func (m *RpcBlockRelationAddResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockRelationAddResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockRelationAddResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockRelationAddResponseError proto.InternalMessageInfo + +func (m *RpcBlockRelationAddResponseError) GetCode() RpcBlockRelationAddResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockRelationAddResponseError_NULL +} + +func (m *RpcBlockRelationAddResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockBookmark struct { +} + +func (m *RpcBlockBookmark) Reset() { *m = RpcBlockBookmark{} } +func (m *RpcBlockBookmark) String() string { return proto.CompactTextString(m) } +func (*RpcBlockBookmark) ProtoMessage() {} +func (*RpcBlockBookmark) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 22} +} +func (m *RpcBlockBookmark) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockBookmark) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockBookmark.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockBookmark) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockBookmark.Merge(m, src) +} +func (m *RpcBlockBookmark) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockBookmark) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockBookmark.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockBookmark proto.InternalMessageInfo + +type RpcBlockBookmarkFetch struct { +} + +func (m *RpcBlockBookmarkFetch) Reset() { *m = RpcBlockBookmarkFetch{} } +func (m *RpcBlockBookmarkFetch) String() string { return proto.CompactTextString(m) } +func (*RpcBlockBookmarkFetch) ProtoMessage() {} +func (*RpcBlockBookmarkFetch) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 22, 0} +} +func (m *RpcBlockBookmarkFetch) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockBookmarkFetch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockBookmarkFetch.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockBookmarkFetch) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockBookmarkFetch.Merge(m, src) +} +func (m *RpcBlockBookmarkFetch) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockBookmarkFetch) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockBookmarkFetch.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockBookmarkFetch proto.InternalMessageInfo + +type RpcBlockBookmarkFetchRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` + Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` +} + +func (m *RpcBlockBookmarkFetchRequest) Reset() { *m = RpcBlockBookmarkFetchRequest{} } +func (m *RpcBlockBookmarkFetchRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockBookmarkFetchRequest) ProtoMessage() {} +func (*RpcBlockBookmarkFetchRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 22, 0, 0} +} +func (m *RpcBlockBookmarkFetchRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockBookmarkFetchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockBookmarkFetchRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockBookmarkFetchRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockBookmarkFetchRequest.Merge(m, src) +} +func (m *RpcBlockBookmarkFetchRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockBookmarkFetchRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockBookmarkFetchRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockBookmarkFetchRequest proto.InternalMessageInfo + +func (m *RpcBlockBookmarkFetchRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockBookmarkFetchRequest) GetBlockId() string { + if m != nil { + return m.BlockId + } + return "" +} + +func (m *RpcBlockBookmarkFetchRequest) GetUrl() string { + if m != nil { + return m.Url + } + return "" +} + +type RpcBlockBookmarkFetchResponse struct { + Error *RpcBlockBookmarkFetchResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockBookmarkFetchResponse) Reset() { *m = RpcBlockBookmarkFetchResponse{} } +func (m *RpcBlockBookmarkFetchResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockBookmarkFetchResponse) ProtoMessage() {} +func (*RpcBlockBookmarkFetchResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 22, 0, 1} +} +func (m *RpcBlockBookmarkFetchResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockBookmarkFetchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockBookmarkFetchResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockBookmarkFetchResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockBookmarkFetchResponse.Merge(m, src) +} +func (m *RpcBlockBookmarkFetchResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockBookmarkFetchResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockBookmarkFetchResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockBookmarkFetchResponse proto.InternalMessageInfo + +func (m *RpcBlockBookmarkFetchResponse) GetError() *RpcBlockBookmarkFetchResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockBookmarkFetchResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockBookmarkFetchResponseError struct { + Code RpcBlockBookmarkFetchResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockBookmarkFetchResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockBookmarkFetchResponseError) Reset() { *m = RpcBlockBookmarkFetchResponseError{} } +func (m *RpcBlockBookmarkFetchResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockBookmarkFetchResponseError) ProtoMessage() {} +func (*RpcBlockBookmarkFetchResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 22, 0, 1, 0} +} +func (m *RpcBlockBookmarkFetchResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockBookmarkFetchResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockBookmarkFetchResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockBookmarkFetchResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockBookmarkFetchResponseError.Merge(m, src) +} +func (m *RpcBlockBookmarkFetchResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockBookmarkFetchResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockBookmarkFetchResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockBookmarkFetchResponseError proto.InternalMessageInfo + +func (m *RpcBlockBookmarkFetchResponseError) GetCode() RpcBlockBookmarkFetchResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockBookmarkFetchResponseError_NULL +} + +func (m *RpcBlockBookmarkFetchResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockBookmarkCreateAndFetch struct { +} + +func (m *RpcBlockBookmarkCreateAndFetch) Reset() { *m = RpcBlockBookmarkCreateAndFetch{} } +func (m *RpcBlockBookmarkCreateAndFetch) String() string { return proto.CompactTextString(m) } +func (*RpcBlockBookmarkCreateAndFetch) ProtoMessage() {} +func (*RpcBlockBookmarkCreateAndFetch) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 22, 1} +} +func (m *RpcBlockBookmarkCreateAndFetch) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockBookmarkCreateAndFetch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockBookmarkCreateAndFetch.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockBookmarkCreateAndFetch) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockBookmarkCreateAndFetch.Merge(m, src) +} +func (m *RpcBlockBookmarkCreateAndFetch) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockBookmarkCreateAndFetch) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockBookmarkCreateAndFetch.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockBookmarkCreateAndFetch proto.InternalMessageInfo + +type RpcBlockBookmarkCreateAndFetchRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + TargetId string `protobuf:"bytes,2,opt,name=targetId,proto3" json:"targetId,omitempty"` + Position model.BlockPosition `protobuf:"varint,3,opt,name=position,proto3,enum=anytype.model.BlockPosition" json:"position,omitempty"` + Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"` +} + +func (m *RpcBlockBookmarkCreateAndFetchRequest) Reset() { *m = RpcBlockBookmarkCreateAndFetchRequest{} } +func (m *RpcBlockBookmarkCreateAndFetchRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockBookmarkCreateAndFetchRequest) ProtoMessage() {} +func (*RpcBlockBookmarkCreateAndFetchRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 22, 1, 0} +} +func (m *RpcBlockBookmarkCreateAndFetchRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockBookmarkCreateAndFetchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockBookmarkCreateAndFetchRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockBookmarkCreateAndFetchRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockBookmarkCreateAndFetchRequest.Merge(m, src) +} +func (m *RpcBlockBookmarkCreateAndFetchRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockBookmarkCreateAndFetchRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockBookmarkCreateAndFetchRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockBookmarkCreateAndFetchRequest proto.InternalMessageInfo + +func (m *RpcBlockBookmarkCreateAndFetchRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockBookmarkCreateAndFetchRequest) GetTargetId() string { + if m != nil { + return m.TargetId + } + return "" +} + +func (m *RpcBlockBookmarkCreateAndFetchRequest) GetPosition() model.BlockPosition { + if m != nil { + return m.Position + } + return model.Block_None +} + +func (m *RpcBlockBookmarkCreateAndFetchRequest) GetUrl() string { + if m != nil { + return m.Url + } + return "" +} + +type RpcBlockBookmarkCreateAndFetchResponse struct { + Error *RpcBlockBookmarkCreateAndFetchResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` + Event *ResponseEvent `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockBookmarkCreateAndFetchResponse) Reset() { + *m = RpcBlockBookmarkCreateAndFetchResponse{} +} +func (m *RpcBlockBookmarkCreateAndFetchResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockBookmarkCreateAndFetchResponse) ProtoMessage() {} +func (*RpcBlockBookmarkCreateAndFetchResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 22, 1, 1} +} +func (m *RpcBlockBookmarkCreateAndFetchResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockBookmarkCreateAndFetchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockBookmarkCreateAndFetchResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockBookmarkCreateAndFetchResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockBookmarkCreateAndFetchResponse.Merge(m, src) +} +func (m *RpcBlockBookmarkCreateAndFetchResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockBookmarkCreateAndFetchResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockBookmarkCreateAndFetchResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockBookmarkCreateAndFetchResponse proto.InternalMessageInfo + +func (m *RpcBlockBookmarkCreateAndFetchResponse) GetError() *RpcBlockBookmarkCreateAndFetchResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockBookmarkCreateAndFetchResponse) GetBlockId() string { + if m != nil { + return m.BlockId + } + return "" +} + +func (m *RpcBlockBookmarkCreateAndFetchResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockBookmarkCreateAndFetchResponseError struct { + Code RpcBlockBookmarkCreateAndFetchResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockBookmarkCreateAndFetchResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockBookmarkCreateAndFetchResponseError) Reset() { + *m = RpcBlockBookmarkCreateAndFetchResponseError{} +} +func (m *RpcBlockBookmarkCreateAndFetchResponseError) String() string { + return proto.CompactTextString(m) +} +func (*RpcBlockBookmarkCreateAndFetchResponseError) ProtoMessage() {} +func (*RpcBlockBookmarkCreateAndFetchResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 22, 1, 1, 0} +} +func (m *RpcBlockBookmarkCreateAndFetchResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockBookmarkCreateAndFetchResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockBookmarkCreateAndFetchResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockBookmarkCreateAndFetchResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockBookmarkCreateAndFetchResponseError.Merge(m, src) +} +func (m *RpcBlockBookmarkCreateAndFetchResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockBookmarkCreateAndFetchResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockBookmarkCreateAndFetchResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockBookmarkCreateAndFetchResponseError proto.InternalMessageInfo + +func (m *RpcBlockBookmarkCreateAndFetchResponseError) GetCode() RpcBlockBookmarkCreateAndFetchResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockBookmarkCreateAndFetchResponseError_NULL +} + +func (m *RpcBlockBookmarkCreateAndFetchResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockDiv struct { +} + +func (m *RpcBlockDiv) Reset() { *m = RpcBlockDiv{} } +func (m *RpcBlockDiv) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDiv) ProtoMessage() {} +func (*RpcBlockDiv) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 23} +} +func (m *RpcBlockDiv) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDiv) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDiv.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDiv) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDiv.Merge(m, src) +} +func (m *RpcBlockDiv) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDiv) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDiv.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDiv proto.InternalMessageInfo + +type RpcBlockDivListSetStyle struct { +} + +func (m *RpcBlockDivListSetStyle) Reset() { *m = RpcBlockDivListSetStyle{} } +func (m *RpcBlockDivListSetStyle) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDivListSetStyle) ProtoMessage() {} +func (*RpcBlockDivListSetStyle) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 23, 0} +} +func (m *RpcBlockDivListSetStyle) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDivListSetStyle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDivListSetStyle.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDivListSetStyle) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDivListSetStyle.Merge(m, src) +} +func (m *RpcBlockDivListSetStyle) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDivListSetStyle) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDivListSetStyle.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDivListSetStyle proto.InternalMessageInfo + +type RpcBlockDivListSetStyleRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockIds []string `protobuf:"bytes,2,rep,name=blockIds,proto3" json:"blockIds,omitempty"` + Style model.BlockContentDivStyle `protobuf:"varint,3,opt,name=style,proto3,enum=anytype.model.BlockContentDivStyle" json:"style,omitempty"` +} + +func (m *RpcBlockDivListSetStyleRequest) Reset() { *m = RpcBlockDivListSetStyleRequest{} } +func (m *RpcBlockDivListSetStyleRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDivListSetStyleRequest) ProtoMessage() {} +func (*RpcBlockDivListSetStyleRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 23, 0, 0} +} +func (m *RpcBlockDivListSetStyleRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDivListSetStyleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDivListSetStyleRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDivListSetStyleRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDivListSetStyleRequest.Merge(m, src) +} +func (m *RpcBlockDivListSetStyleRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDivListSetStyleRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDivListSetStyleRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDivListSetStyleRequest proto.InternalMessageInfo + +func (m *RpcBlockDivListSetStyleRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockDivListSetStyleRequest) GetBlockIds() []string { + if m != nil { + return m.BlockIds + } + return nil +} + +func (m *RpcBlockDivListSetStyleRequest) GetStyle() model.BlockContentDivStyle { + if m != nil { + return m.Style + } + return model.BlockContentDiv_Line +} + +type RpcBlockDivListSetStyleResponse struct { + Error *RpcBlockDivListSetStyleResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockDivListSetStyleResponse) Reset() { *m = RpcBlockDivListSetStyleResponse{} } +func (m *RpcBlockDivListSetStyleResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDivListSetStyleResponse) ProtoMessage() {} +func (*RpcBlockDivListSetStyleResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 23, 0, 1} +} +func (m *RpcBlockDivListSetStyleResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDivListSetStyleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDivListSetStyleResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDivListSetStyleResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDivListSetStyleResponse.Merge(m, src) +} +func (m *RpcBlockDivListSetStyleResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDivListSetStyleResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDivListSetStyleResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDivListSetStyleResponse proto.InternalMessageInfo + +func (m *RpcBlockDivListSetStyleResponse) GetError() *RpcBlockDivListSetStyleResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockDivListSetStyleResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockDivListSetStyleResponseError struct { + Code RpcBlockDivListSetStyleResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockDivListSetStyleResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockDivListSetStyleResponseError) Reset() { *m = RpcBlockDivListSetStyleResponseError{} } +func (m *RpcBlockDivListSetStyleResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDivListSetStyleResponseError) ProtoMessage() {} +func (*RpcBlockDivListSetStyleResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 23, 0, 1, 0} +} +func (m *RpcBlockDivListSetStyleResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDivListSetStyleResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDivListSetStyleResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDivListSetStyleResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDivListSetStyleResponseError.Merge(m, src) +} +func (m *RpcBlockDivListSetStyleResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDivListSetStyleResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDivListSetStyleResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDivListSetStyleResponseError proto.InternalMessageInfo + +func (m *RpcBlockDivListSetStyleResponseError) GetCode() RpcBlockDivListSetStyleResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockDivListSetStyleResponseError_NULL +} + +func (m *RpcBlockDivListSetStyleResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockDataview struct { +} + +func (m *RpcBlockDataview) Reset() { *m = RpcBlockDataview{} } +func (m *RpcBlockDataview) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataview) ProtoMessage() {} +func (*RpcBlockDataview) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24} +} +func (m *RpcBlockDataview) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataview.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataview) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataview.Merge(m, src) +} +func (m *RpcBlockDataview) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataview) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataview.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataview proto.InternalMessageInfo + +type RpcBlockDataviewView struct { +} + +func (m *RpcBlockDataviewView) Reset() { *m = RpcBlockDataviewView{} } +func (m *RpcBlockDataviewView) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewView) ProtoMessage() {} +func (*RpcBlockDataviewView) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 0} +} +func (m *RpcBlockDataviewView) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewView.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewView) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewView.Merge(m, src) +} +func (m *RpcBlockDataviewView) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewView) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewView.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewView proto.InternalMessageInfo + +type RpcBlockDataviewViewCreate struct { +} + +func (m *RpcBlockDataviewViewCreate) Reset() { *m = RpcBlockDataviewViewCreate{} } +func (m *RpcBlockDataviewViewCreate) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewViewCreate) ProtoMessage() {} +func (*RpcBlockDataviewViewCreate) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 0, 0} +} +func (m *RpcBlockDataviewViewCreate) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewViewCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewViewCreate.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewViewCreate) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewViewCreate.Merge(m, src) +} +func (m *RpcBlockDataviewViewCreate) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewViewCreate) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewViewCreate.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewViewCreate proto.InternalMessageInfo + +type RpcBlockDataviewViewCreateRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` + View *model.BlockContentDataviewView `protobuf:"bytes,4,opt,name=view,proto3" json:"view,omitempty"` +} + +func (m *RpcBlockDataviewViewCreateRequest) Reset() { *m = RpcBlockDataviewViewCreateRequest{} } +func (m *RpcBlockDataviewViewCreateRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewViewCreateRequest) ProtoMessage() {} +func (*RpcBlockDataviewViewCreateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 0, 0, 0} +} +func (m *RpcBlockDataviewViewCreateRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewViewCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewViewCreateRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewViewCreateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewViewCreateRequest.Merge(m, src) +} +func (m *RpcBlockDataviewViewCreateRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewViewCreateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewViewCreateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewViewCreateRequest proto.InternalMessageInfo + +func (m *RpcBlockDataviewViewCreateRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockDataviewViewCreateRequest) GetBlockId() string { + if m != nil { + return m.BlockId + } + return "" +} + +func (m *RpcBlockDataviewViewCreateRequest) GetView() *model.BlockContentDataviewView { + if m != nil { + return m.View + } + return nil +} + +type RpcBlockDataviewViewCreateResponse struct { + Error *RpcBlockDataviewViewCreateResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` + ViewId string `protobuf:"bytes,3,opt,name=viewId,proto3" json:"viewId,omitempty"` +} + +func (m *RpcBlockDataviewViewCreateResponse) Reset() { *m = RpcBlockDataviewViewCreateResponse{} } +func (m *RpcBlockDataviewViewCreateResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewViewCreateResponse) ProtoMessage() {} +func (*RpcBlockDataviewViewCreateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 0, 0, 1} +} +func (m *RpcBlockDataviewViewCreateResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewViewCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewViewCreateResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewViewCreateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewViewCreateResponse.Merge(m, src) +} +func (m *RpcBlockDataviewViewCreateResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewViewCreateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewViewCreateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewViewCreateResponse proto.InternalMessageInfo + +func (m *RpcBlockDataviewViewCreateResponse) GetError() *RpcBlockDataviewViewCreateResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockDataviewViewCreateResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +func (m *RpcBlockDataviewViewCreateResponse) GetViewId() string { + if m != nil { + return m.ViewId + } + return "" +} + +type RpcBlockDataviewViewCreateResponseError struct { + Code RpcBlockDataviewViewCreateResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockDataviewViewCreateResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockDataviewViewCreateResponseError) Reset() { + *m = RpcBlockDataviewViewCreateResponseError{} +} +func (m *RpcBlockDataviewViewCreateResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewViewCreateResponseError) ProtoMessage() {} +func (*RpcBlockDataviewViewCreateResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 0, 0, 1, 0} +} +func (m *RpcBlockDataviewViewCreateResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewViewCreateResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewViewCreateResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewViewCreateResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewViewCreateResponseError.Merge(m, src) +} +func (m *RpcBlockDataviewViewCreateResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewViewCreateResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewViewCreateResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewViewCreateResponseError proto.InternalMessageInfo + +func (m *RpcBlockDataviewViewCreateResponseError) GetCode() RpcBlockDataviewViewCreateResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockDataviewViewCreateResponseError_NULL +} + +func (m *RpcBlockDataviewViewCreateResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockDataviewViewUpdate struct { +} + +func (m *RpcBlockDataviewViewUpdate) Reset() { *m = RpcBlockDataviewViewUpdate{} } +func (m *RpcBlockDataviewViewUpdate) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewViewUpdate) ProtoMessage() {} +func (*RpcBlockDataviewViewUpdate) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 0, 1} +} +func (m *RpcBlockDataviewViewUpdate) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewViewUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewViewUpdate.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewViewUpdate) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewViewUpdate.Merge(m, src) +} +func (m *RpcBlockDataviewViewUpdate) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewViewUpdate) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewViewUpdate.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewViewUpdate proto.InternalMessageInfo + +type RpcBlockDataviewViewUpdateRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` + ViewId string `protobuf:"bytes,3,opt,name=viewId,proto3" json:"viewId,omitempty"` + View *model.BlockContentDataviewView `protobuf:"bytes,4,opt,name=view,proto3" json:"view,omitempty"` +} + +func (m *RpcBlockDataviewViewUpdateRequest) Reset() { *m = RpcBlockDataviewViewUpdateRequest{} } +func (m *RpcBlockDataviewViewUpdateRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewViewUpdateRequest) ProtoMessage() {} +func (*RpcBlockDataviewViewUpdateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 0, 1, 0} +} +func (m *RpcBlockDataviewViewUpdateRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewViewUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewViewUpdateRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewViewUpdateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewViewUpdateRequest.Merge(m, src) +} +func (m *RpcBlockDataviewViewUpdateRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewViewUpdateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewViewUpdateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewViewUpdateRequest proto.InternalMessageInfo + +func (m *RpcBlockDataviewViewUpdateRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockDataviewViewUpdateRequest) GetBlockId() string { + if m != nil { + return m.BlockId + } + return "" +} + +func (m *RpcBlockDataviewViewUpdateRequest) GetViewId() string { + if m != nil { + return m.ViewId + } + return "" +} + +func (m *RpcBlockDataviewViewUpdateRequest) GetView() *model.BlockContentDataviewView { + if m != nil { + return m.View + } + return nil +} + +type RpcBlockDataviewViewUpdateResponse struct { + Error *RpcBlockDataviewViewUpdateResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockDataviewViewUpdateResponse) Reset() { *m = RpcBlockDataviewViewUpdateResponse{} } +func (m *RpcBlockDataviewViewUpdateResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewViewUpdateResponse) ProtoMessage() {} +func (*RpcBlockDataviewViewUpdateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 0, 1, 1} +} +func (m *RpcBlockDataviewViewUpdateResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewViewUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewViewUpdateResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewViewUpdateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewViewUpdateResponse.Merge(m, src) +} +func (m *RpcBlockDataviewViewUpdateResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewViewUpdateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewViewUpdateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewViewUpdateResponse proto.InternalMessageInfo + +func (m *RpcBlockDataviewViewUpdateResponse) GetError() *RpcBlockDataviewViewUpdateResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockDataviewViewUpdateResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockDataviewViewUpdateResponseError struct { + Code RpcBlockDataviewViewUpdateResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockDataviewViewUpdateResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockDataviewViewUpdateResponseError) Reset() { + *m = RpcBlockDataviewViewUpdateResponseError{} +} +func (m *RpcBlockDataviewViewUpdateResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewViewUpdateResponseError) ProtoMessage() {} +func (*RpcBlockDataviewViewUpdateResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 0, 1, 1, 0} +} +func (m *RpcBlockDataviewViewUpdateResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewViewUpdateResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewViewUpdateResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewViewUpdateResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewViewUpdateResponseError.Merge(m, src) +} +func (m *RpcBlockDataviewViewUpdateResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewViewUpdateResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewViewUpdateResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewViewUpdateResponseError proto.InternalMessageInfo + +func (m *RpcBlockDataviewViewUpdateResponseError) GetCode() RpcBlockDataviewViewUpdateResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockDataviewViewUpdateResponseError_NULL +} + +func (m *RpcBlockDataviewViewUpdateResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockDataviewViewDelete struct { +} + +func (m *RpcBlockDataviewViewDelete) Reset() { *m = RpcBlockDataviewViewDelete{} } +func (m *RpcBlockDataviewViewDelete) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewViewDelete) ProtoMessage() {} +func (*RpcBlockDataviewViewDelete) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 0, 2} +} +func (m *RpcBlockDataviewViewDelete) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewViewDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewViewDelete.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewViewDelete) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewViewDelete.Merge(m, src) +} +func (m *RpcBlockDataviewViewDelete) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewViewDelete) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewViewDelete.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewViewDelete proto.InternalMessageInfo + +type RpcBlockDataviewViewDeleteRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` + ViewId string `protobuf:"bytes,4,opt,name=viewId,proto3" json:"viewId,omitempty"` +} + +func (m *RpcBlockDataviewViewDeleteRequest) Reset() { *m = RpcBlockDataviewViewDeleteRequest{} } +func (m *RpcBlockDataviewViewDeleteRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewViewDeleteRequest) ProtoMessage() {} +func (*RpcBlockDataviewViewDeleteRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 0, 2, 0} +} +func (m *RpcBlockDataviewViewDeleteRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewViewDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewViewDeleteRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewViewDeleteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewViewDeleteRequest.Merge(m, src) +} +func (m *RpcBlockDataviewViewDeleteRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewViewDeleteRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewViewDeleteRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewViewDeleteRequest proto.InternalMessageInfo + +func (m *RpcBlockDataviewViewDeleteRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockDataviewViewDeleteRequest) GetBlockId() string { + if m != nil { + return m.BlockId + } + return "" +} + +func (m *RpcBlockDataviewViewDeleteRequest) GetViewId() string { + if m != nil { + return m.ViewId + } + return "" +} + +type RpcBlockDataviewViewDeleteResponse struct { + Error *RpcBlockDataviewViewDeleteResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockDataviewViewDeleteResponse) Reset() { *m = RpcBlockDataviewViewDeleteResponse{} } +func (m *RpcBlockDataviewViewDeleteResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewViewDeleteResponse) ProtoMessage() {} +func (*RpcBlockDataviewViewDeleteResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 0, 2, 1} +} +func (m *RpcBlockDataviewViewDeleteResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewViewDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewViewDeleteResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewViewDeleteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewViewDeleteResponse.Merge(m, src) +} +func (m *RpcBlockDataviewViewDeleteResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewViewDeleteResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewViewDeleteResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewViewDeleteResponse proto.InternalMessageInfo + +func (m *RpcBlockDataviewViewDeleteResponse) GetError() *RpcBlockDataviewViewDeleteResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockDataviewViewDeleteResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockDataviewViewDeleteResponseError struct { + Code RpcBlockDataviewViewDeleteResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockDataviewViewDeleteResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockDataviewViewDeleteResponseError) Reset() { + *m = RpcBlockDataviewViewDeleteResponseError{} +} +func (m *RpcBlockDataviewViewDeleteResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewViewDeleteResponseError) ProtoMessage() {} +func (*RpcBlockDataviewViewDeleteResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 0, 2, 1, 0} +} +func (m *RpcBlockDataviewViewDeleteResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewViewDeleteResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewViewDeleteResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewViewDeleteResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewViewDeleteResponseError.Merge(m, src) +} +func (m *RpcBlockDataviewViewDeleteResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewViewDeleteResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewViewDeleteResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewViewDeleteResponseError proto.InternalMessageInfo + +func (m *RpcBlockDataviewViewDeleteResponseError) GetCode() RpcBlockDataviewViewDeleteResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockDataviewViewDeleteResponseError_NULL +} + +func (m *RpcBlockDataviewViewDeleteResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockDataviewViewSetPosition struct { +} + +func (m *RpcBlockDataviewViewSetPosition) Reset() { *m = RpcBlockDataviewViewSetPosition{} } +func (m *RpcBlockDataviewViewSetPosition) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewViewSetPosition) ProtoMessage() {} +func (*RpcBlockDataviewViewSetPosition) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 0, 3} +} +func (m *RpcBlockDataviewViewSetPosition) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewViewSetPosition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewViewSetPosition.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewViewSetPosition) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewViewSetPosition.Merge(m, src) +} +func (m *RpcBlockDataviewViewSetPosition) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewViewSetPosition) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewViewSetPosition.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewViewSetPosition proto.InternalMessageInfo + +type RpcBlockDataviewViewSetPositionRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` + ViewId string `protobuf:"bytes,4,opt,name=viewId,proto3" json:"viewId,omitempty"` + Position uint32 `protobuf:"varint,5,opt,name=position,proto3" json:"position,omitempty"` +} + +func (m *RpcBlockDataviewViewSetPositionRequest) Reset() { + *m = RpcBlockDataviewViewSetPositionRequest{} +} +func (m *RpcBlockDataviewViewSetPositionRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewViewSetPositionRequest) ProtoMessage() {} +func (*RpcBlockDataviewViewSetPositionRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 0, 3, 0} +} +func (m *RpcBlockDataviewViewSetPositionRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewViewSetPositionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewViewSetPositionRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewViewSetPositionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewViewSetPositionRequest.Merge(m, src) +} +func (m *RpcBlockDataviewViewSetPositionRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewViewSetPositionRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewViewSetPositionRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewViewSetPositionRequest proto.InternalMessageInfo + +func (m *RpcBlockDataviewViewSetPositionRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockDataviewViewSetPositionRequest) GetBlockId() string { + if m != nil { + return m.BlockId + } + return "" +} + +func (m *RpcBlockDataviewViewSetPositionRequest) GetViewId() string { + if m != nil { + return m.ViewId + } + return "" +} + +func (m *RpcBlockDataviewViewSetPositionRequest) GetPosition() uint32 { + if m != nil { + return m.Position + } + return 0 +} + +type RpcBlockDataviewViewSetPositionResponse struct { + Error *RpcBlockDataviewViewSetPositionResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockDataviewViewSetPositionResponse) Reset() { + *m = RpcBlockDataviewViewSetPositionResponse{} +} +func (m *RpcBlockDataviewViewSetPositionResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewViewSetPositionResponse) ProtoMessage() {} +func (*RpcBlockDataviewViewSetPositionResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 0, 3, 1} +} +func (m *RpcBlockDataviewViewSetPositionResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewViewSetPositionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewViewSetPositionResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewViewSetPositionResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewViewSetPositionResponse.Merge(m, src) +} +func (m *RpcBlockDataviewViewSetPositionResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewViewSetPositionResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewViewSetPositionResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewViewSetPositionResponse proto.InternalMessageInfo + +func (m *RpcBlockDataviewViewSetPositionResponse) GetError() *RpcBlockDataviewViewSetPositionResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockDataviewViewSetPositionResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockDataviewViewSetPositionResponseError struct { + Code RpcBlockDataviewViewSetPositionResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockDataviewViewSetPositionResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockDataviewViewSetPositionResponseError) Reset() { + *m = RpcBlockDataviewViewSetPositionResponseError{} +} +func (m *RpcBlockDataviewViewSetPositionResponseError) String() string { + return proto.CompactTextString(m) +} +func (*RpcBlockDataviewViewSetPositionResponseError) ProtoMessage() {} +func (*RpcBlockDataviewViewSetPositionResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 0, 3, 1, 0} +} +func (m *RpcBlockDataviewViewSetPositionResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewViewSetPositionResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewViewSetPositionResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewViewSetPositionResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewViewSetPositionResponseError.Merge(m, src) +} +func (m *RpcBlockDataviewViewSetPositionResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewViewSetPositionResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewViewSetPositionResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewViewSetPositionResponseError proto.InternalMessageInfo + +func (m *RpcBlockDataviewViewSetPositionResponseError) GetCode() RpcBlockDataviewViewSetPositionResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockDataviewViewSetPositionResponseError_NULL +} + +func (m *RpcBlockDataviewViewSetPositionResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +// set the current active view (persisted only within a session) +type RpcBlockDataviewViewSetActive struct { +} + +func (m *RpcBlockDataviewViewSetActive) Reset() { *m = RpcBlockDataviewViewSetActive{} } +func (m *RpcBlockDataviewViewSetActive) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewViewSetActive) ProtoMessage() {} +func (*RpcBlockDataviewViewSetActive) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 0, 4} +} +func (m *RpcBlockDataviewViewSetActive) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewViewSetActive) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewViewSetActive.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewViewSetActive) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewViewSetActive.Merge(m, src) +} +func (m *RpcBlockDataviewViewSetActive) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewViewSetActive) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewViewSetActive.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewViewSetActive proto.InternalMessageInfo + +type RpcBlockDataviewViewSetActiveRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` + ViewId string `protobuf:"bytes,3,opt,name=viewId,proto3" json:"viewId,omitempty"` + Offset uint32 `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"` + Limit uint32 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"` +} + +func (m *RpcBlockDataviewViewSetActiveRequest) Reset() { *m = RpcBlockDataviewViewSetActiveRequest{} } +func (m *RpcBlockDataviewViewSetActiveRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewViewSetActiveRequest) ProtoMessage() {} +func (*RpcBlockDataviewViewSetActiveRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 0, 4, 0} +} +func (m *RpcBlockDataviewViewSetActiveRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewViewSetActiveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewViewSetActiveRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewViewSetActiveRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewViewSetActiveRequest.Merge(m, src) +} +func (m *RpcBlockDataviewViewSetActiveRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewViewSetActiveRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewViewSetActiveRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewViewSetActiveRequest proto.InternalMessageInfo + +func (m *RpcBlockDataviewViewSetActiveRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockDataviewViewSetActiveRequest) GetBlockId() string { + if m != nil { + return m.BlockId + } + return "" +} + +func (m *RpcBlockDataviewViewSetActiveRequest) GetViewId() string { + if m != nil { + return m.ViewId + } + return "" +} + +func (m *RpcBlockDataviewViewSetActiveRequest) GetOffset() uint32 { + if m != nil { + return m.Offset + } + return 0 +} + +func (m *RpcBlockDataviewViewSetActiveRequest) GetLimit() uint32 { + if m != nil { + return m.Limit + } + return 0 +} + +type RpcBlockDataviewViewSetActiveResponse struct { + Error *RpcBlockDataviewViewSetActiveResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockDataviewViewSetActiveResponse) Reset() { *m = RpcBlockDataviewViewSetActiveResponse{} } +func (m *RpcBlockDataviewViewSetActiveResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewViewSetActiveResponse) ProtoMessage() {} +func (*RpcBlockDataviewViewSetActiveResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 0, 4, 1} +} +func (m *RpcBlockDataviewViewSetActiveResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewViewSetActiveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewViewSetActiveResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewViewSetActiveResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewViewSetActiveResponse.Merge(m, src) +} +func (m *RpcBlockDataviewViewSetActiveResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewViewSetActiveResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewViewSetActiveResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewViewSetActiveResponse proto.InternalMessageInfo + +func (m *RpcBlockDataviewViewSetActiveResponse) GetError() *RpcBlockDataviewViewSetActiveResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockDataviewViewSetActiveResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockDataviewViewSetActiveResponseError struct { + Code RpcBlockDataviewViewSetActiveResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockDataviewViewSetActiveResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockDataviewViewSetActiveResponseError) Reset() { + *m = RpcBlockDataviewViewSetActiveResponseError{} +} +func (m *RpcBlockDataviewViewSetActiveResponseError) String() string { + return proto.CompactTextString(m) +} +func (*RpcBlockDataviewViewSetActiveResponseError) ProtoMessage() {} +func (*RpcBlockDataviewViewSetActiveResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 0, 4, 1, 0} +} +func (m *RpcBlockDataviewViewSetActiveResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewViewSetActiveResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewViewSetActiveResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewViewSetActiveResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewViewSetActiveResponseError.Merge(m, src) +} +func (m *RpcBlockDataviewViewSetActiveResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewViewSetActiveResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewViewSetActiveResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewViewSetActiveResponseError proto.InternalMessageInfo + +func (m *RpcBlockDataviewViewSetActiveResponseError) GetCode() RpcBlockDataviewViewSetActiveResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockDataviewViewSetActiveResponseError_NULL +} + +func (m *RpcBlockDataviewViewSetActiveResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockDataviewRelation struct { +} + +func (m *RpcBlockDataviewRelation) Reset() { *m = RpcBlockDataviewRelation{} } +func (m *RpcBlockDataviewRelation) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewRelation) ProtoMessage() {} +func (*RpcBlockDataviewRelation) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 1} +} +func (m *RpcBlockDataviewRelation) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewRelation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewRelation.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewRelation) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewRelation.Merge(m, src) +} +func (m *RpcBlockDataviewRelation) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewRelation) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewRelation.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewRelation proto.InternalMessageInfo + +type RpcBlockDataviewRelationAdd struct { +} + +func (m *RpcBlockDataviewRelationAdd) Reset() { *m = RpcBlockDataviewRelationAdd{} } +func (m *RpcBlockDataviewRelationAdd) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewRelationAdd) ProtoMessage() {} +func (*RpcBlockDataviewRelationAdd) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 1, 0} +} +func (m *RpcBlockDataviewRelationAdd) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewRelationAdd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewRelationAdd.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewRelationAdd) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewRelationAdd.Merge(m, src) +} +func (m *RpcBlockDataviewRelationAdd) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewRelationAdd) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewRelationAdd.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewRelationAdd proto.InternalMessageInfo + +type RpcBlockDataviewRelationAddRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` + Relation *model.Relation `protobuf:"bytes,3,opt,name=relation,proto3" json:"relation,omitempty"` +} + +func (m *RpcBlockDataviewRelationAddRequest) Reset() { *m = RpcBlockDataviewRelationAddRequest{} } +func (m *RpcBlockDataviewRelationAddRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewRelationAddRequest) ProtoMessage() {} +func (*RpcBlockDataviewRelationAddRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 1, 0, 0} +} +func (m *RpcBlockDataviewRelationAddRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewRelationAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewRelationAddRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewRelationAddRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewRelationAddRequest.Merge(m, src) +} +func (m *RpcBlockDataviewRelationAddRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewRelationAddRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewRelationAddRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewRelationAddRequest proto.InternalMessageInfo + +func (m *RpcBlockDataviewRelationAddRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockDataviewRelationAddRequest) GetBlockId() string { + if m != nil { + return m.BlockId + } + return "" +} + +func (m *RpcBlockDataviewRelationAddRequest) GetRelation() *model.Relation { + if m != nil { + return m.Relation + } + return nil +} + +type RpcBlockDataviewRelationAddResponse struct { + Error *RpcBlockDataviewRelationAddResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` + RelationKey string `protobuf:"bytes,3,opt,name=relationKey,proto3" json:"relationKey,omitempty"` + Relation *model.Relation `protobuf:"bytes,4,opt,name=relation,proto3" json:"relation,omitempty"` +} + +func (m *RpcBlockDataviewRelationAddResponse) Reset() { *m = RpcBlockDataviewRelationAddResponse{} } +func (m *RpcBlockDataviewRelationAddResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewRelationAddResponse) ProtoMessage() {} +func (*RpcBlockDataviewRelationAddResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 1, 0, 1} +} +func (m *RpcBlockDataviewRelationAddResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewRelationAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewRelationAddResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewRelationAddResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewRelationAddResponse.Merge(m, src) +} +func (m *RpcBlockDataviewRelationAddResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewRelationAddResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewRelationAddResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewRelationAddResponse proto.InternalMessageInfo + +func (m *RpcBlockDataviewRelationAddResponse) GetError() *RpcBlockDataviewRelationAddResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockDataviewRelationAddResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +func (m *RpcBlockDataviewRelationAddResponse) GetRelationKey() string { + if m != nil { + return m.RelationKey + } + return "" +} + +func (m *RpcBlockDataviewRelationAddResponse) GetRelation() *model.Relation { + if m != nil { + return m.Relation + } + return nil +} + +type RpcBlockDataviewRelationAddResponseError struct { + Code RpcBlockDataviewRelationAddResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockDataviewRelationAddResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockDataviewRelationAddResponseError) Reset() { + *m = RpcBlockDataviewRelationAddResponseError{} +} +func (m *RpcBlockDataviewRelationAddResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewRelationAddResponseError) ProtoMessage() {} +func (*RpcBlockDataviewRelationAddResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 1, 0, 1, 0} +} +func (m *RpcBlockDataviewRelationAddResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewRelationAddResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewRelationAddResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewRelationAddResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewRelationAddResponseError.Merge(m, src) +} +func (m *RpcBlockDataviewRelationAddResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewRelationAddResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewRelationAddResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewRelationAddResponseError proto.InternalMessageInfo + +func (m *RpcBlockDataviewRelationAddResponseError) GetCode() RpcBlockDataviewRelationAddResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockDataviewRelationAddResponseError_NULL +} + +func (m *RpcBlockDataviewRelationAddResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockDataviewRelationUpdate struct { +} + +func (m *RpcBlockDataviewRelationUpdate) Reset() { *m = RpcBlockDataviewRelationUpdate{} } +func (m *RpcBlockDataviewRelationUpdate) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewRelationUpdate) ProtoMessage() {} +func (*RpcBlockDataviewRelationUpdate) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 1, 1} +} +func (m *RpcBlockDataviewRelationUpdate) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewRelationUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewRelationUpdate.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewRelationUpdate) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewRelationUpdate.Merge(m, src) +} +func (m *RpcBlockDataviewRelationUpdate) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewRelationUpdate) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewRelationUpdate.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewRelationUpdate proto.InternalMessageInfo + +type RpcBlockDataviewRelationUpdateRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` + RelationKey string `protobuf:"bytes,3,opt,name=relationKey,proto3" json:"relationKey,omitempty"` + Relation *model.Relation `protobuf:"bytes,4,opt,name=relation,proto3" json:"relation,omitempty"` +} + +func (m *RpcBlockDataviewRelationUpdateRequest) Reset() { *m = RpcBlockDataviewRelationUpdateRequest{} } +func (m *RpcBlockDataviewRelationUpdateRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewRelationUpdateRequest) ProtoMessage() {} +func (*RpcBlockDataviewRelationUpdateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 1, 1, 0} +} +func (m *RpcBlockDataviewRelationUpdateRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewRelationUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewRelationUpdateRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewRelationUpdateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewRelationUpdateRequest.Merge(m, src) +} +func (m *RpcBlockDataviewRelationUpdateRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewRelationUpdateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewRelationUpdateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewRelationUpdateRequest proto.InternalMessageInfo + +func (m *RpcBlockDataviewRelationUpdateRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockDataviewRelationUpdateRequest) GetBlockId() string { + if m != nil { + return m.BlockId + } + return "" +} + +func (m *RpcBlockDataviewRelationUpdateRequest) GetRelationKey() string { + if m != nil { + return m.RelationKey + } + return "" +} + +func (m *RpcBlockDataviewRelationUpdateRequest) GetRelation() *model.Relation { + if m != nil { + return m.Relation + } + return nil +} + +type RpcBlockDataviewRelationUpdateResponse struct { + Error *RpcBlockDataviewRelationUpdateResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockDataviewRelationUpdateResponse) Reset() { + *m = RpcBlockDataviewRelationUpdateResponse{} +} +func (m *RpcBlockDataviewRelationUpdateResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewRelationUpdateResponse) ProtoMessage() {} +func (*RpcBlockDataviewRelationUpdateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 1, 1, 1} +} +func (m *RpcBlockDataviewRelationUpdateResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewRelationUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewRelationUpdateResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewRelationUpdateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewRelationUpdateResponse.Merge(m, src) +} +func (m *RpcBlockDataviewRelationUpdateResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewRelationUpdateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewRelationUpdateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewRelationUpdateResponse proto.InternalMessageInfo + +func (m *RpcBlockDataviewRelationUpdateResponse) GetError() *RpcBlockDataviewRelationUpdateResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockDataviewRelationUpdateResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockDataviewRelationUpdateResponseError struct { + Code RpcBlockDataviewRelationUpdateResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockDataviewRelationUpdateResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockDataviewRelationUpdateResponseError) Reset() { + *m = RpcBlockDataviewRelationUpdateResponseError{} +} +func (m *RpcBlockDataviewRelationUpdateResponseError) String() string { + return proto.CompactTextString(m) +} +func (*RpcBlockDataviewRelationUpdateResponseError) ProtoMessage() {} +func (*RpcBlockDataviewRelationUpdateResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 1, 1, 1, 0} +} +func (m *RpcBlockDataviewRelationUpdateResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewRelationUpdateResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewRelationUpdateResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewRelationUpdateResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewRelationUpdateResponseError.Merge(m, src) +} +func (m *RpcBlockDataviewRelationUpdateResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewRelationUpdateResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewRelationUpdateResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewRelationUpdateResponseError proto.InternalMessageInfo + +func (m *RpcBlockDataviewRelationUpdateResponseError) GetCode() RpcBlockDataviewRelationUpdateResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockDataviewRelationUpdateResponseError_NULL +} + +func (m *RpcBlockDataviewRelationUpdateResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockDataviewRelationDelete struct { +} + +func (m *RpcBlockDataviewRelationDelete) Reset() { *m = RpcBlockDataviewRelationDelete{} } +func (m *RpcBlockDataviewRelationDelete) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewRelationDelete) ProtoMessage() {} +func (*RpcBlockDataviewRelationDelete) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 1, 2} +} +func (m *RpcBlockDataviewRelationDelete) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewRelationDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewRelationDelete.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewRelationDelete) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewRelationDelete.Merge(m, src) +} +func (m *RpcBlockDataviewRelationDelete) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewRelationDelete) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewRelationDelete.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewRelationDelete proto.InternalMessageInfo + +type RpcBlockDataviewRelationDeleteRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` + RelationKey string `protobuf:"bytes,3,opt,name=relationKey,proto3" json:"relationKey,omitempty"` +} + +func (m *RpcBlockDataviewRelationDeleteRequest) Reset() { *m = RpcBlockDataviewRelationDeleteRequest{} } +func (m *RpcBlockDataviewRelationDeleteRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewRelationDeleteRequest) ProtoMessage() {} +func (*RpcBlockDataviewRelationDeleteRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 1, 2, 0} +} +func (m *RpcBlockDataviewRelationDeleteRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewRelationDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewRelationDeleteRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewRelationDeleteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewRelationDeleteRequest.Merge(m, src) +} +func (m *RpcBlockDataviewRelationDeleteRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewRelationDeleteRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewRelationDeleteRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewRelationDeleteRequest proto.InternalMessageInfo + +func (m *RpcBlockDataviewRelationDeleteRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockDataviewRelationDeleteRequest) GetBlockId() string { + if m != nil { + return m.BlockId + } + return "" +} + +func (m *RpcBlockDataviewRelationDeleteRequest) GetRelationKey() string { + if m != nil { + return m.RelationKey + } + return "" +} + +type RpcBlockDataviewRelationDeleteResponse struct { + Error *RpcBlockDataviewRelationDeleteResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockDataviewRelationDeleteResponse) Reset() { + *m = RpcBlockDataviewRelationDeleteResponse{} +} +func (m *RpcBlockDataviewRelationDeleteResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewRelationDeleteResponse) ProtoMessage() {} +func (*RpcBlockDataviewRelationDeleteResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 1, 2, 1} +} +func (m *RpcBlockDataviewRelationDeleteResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewRelationDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewRelationDeleteResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewRelationDeleteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewRelationDeleteResponse.Merge(m, src) +} +func (m *RpcBlockDataviewRelationDeleteResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewRelationDeleteResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewRelationDeleteResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewRelationDeleteResponse proto.InternalMessageInfo + +func (m *RpcBlockDataviewRelationDeleteResponse) GetError() *RpcBlockDataviewRelationDeleteResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockDataviewRelationDeleteResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockDataviewRelationDeleteResponseError struct { + Code RpcBlockDataviewRelationDeleteResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockDataviewRelationDeleteResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockDataviewRelationDeleteResponseError) Reset() { + *m = RpcBlockDataviewRelationDeleteResponseError{} +} +func (m *RpcBlockDataviewRelationDeleteResponseError) String() string { + return proto.CompactTextString(m) +} +func (*RpcBlockDataviewRelationDeleteResponseError) ProtoMessage() {} +func (*RpcBlockDataviewRelationDeleteResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 1, 2, 1, 0} +} +func (m *RpcBlockDataviewRelationDeleteResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewRelationDeleteResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewRelationDeleteResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewRelationDeleteResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewRelationDeleteResponseError.Merge(m, src) +} +func (m *RpcBlockDataviewRelationDeleteResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewRelationDeleteResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewRelationDeleteResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewRelationDeleteResponseError proto.InternalMessageInfo + +func (m *RpcBlockDataviewRelationDeleteResponseError) GetCode() RpcBlockDataviewRelationDeleteResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockDataviewRelationDeleteResponseError_NULL +} + +func (m *RpcBlockDataviewRelationDeleteResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockDataviewRelationListAvailable struct { +} + +func (m *RpcBlockDataviewRelationListAvailable) Reset() { *m = RpcBlockDataviewRelationListAvailable{} } +func (m *RpcBlockDataviewRelationListAvailable) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewRelationListAvailable) ProtoMessage() {} +func (*RpcBlockDataviewRelationListAvailable) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 1, 3} +} +func (m *RpcBlockDataviewRelationListAvailable) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewRelationListAvailable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewRelationListAvailable.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewRelationListAvailable) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewRelationListAvailable.Merge(m, src) +} +func (m *RpcBlockDataviewRelationListAvailable) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewRelationListAvailable) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewRelationListAvailable.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewRelationListAvailable proto.InternalMessageInfo + +type RpcBlockDataviewRelationListAvailableRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` +} + +func (m *RpcBlockDataviewRelationListAvailableRequest) Reset() { + *m = RpcBlockDataviewRelationListAvailableRequest{} +} +func (m *RpcBlockDataviewRelationListAvailableRequest) String() string { + return proto.CompactTextString(m) +} +func (*RpcBlockDataviewRelationListAvailableRequest) ProtoMessage() {} +func (*RpcBlockDataviewRelationListAvailableRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 1, 3, 0} +} +func (m *RpcBlockDataviewRelationListAvailableRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewRelationListAvailableRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewRelationListAvailableRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewRelationListAvailableRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewRelationListAvailableRequest.Merge(m, src) +} +func (m *RpcBlockDataviewRelationListAvailableRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewRelationListAvailableRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewRelationListAvailableRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewRelationListAvailableRequest proto.InternalMessageInfo + +func (m *RpcBlockDataviewRelationListAvailableRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockDataviewRelationListAvailableRequest) GetBlockId() string { + if m != nil { + return m.BlockId + } + return "" +} + +type RpcBlockDataviewRelationListAvailableResponse struct { + Error *RpcBlockDataviewRelationListAvailableResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Relations []*model.Relation `protobuf:"bytes,2,rep,name=relations,proto3" json:"relations,omitempty"` +} + +func (m *RpcBlockDataviewRelationListAvailableResponse) Reset() { + *m = RpcBlockDataviewRelationListAvailableResponse{} +} +func (m *RpcBlockDataviewRelationListAvailableResponse) String() string { + return proto.CompactTextString(m) +} +func (*RpcBlockDataviewRelationListAvailableResponse) ProtoMessage() {} +func (*RpcBlockDataviewRelationListAvailableResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 1, 3, 1} +} +func (m *RpcBlockDataviewRelationListAvailableResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewRelationListAvailableResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewRelationListAvailableResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewRelationListAvailableResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewRelationListAvailableResponse.Merge(m, src) +} +func (m *RpcBlockDataviewRelationListAvailableResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewRelationListAvailableResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewRelationListAvailableResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewRelationListAvailableResponse proto.InternalMessageInfo + +func (m *RpcBlockDataviewRelationListAvailableResponse) GetError() *RpcBlockDataviewRelationListAvailableResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockDataviewRelationListAvailableResponse) GetRelations() []*model.Relation { + if m != nil { + return m.Relations + } + return nil +} + +type RpcBlockDataviewRelationListAvailableResponseError struct { + Code RpcBlockDataviewRelationListAvailableResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockDataviewRelationListAvailableResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockDataviewRelationListAvailableResponseError) Reset() { + *m = RpcBlockDataviewRelationListAvailableResponseError{} +} +func (m *RpcBlockDataviewRelationListAvailableResponseError) String() string { + return proto.CompactTextString(m) +} +func (*RpcBlockDataviewRelationListAvailableResponseError) ProtoMessage() {} +func (*RpcBlockDataviewRelationListAvailableResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 1, 3, 1, 0} +} +func (m *RpcBlockDataviewRelationListAvailableResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewRelationListAvailableResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewRelationListAvailableResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewRelationListAvailableResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewRelationListAvailableResponseError.Merge(m, src) +} +func (m *RpcBlockDataviewRelationListAvailableResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewRelationListAvailableResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewRelationListAvailableResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewRelationListAvailableResponseError proto.InternalMessageInfo + +func (m *RpcBlockDataviewRelationListAvailableResponseError) GetCode() RpcBlockDataviewRelationListAvailableResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockDataviewRelationListAvailableResponseError_NULL +} + +func (m *RpcBlockDataviewRelationListAvailableResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockDataviewSetSource struct { +} + +func (m *RpcBlockDataviewSetSource) Reset() { *m = RpcBlockDataviewSetSource{} } +func (m *RpcBlockDataviewSetSource) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewSetSource) ProtoMessage() {} +func (*RpcBlockDataviewSetSource) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 2} +} +func (m *RpcBlockDataviewSetSource) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewSetSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewSetSource.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewSetSource) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewSetSource.Merge(m, src) +} +func (m *RpcBlockDataviewSetSource) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewSetSource) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewSetSource.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewSetSource proto.InternalMessageInfo + +type RpcBlockDataviewSetSourceRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` + Source []string `protobuf:"bytes,3,rep,name=source,proto3" json:"source,omitempty"` +} + +func (m *RpcBlockDataviewSetSourceRequest) Reset() { *m = RpcBlockDataviewSetSourceRequest{} } +func (m *RpcBlockDataviewSetSourceRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewSetSourceRequest) ProtoMessage() {} +func (*RpcBlockDataviewSetSourceRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 2, 0} +} +func (m *RpcBlockDataviewSetSourceRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewSetSourceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewSetSourceRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewSetSourceRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewSetSourceRequest.Merge(m, src) +} +func (m *RpcBlockDataviewSetSourceRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewSetSourceRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewSetSourceRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewSetSourceRequest proto.InternalMessageInfo + +func (m *RpcBlockDataviewSetSourceRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockDataviewSetSourceRequest) GetBlockId() string { + if m != nil { + return m.BlockId + } + return "" +} + +func (m *RpcBlockDataviewSetSourceRequest) GetSource() []string { + if m != nil { + return m.Source + } + return nil +} + +type RpcBlockDataviewSetSourceResponse struct { + Error *RpcBlockDataviewSetSourceResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,4,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockDataviewSetSourceResponse) Reset() { *m = RpcBlockDataviewSetSourceResponse{} } +func (m *RpcBlockDataviewSetSourceResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewSetSourceResponse) ProtoMessage() {} +func (*RpcBlockDataviewSetSourceResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 2, 1} +} +func (m *RpcBlockDataviewSetSourceResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewSetSourceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewSetSourceResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewSetSourceResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewSetSourceResponse.Merge(m, src) +} +func (m *RpcBlockDataviewSetSourceResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewSetSourceResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewSetSourceResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewSetSourceResponse proto.InternalMessageInfo + +func (m *RpcBlockDataviewSetSourceResponse) GetError() *RpcBlockDataviewSetSourceResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockDataviewSetSourceResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockDataviewSetSourceResponseError struct { + Code RpcBlockDataviewSetSourceResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockDataviewSetSourceResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockDataviewSetSourceResponseError) Reset() { + *m = RpcBlockDataviewSetSourceResponseError{} +} +func (m *RpcBlockDataviewSetSourceResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewSetSourceResponseError) ProtoMessage() {} +func (*RpcBlockDataviewSetSourceResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 24, 2, 1, 0} +} +func (m *RpcBlockDataviewSetSourceResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewSetSourceResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewSetSourceResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewSetSourceResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewSetSourceResponseError.Merge(m, src) +} +func (m *RpcBlockDataviewSetSourceResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewSetSourceResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewSetSourceResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewSetSourceResponseError proto.InternalMessageInfo + +func (m *RpcBlockDataviewSetSourceResponseError) GetCode() RpcBlockDataviewSetSourceResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockDataviewSetSourceResponseError_NULL +} + +func (m *RpcBlockDataviewSetSourceResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockDataviewRecord struct { +} + +func (m *RpcBlockDataviewRecord) Reset() { *m = RpcBlockDataviewRecord{} } +func (m *RpcBlockDataviewRecord) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewRecord) ProtoMessage() {} +func (*RpcBlockDataviewRecord) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 25} +} +func (m *RpcBlockDataviewRecord) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewRecord.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewRecord) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewRecord.Merge(m, src) +} +func (m *RpcBlockDataviewRecord) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewRecord) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewRecord.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewRecord proto.InternalMessageInfo + +type RpcBlockDataviewRecordUpdate struct { +} + +func (m *RpcBlockDataviewRecordUpdate) Reset() { *m = RpcBlockDataviewRecordUpdate{} } +func (m *RpcBlockDataviewRecordUpdate) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewRecordUpdate) ProtoMessage() {} +func (*RpcBlockDataviewRecordUpdate) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 0} +} +func (m *RpcBlockDataviewRecordUpdate) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewRecordUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewRecordUpdate.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewRecordUpdate) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewRecordUpdate.Merge(m, src) +} +func (m *RpcBlockDataviewRecordUpdate) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewRecordUpdate) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewRecordUpdate.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewRecordUpdate proto.InternalMessageInfo + +type RpcBlockDataviewRecordUpdateRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` + RecordId string `protobuf:"bytes,3,opt,name=recordId,proto3" json:"recordId,omitempty"` + Record *types.Struct `protobuf:"bytes,4,opt,name=record,proto3" json:"record,omitempty"` +} + +func (m *RpcBlockDataviewRecordUpdateRequest) Reset() { *m = RpcBlockDataviewRecordUpdateRequest{} } +func (m *RpcBlockDataviewRecordUpdateRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewRecordUpdateRequest) ProtoMessage() {} +func (*RpcBlockDataviewRecordUpdateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 0, 0} +} +func (m *RpcBlockDataviewRecordUpdateRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewRecordUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewRecordUpdateRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewRecordUpdateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewRecordUpdateRequest.Merge(m, src) +} +func (m *RpcBlockDataviewRecordUpdateRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewRecordUpdateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewRecordUpdateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewRecordUpdateRequest proto.InternalMessageInfo + +func (m *RpcBlockDataviewRecordUpdateRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockDataviewRecordUpdateRequest) GetBlockId() string { + if m != nil { + return m.BlockId + } + return "" +} + +func (m *RpcBlockDataviewRecordUpdateRequest) GetRecordId() string { + if m != nil { + return m.RecordId + } + return "" +} + +func (m *RpcBlockDataviewRecordUpdateRequest) GetRecord() *types.Struct { + if m != nil { + return m.Record + } + return nil +} + +type RpcBlockDataviewRecordUpdateResponse struct { + Error *RpcBlockDataviewRecordUpdateResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +} + +func (m *RpcBlockDataviewRecordUpdateResponse) Reset() { *m = RpcBlockDataviewRecordUpdateResponse{} } +func (m *RpcBlockDataviewRecordUpdateResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewRecordUpdateResponse) ProtoMessage() {} +func (*RpcBlockDataviewRecordUpdateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 0, 1} +} +func (m *RpcBlockDataviewRecordUpdateResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewRecordUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewRecordUpdateResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewRecordUpdateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewRecordUpdateResponse.Merge(m, src) +} +func (m *RpcBlockDataviewRecordUpdateResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewRecordUpdateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewRecordUpdateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewRecordUpdateResponse proto.InternalMessageInfo + +func (m *RpcBlockDataviewRecordUpdateResponse) GetError() *RpcBlockDataviewRecordUpdateResponseError { + if m != nil { + return m.Error + } + return nil +} + +type RpcBlockDataviewRecordUpdateResponseError struct { + Code RpcBlockDataviewRecordUpdateResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockDataviewRecordUpdateResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockDataviewRecordUpdateResponseError) Reset() { + *m = RpcBlockDataviewRecordUpdateResponseError{} +} +func (m *RpcBlockDataviewRecordUpdateResponseError) String() string { + return proto.CompactTextString(m) +} +func (*RpcBlockDataviewRecordUpdateResponseError) ProtoMessage() {} +func (*RpcBlockDataviewRecordUpdateResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 0, 1, 0} +} +func (m *RpcBlockDataviewRecordUpdateResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewRecordUpdateResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewRecordUpdateResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewRecordUpdateResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewRecordUpdateResponseError.Merge(m, src) +} +func (m *RpcBlockDataviewRecordUpdateResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewRecordUpdateResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewRecordUpdateResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewRecordUpdateResponseError proto.InternalMessageInfo + +func (m *RpcBlockDataviewRecordUpdateResponseError) GetCode() RpcBlockDataviewRecordUpdateResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockDataviewRecordUpdateResponseError_NULL +} + +func (m *RpcBlockDataviewRecordUpdateResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockDataviewRecordDelete struct { +} + +func (m *RpcBlockDataviewRecordDelete) Reset() { *m = RpcBlockDataviewRecordDelete{} } +func (m *RpcBlockDataviewRecordDelete) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewRecordDelete) ProtoMessage() {} +func (*RpcBlockDataviewRecordDelete) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 1} +} +func (m *RpcBlockDataviewRecordDelete) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewRecordDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewRecordDelete.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewRecordDelete) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewRecordDelete.Merge(m, src) +} +func (m *RpcBlockDataviewRecordDelete) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewRecordDelete) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewRecordDelete.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewRecordDelete proto.InternalMessageInfo + +type RpcBlockDataviewRecordDeleteRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` + RecordId string `protobuf:"bytes,3,opt,name=recordId,proto3" json:"recordId,omitempty"` +} + +func (m *RpcBlockDataviewRecordDeleteRequest) Reset() { *m = RpcBlockDataviewRecordDeleteRequest{} } +func (m *RpcBlockDataviewRecordDeleteRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewRecordDeleteRequest) ProtoMessage() {} +func (*RpcBlockDataviewRecordDeleteRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 1, 0} +} +func (m *RpcBlockDataviewRecordDeleteRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewRecordDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewRecordDeleteRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewRecordDeleteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewRecordDeleteRequest.Merge(m, src) +} +func (m *RpcBlockDataviewRecordDeleteRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewRecordDeleteRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewRecordDeleteRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewRecordDeleteRequest proto.InternalMessageInfo + +func (m *RpcBlockDataviewRecordDeleteRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockDataviewRecordDeleteRequest) GetBlockId() string { + if m != nil { + return m.BlockId + } + return "" +} + +func (m *RpcBlockDataviewRecordDeleteRequest) GetRecordId() string { + if m != nil { + return m.RecordId + } + return "" +} + +type RpcBlockDataviewRecordDeleteResponse struct { + Error *RpcBlockDataviewRecordDeleteResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockDataviewRecordDeleteResponse) Reset() { *m = RpcBlockDataviewRecordDeleteResponse{} } +func (m *RpcBlockDataviewRecordDeleteResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewRecordDeleteResponse) ProtoMessage() {} +func (*RpcBlockDataviewRecordDeleteResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 1, 1} +} +func (m *RpcBlockDataviewRecordDeleteResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewRecordDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewRecordDeleteResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewRecordDeleteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewRecordDeleteResponse.Merge(m, src) +} +func (m *RpcBlockDataviewRecordDeleteResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewRecordDeleteResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewRecordDeleteResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewRecordDeleteResponse proto.InternalMessageInfo + +func (m *RpcBlockDataviewRecordDeleteResponse) GetError() *RpcBlockDataviewRecordDeleteResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockDataviewRecordDeleteResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockDataviewRecordDeleteResponseError struct { + Code RpcBlockDataviewRecordDeleteResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockDataviewRecordDeleteResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockDataviewRecordDeleteResponseError) Reset() { + *m = RpcBlockDataviewRecordDeleteResponseError{} +} +func (m *RpcBlockDataviewRecordDeleteResponseError) String() string { + return proto.CompactTextString(m) +} +func (*RpcBlockDataviewRecordDeleteResponseError) ProtoMessage() {} +func (*RpcBlockDataviewRecordDeleteResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 1, 1, 0} +} +func (m *RpcBlockDataviewRecordDeleteResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewRecordDeleteResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewRecordDeleteResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewRecordDeleteResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewRecordDeleteResponseError.Merge(m, src) +} +func (m *RpcBlockDataviewRecordDeleteResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewRecordDeleteResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewRecordDeleteResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewRecordDeleteResponseError proto.InternalMessageInfo + +func (m *RpcBlockDataviewRecordDeleteResponseError) GetCode() RpcBlockDataviewRecordDeleteResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockDataviewRecordDeleteResponseError_NULL +} + +func (m *RpcBlockDataviewRecordDeleteResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockDataviewRecordCreate struct { +} + +func (m *RpcBlockDataviewRecordCreate) Reset() { *m = RpcBlockDataviewRecordCreate{} } +func (m *RpcBlockDataviewRecordCreate) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewRecordCreate) ProtoMessage() {} +func (*RpcBlockDataviewRecordCreate) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 2} +} +func (m *RpcBlockDataviewRecordCreate) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewRecordCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewRecordCreate.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewRecordCreate) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewRecordCreate.Merge(m, src) +} +func (m *RpcBlockDataviewRecordCreate) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewRecordCreate) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewRecordCreate.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewRecordCreate proto.InternalMessageInfo + +type RpcBlockDataviewRecordCreateRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` + Record *types.Struct `protobuf:"bytes,3,opt,name=record,proto3" json:"record,omitempty"` + TemplateId string `protobuf:"bytes,4,opt,name=templateId,proto3" json:"templateId,omitempty"` +} + +func (m *RpcBlockDataviewRecordCreateRequest) Reset() { *m = RpcBlockDataviewRecordCreateRequest{} } +func (m *RpcBlockDataviewRecordCreateRequest) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewRecordCreateRequest) ProtoMessage() {} +func (*RpcBlockDataviewRecordCreateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 2, 0} +} +func (m *RpcBlockDataviewRecordCreateRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewRecordCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewRecordCreateRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewRecordCreateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewRecordCreateRequest.Merge(m, src) +} +func (m *RpcBlockDataviewRecordCreateRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewRecordCreateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewRecordCreateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewRecordCreateRequest proto.InternalMessageInfo + +func (m *RpcBlockDataviewRecordCreateRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockDataviewRecordCreateRequest) GetBlockId() string { + if m != nil { + return m.BlockId + } + return "" +} + +func (m *RpcBlockDataviewRecordCreateRequest) GetRecord() *types.Struct { + if m != nil { + return m.Record + } + return nil +} + +func (m *RpcBlockDataviewRecordCreateRequest) GetTemplateId() string { + if m != nil { + return m.TemplateId + } + return "" +} + +type RpcBlockDataviewRecordCreateResponse struct { + Error *RpcBlockDataviewRecordCreateResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Record *types.Struct `protobuf:"bytes,2,opt,name=record,proto3" json:"record,omitempty"` +} + +func (m *RpcBlockDataviewRecordCreateResponse) Reset() { *m = RpcBlockDataviewRecordCreateResponse{} } +func (m *RpcBlockDataviewRecordCreateResponse) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewRecordCreateResponse) ProtoMessage() {} +func (*RpcBlockDataviewRecordCreateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 2, 1} +} +func (m *RpcBlockDataviewRecordCreateResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewRecordCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewRecordCreateResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewRecordCreateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewRecordCreateResponse.Merge(m, src) +} +func (m *RpcBlockDataviewRecordCreateResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewRecordCreateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewRecordCreateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewRecordCreateResponse proto.InternalMessageInfo + +func (m *RpcBlockDataviewRecordCreateResponse) GetError() *RpcBlockDataviewRecordCreateResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockDataviewRecordCreateResponse) GetRecord() *types.Struct { + if m != nil { + return m.Record + } + return nil +} + +type RpcBlockDataviewRecordCreateResponseError struct { + Code RpcBlockDataviewRecordCreateResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockDataviewRecordCreateResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockDataviewRecordCreateResponseError) Reset() { + *m = RpcBlockDataviewRecordCreateResponseError{} +} +func (m *RpcBlockDataviewRecordCreateResponseError) String() string { + return proto.CompactTextString(m) +} +func (*RpcBlockDataviewRecordCreateResponseError) ProtoMessage() {} +func (*RpcBlockDataviewRecordCreateResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 2, 1, 0} +} +func (m *RpcBlockDataviewRecordCreateResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewRecordCreateResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewRecordCreateResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewRecordCreateResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewRecordCreateResponseError.Merge(m, src) +} +func (m *RpcBlockDataviewRecordCreateResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewRecordCreateResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewRecordCreateResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewRecordCreateResponseError proto.InternalMessageInfo + +func (m *RpcBlockDataviewRecordCreateResponseError) GetCode() RpcBlockDataviewRecordCreateResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockDataviewRecordCreateResponseError_NULL +} + +func (m *RpcBlockDataviewRecordCreateResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockDataviewRecordRelationOption struct { +} + +func (m *RpcBlockDataviewRecordRelationOption) Reset() { *m = RpcBlockDataviewRecordRelationOption{} } +func (m *RpcBlockDataviewRecordRelationOption) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewRecordRelationOption) ProtoMessage() {} +func (*RpcBlockDataviewRecordRelationOption) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 3} +} +func (m *RpcBlockDataviewRecordRelationOption) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewRecordRelationOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewRecordRelationOption.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewRecordRelationOption) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewRecordRelationOption.Merge(m, src) +} +func (m *RpcBlockDataviewRecordRelationOption) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewRecordRelationOption) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewRecordRelationOption.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewRecordRelationOption proto.InternalMessageInfo + +// Add may return existing option in case object specified with recordId already have the option with the same name or ID +type RpcBlockDataviewRecordRelationOptionAdd struct { +} + +func (m *RpcBlockDataviewRecordRelationOptionAdd) Reset() { + *m = RpcBlockDataviewRecordRelationOptionAdd{} +} +func (m *RpcBlockDataviewRecordRelationOptionAdd) String() string { return proto.CompactTextString(m) } +func (*RpcBlockDataviewRecordRelationOptionAdd) ProtoMessage() {} +func (*RpcBlockDataviewRecordRelationOptionAdd) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 3, 0} +} +func (m *RpcBlockDataviewRecordRelationOptionAdd) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewRecordRelationOptionAdd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewRecordRelationOptionAdd.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewRecordRelationOptionAdd) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewRecordRelationOptionAdd.Merge(m, src) +} +func (m *RpcBlockDataviewRecordRelationOptionAdd) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewRecordRelationOptionAdd) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewRecordRelationOptionAdd.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewRecordRelationOptionAdd proto.InternalMessageInfo + +type RpcBlockDataviewRecordRelationOptionAddRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` + RelationKey string `protobuf:"bytes,3,opt,name=relationKey,proto3" json:"relationKey,omitempty"` + Option *model.RelationOption `protobuf:"bytes,4,opt,name=option,proto3" json:"option,omitempty"` + RecordId string `protobuf:"bytes,5,opt,name=recordId,proto3" json:"recordId,omitempty"` +} + +func (m *RpcBlockDataviewRecordRelationOptionAddRequest) Reset() { + *m = RpcBlockDataviewRecordRelationOptionAddRequest{} +} +func (m *RpcBlockDataviewRecordRelationOptionAddRequest) String() string { + return proto.CompactTextString(m) +} +func (*RpcBlockDataviewRecordRelationOptionAddRequest) ProtoMessage() {} +func (*RpcBlockDataviewRecordRelationOptionAddRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 3, 0, 0} +} +func (m *RpcBlockDataviewRecordRelationOptionAddRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewRecordRelationOptionAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewRecordRelationOptionAddRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewRecordRelationOptionAddRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewRecordRelationOptionAddRequest.Merge(m, src) +} +func (m *RpcBlockDataviewRecordRelationOptionAddRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewRecordRelationOptionAddRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewRecordRelationOptionAddRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewRecordRelationOptionAddRequest proto.InternalMessageInfo + +func (m *RpcBlockDataviewRecordRelationOptionAddRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockDataviewRecordRelationOptionAddRequest) GetBlockId() string { + if m != nil { + return m.BlockId + } + return "" +} + +func (m *RpcBlockDataviewRecordRelationOptionAddRequest) GetRelationKey() string { + if m != nil { + return m.RelationKey + } + return "" +} + +func (m *RpcBlockDataviewRecordRelationOptionAddRequest) GetOption() *model.RelationOption { + if m != nil { + return m.Option + } + return nil +} + +func (m *RpcBlockDataviewRecordRelationOptionAddRequest) GetRecordId() string { + if m != nil { + return m.RecordId + } + return "" +} + +type RpcBlockDataviewRecordRelationOptionAddResponse struct { + Error *RpcBlockDataviewRecordRelationOptionAddResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` + Option *model.RelationOption `protobuf:"bytes,3,opt,name=option,proto3" json:"option,omitempty"` +} + +func (m *RpcBlockDataviewRecordRelationOptionAddResponse) Reset() { + *m = RpcBlockDataviewRecordRelationOptionAddResponse{} +} +func (m *RpcBlockDataviewRecordRelationOptionAddResponse) String() string { + return proto.CompactTextString(m) +} +func (*RpcBlockDataviewRecordRelationOptionAddResponse) ProtoMessage() {} +func (*RpcBlockDataviewRecordRelationOptionAddResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 3, 0, 1} +} +func (m *RpcBlockDataviewRecordRelationOptionAddResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewRecordRelationOptionAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewRecordRelationOptionAddResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewRecordRelationOptionAddResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewRecordRelationOptionAddResponse.Merge(m, src) +} +func (m *RpcBlockDataviewRecordRelationOptionAddResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewRecordRelationOptionAddResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewRecordRelationOptionAddResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewRecordRelationOptionAddResponse proto.InternalMessageInfo + +func (m *RpcBlockDataviewRecordRelationOptionAddResponse) GetError() *RpcBlockDataviewRecordRelationOptionAddResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockDataviewRecordRelationOptionAddResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +func (m *RpcBlockDataviewRecordRelationOptionAddResponse) GetOption() *model.RelationOption { + if m != nil { + return m.Option + } + return nil +} + +type RpcBlockDataviewRecordRelationOptionAddResponseError struct { + Code RpcBlockDataviewRecordRelationOptionAddResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockDataviewRecordRelationOptionAddResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockDataviewRecordRelationOptionAddResponseError) Reset() { + *m = RpcBlockDataviewRecordRelationOptionAddResponseError{} +} +func (m *RpcBlockDataviewRecordRelationOptionAddResponseError) String() string { + return proto.CompactTextString(m) +} +func (*RpcBlockDataviewRecordRelationOptionAddResponseError) ProtoMessage() {} +func (*RpcBlockDataviewRecordRelationOptionAddResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 3, 0, 1, 0} +} +func (m *RpcBlockDataviewRecordRelationOptionAddResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewRecordRelationOptionAddResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewRecordRelationOptionAddResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewRecordRelationOptionAddResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewRecordRelationOptionAddResponseError.Merge(m, src) +} +func (m *RpcBlockDataviewRecordRelationOptionAddResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewRecordRelationOptionAddResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewRecordRelationOptionAddResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewRecordRelationOptionAddResponseError proto.InternalMessageInfo + +func (m *RpcBlockDataviewRecordRelationOptionAddResponseError) GetCode() RpcBlockDataviewRecordRelationOptionAddResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockDataviewRecordRelationOptionAddResponseError_NULL +} + +func (m *RpcBlockDataviewRecordRelationOptionAddResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockDataviewRecordRelationOptionUpdate struct { +} + +func (m *RpcBlockDataviewRecordRelationOptionUpdate) Reset() { + *m = RpcBlockDataviewRecordRelationOptionUpdate{} +} +func (m *RpcBlockDataviewRecordRelationOptionUpdate) String() string { + return proto.CompactTextString(m) +} +func (*RpcBlockDataviewRecordRelationOptionUpdate) ProtoMessage() {} +func (*RpcBlockDataviewRecordRelationOptionUpdate) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 3, 1} +} +func (m *RpcBlockDataviewRecordRelationOptionUpdate) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewRecordRelationOptionUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewRecordRelationOptionUpdate.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewRecordRelationOptionUpdate) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewRecordRelationOptionUpdate.Merge(m, src) +} +func (m *RpcBlockDataviewRecordRelationOptionUpdate) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewRecordRelationOptionUpdate) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewRecordRelationOptionUpdate.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewRecordRelationOptionUpdate proto.InternalMessageInfo + +type RpcBlockDataviewRecordRelationOptionUpdateRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` + RelationKey string `protobuf:"bytes,3,opt,name=relationKey,proto3" json:"relationKey,omitempty"` + Option *model.RelationOption `protobuf:"bytes,4,opt,name=option,proto3" json:"option,omitempty"` + RecordId string `protobuf:"bytes,5,opt,name=recordId,proto3" json:"recordId,omitempty"` +} + +func (m *RpcBlockDataviewRecordRelationOptionUpdateRequest) Reset() { + *m = RpcBlockDataviewRecordRelationOptionUpdateRequest{} +} +func (m *RpcBlockDataviewRecordRelationOptionUpdateRequest) String() string { + return proto.CompactTextString(m) +} +func (*RpcBlockDataviewRecordRelationOptionUpdateRequest) ProtoMessage() {} +func (*RpcBlockDataviewRecordRelationOptionUpdateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 3, 1, 0} +} +func (m *RpcBlockDataviewRecordRelationOptionUpdateRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewRecordRelationOptionUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewRecordRelationOptionUpdateRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewRecordRelationOptionUpdateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewRecordRelationOptionUpdateRequest.Merge(m, src) +} +func (m *RpcBlockDataviewRecordRelationOptionUpdateRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewRecordRelationOptionUpdateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewRecordRelationOptionUpdateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewRecordRelationOptionUpdateRequest proto.InternalMessageInfo + +func (m *RpcBlockDataviewRecordRelationOptionUpdateRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockDataviewRecordRelationOptionUpdateRequest) GetBlockId() string { + if m != nil { + return m.BlockId + } + return "" +} + +func (m *RpcBlockDataviewRecordRelationOptionUpdateRequest) GetRelationKey() string { + if m != nil { + return m.RelationKey + } + return "" +} + +func (m *RpcBlockDataviewRecordRelationOptionUpdateRequest) GetOption() *model.RelationOption { + if m != nil { + return m.Option + } + return nil +} + +func (m *RpcBlockDataviewRecordRelationOptionUpdateRequest) GetRecordId() string { + if m != nil { + return m.RecordId + } + return "" +} + +type RpcBlockDataviewRecordRelationOptionUpdateResponse struct { + Error *RpcBlockDataviewRecordRelationOptionUpdateResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockDataviewRecordRelationOptionUpdateResponse) Reset() { + *m = RpcBlockDataviewRecordRelationOptionUpdateResponse{} +} +func (m *RpcBlockDataviewRecordRelationOptionUpdateResponse) String() string { + return proto.CompactTextString(m) +} +func (*RpcBlockDataviewRecordRelationOptionUpdateResponse) ProtoMessage() {} +func (*RpcBlockDataviewRecordRelationOptionUpdateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 3, 1, 1} +} +func (m *RpcBlockDataviewRecordRelationOptionUpdateResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewRecordRelationOptionUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewRecordRelationOptionUpdateResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewRecordRelationOptionUpdateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewRecordRelationOptionUpdateResponse.Merge(m, src) +} +func (m *RpcBlockDataviewRecordRelationOptionUpdateResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewRecordRelationOptionUpdateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewRecordRelationOptionUpdateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewRecordRelationOptionUpdateResponse proto.InternalMessageInfo + +func (m *RpcBlockDataviewRecordRelationOptionUpdateResponse) GetError() *RpcBlockDataviewRecordRelationOptionUpdateResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockDataviewRecordRelationOptionUpdateResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockDataviewRecordRelationOptionUpdateResponseError struct { + Code RpcBlockDataviewRecordRelationOptionUpdateResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockDataviewRecordRelationOptionUpdateResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockDataviewRecordRelationOptionUpdateResponseError) Reset() { + *m = RpcBlockDataviewRecordRelationOptionUpdateResponseError{} +} +func (m *RpcBlockDataviewRecordRelationOptionUpdateResponseError) String() string { + return proto.CompactTextString(m) +} +func (*RpcBlockDataviewRecordRelationOptionUpdateResponseError) ProtoMessage() {} +func (*RpcBlockDataviewRecordRelationOptionUpdateResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 3, 1, 1, 0} +} +func (m *RpcBlockDataviewRecordRelationOptionUpdateResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewRecordRelationOptionUpdateResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewRecordRelationOptionUpdateResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewRecordRelationOptionUpdateResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewRecordRelationOptionUpdateResponseError.Merge(m, src) +} +func (m *RpcBlockDataviewRecordRelationOptionUpdateResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewRecordRelationOptionUpdateResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewRecordRelationOptionUpdateResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewRecordRelationOptionUpdateResponseError proto.InternalMessageInfo + +func (m *RpcBlockDataviewRecordRelationOptionUpdateResponseError) GetCode() RpcBlockDataviewRecordRelationOptionUpdateResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockDataviewRecordRelationOptionUpdateResponseError_NULL +} + +func (m *RpcBlockDataviewRecordRelationOptionUpdateResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcBlockDataviewRecordRelationOptionDelete struct { +} + +func (m *RpcBlockDataviewRecordRelationOptionDelete) Reset() { + *m = RpcBlockDataviewRecordRelationOptionDelete{} +} +func (m *RpcBlockDataviewRecordRelationOptionDelete) String() string { + return proto.CompactTextString(m) +} +func (*RpcBlockDataviewRecordRelationOptionDelete) ProtoMessage() {} +func (*RpcBlockDataviewRecordRelationOptionDelete) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 3, 2} +} +func (m *RpcBlockDataviewRecordRelationOptionDelete) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewRecordRelationOptionDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewRecordRelationOptionDelete.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewRecordRelationOptionDelete) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewRecordRelationOptionDelete.Merge(m, src) +} +func (m *RpcBlockDataviewRecordRelationOptionDelete) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewRecordRelationOptionDelete) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewRecordRelationOptionDelete.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewRecordRelationOptionDelete proto.InternalMessageInfo + +type RpcBlockDataviewRecordRelationOptionDeleteRequest struct { + ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` + BlockId string `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"` + RelationKey string `protobuf:"bytes,3,opt,name=relationKey,proto3" json:"relationKey,omitempty"` + OptionId string `protobuf:"bytes,4,opt,name=optionId,proto3" json:"optionId,omitempty"` + RecordId string `protobuf:"bytes,5,opt,name=recordId,proto3" json:"recordId,omitempty"` +} + +func (m *RpcBlockDataviewRecordRelationOptionDeleteRequest) Reset() { + *m = RpcBlockDataviewRecordRelationOptionDeleteRequest{} +} +func (m *RpcBlockDataviewRecordRelationOptionDeleteRequest) String() string { + return proto.CompactTextString(m) +} +func (*RpcBlockDataviewRecordRelationOptionDeleteRequest) ProtoMessage() {} +func (*RpcBlockDataviewRecordRelationOptionDeleteRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 3, 2, 0} +} +func (m *RpcBlockDataviewRecordRelationOptionDeleteRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewRecordRelationOptionDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewRecordRelationOptionDeleteRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewRecordRelationOptionDeleteRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewRecordRelationOptionDeleteRequest.Merge(m, src) +} +func (m *RpcBlockDataviewRecordRelationOptionDeleteRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewRecordRelationOptionDeleteRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewRecordRelationOptionDeleteRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewRecordRelationOptionDeleteRequest proto.InternalMessageInfo + +func (m *RpcBlockDataviewRecordRelationOptionDeleteRequest) GetContextId() string { + if m != nil { + return m.ContextId + } + return "" +} + +func (m *RpcBlockDataviewRecordRelationOptionDeleteRequest) GetBlockId() string { + if m != nil { + return m.BlockId + } + return "" +} + +func (m *RpcBlockDataviewRecordRelationOptionDeleteRequest) GetRelationKey() string { + if m != nil { + return m.RelationKey + } + return "" +} + +func (m *RpcBlockDataviewRecordRelationOptionDeleteRequest) GetOptionId() string { + if m != nil { + return m.OptionId + } + return "" +} + +func (m *RpcBlockDataviewRecordRelationOptionDeleteRequest) GetRecordId() string { + if m != nil { + return m.RecordId + } + return "" +} + +type RpcBlockDataviewRecordRelationOptionDeleteResponse struct { + Error *RpcBlockDataviewRecordRelationOptionDeleteResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Event *ResponseEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcBlockDataviewRecordRelationOptionDeleteResponse) Reset() { + *m = RpcBlockDataviewRecordRelationOptionDeleteResponse{} +} +func (m *RpcBlockDataviewRecordRelationOptionDeleteResponse) String() string { + return proto.CompactTextString(m) +} +func (*RpcBlockDataviewRecordRelationOptionDeleteResponse) ProtoMessage() {} +func (*RpcBlockDataviewRecordRelationOptionDeleteResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 3, 2, 1} +} +func (m *RpcBlockDataviewRecordRelationOptionDeleteResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewRecordRelationOptionDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewRecordRelationOptionDeleteResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewRecordRelationOptionDeleteResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewRecordRelationOptionDeleteResponse.Merge(m, src) +} +func (m *RpcBlockDataviewRecordRelationOptionDeleteResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewRecordRelationOptionDeleteResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewRecordRelationOptionDeleteResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewRecordRelationOptionDeleteResponse proto.InternalMessageInfo + +func (m *RpcBlockDataviewRecordRelationOptionDeleteResponse) GetError() *RpcBlockDataviewRecordRelationOptionDeleteResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcBlockDataviewRecordRelationOptionDeleteResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcBlockDataviewRecordRelationOptionDeleteResponseError struct { + Code RpcBlockDataviewRecordRelationOptionDeleteResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcBlockDataviewRecordRelationOptionDeleteResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcBlockDataviewRecordRelationOptionDeleteResponseError) Reset() { + *m = RpcBlockDataviewRecordRelationOptionDeleteResponseError{} +} +func (m *RpcBlockDataviewRecordRelationOptionDeleteResponseError) String() string { + return proto.CompactTextString(m) +} +func (*RpcBlockDataviewRecordRelationOptionDeleteResponseError) ProtoMessage() {} +func (*RpcBlockDataviewRecordRelationOptionDeleteResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 25, 3, 2, 1, 0} +} +func (m *RpcBlockDataviewRecordRelationOptionDeleteResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcBlockDataviewRecordRelationOptionDeleteResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcBlockDataviewRecordRelationOptionDeleteResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcBlockDataviewRecordRelationOptionDeleteResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcBlockDataviewRecordRelationOptionDeleteResponseError.Merge(m, src) +} +func (m *RpcBlockDataviewRecordRelationOptionDeleteResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcBlockDataviewRecordRelationOptionDeleteResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcBlockDataviewRecordRelationOptionDeleteResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcBlockDataviewRecordRelationOptionDeleteResponseError proto.InternalMessageInfo + +func (m *RpcBlockDataviewRecordRelationOptionDeleteResponseError) GetCode() RpcBlockDataviewRecordRelationOptionDeleteResponseErrorCode { + if m != nil { + return m.Code + } + return RpcBlockDataviewRecordRelationOptionDeleteResponseError_NULL +} + +func (m *RpcBlockDataviewRecordRelationOptionDeleteResponseError) GetDescription() string { if m != nil { return m.Description } @@ -37230,7 +34664,7 @@ func (m *RpcDebug) Reset() { *m = RpcDebug{} } func (m *RpcDebug) String() string { return proto.CompactTextString(m) } func (*RpcDebug) ProtoMessage() {} func (*RpcDebug) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 37} + return fileDescriptor_8261c968b2e6f45c, []int{0, 26} } func (m *RpcDebug) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -37279,7 +34713,7 @@ func (m *RpcDebuglogInfo) Reset() { *m = RpcDebuglogInfo{} } func (m *RpcDebuglogInfo) String() string { return proto.CompactTextString(m) } func (*RpcDebuglogInfo) ProtoMessage() {} func (*RpcDebuglogInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 37, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 26, 0} } func (m *RpcDebuglogInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -37417,7 +34851,7 @@ func (m *RpcDebugthreadInfo) Reset() { *m = RpcDebugthreadInfo{} } func (m *RpcDebugthreadInfo) String() string { return proto.CompactTextString(m) } func (*RpcDebugthreadInfo) ProtoMessage() {} func (*RpcDebugthreadInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 37, 1} + return fileDescriptor_8261c968b2e6f45c, []int{0, 26, 1} } func (m *RpcDebugthreadInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -37530,7 +34964,7 @@ func (m *RpcDebugSync) Reset() { *m = RpcDebugSync{} } func (m *RpcDebugSync) String() string { return proto.CompactTextString(m) } func (*RpcDebugSync) ProtoMessage() {} func (*RpcDebugSync) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 37, 2} + return fileDescriptor_8261c968b2e6f45c, []int{0, 26, 2} } func (m *RpcDebugSync) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -37569,7 +35003,7 @@ func (m *RpcDebugSyncRequest) Reset() { *m = RpcDebugSyncRequest{} } func (m *RpcDebugSyncRequest) String() string { return proto.CompactTextString(m) } func (*RpcDebugSyncRequest) ProtoMessage() {} func (*RpcDebugSyncRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 37, 2, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 26, 2, 0} } func (m *RpcDebugSyncRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -37634,7 +35068,7 @@ func (m *RpcDebugSyncResponse) Reset() { *m = RpcDebugSyncResponse{} } func (m *RpcDebugSyncResponse) String() string { return proto.CompactTextString(m) } func (*RpcDebugSyncResponse) ProtoMessage() {} func (*RpcDebugSyncResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 37, 2, 1} + return fileDescriptor_8261c968b2e6f45c, []int{0, 26, 2, 1} } func (m *RpcDebugSyncResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -37728,7 +35162,7 @@ func (m *RpcDebugSyncResponseError) Reset() { *m = RpcDebugSyncResponseE func (m *RpcDebugSyncResponseError) String() string { return proto.CompactTextString(m) } func (*RpcDebugSyncResponseError) ProtoMessage() {} func (*RpcDebugSyncResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 37, 2, 1, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 26, 2, 1, 0} } func (m *RpcDebugSyncResponseError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -37778,7 +35212,7 @@ func (m *RpcDebugThread) Reset() { *m = RpcDebugThread{} } func (m *RpcDebugThread) String() string { return proto.CompactTextString(m) } func (*RpcDebugThread) ProtoMessage() {} func (*RpcDebugThread) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 37, 3} + return fileDescriptor_8261c968b2e6f45c, []int{0, 26, 3} } func (m *RpcDebugThread) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -37817,7 +35251,7 @@ func (m *RpcDebugThreadRequest) Reset() { *m = RpcDebugThreadRequest{} } func (m *RpcDebugThreadRequest) String() string { return proto.CompactTextString(m) } func (*RpcDebugThreadRequest) ProtoMessage() {} func (*RpcDebugThreadRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 37, 3, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 26, 3, 0} } func (m *RpcDebugThreadRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -37876,7 +35310,7 @@ func (m *RpcDebugThreadResponse) Reset() { *m = RpcDebugThreadResponse{} func (m *RpcDebugThreadResponse) String() string { return proto.CompactTextString(m) } func (*RpcDebugThreadResponse) ProtoMessage() {} func (*RpcDebugThreadResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 37, 3, 1} + return fileDescriptor_8261c968b2e6f45c, []int{0, 26, 3, 1} } func (m *RpcDebugThreadResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -37928,7 +35362,7 @@ func (m *RpcDebugThreadResponseError) Reset() { *m = RpcDebugThreadRespo func (m *RpcDebugThreadResponseError) String() string { return proto.CompactTextString(m) } func (*RpcDebugThreadResponseError) ProtoMessage() {} func (*RpcDebugThreadResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 37, 3, 1, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 26, 3, 1, 0} } func (m *RpcDebugThreadResponseError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -37978,7 +35412,7 @@ func (m *RpcDebugTree) Reset() { *m = RpcDebugTree{} } func (m *RpcDebugTree) String() string { return proto.CompactTextString(m) } func (*RpcDebugTree) ProtoMessage() {} func (*RpcDebugTree) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 37, 4} + return fileDescriptor_8261c968b2e6f45c, []int{0, 26, 4} } func (m *RpcDebugTree) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -38008,16 +35442,17 @@ func (m *RpcDebugTree) XXX_DiscardUnknown() { var xxx_messageInfo_RpcDebugTree proto.InternalMessageInfo type RpcDebugTreeRequest struct { - BlockId string `protobuf:"bytes,1,opt,name=blockId,proto3" json:"blockId,omitempty"` + ObjectId string `protobuf:"bytes,1,opt,name=objectId,proto3" json:"objectId,omitempty"` Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` Unanonymized bool `protobuf:"varint,3,opt,name=unanonymized,proto3" json:"unanonymized,omitempty"` + GenerateSvg bool `protobuf:"varint,4,opt,name=generateSvg,proto3" json:"generateSvg,omitempty"` } func (m *RpcDebugTreeRequest) Reset() { *m = RpcDebugTreeRequest{} } func (m *RpcDebugTreeRequest) String() string { return proto.CompactTextString(m) } func (*RpcDebugTreeRequest) ProtoMessage() {} func (*RpcDebugTreeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 37, 4, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 26, 4, 0} } func (m *RpcDebugTreeRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -38046,9 +35481,9 @@ func (m *RpcDebugTreeRequest) XXX_DiscardUnknown() { var xxx_messageInfo_RpcDebugTreeRequest proto.InternalMessageInfo -func (m *RpcDebugTreeRequest) GetBlockId() string { +func (m *RpcDebugTreeRequest) GetObjectId() string { if m != nil { - return m.BlockId + return m.ObjectId } return "" } @@ -38067,6 +35502,13 @@ func (m *RpcDebugTreeRequest) GetUnanonymized() bool { return false } +func (m *RpcDebugTreeRequest) GetGenerateSvg() bool { + if m != nil { + return m.GenerateSvg + } + return false +} + type RpcDebugTreeResponse struct { Error *RpcDebugTreeResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` Filename string `protobuf:"bytes,2,opt,name=filename,proto3" json:"filename,omitempty"` @@ -38076,7 +35518,7 @@ func (m *RpcDebugTreeResponse) Reset() { *m = RpcDebugTreeResponse{} } func (m *RpcDebugTreeResponse) String() string { return proto.CompactTextString(m) } func (*RpcDebugTreeResponse) ProtoMessage() {} func (*RpcDebugTreeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 37, 4, 1} + return fileDescriptor_8261c968b2e6f45c, []int{0, 26, 4, 1} } func (m *RpcDebugTreeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -38128,7 +35570,7 @@ func (m *RpcDebugTreeResponseError) Reset() { *m = RpcDebugTreeResponseE func (m *RpcDebugTreeResponseError) String() string { return proto.CompactTextString(m) } func (*RpcDebugTreeResponseError) ProtoMessage() {} func (*RpcDebugTreeResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 37, 4, 1, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 26, 4, 1, 0} } func (m *RpcDebugTreeResponseError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -38171,6 +35613,1044 @@ func (m *RpcDebugTreeResponseError) GetDescription() string { return "" } +type RpcDebugExportLocalstore struct { +} + +func (m *RpcDebugExportLocalstore) Reset() { *m = RpcDebugExportLocalstore{} } +func (m *RpcDebugExportLocalstore) String() string { return proto.CompactTextString(m) } +func (*RpcDebugExportLocalstore) ProtoMessage() {} +func (*RpcDebugExportLocalstore) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 26, 5} +} +func (m *RpcDebugExportLocalstore) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcDebugExportLocalstore) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcDebugExportLocalstore.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcDebugExportLocalstore) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcDebugExportLocalstore.Merge(m, src) +} +func (m *RpcDebugExportLocalstore) XXX_Size() int { + return m.Size() +} +func (m *RpcDebugExportLocalstore) XXX_DiscardUnknown() { + xxx_messageInfo_RpcDebugExportLocalstore.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcDebugExportLocalstore proto.InternalMessageInfo + +type RpcDebugExportLocalstoreRequest struct { + // the path where export files will place + Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` + // ids of documents for export, when empty - will export all available docs + DocIds []string `protobuf:"bytes,2,rep,name=docIds,proto3" json:"docIds,omitempty"` +} + +func (m *RpcDebugExportLocalstoreRequest) Reset() { *m = RpcDebugExportLocalstoreRequest{} } +func (m *RpcDebugExportLocalstoreRequest) String() string { return proto.CompactTextString(m) } +func (*RpcDebugExportLocalstoreRequest) ProtoMessage() {} +func (*RpcDebugExportLocalstoreRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 26, 5, 0} +} +func (m *RpcDebugExportLocalstoreRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcDebugExportLocalstoreRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcDebugExportLocalstoreRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcDebugExportLocalstoreRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcDebugExportLocalstoreRequest.Merge(m, src) +} +func (m *RpcDebugExportLocalstoreRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcDebugExportLocalstoreRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcDebugExportLocalstoreRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcDebugExportLocalstoreRequest proto.InternalMessageInfo + +func (m *RpcDebugExportLocalstoreRequest) GetPath() string { + if m != nil { + return m.Path + } + return "" +} + +func (m *RpcDebugExportLocalstoreRequest) GetDocIds() []string { + if m != nil { + return m.DocIds + } + return nil +} + +type RpcDebugExportLocalstoreResponse struct { + Error *RpcDebugExportLocalstoreResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` + Event *ResponseEvent `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"` +} + +func (m *RpcDebugExportLocalstoreResponse) Reset() { *m = RpcDebugExportLocalstoreResponse{} } +func (m *RpcDebugExportLocalstoreResponse) String() string { return proto.CompactTextString(m) } +func (*RpcDebugExportLocalstoreResponse) ProtoMessage() {} +func (*RpcDebugExportLocalstoreResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 26, 5, 1} +} +func (m *RpcDebugExportLocalstoreResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcDebugExportLocalstoreResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcDebugExportLocalstoreResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcDebugExportLocalstoreResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcDebugExportLocalstoreResponse.Merge(m, src) +} +func (m *RpcDebugExportLocalstoreResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcDebugExportLocalstoreResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcDebugExportLocalstoreResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcDebugExportLocalstoreResponse proto.InternalMessageInfo + +func (m *RpcDebugExportLocalstoreResponse) GetError() *RpcDebugExportLocalstoreResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcDebugExportLocalstoreResponse) GetPath() string { + if m != nil { + return m.Path + } + return "" +} + +func (m *RpcDebugExportLocalstoreResponse) GetEvent() *ResponseEvent { + if m != nil { + return m.Event + } + return nil +} + +type RpcDebugExportLocalstoreResponseError struct { + Code RpcDebugExportLocalstoreResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcDebugExportLocalstoreResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcDebugExportLocalstoreResponseError) Reset() { *m = RpcDebugExportLocalstoreResponseError{} } +func (m *RpcDebugExportLocalstoreResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcDebugExportLocalstoreResponseError) ProtoMessage() {} +func (*RpcDebugExportLocalstoreResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 26, 5, 1, 0} +} +func (m *RpcDebugExportLocalstoreResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcDebugExportLocalstoreResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcDebugExportLocalstoreResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcDebugExportLocalstoreResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcDebugExportLocalstoreResponseError.Merge(m, src) +} +func (m *RpcDebugExportLocalstoreResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcDebugExportLocalstoreResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcDebugExportLocalstoreResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcDebugExportLocalstoreResponseError proto.InternalMessageInfo + +func (m *RpcDebugExportLocalstoreResponseError) GetCode() RpcDebugExportLocalstoreResponseErrorCode { + if m != nil { + return m.Code + } + return RpcDebugExportLocalstoreResponseError_NULL +} + +func (m *RpcDebugExportLocalstoreResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcDebugPing struct { +} + +func (m *RpcDebugPing) Reset() { *m = RpcDebugPing{} } +func (m *RpcDebugPing) String() string { return proto.CompactTextString(m) } +func (*RpcDebugPing) ProtoMessage() {} +func (*RpcDebugPing) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 26, 6} +} +func (m *RpcDebugPing) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcDebugPing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcDebugPing.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcDebugPing) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcDebugPing.Merge(m, src) +} +func (m *RpcDebugPing) XXX_Size() int { + return m.Size() +} +func (m *RpcDebugPing) XXX_DiscardUnknown() { + xxx_messageInfo_RpcDebugPing.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcDebugPing proto.InternalMessageInfo + +type RpcDebugPingRequest struct { + Index int32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` + NumberOfEventsToSend int32 `protobuf:"varint,2,opt,name=numberOfEventsToSend,proto3" json:"numberOfEventsToSend,omitempty"` +} + +func (m *RpcDebugPingRequest) Reset() { *m = RpcDebugPingRequest{} } +func (m *RpcDebugPingRequest) String() string { return proto.CompactTextString(m) } +func (*RpcDebugPingRequest) ProtoMessage() {} +func (*RpcDebugPingRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 26, 6, 0} +} +func (m *RpcDebugPingRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcDebugPingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcDebugPingRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcDebugPingRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcDebugPingRequest.Merge(m, src) +} +func (m *RpcDebugPingRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcDebugPingRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcDebugPingRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcDebugPingRequest proto.InternalMessageInfo + +func (m *RpcDebugPingRequest) GetIndex() int32 { + if m != nil { + return m.Index + } + return 0 +} + +func (m *RpcDebugPingRequest) GetNumberOfEventsToSend() int32 { + if m != nil { + return m.NumberOfEventsToSend + } + return 0 +} + +type RpcDebugPingResponse struct { + Error *RpcDebugPingResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` + Index int32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` +} + +func (m *RpcDebugPingResponse) Reset() { *m = RpcDebugPingResponse{} } +func (m *RpcDebugPingResponse) String() string { return proto.CompactTextString(m) } +func (*RpcDebugPingResponse) ProtoMessage() {} +func (*RpcDebugPingResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 26, 6, 1} +} +func (m *RpcDebugPingResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcDebugPingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcDebugPingResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcDebugPingResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcDebugPingResponse.Merge(m, src) +} +func (m *RpcDebugPingResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcDebugPingResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcDebugPingResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcDebugPingResponse proto.InternalMessageInfo + +func (m *RpcDebugPingResponse) GetError() *RpcDebugPingResponseError { + if m != nil { + return m.Error + } + return nil +} + +func (m *RpcDebugPingResponse) GetIndex() int32 { + if m != nil { + return m.Index + } + return 0 +} + +type RpcDebugPingResponseError struct { + Code RpcDebugPingResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcDebugPingResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcDebugPingResponseError) Reset() { *m = RpcDebugPingResponseError{} } +func (m *RpcDebugPingResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcDebugPingResponseError) ProtoMessage() {} +func (*RpcDebugPingResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 26, 6, 1, 0} +} +func (m *RpcDebugPingResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcDebugPingResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcDebugPingResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcDebugPingResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcDebugPingResponseError.Merge(m, src) +} +func (m *RpcDebugPingResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcDebugPingResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcDebugPingResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcDebugPingResponseError proto.InternalMessageInfo + +func (m *RpcDebugPingResponseError) GetCode() RpcDebugPingResponseErrorCode { + if m != nil { + return m.Code + } + return RpcDebugPingResponseError_NULL +} + +func (m *RpcDebugPingResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcMetrics struct { +} + +func (m *RpcMetrics) Reset() { *m = RpcMetrics{} } +func (m *RpcMetrics) String() string { return proto.CompactTextString(m) } +func (*RpcMetrics) ProtoMessage() {} +func (*RpcMetrics) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 27} +} +func (m *RpcMetrics) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcMetrics.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcMetrics) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcMetrics.Merge(m, src) +} +func (m *RpcMetrics) XXX_Size() int { + return m.Size() +} +func (m *RpcMetrics) XXX_DiscardUnknown() { + xxx_messageInfo_RpcMetrics.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcMetrics proto.InternalMessageInfo + +type RpcMetricsSetParameters struct { +} + +func (m *RpcMetricsSetParameters) Reset() { *m = RpcMetricsSetParameters{} } +func (m *RpcMetricsSetParameters) String() string { return proto.CompactTextString(m) } +func (*RpcMetricsSetParameters) ProtoMessage() {} +func (*RpcMetricsSetParameters) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 27, 0} +} +func (m *RpcMetricsSetParameters) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcMetricsSetParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcMetricsSetParameters.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcMetricsSetParameters) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcMetricsSetParameters.Merge(m, src) +} +func (m *RpcMetricsSetParameters) XXX_Size() int { + return m.Size() +} +func (m *RpcMetricsSetParameters) XXX_DiscardUnknown() { + xxx_messageInfo_RpcMetricsSetParameters.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcMetricsSetParameters proto.InternalMessageInfo + +type RpcMetricsSetParametersRequest struct { + Platform string `protobuf:"bytes,1,opt,name=platform,proto3" json:"platform,omitempty"` +} + +func (m *RpcMetricsSetParametersRequest) Reset() { *m = RpcMetricsSetParametersRequest{} } +func (m *RpcMetricsSetParametersRequest) String() string { return proto.CompactTextString(m) } +func (*RpcMetricsSetParametersRequest) ProtoMessage() {} +func (*RpcMetricsSetParametersRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 27, 0, 0} +} +func (m *RpcMetricsSetParametersRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcMetricsSetParametersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcMetricsSetParametersRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcMetricsSetParametersRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcMetricsSetParametersRequest.Merge(m, src) +} +func (m *RpcMetricsSetParametersRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcMetricsSetParametersRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcMetricsSetParametersRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcMetricsSetParametersRequest proto.InternalMessageInfo + +func (m *RpcMetricsSetParametersRequest) GetPlatform() string { + if m != nil { + return m.Platform + } + return "" +} + +type RpcMetricsSetParametersResponse struct { + Error *RpcMetricsSetParametersResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +} + +func (m *RpcMetricsSetParametersResponse) Reset() { *m = RpcMetricsSetParametersResponse{} } +func (m *RpcMetricsSetParametersResponse) String() string { return proto.CompactTextString(m) } +func (*RpcMetricsSetParametersResponse) ProtoMessage() {} +func (*RpcMetricsSetParametersResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 27, 0, 1} +} +func (m *RpcMetricsSetParametersResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcMetricsSetParametersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcMetricsSetParametersResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcMetricsSetParametersResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcMetricsSetParametersResponse.Merge(m, src) +} +func (m *RpcMetricsSetParametersResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcMetricsSetParametersResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcMetricsSetParametersResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcMetricsSetParametersResponse proto.InternalMessageInfo + +func (m *RpcMetricsSetParametersResponse) GetError() *RpcMetricsSetParametersResponseError { + if m != nil { + return m.Error + } + return nil +} + +type RpcMetricsSetParametersResponseError struct { + Code RpcMetricsSetParametersResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcMetricsSetParametersResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcMetricsSetParametersResponseError) Reset() { *m = RpcMetricsSetParametersResponseError{} } +func (m *RpcMetricsSetParametersResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcMetricsSetParametersResponseError) ProtoMessage() {} +func (*RpcMetricsSetParametersResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 27, 0, 1, 0} +} +func (m *RpcMetricsSetParametersResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcMetricsSetParametersResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcMetricsSetParametersResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcMetricsSetParametersResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcMetricsSetParametersResponseError.Merge(m, src) +} +func (m *RpcMetricsSetParametersResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcMetricsSetParametersResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcMetricsSetParametersResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcMetricsSetParametersResponseError proto.InternalMessageInfo + +func (m *RpcMetricsSetParametersResponseError) GetCode() RpcMetricsSetParametersResponseErrorCode { + if m != nil { + return m.Code + } + return RpcMetricsSetParametersResponseError_NULL +} + +func (m *RpcMetricsSetParametersResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcLog struct { +} + +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_8261c968b2e6f45c, []int{0, 28} +} +func (m *RpcLog) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcLog.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcLog) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcLog.Merge(m, src) +} +func (m *RpcLog) XXX_Size() int { + return m.Size() +} +func (m *RpcLog) XXX_DiscardUnknown() { + xxx_messageInfo_RpcLog.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcLog proto.InternalMessageInfo + +type RpcLogSend struct { +} + +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_8261c968b2e6f45c, []int{0, 28, 0} +} +func (m *RpcLogSend) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcLogSend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcLogSend.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcLogSend) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcLogSend.Merge(m, src) +} +func (m *RpcLogSend) XXX_Size() int { + return m.Size() +} +func (m *RpcLogSend) XXX_DiscardUnknown() { + xxx_messageInfo_RpcLogSend.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcLogSend proto.InternalMessageInfo + +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 *RpcLogSendRequest) Reset() { *m = RpcLogSendRequest{} } +func (m *RpcLogSendRequest) String() string { return proto.CompactTextString(m) } +func (*RpcLogSendRequest) ProtoMessage() {} +func (*RpcLogSendRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 28, 0, 0} +} +func (m *RpcLogSendRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcLogSendRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcLogSendRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcLogSendRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcLogSendRequest.Merge(m, src) +} +func (m *RpcLogSendRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcLogSendRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcLogSendRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcLogSendRequest proto.InternalMessageInfo + +func (m *RpcLogSendRequest) GetMessage() string { + if m != nil { + return m.Message + } + return "" +} + +func (m *RpcLogSendRequest) GetLevel() RpcLogSendRequestLevel { + if m != nil { + return m.Level + } + return RpcLogSendRequest_DEBUG +} + +type RpcLogSendResponse struct { + Error *RpcLogSendResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +} + +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_8261c968b2e6f45c, []int{0, 28, 0, 1} +} +func (m *RpcLogSendResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcLogSendResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcLogSendResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcLogSendResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcLogSendResponse.Merge(m, src) +} +func (m *RpcLogSendResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcLogSendResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcLogSendResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcLogSendResponse proto.InternalMessageInfo + +func (m *RpcLogSendResponse) GetError() *RpcLogSendResponseError { + if m != nil { + return m.Error + } + return nil +} + +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 *RpcLogSendResponseError) Reset() { *m = RpcLogSendResponseError{} } +func (m *RpcLogSendResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcLogSendResponseError) ProtoMessage() {} +func (*RpcLogSendResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 28, 0, 1, 0} +} +func (m *RpcLogSendResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcLogSendResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcLogSendResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcLogSendResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcLogSendResponseError.Merge(m, src) +} +func (m *RpcLogSendResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcLogSendResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcLogSendResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcLogSendResponseError proto.InternalMessageInfo + +func (m *RpcLogSendResponseError) GetCode() RpcLogSendResponseErrorCode { + if m != nil { + return m.Code + } + return RpcLogSendResponseError_NULL +} + +func (m *RpcLogSendResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + +type RpcProcess struct { +} + +func (m *RpcProcess) Reset() { *m = RpcProcess{} } +func (m *RpcProcess) String() string { return proto.CompactTextString(m) } +func (*RpcProcess) ProtoMessage() {} +func (*RpcProcess) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 29} +} +func (m *RpcProcess) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcProcess) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcProcess.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcProcess) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcProcess.Merge(m, src) +} +func (m *RpcProcess) XXX_Size() int { + return m.Size() +} +func (m *RpcProcess) XXX_DiscardUnknown() { + xxx_messageInfo_RpcProcess.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcProcess proto.InternalMessageInfo + +type RpcProcessCancel struct { +} + +func (m *RpcProcessCancel) Reset() { *m = RpcProcessCancel{} } +func (m *RpcProcessCancel) String() string { return proto.CompactTextString(m) } +func (*RpcProcessCancel) ProtoMessage() {} +func (*RpcProcessCancel) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 29, 0} +} +func (m *RpcProcessCancel) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcProcessCancel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcProcessCancel.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcProcessCancel) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcProcessCancel.Merge(m, src) +} +func (m *RpcProcessCancel) XXX_Size() int { + return m.Size() +} +func (m *RpcProcessCancel) XXX_DiscardUnknown() { + xxx_messageInfo_RpcProcessCancel.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcProcessCancel proto.InternalMessageInfo + +type RpcProcessCancelRequest struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (m *RpcProcessCancelRequest) Reset() { *m = RpcProcessCancelRequest{} } +func (m *RpcProcessCancelRequest) String() string { return proto.CompactTextString(m) } +func (*RpcProcessCancelRequest) ProtoMessage() {} +func (*RpcProcessCancelRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 29, 0, 0} +} +func (m *RpcProcessCancelRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcProcessCancelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcProcessCancelRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcProcessCancelRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcProcessCancelRequest.Merge(m, src) +} +func (m *RpcProcessCancelRequest) XXX_Size() int { + return m.Size() +} +func (m *RpcProcessCancelRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RpcProcessCancelRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcProcessCancelRequest proto.InternalMessageInfo + +func (m *RpcProcessCancelRequest) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +type RpcProcessCancelResponse struct { + Error *RpcProcessCancelResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +} + +func (m *RpcProcessCancelResponse) Reset() { *m = RpcProcessCancelResponse{} } +func (m *RpcProcessCancelResponse) String() string { return proto.CompactTextString(m) } +func (*RpcProcessCancelResponse) ProtoMessage() {} +func (*RpcProcessCancelResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 29, 0, 1} +} +func (m *RpcProcessCancelResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcProcessCancelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcProcessCancelResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcProcessCancelResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcProcessCancelResponse.Merge(m, src) +} +func (m *RpcProcessCancelResponse) XXX_Size() int { + return m.Size() +} +func (m *RpcProcessCancelResponse) XXX_DiscardUnknown() { + xxx_messageInfo_RpcProcessCancelResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcProcessCancelResponse proto.InternalMessageInfo + +func (m *RpcProcessCancelResponse) GetError() *RpcProcessCancelResponseError { + if m != nil { + return m.Error + } + return nil +} + +type RpcProcessCancelResponseError struct { + Code RpcProcessCancelResponseErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=anytype.RpcProcessCancelResponseErrorCode" json:"code,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (m *RpcProcessCancelResponseError) Reset() { *m = RpcProcessCancelResponseError{} } +func (m *RpcProcessCancelResponseError) String() string { return proto.CompactTextString(m) } +func (*RpcProcessCancelResponseError) ProtoMessage() {} +func (*RpcProcessCancelResponseError) Descriptor() ([]byte, []int) { + return fileDescriptor_8261c968b2e6f45c, []int{0, 29, 0, 1, 0} +} +func (m *RpcProcessCancelResponseError) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RpcProcessCancelResponseError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RpcProcessCancelResponseError.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *RpcProcessCancelResponseError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RpcProcessCancelResponseError.Merge(m, src) +} +func (m *RpcProcessCancelResponseError) XXX_Size() int { + return m.Size() +} +func (m *RpcProcessCancelResponseError) XXX_DiscardUnknown() { + xxx_messageInfo_RpcProcessCancelResponseError.DiscardUnknown(m) +} + +var xxx_messageInfo_RpcProcessCancelResponseError proto.InternalMessageInfo + +func (m *RpcProcessCancelResponseError) GetCode() RpcProcessCancelResponseErrorCode { + if m != nil { + return m.Code + } + return RpcProcessCancelResponseError_NULL +} + +func (m *RpcProcessCancelResponseError) GetDescription() string { + if m != nil { + return m.Description + } + return "" +} + type RpcGenericErrorResponse struct { Error *RpcGenericErrorResponseError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` } @@ -38179,7 +36659,7 @@ func (m *RpcGenericErrorResponse) Reset() { *m = RpcGenericErrorResponse func (m *RpcGenericErrorResponse) String() string { return proto.CompactTextString(m) } func (*RpcGenericErrorResponse) ProtoMessage() {} func (*RpcGenericErrorResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 38} + return fileDescriptor_8261c968b2e6f45c, []int{0, 30} } func (m *RpcGenericErrorResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -38224,7 +36704,7 @@ func (m *RpcGenericErrorResponseError) Reset() { *m = RpcGenericErrorRes func (m *RpcGenericErrorResponseError) String() string { return proto.CompactTextString(m) } func (*RpcGenericErrorResponseError) ProtoMessage() {} func (*RpcGenericErrorResponseError) Descriptor() ([]byte, []int) { - return fileDescriptor_8261c968b2e6f45c, []int{0, 38, 0} + return fileDescriptor_8261c968b2e6f45c, []int{0, 30, 0} } func (m *RpcGenericErrorResponseError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -38304,90 +36784,10 @@ func (m *Empty) XXX_DiscardUnknown() { var xxx_messageInfo_Empty proto.InternalMessageInfo func init() { - proto.RegisterEnum("anytype.RpcMetricsSetParametersResponseErrorCode", RpcMetricsSetParametersResponseErrorCode_name, RpcMetricsSetParametersResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcExternalDropFilesResponseErrorCode", RpcExternalDropFilesResponseErrorCode_name, RpcExternalDropFilesResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcExternalDropContentResponseErrorCode", RpcExternalDropContentResponseErrorCode_name, RpcExternalDropContentResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockListConvertChildrenToPagesResponseErrorCode", RpcBlockListConvertChildrenToPagesResponseErrorCode_name, RpcBlockListConvertChildrenToPagesResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockListMoveResponseErrorCode", RpcBlockListMoveResponseErrorCode_name, RpcBlockListMoveResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockListMoveToNewPageResponseErrorCode", RpcBlockListMoveToNewPageResponseErrorCode_name, RpcBlockListMoveToNewPageResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockListDuplicateResponseErrorCode", RpcBlockListDuplicateResponseErrorCode_name, RpcBlockListDuplicateResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockListSetTextStyleResponseErrorCode", RpcBlockListSetTextStyleResponseErrorCode_name, RpcBlockListSetTextStyleResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockListSetTextColorResponseErrorCode", RpcBlockListSetTextColorResponseErrorCode_name, RpcBlockListSetTextColorResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockListSetTextMarkResponseErrorCode", RpcBlockListSetTextMarkResponseErrorCode_name, RpcBlockListSetTextMarkResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockListSetBackgroundColorResponseErrorCode", RpcBlockListSetBackgroundColorResponseErrorCode_name, RpcBlockListSetBackgroundColorResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockListSetAlignResponseErrorCode", RpcBlockListSetAlignResponseErrorCode_name, RpcBlockListSetAlignResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockListSetFieldsResponseErrorCode", RpcBlockListSetFieldsResponseErrorCode_name, RpcBlockListSetFieldsResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockListSetDivStyleResponseErrorCode", RpcBlockListSetDivStyleResponseErrorCode_name, RpcBlockListSetDivStyleResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockListSetFileStyleResponseErrorCode", RpcBlockListSetFileStyleResponseErrorCode_name, RpcBlockListSetFileStyleResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockListTurnIntoResponseErrorCode", RpcBlockListTurnIntoResponseErrorCode_name, RpcBlockListTurnIntoResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockReplaceResponseErrorCode", RpcBlockReplaceResponseErrorCode_name, RpcBlockReplaceResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockUpdateContentResponseErrorCode", RpcBlockUpdateContentResponseErrorCode_name, RpcBlockUpdateContentResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockSplitRequestMode", RpcBlockSplitRequestMode_name, RpcBlockSplitRequestMode_value) - proto.RegisterEnum("anytype.RpcBlockSplitResponseErrorCode", RpcBlockSplitResponseErrorCode_name, RpcBlockSplitResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockMergeResponseErrorCode", RpcBlockMergeResponseErrorCode_name, RpcBlockMergeResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockCopyResponseErrorCode", RpcBlockCopyResponseErrorCode_name, RpcBlockCopyResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockPasteResponseErrorCode", RpcBlockPasteResponseErrorCode_name, RpcBlockPasteResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockCutResponseErrorCode", RpcBlockCutResponseErrorCode_name, RpcBlockCutResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockImportMarkdownResponseErrorCode", RpcBlockImportMarkdownResponseErrorCode_name, RpcBlockImportMarkdownResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockExportResponseErrorCode", RpcBlockExportResponseErrorCode_name, RpcBlockExportResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockUploadResponseErrorCode", RpcBlockUploadResponseErrorCode_name, RpcBlockUploadResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockDownloadResponseErrorCode", RpcBlockDownloadResponseErrorCode_name, RpcBlockDownloadResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockSetFieldsResponseErrorCode", RpcBlockSetFieldsResponseErrorCode_name, RpcBlockSetFieldsResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockSetDetailsResponseErrorCode", RpcBlockSetDetailsResponseErrorCode_name, RpcBlockSetDetailsResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockSetRestrictionsResponseErrorCode", RpcBlockSetRestrictionsResponseErrorCode_name, RpcBlockSetRestrictionsResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockSetPageIsArchivedResponseErrorCode", RpcBlockSetPageIsArchivedResponseErrorCode_name, RpcBlockSetPageIsArchivedResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockSetLatexTextResponseErrorCode", RpcBlockSetLatexTextResponseErrorCode_name, RpcBlockSetLatexTextResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockSetTextTextResponseErrorCode", RpcBlockSetTextTextResponseErrorCode_name, RpcBlockSetTextTextResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockSetTextColorResponseErrorCode", RpcBlockSetTextColorResponseErrorCode_name, RpcBlockSetTextColorResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockSetTextStyleResponseErrorCode", RpcBlockSetTextStyleResponseErrorCode_name, RpcBlockSetTextStyleResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockSetTextCheckedResponseErrorCode", RpcBlockSetTextCheckedResponseErrorCode_name, RpcBlockSetTextCheckedResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockSetTextIconResponseErrorCode", RpcBlockSetTextIconResponseErrorCode_name, RpcBlockSetTextIconResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockSetFileNameResponseErrorCode", RpcBlockSetFileNameResponseErrorCode_name, RpcBlockSetFileNameResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockSetImageNameResponseErrorCode", RpcBlockSetImageNameResponseErrorCode_name, RpcBlockSetImageNameResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockSetImageWidthResponseErrorCode", RpcBlockSetImageWidthResponseErrorCode_name, RpcBlockSetImageWidthResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockSetVideoNameResponseErrorCode", RpcBlockSetVideoNameResponseErrorCode_name, RpcBlockSetVideoNameResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockSetVideoWidthResponseErrorCode", RpcBlockSetVideoWidthResponseErrorCode_name, RpcBlockSetVideoWidthResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockSetLinkTargetBlockIdResponseErrorCode", RpcBlockSetLinkTargetBlockIdResponseErrorCode_name, RpcBlockSetLinkTargetBlockIdResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockRelationSetKeyResponseErrorCode", RpcBlockRelationSetKeyResponseErrorCode_name, RpcBlockRelationSetKeyResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockRelationAddResponseErrorCode", RpcBlockRelationAddResponseErrorCode_name, RpcBlockRelationAddResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockObjectTypeSetResponseErrorCode", RpcBlockObjectTypeSetResponseErrorCode_name, RpcBlockObjectTypeSetResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockBookmarkFetchResponseErrorCode", RpcBlockBookmarkFetchResponseErrorCode_name, RpcBlockBookmarkFetchResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockBookmarkCreateAndFetchResponseErrorCode", RpcBlockBookmarkCreateAndFetchResponseErrorCode_name, RpcBlockBookmarkCreateAndFetchResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockFileCreateAndUploadResponseErrorCode", RpcBlockFileCreateAndUploadResponseErrorCode_name, RpcBlockFileCreateAndUploadResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockDataviewViewCreateResponseErrorCode", RpcBlockDataviewViewCreateResponseErrorCode_name, RpcBlockDataviewViewCreateResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockDataviewViewUpdateResponseErrorCode", RpcBlockDataviewViewUpdateResponseErrorCode_name, RpcBlockDataviewViewUpdateResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockDataviewViewDeleteResponseErrorCode", RpcBlockDataviewViewDeleteResponseErrorCode_name, RpcBlockDataviewViewDeleteResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockDataviewViewSetPositionResponseErrorCode", RpcBlockDataviewViewSetPositionResponseErrorCode_name, RpcBlockDataviewViewSetPositionResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockDataviewViewSetActiveResponseErrorCode", RpcBlockDataviewViewSetActiveResponseErrorCode_name, RpcBlockDataviewViewSetActiveResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockDataviewRecordUpdateResponseErrorCode", RpcBlockDataviewRecordUpdateResponseErrorCode_name, RpcBlockDataviewRecordUpdateResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockDataviewRecordDeleteResponseErrorCode", RpcBlockDataviewRecordDeleteResponseErrorCode_name, RpcBlockDataviewRecordDeleteResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockDataviewRecordCreateResponseErrorCode", RpcBlockDataviewRecordCreateResponseErrorCode_name, RpcBlockDataviewRecordCreateResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockDataviewRelationAddResponseErrorCode", RpcBlockDataviewRelationAddResponseErrorCode_name, RpcBlockDataviewRelationAddResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockDataviewRelationUpdateResponseErrorCode", RpcBlockDataviewRelationUpdateResponseErrorCode_name, RpcBlockDataviewRelationUpdateResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockDataviewRelationDeleteResponseErrorCode", RpcBlockDataviewRelationDeleteResponseErrorCode_name, RpcBlockDataviewRelationDeleteResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockDataviewRecordRelationOptionAddResponseErrorCode", RpcBlockDataviewRecordRelationOptionAddResponseErrorCode_name, RpcBlockDataviewRecordRelationOptionAddResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockDataviewRecordRelationOptionUpdateResponseErrorCode", RpcBlockDataviewRecordRelationOptionUpdateResponseErrorCode_name, RpcBlockDataviewRecordRelationOptionUpdateResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockDataviewRecordRelationOptionDeleteResponseErrorCode", RpcBlockDataviewRecordRelationOptionDeleteResponseErrorCode_name, RpcBlockDataviewRecordRelationOptionDeleteResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockDataviewRelationListAvailableResponseErrorCode", RpcBlockDataviewRelationListAvailableResponseErrorCode_name, RpcBlockDataviewRelationListAvailableResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockDataviewSetSourceResponseErrorCode", RpcBlockDataviewSetSourceResponseErrorCode_name, RpcBlockDataviewSetSourceResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockGetMarksResponseErrorCode", RpcBlockGetMarksResponseErrorCode_name, RpcBlockGetMarksResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockUndoResponseErrorCode", RpcBlockUndoResponseErrorCode_name, RpcBlockUndoResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockRedoResponseErrorCode", RpcBlockRedoResponseErrorCode_name, RpcBlockRedoResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockOpenResponseErrorCode", RpcBlockOpenResponseErrorCode_name, RpcBlockOpenResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockShowResponseErrorCode", RpcBlockShowResponseErrorCode_name, RpcBlockShowResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockGetPublicWebURLResponseErrorCode", RpcBlockGetPublicWebURLResponseErrorCode_name, RpcBlockGetPublicWebURLResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockOpenBreadcrumbsResponseErrorCode", RpcBlockOpenBreadcrumbsResponseErrorCode_name, RpcBlockOpenBreadcrumbsResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockSetBreadcrumbsResponseErrorCode", RpcBlockSetBreadcrumbsResponseErrorCode_name, RpcBlockSetBreadcrumbsResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockCreateResponseErrorCode", RpcBlockCreateResponseErrorCode_name, RpcBlockCreateResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockCreatePageResponseErrorCode", RpcBlockCreatePageResponseErrorCode_name, RpcBlockCreatePageResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockCreateSetResponseErrorCode", RpcBlockCreateSetResponseErrorCode_name, RpcBlockCreateSetResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockUnlinkResponseErrorCode", RpcBlockUnlinkResponseErrorCode_name, RpcBlockUnlinkResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcBlockCloseResponseErrorCode", RpcBlockCloseResponseErrorCode_name, RpcBlockCloseResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcWorkspaceGetCurrentResponseErrorCode", RpcWorkspaceGetCurrentResponseErrorCode_name, RpcWorkspaceGetCurrentResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcWorkspaceGetAllResponseErrorCode", RpcWorkspaceGetAllResponseErrorCode_name, RpcWorkspaceGetAllResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcWorkspaceCreateResponseErrorCode", RpcWorkspaceCreateResponseErrorCode_name, RpcWorkspaceCreateResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcWorkspaceSetIsHighlightedResponseErrorCode", RpcWorkspaceSetIsHighlightedResponseErrorCode_name, RpcWorkspaceSetIsHighlightedResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcWorkspaceSelectResponseErrorCode", RpcWorkspaceSelectResponseErrorCode_name, RpcWorkspaceSelectResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcAppGetVersionResponseErrorCode", RpcAppGetVersionResponseErrorCode_name, RpcAppGetVersionResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcAppSetDeviceStateRequestDeviceState", RpcAppSetDeviceStateRequestDeviceState_name, RpcAppSetDeviceStateRequestDeviceState_value) + proto.RegisterEnum("anytype.RpcAppSetDeviceStateResponseErrorCode", RpcAppSetDeviceStateResponseErrorCode_name, RpcAppSetDeviceStateResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcAppShutdownResponseErrorCode", RpcAppShutdownResponseErrorCode_name, RpcAppShutdownResponseErrorCode_value) proto.RegisterEnum("anytype.RpcWalletCreateResponseErrorCode", RpcWalletCreateResponseErrorCode_name, RpcWalletCreateResponseErrorCode_value) proto.RegisterEnum("anytype.RpcWalletRecoverResponseErrorCode", RpcWalletRecoverResponseErrorCode_name, RpcWalletRecoverResponseErrorCode_value) proto.RegisterEnum("anytype.RpcWalletConvertResponseErrorCode", RpcWalletConvertResponseErrorCode_name, RpcWalletConvertResponseErrorCode_value) @@ -38396,435 +36796,162 @@ func init() { proto.RegisterEnum("anytype.RpcAccountDeleteResponseErrorCode", RpcAccountDeleteResponseErrorCode_name, RpcAccountDeleteResponseErrorCode_value) proto.RegisterEnum("anytype.RpcAccountSelectResponseErrorCode", RpcAccountSelectResponseErrorCode_name, RpcAccountSelectResponseErrorCode_value) proto.RegisterEnum("anytype.RpcAccountStopResponseErrorCode", RpcAccountStopResponseErrorCode_name, RpcAccountStopResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcLogSendRequestLevel", RpcLogSendRequestLevel_name, RpcLogSendRequestLevel_value) - proto.RegisterEnum("anytype.RpcLogSendResponseErrorCode", RpcLogSendResponseErrorCode_name, RpcLogSendResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcVersionGetResponseErrorCode", RpcVersionGetResponseErrorCode_name, RpcVersionGetResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcFileOffloadResponseErrorCode", RpcFileOffloadResponseErrorCode_name, RpcFileOffloadResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcFileListOffloadResponseErrorCode", RpcFileListOffloadResponseErrorCode_name, RpcFileListOffloadResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcShutdownResponseErrorCode", RpcShutdownResponseErrorCode_name, RpcShutdownResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcDeviceStateRequestDeviceState", RpcDeviceStateRequestDeviceState_name, RpcDeviceStateRequestDeviceState_value) - proto.RegisterEnum("anytype.RpcDeviceStateResponseErrorCode", RpcDeviceStateResponseErrorCode_name, RpcDeviceStateResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcConfigGetResponseErrorCode", RpcConfigGetResponseErrorCode_name, RpcConfigGetResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcPingResponseErrorCode", RpcPingResponseErrorCode_name, RpcPingResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcProcessCancelResponseErrorCode", RpcProcessCancelResponseErrorCode_name, RpcProcessCancelResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcLinkPreviewResponseErrorCode", RpcLinkPreviewResponseErrorCode_name, RpcLinkPreviewResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcUploadFileResponseErrorCode", RpcUploadFileResponseErrorCode_name, RpcUploadFileResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcDownloadFileResponseErrorCode", RpcDownloadFileResponseErrorCode_name, RpcDownloadFileResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcNavigationContext", RpcNavigationContext_name, RpcNavigationContext_value) - proto.RegisterEnum("anytype.RpcNavigationListObjectsResponseErrorCode", RpcNavigationListObjectsResponseErrorCode_name, RpcNavigationListObjectsResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcNavigationGetObjectInfoWithLinksResponseErrorCode", RpcNavigationGetObjectInfoWithLinksResponseErrorCode_name, RpcNavigationGetObjectInfoWithLinksResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcHistoryVersionsResponseErrorCode", RpcHistoryVersionsResponseErrorCode_name, RpcHistoryVersionsResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcHistoryShowResponseErrorCode", RpcHistoryShowResponseErrorCode_name, RpcHistoryShowResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcHistorySetVersionResponseErrorCode", RpcHistorySetVersionResponseErrorCode_name, RpcHistorySetVersionResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcPageCreateResponseErrorCode", RpcPageCreateResponseErrorCode_name, RpcPageCreateResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcSetCreateResponseErrorCode", RpcSetCreateResponseErrorCode_name, RpcSetCreateResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcWorkspaceGetCurrentResponseErrorCode", RpcWorkspaceGetCurrentResponseErrorCode_name, RpcWorkspaceGetCurrentResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcWorkspaceGetAllResponseErrorCode", RpcWorkspaceGetAllResponseErrorCode_name, RpcWorkspaceGetAllResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcWorkspaceCreateResponseErrorCode", RpcWorkspaceCreateResponseErrorCode_name, RpcWorkspaceCreateResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcWorkspaceSetIsHighlightedResponseErrorCode", RpcWorkspaceSetIsHighlightedResponseErrorCode_name, RpcWorkspaceSetIsHighlightedResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcWorkspaceSelectResponseErrorCode", RpcWorkspaceSelectResponseErrorCode_name, RpcWorkspaceSelectResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcWorkspaceExportResponseErrorCode", RpcWorkspaceExportResponseErrorCode_name, RpcWorkspaceExportResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcObjectOpenResponseErrorCode", RpcObjectOpenResponseErrorCode_name, RpcObjectOpenResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcObjectCloseResponseErrorCode", RpcObjectCloseResponseErrorCode_name, RpcObjectCloseResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcObjectShowResponseErrorCode", RpcObjectShowResponseErrorCode_name, RpcObjectShowResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcObjectCreateResponseErrorCode", RpcObjectCreateResponseErrorCode_name, RpcObjectCreateResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcObjectCreateSetResponseErrorCode", RpcObjectCreateSetResponseErrorCode_name, RpcObjectCreateSetResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcObjectDuplicateResponseErrorCode", RpcObjectDuplicateResponseErrorCode_name, RpcObjectDuplicateResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcObjectOpenBreadcrumbsResponseErrorCode", RpcObjectOpenBreadcrumbsResponseErrorCode_name, RpcObjectOpenBreadcrumbsResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcObjectSetBreadcrumbsResponseErrorCode", RpcObjectSetBreadcrumbsResponseErrorCode_name, RpcObjectSetBreadcrumbsResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcObjectImportMarkdownResponseErrorCode", RpcObjectImportMarkdownResponseErrorCode_name, RpcObjectImportMarkdownResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcObjectShareByLinkResponseErrorCode", RpcObjectShareByLinkResponseErrorCode_name, RpcObjectShareByLinkResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcObjectAddWithObjectIdResponseErrorCode", RpcObjectAddWithObjectIdResponseErrorCode_name, RpcObjectAddWithObjectIdResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcObjectSearchResponseErrorCode", RpcObjectSearchResponseErrorCode_name, RpcObjectSearchResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcObjectGraphEdgeType", RpcObjectGraphEdgeType_name, RpcObjectGraphEdgeType_value) + proto.RegisterEnum("anytype.RpcObjectGraphResponseErrorCode", RpcObjectGraphResponseErrorCode_name, RpcObjectGraphResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcObjectSearchSubscribeResponseErrorCode", RpcObjectSearchSubscribeResponseErrorCode_name, RpcObjectSearchSubscribeResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcObjectSubscribeIdsResponseErrorCode", RpcObjectSubscribeIdsResponseErrorCode_name, RpcObjectSubscribeIdsResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcObjectSearchUnsubscribeResponseErrorCode", RpcObjectSearchUnsubscribeResponseErrorCode_name, RpcObjectSearchUnsubscribeResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcObjectSetLayoutResponseErrorCode", RpcObjectSetLayoutResponseErrorCode_name, RpcObjectSetLayoutResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcObjectSetIsFavoriteResponseErrorCode", RpcObjectSetIsFavoriteResponseErrorCode_name, RpcObjectSetIsFavoriteResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcObjectSetIsArchivedResponseErrorCode", RpcObjectSetIsArchivedResponseErrorCode_name, RpcObjectSetIsArchivedResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcObjectSetObjectTypeResponseErrorCode", RpcObjectSetObjectTypeResponseErrorCode_name, RpcObjectSetObjectTypeResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcObjectSetDetailsResponseErrorCode", RpcObjectSetDetailsResponseErrorCode_name, RpcObjectSetDetailsResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcObjectToSetResponseErrorCode", RpcObjectToSetResponseErrorCode_name, RpcObjectToSetResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcObjectUndoResponseErrorCode", RpcObjectUndoResponseErrorCode_name, RpcObjectUndoResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcObjectRedoResponseErrorCode", RpcObjectRedoResponseErrorCode_name, RpcObjectRedoResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcObjectListDuplicateResponseErrorCode", RpcObjectListDuplicateResponseErrorCode_name, RpcObjectListDuplicateResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcObjectListDeleteResponseErrorCode", RpcObjectListDeleteResponseErrorCode_name, RpcObjectListDeleteResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcObjectListSetIsArchivedResponseErrorCode", RpcObjectListSetIsArchivedResponseErrorCode_name, RpcObjectListSetIsArchivedResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcObjectListSetIsFavoriteResponseErrorCode", RpcObjectListSetIsFavoriteResponseErrorCode_name, RpcObjectListSetIsFavoriteResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcObjectApplyTemplateResponseErrorCode", RpcObjectApplyTemplateResponseErrorCode_name, RpcObjectApplyTemplateResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcObjectListExportFormat", RpcObjectListExportFormat_name, RpcObjectListExportFormat_value) + proto.RegisterEnum("anytype.RpcObjectListExportResponseErrorCode", RpcObjectListExportResponseErrorCode_name, RpcObjectListExportResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcObjectRelationAddResponseErrorCode", RpcObjectRelationAddResponseErrorCode_name, RpcObjectRelationAddResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcObjectRelationUpdateResponseErrorCode", RpcObjectRelationUpdateResponseErrorCode_name, RpcObjectRelationUpdateResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcObjectRelationDeleteResponseErrorCode", RpcObjectRelationDeleteResponseErrorCode_name, RpcObjectRelationDeleteResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcObjectRelationListAvailableResponseErrorCode", RpcObjectRelationListAvailableResponseErrorCode_name, RpcObjectRelationListAvailableResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcObjectRelationAddFeaturedResponseErrorCode", RpcObjectRelationAddFeaturedResponseErrorCode_name, RpcObjectRelationAddFeaturedResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcObjectRelationRemoveFeaturedResponseErrorCode", RpcObjectRelationRemoveFeaturedResponseErrorCode_name, RpcObjectRelationRemoveFeaturedResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcObjectRelationOptionAddResponseErrorCode", RpcObjectRelationOptionAddResponseErrorCode_name, RpcObjectRelationOptionAddResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcObjectRelationOptionUpdateResponseErrorCode", RpcObjectRelationOptionUpdateResponseErrorCode_name, RpcObjectRelationOptionUpdateResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcObjectRelationOptionDeleteResponseErrorCode", RpcObjectRelationOptionDeleteResponseErrorCode_name, RpcObjectRelationOptionDeleteResponseErrorCode_value) proto.RegisterEnum("anytype.RpcObjectTypeListResponseErrorCode", RpcObjectTypeListResponseErrorCode_name, RpcObjectTypeListResponseErrorCode_value) proto.RegisterEnum("anytype.RpcObjectTypeCreateResponseErrorCode", RpcObjectTypeCreateResponseErrorCode_name, RpcObjectTypeCreateResponseErrorCode_value) proto.RegisterEnum("anytype.RpcObjectTypeRelationAddResponseErrorCode", RpcObjectTypeRelationAddResponseErrorCode_name, RpcObjectTypeRelationAddResponseErrorCode_value) proto.RegisterEnum("anytype.RpcObjectTypeRelationRemoveResponseErrorCode", RpcObjectTypeRelationRemoveResponseErrorCode_name, RpcObjectTypeRelationRemoveResponseErrorCode_value) proto.RegisterEnum("anytype.RpcObjectTypeRelationUpdateResponseErrorCode", RpcObjectTypeRelationUpdateResponseErrorCode_name, RpcObjectTypeRelationUpdateResponseErrorCode_value) proto.RegisterEnum("anytype.RpcObjectTypeRelationListResponseErrorCode", RpcObjectTypeRelationListResponseErrorCode_name, RpcObjectTypeRelationListResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcObjectShareByLinkResponseErrorCode", RpcObjectShareByLinkResponseErrorCode_name, RpcObjectShareByLinkResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcObjectAddWithObjectIdResponseErrorCode", RpcObjectAddWithObjectIdResponseErrorCode_name, RpcObjectAddWithObjectIdResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcObjectRelationAddResponseErrorCode", RpcObjectRelationAddResponseErrorCode_name, RpcObjectRelationAddResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcObjectRelationUpdateResponseErrorCode", RpcObjectRelationUpdateResponseErrorCode_name, RpcObjectRelationUpdateResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcObjectRelationDeleteResponseErrorCode", RpcObjectRelationDeleteResponseErrorCode_name, RpcObjectRelationDeleteResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcObjectRelationOptionAddResponseErrorCode", RpcObjectRelationOptionAddResponseErrorCode_name, RpcObjectRelationOptionAddResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcObjectRelationOptionUpdateResponseErrorCode", RpcObjectRelationOptionUpdateResponseErrorCode_name, RpcObjectRelationOptionUpdateResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcObjectRelationOptionDeleteResponseErrorCode", RpcObjectRelationOptionDeleteResponseErrorCode_name, RpcObjectRelationOptionDeleteResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcObjectRelationListAvailableResponseErrorCode", RpcObjectRelationListAvailableResponseErrorCode_name, RpcObjectRelationListAvailableResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcObjectSearchResponseErrorCode", RpcObjectSearchResponseErrorCode_name, RpcObjectSearchResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcObjectGraphEdgeType", RpcObjectGraphEdgeType_name, RpcObjectGraphEdgeType_value) - proto.RegisterEnum("anytype.RpcObjectGraphResponseErrorCode", RpcObjectGraphResponseErrorCode_name, RpcObjectGraphResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcObjectSearchSubscribeResponseErrorCode", RpcObjectSearchSubscribeResponseErrorCode_name, RpcObjectSearchSubscribeResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcObjectIdsSubscribeResponseErrorCode", RpcObjectIdsSubscribeResponseErrorCode_name, RpcObjectIdsSubscribeResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcObjectSearchUnsubscribeResponseErrorCode", RpcObjectSearchUnsubscribeResponseErrorCode_name, RpcObjectSearchUnsubscribeResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcObjectSetLayoutResponseErrorCode", RpcObjectSetLayoutResponseErrorCode_name, RpcObjectSetLayoutResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcObjectSetIsFavoriteResponseErrorCode", RpcObjectSetIsFavoriteResponseErrorCode_name, RpcObjectSetIsFavoriteResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcObjectSetIsArchivedResponseErrorCode", RpcObjectSetIsArchivedResponseErrorCode_name, RpcObjectSetIsArchivedResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcObjectFeaturedRelationAddResponseErrorCode", RpcObjectFeaturedRelationAddResponseErrorCode_name, RpcObjectFeaturedRelationAddResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcObjectFeaturedRelationRemoveResponseErrorCode", RpcObjectFeaturedRelationRemoveResponseErrorCode_name, RpcObjectFeaturedRelationRemoveResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcObjectToSetResponseErrorCode", RpcObjectToSetResponseErrorCode_name, RpcObjectToSetResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcObjectListDuplicateResponseErrorCode", RpcObjectListDuplicateResponseErrorCode_name, RpcObjectListDuplicateResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcObjectListDeleteResponseErrorCode", RpcObjectListDeleteResponseErrorCode_name, RpcObjectListDeleteResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcObjectListSetIsArchivedResponseErrorCode", RpcObjectListSetIsArchivedResponseErrorCode_name, RpcObjectListSetIsArchivedResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcObjectListSetIsFavoriteResponseErrorCode", RpcObjectListSetIsFavoriteResponseErrorCode_name, RpcObjectListSetIsFavoriteResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcExportFormat", RpcExportFormat_name, RpcExportFormat_value) - proto.RegisterEnum("anytype.RpcExportResponseErrorCode", RpcExportResponseErrorCode_name, RpcExportResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcExportWorkspaceResponseErrorCode", RpcExportWorkspaceResponseErrorCode_name, RpcExportWorkspaceResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcExportTemplatesResponseErrorCode", RpcExportTemplatesResponseErrorCode_name, RpcExportTemplatesResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcExportLocalstoreResponseErrorCode", RpcExportLocalstoreResponseErrorCode_name, RpcExportLocalstoreResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcMakeTemplateResponseErrorCode", RpcMakeTemplateResponseErrorCode_name, RpcMakeTemplateResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcMakeTemplateByObjectTypeResponseErrorCode", RpcMakeTemplateByObjectTypeResponseErrorCode_name, RpcMakeTemplateByObjectTypeResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcCloneTemplateResponseErrorCode", RpcCloneTemplateResponseErrorCode_name, RpcCloneTemplateResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcObjectDuplicateResponseErrorCode", RpcObjectDuplicateResponseErrorCode_name, RpcObjectDuplicateResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcHistoryGetVersionsResponseErrorCode", RpcHistoryGetVersionsResponseErrorCode_name, RpcHistoryGetVersionsResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcHistoryShowVersionResponseErrorCode", RpcHistoryShowVersionResponseErrorCode_name, RpcHistoryShowVersionResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcHistorySetVersionResponseErrorCode", RpcHistorySetVersionResponseErrorCode_name, RpcHistorySetVersionResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcFileOffloadResponseErrorCode", RpcFileOffloadResponseErrorCode_name, RpcFileOffloadResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcFileListOffloadResponseErrorCode", RpcFileListOffloadResponseErrorCode_name, RpcFileListOffloadResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcFileUploadResponseErrorCode", RpcFileUploadResponseErrorCode_name, RpcFileUploadResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcFileDownloadResponseErrorCode", RpcFileDownloadResponseErrorCode_name, RpcFileDownloadResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcFileDropResponseErrorCode", RpcFileDropResponseErrorCode_name, RpcFileDropResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcNavigationContext", RpcNavigationContext_name, RpcNavigationContext_value) + proto.RegisterEnum("anytype.RpcNavigationListObjectsResponseErrorCode", RpcNavigationListObjectsResponseErrorCode_name, RpcNavigationListObjectsResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcNavigationGetObjectInfoWithLinksResponseErrorCode", RpcNavigationGetObjectInfoWithLinksResponseErrorCode_name, RpcNavigationGetObjectInfoWithLinksResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcTemplateCreateFromObjectResponseErrorCode", RpcTemplateCreateFromObjectResponseErrorCode_name, RpcTemplateCreateFromObjectResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcTemplateCreateFromObjectTypeResponseErrorCode", RpcTemplateCreateFromObjectTypeResponseErrorCode_name, RpcTemplateCreateFromObjectTypeResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcTemplateCloneResponseErrorCode", RpcTemplateCloneResponseErrorCode_name, RpcTemplateCloneResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcTemplateExportAllResponseErrorCode", RpcTemplateExportAllResponseErrorCode_name, RpcTemplateExportAllResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcLinkPreviewResponseErrorCode", RpcLinkPreviewResponseErrorCode_name, RpcLinkPreviewResponseErrorCode_value) proto.RegisterEnum("anytype.RpcUnsplashSearchResponseErrorCode", RpcUnsplashSearchResponseErrorCode_name, RpcUnsplashSearchResponseErrorCode_value) proto.RegisterEnum("anytype.RpcUnsplashDownloadResponseErrorCode", RpcUnsplashDownloadResponseErrorCode_name, RpcUnsplashDownloadResponseErrorCode_value) - proto.RegisterEnum("anytype.RpcApplyTemplateResponseErrorCode", RpcApplyTemplateResponseErrorCode_name, RpcApplyTemplateResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockReplaceResponseErrorCode", RpcBlockReplaceResponseErrorCode_name, RpcBlockReplaceResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockSplitRequestMode", RpcBlockSplitRequestMode_name, RpcBlockSplitRequestMode_value) + proto.RegisterEnum("anytype.RpcBlockSplitResponseErrorCode", RpcBlockSplitResponseErrorCode_name, RpcBlockSplitResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockMergeResponseErrorCode", RpcBlockMergeResponseErrorCode_name, RpcBlockMergeResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockCopyResponseErrorCode", RpcBlockCopyResponseErrorCode_name, RpcBlockCopyResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockPasteResponseErrorCode", RpcBlockPasteResponseErrorCode_name, RpcBlockPasteResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockCutResponseErrorCode", RpcBlockCutResponseErrorCode_name, RpcBlockCutResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockUploadResponseErrorCode", RpcBlockUploadResponseErrorCode_name, RpcBlockUploadResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockDownloadResponseErrorCode", RpcBlockDownloadResponseErrorCode_name, RpcBlockDownloadResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockCreateResponseErrorCode", RpcBlockCreateResponseErrorCode_name, RpcBlockCreateResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockListDeleteResponseErrorCode", RpcBlockListDeleteResponseErrorCode_name, RpcBlockListDeleteResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockSetFieldsResponseErrorCode", RpcBlockSetFieldsResponseErrorCode_name, RpcBlockSetFieldsResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockListSetAlignResponseErrorCode", RpcBlockListSetAlignResponseErrorCode_name, RpcBlockListSetAlignResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockListSetFieldsResponseErrorCode", RpcBlockListSetFieldsResponseErrorCode_name, RpcBlockListSetFieldsResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockListDuplicateResponseErrorCode", RpcBlockListDuplicateResponseErrorCode_name, RpcBlockListDuplicateResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockListConvertToObjectsResponseErrorCode", RpcBlockListConvertToObjectsResponseErrorCode_name, RpcBlockListConvertToObjectsResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockListMoveToExistingObjectResponseErrorCode", RpcBlockListMoveToExistingObjectResponseErrorCode_name, RpcBlockListMoveToExistingObjectResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockListMoveToNewObjectResponseErrorCode", RpcBlockListMoveToNewObjectResponseErrorCode_name, RpcBlockListMoveToNewObjectResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockListTurnIntoResponseErrorCode", RpcBlockListTurnIntoResponseErrorCode_name, RpcBlockListTurnIntoResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockListSetBackgroundColorResponseErrorCode", RpcBlockListSetBackgroundColorResponseErrorCode_name, RpcBlockListSetBackgroundColorResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockExportResponseErrorCode", RpcBlockExportResponseErrorCode_name, RpcBlockExportResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockLatexSetTextResponseErrorCode", RpcBlockLatexSetTextResponseErrorCode_name, RpcBlockLatexSetTextResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockTextSetTextResponseErrorCode", RpcBlockTextSetTextResponseErrorCode_name, RpcBlockTextSetTextResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockTextSetColorResponseErrorCode", RpcBlockTextSetColorResponseErrorCode_name, RpcBlockTextSetColorResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockTextSetMarksGetResponseErrorCode", RpcBlockTextSetMarksGetResponseErrorCode_name, RpcBlockTextSetMarksGetResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockTextSetStyleResponseErrorCode", RpcBlockTextSetStyleResponseErrorCode_name, RpcBlockTextSetStyleResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockTextSetCheckedResponseErrorCode", RpcBlockTextSetCheckedResponseErrorCode_name, RpcBlockTextSetCheckedResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockTextSetIconResponseErrorCode", RpcBlockTextSetIconResponseErrorCode_name, RpcBlockTextSetIconResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockTextListSetStyleResponseErrorCode", RpcBlockTextListSetStyleResponseErrorCode_name, RpcBlockTextListSetStyleResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockTextListSetColorResponseErrorCode", RpcBlockTextListSetColorResponseErrorCode_name, RpcBlockTextListSetColorResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockTextListSetMarkResponseErrorCode", RpcBlockTextListSetMarkResponseErrorCode_name, RpcBlockTextListSetMarkResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockFileSetNameResponseErrorCode", RpcBlockFileSetNameResponseErrorCode_name, RpcBlockFileSetNameResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockFileCreateAndUploadResponseErrorCode", RpcBlockFileCreateAndUploadResponseErrorCode_name, RpcBlockFileCreateAndUploadResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockFileListSetStyleResponseErrorCode", RpcBlockFileListSetStyleResponseErrorCode_name, RpcBlockFileListSetStyleResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockImageSetNameResponseErrorCode", RpcBlockImageSetNameResponseErrorCode_name, RpcBlockImageSetNameResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockImageSetWidthResponseErrorCode", RpcBlockImageSetWidthResponseErrorCode_name, RpcBlockImageSetWidthResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockVideoSetNameResponseErrorCode", RpcBlockVideoSetNameResponseErrorCode_name, RpcBlockVideoSetNameResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockVideoSetWidthResponseErrorCode", RpcBlockVideoSetWidthResponseErrorCode_name, RpcBlockVideoSetWidthResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockLinkCreateWithObjectResponseErrorCode", RpcBlockLinkCreateWithObjectResponseErrorCode_name, RpcBlockLinkCreateWithObjectResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockLinkListSetAppearanceResponseErrorCode", RpcBlockLinkListSetAppearanceResponseErrorCode_name, RpcBlockLinkListSetAppearanceResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockRelationSetKeyResponseErrorCode", RpcBlockRelationSetKeyResponseErrorCode_name, RpcBlockRelationSetKeyResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockRelationAddResponseErrorCode", RpcBlockRelationAddResponseErrorCode_name, RpcBlockRelationAddResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockBookmarkFetchResponseErrorCode", RpcBlockBookmarkFetchResponseErrorCode_name, RpcBlockBookmarkFetchResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockBookmarkCreateAndFetchResponseErrorCode", RpcBlockBookmarkCreateAndFetchResponseErrorCode_name, RpcBlockBookmarkCreateAndFetchResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockDivListSetStyleResponseErrorCode", RpcBlockDivListSetStyleResponseErrorCode_name, RpcBlockDivListSetStyleResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockDataviewViewCreateResponseErrorCode", RpcBlockDataviewViewCreateResponseErrorCode_name, RpcBlockDataviewViewCreateResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockDataviewViewUpdateResponseErrorCode", RpcBlockDataviewViewUpdateResponseErrorCode_name, RpcBlockDataviewViewUpdateResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockDataviewViewDeleteResponseErrorCode", RpcBlockDataviewViewDeleteResponseErrorCode_name, RpcBlockDataviewViewDeleteResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockDataviewViewSetPositionResponseErrorCode", RpcBlockDataviewViewSetPositionResponseErrorCode_name, RpcBlockDataviewViewSetPositionResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockDataviewViewSetActiveResponseErrorCode", RpcBlockDataviewViewSetActiveResponseErrorCode_name, RpcBlockDataviewViewSetActiveResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockDataviewRelationAddResponseErrorCode", RpcBlockDataviewRelationAddResponseErrorCode_name, RpcBlockDataviewRelationAddResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockDataviewRelationUpdateResponseErrorCode", RpcBlockDataviewRelationUpdateResponseErrorCode_name, RpcBlockDataviewRelationUpdateResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockDataviewRelationDeleteResponseErrorCode", RpcBlockDataviewRelationDeleteResponseErrorCode_name, RpcBlockDataviewRelationDeleteResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockDataviewRelationListAvailableResponseErrorCode", RpcBlockDataviewRelationListAvailableResponseErrorCode_name, RpcBlockDataviewRelationListAvailableResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockDataviewSetSourceResponseErrorCode", RpcBlockDataviewSetSourceResponseErrorCode_name, RpcBlockDataviewSetSourceResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockDataviewRecordUpdateResponseErrorCode", RpcBlockDataviewRecordUpdateResponseErrorCode_name, RpcBlockDataviewRecordUpdateResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockDataviewRecordDeleteResponseErrorCode", RpcBlockDataviewRecordDeleteResponseErrorCode_name, RpcBlockDataviewRecordDeleteResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockDataviewRecordCreateResponseErrorCode", RpcBlockDataviewRecordCreateResponseErrorCode_name, RpcBlockDataviewRecordCreateResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockDataviewRecordRelationOptionAddResponseErrorCode", RpcBlockDataviewRecordRelationOptionAddResponseErrorCode_name, RpcBlockDataviewRecordRelationOptionAddResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockDataviewRecordRelationOptionUpdateResponseErrorCode", RpcBlockDataviewRecordRelationOptionUpdateResponseErrorCode_name, RpcBlockDataviewRecordRelationOptionUpdateResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcBlockDataviewRecordRelationOptionDeleteResponseErrorCode", RpcBlockDataviewRecordRelationOptionDeleteResponseErrorCode_name, RpcBlockDataviewRecordRelationOptionDeleteResponseErrorCode_value) proto.RegisterEnum("anytype.RpcDebugSyncResponseErrorCode", RpcDebugSyncResponseErrorCode_name, RpcDebugSyncResponseErrorCode_value) proto.RegisterEnum("anytype.RpcDebugThreadResponseErrorCode", RpcDebugThreadResponseErrorCode_name, RpcDebugThreadResponseErrorCode_value) proto.RegisterEnum("anytype.RpcDebugTreeResponseErrorCode", RpcDebugTreeResponseErrorCode_name, RpcDebugTreeResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcDebugExportLocalstoreResponseErrorCode", RpcDebugExportLocalstoreResponseErrorCode_name, RpcDebugExportLocalstoreResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcDebugPingResponseErrorCode", RpcDebugPingResponseErrorCode_name, RpcDebugPingResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcMetricsSetParametersResponseErrorCode", RpcMetricsSetParametersResponseErrorCode_name, RpcMetricsSetParametersResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcLogSendRequestLevel", RpcLogSendRequestLevel_name, RpcLogSendRequestLevel_value) + proto.RegisterEnum("anytype.RpcLogSendResponseErrorCode", RpcLogSendResponseErrorCode_name, RpcLogSendResponseErrorCode_value) + proto.RegisterEnum("anytype.RpcProcessCancelResponseErrorCode", RpcProcessCancelResponseErrorCode_name, RpcProcessCancelResponseErrorCode_value) proto.RegisterEnum("anytype.RpcGenericErrorResponseErrorCode", RpcGenericErrorResponseErrorCode_name, RpcGenericErrorResponseErrorCode_value) proto.RegisterType((*Rpc)(nil), "anytype.Rpc") - proto.RegisterType((*RpcMetrics)(nil), "anytype.Rpc.Metrics") - proto.RegisterType((*RpcMetricsSetParameters)(nil), "anytype.Rpc.Metrics.SetParameters") - proto.RegisterType((*RpcMetricsSetParametersRequest)(nil), "anytype.Rpc.Metrics.SetParameters.Request") - proto.RegisterType((*RpcMetricsSetParametersResponse)(nil), "anytype.Rpc.Metrics.SetParameters.Response") - proto.RegisterType((*RpcMetricsSetParametersResponseError)(nil), "anytype.Rpc.Metrics.SetParameters.Response.Error") - proto.RegisterType((*RpcExternalDrop)(nil), "anytype.Rpc.ExternalDrop") - proto.RegisterType((*RpcExternalDropFiles)(nil), "anytype.Rpc.ExternalDrop.Files") - proto.RegisterType((*RpcExternalDropFilesRequest)(nil), "anytype.Rpc.ExternalDrop.Files.Request") - proto.RegisterType((*RpcExternalDropFilesResponse)(nil), "anytype.Rpc.ExternalDrop.Files.Response") - proto.RegisterType((*RpcExternalDropFilesResponseError)(nil), "anytype.Rpc.ExternalDrop.Files.Response.Error") - proto.RegisterType((*RpcExternalDropContent)(nil), "anytype.Rpc.ExternalDrop.Content") - proto.RegisterType((*RpcExternalDropContentRequest)(nil), "anytype.Rpc.ExternalDrop.Content.Request") - proto.RegisterType((*RpcExternalDropContentResponse)(nil), "anytype.Rpc.ExternalDrop.Content.Response") - proto.RegisterType((*RpcExternalDropContentResponseError)(nil), "anytype.Rpc.ExternalDrop.Content.Response.Error") - proto.RegisterType((*RpcBlockList)(nil), "anytype.Rpc.BlockList") - proto.RegisterType((*RpcBlockListConvertChildrenToPages)(nil), "anytype.Rpc.BlockList.ConvertChildrenToPages") - proto.RegisterType((*RpcBlockListConvertChildrenToPagesRequest)(nil), "anytype.Rpc.BlockList.ConvertChildrenToPages.Request") - proto.RegisterType((*RpcBlockListConvertChildrenToPagesResponse)(nil), "anytype.Rpc.BlockList.ConvertChildrenToPages.Response") - proto.RegisterType((*RpcBlockListConvertChildrenToPagesResponseError)(nil), "anytype.Rpc.BlockList.ConvertChildrenToPages.Response.Error") - proto.RegisterType((*RpcBlockListMove)(nil), "anytype.Rpc.BlockList.Move") - proto.RegisterType((*RpcBlockListMoveRequest)(nil), "anytype.Rpc.BlockList.Move.Request") - proto.RegisterType((*RpcBlockListMoveResponse)(nil), "anytype.Rpc.BlockList.Move.Response") - proto.RegisterType((*RpcBlockListMoveResponseError)(nil), "anytype.Rpc.BlockList.Move.Response.Error") - proto.RegisterType((*RpcBlockListMoveToNewPage)(nil), "anytype.Rpc.BlockList.MoveToNewPage") - proto.RegisterType((*RpcBlockListMoveToNewPageRequest)(nil), "anytype.Rpc.BlockList.MoveToNewPage.Request") - proto.RegisterType((*RpcBlockListMoveToNewPageResponse)(nil), "anytype.Rpc.BlockList.MoveToNewPage.Response") - proto.RegisterType((*RpcBlockListMoveToNewPageResponseError)(nil), "anytype.Rpc.BlockList.MoveToNewPage.Response.Error") - proto.RegisterType((*RpcBlockListDuplicate)(nil), "anytype.Rpc.BlockList.Duplicate") - proto.RegisterType((*RpcBlockListDuplicateRequest)(nil), "anytype.Rpc.BlockList.Duplicate.Request") - proto.RegisterType((*RpcBlockListDuplicateResponse)(nil), "anytype.Rpc.BlockList.Duplicate.Response") - proto.RegisterType((*RpcBlockListDuplicateResponseError)(nil), "anytype.Rpc.BlockList.Duplicate.Response.Error") - proto.RegisterType((*RpcBlockListSet)(nil), "anytype.Rpc.BlockList.Set") - proto.RegisterType((*RpcBlockListSetText)(nil), "anytype.Rpc.BlockList.Set.Text") - proto.RegisterType((*RpcBlockListSetTextStyle)(nil), "anytype.Rpc.BlockList.Set.Text.Style") - proto.RegisterType((*RpcBlockListSetTextStyleRequest)(nil), "anytype.Rpc.BlockList.Set.Text.Style.Request") - proto.RegisterType((*RpcBlockListSetTextStyleResponse)(nil), "anytype.Rpc.BlockList.Set.Text.Style.Response") - proto.RegisterType((*RpcBlockListSetTextStyleResponseError)(nil), "anytype.Rpc.BlockList.Set.Text.Style.Response.Error") - proto.RegisterType((*RpcBlockListSetTextColor)(nil), "anytype.Rpc.BlockList.Set.Text.Color") - proto.RegisterType((*RpcBlockListSetTextColorRequest)(nil), "anytype.Rpc.BlockList.Set.Text.Color.Request") - proto.RegisterType((*RpcBlockListSetTextColorResponse)(nil), "anytype.Rpc.BlockList.Set.Text.Color.Response") - proto.RegisterType((*RpcBlockListSetTextColorResponseError)(nil), "anytype.Rpc.BlockList.Set.Text.Color.Response.Error") - proto.RegisterType((*RpcBlockListSetTextMark)(nil), "anytype.Rpc.BlockList.Set.Text.Mark") - proto.RegisterType((*RpcBlockListSetTextMarkRequest)(nil), "anytype.Rpc.BlockList.Set.Text.Mark.Request") - proto.RegisterType((*RpcBlockListSetTextMarkResponse)(nil), "anytype.Rpc.BlockList.Set.Text.Mark.Response") - proto.RegisterType((*RpcBlockListSetTextMarkResponseError)(nil), "anytype.Rpc.BlockList.Set.Text.Mark.Response.Error") - proto.RegisterType((*RpcBlockListSetBackgroundColor)(nil), "anytype.Rpc.BlockList.Set.BackgroundColor") - proto.RegisterType((*RpcBlockListSetBackgroundColorRequest)(nil), "anytype.Rpc.BlockList.Set.BackgroundColor.Request") - proto.RegisterType((*RpcBlockListSetBackgroundColorResponse)(nil), "anytype.Rpc.BlockList.Set.BackgroundColor.Response") - proto.RegisterType((*RpcBlockListSetBackgroundColorResponseError)(nil), "anytype.Rpc.BlockList.Set.BackgroundColor.Response.Error") - proto.RegisterType((*RpcBlockListSetAlign)(nil), "anytype.Rpc.BlockList.Set.Align") - proto.RegisterType((*RpcBlockListSetAlignRequest)(nil), "anytype.Rpc.BlockList.Set.Align.Request") - proto.RegisterType((*RpcBlockListSetAlignResponse)(nil), "anytype.Rpc.BlockList.Set.Align.Response") - proto.RegisterType((*RpcBlockListSetAlignResponseError)(nil), "anytype.Rpc.BlockList.Set.Align.Response.Error") - proto.RegisterType((*RpcBlockListSetFields)(nil), "anytype.Rpc.BlockList.Set.Fields") - proto.RegisterType((*RpcBlockListSetFieldsRequest)(nil), "anytype.Rpc.BlockList.Set.Fields.Request") - proto.RegisterType((*RpcBlockListSetFieldsRequestBlockField)(nil), "anytype.Rpc.BlockList.Set.Fields.Request.BlockField") - proto.RegisterType((*RpcBlockListSetFieldsResponse)(nil), "anytype.Rpc.BlockList.Set.Fields.Response") - proto.RegisterType((*RpcBlockListSetFieldsResponseError)(nil), "anytype.Rpc.BlockList.Set.Fields.Response.Error") - proto.RegisterType((*RpcBlockListSetDiv)(nil), "anytype.Rpc.BlockList.Set.Div") - proto.RegisterType((*RpcBlockListSetDivStyle)(nil), "anytype.Rpc.BlockList.Set.Div.Style") - proto.RegisterType((*RpcBlockListSetDivStyleRequest)(nil), "anytype.Rpc.BlockList.Set.Div.Style.Request") - proto.RegisterType((*RpcBlockListSetDivStyleResponse)(nil), "anytype.Rpc.BlockList.Set.Div.Style.Response") - proto.RegisterType((*RpcBlockListSetDivStyleResponseError)(nil), "anytype.Rpc.BlockList.Set.Div.Style.Response.Error") - proto.RegisterType((*RpcBlockListSetFile)(nil), "anytype.Rpc.BlockList.Set.File") - proto.RegisterType((*RpcBlockListSetFileStyle)(nil), "anytype.Rpc.BlockList.Set.File.Style") - proto.RegisterType((*RpcBlockListSetFileStyleRequest)(nil), "anytype.Rpc.BlockList.Set.File.Style.Request") - proto.RegisterType((*RpcBlockListSetFileStyleResponse)(nil), "anytype.Rpc.BlockList.Set.File.Style.Response") - proto.RegisterType((*RpcBlockListSetFileStyleResponseError)(nil), "anytype.Rpc.BlockList.Set.File.Style.Response.Error") - proto.RegisterType((*RpcBlockListTurnInto)(nil), "anytype.Rpc.BlockList.TurnInto") - proto.RegisterType((*RpcBlockListTurnIntoRequest)(nil), "anytype.Rpc.BlockList.TurnInto.Request") - proto.RegisterType((*RpcBlockListTurnIntoResponse)(nil), "anytype.Rpc.BlockList.TurnInto.Response") - proto.RegisterType((*RpcBlockListTurnIntoResponseError)(nil), "anytype.Rpc.BlockList.TurnInto.Response.Error") - proto.RegisterType((*RpcBlock)(nil), "anytype.Rpc.Block") - proto.RegisterType((*RpcBlockReplace)(nil), "anytype.Rpc.Block.Replace") - proto.RegisterType((*RpcBlockReplaceRequest)(nil), "anytype.Rpc.Block.Replace.Request") - proto.RegisterType((*RpcBlockReplaceResponse)(nil), "anytype.Rpc.Block.Replace.Response") - proto.RegisterType((*RpcBlockReplaceResponseError)(nil), "anytype.Rpc.Block.Replace.Response.Error") - proto.RegisterType((*RpcBlockUpdateContent)(nil), "anytype.Rpc.Block.UpdateContent") - proto.RegisterType((*RpcBlockUpdateContentRequest)(nil), "anytype.Rpc.Block.UpdateContent.Request") - proto.RegisterType((*RpcBlockUpdateContentResponse)(nil), "anytype.Rpc.Block.UpdateContent.Response") - proto.RegisterType((*RpcBlockUpdateContentResponseError)(nil), "anytype.Rpc.Block.UpdateContent.Response.Error") - proto.RegisterType((*RpcBlockSplit)(nil), "anytype.Rpc.Block.Split") - proto.RegisterType((*RpcBlockSplitRequest)(nil), "anytype.Rpc.Block.Split.Request") - proto.RegisterType((*RpcBlockSplitResponse)(nil), "anytype.Rpc.Block.Split.Response") - proto.RegisterType((*RpcBlockSplitResponseError)(nil), "anytype.Rpc.Block.Split.Response.Error") - proto.RegisterType((*RpcBlockMerge)(nil), "anytype.Rpc.Block.Merge") - proto.RegisterType((*RpcBlockMergeRequest)(nil), "anytype.Rpc.Block.Merge.Request") - proto.RegisterType((*RpcBlockMergeResponse)(nil), "anytype.Rpc.Block.Merge.Response") - proto.RegisterType((*RpcBlockMergeResponseError)(nil), "anytype.Rpc.Block.Merge.Response.Error") - proto.RegisterType((*RpcBlockCopy)(nil), "anytype.Rpc.Block.Copy") - proto.RegisterType((*RpcBlockCopyRequest)(nil), "anytype.Rpc.Block.Copy.Request") - proto.RegisterType((*RpcBlockCopyResponse)(nil), "anytype.Rpc.Block.Copy.Response") - proto.RegisterType((*RpcBlockCopyResponseError)(nil), "anytype.Rpc.Block.Copy.Response.Error") - proto.RegisterType((*RpcBlockPaste)(nil), "anytype.Rpc.Block.Paste") - proto.RegisterType((*RpcBlockPasteRequest)(nil), "anytype.Rpc.Block.Paste.Request") - proto.RegisterType((*RpcBlockPasteRequestFile)(nil), "anytype.Rpc.Block.Paste.Request.File") - proto.RegisterType((*RpcBlockPasteResponse)(nil), "anytype.Rpc.Block.Paste.Response") - proto.RegisterType((*RpcBlockPasteResponseError)(nil), "anytype.Rpc.Block.Paste.Response.Error") - proto.RegisterType((*RpcBlockCut)(nil), "anytype.Rpc.Block.Cut") - proto.RegisterType((*RpcBlockCutRequest)(nil), "anytype.Rpc.Block.Cut.Request") - proto.RegisterType((*RpcBlockCutResponse)(nil), "anytype.Rpc.Block.Cut.Response") - proto.RegisterType((*RpcBlockCutResponseError)(nil), "anytype.Rpc.Block.Cut.Response.Error") - proto.RegisterType((*RpcBlockImportMarkdown)(nil), "anytype.Rpc.Block.ImportMarkdown") - proto.RegisterType((*RpcBlockImportMarkdownRequest)(nil), "anytype.Rpc.Block.ImportMarkdown.Request") - proto.RegisterType((*RpcBlockImportMarkdownResponse)(nil), "anytype.Rpc.Block.ImportMarkdown.Response") - proto.RegisterType((*RpcBlockImportMarkdownResponseError)(nil), "anytype.Rpc.Block.ImportMarkdown.Response.Error") - proto.RegisterType((*RpcBlockExport)(nil), "anytype.Rpc.Block.Export") - proto.RegisterType((*RpcBlockExportRequest)(nil), "anytype.Rpc.Block.Export.Request") - proto.RegisterType((*RpcBlockExportResponse)(nil), "anytype.Rpc.Block.Export.Response") - proto.RegisterType((*RpcBlockExportResponseError)(nil), "anytype.Rpc.Block.Export.Response.Error") - proto.RegisterType((*RpcBlockUpload)(nil), "anytype.Rpc.Block.Upload") - proto.RegisterType((*RpcBlockUploadRequest)(nil), "anytype.Rpc.Block.Upload.Request") - proto.RegisterType((*RpcBlockUploadResponse)(nil), "anytype.Rpc.Block.Upload.Response") - proto.RegisterType((*RpcBlockUploadResponseError)(nil), "anytype.Rpc.Block.Upload.Response.Error") - proto.RegisterType((*RpcBlockDownload)(nil), "anytype.Rpc.Block.Download") - proto.RegisterType((*RpcBlockDownloadRequest)(nil), "anytype.Rpc.Block.Download.Request") - proto.RegisterType((*RpcBlockDownloadResponse)(nil), "anytype.Rpc.Block.Download.Response") - proto.RegisterType((*RpcBlockDownloadResponseError)(nil), "anytype.Rpc.Block.Download.Response.Error") - proto.RegisterType((*RpcBlockSet)(nil), "anytype.Rpc.Block.Set") - proto.RegisterType((*RpcBlockSetFields)(nil), "anytype.Rpc.Block.Set.Fields") - proto.RegisterType((*RpcBlockSetFieldsRequest)(nil), "anytype.Rpc.Block.Set.Fields.Request") - proto.RegisterType((*RpcBlockSetFieldsResponse)(nil), "anytype.Rpc.Block.Set.Fields.Response") - proto.RegisterType((*RpcBlockSetFieldsResponseError)(nil), "anytype.Rpc.Block.Set.Fields.Response.Error") - proto.RegisterType((*RpcBlockSetDetails)(nil), "anytype.Rpc.Block.Set.Details") - proto.RegisterType((*RpcBlockSetDetailsDetail)(nil), "anytype.Rpc.Block.Set.Details.Detail") - proto.RegisterType((*RpcBlockSetDetailsRequest)(nil), "anytype.Rpc.Block.Set.Details.Request") - proto.RegisterType((*RpcBlockSetDetailsResponse)(nil), "anytype.Rpc.Block.Set.Details.Response") - proto.RegisterType((*RpcBlockSetDetailsResponseError)(nil), "anytype.Rpc.Block.Set.Details.Response.Error") - proto.RegisterType((*RpcBlockSetRestrictions)(nil), "anytype.Rpc.Block.Set.Restrictions") - proto.RegisterType((*RpcBlockSetRestrictionsRequest)(nil), "anytype.Rpc.Block.Set.Restrictions.Request") - proto.RegisterType((*RpcBlockSetRestrictionsResponse)(nil), "anytype.Rpc.Block.Set.Restrictions.Response") - proto.RegisterType((*RpcBlockSetRestrictionsResponseError)(nil), "anytype.Rpc.Block.Set.Restrictions.Response.Error") - proto.RegisterType((*RpcBlockSetPage)(nil), "anytype.Rpc.Block.Set.Page") - proto.RegisterType((*RpcBlockSetPageIsArchived)(nil), "anytype.Rpc.Block.Set.Page.IsArchived") - proto.RegisterType((*RpcBlockSetPageIsArchivedRequest)(nil), "anytype.Rpc.Block.Set.Page.IsArchived.Request") - proto.RegisterType((*RpcBlockSetPageIsArchivedResponse)(nil), "anytype.Rpc.Block.Set.Page.IsArchived.Response") - proto.RegisterType((*RpcBlockSetPageIsArchivedResponseError)(nil), "anytype.Rpc.Block.Set.Page.IsArchived.Response.Error") - proto.RegisterType((*RpcBlockSetLatex)(nil), "anytype.Rpc.Block.Set.Latex") - proto.RegisterType((*RpcBlockSetLatexText)(nil), "anytype.Rpc.Block.Set.Latex.Text") - proto.RegisterType((*RpcBlockSetLatexTextRequest)(nil), "anytype.Rpc.Block.Set.Latex.Text.Request") - proto.RegisterType((*RpcBlockSetLatexTextResponse)(nil), "anytype.Rpc.Block.Set.Latex.Text.Response") - proto.RegisterType((*RpcBlockSetLatexTextResponseError)(nil), "anytype.Rpc.Block.Set.Latex.Text.Response.Error") - proto.RegisterType((*RpcBlockSetText)(nil), "anytype.Rpc.Block.Set.Text") - proto.RegisterType((*RpcBlockSetTextText)(nil), "anytype.Rpc.Block.Set.Text.Text") - proto.RegisterType((*RpcBlockSetTextTextRequest)(nil), "anytype.Rpc.Block.Set.Text.Text.Request") - proto.RegisterType((*RpcBlockSetTextTextResponse)(nil), "anytype.Rpc.Block.Set.Text.Text.Response") - proto.RegisterType((*RpcBlockSetTextTextResponseError)(nil), "anytype.Rpc.Block.Set.Text.Text.Response.Error") - proto.RegisterType((*RpcBlockSetTextColor)(nil), "anytype.Rpc.Block.Set.Text.Color") - proto.RegisterType((*RpcBlockSetTextColorRequest)(nil), "anytype.Rpc.Block.Set.Text.Color.Request") - proto.RegisterType((*RpcBlockSetTextColorResponse)(nil), "anytype.Rpc.Block.Set.Text.Color.Response") - proto.RegisterType((*RpcBlockSetTextColorResponseError)(nil), "anytype.Rpc.Block.Set.Text.Color.Response.Error") - proto.RegisterType((*RpcBlockSetTextStyle)(nil), "anytype.Rpc.Block.Set.Text.Style") - proto.RegisterType((*RpcBlockSetTextStyleRequest)(nil), "anytype.Rpc.Block.Set.Text.Style.Request") - proto.RegisterType((*RpcBlockSetTextStyleResponse)(nil), "anytype.Rpc.Block.Set.Text.Style.Response") - proto.RegisterType((*RpcBlockSetTextStyleResponseError)(nil), "anytype.Rpc.Block.Set.Text.Style.Response.Error") - proto.RegisterType((*RpcBlockSetTextChecked)(nil), "anytype.Rpc.Block.Set.Text.Checked") - proto.RegisterType((*RpcBlockSetTextCheckedRequest)(nil), "anytype.Rpc.Block.Set.Text.Checked.Request") - proto.RegisterType((*RpcBlockSetTextCheckedResponse)(nil), "anytype.Rpc.Block.Set.Text.Checked.Response") - proto.RegisterType((*RpcBlockSetTextCheckedResponseError)(nil), "anytype.Rpc.Block.Set.Text.Checked.Response.Error") - proto.RegisterType((*RpcBlockSetTextIcon)(nil), "anytype.Rpc.Block.Set.Text.Icon") - proto.RegisterType((*RpcBlockSetTextIconRequest)(nil), "anytype.Rpc.Block.Set.Text.Icon.Request") - proto.RegisterType((*RpcBlockSetTextIconResponse)(nil), "anytype.Rpc.Block.Set.Text.Icon.Response") - proto.RegisterType((*RpcBlockSetTextIconResponseError)(nil), "anytype.Rpc.Block.Set.Text.Icon.Response.Error") - proto.RegisterType((*RpcBlockSetFile)(nil), "anytype.Rpc.Block.Set.File") - proto.RegisterType((*RpcBlockSetFileName)(nil), "anytype.Rpc.Block.Set.File.Name") - proto.RegisterType((*RpcBlockSetFileNameRequest)(nil), "anytype.Rpc.Block.Set.File.Name.Request") - proto.RegisterType((*RpcBlockSetFileNameResponse)(nil), "anytype.Rpc.Block.Set.File.Name.Response") - proto.RegisterType((*RpcBlockSetFileNameResponseError)(nil), "anytype.Rpc.Block.Set.File.Name.Response.Error") - proto.RegisterType((*RpcBlockSetImage)(nil), "anytype.Rpc.Block.Set.Image") - proto.RegisterType((*RpcBlockSetImageName)(nil), "anytype.Rpc.Block.Set.Image.Name") - proto.RegisterType((*RpcBlockSetImageNameRequest)(nil), "anytype.Rpc.Block.Set.Image.Name.Request") - proto.RegisterType((*RpcBlockSetImageNameResponse)(nil), "anytype.Rpc.Block.Set.Image.Name.Response") - proto.RegisterType((*RpcBlockSetImageNameResponseError)(nil), "anytype.Rpc.Block.Set.Image.Name.Response.Error") - proto.RegisterType((*RpcBlockSetImageWidth)(nil), "anytype.Rpc.Block.Set.Image.Width") - proto.RegisterType((*RpcBlockSetImageWidthRequest)(nil), "anytype.Rpc.Block.Set.Image.Width.Request") - proto.RegisterType((*RpcBlockSetImageWidthResponse)(nil), "anytype.Rpc.Block.Set.Image.Width.Response") - proto.RegisterType((*RpcBlockSetImageWidthResponseError)(nil), "anytype.Rpc.Block.Set.Image.Width.Response.Error") - proto.RegisterType((*RpcBlockSetVideo)(nil), "anytype.Rpc.Block.Set.Video") - proto.RegisterType((*RpcBlockSetVideoName)(nil), "anytype.Rpc.Block.Set.Video.Name") - proto.RegisterType((*RpcBlockSetVideoNameRequest)(nil), "anytype.Rpc.Block.Set.Video.Name.Request") - proto.RegisterType((*RpcBlockSetVideoNameResponse)(nil), "anytype.Rpc.Block.Set.Video.Name.Response") - proto.RegisterType((*RpcBlockSetVideoNameResponseError)(nil), "anytype.Rpc.Block.Set.Video.Name.Response.Error") - proto.RegisterType((*RpcBlockSetVideoWidth)(nil), "anytype.Rpc.Block.Set.Video.Width") - proto.RegisterType((*RpcBlockSetVideoWidthRequest)(nil), "anytype.Rpc.Block.Set.Video.Width.Request") - proto.RegisterType((*RpcBlockSetVideoWidthResponse)(nil), "anytype.Rpc.Block.Set.Video.Width.Response") - proto.RegisterType((*RpcBlockSetVideoWidthResponseError)(nil), "anytype.Rpc.Block.Set.Video.Width.Response.Error") - proto.RegisterType((*RpcBlockSetLink)(nil), "anytype.Rpc.Block.Set.Link") - proto.RegisterType((*RpcBlockSetLinkTargetBlockId)(nil), "anytype.Rpc.Block.Set.Link.TargetBlockId") - proto.RegisterType((*RpcBlockSetLinkTargetBlockIdRequest)(nil), "anytype.Rpc.Block.Set.Link.TargetBlockId.Request") - proto.RegisterType((*RpcBlockSetLinkTargetBlockIdResponse)(nil), "anytype.Rpc.Block.Set.Link.TargetBlockId.Response") - proto.RegisterType((*RpcBlockSetLinkTargetBlockIdResponseError)(nil), "anytype.Rpc.Block.Set.Link.TargetBlockId.Response.Error") - proto.RegisterType((*RpcBlockRelation)(nil), "anytype.Rpc.Block.Relation") - proto.RegisterType((*RpcBlockRelationSetKey)(nil), "anytype.Rpc.Block.Relation.SetKey") - proto.RegisterType((*RpcBlockRelationSetKeyRequest)(nil), "anytype.Rpc.Block.Relation.SetKey.Request") - proto.RegisterType((*RpcBlockRelationSetKeyResponse)(nil), "anytype.Rpc.Block.Relation.SetKey.Response") - proto.RegisterType((*RpcBlockRelationSetKeyResponseError)(nil), "anytype.Rpc.Block.Relation.SetKey.Response.Error") - proto.RegisterType((*RpcBlockRelationAdd)(nil), "anytype.Rpc.Block.Relation.Add") - proto.RegisterType((*RpcBlockRelationAddRequest)(nil), "anytype.Rpc.Block.Relation.Add.Request") - proto.RegisterType((*RpcBlockRelationAddResponse)(nil), "anytype.Rpc.Block.Relation.Add.Response") - proto.RegisterType((*RpcBlockRelationAddResponseError)(nil), "anytype.Rpc.Block.Relation.Add.Response.Error") - proto.RegisterType((*RpcBlockObjectType)(nil), "anytype.Rpc.Block.ObjectType") - proto.RegisterType((*RpcBlockObjectTypeSet)(nil), "anytype.Rpc.Block.ObjectType.Set") - proto.RegisterType((*RpcBlockObjectTypeSetRequest)(nil), "anytype.Rpc.Block.ObjectType.Set.Request") - proto.RegisterType((*RpcBlockObjectTypeSetResponse)(nil), "anytype.Rpc.Block.ObjectType.Set.Response") - proto.RegisterType((*RpcBlockObjectTypeSetResponseError)(nil), "anytype.Rpc.Block.ObjectType.Set.Response.Error") - proto.RegisterType((*RpcBlockBookmark)(nil), "anytype.Rpc.Block.Bookmark") - proto.RegisterType((*RpcBlockBookmarkFetch)(nil), "anytype.Rpc.Block.Bookmark.Fetch") - proto.RegisterType((*RpcBlockBookmarkFetchRequest)(nil), "anytype.Rpc.Block.Bookmark.Fetch.Request") - proto.RegisterType((*RpcBlockBookmarkFetchResponse)(nil), "anytype.Rpc.Block.Bookmark.Fetch.Response") - proto.RegisterType((*RpcBlockBookmarkFetchResponseError)(nil), "anytype.Rpc.Block.Bookmark.Fetch.Response.Error") - proto.RegisterType((*RpcBlockBookmarkCreateAndFetch)(nil), "anytype.Rpc.Block.Bookmark.CreateAndFetch") - proto.RegisterType((*RpcBlockBookmarkCreateAndFetchRequest)(nil), "anytype.Rpc.Block.Bookmark.CreateAndFetch.Request") - proto.RegisterType((*RpcBlockBookmarkCreateAndFetchResponse)(nil), "anytype.Rpc.Block.Bookmark.CreateAndFetch.Response") - proto.RegisterType((*RpcBlockBookmarkCreateAndFetchResponseError)(nil), "anytype.Rpc.Block.Bookmark.CreateAndFetch.Response.Error") - proto.RegisterType((*RpcBlockFile)(nil), "anytype.Rpc.Block.File") - proto.RegisterType((*RpcBlockFileCreateAndUpload)(nil), "anytype.Rpc.Block.File.CreateAndUpload") - proto.RegisterType((*RpcBlockFileCreateAndUploadRequest)(nil), "anytype.Rpc.Block.File.CreateAndUpload.Request") - proto.RegisterType((*RpcBlockFileCreateAndUploadResponse)(nil), "anytype.Rpc.Block.File.CreateAndUpload.Response") - proto.RegisterType((*RpcBlockFileCreateAndUploadResponseError)(nil), "anytype.Rpc.Block.File.CreateAndUpload.Response.Error") - proto.RegisterType((*RpcBlockDataview)(nil), "anytype.Rpc.Block.Dataview") - proto.RegisterType((*RpcBlockDataviewViewCreate)(nil), "anytype.Rpc.Block.Dataview.ViewCreate") - proto.RegisterType((*RpcBlockDataviewViewCreateRequest)(nil), "anytype.Rpc.Block.Dataview.ViewCreate.Request") - proto.RegisterType((*RpcBlockDataviewViewCreateResponse)(nil), "anytype.Rpc.Block.Dataview.ViewCreate.Response") - proto.RegisterType((*RpcBlockDataviewViewCreateResponseError)(nil), "anytype.Rpc.Block.Dataview.ViewCreate.Response.Error") - proto.RegisterType((*RpcBlockDataviewViewUpdate)(nil), "anytype.Rpc.Block.Dataview.ViewUpdate") - proto.RegisterType((*RpcBlockDataviewViewUpdateRequest)(nil), "anytype.Rpc.Block.Dataview.ViewUpdate.Request") - proto.RegisterType((*RpcBlockDataviewViewUpdateResponse)(nil), "anytype.Rpc.Block.Dataview.ViewUpdate.Response") - proto.RegisterType((*RpcBlockDataviewViewUpdateResponseError)(nil), "anytype.Rpc.Block.Dataview.ViewUpdate.Response.Error") - proto.RegisterType((*RpcBlockDataviewViewDelete)(nil), "anytype.Rpc.Block.Dataview.ViewDelete") - proto.RegisterType((*RpcBlockDataviewViewDeleteRequest)(nil), "anytype.Rpc.Block.Dataview.ViewDelete.Request") - proto.RegisterType((*RpcBlockDataviewViewDeleteResponse)(nil), "anytype.Rpc.Block.Dataview.ViewDelete.Response") - proto.RegisterType((*RpcBlockDataviewViewDeleteResponseError)(nil), "anytype.Rpc.Block.Dataview.ViewDelete.Response.Error") - proto.RegisterType((*RpcBlockDataviewViewSetPosition)(nil), "anytype.Rpc.Block.Dataview.ViewSetPosition") - proto.RegisterType((*RpcBlockDataviewViewSetPositionRequest)(nil), "anytype.Rpc.Block.Dataview.ViewSetPosition.Request") - proto.RegisterType((*RpcBlockDataviewViewSetPositionResponse)(nil), "anytype.Rpc.Block.Dataview.ViewSetPosition.Response") - proto.RegisterType((*RpcBlockDataviewViewSetPositionResponseError)(nil), "anytype.Rpc.Block.Dataview.ViewSetPosition.Response.Error") - proto.RegisterType((*RpcBlockDataviewViewSetActive)(nil), "anytype.Rpc.Block.Dataview.ViewSetActive") - proto.RegisterType((*RpcBlockDataviewViewSetActiveRequest)(nil), "anytype.Rpc.Block.Dataview.ViewSetActive.Request") - proto.RegisterType((*RpcBlockDataviewViewSetActiveResponse)(nil), "anytype.Rpc.Block.Dataview.ViewSetActive.Response") - proto.RegisterType((*RpcBlockDataviewViewSetActiveResponseError)(nil), "anytype.Rpc.Block.Dataview.ViewSetActive.Response.Error") - proto.RegisterType((*RpcBlockDataviewRecordUpdate)(nil), "anytype.Rpc.Block.Dataview.RecordUpdate") - proto.RegisterType((*RpcBlockDataviewRecordUpdateRequest)(nil), "anytype.Rpc.Block.Dataview.RecordUpdate.Request") - proto.RegisterType((*RpcBlockDataviewRecordUpdateResponse)(nil), "anytype.Rpc.Block.Dataview.RecordUpdate.Response") - proto.RegisterType((*RpcBlockDataviewRecordUpdateResponseError)(nil), "anytype.Rpc.Block.Dataview.RecordUpdate.Response.Error") - proto.RegisterType((*RpcBlockDataviewRecordDelete)(nil), "anytype.Rpc.Block.Dataview.RecordDelete") - proto.RegisterType((*RpcBlockDataviewRecordDeleteRequest)(nil), "anytype.Rpc.Block.Dataview.RecordDelete.Request") - proto.RegisterType((*RpcBlockDataviewRecordDeleteResponse)(nil), "anytype.Rpc.Block.Dataview.RecordDelete.Response") - proto.RegisterType((*RpcBlockDataviewRecordDeleteResponseError)(nil), "anytype.Rpc.Block.Dataview.RecordDelete.Response.Error") - proto.RegisterType((*RpcBlockDataviewRecordCreate)(nil), "anytype.Rpc.Block.Dataview.RecordCreate") - proto.RegisterType((*RpcBlockDataviewRecordCreateRequest)(nil), "anytype.Rpc.Block.Dataview.RecordCreate.Request") - proto.RegisterType((*RpcBlockDataviewRecordCreateResponse)(nil), "anytype.Rpc.Block.Dataview.RecordCreate.Response") - proto.RegisterType((*RpcBlockDataviewRecordCreateResponseError)(nil), "anytype.Rpc.Block.Dataview.RecordCreate.Response.Error") - proto.RegisterType((*RpcBlockDataviewRelationAdd)(nil), "anytype.Rpc.Block.Dataview.RelationAdd") - proto.RegisterType((*RpcBlockDataviewRelationAddRequest)(nil), "anytype.Rpc.Block.Dataview.RelationAdd.Request") - proto.RegisterType((*RpcBlockDataviewRelationAddResponse)(nil), "anytype.Rpc.Block.Dataview.RelationAdd.Response") - proto.RegisterType((*RpcBlockDataviewRelationAddResponseError)(nil), "anytype.Rpc.Block.Dataview.RelationAdd.Response.Error") - proto.RegisterType((*RpcBlockDataviewRelationUpdate)(nil), "anytype.Rpc.Block.Dataview.RelationUpdate") - proto.RegisterType((*RpcBlockDataviewRelationUpdateRequest)(nil), "anytype.Rpc.Block.Dataview.RelationUpdate.Request") - proto.RegisterType((*RpcBlockDataviewRelationUpdateResponse)(nil), "anytype.Rpc.Block.Dataview.RelationUpdate.Response") - proto.RegisterType((*RpcBlockDataviewRelationUpdateResponseError)(nil), "anytype.Rpc.Block.Dataview.RelationUpdate.Response.Error") - proto.RegisterType((*RpcBlockDataviewRelationDelete)(nil), "anytype.Rpc.Block.Dataview.RelationDelete") - proto.RegisterType((*RpcBlockDataviewRelationDeleteRequest)(nil), "anytype.Rpc.Block.Dataview.RelationDelete.Request") - proto.RegisterType((*RpcBlockDataviewRelationDeleteResponse)(nil), "anytype.Rpc.Block.Dataview.RelationDelete.Response") - proto.RegisterType((*RpcBlockDataviewRelationDeleteResponseError)(nil), "anytype.Rpc.Block.Dataview.RelationDelete.Response.Error") - proto.RegisterType((*RpcBlockDataviewRecordRelationOptionAdd)(nil), "anytype.Rpc.Block.Dataview.RecordRelationOptionAdd") - proto.RegisterType((*RpcBlockDataviewRecordRelationOptionAddRequest)(nil), "anytype.Rpc.Block.Dataview.RecordRelationOptionAdd.Request") - proto.RegisterType((*RpcBlockDataviewRecordRelationOptionAddResponse)(nil), "anytype.Rpc.Block.Dataview.RecordRelationOptionAdd.Response") - proto.RegisterType((*RpcBlockDataviewRecordRelationOptionAddResponseError)(nil), "anytype.Rpc.Block.Dataview.RecordRelationOptionAdd.Response.Error") - proto.RegisterType((*RpcBlockDataviewRecordRelationOptionUpdate)(nil), "anytype.Rpc.Block.Dataview.RecordRelationOptionUpdate") - proto.RegisterType((*RpcBlockDataviewRecordRelationOptionUpdateRequest)(nil), "anytype.Rpc.Block.Dataview.RecordRelationOptionUpdate.Request") - proto.RegisterType((*RpcBlockDataviewRecordRelationOptionUpdateResponse)(nil), "anytype.Rpc.Block.Dataview.RecordRelationOptionUpdate.Response") - proto.RegisterType((*RpcBlockDataviewRecordRelationOptionUpdateResponseError)(nil), "anytype.Rpc.Block.Dataview.RecordRelationOptionUpdate.Response.Error") - proto.RegisterType((*RpcBlockDataviewRecordRelationOptionDelete)(nil), "anytype.Rpc.Block.Dataview.RecordRelationOptionDelete") - proto.RegisterType((*RpcBlockDataviewRecordRelationOptionDeleteRequest)(nil), "anytype.Rpc.Block.Dataview.RecordRelationOptionDelete.Request") - proto.RegisterType((*RpcBlockDataviewRecordRelationOptionDeleteResponse)(nil), "anytype.Rpc.Block.Dataview.RecordRelationOptionDelete.Response") - proto.RegisterType((*RpcBlockDataviewRecordRelationOptionDeleteResponseError)(nil), "anytype.Rpc.Block.Dataview.RecordRelationOptionDelete.Response.Error") - proto.RegisterType((*RpcBlockDataviewRelationListAvailable)(nil), "anytype.Rpc.Block.Dataview.RelationListAvailable") - proto.RegisterType((*RpcBlockDataviewRelationListAvailableRequest)(nil), "anytype.Rpc.Block.Dataview.RelationListAvailable.Request") - proto.RegisterType((*RpcBlockDataviewRelationListAvailableResponse)(nil), "anytype.Rpc.Block.Dataview.RelationListAvailable.Response") - proto.RegisterType((*RpcBlockDataviewRelationListAvailableResponseError)(nil), "anytype.Rpc.Block.Dataview.RelationListAvailable.Response.Error") - proto.RegisterType((*RpcBlockDataviewSetSource)(nil), "anytype.Rpc.Block.Dataview.SetSource") - proto.RegisterType((*RpcBlockDataviewSetSourceRequest)(nil), "anytype.Rpc.Block.Dataview.SetSource.Request") - proto.RegisterType((*RpcBlockDataviewSetSourceResponse)(nil), "anytype.Rpc.Block.Dataview.SetSource.Response") - proto.RegisterType((*RpcBlockDataviewSetSourceResponseError)(nil), "anytype.Rpc.Block.Dataview.SetSource.Response.Error") - proto.RegisterType((*RpcBlockGet)(nil), "anytype.Rpc.Block.Get") - proto.RegisterType((*RpcBlockGetMarks)(nil), "anytype.Rpc.Block.Get.Marks") - proto.RegisterType((*RpcBlockGetMarksRequest)(nil), "anytype.Rpc.Block.Get.Marks.Request") - proto.RegisterType((*RpcBlockGetMarksResponse)(nil), "anytype.Rpc.Block.Get.Marks.Response") - proto.RegisterType((*RpcBlockGetMarksResponseError)(nil), "anytype.Rpc.Block.Get.Marks.Response.Error") - proto.RegisterType((*RpcBlockUndoRedoCounter)(nil), "anytype.Rpc.Block.UndoRedoCounter") - proto.RegisterType((*RpcBlockUndo)(nil), "anytype.Rpc.Block.Undo") - proto.RegisterType((*RpcBlockUndoRequest)(nil), "anytype.Rpc.Block.Undo.Request") - proto.RegisterType((*RpcBlockUndoResponse)(nil), "anytype.Rpc.Block.Undo.Response") - proto.RegisterType((*RpcBlockUndoResponseError)(nil), "anytype.Rpc.Block.Undo.Response.Error") - proto.RegisterType((*RpcBlockRedo)(nil), "anytype.Rpc.Block.Redo") - proto.RegisterType((*RpcBlockRedoRequest)(nil), "anytype.Rpc.Block.Redo.Request") - proto.RegisterType((*RpcBlockRedoResponse)(nil), "anytype.Rpc.Block.Redo.Response") - proto.RegisterType((*RpcBlockRedoResponseError)(nil), "anytype.Rpc.Block.Redo.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((*RpcBlockShow)(nil), "anytype.Rpc.Block.Show") - proto.RegisterType((*RpcBlockShowRequest)(nil), "anytype.Rpc.Block.Show.Request") - proto.RegisterType((*RpcBlockShowResponse)(nil), "anytype.Rpc.Block.Show.Response") - proto.RegisterType((*RpcBlockShowResponseError)(nil), "anytype.Rpc.Block.Show.Response.Error") - proto.RegisterType((*RpcBlockGetPublicWebURL)(nil), "anytype.Rpc.Block.GetPublicWebURL") - proto.RegisterType((*RpcBlockGetPublicWebURLRequest)(nil), "anytype.Rpc.Block.GetPublicWebURL.Request") - proto.RegisterType((*RpcBlockGetPublicWebURLResponse)(nil), "anytype.Rpc.Block.GetPublicWebURL.Response") - proto.RegisterType((*RpcBlockGetPublicWebURLResponseError)(nil), "anytype.Rpc.Block.GetPublicWebURL.Response.Error") - proto.RegisterType((*RpcBlockOpenBreadcrumbs)(nil), "anytype.Rpc.Block.OpenBreadcrumbs") - proto.RegisterType((*RpcBlockOpenBreadcrumbsRequest)(nil), "anytype.Rpc.Block.OpenBreadcrumbs.Request") - proto.RegisterType((*RpcBlockOpenBreadcrumbsResponse)(nil), "anytype.Rpc.Block.OpenBreadcrumbs.Response") - proto.RegisterType((*RpcBlockOpenBreadcrumbsResponseError)(nil), "anytype.Rpc.Block.OpenBreadcrumbs.Response.Error") - proto.RegisterType((*RpcBlockSetBreadcrumbs)(nil), "anytype.Rpc.Block.SetBreadcrumbs") - proto.RegisterType((*RpcBlockSetBreadcrumbsRequest)(nil), "anytype.Rpc.Block.SetBreadcrumbs.Request") - proto.RegisterType((*RpcBlockSetBreadcrumbsResponse)(nil), "anytype.Rpc.Block.SetBreadcrumbs.Response") - proto.RegisterType((*RpcBlockSetBreadcrumbsResponseError)(nil), "anytype.Rpc.Block.SetBreadcrumbs.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((*RpcBlockCreatePage)(nil), "anytype.Rpc.Block.CreatePage") - proto.RegisterType((*RpcBlockCreatePageRequest)(nil), "anytype.Rpc.Block.CreatePage.Request") - proto.RegisterType((*RpcBlockCreatePageResponse)(nil), "anytype.Rpc.Block.CreatePage.Response") - proto.RegisterType((*RpcBlockCreatePageResponseError)(nil), "anytype.Rpc.Block.CreatePage.Response.Error") - proto.RegisterType((*RpcBlockCreateSet)(nil), "anytype.Rpc.Block.CreateSet") - proto.RegisterType((*RpcBlockCreateSetRequest)(nil), "anytype.Rpc.Block.CreateSet.Request") - proto.RegisterType((*RpcBlockCreateSetResponse)(nil), "anytype.Rpc.Block.CreateSet.Response") - proto.RegisterType((*RpcBlockCreateSetResponseError)(nil), "anytype.Rpc.Block.CreateSet.Response.Error") - proto.RegisterType((*RpcBlockUnlink)(nil), "anytype.Rpc.Block.Unlink") - proto.RegisterType((*RpcBlockUnlinkRequest)(nil), "anytype.Rpc.Block.Unlink.Request") - proto.RegisterType((*RpcBlockUnlinkResponse)(nil), "anytype.Rpc.Block.Unlink.Response") - proto.RegisterType((*RpcBlockUnlinkResponseError)(nil), "anytype.Rpc.Block.Unlink.Response.Error") - proto.RegisterType((*RpcBlockClose)(nil), "anytype.Rpc.Block.Close") - proto.RegisterType((*RpcBlockCloseRequest)(nil), "anytype.Rpc.Block.Close.Request") - proto.RegisterType((*RpcBlockCloseResponse)(nil), "anytype.Rpc.Block.Close.Response") - proto.RegisterType((*RpcBlockCloseResponseError)(nil), "anytype.Rpc.Block.Close.Response.Error") - proto.RegisterType((*RpcWorkspace)(nil), "anytype.Rpc.Workspace") - proto.RegisterType((*RpcWorkspaceGetCurrent)(nil), "anytype.Rpc.Workspace.GetCurrent") - proto.RegisterType((*RpcWorkspaceGetCurrentRequest)(nil), "anytype.Rpc.Workspace.GetCurrent.Request") - proto.RegisterType((*RpcWorkspaceGetCurrentResponse)(nil), "anytype.Rpc.Workspace.GetCurrent.Response") - proto.RegisterType((*RpcWorkspaceGetCurrentResponseError)(nil), "anytype.Rpc.Workspace.GetCurrent.Response.Error") - proto.RegisterType((*RpcWorkspaceGetAll)(nil), "anytype.Rpc.Workspace.GetAll") - proto.RegisterType((*RpcWorkspaceGetAllRequest)(nil), "anytype.Rpc.Workspace.GetAll.Request") - proto.RegisterType((*RpcWorkspaceGetAllResponse)(nil), "anytype.Rpc.Workspace.GetAll.Response") - proto.RegisterType((*RpcWorkspaceGetAllResponseError)(nil), "anytype.Rpc.Workspace.GetAll.Response.Error") - proto.RegisterType((*RpcWorkspaceCreate)(nil), "anytype.Rpc.Workspace.Create") - proto.RegisterType((*RpcWorkspaceCreateRequest)(nil), "anytype.Rpc.Workspace.Create.Request") - proto.RegisterType((*RpcWorkspaceCreateResponse)(nil), "anytype.Rpc.Workspace.Create.Response") - proto.RegisterType((*RpcWorkspaceCreateResponseError)(nil), "anytype.Rpc.Workspace.Create.Response.Error") - proto.RegisterType((*RpcWorkspaceSetIsHighlighted)(nil), "anytype.Rpc.Workspace.SetIsHighlighted") - proto.RegisterType((*RpcWorkspaceSetIsHighlightedRequest)(nil), "anytype.Rpc.Workspace.SetIsHighlighted.Request") - proto.RegisterType((*RpcWorkspaceSetIsHighlightedResponse)(nil), "anytype.Rpc.Workspace.SetIsHighlighted.Response") - proto.RegisterType((*RpcWorkspaceSetIsHighlightedResponseError)(nil), "anytype.Rpc.Workspace.SetIsHighlighted.Response.Error") - proto.RegisterType((*RpcWorkspaceSelect)(nil), "anytype.Rpc.Workspace.Select") - proto.RegisterType((*RpcWorkspaceSelectRequest)(nil), "anytype.Rpc.Workspace.Select.Request") - proto.RegisterType((*RpcWorkspaceSelectResponse)(nil), "anytype.Rpc.Workspace.Select.Response") - proto.RegisterType((*RpcWorkspaceSelectResponseError)(nil), "anytype.Rpc.Workspace.Select.Response.Error") + proto.RegisterType((*RpcApp)(nil), "anytype.Rpc.App") + proto.RegisterType((*RpcAppGetVersion)(nil), "anytype.Rpc.App.GetVersion") + proto.RegisterType((*RpcAppGetVersionRequest)(nil), "anytype.Rpc.App.GetVersion.Request") + proto.RegisterType((*RpcAppGetVersionResponse)(nil), "anytype.Rpc.App.GetVersion.Response") + proto.RegisterType((*RpcAppGetVersionResponseError)(nil), "anytype.Rpc.App.GetVersion.Response.Error") + proto.RegisterType((*RpcAppSetDeviceState)(nil), "anytype.Rpc.App.SetDeviceState") + proto.RegisterType((*RpcAppSetDeviceStateRequest)(nil), "anytype.Rpc.App.SetDeviceState.Request") + proto.RegisterType((*RpcAppSetDeviceStateResponse)(nil), "anytype.Rpc.App.SetDeviceState.Response") + proto.RegisterType((*RpcAppSetDeviceStateResponseError)(nil), "anytype.Rpc.App.SetDeviceState.Response.Error") + proto.RegisterType((*RpcAppShutdown)(nil), "anytype.Rpc.App.Shutdown") + proto.RegisterType((*RpcAppShutdownRequest)(nil), "anytype.Rpc.App.Shutdown.Request") + proto.RegisterType((*RpcAppShutdownResponse)(nil), "anytype.Rpc.App.Shutdown.Response") + proto.RegisterType((*RpcAppShutdownResponseError)(nil), "anytype.Rpc.App.Shutdown.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") @@ -38860,93 +36987,196 @@ func init() { proto.RegisterType((*RpcAccountStopRequest)(nil), "anytype.Rpc.Account.Stop.Request") proto.RegisterType((*RpcAccountStopResponse)(nil), "anytype.Rpc.Account.Stop.Response") proto.RegisterType((*RpcAccountStopResponseError)(nil), "anytype.Rpc.Account.Stop.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((*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((*RpcFile)(nil), "anytype.Rpc.File") - proto.RegisterType((*RpcFileOffload)(nil), "anytype.Rpc.File.Offload") - proto.RegisterType((*RpcFileOffloadRequest)(nil), "anytype.Rpc.File.Offload.Request") - proto.RegisterType((*RpcFileOffloadResponse)(nil), "anytype.Rpc.File.Offload.Response") - proto.RegisterType((*RpcFileOffloadResponseError)(nil), "anytype.Rpc.File.Offload.Response.Error") - proto.RegisterType((*RpcFileList)(nil), "anytype.Rpc.FileList") - proto.RegisterType((*RpcFileListOffload)(nil), "anytype.Rpc.FileList.Offload") - proto.RegisterType((*RpcFileListOffloadRequest)(nil), "anytype.Rpc.FileList.Offload.Request") - proto.RegisterType((*RpcFileListOffloadResponse)(nil), "anytype.Rpc.FileList.Offload.Response") - proto.RegisterType((*RpcFileListOffloadResponseError)(nil), "anytype.Rpc.FileList.Offload.Response.Error") - proto.RegisterType((*RpcShutdown)(nil), "anytype.Rpc.Shutdown") - proto.RegisterType((*RpcShutdownRequest)(nil), "anytype.Rpc.Shutdown.Request") - proto.RegisterType((*RpcShutdownResponse)(nil), "anytype.Rpc.Shutdown.Response") - proto.RegisterType((*RpcShutdownResponseError)(nil), "anytype.Rpc.Shutdown.Response.Error") - proto.RegisterType((*RpcDeviceState)(nil), "anytype.Rpc.DeviceState") - proto.RegisterType((*RpcDeviceStateRequest)(nil), "anytype.Rpc.DeviceState.Request") - proto.RegisterType((*RpcDeviceStateResponse)(nil), "anytype.Rpc.DeviceState.Response") - proto.RegisterType((*RpcDeviceStateResponseError)(nil), "anytype.Rpc.DeviceState.Response.Error") - proto.RegisterType((*RpcConfig)(nil), "anytype.Rpc.Config") - proto.RegisterType((*RpcConfigGet)(nil), "anytype.Rpc.Config.Get") - proto.RegisterType((*RpcConfigGetRequest)(nil), "anytype.Rpc.Config.Get.Request") - proto.RegisterType((*RpcConfigGetResponse)(nil), "anytype.Rpc.Config.Get.Response") - proto.RegisterType((*RpcConfigGetResponseError)(nil), "anytype.Rpc.Config.Get.Response.Error") - proto.RegisterType((*RpcPing)(nil), "anytype.Rpc.Ping") - proto.RegisterType((*RpcPingRequest)(nil), "anytype.Rpc.Ping.Request") - proto.RegisterType((*RpcPingResponse)(nil), "anytype.Rpc.Ping.Response") - proto.RegisterType((*RpcPingResponseError)(nil), "anytype.Rpc.Ping.Response.Error") - proto.RegisterType((*RpcProcess)(nil), "anytype.Rpc.Process") - proto.RegisterType((*RpcProcessCancel)(nil), "anytype.Rpc.Process.Cancel") - proto.RegisterType((*RpcProcessCancelRequest)(nil), "anytype.Rpc.Process.Cancel.Request") - proto.RegisterType((*RpcProcessCancelResponse)(nil), "anytype.Rpc.Process.Cancel.Response") - proto.RegisterType((*RpcProcessCancelResponseError)(nil), "anytype.Rpc.Process.Cancel.Response.Error") - proto.RegisterType((*RpcLinkPreview)(nil), "anytype.Rpc.LinkPreview") - proto.RegisterType((*RpcLinkPreviewRequest)(nil), "anytype.Rpc.LinkPreview.Request") - proto.RegisterType((*RpcLinkPreviewResponse)(nil), "anytype.Rpc.LinkPreview.Response") - proto.RegisterType((*RpcLinkPreviewResponseError)(nil), "anytype.Rpc.LinkPreview.Response.Error") - proto.RegisterType((*RpcUploadFile)(nil), "anytype.Rpc.UploadFile") - proto.RegisterType((*RpcUploadFileRequest)(nil), "anytype.Rpc.UploadFile.Request") - proto.RegisterType((*RpcUploadFileResponse)(nil), "anytype.Rpc.UploadFile.Response") - proto.RegisterType((*RpcUploadFileResponseError)(nil), "anytype.Rpc.UploadFile.Response.Error") - proto.RegisterType((*RpcDownloadFile)(nil), "anytype.Rpc.DownloadFile") - proto.RegisterType((*RpcDownloadFileRequest)(nil), "anytype.Rpc.DownloadFile.Request") - proto.RegisterType((*RpcDownloadFileResponse)(nil), "anytype.Rpc.DownloadFile.Response") - proto.RegisterType((*RpcDownloadFileResponseError)(nil), "anytype.Rpc.DownloadFile.Response.Error") - proto.RegisterType((*RpcNavigation)(nil), "anytype.Rpc.Navigation") - proto.RegisterType((*RpcNavigationListObjects)(nil), "anytype.Rpc.Navigation.ListObjects") - proto.RegisterType((*RpcNavigationListObjectsRequest)(nil), "anytype.Rpc.Navigation.ListObjects.Request") - proto.RegisterType((*RpcNavigationListObjectsResponse)(nil), "anytype.Rpc.Navigation.ListObjects.Response") - proto.RegisterType((*RpcNavigationListObjectsResponseError)(nil), "anytype.Rpc.Navigation.ListObjects.Response.Error") - proto.RegisterType((*RpcNavigationGetObjectInfoWithLinks)(nil), "anytype.Rpc.Navigation.GetObjectInfoWithLinks") - proto.RegisterType((*RpcNavigationGetObjectInfoWithLinksRequest)(nil), "anytype.Rpc.Navigation.GetObjectInfoWithLinks.Request") - proto.RegisterType((*RpcNavigationGetObjectInfoWithLinksResponse)(nil), "anytype.Rpc.Navigation.GetObjectInfoWithLinks.Response") - proto.RegisterType((*RpcNavigationGetObjectInfoWithLinksResponseError)(nil), "anytype.Rpc.Navigation.GetObjectInfoWithLinks.Response.Error") - proto.RegisterType((*RpcHistory)(nil), "anytype.Rpc.History") - proto.RegisterType((*RpcHistoryVersions)(nil), "anytype.Rpc.History.Versions") - proto.RegisterType((*RpcHistoryVersionsVersion)(nil), "anytype.Rpc.History.Versions.Version") - proto.RegisterType((*RpcHistoryVersionsRequest)(nil), "anytype.Rpc.History.Versions.Request") - proto.RegisterType((*RpcHistoryVersionsResponse)(nil), "anytype.Rpc.History.Versions.Response") - proto.RegisterType((*RpcHistoryVersionsResponseError)(nil), "anytype.Rpc.History.Versions.Response.Error") - proto.RegisterType((*RpcHistoryShow)(nil), "anytype.Rpc.History.Show") - proto.RegisterType((*RpcHistoryShowRequest)(nil), "anytype.Rpc.History.Show.Request") - proto.RegisterType((*RpcHistoryShowResponse)(nil), "anytype.Rpc.History.Show.Response") - proto.RegisterType((*RpcHistoryShowResponseError)(nil), "anytype.Rpc.History.Show.Response.Error") - proto.RegisterType((*RpcHistorySetVersion)(nil), "anytype.Rpc.History.SetVersion") - proto.RegisterType((*RpcHistorySetVersionRequest)(nil), "anytype.Rpc.History.SetVersion.Request") - proto.RegisterType((*RpcHistorySetVersionResponse)(nil), "anytype.Rpc.History.SetVersion.Response") - proto.RegisterType((*RpcHistorySetVersionResponseError)(nil), "anytype.Rpc.History.SetVersion.Response.Error") - proto.RegisterType((*RpcPage)(nil), "anytype.Rpc.Page") - proto.RegisterType((*RpcPageCreate)(nil), "anytype.Rpc.Page.Create") - proto.RegisterType((*RpcPageCreateRequest)(nil), "anytype.Rpc.Page.Create.Request") - proto.RegisterType((*RpcPageCreateResponse)(nil), "anytype.Rpc.Page.Create.Response") - proto.RegisterType((*RpcPageCreateResponseError)(nil), "anytype.Rpc.Page.Create.Response.Error") - proto.RegisterType((*RpcSet)(nil), "anytype.Rpc.Set") - proto.RegisterType((*RpcSetCreate)(nil), "anytype.Rpc.Set.Create") - proto.RegisterType((*RpcSetCreateRequest)(nil), "anytype.Rpc.Set.Create.Request") - proto.RegisterType((*RpcSetCreateResponse)(nil), "anytype.Rpc.Set.Create.Response") - proto.RegisterType((*RpcSetCreateResponseError)(nil), "anytype.Rpc.Set.Create.Response.Error") + proto.RegisterType((*RpcAccountGetConfig)(nil), "anytype.Rpc.Account.GetConfig") + proto.RegisterType((*RpcAccountGetConfigGet)(nil), "anytype.Rpc.Account.GetConfig.Get") + proto.RegisterType((*RpcAccountGetConfigGetRequest)(nil), "anytype.Rpc.Account.GetConfig.Get.Request") + proto.RegisterType((*RpcWorkspace)(nil), "anytype.Rpc.Workspace") + proto.RegisterType((*RpcWorkspaceGetCurrent)(nil), "anytype.Rpc.Workspace.GetCurrent") + proto.RegisterType((*RpcWorkspaceGetCurrentRequest)(nil), "anytype.Rpc.Workspace.GetCurrent.Request") + proto.RegisterType((*RpcWorkspaceGetCurrentResponse)(nil), "anytype.Rpc.Workspace.GetCurrent.Response") + proto.RegisterType((*RpcWorkspaceGetCurrentResponseError)(nil), "anytype.Rpc.Workspace.GetCurrent.Response.Error") + proto.RegisterType((*RpcWorkspaceGetAll)(nil), "anytype.Rpc.Workspace.GetAll") + proto.RegisterType((*RpcWorkspaceGetAllRequest)(nil), "anytype.Rpc.Workspace.GetAll.Request") + proto.RegisterType((*RpcWorkspaceGetAllResponse)(nil), "anytype.Rpc.Workspace.GetAll.Response") + proto.RegisterType((*RpcWorkspaceGetAllResponseError)(nil), "anytype.Rpc.Workspace.GetAll.Response.Error") + proto.RegisterType((*RpcWorkspaceCreate)(nil), "anytype.Rpc.Workspace.Create") + proto.RegisterType((*RpcWorkspaceCreateRequest)(nil), "anytype.Rpc.Workspace.Create.Request") + proto.RegisterType((*RpcWorkspaceCreateResponse)(nil), "anytype.Rpc.Workspace.Create.Response") + proto.RegisterType((*RpcWorkspaceCreateResponseError)(nil), "anytype.Rpc.Workspace.Create.Response.Error") + proto.RegisterType((*RpcWorkspaceSetIsHighlighted)(nil), "anytype.Rpc.Workspace.SetIsHighlighted") + proto.RegisterType((*RpcWorkspaceSetIsHighlightedRequest)(nil), "anytype.Rpc.Workspace.SetIsHighlighted.Request") + proto.RegisterType((*RpcWorkspaceSetIsHighlightedResponse)(nil), "anytype.Rpc.Workspace.SetIsHighlighted.Response") + proto.RegisterType((*RpcWorkspaceSetIsHighlightedResponseError)(nil), "anytype.Rpc.Workspace.SetIsHighlighted.Response.Error") + proto.RegisterType((*RpcWorkspaceSelect)(nil), "anytype.Rpc.Workspace.Select") + proto.RegisterType((*RpcWorkspaceSelectRequest)(nil), "anytype.Rpc.Workspace.Select.Request") + proto.RegisterType((*RpcWorkspaceSelectResponse)(nil), "anytype.Rpc.Workspace.Select.Response") + proto.RegisterType((*RpcWorkspaceSelectResponseError)(nil), "anytype.Rpc.Workspace.Select.Response.Error") + proto.RegisterType((*RpcWorkspaceExport)(nil), "anytype.Rpc.Workspace.Export") + proto.RegisterType((*RpcWorkspaceExportRequest)(nil), "anytype.Rpc.Workspace.Export.Request") + proto.RegisterType((*RpcWorkspaceExportResponse)(nil), "anytype.Rpc.Workspace.Export.Response") + proto.RegisterType((*RpcWorkspaceExportResponseError)(nil), "anytype.Rpc.Workspace.Export.Response.Error") + proto.RegisterType((*RpcObject)(nil), "anytype.Rpc.Object") + proto.RegisterType((*RpcObjectOpen)(nil), "anytype.Rpc.Object.Open") + proto.RegisterType((*RpcObjectOpenRequest)(nil), "anytype.Rpc.Object.Open.Request") + proto.RegisterType((*RpcObjectOpenResponse)(nil), "anytype.Rpc.Object.Open.Response") + proto.RegisterType((*RpcObjectOpenResponseError)(nil), "anytype.Rpc.Object.Open.Response.Error") + proto.RegisterType((*RpcObjectClose)(nil), "anytype.Rpc.Object.Close") + proto.RegisterType((*RpcObjectCloseRequest)(nil), "anytype.Rpc.Object.Close.Request") + proto.RegisterType((*RpcObjectCloseResponse)(nil), "anytype.Rpc.Object.Close.Response") + proto.RegisterType((*RpcObjectCloseResponseError)(nil), "anytype.Rpc.Object.Close.Response.Error") + proto.RegisterType((*RpcObjectShow)(nil), "anytype.Rpc.Object.Show") + proto.RegisterType((*RpcObjectShowRequest)(nil), "anytype.Rpc.Object.Show.Request") + proto.RegisterType((*RpcObjectShowResponse)(nil), "anytype.Rpc.Object.Show.Response") + proto.RegisterType((*RpcObjectShowResponseError)(nil), "anytype.Rpc.Object.Show.Response.Error") + proto.RegisterType((*RpcObjectCreate)(nil), "anytype.Rpc.Object.Create") + proto.RegisterType((*RpcObjectCreateRequest)(nil), "anytype.Rpc.Object.Create.Request") + proto.RegisterType((*RpcObjectCreateResponse)(nil), "anytype.Rpc.Object.Create.Response") + proto.RegisterType((*RpcObjectCreateResponseError)(nil), "anytype.Rpc.Object.Create.Response.Error") + proto.RegisterType((*RpcObjectCreateSet)(nil), "anytype.Rpc.Object.CreateSet") + proto.RegisterType((*RpcObjectCreateSetRequest)(nil), "anytype.Rpc.Object.CreateSet.Request") + proto.RegisterType((*RpcObjectCreateSetResponse)(nil), "anytype.Rpc.Object.CreateSet.Response") + proto.RegisterType((*RpcObjectCreateSetResponseError)(nil), "anytype.Rpc.Object.CreateSet.Response.Error") + proto.RegisterType((*RpcObjectDuplicate)(nil), "anytype.Rpc.Object.Duplicate") + proto.RegisterType((*RpcObjectDuplicateRequest)(nil), "anytype.Rpc.Object.Duplicate.Request") + proto.RegisterType((*RpcObjectDuplicateResponse)(nil), "anytype.Rpc.Object.Duplicate.Response") + proto.RegisterType((*RpcObjectDuplicateResponseError)(nil), "anytype.Rpc.Object.Duplicate.Response.Error") + proto.RegisterType((*RpcObjectOpenBreadcrumbs)(nil), "anytype.Rpc.Object.OpenBreadcrumbs") + proto.RegisterType((*RpcObjectOpenBreadcrumbsRequest)(nil), "anytype.Rpc.Object.OpenBreadcrumbs.Request") + proto.RegisterType((*RpcObjectOpenBreadcrumbsResponse)(nil), "anytype.Rpc.Object.OpenBreadcrumbs.Response") + proto.RegisterType((*RpcObjectOpenBreadcrumbsResponseError)(nil), "anytype.Rpc.Object.OpenBreadcrumbs.Response.Error") + proto.RegisterType((*RpcObjectSetBreadcrumbs)(nil), "anytype.Rpc.Object.SetBreadcrumbs") + proto.RegisterType((*RpcObjectSetBreadcrumbsRequest)(nil), "anytype.Rpc.Object.SetBreadcrumbs.Request") + proto.RegisterType((*RpcObjectSetBreadcrumbsResponse)(nil), "anytype.Rpc.Object.SetBreadcrumbs.Response") + proto.RegisterType((*RpcObjectSetBreadcrumbsResponseError)(nil), "anytype.Rpc.Object.SetBreadcrumbs.Response.Error") + proto.RegisterType((*RpcObjectImportMarkdown)(nil), "anytype.Rpc.Object.ImportMarkdown") + proto.RegisterType((*RpcObjectImportMarkdownRequest)(nil), "anytype.Rpc.Object.ImportMarkdown.Request") + proto.RegisterType((*RpcObjectImportMarkdownResponse)(nil), "anytype.Rpc.Object.ImportMarkdown.Response") + proto.RegisterType((*RpcObjectImportMarkdownResponseError)(nil), "anytype.Rpc.Object.ImportMarkdown.Response.Error") + proto.RegisterType((*RpcObjectShareByLink)(nil), "anytype.Rpc.Object.ShareByLink") + proto.RegisterType((*RpcObjectShareByLinkRequest)(nil), "anytype.Rpc.Object.ShareByLink.Request") + proto.RegisterType((*RpcObjectShareByLinkResponse)(nil), "anytype.Rpc.Object.ShareByLink.Response") + proto.RegisterType((*RpcObjectShareByLinkResponseError)(nil), "anytype.Rpc.Object.ShareByLink.Response.Error") + proto.RegisterType((*RpcObjectAddWithObjectId)(nil), "anytype.Rpc.Object.AddWithObjectId") + proto.RegisterType((*RpcObjectAddWithObjectIdRequest)(nil), "anytype.Rpc.Object.AddWithObjectId.Request") + proto.RegisterType((*RpcObjectAddWithObjectIdResponse)(nil), "anytype.Rpc.Object.AddWithObjectId.Response") + proto.RegisterType((*RpcObjectAddWithObjectIdResponseError)(nil), "anytype.Rpc.Object.AddWithObjectId.Response.Error") + proto.RegisterType((*RpcObjectSearch)(nil), "anytype.Rpc.Object.Search") + proto.RegisterType((*RpcObjectSearchRequest)(nil), "anytype.Rpc.Object.Search.Request") + proto.RegisterType((*RpcObjectSearchResponse)(nil), "anytype.Rpc.Object.Search.Response") + proto.RegisterType((*RpcObjectSearchResponseError)(nil), "anytype.Rpc.Object.Search.Response.Error") + proto.RegisterType((*RpcObjectGraph)(nil), "anytype.Rpc.Object.Graph") + proto.RegisterType((*RpcObjectGraphRequest)(nil), "anytype.Rpc.Object.Graph.Request") + proto.RegisterType((*RpcObjectGraphEdge)(nil), "anytype.Rpc.Object.Graph.Edge") + proto.RegisterType((*RpcObjectGraphResponse)(nil), "anytype.Rpc.Object.Graph.Response") + proto.RegisterType((*RpcObjectGraphResponseError)(nil), "anytype.Rpc.Object.Graph.Response.Error") + proto.RegisterType((*RpcObjectSearchSubscribe)(nil), "anytype.Rpc.Object.SearchSubscribe") + proto.RegisterType((*RpcObjectSearchSubscribeRequest)(nil), "anytype.Rpc.Object.SearchSubscribe.Request") + proto.RegisterType((*RpcObjectSearchSubscribeResponse)(nil), "anytype.Rpc.Object.SearchSubscribe.Response") + proto.RegisterType((*RpcObjectSearchSubscribeResponseError)(nil), "anytype.Rpc.Object.SearchSubscribe.Response.Error") + proto.RegisterType((*RpcObjectSubscribeIds)(nil), "anytype.Rpc.Object.SubscribeIds") + proto.RegisterType((*RpcObjectSubscribeIdsRequest)(nil), "anytype.Rpc.Object.SubscribeIds.Request") + proto.RegisterType((*RpcObjectSubscribeIdsResponse)(nil), "anytype.Rpc.Object.SubscribeIds.Response") + proto.RegisterType((*RpcObjectSubscribeIdsResponseError)(nil), "anytype.Rpc.Object.SubscribeIds.Response.Error") + proto.RegisterType((*RpcObjectSearchUnsubscribe)(nil), "anytype.Rpc.Object.SearchUnsubscribe") + proto.RegisterType((*RpcObjectSearchUnsubscribeRequest)(nil), "anytype.Rpc.Object.SearchUnsubscribe.Request") + proto.RegisterType((*RpcObjectSearchUnsubscribeResponse)(nil), "anytype.Rpc.Object.SearchUnsubscribe.Response") + proto.RegisterType((*RpcObjectSearchUnsubscribeResponseError)(nil), "anytype.Rpc.Object.SearchUnsubscribe.Response.Error") + proto.RegisterType((*RpcObjectSetLayout)(nil), "anytype.Rpc.Object.SetLayout") + proto.RegisterType((*RpcObjectSetLayoutRequest)(nil), "anytype.Rpc.Object.SetLayout.Request") + proto.RegisterType((*RpcObjectSetLayoutResponse)(nil), "anytype.Rpc.Object.SetLayout.Response") + proto.RegisterType((*RpcObjectSetLayoutResponseError)(nil), "anytype.Rpc.Object.SetLayout.Response.Error") + proto.RegisterType((*RpcObjectSetIsFavorite)(nil), "anytype.Rpc.Object.SetIsFavorite") + proto.RegisterType((*RpcObjectSetIsFavoriteRequest)(nil), "anytype.Rpc.Object.SetIsFavorite.Request") + proto.RegisterType((*RpcObjectSetIsFavoriteResponse)(nil), "anytype.Rpc.Object.SetIsFavorite.Response") + proto.RegisterType((*RpcObjectSetIsFavoriteResponseError)(nil), "anytype.Rpc.Object.SetIsFavorite.Response.Error") + proto.RegisterType((*RpcObjectSetIsArchived)(nil), "anytype.Rpc.Object.SetIsArchived") + proto.RegisterType((*RpcObjectSetIsArchivedRequest)(nil), "anytype.Rpc.Object.SetIsArchived.Request") + proto.RegisterType((*RpcObjectSetIsArchivedResponse)(nil), "anytype.Rpc.Object.SetIsArchived.Response") + proto.RegisterType((*RpcObjectSetIsArchivedResponseError)(nil), "anytype.Rpc.Object.SetIsArchived.Response.Error") + proto.RegisterType((*RpcObjectSetObjectType)(nil), "anytype.Rpc.Object.SetObjectType") + proto.RegisterType((*RpcObjectSetObjectTypeRequest)(nil), "anytype.Rpc.Object.SetObjectType.Request") + proto.RegisterType((*RpcObjectSetObjectTypeResponse)(nil), "anytype.Rpc.Object.SetObjectType.Response") + proto.RegisterType((*RpcObjectSetObjectTypeResponseError)(nil), "anytype.Rpc.Object.SetObjectType.Response.Error") + proto.RegisterType((*RpcObjectSetDetails)(nil), "anytype.Rpc.Object.SetDetails") + proto.RegisterType((*RpcObjectSetDetailsDetail)(nil), "anytype.Rpc.Object.SetDetails.Detail") + proto.RegisterType((*RpcObjectSetDetailsRequest)(nil), "anytype.Rpc.Object.SetDetails.Request") + proto.RegisterType((*RpcObjectSetDetailsResponse)(nil), "anytype.Rpc.Object.SetDetails.Response") + proto.RegisterType((*RpcObjectSetDetailsResponseError)(nil), "anytype.Rpc.Object.SetDetails.Response.Error") + proto.RegisterType((*RpcObjectToSet)(nil), "anytype.Rpc.Object.ToSet") + proto.RegisterType((*RpcObjectToSetRequest)(nil), "anytype.Rpc.Object.ToSet.Request") + proto.RegisterType((*RpcObjectToSetResponse)(nil), "anytype.Rpc.Object.ToSet.Response") + proto.RegisterType((*RpcObjectToSetResponseError)(nil), "anytype.Rpc.Object.ToSet.Response.Error") + proto.RegisterType((*RpcObjectUndoRedoCounter)(nil), "anytype.Rpc.Object.UndoRedoCounter") + proto.RegisterType((*RpcObjectUndo)(nil), "anytype.Rpc.Object.Undo") + proto.RegisterType((*RpcObjectUndoRequest)(nil), "anytype.Rpc.Object.Undo.Request") + proto.RegisterType((*RpcObjectUndoResponse)(nil), "anytype.Rpc.Object.Undo.Response") + proto.RegisterType((*RpcObjectUndoResponseError)(nil), "anytype.Rpc.Object.Undo.Response.Error") + proto.RegisterType((*RpcObjectRedo)(nil), "anytype.Rpc.Object.Redo") + proto.RegisterType((*RpcObjectRedoRequest)(nil), "anytype.Rpc.Object.Redo.Request") + proto.RegisterType((*RpcObjectRedoResponse)(nil), "anytype.Rpc.Object.Redo.Response") + proto.RegisterType((*RpcObjectRedoResponseError)(nil), "anytype.Rpc.Object.Redo.Response.Error") + proto.RegisterType((*RpcObjectListDuplicate)(nil), "anytype.Rpc.Object.ListDuplicate") + proto.RegisterType((*RpcObjectListDuplicateRequest)(nil), "anytype.Rpc.Object.ListDuplicate.Request") + proto.RegisterType((*RpcObjectListDuplicateResponse)(nil), "anytype.Rpc.Object.ListDuplicate.Response") + proto.RegisterType((*RpcObjectListDuplicateResponseError)(nil), "anytype.Rpc.Object.ListDuplicate.Response.Error") + proto.RegisterType((*RpcObjectListDelete)(nil), "anytype.Rpc.Object.ListDelete") + proto.RegisterType((*RpcObjectListDeleteRequest)(nil), "anytype.Rpc.Object.ListDelete.Request") + proto.RegisterType((*RpcObjectListDeleteResponse)(nil), "anytype.Rpc.Object.ListDelete.Response") + proto.RegisterType((*RpcObjectListDeleteResponseError)(nil), "anytype.Rpc.Object.ListDelete.Response.Error") + proto.RegisterType((*RpcObjectListSetIsArchived)(nil), "anytype.Rpc.Object.ListSetIsArchived") + proto.RegisterType((*RpcObjectListSetIsArchivedRequest)(nil), "anytype.Rpc.Object.ListSetIsArchived.Request") + proto.RegisterType((*RpcObjectListSetIsArchivedResponse)(nil), "anytype.Rpc.Object.ListSetIsArchived.Response") + proto.RegisterType((*RpcObjectListSetIsArchivedResponseError)(nil), "anytype.Rpc.Object.ListSetIsArchived.Response.Error") + proto.RegisterType((*RpcObjectListSetIsFavorite)(nil), "anytype.Rpc.Object.ListSetIsFavorite") + proto.RegisterType((*RpcObjectListSetIsFavoriteRequest)(nil), "anytype.Rpc.Object.ListSetIsFavorite.Request") + proto.RegisterType((*RpcObjectListSetIsFavoriteResponse)(nil), "anytype.Rpc.Object.ListSetIsFavorite.Response") + proto.RegisterType((*RpcObjectListSetIsFavoriteResponseError)(nil), "anytype.Rpc.Object.ListSetIsFavorite.Response.Error") + proto.RegisterType((*RpcObjectApplyTemplate)(nil), "anytype.Rpc.Object.ApplyTemplate") + proto.RegisterType((*RpcObjectApplyTemplateRequest)(nil), "anytype.Rpc.Object.ApplyTemplate.Request") + proto.RegisterType((*RpcObjectApplyTemplateResponse)(nil), "anytype.Rpc.Object.ApplyTemplate.Response") + proto.RegisterType((*RpcObjectApplyTemplateResponseError)(nil), "anytype.Rpc.Object.ApplyTemplate.Response.Error") + proto.RegisterType((*RpcObjectListExport)(nil), "anytype.Rpc.Object.ListExport") + proto.RegisterType((*RpcObjectListExportRequest)(nil), "anytype.Rpc.Object.ListExport.Request") + proto.RegisterType((*RpcObjectListExportResponse)(nil), "anytype.Rpc.Object.ListExport.Response") + proto.RegisterType((*RpcObjectListExportResponseError)(nil), "anytype.Rpc.Object.ListExport.Response.Error") + proto.RegisterType((*RpcObjectRelation)(nil), "anytype.Rpc.ObjectRelation") + proto.RegisterType((*RpcObjectRelationAdd)(nil), "anytype.Rpc.ObjectRelation.Add") + proto.RegisterType((*RpcObjectRelationAddRequest)(nil), "anytype.Rpc.ObjectRelation.Add.Request") + proto.RegisterType((*RpcObjectRelationAddResponse)(nil), "anytype.Rpc.ObjectRelation.Add.Response") + proto.RegisterType((*RpcObjectRelationAddResponseError)(nil), "anytype.Rpc.ObjectRelation.Add.Response.Error") + proto.RegisterType((*RpcObjectRelationUpdate)(nil), "anytype.Rpc.ObjectRelation.Update") + proto.RegisterType((*RpcObjectRelationUpdateRequest)(nil), "anytype.Rpc.ObjectRelation.Update.Request") + proto.RegisterType((*RpcObjectRelationUpdateResponse)(nil), "anytype.Rpc.ObjectRelation.Update.Response") + proto.RegisterType((*RpcObjectRelationUpdateResponseError)(nil), "anytype.Rpc.ObjectRelation.Update.Response.Error") + proto.RegisterType((*RpcObjectRelationDelete)(nil), "anytype.Rpc.ObjectRelation.Delete") + proto.RegisterType((*RpcObjectRelationDeleteRequest)(nil), "anytype.Rpc.ObjectRelation.Delete.Request") + proto.RegisterType((*RpcObjectRelationDeleteResponse)(nil), "anytype.Rpc.ObjectRelation.Delete.Response") + proto.RegisterType((*RpcObjectRelationDeleteResponseError)(nil), "anytype.Rpc.ObjectRelation.Delete.Response.Error") + proto.RegisterType((*RpcObjectRelationListAvailable)(nil), "anytype.Rpc.ObjectRelation.ListAvailable") + proto.RegisterType((*RpcObjectRelationListAvailableRequest)(nil), "anytype.Rpc.ObjectRelation.ListAvailable.Request") + proto.RegisterType((*RpcObjectRelationListAvailableResponse)(nil), "anytype.Rpc.ObjectRelation.ListAvailable.Response") + proto.RegisterType((*RpcObjectRelationListAvailableResponseError)(nil), "anytype.Rpc.ObjectRelation.ListAvailable.Response.Error") + proto.RegisterType((*RpcObjectRelationAddFeatured)(nil), "anytype.Rpc.ObjectRelation.AddFeatured") + proto.RegisterType((*RpcObjectRelationAddFeaturedRequest)(nil), "anytype.Rpc.ObjectRelation.AddFeatured.Request") + proto.RegisterType((*RpcObjectRelationAddFeaturedResponse)(nil), "anytype.Rpc.ObjectRelation.AddFeatured.Response") + proto.RegisterType((*RpcObjectRelationAddFeaturedResponseError)(nil), "anytype.Rpc.ObjectRelation.AddFeatured.Response.Error") + proto.RegisterType((*RpcObjectRelationRemoveFeatured)(nil), "anytype.Rpc.ObjectRelation.RemoveFeatured") + proto.RegisterType((*RpcObjectRelationRemoveFeaturedRequest)(nil), "anytype.Rpc.ObjectRelation.RemoveFeatured.Request") + proto.RegisterType((*RpcObjectRelationRemoveFeaturedResponse)(nil), "anytype.Rpc.ObjectRelation.RemoveFeatured.Response") + proto.RegisterType((*RpcObjectRelationRemoveFeaturedResponseError)(nil), "anytype.Rpc.ObjectRelation.RemoveFeatured.Response.Error") + proto.RegisterType((*RpcObjectRelationOption)(nil), "anytype.Rpc.ObjectRelationOption") + proto.RegisterType((*RpcObjectRelationOptionAdd)(nil), "anytype.Rpc.ObjectRelationOption.Add") + proto.RegisterType((*RpcObjectRelationOptionAddRequest)(nil), "anytype.Rpc.ObjectRelationOption.Add.Request") + proto.RegisterType((*RpcObjectRelationOptionAddResponse)(nil), "anytype.Rpc.ObjectRelationOption.Add.Response") + proto.RegisterType((*RpcObjectRelationOptionAddResponseError)(nil), "anytype.Rpc.ObjectRelationOption.Add.Response.Error") + proto.RegisterType((*RpcObjectRelationOptionUpdate)(nil), "anytype.Rpc.ObjectRelationOption.Update") + proto.RegisterType((*RpcObjectRelationOptionUpdateRequest)(nil), "anytype.Rpc.ObjectRelationOption.Update.Request") + proto.RegisterType((*RpcObjectRelationOptionUpdateResponse)(nil), "anytype.Rpc.ObjectRelationOption.Update.Response") + proto.RegisterType((*RpcObjectRelationOptionUpdateResponseError)(nil), "anytype.Rpc.ObjectRelationOption.Update.Response.Error") + proto.RegisterType((*RpcObjectRelationOptionDelete)(nil), "anytype.Rpc.ObjectRelationOption.Delete") + proto.RegisterType((*RpcObjectRelationOptionDeleteRequest)(nil), "anytype.Rpc.ObjectRelationOption.Delete.Request") + proto.RegisterType((*RpcObjectRelationOptionDeleteResponse)(nil), "anytype.Rpc.ObjectRelationOption.Delete.Response") + proto.RegisterType((*RpcObjectRelationOptionDeleteResponseError)(nil), "anytype.Rpc.ObjectRelationOption.Delete.Response.Error") proto.RegisterType((*RpcObjectType)(nil), "anytype.Rpc.ObjectType") proto.RegisterType((*RpcObjectTypeList)(nil), "anytype.Rpc.ObjectType.List") proto.RegisterType((*RpcObjectTypeListRequest)(nil), "anytype.Rpc.ObjectType.List.Request") @@ -38973,152 +37203,342 @@ func init() { proto.RegisterType((*RpcObjectTypeRelationListRequest)(nil), "anytype.Rpc.ObjectType.Relation.List.Request") proto.RegisterType((*RpcObjectTypeRelationListResponse)(nil), "anytype.Rpc.ObjectType.Relation.List.Response") proto.RegisterType((*RpcObjectTypeRelationListResponseError)(nil), "anytype.Rpc.ObjectType.Relation.List.Response.Error") - proto.RegisterType((*RpcObject)(nil), "anytype.Rpc.Object") - proto.RegisterType((*RpcObjectShareByLink)(nil), "anytype.Rpc.Object.ShareByLink") - proto.RegisterType((*RpcObjectShareByLinkRequest)(nil), "anytype.Rpc.Object.ShareByLink.Request") - proto.RegisterType((*RpcObjectShareByLinkResponse)(nil), "anytype.Rpc.Object.ShareByLink.Response") - proto.RegisterType((*RpcObjectShareByLinkResponseError)(nil), "anytype.Rpc.Object.ShareByLink.Response.Error") - proto.RegisterType((*RpcObjectAddWithObjectId)(nil), "anytype.Rpc.Object.AddWithObjectId") - proto.RegisterType((*RpcObjectAddWithObjectIdRequest)(nil), "anytype.Rpc.Object.AddWithObjectId.Request") - proto.RegisterType((*RpcObjectAddWithObjectIdResponse)(nil), "anytype.Rpc.Object.AddWithObjectId.Response") - proto.RegisterType((*RpcObjectAddWithObjectIdResponseError)(nil), "anytype.Rpc.Object.AddWithObjectId.Response.Error") - proto.RegisterType((*RpcObjectRelationAdd)(nil), "anytype.Rpc.Object.RelationAdd") - proto.RegisterType((*RpcObjectRelationAddRequest)(nil), "anytype.Rpc.Object.RelationAdd.Request") - proto.RegisterType((*RpcObjectRelationAddResponse)(nil), "anytype.Rpc.Object.RelationAdd.Response") - proto.RegisterType((*RpcObjectRelationAddResponseError)(nil), "anytype.Rpc.Object.RelationAdd.Response.Error") - proto.RegisterType((*RpcObjectRelationUpdate)(nil), "anytype.Rpc.Object.RelationUpdate") - proto.RegisterType((*RpcObjectRelationUpdateRequest)(nil), "anytype.Rpc.Object.RelationUpdate.Request") - proto.RegisterType((*RpcObjectRelationUpdateResponse)(nil), "anytype.Rpc.Object.RelationUpdate.Response") - proto.RegisterType((*RpcObjectRelationUpdateResponseError)(nil), "anytype.Rpc.Object.RelationUpdate.Response.Error") - proto.RegisterType((*RpcObjectRelationDelete)(nil), "anytype.Rpc.Object.RelationDelete") - proto.RegisterType((*RpcObjectRelationDeleteRequest)(nil), "anytype.Rpc.Object.RelationDelete.Request") - proto.RegisterType((*RpcObjectRelationDeleteResponse)(nil), "anytype.Rpc.Object.RelationDelete.Response") - proto.RegisterType((*RpcObjectRelationDeleteResponseError)(nil), "anytype.Rpc.Object.RelationDelete.Response.Error") - proto.RegisterType((*RpcObjectRelationOptionAdd)(nil), "anytype.Rpc.Object.RelationOptionAdd") - proto.RegisterType((*RpcObjectRelationOptionAddRequest)(nil), "anytype.Rpc.Object.RelationOptionAdd.Request") - proto.RegisterType((*RpcObjectRelationOptionAddResponse)(nil), "anytype.Rpc.Object.RelationOptionAdd.Response") - proto.RegisterType((*RpcObjectRelationOptionAddResponseError)(nil), "anytype.Rpc.Object.RelationOptionAdd.Response.Error") - proto.RegisterType((*RpcObjectRelationOptionUpdate)(nil), "anytype.Rpc.Object.RelationOptionUpdate") - proto.RegisterType((*RpcObjectRelationOptionUpdateRequest)(nil), "anytype.Rpc.Object.RelationOptionUpdate.Request") - proto.RegisterType((*RpcObjectRelationOptionUpdateResponse)(nil), "anytype.Rpc.Object.RelationOptionUpdate.Response") - proto.RegisterType((*RpcObjectRelationOptionUpdateResponseError)(nil), "anytype.Rpc.Object.RelationOptionUpdate.Response.Error") - proto.RegisterType((*RpcObjectRelationOptionDelete)(nil), "anytype.Rpc.Object.RelationOptionDelete") - proto.RegisterType((*RpcObjectRelationOptionDeleteRequest)(nil), "anytype.Rpc.Object.RelationOptionDelete.Request") - proto.RegisterType((*RpcObjectRelationOptionDeleteResponse)(nil), "anytype.Rpc.Object.RelationOptionDelete.Response") - proto.RegisterType((*RpcObjectRelationOptionDeleteResponseError)(nil), "anytype.Rpc.Object.RelationOptionDelete.Response.Error") - proto.RegisterType((*RpcObjectRelationListAvailable)(nil), "anytype.Rpc.Object.RelationListAvailable") - proto.RegisterType((*RpcObjectRelationListAvailableRequest)(nil), "anytype.Rpc.Object.RelationListAvailable.Request") - proto.RegisterType((*RpcObjectRelationListAvailableResponse)(nil), "anytype.Rpc.Object.RelationListAvailable.Response") - proto.RegisterType((*RpcObjectRelationListAvailableResponseError)(nil), "anytype.Rpc.Object.RelationListAvailable.Response.Error") - proto.RegisterType((*RpcObjectSearch)(nil), "anytype.Rpc.Object.Search") - proto.RegisterType((*RpcObjectSearchRequest)(nil), "anytype.Rpc.Object.Search.Request") - proto.RegisterType((*RpcObjectSearchResponse)(nil), "anytype.Rpc.Object.Search.Response") - proto.RegisterType((*RpcObjectSearchResponseError)(nil), "anytype.Rpc.Object.Search.Response.Error") - proto.RegisterType((*RpcObjectGraph)(nil), "anytype.Rpc.Object.Graph") - proto.RegisterType((*RpcObjectGraphRequest)(nil), "anytype.Rpc.Object.Graph.Request") - proto.RegisterType((*RpcObjectGraphEdge)(nil), "anytype.Rpc.Object.Graph.Edge") - proto.RegisterType((*RpcObjectGraphResponse)(nil), "anytype.Rpc.Object.Graph.Response") - proto.RegisterType((*RpcObjectGraphResponseError)(nil), "anytype.Rpc.Object.Graph.Response.Error") - proto.RegisterType((*RpcObjectSearchSubscribe)(nil), "anytype.Rpc.Object.SearchSubscribe") - proto.RegisterType((*RpcObjectSearchSubscribeRequest)(nil), "anytype.Rpc.Object.SearchSubscribe.Request") - proto.RegisterType((*RpcObjectSearchSubscribeResponse)(nil), "anytype.Rpc.Object.SearchSubscribe.Response") - proto.RegisterType((*RpcObjectSearchSubscribeResponseError)(nil), "anytype.Rpc.Object.SearchSubscribe.Response.Error") - proto.RegisterType((*RpcObjectIdsSubscribe)(nil), "anytype.Rpc.Object.IdsSubscribe") - proto.RegisterType((*RpcObjectIdsSubscribeRequest)(nil), "anytype.Rpc.Object.IdsSubscribe.Request") - proto.RegisterType((*RpcObjectIdsSubscribeResponse)(nil), "anytype.Rpc.Object.IdsSubscribe.Response") - proto.RegisterType((*RpcObjectIdsSubscribeResponseError)(nil), "anytype.Rpc.Object.IdsSubscribe.Response.Error") - proto.RegisterType((*RpcObjectSearchUnsubscribe)(nil), "anytype.Rpc.Object.SearchUnsubscribe") - proto.RegisterType((*RpcObjectSearchUnsubscribeRequest)(nil), "anytype.Rpc.Object.SearchUnsubscribe.Request") - proto.RegisterType((*RpcObjectSearchUnsubscribeResponse)(nil), "anytype.Rpc.Object.SearchUnsubscribe.Response") - proto.RegisterType((*RpcObjectSearchUnsubscribeResponseError)(nil), "anytype.Rpc.Object.SearchUnsubscribe.Response.Error") - proto.RegisterType((*RpcObjectSetLayout)(nil), "anytype.Rpc.Object.SetLayout") - proto.RegisterType((*RpcObjectSetLayoutRequest)(nil), "anytype.Rpc.Object.SetLayout.Request") - proto.RegisterType((*RpcObjectSetLayoutResponse)(nil), "anytype.Rpc.Object.SetLayout.Response") - proto.RegisterType((*RpcObjectSetLayoutResponseError)(nil), "anytype.Rpc.Object.SetLayout.Response.Error") - proto.RegisterType((*RpcObjectSetIsFavorite)(nil), "anytype.Rpc.Object.SetIsFavorite") - proto.RegisterType((*RpcObjectSetIsFavoriteRequest)(nil), "anytype.Rpc.Object.SetIsFavorite.Request") - proto.RegisterType((*RpcObjectSetIsFavoriteResponse)(nil), "anytype.Rpc.Object.SetIsFavorite.Response") - proto.RegisterType((*RpcObjectSetIsFavoriteResponseError)(nil), "anytype.Rpc.Object.SetIsFavorite.Response.Error") - proto.RegisterType((*RpcObjectSetIsArchived)(nil), "anytype.Rpc.Object.SetIsArchived") - proto.RegisterType((*RpcObjectSetIsArchivedRequest)(nil), "anytype.Rpc.Object.SetIsArchived.Request") - proto.RegisterType((*RpcObjectSetIsArchivedResponse)(nil), "anytype.Rpc.Object.SetIsArchived.Response") - proto.RegisterType((*RpcObjectSetIsArchivedResponseError)(nil), "anytype.Rpc.Object.SetIsArchived.Response.Error") - proto.RegisterType((*RpcObjectFeaturedRelation)(nil), "anytype.Rpc.Object.FeaturedRelation") - proto.RegisterType((*RpcObjectFeaturedRelationAdd)(nil), "anytype.Rpc.Object.FeaturedRelation.Add") - proto.RegisterType((*RpcObjectFeaturedRelationAddRequest)(nil), "anytype.Rpc.Object.FeaturedRelation.Add.Request") - proto.RegisterType((*RpcObjectFeaturedRelationAddResponse)(nil), "anytype.Rpc.Object.FeaturedRelation.Add.Response") - proto.RegisterType((*RpcObjectFeaturedRelationAddResponseError)(nil), "anytype.Rpc.Object.FeaturedRelation.Add.Response.Error") - proto.RegisterType((*RpcObjectFeaturedRelationRemove)(nil), "anytype.Rpc.Object.FeaturedRelation.Remove") - proto.RegisterType((*RpcObjectFeaturedRelationRemoveRequest)(nil), "anytype.Rpc.Object.FeaturedRelation.Remove.Request") - proto.RegisterType((*RpcObjectFeaturedRelationRemoveResponse)(nil), "anytype.Rpc.Object.FeaturedRelation.Remove.Response") - proto.RegisterType((*RpcObjectFeaturedRelationRemoveResponseError)(nil), "anytype.Rpc.Object.FeaturedRelation.Remove.Response.Error") - proto.RegisterType((*RpcObjectToSet)(nil), "anytype.Rpc.Object.ToSet") - proto.RegisterType((*RpcObjectToSetRequest)(nil), "anytype.Rpc.Object.ToSet.Request") - proto.RegisterType((*RpcObjectToSetResponse)(nil), "anytype.Rpc.Object.ToSet.Response") - proto.RegisterType((*RpcObjectToSetResponseError)(nil), "anytype.Rpc.Object.ToSet.Response.Error") - proto.RegisterType((*RpcObjectList)(nil), "anytype.Rpc.ObjectList") - proto.RegisterType((*RpcObjectListDuplicate)(nil), "anytype.Rpc.ObjectList.Duplicate") - proto.RegisterType((*RpcObjectListDuplicateRequest)(nil), "anytype.Rpc.ObjectList.Duplicate.Request") - proto.RegisterType((*RpcObjectListDuplicateResponse)(nil), "anytype.Rpc.ObjectList.Duplicate.Response") - proto.RegisterType((*RpcObjectListDuplicateResponseError)(nil), "anytype.Rpc.ObjectList.Duplicate.Response.Error") - proto.RegisterType((*RpcObjectListDelete)(nil), "anytype.Rpc.ObjectList.Delete") - proto.RegisterType((*RpcObjectListDeleteRequest)(nil), "anytype.Rpc.ObjectList.Delete.Request") - proto.RegisterType((*RpcObjectListDeleteResponse)(nil), "anytype.Rpc.ObjectList.Delete.Response") - proto.RegisterType((*RpcObjectListDeleteResponseError)(nil), "anytype.Rpc.ObjectList.Delete.Response.Error") - proto.RegisterType((*RpcObjectListSet)(nil), "anytype.Rpc.ObjectList.Set") - proto.RegisterType((*RpcObjectListSetIsArchived)(nil), "anytype.Rpc.ObjectList.Set.IsArchived") - proto.RegisterType((*RpcObjectListSetIsArchivedRequest)(nil), "anytype.Rpc.ObjectList.Set.IsArchived.Request") - proto.RegisterType((*RpcObjectListSetIsArchivedResponse)(nil), "anytype.Rpc.ObjectList.Set.IsArchived.Response") - proto.RegisterType((*RpcObjectListSetIsArchivedResponseError)(nil), "anytype.Rpc.ObjectList.Set.IsArchived.Response.Error") - proto.RegisterType((*RpcObjectListSetIsFavorite)(nil), "anytype.Rpc.ObjectList.Set.IsFavorite") - proto.RegisterType((*RpcObjectListSetIsFavoriteRequest)(nil), "anytype.Rpc.ObjectList.Set.IsFavorite.Request") - proto.RegisterType((*RpcObjectListSetIsFavoriteResponse)(nil), "anytype.Rpc.ObjectList.Set.IsFavorite.Response") - proto.RegisterType((*RpcObjectListSetIsFavoriteResponseError)(nil), "anytype.Rpc.ObjectList.Set.IsFavorite.Response.Error") - proto.RegisterType((*RpcExport)(nil), "anytype.Rpc.Export") - proto.RegisterType((*RpcExportRequest)(nil), "anytype.Rpc.Export.Request") - proto.RegisterType((*RpcExportResponse)(nil), "anytype.Rpc.Export.Response") - proto.RegisterType((*RpcExportResponseError)(nil), "anytype.Rpc.Export.Response.Error") - proto.RegisterType((*RpcExportWorkspace)(nil), "anytype.Rpc.ExportWorkspace") - proto.RegisterType((*RpcExportWorkspaceRequest)(nil), "anytype.Rpc.ExportWorkspace.Request") - proto.RegisterType((*RpcExportWorkspaceResponse)(nil), "anytype.Rpc.ExportWorkspace.Response") - proto.RegisterType((*RpcExportWorkspaceResponseError)(nil), "anytype.Rpc.ExportWorkspace.Response.Error") - proto.RegisterType((*RpcExportTemplates)(nil), "anytype.Rpc.ExportTemplates") - proto.RegisterType((*RpcExportTemplatesRequest)(nil), "anytype.Rpc.ExportTemplates.Request") - proto.RegisterType((*RpcExportTemplatesResponse)(nil), "anytype.Rpc.ExportTemplates.Response") - proto.RegisterType((*RpcExportTemplatesResponseError)(nil), "anytype.Rpc.ExportTemplates.Response.Error") - proto.RegisterType((*RpcExportLocalstore)(nil), "anytype.Rpc.ExportLocalstore") - proto.RegisterType((*RpcExportLocalstoreRequest)(nil), "anytype.Rpc.ExportLocalstore.Request") - proto.RegisterType((*RpcExportLocalstoreResponse)(nil), "anytype.Rpc.ExportLocalstore.Response") - proto.RegisterType((*RpcExportLocalstoreResponseError)(nil), "anytype.Rpc.ExportLocalstore.Response.Error") - proto.RegisterType((*RpcMakeTemplate)(nil), "anytype.Rpc.MakeTemplate") - proto.RegisterType((*RpcMakeTemplateRequest)(nil), "anytype.Rpc.MakeTemplate.Request") - proto.RegisterType((*RpcMakeTemplateResponse)(nil), "anytype.Rpc.MakeTemplate.Response") - proto.RegisterType((*RpcMakeTemplateResponseError)(nil), "anytype.Rpc.MakeTemplate.Response.Error") - proto.RegisterType((*RpcMakeTemplateByObjectType)(nil), "anytype.Rpc.MakeTemplateByObjectType") - proto.RegisterType((*RpcMakeTemplateByObjectTypeRequest)(nil), "anytype.Rpc.MakeTemplateByObjectType.Request") - proto.RegisterType((*RpcMakeTemplateByObjectTypeResponse)(nil), "anytype.Rpc.MakeTemplateByObjectType.Response") - proto.RegisterType((*RpcMakeTemplateByObjectTypeResponseError)(nil), "anytype.Rpc.MakeTemplateByObjectType.Response.Error") - proto.RegisterType((*RpcCloneTemplate)(nil), "anytype.Rpc.CloneTemplate") - proto.RegisterType((*RpcCloneTemplateRequest)(nil), "anytype.Rpc.CloneTemplate.Request") - proto.RegisterType((*RpcCloneTemplateResponse)(nil), "anytype.Rpc.CloneTemplate.Response") - proto.RegisterType((*RpcCloneTemplateResponseError)(nil), "anytype.Rpc.CloneTemplate.Response.Error") - proto.RegisterType((*RpcObjectDuplicate)(nil), "anytype.Rpc.ObjectDuplicate") - proto.RegisterType((*RpcObjectDuplicateRequest)(nil), "anytype.Rpc.ObjectDuplicate.Request") - proto.RegisterType((*RpcObjectDuplicateResponse)(nil), "anytype.Rpc.ObjectDuplicate.Response") - proto.RegisterType((*RpcObjectDuplicateResponseError)(nil), "anytype.Rpc.ObjectDuplicate.Response.Error") - proto.RegisterType((*RpcUnsplashSearch)(nil), "anytype.Rpc.UnsplashSearch") - proto.RegisterType((*RpcUnsplashSearchRequest)(nil), "anytype.Rpc.UnsplashSearch.Request") - proto.RegisterType((*RpcUnsplashSearchResponse)(nil), "anytype.Rpc.UnsplashSearch.Response") - proto.RegisterType((*RpcUnsplashSearchResponsePicture)(nil), "anytype.Rpc.UnsplashSearch.Response.Picture") - proto.RegisterType((*RpcUnsplashSearchResponseError)(nil), "anytype.Rpc.UnsplashSearch.Response.Error") - proto.RegisterType((*RpcUnsplashDownload)(nil), "anytype.Rpc.UnsplashDownload") - proto.RegisterType((*RpcUnsplashDownloadRequest)(nil), "anytype.Rpc.UnsplashDownload.Request") - proto.RegisterType((*RpcUnsplashDownloadResponse)(nil), "anytype.Rpc.UnsplashDownload.Response") - proto.RegisterType((*RpcUnsplashDownloadResponseError)(nil), "anytype.Rpc.UnsplashDownload.Response.Error") - proto.RegisterType((*RpcApplyTemplate)(nil), "anytype.Rpc.ApplyTemplate") - proto.RegisterType((*RpcApplyTemplateRequest)(nil), "anytype.Rpc.ApplyTemplate.Request") - proto.RegisterType((*RpcApplyTemplateResponse)(nil), "anytype.Rpc.ApplyTemplate.Response") - proto.RegisterType((*RpcApplyTemplateResponseError)(nil), "anytype.Rpc.ApplyTemplate.Response.Error") + proto.RegisterType((*RpcHistory)(nil), "anytype.Rpc.History") + proto.RegisterType((*RpcHistoryVersion)(nil), "anytype.Rpc.History.Version") + proto.RegisterType((*RpcHistoryGetVersions)(nil), "anytype.Rpc.History.GetVersions") + proto.RegisterType((*RpcHistoryGetVersionsRequest)(nil), "anytype.Rpc.History.GetVersions.Request") + proto.RegisterType((*RpcHistoryGetVersionsResponse)(nil), "anytype.Rpc.History.GetVersions.Response") + proto.RegisterType((*RpcHistoryGetVersionsResponseError)(nil), "anytype.Rpc.History.GetVersions.Response.Error") + proto.RegisterType((*RpcHistoryShowVersion)(nil), "anytype.Rpc.History.ShowVersion") + proto.RegisterType((*RpcHistoryShowVersionRequest)(nil), "anytype.Rpc.History.ShowVersion.Request") + proto.RegisterType((*RpcHistoryShowVersionResponse)(nil), "anytype.Rpc.History.ShowVersion.Response") + proto.RegisterType((*RpcHistoryShowVersionResponseError)(nil), "anytype.Rpc.History.ShowVersion.Response.Error") + proto.RegisterType((*RpcHistorySetVersion)(nil), "anytype.Rpc.History.SetVersion") + proto.RegisterType((*RpcHistorySetVersionRequest)(nil), "anytype.Rpc.History.SetVersion.Request") + proto.RegisterType((*RpcHistorySetVersionResponse)(nil), "anytype.Rpc.History.SetVersion.Response") + proto.RegisterType((*RpcHistorySetVersionResponseError)(nil), "anytype.Rpc.History.SetVersion.Response.Error") + proto.RegisterType((*RpcFile)(nil), "anytype.Rpc.File") + proto.RegisterType((*RpcFileOffload)(nil), "anytype.Rpc.File.Offload") + proto.RegisterType((*RpcFileOffloadRequest)(nil), "anytype.Rpc.File.Offload.Request") + proto.RegisterType((*RpcFileOffloadResponse)(nil), "anytype.Rpc.File.Offload.Response") + proto.RegisterType((*RpcFileOffloadResponseError)(nil), "anytype.Rpc.File.Offload.Response.Error") + proto.RegisterType((*RpcFileListOffload)(nil), "anytype.Rpc.File.ListOffload") + proto.RegisterType((*RpcFileListOffloadRequest)(nil), "anytype.Rpc.File.ListOffload.Request") + proto.RegisterType((*RpcFileListOffloadResponse)(nil), "anytype.Rpc.File.ListOffload.Response") + proto.RegisterType((*RpcFileListOffloadResponseError)(nil), "anytype.Rpc.File.ListOffload.Response.Error") + proto.RegisterType((*RpcFileUpload)(nil), "anytype.Rpc.File.Upload") + proto.RegisterType((*RpcFileUploadRequest)(nil), "anytype.Rpc.File.Upload.Request") + proto.RegisterType((*RpcFileUploadResponse)(nil), "anytype.Rpc.File.Upload.Response") + proto.RegisterType((*RpcFileUploadResponseError)(nil), "anytype.Rpc.File.Upload.Response.Error") + proto.RegisterType((*RpcFileDownload)(nil), "anytype.Rpc.File.Download") + proto.RegisterType((*RpcFileDownloadRequest)(nil), "anytype.Rpc.File.Download.Request") + proto.RegisterType((*RpcFileDownloadResponse)(nil), "anytype.Rpc.File.Download.Response") + proto.RegisterType((*RpcFileDownloadResponseError)(nil), "anytype.Rpc.File.Download.Response.Error") + proto.RegisterType((*RpcFileDrop)(nil), "anytype.Rpc.File.Drop") + proto.RegisterType((*RpcFileDropRequest)(nil), "anytype.Rpc.File.Drop.Request") + proto.RegisterType((*RpcFileDropResponse)(nil), "anytype.Rpc.File.Drop.Response") + proto.RegisterType((*RpcFileDropResponseError)(nil), "anytype.Rpc.File.Drop.Response.Error") + proto.RegisterType((*RpcNavigation)(nil), "anytype.Rpc.Navigation") + proto.RegisterType((*RpcNavigationListObjects)(nil), "anytype.Rpc.Navigation.ListObjects") + proto.RegisterType((*RpcNavigationListObjectsRequest)(nil), "anytype.Rpc.Navigation.ListObjects.Request") + proto.RegisterType((*RpcNavigationListObjectsResponse)(nil), "anytype.Rpc.Navigation.ListObjects.Response") + proto.RegisterType((*RpcNavigationListObjectsResponseError)(nil), "anytype.Rpc.Navigation.ListObjects.Response.Error") + proto.RegisterType((*RpcNavigationGetObjectInfoWithLinks)(nil), "anytype.Rpc.Navigation.GetObjectInfoWithLinks") + proto.RegisterType((*RpcNavigationGetObjectInfoWithLinksRequest)(nil), "anytype.Rpc.Navigation.GetObjectInfoWithLinks.Request") + proto.RegisterType((*RpcNavigationGetObjectInfoWithLinksResponse)(nil), "anytype.Rpc.Navigation.GetObjectInfoWithLinks.Response") + proto.RegisterType((*RpcNavigationGetObjectInfoWithLinksResponseError)(nil), "anytype.Rpc.Navigation.GetObjectInfoWithLinks.Response.Error") + proto.RegisterType((*RpcTemplate)(nil), "anytype.Rpc.Template") + proto.RegisterType((*RpcTemplateCreateFromObject)(nil), "anytype.Rpc.Template.CreateFromObject") + proto.RegisterType((*RpcTemplateCreateFromObjectRequest)(nil), "anytype.Rpc.Template.CreateFromObject.Request") + proto.RegisterType((*RpcTemplateCreateFromObjectResponse)(nil), "anytype.Rpc.Template.CreateFromObject.Response") + proto.RegisterType((*RpcTemplateCreateFromObjectResponseError)(nil), "anytype.Rpc.Template.CreateFromObject.Response.Error") + proto.RegisterType((*RpcTemplateCreateFromObjectType)(nil), "anytype.Rpc.Template.CreateFromObjectType") + proto.RegisterType((*RpcTemplateCreateFromObjectTypeRequest)(nil), "anytype.Rpc.Template.CreateFromObjectType.Request") + proto.RegisterType((*RpcTemplateCreateFromObjectTypeResponse)(nil), "anytype.Rpc.Template.CreateFromObjectType.Response") + proto.RegisterType((*RpcTemplateCreateFromObjectTypeResponseError)(nil), "anytype.Rpc.Template.CreateFromObjectType.Response.Error") + proto.RegisterType((*RpcTemplateClone)(nil), "anytype.Rpc.Template.Clone") + proto.RegisterType((*RpcTemplateCloneRequest)(nil), "anytype.Rpc.Template.Clone.Request") + proto.RegisterType((*RpcTemplateCloneResponse)(nil), "anytype.Rpc.Template.Clone.Response") + proto.RegisterType((*RpcTemplateCloneResponseError)(nil), "anytype.Rpc.Template.Clone.Response.Error") + proto.RegisterType((*RpcTemplateExportAll)(nil), "anytype.Rpc.Template.ExportAll") + proto.RegisterType((*RpcTemplateExportAllRequest)(nil), "anytype.Rpc.Template.ExportAll.Request") + proto.RegisterType((*RpcTemplateExportAllResponse)(nil), "anytype.Rpc.Template.ExportAll.Response") + proto.RegisterType((*RpcTemplateExportAllResponseError)(nil), "anytype.Rpc.Template.ExportAll.Response.Error") + proto.RegisterType((*RpcLinkPreview)(nil), "anytype.Rpc.LinkPreview") + proto.RegisterType((*RpcLinkPreviewRequest)(nil), "anytype.Rpc.LinkPreview.Request") + proto.RegisterType((*RpcLinkPreviewResponse)(nil), "anytype.Rpc.LinkPreview.Response") + proto.RegisterType((*RpcLinkPreviewResponseError)(nil), "anytype.Rpc.LinkPreview.Response.Error") + proto.RegisterType((*RpcUnsplash)(nil), "anytype.Rpc.Unsplash") + proto.RegisterType((*RpcUnsplashSearch)(nil), "anytype.Rpc.Unsplash.Search") + proto.RegisterType((*RpcUnsplashSearchRequest)(nil), "anytype.Rpc.Unsplash.Search.Request") + proto.RegisterType((*RpcUnsplashSearchResponse)(nil), "anytype.Rpc.Unsplash.Search.Response") + proto.RegisterType((*RpcUnsplashSearchResponsePicture)(nil), "anytype.Rpc.Unsplash.Search.Response.Picture") + proto.RegisterType((*RpcUnsplashSearchResponseError)(nil), "anytype.Rpc.Unsplash.Search.Response.Error") + proto.RegisterType((*RpcUnsplashDownload)(nil), "anytype.Rpc.Unsplash.Download") + proto.RegisterType((*RpcUnsplashDownloadRequest)(nil), "anytype.Rpc.Unsplash.Download.Request") + proto.RegisterType((*RpcUnsplashDownloadResponse)(nil), "anytype.Rpc.Unsplash.Download.Response") + proto.RegisterType((*RpcUnsplashDownloadResponseError)(nil), "anytype.Rpc.Unsplash.Download.Response.Error") + proto.RegisterType((*RpcBlock)(nil), "anytype.Rpc.Block") + proto.RegisterType((*RpcBlockReplace)(nil), "anytype.Rpc.Block.Replace") + proto.RegisterType((*RpcBlockReplaceRequest)(nil), "anytype.Rpc.Block.Replace.Request") + proto.RegisterType((*RpcBlockReplaceResponse)(nil), "anytype.Rpc.Block.Replace.Response") + proto.RegisterType((*RpcBlockReplaceResponseError)(nil), "anytype.Rpc.Block.Replace.Response.Error") + proto.RegisterType((*RpcBlockSplit)(nil), "anytype.Rpc.Block.Split") + proto.RegisterType((*RpcBlockSplitRequest)(nil), "anytype.Rpc.Block.Split.Request") + proto.RegisterType((*RpcBlockSplitResponse)(nil), "anytype.Rpc.Block.Split.Response") + proto.RegisterType((*RpcBlockSplitResponseError)(nil), "anytype.Rpc.Block.Split.Response.Error") + proto.RegisterType((*RpcBlockMerge)(nil), "anytype.Rpc.Block.Merge") + proto.RegisterType((*RpcBlockMergeRequest)(nil), "anytype.Rpc.Block.Merge.Request") + proto.RegisterType((*RpcBlockMergeResponse)(nil), "anytype.Rpc.Block.Merge.Response") + proto.RegisterType((*RpcBlockMergeResponseError)(nil), "anytype.Rpc.Block.Merge.Response.Error") + proto.RegisterType((*RpcBlockCopy)(nil), "anytype.Rpc.Block.Copy") + proto.RegisterType((*RpcBlockCopyRequest)(nil), "anytype.Rpc.Block.Copy.Request") + proto.RegisterType((*RpcBlockCopyResponse)(nil), "anytype.Rpc.Block.Copy.Response") + proto.RegisterType((*RpcBlockCopyResponseError)(nil), "anytype.Rpc.Block.Copy.Response.Error") + proto.RegisterType((*RpcBlockPaste)(nil), "anytype.Rpc.Block.Paste") + proto.RegisterType((*RpcBlockPasteRequest)(nil), "anytype.Rpc.Block.Paste.Request") + proto.RegisterType((*RpcBlockPasteRequestFile)(nil), "anytype.Rpc.Block.Paste.Request.File") + proto.RegisterType((*RpcBlockPasteResponse)(nil), "anytype.Rpc.Block.Paste.Response") + proto.RegisterType((*RpcBlockPasteResponseError)(nil), "anytype.Rpc.Block.Paste.Response.Error") + proto.RegisterType((*RpcBlockCut)(nil), "anytype.Rpc.Block.Cut") + proto.RegisterType((*RpcBlockCutRequest)(nil), "anytype.Rpc.Block.Cut.Request") + proto.RegisterType((*RpcBlockCutResponse)(nil), "anytype.Rpc.Block.Cut.Response") + proto.RegisterType((*RpcBlockCutResponseError)(nil), "anytype.Rpc.Block.Cut.Response.Error") + proto.RegisterType((*RpcBlockUpload)(nil), "anytype.Rpc.Block.Upload") + proto.RegisterType((*RpcBlockUploadRequest)(nil), "anytype.Rpc.Block.Upload.Request") + proto.RegisterType((*RpcBlockUploadResponse)(nil), "anytype.Rpc.Block.Upload.Response") + proto.RegisterType((*RpcBlockUploadResponseError)(nil), "anytype.Rpc.Block.Upload.Response.Error") + proto.RegisterType((*RpcBlockDownload)(nil), "anytype.Rpc.Block.Download") + proto.RegisterType((*RpcBlockDownloadRequest)(nil), "anytype.Rpc.Block.Download.Request") + proto.RegisterType((*RpcBlockDownloadResponse)(nil), "anytype.Rpc.Block.Download.Response") + proto.RegisterType((*RpcBlockDownloadResponseError)(nil), "anytype.Rpc.Block.Download.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((*RpcBlockListDelete)(nil), "anytype.Rpc.Block.ListDelete") + proto.RegisterType((*RpcBlockListDeleteRequest)(nil), "anytype.Rpc.Block.ListDelete.Request") + proto.RegisterType((*RpcBlockListDeleteResponse)(nil), "anytype.Rpc.Block.ListDelete.Response") + proto.RegisterType((*RpcBlockListDeleteResponseError)(nil), "anytype.Rpc.Block.ListDelete.Response.Error") + proto.RegisterType((*RpcBlockSetFields)(nil), "anytype.Rpc.Block.SetFields") + proto.RegisterType((*RpcBlockSetFieldsRequest)(nil), "anytype.Rpc.Block.SetFields.Request") + proto.RegisterType((*RpcBlockSetFieldsResponse)(nil), "anytype.Rpc.Block.SetFields.Response") + proto.RegisterType((*RpcBlockSetFieldsResponseError)(nil), "anytype.Rpc.Block.SetFields.Response.Error") + proto.RegisterType((*RpcBlockListSetAlign)(nil), "anytype.Rpc.Block.ListSetAlign") + proto.RegisterType((*RpcBlockListSetAlignRequest)(nil), "anytype.Rpc.Block.ListSetAlign.Request") + proto.RegisterType((*RpcBlockListSetAlignResponse)(nil), "anytype.Rpc.Block.ListSetAlign.Response") + proto.RegisterType((*RpcBlockListSetAlignResponseError)(nil), "anytype.Rpc.Block.ListSetAlign.Response.Error") + proto.RegisterType((*RpcBlockListSetFields)(nil), "anytype.Rpc.Block.ListSetFields") + proto.RegisterType((*RpcBlockListSetFieldsRequest)(nil), "anytype.Rpc.Block.ListSetFields.Request") + proto.RegisterType((*RpcBlockListSetFieldsRequestBlockField)(nil), "anytype.Rpc.Block.ListSetFields.Request.BlockField") + proto.RegisterType((*RpcBlockListSetFieldsResponse)(nil), "anytype.Rpc.Block.ListSetFields.Response") + proto.RegisterType((*RpcBlockListSetFieldsResponseError)(nil), "anytype.Rpc.Block.ListSetFields.Response.Error") + proto.RegisterType((*RpcBlockListDuplicate)(nil), "anytype.Rpc.Block.ListDuplicate") + proto.RegisterType((*RpcBlockListDuplicateRequest)(nil), "anytype.Rpc.Block.ListDuplicate.Request") + proto.RegisterType((*RpcBlockListDuplicateResponse)(nil), "anytype.Rpc.Block.ListDuplicate.Response") + proto.RegisterType((*RpcBlockListDuplicateResponseError)(nil), "anytype.Rpc.Block.ListDuplicate.Response.Error") + proto.RegisterType((*RpcBlockListUpdate)(nil), "anytype.Rpc.Block.ListUpdate") + proto.RegisterType((*RpcBlockListUpdateRequest)(nil), "anytype.Rpc.Block.ListUpdate.Request") + proto.RegisterType((*RpcBlockListUpdateRequestText)(nil), "anytype.Rpc.Block.ListUpdate.Request.Text") + proto.RegisterType((*RpcBlockListConvertToObjects)(nil), "anytype.Rpc.Block.ListConvertToObjects") + proto.RegisterType((*RpcBlockListConvertToObjectsRequest)(nil), "anytype.Rpc.Block.ListConvertToObjects.Request") + proto.RegisterType((*RpcBlockListConvertToObjectsResponse)(nil), "anytype.Rpc.Block.ListConvertToObjects.Response") + proto.RegisterType((*RpcBlockListConvertToObjectsResponseError)(nil), "anytype.Rpc.Block.ListConvertToObjects.Response.Error") + proto.RegisterType((*RpcBlockListMoveToExistingObject)(nil), "anytype.Rpc.Block.ListMoveToExistingObject") + proto.RegisterType((*RpcBlockListMoveToExistingObjectRequest)(nil), "anytype.Rpc.Block.ListMoveToExistingObject.Request") + proto.RegisterType((*RpcBlockListMoveToExistingObjectResponse)(nil), "anytype.Rpc.Block.ListMoveToExistingObject.Response") + proto.RegisterType((*RpcBlockListMoveToExistingObjectResponseError)(nil), "anytype.Rpc.Block.ListMoveToExistingObject.Response.Error") + proto.RegisterType((*RpcBlockListMoveToNewObject)(nil), "anytype.Rpc.Block.ListMoveToNewObject") + proto.RegisterType((*RpcBlockListMoveToNewObjectRequest)(nil), "anytype.Rpc.Block.ListMoveToNewObject.Request") + proto.RegisterType((*RpcBlockListMoveToNewObjectResponse)(nil), "anytype.Rpc.Block.ListMoveToNewObject.Response") + proto.RegisterType((*RpcBlockListMoveToNewObjectResponseError)(nil), "anytype.Rpc.Block.ListMoveToNewObject.Response.Error") + proto.RegisterType((*RpcBlockListTurnInto)(nil), "anytype.Rpc.Block.ListTurnInto") + proto.RegisterType((*RpcBlockListTurnIntoRequest)(nil), "anytype.Rpc.Block.ListTurnInto.Request") + proto.RegisterType((*RpcBlockListTurnIntoResponse)(nil), "anytype.Rpc.Block.ListTurnInto.Response") + proto.RegisterType((*RpcBlockListTurnIntoResponseError)(nil), "anytype.Rpc.Block.ListTurnInto.Response.Error") + proto.RegisterType((*RpcBlockListSetBackgroundColor)(nil), "anytype.Rpc.Block.ListSetBackgroundColor") + proto.RegisterType((*RpcBlockListSetBackgroundColorRequest)(nil), "anytype.Rpc.Block.ListSetBackgroundColor.Request") + proto.RegisterType((*RpcBlockListSetBackgroundColorResponse)(nil), "anytype.Rpc.Block.ListSetBackgroundColor.Response") + proto.RegisterType((*RpcBlockListSetBackgroundColorResponseError)(nil), "anytype.Rpc.Block.ListSetBackgroundColor.Response.Error") + proto.RegisterType((*RpcBlockExport)(nil), "anytype.Rpc.Block.Export") + proto.RegisterType((*RpcBlockExportRequest)(nil), "anytype.Rpc.Block.Export.Request") + proto.RegisterType((*RpcBlockExportResponse)(nil), "anytype.Rpc.Block.Export.Response") + proto.RegisterType((*RpcBlockExportResponseError)(nil), "anytype.Rpc.Block.Export.Response.Error") + proto.RegisterType((*RpcBlockLatex)(nil), "anytype.Rpc.BlockLatex") + proto.RegisterType((*RpcBlockLatexSetText)(nil), "anytype.Rpc.BlockLatex.SetText") + proto.RegisterType((*RpcBlockLatexSetTextRequest)(nil), "anytype.Rpc.BlockLatex.SetText.Request") + proto.RegisterType((*RpcBlockLatexSetTextResponse)(nil), "anytype.Rpc.BlockLatex.SetText.Response") + proto.RegisterType((*RpcBlockLatexSetTextResponseError)(nil), "anytype.Rpc.BlockLatex.SetText.Response.Error") + proto.RegisterType((*RpcBlockText)(nil), "anytype.Rpc.BlockText") + proto.RegisterType((*RpcBlockTextSetText)(nil), "anytype.Rpc.BlockText.SetText") + proto.RegisterType((*RpcBlockTextSetTextRequest)(nil), "anytype.Rpc.BlockText.SetText.Request") + proto.RegisterType((*RpcBlockTextSetTextResponse)(nil), "anytype.Rpc.BlockText.SetText.Response") + proto.RegisterType((*RpcBlockTextSetTextResponseError)(nil), "anytype.Rpc.BlockText.SetText.Response.Error") + proto.RegisterType((*RpcBlockTextSetColor)(nil), "anytype.Rpc.BlockText.SetColor") + proto.RegisterType((*RpcBlockTextSetColorRequest)(nil), "anytype.Rpc.BlockText.SetColor.Request") + proto.RegisterType((*RpcBlockTextSetColorResponse)(nil), "anytype.Rpc.BlockText.SetColor.Response") + proto.RegisterType((*RpcBlockTextSetColorResponseError)(nil), "anytype.Rpc.BlockText.SetColor.Response.Error") + proto.RegisterType((*RpcBlockTextSetMarks)(nil), "anytype.Rpc.BlockText.SetMarks") + proto.RegisterType((*RpcBlockTextSetMarksGet)(nil), "anytype.Rpc.BlockText.SetMarks.Get") + proto.RegisterType((*RpcBlockTextSetMarksGetRequest)(nil), "anytype.Rpc.BlockText.SetMarks.Get.Request") + proto.RegisterType((*RpcBlockTextSetMarksGetResponse)(nil), "anytype.Rpc.BlockText.SetMarks.Get.Response") + proto.RegisterType((*RpcBlockTextSetMarksGetResponseError)(nil), "anytype.Rpc.BlockText.SetMarks.Get.Response.Error") + proto.RegisterType((*RpcBlockTextSetStyle)(nil), "anytype.Rpc.BlockText.SetStyle") + proto.RegisterType((*RpcBlockTextSetStyleRequest)(nil), "anytype.Rpc.BlockText.SetStyle.Request") + proto.RegisterType((*RpcBlockTextSetStyleResponse)(nil), "anytype.Rpc.BlockText.SetStyle.Response") + proto.RegisterType((*RpcBlockTextSetStyleResponseError)(nil), "anytype.Rpc.BlockText.SetStyle.Response.Error") + proto.RegisterType((*RpcBlockTextSetChecked)(nil), "anytype.Rpc.BlockText.SetChecked") + proto.RegisterType((*RpcBlockTextSetCheckedRequest)(nil), "anytype.Rpc.BlockText.SetChecked.Request") + proto.RegisterType((*RpcBlockTextSetCheckedResponse)(nil), "anytype.Rpc.BlockText.SetChecked.Response") + proto.RegisterType((*RpcBlockTextSetCheckedResponseError)(nil), "anytype.Rpc.BlockText.SetChecked.Response.Error") + proto.RegisterType((*RpcBlockTextSetIcon)(nil), "anytype.Rpc.BlockText.SetIcon") + proto.RegisterType((*RpcBlockTextSetIconRequest)(nil), "anytype.Rpc.BlockText.SetIcon.Request") + proto.RegisterType((*RpcBlockTextSetIconResponse)(nil), "anytype.Rpc.BlockText.SetIcon.Response") + proto.RegisterType((*RpcBlockTextSetIconResponseError)(nil), "anytype.Rpc.BlockText.SetIcon.Response.Error") + proto.RegisterType((*RpcBlockTextListSetStyle)(nil), "anytype.Rpc.BlockText.ListSetStyle") + proto.RegisterType((*RpcBlockTextListSetStyleRequest)(nil), "anytype.Rpc.BlockText.ListSetStyle.Request") + proto.RegisterType((*RpcBlockTextListSetStyleResponse)(nil), "anytype.Rpc.BlockText.ListSetStyle.Response") + proto.RegisterType((*RpcBlockTextListSetStyleResponseError)(nil), "anytype.Rpc.BlockText.ListSetStyle.Response.Error") + proto.RegisterType((*RpcBlockTextListSetColor)(nil), "anytype.Rpc.BlockText.ListSetColor") + proto.RegisterType((*RpcBlockTextListSetColorRequest)(nil), "anytype.Rpc.BlockText.ListSetColor.Request") + proto.RegisterType((*RpcBlockTextListSetColorResponse)(nil), "anytype.Rpc.BlockText.ListSetColor.Response") + proto.RegisterType((*RpcBlockTextListSetColorResponseError)(nil), "anytype.Rpc.BlockText.ListSetColor.Response.Error") + proto.RegisterType((*RpcBlockTextListSetMark)(nil), "anytype.Rpc.BlockText.ListSetMark") + proto.RegisterType((*RpcBlockTextListSetMarkRequest)(nil), "anytype.Rpc.BlockText.ListSetMark.Request") + proto.RegisterType((*RpcBlockTextListSetMarkResponse)(nil), "anytype.Rpc.BlockText.ListSetMark.Response") + proto.RegisterType((*RpcBlockTextListSetMarkResponseError)(nil), "anytype.Rpc.BlockText.ListSetMark.Response.Error") + proto.RegisterType((*RpcBlockFile)(nil), "anytype.Rpc.BlockFile") + proto.RegisterType((*RpcBlockFileSetName)(nil), "anytype.Rpc.BlockFile.SetName") + proto.RegisterType((*RpcBlockFileSetNameRequest)(nil), "anytype.Rpc.BlockFile.SetName.Request") + proto.RegisterType((*RpcBlockFileSetNameResponse)(nil), "anytype.Rpc.BlockFile.SetName.Response") + proto.RegisterType((*RpcBlockFileSetNameResponseError)(nil), "anytype.Rpc.BlockFile.SetName.Response.Error") + proto.RegisterType((*RpcBlockFileCreateAndUpload)(nil), "anytype.Rpc.BlockFile.CreateAndUpload") + proto.RegisterType((*RpcBlockFileCreateAndUploadRequest)(nil), "anytype.Rpc.BlockFile.CreateAndUpload.Request") + proto.RegisterType((*RpcBlockFileCreateAndUploadResponse)(nil), "anytype.Rpc.BlockFile.CreateAndUpload.Response") + proto.RegisterType((*RpcBlockFileCreateAndUploadResponseError)(nil), "anytype.Rpc.BlockFile.CreateAndUpload.Response.Error") + proto.RegisterType((*RpcBlockFileListSetStyle)(nil), "anytype.Rpc.BlockFile.ListSetStyle") + proto.RegisterType((*RpcBlockFileListSetStyleRequest)(nil), "anytype.Rpc.BlockFile.ListSetStyle.Request") + proto.RegisterType((*RpcBlockFileListSetStyleResponse)(nil), "anytype.Rpc.BlockFile.ListSetStyle.Response") + proto.RegisterType((*RpcBlockFileListSetStyleResponseError)(nil), "anytype.Rpc.BlockFile.ListSetStyle.Response.Error") + proto.RegisterType((*RpcBlockImage)(nil), "anytype.Rpc.BlockImage") + proto.RegisterType((*RpcBlockImageSetName)(nil), "anytype.Rpc.BlockImage.SetName") + proto.RegisterType((*RpcBlockImageSetNameRequest)(nil), "anytype.Rpc.BlockImage.SetName.Request") + proto.RegisterType((*RpcBlockImageSetNameResponse)(nil), "anytype.Rpc.BlockImage.SetName.Response") + proto.RegisterType((*RpcBlockImageSetNameResponseError)(nil), "anytype.Rpc.BlockImage.SetName.Response.Error") + proto.RegisterType((*RpcBlockImageSetWidth)(nil), "anytype.Rpc.BlockImage.SetWidth") + proto.RegisterType((*RpcBlockImageSetWidthRequest)(nil), "anytype.Rpc.BlockImage.SetWidth.Request") + proto.RegisterType((*RpcBlockImageSetWidthResponse)(nil), "anytype.Rpc.BlockImage.SetWidth.Response") + proto.RegisterType((*RpcBlockImageSetWidthResponseError)(nil), "anytype.Rpc.BlockImage.SetWidth.Response.Error") + proto.RegisterType((*RpcBlockVideo)(nil), "anytype.Rpc.BlockVideo") + proto.RegisterType((*RpcBlockVideoSetName)(nil), "anytype.Rpc.BlockVideo.SetName") + proto.RegisterType((*RpcBlockVideoSetNameRequest)(nil), "anytype.Rpc.BlockVideo.SetName.Request") + proto.RegisterType((*RpcBlockVideoSetNameResponse)(nil), "anytype.Rpc.BlockVideo.SetName.Response") + proto.RegisterType((*RpcBlockVideoSetNameResponseError)(nil), "anytype.Rpc.BlockVideo.SetName.Response.Error") + proto.RegisterType((*RpcBlockVideoSetWidth)(nil), "anytype.Rpc.BlockVideo.SetWidth") + proto.RegisterType((*RpcBlockVideoSetWidthRequest)(nil), "anytype.Rpc.BlockVideo.SetWidth.Request") + proto.RegisterType((*RpcBlockVideoSetWidthResponse)(nil), "anytype.Rpc.BlockVideo.SetWidth.Response") + proto.RegisterType((*RpcBlockVideoSetWidthResponseError)(nil), "anytype.Rpc.BlockVideo.SetWidth.Response.Error") + proto.RegisterType((*RpcBlockLink)(nil), "anytype.Rpc.BlockLink") + proto.RegisterType((*RpcBlockLinkCreateWithObject)(nil), "anytype.Rpc.BlockLink.CreateWithObject") + proto.RegisterType((*RpcBlockLinkCreateWithObjectRequest)(nil), "anytype.Rpc.BlockLink.CreateWithObject.Request") + proto.RegisterType((*RpcBlockLinkCreateWithObjectResponse)(nil), "anytype.Rpc.BlockLink.CreateWithObject.Response") + proto.RegisterType((*RpcBlockLinkCreateWithObjectResponseError)(nil), "anytype.Rpc.BlockLink.CreateWithObject.Response.Error") + proto.RegisterType((*RpcBlockLinkListSetAppearance)(nil), "anytype.Rpc.BlockLink.ListSetAppearance") + proto.RegisterType((*RpcBlockLinkListSetAppearanceRequest)(nil), "anytype.Rpc.BlockLink.ListSetAppearance.Request") + proto.RegisterType((*RpcBlockLinkListSetAppearanceResponse)(nil), "anytype.Rpc.BlockLink.ListSetAppearance.Response") + proto.RegisterType((*RpcBlockLinkListSetAppearanceResponseError)(nil), "anytype.Rpc.BlockLink.ListSetAppearance.Response.Error") + proto.RegisterType((*RpcBlockRelation)(nil), "anytype.Rpc.BlockRelation") + proto.RegisterType((*RpcBlockRelationSetKey)(nil), "anytype.Rpc.BlockRelation.SetKey") + proto.RegisterType((*RpcBlockRelationSetKeyRequest)(nil), "anytype.Rpc.BlockRelation.SetKey.Request") + proto.RegisterType((*RpcBlockRelationSetKeyResponse)(nil), "anytype.Rpc.BlockRelation.SetKey.Response") + proto.RegisterType((*RpcBlockRelationSetKeyResponseError)(nil), "anytype.Rpc.BlockRelation.SetKey.Response.Error") + proto.RegisterType((*RpcBlockRelationAdd)(nil), "anytype.Rpc.BlockRelation.Add") + proto.RegisterType((*RpcBlockRelationAddRequest)(nil), "anytype.Rpc.BlockRelation.Add.Request") + proto.RegisterType((*RpcBlockRelationAddResponse)(nil), "anytype.Rpc.BlockRelation.Add.Response") + proto.RegisterType((*RpcBlockRelationAddResponseError)(nil), "anytype.Rpc.BlockRelation.Add.Response.Error") + proto.RegisterType((*RpcBlockBookmark)(nil), "anytype.Rpc.BlockBookmark") + proto.RegisterType((*RpcBlockBookmarkFetch)(nil), "anytype.Rpc.BlockBookmark.Fetch") + proto.RegisterType((*RpcBlockBookmarkFetchRequest)(nil), "anytype.Rpc.BlockBookmark.Fetch.Request") + proto.RegisterType((*RpcBlockBookmarkFetchResponse)(nil), "anytype.Rpc.BlockBookmark.Fetch.Response") + proto.RegisterType((*RpcBlockBookmarkFetchResponseError)(nil), "anytype.Rpc.BlockBookmark.Fetch.Response.Error") + proto.RegisterType((*RpcBlockBookmarkCreateAndFetch)(nil), "anytype.Rpc.BlockBookmark.CreateAndFetch") + proto.RegisterType((*RpcBlockBookmarkCreateAndFetchRequest)(nil), "anytype.Rpc.BlockBookmark.CreateAndFetch.Request") + proto.RegisterType((*RpcBlockBookmarkCreateAndFetchResponse)(nil), "anytype.Rpc.BlockBookmark.CreateAndFetch.Response") + proto.RegisterType((*RpcBlockBookmarkCreateAndFetchResponseError)(nil), "anytype.Rpc.BlockBookmark.CreateAndFetch.Response.Error") + proto.RegisterType((*RpcBlockDiv)(nil), "anytype.Rpc.BlockDiv") + proto.RegisterType((*RpcBlockDivListSetStyle)(nil), "anytype.Rpc.BlockDiv.ListSetStyle") + proto.RegisterType((*RpcBlockDivListSetStyleRequest)(nil), "anytype.Rpc.BlockDiv.ListSetStyle.Request") + proto.RegisterType((*RpcBlockDivListSetStyleResponse)(nil), "anytype.Rpc.BlockDiv.ListSetStyle.Response") + proto.RegisterType((*RpcBlockDivListSetStyleResponseError)(nil), "anytype.Rpc.BlockDiv.ListSetStyle.Response.Error") + proto.RegisterType((*RpcBlockDataview)(nil), "anytype.Rpc.BlockDataview") + proto.RegisterType((*RpcBlockDataviewView)(nil), "anytype.Rpc.BlockDataview.View") + proto.RegisterType((*RpcBlockDataviewViewCreate)(nil), "anytype.Rpc.BlockDataview.View.Create") + proto.RegisterType((*RpcBlockDataviewViewCreateRequest)(nil), "anytype.Rpc.BlockDataview.View.Create.Request") + proto.RegisterType((*RpcBlockDataviewViewCreateResponse)(nil), "anytype.Rpc.BlockDataview.View.Create.Response") + proto.RegisterType((*RpcBlockDataviewViewCreateResponseError)(nil), "anytype.Rpc.BlockDataview.View.Create.Response.Error") + proto.RegisterType((*RpcBlockDataviewViewUpdate)(nil), "anytype.Rpc.BlockDataview.View.Update") + proto.RegisterType((*RpcBlockDataviewViewUpdateRequest)(nil), "anytype.Rpc.BlockDataview.View.Update.Request") + proto.RegisterType((*RpcBlockDataviewViewUpdateResponse)(nil), "anytype.Rpc.BlockDataview.View.Update.Response") + proto.RegisterType((*RpcBlockDataviewViewUpdateResponseError)(nil), "anytype.Rpc.BlockDataview.View.Update.Response.Error") + proto.RegisterType((*RpcBlockDataviewViewDelete)(nil), "anytype.Rpc.BlockDataview.View.Delete") + proto.RegisterType((*RpcBlockDataviewViewDeleteRequest)(nil), "anytype.Rpc.BlockDataview.View.Delete.Request") + proto.RegisterType((*RpcBlockDataviewViewDeleteResponse)(nil), "anytype.Rpc.BlockDataview.View.Delete.Response") + proto.RegisterType((*RpcBlockDataviewViewDeleteResponseError)(nil), "anytype.Rpc.BlockDataview.View.Delete.Response.Error") + proto.RegisterType((*RpcBlockDataviewViewSetPosition)(nil), "anytype.Rpc.BlockDataview.View.SetPosition") + proto.RegisterType((*RpcBlockDataviewViewSetPositionRequest)(nil), "anytype.Rpc.BlockDataview.View.SetPosition.Request") + proto.RegisterType((*RpcBlockDataviewViewSetPositionResponse)(nil), "anytype.Rpc.BlockDataview.View.SetPosition.Response") + proto.RegisterType((*RpcBlockDataviewViewSetPositionResponseError)(nil), "anytype.Rpc.BlockDataview.View.SetPosition.Response.Error") + proto.RegisterType((*RpcBlockDataviewViewSetActive)(nil), "anytype.Rpc.BlockDataview.View.SetActive") + proto.RegisterType((*RpcBlockDataviewViewSetActiveRequest)(nil), "anytype.Rpc.BlockDataview.View.SetActive.Request") + proto.RegisterType((*RpcBlockDataviewViewSetActiveResponse)(nil), "anytype.Rpc.BlockDataview.View.SetActive.Response") + proto.RegisterType((*RpcBlockDataviewViewSetActiveResponseError)(nil), "anytype.Rpc.BlockDataview.View.SetActive.Response.Error") + proto.RegisterType((*RpcBlockDataviewRelation)(nil), "anytype.Rpc.BlockDataview.Relation") + proto.RegisterType((*RpcBlockDataviewRelationAdd)(nil), "anytype.Rpc.BlockDataview.Relation.Add") + proto.RegisterType((*RpcBlockDataviewRelationAddRequest)(nil), "anytype.Rpc.BlockDataview.Relation.Add.Request") + proto.RegisterType((*RpcBlockDataviewRelationAddResponse)(nil), "anytype.Rpc.BlockDataview.Relation.Add.Response") + proto.RegisterType((*RpcBlockDataviewRelationAddResponseError)(nil), "anytype.Rpc.BlockDataview.Relation.Add.Response.Error") + proto.RegisterType((*RpcBlockDataviewRelationUpdate)(nil), "anytype.Rpc.BlockDataview.Relation.Update") + proto.RegisterType((*RpcBlockDataviewRelationUpdateRequest)(nil), "anytype.Rpc.BlockDataview.Relation.Update.Request") + proto.RegisterType((*RpcBlockDataviewRelationUpdateResponse)(nil), "anytype.Rpc.BlockDataview.Relation.Update.Response") + proto.RegisterType((*RpcBlockDataviewRelationUpdateResponseError)(nil), "anytype.Rpc.BlockDataview.Relation.Update.Response.Error") + proto.RegisterType((*RpcBlockDataviewRelationDelete)(nil), "anytype.Rpc.BlockDataview.Relation.Delete") + proto.RegisterType((*RpcBlockDataviewRelationDeleteRequest)(nil), "anytype.Rpc.BlockDataview.Relation.Delete.Request") + proto.RegisterType((*RpcBlockDataviewRelationDeleteResponse)(nil), "anytype.Rpc.BlockDataview.Relation.Delete.Response") + proto.RegisterType((*RpcBlockDataviewRelationDeleteResponseError)(nil), "anytype.Rpc.BlockDataview.Relation.Delete.Response.Error") + proto.RegisterType((*RpcBlockDataviewRelationListAvailable)(nil), "anytype.Rpc.BlockDataview.Relation.ListAvailable") + proto.RegisterType((*RpcBlockDataviewRelationListAvailableRequest)(nil), "anytype.Rpc.BlockDataview.Relation.ListAvailable.Request") + proto.RegisterType((*RpcBlockDataviewRelationListAvailableResponse)(nil), "anytype.Rpc.BlockDataview.Relation.ListAvailable.Response") + proto.RegisterType((*RpcBlockDataviewRelationListAvailableResponseError)(nil), "anytype.Rpc.BlockDataview.Relation.ListAvailable.Response.Error") + proto.RegisterType((*RpcBlockDataviewSetSource)(nil), "anytype.Rpc.BlockDataview.SetSource") + proto.RegisterType((*RpcBlockDataviewSetSourceRequest)(nil), "anytype.Rpc.BlockDataview.SetSource.Request") + proto.RegisterType((*RpcBlockDataviewSetSourceResponse)(nil), "anytype.Rpc.BlockDataview.SetSource.Response") + proto.RegisterType((*RpcBlockDataviewSetSourceResponseError)(nil), "anytype.Rpc.BlockDataview.SetSource.Response.Error") + proto.RegisterType((*RpcBlockDataviewRecord)(nil), "anytype.Rpc.BlockDataviewRecord") + proto.RegisterType((*RpcBlockDataviewRecordUpdate)(nil), "anytype.Rpc.BlockDataviewRecord.Update") + proto.RegisterType((*RpcBlockDataviewRecordUpdateRequest)(nil), "anytype.Rpc.BlockDataviewRecord.Update.Request") + proto.RegisterType((*RpcBlockDataviewRecordUpdateResponse)(nil), "anytype.Rpc.BlockDataviewRecord.Update.Response") + proto.RegisterType((*RpcBlockDataviewRecordUpdateResponseError)(nil), "anytype.Rpc.BlockDataviewRecord.Update.Response.Error") + proto.RegisterType((*RpcBlockDataviewRecordDelete)(nil), "anytype.Rpc.BlockDataviewRecord.Delete") + proto.RegisterType((*RpcBlockDataviewRecordDeleteRequest)(nil), "anytype.Rpc.BlockDataviewRecord.Delete.Request") + proto.RegisterType((*RpcBlockDataviewRecordDeleteResponse)(nil), "anytype.Rpc.BlockDataviewRecord.Delete.Response") + proto.RegisterType((*RpcBlockDataviewRecordDeleteResponseError)(nil), "anytype.Rpc.BlockDataviewRecord.Delete.Response.Error") + proto.RegisterType((*RpcBlockDataviewRecordCreate)(nil), "anytype.Rpc.BlockDataviewRecord.Create") + proto.RegisterType((*RpcBlockDataviewRecordCreateRequest)(nil), "anytype.Rpc.BlockDataviewRecord.Create.Request") + proto.RegisterType((*RpcBlockDataviewRecordCreateResponse)(nil), "anytype.Rpc.BlockDataviewRecord.Create.Response") + proto.RegisterType((*RpcBlockDataviewRecordCreateResponseError)(nil), "anytype.Rpc.BlockDataviewRecord.Create.Response.Error") + proto.RegisterType((*RpcBlockDataviewRecordRelationOption)(nil), "anytype.Rpc.BlockDataviewRecord.RelationOption") + proto.RegisterType((*RpcBlockDataviewRecordRelationOptionAdd)(nil), "anytype.Rpc.BlockDataviewRecord.RelationOption.Add") + proto.RegisterType((*RpcBlockDataviewRecordRelationOptionAddRequest)(nil), "anytype.Rpc.BlockDataviewRecord.RelationOption.Add.Request") + proto.RegisterType((*RpcBlockDataviewRecordRelationOptionAddResponse)(nil), "anytype.Rpc.BlockDataviewRecord.RelationOption.Add.Response") + proto.RegisterType((*RpcBlockDataviewRecordRelationOptionAddResponseError)(nil), "anytype.Rpc.BlockDataviewRecord.RelationOption.Add.Response.Error") + proto.RegisterType((*RpcBlockDataviewRecordRelationOptionUpdate)(nil), "anytype.Rpc.BlockDataviewRecord.RelationOption.Update") + proto.RegisterType((*RpcBlockDataviewRecordRelationOptionUpdateRequest)(nil), "anytype.Rpc.BlockDataviewRecord.RelationOption.Update.Request") + proto.RegisterType((*RpcBlockDataviewRecordRelationOptionUpdateResponse)(nil), "anytype.Rpc.BlockDataviewRecord.RelationOption.Update.Response") + proto.RegisterType((*RpcBlockDataviewRecordRelationOptionUpdateResponseError)(nil), "anytype.Rpc.BlockDataviewRecord.RelationOption.Update.Response.Error") + proto.RegisterType((*RpcBlockDataviewRecordRelationOptionDelete)(nil), "anytype.Rpc.BlockDataviewRecord.RelationOption.Delete") + proto.RegisterType((*RpcBlockDataviewRecordRelationOptionDeleteRequest)(nil), "anytype.Rpc.BlockDataviewRecord.RelationOption.Delete.Request") + proto.RegisterType((*RpcBlockDataviewRecordRelationOptionDeleteResponse)(nil), "anytype.Rpc.BlockDataviewRecord.RelationOption.Delete.Response") + proto.RegisterType((*RpcBlockDataviewRecordRelationOptionDeleteResponseError)(nil), "anytype.Rpc.BlockDataviewRecord.RelationOption.Delete.Response.Error") proto.RegisterType((*RpcDebug)(nil), "anytype.Rpc.Debug") proto.RegisterType((*RpcDebuglogInfo)(nil), "anytype.Rpc.Debug.logInfo") proto.RegisterType((*RpcDebugthreadInfo)(nil), "anytype.Rpc.Debug.threadInfo") @@ -39134,6 +37554,29 @@ func init() { proto.RegisterType((*RpcDebugTreeRequest)(nil), "anytype.Rpc.Debug.Tree.Request") proto.RegisterType((*RpcDebugTreeResponse)(nil), "anytype.Rpc.Debug.Tree.Response") proto.RegisterType((*RpcDebugTreeResponseError)(nil), "anytype.Rpc.Debug.Tree.Response.Error") + proto.RegisterType((*RpcDebugExportLocalstore)(nil), "anytype.Rpc.Debug.ExportLocalstore") + proto.RegisterType((*RpcDebugExportLocalstoreRequest)(nil), "anytype.Rpc.Debug.ExportLocalstore.Request") + proto.RegisterType((*RpcDebugExportLocalstoreResponse)(nil), "anytype.Rpc.Debug.ExportLocalstore.Response") + proto.RegisterType((*RpcDebugExportLocalstoreResponseError)(nil), "anytype.Rpc.Debug.ExportLocalstore.Response.Error") + proto.RegisterType((*RpcDebugPing)(nil), "anytype.Rpc.Debug.Ping") + proto.RegisterType((*RpcDebugPingRequest)(nil), "anytype.Rpc.Debug.Ping.Request") + proto.RegisterType((*RpcDebugPingResponse)(nil), "anytype.Rpc.Debug.Ping.Response") + proto.RegisterType((*RpcDebugPingResponseError)(nil), "anytype.Rpc.Debug.Ping.Response.Error") + proto.RegisterType((*RpcMetrics)(nil), "anytype.Rpc.Metrics") + proto.RegisterType((*RpcMetricsSetParameters)(nil), "anytype.Rpc.Metrics.SetParameters") + proto.RegisterType((*RpcMetricsSetParametersRequest)(nil), "anytype.Rpc.Metrics.SetParameters.Request") + proto.RegisterType((*RpcMetricsSetParametersResponse)(nil), "anytype.Rpc.Metrics.SetParameters.Response") + proto.RegisterType((*RpcMetricsSetParametersResponseError)(nil), "anytype.Rpc.Metrics.SetParameters.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((*RpcProcess)(nil), "anytype.Rpc.Process") + proto.RegisterType((*RpcProcessCancel)(nil), "anytype.Rpc.Process.Cancel") + proto.RegisterType((*RpcProcessCancelRequest)(nil), "anytype.Rpc.Process.Cancel.Request") + proto.RegisterType((*RpcProcessCancelResponse)(nil), "anytype.Rpc.Process.Cancel.Response") + proto.RegisterType((*RpcProcessCancelResponseError)(nil), "anytype.Rpc.Process.Cancel.Response.Error") proto.RegisterType((*RpcGenericErrorResponse)(nil), "anytype.Rpc.GenericErrorResponse") proto.RegisterType((*RpcGenericErrorResponseError)(nil), "anytype.Rpc.GenericErrorResponse.Error") proto.RegisterType((*Empty)(nil), "anytype.Empty") @@ -39142,647 +37585,638 @@ func init() { func init() { proto.RegisterFile("pb/protos/commands.proto", fileDescriptor_8261c968b2e6f45c) } var fileDescriptor_8261c968b2e6f45c = []byte{ - // 10226 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x7d, 0x7b, 0x94, 0x2b, 0x47, - 0x79, 0xa7, 0xa5, 0xd6, 0x63, 0xe6, 0x9b, 0x3b, 0xf7, 0xca, 0x9d, 0xcb, 0xf5, 0x50, 0xb6, 0x2f, - 0xe6, 0x62, 0x8c, 0x71, 0x6c, 0xd9, 0xbe, 0xc6, 0x60, 0x1b, 0x3f, 0xd0, 0x48, 0x9a, 0x7b, 0xe5, - 0xab, 0x91, 0x26, 0x2d, 0xcd, 0xbd, 0x78, 0xc9, 0xee, 0x6c, 0x8f, 0x54, 0x33, 0xd3, 0x4c, 0x8f, - 0x5a, 0x74, 0xb7, 0xe6, 0x7a, 0x38, 0x27, 0xbb, 0x01, 0x42, 0x1c, 0xe0, 0x84, 0x04, 0x36, 0x09, - 0xaf, 0x84, 0x87, 0x89, 0x97, 0x40, 0x78, 0x99, 0x40, 0xcc, 0x63, 0x09, 0x24, 0x6b, 0xc2, 0x23, - 0x64, 0x03, 0xd9, 0x24, 0x0e, 0xe4, 0x98, 0x80, 0x59, 0xce, 0xd9, 0x5d, 0x96, 0x25, 0x64, 0xd9, - 0xcd, 0x92, 0x1c, 0x4e, 0xf6, 0x74, 0x75, 0xf5, 0xa3, 0x34, 0xea, 0x56, 0xb5, 0xa6, 0x5b, 0x73, - 0x39, 0xfb, 0x97, 0x54, 0xd5, 0xd5, 0x55, 0x5f, 0x7d, 0xbf, 0xaf, 0xbe, 0xaa, 0xae, 0xfa, 0xea, - 0xfb, 0x60, 0xa1, 0xbf, 0x7e, 0x73, 0x5f, 0xd7, 0x4c, 0xcd, 0xb8, 0xb9, 0xa3, 0xed, 0xec, 0xc8, - 0xbd, 0xae, 0x51, 0x24, 0x69, 0x31, 0x2f, 0xf7, 0xf6, 0xcc, 0xbd, 0x3e, 0x46, 0xd7, 0xf6, 0xb7, - 0x37, 0x6f, 0x56, 0x95, 0xf5, 0x9b, 0xfb, 0xeb, 0x37, 0xef, 0x68, 0x5d, 0xac, 0x3a, 0x2f, 0x90, - 0x04, 0x2d, 0x8e, 0xae, 0x0f, 0x2a, 0xa5, 0x6a, 0x1d, 0x59, 0x35, 0x4c, 0x4d, 0xc7, 0xb4, 0xe4, - 0x09, 0xaf, 0x49, 0xbc, 0x8b, 0x7b, 0xa6, 0x53, 0xc3, 0x55, 0x9b, 0x9a, 0xb6, 0xa9, 0x62, 0xfb, - 0xd9, 0xfa, 0x60, 0xe3, 0x66, 0xc3, 0xd4, 0x07, 0x1d, 0xd3, 0x7e, 0x7a, 0xea, 0x89, 0x87, 0x33, - 0x20, 0x48, 0xfd, 0x0e, 0x7a, 0x3c, 0x0d, 0xf9, 0x65, 0x6c, 0xea, 0x4a, 0xc7, 0x40, 0x1f, 0x4f, - 0xc3, 0x7c, 0x0b, 0x9b, 0x2b, 0xb2, 0x2e, 0xef, 0x60, 0x13, 0xeb, 0x06, 0x7a, 0x36, 0xe4, 0x25, - 0xfc, 0xb2, 0x01, 0x36, 0x4c, 0x11, 0xc1, 0x4c, 0x5f, 0x95, 0xcd, 0x0d, 0x4d, 0xdf, 0x59, 0x48, - 0x5d, 0x93, 0xba, 0x7e, 0x56, 0x72, 0xd3, 0xe8, 0x9f, 0x53, 0x30, 0x23, 0x61, 0xa3, 0xaf, 0xf5, - 0x0c, 0x2c, 0x9e, 0x81, 0x2c, 0xd6, 0x75, 0x4d, 0x27, 0xa5, 0xe6, 0x4e, 0xdf, 0x5a, 0xa4, 0x3d, - 0x2f, 0x4a, 0xfd, 0x4e, 0x91, 0x36, 0x55, 0x64, 0x9a, 0x29, 0x3a, 0xef, 0x16, 0xab, 0xd6, 0x8b, - 0x92, 0xfd, 0x3e, 0x7a, 0x6f, 0x0a, 0xb2, 0x24, 0x43, 0xbc, 0x1f, 0x32, 0x1d, 0xad, 0x8b, 0x49, - 0x8d, 0x47, 0x4f, 0x3f, 0x3f, 0x72, 0x8d, 0xc5, 0xb2, 0xd6, 0xc5, 0x12, 0xa9, 0x43, 0xbc, 0x06, - 0xe6, 0xba, 0xd8, 0xe8, 0xe8, 0x4a, 0xdf, 0x54, 0xb4, 0xde, 0x42, 0x9a, 0x74, 0xc5, 0x9f, 0x75, - 0xea, 0x34, 0x64, 0xac, 0xf2, 0xe2, 0x0c, 0x64, 0x1a, 0xab, 0xf5, 0x7a, 0xe1, 0x32, 0xf1, 0x72, - 0x98, 0x5f, 0x6d, 0x9c, 0x6b, 0x34, 0x2f, 0x34, 0xd6, 0xaa, 0x92, 0xd4, 0x94, 0x0a, 0x29, 0x71, - 0x1e, 0x66, 0x17, 0x4b, 0x95, 0xb5, 0x5a, 0x63, 0x65, 0xb5, 0x5d, 0x48, 0xa3, 0xff, 0x9e, 0x83, - 0x23, 0xd5, 0x07, 0x4d, 0xac, 0xf7, 0x64, 0xb5, 0xa2, 0x6b, 0x7d, 0xf4, 0x94, 0x00, 0xd9, 0x25, - 0x45, 0xc5, 0x06, 0xfa, 0x60, 0xca, 0x63, 0xe2, 0x55, 0x30, 0xdb, 0xd1, 0x7a, 0x26, 0x7e, 0xd0, - 0xac, 0x75, 0x29, 0x17, 0xbd, 0x0c, 0xf1, 0x14, 0x1c, 0xe9, 0xea, 0x5a, 0xbf, 0x2d, 0xeb, 0x9b, - 0xd8, 0x2a, 0x60, 0xd3, 0xc6, 0xe4, 0x89, 0x77, 0xc2, 0x4c, 0x5f, 0x33, 0x14, 0x42, 0xbb, 0x40, - 0xd8, 0x71, 0xb5, 0xcb, 0x0e, 0x22, 0x28, 0xc5, 0x45, 0x55, 0xeb, 0x6c, 0x17, 0x57, 0x68, 0x21, - 0xc9, 0x2d, 0x2e, 0x5e, 0x07, 0x47, 0x89, 0xf4, 0x58, 0x64, 0xad, 0xc8, 0xe6, 0x96, 0xb1, 0x90, - 0xb9, 0x46, 0xb8, 0x7e, 0x56, 0x1a, 0xca, 0x45, 0xef, 0x49, 0xfb, 0xd0, 0xac, 0xb0, 0x68, 0x16, - 0x19, 0xde, 0xfb, 0x7b, 0x5c, 0x24, 0xbd, 0x1d, 0x0d, 0xa5, 0x78, 0x23, 0x64, 0x89, 0x70, 0x92, - 0x2e, 0xcd, 0x9d, 0x3e, 0xe1, 0xd5, 0x42, 0x8b, 0x57, 0xad, 0xa7, 0x92, 0x5d, 0x08, 0xfd, 0x7b, - 0x17, 0xf8, 0x33, 0x0c, 0xf0, 0xb7, 0x45, 0x6b, 0x3c, 0x79, 0xd4, 0x7f, 0x98, 0x86, 0x7c, 0xd9, - 0x82, 0xaf, 0x67, 0x22, 0x85, 0x17, 0xe5, 0xeb, 0xe0, 0xe8, 0x86, 0xd6, 0x19, 0x18, 0xb8, 0x4b, - 0x90, 0x72, 0x71, 0x1e, 0xca, 0x15, 0x17, 0x20, 0xdf, 0xb1, 0xeb, 0x26, 0x40, 0x1f, 0x91, 0x9c, - 0x24, 0xfa, 0xb1, 0x7f, 0xb8, 0x2d, 0xb1, 0x00, 0xdd, 0x12, 0xcc, 0x23, 0x4a, 0x69, 0xc0, 0x68, - 0xfb, 0x1d, 0x97, 0xe9, 0x35, 0x86, 0xe9, 0xb7, 0x47, 0xad, 0x30, 0x79, 0xb6, 0xbf, 0xe2, 0x16, - 0x98, 0x25, 0x5c, 0xaa, 0x2b, 0x86, 0x89, 0x9e, 0x14, 0xe0, 0x44, 0x59, 0xeb, 0xed, 0x62, 0xdd, - 0x2c, 0x6f, 0x29, 0x6a, 0x57, 0xc7, 0xbd, 0xb6, 0xb6, 0x22, 0x6f, 0x62, 0x03, 0x75, 0x78, 0x31, - 0x41, 0x30, 0xb3, 0x6e, 0xb3, 0xdd, 0x58, 0x48, 0x93, 0x41, 0xe1, 0xa6, 0xc5, 0x93, 0x00, 0xda, - 0xfa, 0x4b, 0x71, 0xc7, 0x6c, 0xef, 0xf5, 0x31, 0x81, 0x62, 0x56, 0xf2, 0xe5, 0xa0, 0x27, 0xfd, - 0xc3, 0x45, 0x62, 0xd1, 0xb8, 0x9b, 0x61, 0x9e, 0x4b, 0x73, 0x71, 0x34, 0xbd, 0x01, 0x83, 0x67, - 0x01, 0xf2, 0xaa, 0xd2, 0xf3, 0xd1, 0xe6, 0x24, 0xbd, 0x61, 0x25, 0xf0, 0x0c, 0xab, 0x8f, 0xba, - 0x08, 0xaf, 0x32, 0x08, 0x97, 0x0e, 0x42, 0x64, 0xf2, 0x68, 0xff, 0x83, 0x00, 0x99, 0x65, 0x6d, - 0x17, 0xa3, 0x2f, 0xa7, 0xe2, 0x80, 0xf3, 0x7a, 0x38, 0x66, 0x12, 0x65, 0x5a, 0x76, 0xdf, 0xb7, - 0x31, 0x1d, 0xce, 0xde, 0xa7, 0x8e, 0x33, 0x63, 0xd4, 0x71, 0x36, 0x92, 0x3a, 0x46, 0xef, 0xf0, - 0xcb, 0xcd, 0x8b, 0x58, 0xb9, 0xb9, 0x21, 0x00, 0x12, 0x8b, 0x0f, 0xb1, 0xa8, 0xd8, 0x87, 0x5d, - 0x59, 0x28, 0x33, 0xb2, 0x70, 0x33, 0x7f, 0xc3, 0xc9, 0x23, 0xff, 0x7b, 0x19, 0x98, 0xb7, 0x1a, - 0x6e, 0x6b, 0x0d, 0x7c, 0xd1, 0x12, 0x3e, 0xf4, 0x97, 0xb1, 0x88, 0xc0, 0xad, 0x90, 0xef, 0x62, - 0x53, 0x56, 0x54, 0x83, 0x0e, 0x9c, 0x2b, 0x8a, 0xf6, 0x62, 0xa9, 0xe8, 0x2c, 0x96, 0x8a, 0x2d, - 0xb2, 0x58, 0x92, 0x9c, 0x72, 0x49, 0xcb, 0xc2, 0x17, 0xfd, 0xb2, 0x50, 0x63, 0x65, 0xe1, 0xb6, - 0x10, 0x48, 0x5c, 0xce, 0x04, 0x08, 0xc5, 0x09, 0xc8, 0xd9, 0xba, 0x82, 0x42, 0x42, 0x53, 0x11, - 0x15, 0xc7, 0xef, 0xba, 0xc2, 0x52, 0x67, 0x84, 0xe5, 0x8e, 0x09, 0x28, 0x4b, 0x5e, 0x6a, 0xfe, - 0x4e, 0x80, 0xd9, 0xca, 0xa0, 0xaf, 0x2a, 0x1d, 0xd9, 0xc4, 0xe8, 0xad, 0x51, 0x24, 0xc6, 0x64, - 0x57, 0x5e, 0x6e, 0x9a, 0x91, 0x26, 0x61, 0x48, 0x9a, 0xfc, 0xb0, 0x67, 0xa2, 0xc1, 0xfe, 0x39, - 0x3f, 0xec, 0x55, 0x16, 0xf6, 0xa0, 0x91, 0xe8, 0x76, 0x2d, 0x00, 0xf2, 0x30, 0xc1, 0x8f, 0x06, - 0xfb, 0x7b, 0x5c, 0xd8, 0xcf, 0x32, 0xb0, 0x3f, 0x2f, 0x22, 0x65, 0xc9, 0x43, 0xfe, 0xd1, 0xab, - 0x40, 0x68, 0x61, 0x13, 0xfd, 0x36, 0x40, 0xa6, 0x8d, 0x1f, 0x34, 0xd1, 0x1f, 0x09, 0x90, 0x6d, - 0x99, 0x7b, 0x2a, 0x46, 0xaf, 0x8c, 0x45, 0x63, 0xdc, 0x03, 0x59, 0xc3, 0xaa, 0x8e, 0x2e, 0xb9, - 0x9f, 0x33, 0x12, 0x60, 0x67, 0x39, 0x64, 0x51, 0x50, 0x24, 0xad, 0x4b, 0xf6, 0x5b, 0xe8, 0xf7, - 0xfc, 0x38, 0xdf, 0xcf, 0xe2, 0x1c, 0xc4, 0xcd, 0x16, 0xf6, 0xd7, 0x14, 0x8b, 0xd2, 0x7f, 0xbf, - 0x0b, 0xe8, 0x32, 0x03, 0xe8, 0x9d, 0x93, 0x90, 0x90, 0x3c, 0xaa, 0x6f, 0x16, 0x20, 0x5b, 0xd6, - 0x54, 0x4d, 0x47, 0x0f, 0xc4, 0x81, 0xe1, 0x71, 0xc8, 0x76, 0xac, 0xda, 0xe8, 0x74, 0x6f, 0x27, - 0x0e, 0x06, 0x0d, 0xa1, 0xee, 0x70, 0xa1, 0x19, 0x45, 0x42, 0xf2, 0xd0, 0x7c, 0xca, 0x5a, 0x93, - 0xc9, 0xfa, 0x36, 0xfa, 0xb7, 0x71, 0x20, 0x73, 0x17, 0x64, 0x76, 0x64, 0x7d, 0x9b, 0x6a, 0xa5, - 0xeb, 0xc6, 0x0f, 0x2e, 0xab, 0x69, 0x89, 0xbc, 0x83, 0x1e, 0x9d, 0x60, 0xe6, 0x74, 0x99, 0x67, - 0xd5, 0x13, 0x0b, 0x7c, 0x51, 0x67, 0xc8, 0x30, 0x0a, 0x92, 0x47, 0xef, 0xfd, 0x02, 0x1c, 0x5b, - 0x94, 0x3b, 0xdb, 0x9b, 0xba, 0x36, 0xe8, 0x75, 0x13, 0x1f, 0x62, 0x9f, 0xf6, 0x43, 0xd4, 0x64, - 0x21, 0x0a, 0x93, 0xef, 0x21, 0x12, 0x63, 0x01, 0xea, 0x51, 0x17, 0x28, 0x89, 0x01, 0xea, 0xde, - 0x89, 0xe9, 0x48, 0x1e, 0xae, 0xf7, 0x09, 0x90, 0x2d, 0xa9, 0xca, 0x66, 0x0f, 0x0d, 0xe2, 0x00, - 0xe9, 0x16, 0xc8, 0xca, 0x56, 0x6d, 0x74, 0x2e, 0x43, 0x23, 0x87, 0x1b, 0x69, 0x4f, 0xb2, 0x0b, - 0xa2, 0xf7, 0x4e, 0xb0, 0x4c, 0xb1, 0x18, 0x47, 0x2a, 0x89, 0x05, 0xb6, 0xa8, 0x4b, 0x91, 0xa0, - 0xd6, 0x93, 0x07, 0xeb, 0x0d, 0x19, 0xc8, 0x2d, 0x29, 0x58, 0xed, 0x1a, 0xe8, 0xaf, 0xb9, 0x97, - 0x1e, 0xe7, 0x61, 0x8e, 0xc0, 0x63, 0xbf, 0x48, 0x10, 0x0b, 0x9f, 0x7d, 0xec, 0x82, 0x45, 0x5a, - 0xbb, 0xfd, 0x90, 0xe4, 0x49, 0xfe, 0x8a, 0xd0, 0x05, 0x00, 0xef, 0x91, 0xb8, 0x00, 0x79, 0x2a, - 0x04, 0x94, 0x02, 0x27, 0x29, 0xde, 0x0c, 0xb9, 0x0d, 0xa7, 0xe9, 0xd0, 0xef, 0x21, 0x5a, 0x0c, - 0xfd, 0x6e, 0x9a, 0x77, 0x07, 0x2a, 0x80, 0xee, 0x83, 0x8b, 0x04, 0xdf, 0x7e, 0x15, 0x47, 0xf3, - 0xc9, 0xcb, 0xc4, 0xe7, 0x05, 0x10, 0x2a, 0xca, 0x2e, 0xfa, 0x8c, 0xbb, 0x2a, 0x7d, 0x45, 0x2c, - 0xab, 0xd2, 0xbb, 0xd9, 0x55, 0x69, 0xf8, 0xc4, 0x59, 0x51, 0x76, 0xd9, 0x45, 0xe9, 0xa4, 0x33, - 0xa7, 0x5b, 0xd1, 0xa1, 0xcd, 0x9c, 0x41, 0x14, 0x24, 0x8f, 0xe4, 0x9f, 0x08, 0x90, 0x59, 0x52, - 0x54, 0x7c, 0xb8, 0x1f, 0x18, 0x16, 0x05, 0xf1, 0x7c, 0x60, 0x78, 0x35, 0x1d, 0xda, 0x2a, 0x36, - 0x90, 0x84, 0xe4, 0xd1, 0xfc, 0x84, 0x00, 0x33, 0xed, 0x81, 0xde, 0xab, 0xf5, 0x4c, 0xed, 0xd2, - 0xf8, 0x50, 0xe4, 0x3f, 0x7a, 0xf1, 0x98, 0xe8, 0xf4, 0x60, 0x8a, 0x47, 0x2f, 0x63, 0x1b, 0x4f, - 0x1e, 0xbb, 0x57, 0x3f, 0x99, 0x82, 0x2c, 0xa1, 0x03, 0x7d, 0x44, 0xb0, 0x90, 0xeb, 0xab, 0x72, - 0x07, 0xa3, 0x1d, 0x5e, 0x10, 0x7d, 0x93, 0x61, 0x9a, 0x9d, 0x0c, 0x6f, 0x80, 0x2c, 0xf9, 0x4b, - 0x3f, 0x47, 0x8e, 0x8f, 0x82, 0x50, 0xb2, 0x8b, 0xa0, 0xc7, 0xfc, 0x78, 0xdd, 0xc7, 0xe2, 0xf5, - 0xdc, 0xfd, 0x2c, 0x2b, 0x52, 0x32, 0x83, 0x37, 0xfa, 0x03, 0x68, 0x8a, 0xb6, 0x71, 0xf3, 0x2e, - 0x17, 0xc4, 0x45, 0x06, 0xc4, 0x22, 0x37, 0x45, 0x53, 0x59, 0xd4, 0xce, 0xaf, 0xf6, 0xbb, 0xb2, - 0x89, 0x9d, 0x03, 0xb4, 0x29, 0x43, 0x17, 0x71, 0x51, 0x5b, 0x64, 0x88, 0x1d, 0x37, 0xd6, 0xe2, - 0xde, 0x5f, 0x0b, 0x6d, 0x3d, 0x79, 0xb0, 0xbe, 0x9e, 0x81, 0x6c, 0xab, 0xaf, 0x2a, 0x26, 0x7a, - 0x6b, 0x3a, 0x16, 0x94, 0x74, 0xb9, 0xb7, 0x89, 0x03, 0x50, 0x92, 0xac, 0x67, 0x92, 0x5d, 0xc4, - 0xd3, 0xa7, 0x99, 0x49, 0xf4, 0xa9, 0x78, 0x27, 0x64, 0xac, 0x82, 0x74, 0x3b, 0xfe, 0xd9, 0x23, - 0x18, 0x4b, 0xba, 0xe5, 0x2e, 0xa4, 0x97, 0x09, 0x27, 0xad, 0x57, 0x4e, 0xdd, 0x0a, 0x19, 0x2b, - 0x25, 0x02, 0xe4, 0x16, 0x9b, 0xed, 0x76, 0x73, 0xb9, 0x70, 0x99, 0x98, 0x07, 0xa1, 0xdd, 0x5c, - 0x29, 0xa4, 0xc4, 0x59, 0xc8, 0xd6, 0x1a, 0x8d, 0xaa, 0x54, 0x48, 0x5b, 0x7f, 0xdb, 0xb5, 0x76, - 0xbd, 0x5a, 0x10, 0xd8, 0x59, 0xf8, 0x1e, 0x56, 0xa4, 0x9e, 0x13, 0xd2, 0x76, 0x92, 0xba, 0xe0, - 0x1d, 0xae, 0x90, 0xbd, 0x88, 0x11, 0xb2, 0x1b, 0x39, 0xe9, 0x49, 0x5e, 0xb8, 0x7e, 0x43, 0x80, - 0xec, 0x32, 0xd6, 0x37, 0x31, 0x7a, 0x59, 0x04, 0x43, 0x89, 0x0d, 0x45, 0x37, 0x4c, 0xf6, 0x00, - 0x9d, 0xc9, 0x13, 0xaf, 0x85, 0x79, 0x03, 0x77, 0xb4, 0x9e, 0x7b, 0xca, 0x6e, 0xef, 0x49, 0xb0, - 0x99, 0xe8, 0x2d, 0x11, 0x21, 0x23, 0x84, 0xc6, 0x32, 0xd3, 0x46, 0x01, 0x66, 0x54, 0xab, 0xc9, - 0x03, 0xf3, 0x7f, 0x04, 0xeb, 0xa5, 0xfe, 0x1e, 0x7a, 0x0b, 0xf7, 0xd2, 0xe8, 0x46, 0xc8, 0x11, - 0x31, 0x75, 0xbe, 0x61, 0x47, 0x6b, 0x60, 0x5a, 0x46, 0x5c, 0x84, 0xcb, 0x0d, 0xac, 0xe2, 0x8e, - 0x89, 0xbb, 0xd6, 0xd0, 0x95, 0xc6, 0x2a, 0x85, 0xfd, 0xc5, 0xd1, 0x57, 0xfd, 0x00, 0xde, 0xcd, - 0x02, 0x78, 0xdd, 0x08, 0x56, 0x5a, 0x1d, 0x0a, 0x3e, 0x39, 0xb1, 0xba, 0xd1, 0x52, 0x35, 0xd3, - 0x3d, 0x00, 0xa2, 0x69, 0xeb, 0xd9, 0x96, 0xb9, 0xa3, 0x92, 0x67, 0xb6, 0x20, 0xb9, 0x69, 0xb1, - 0x08, 0x79, 0xb9, 0xb7, 0x47, 0x1e, 0x65, 0x42, 0x7a, 0xed, 0x14, 0x42, 0x6f, 0x77, 0x91, 0xbf, - 0x8f, 0x41, 0xfe, 0xa7, 0xf9, 0xc8, 0x4d, 0x1e, 0xf8, 0xbf, 0xcf, 0x41, 0x76, 0x45, 0x36, 0x4c, - 0x8c, 0xbe, 0x21, 0xc4, 0x6d, 0xd5, 0x12, 0x03, 0xe6, 0xe2, 0x0d, 0x50, 0x70, 0x32, 0x17, 0x9d, - 0x85, 0xb8, 0x6d, 0xca, 0xb4, 0x2f, 0xdf, 0x52, 0x03, 0x8a, 0xb1, 0x22, 0xeb, 0x66, 0x73, 0x83, - 0xe4, 0x91, 0xa9, 0x60, 0x46, 0x62, 0x33, 0x19, 0xe8, 0x73, 0x21, 0xd0, 0xe7, 0x83, 0xa1, 0x9f, - 0xe1, 0x80, 0x5e, 0x2c, 0xc1, 0xcc, 0x86, 0xa2, 0x62, 0xf2, 0xc2, 0x2c, 0x79, 0x61, 0xd4, 0x9c, - 0x44, 0x78, 0xef, 0xce, 0x49, 0xd6, 0x07, 0x92, 0xe4, 0xbe, 0x86, 0xea, 0xf6, 0x17, 0xa8, 0x28, - 0x42, 0xa6, 0x27, 0xef, 0x60, 0x8a, 0x04, 0xf9, 0x6f, 0xe5, 0x75, 0x65, 0x53, 0x26, 0xac, 0x3f, - 0x22, 0x91, 0xff, 0x16, 0x6c, 0xc4, 0xbe, 0x6b, 0x45, 0x36, 0xb7, 0xa8, 0xe8, 0x7a, 0x19, 0xe8, - 0x21, 0x21, 0x9a, 0xfe, 0x73, 0x48, 0x8b, 0x7a, 0xf2, 0x78, 0x2d, 0xcc, 0x77, 0x64, 0x1d, 0x9b, - 0x2b, 0x7e, 0xdb, 0xb5, 0xac, 0xc4, 0x66, 0x5a, 0xc0, 0x2a, 0x46, 0x4b, 0xde, 0xc1, 0xa4, 0xb1, - 0xb2, 0xf5, 0x8c, 0x4c, 0xfc, 0x33, 0xd2, 0xbe, 0x7c, 0x4f, 0xdb, 0x66, 0xe3, 0xd6, 0xb6, 0xa3, - 0xfa, 0x98, 0xfc, 0xa0, 0x7b, 0x57, 0x06, 0x84, 0xf2, 0xc0, 0xbc, 0xa4, 0x95, 0xed, 0x8f, 0xfd, - 0xca, 0xf6, 0x85, 0xac, 0xb4, 0x8c, 0x12, 0xe4, 0xf2, 0xc0, 0x3c, 0x5c, 0x5d, 0x1b, 0x51, 0x4a, - 0x7e, 0xcb, 0x95, 0x92, 0x7b, 0x19, 0x29, 0xb9, 0x81, 0xab, 0x6f, 0xc9, 0xcb, 0xc8, 0x7b, 0x05, - 0x38, 0x5a, 0xdb, 0xe9, 0x6b, 0xba, 0xb9, 0x2c, 0xeb, 0xdb, 0x5d, 0xed, 0x62, 0x0f, 0x9d, 0xe1, - 0x95, 0x96, 0x93, 0x00, 0x0a, 0x79, 0x95, 0x28, 0x02, 0x9b, 0x20, 0x5f, 0x0e, 0xfa, 0xd3, 0x68, - 0x5b, 0xba, 0x45, 0x96, 0x8e, 0x00, 0x98, 0xaf, 0x81, 0x39, 0x5d, 0xd3, 0xcc, 0x3a, 0x63, 0xbe, - 0xe6, 0xcf, 0x8a, 0xb8, 0x9a, 0x8d, 0xb0, 0xe9, 0x1b, 0x4e, 0xe0, 0x14, 0x0e, 0x02, 0x04, 0xc8, - 0x55, 0x1f, 0xb4, 0x48, 0x40, 0xab, 0x89, 0x8c, 0x68, 0xf4, 0x21, 0x3f, 0x62, 0xf7, 0xb2, 0x88, - 0x5d, 0x3f, 0x82, 0x21, 0x36, 0x35, 0x01, 0x48, 0x89, 0x90, 0xe9, 0x7b, 0x82, 0x41, 0xfe, 0x47, - 0xc4, 0xe6, 0x9d, 0x2e, 0x36, 0x25, 0x06, 0x9b, 0x9b, 0x78, 0x49, 0x49, 0x1e, 0x93, 0x37, 0x09, - 0x90, 0x5b, 0xed, 0xab, 0x9a, 0xdc, 0x45, 0xda, 0xc1, 0xbf, 0x63, 0x91, 0x3d, 0x99, 0xfb, 0x26, - 0x56, 0x37, 0x2d, 0x16, 0x40, 0x18, 0xe8, 0x2a, 0x35, 0x13, 0xb3, 0xfe, 0xa2, 0xb7, 0x45, 0x44, - 0xcb, 0xa6, 0x33, 0x96, 0x4f, 0x8d, 0x28, 0xc8, 0x8c, 0x6c, 0x36, 0x79, 0x64, 0xbe, 0x9f, 0x86, - 0x99, 0x8a, 0x76, 0xb1, 0x47, 0xb0, 0x29, 0x1d, 0x18, 0x9b, 0xa8, 0xc6, 0x95, 0x45, 0xa7, 0xed, - 0x69, 0x1b, 0x57, 0x06, 0x35, 0x9c, 0x3c, 0xc7, 0x9f, 0xba, 0xcd, 0xb6, 0x99, 0x7a, 0x58, 0x70, - 0x0f, 0x2c, 0xf5, 0x83, 0x8f, 0x09, 0xef, 0x24, 0x51, 0xe0, 0x3b, 0x49, 0x7c, 0xb7, 0x1f, 0xa8, - 0x45, 0x16, 0xa8, 0x91, 0x7b, 0x14, 0xf1, 0x9e, 0x22, 0xfe, 0xb6, 0x0b, 0x55, 0x95, 0x81, 0xea, - 0xd6, 0x28, 0x4d, 0x27, 0x0f, 0xd6, 0x77, 0x04, 0xc8, 0x57, 0x6c, 0x53, 0x54, 0x74, 0x16, 0x72, - 0xf6, 0x5f, 0x4b, 0xc9, 0x6c, 0xe3, 0x3d, 0x0a, 0x8f, 0xf5, 0xd7, 0xea, 0xfc, 0xae, 0xac, 0x0e, - 0xb0, 0xdb, 0xf9, 0x61, 0xee, 0x9f, 0xb7, 0x9e, 0x4a, 0x76, 0x21, 0xb4, 0xc5, 0x8b, 0xf7, 0x7d, - 0x9e, 0xc1, 0x6c, 0x3a, 0xf0, 0xab, 0x85, 0x9c, 0xcc, 0xd9, 0xa5, 0xe8, 0xaf, 0x6b, 0x3e, 0x8b, - 0x1e, 0xf1, 0xa3, 0x5c, 0x66, 0x51, 0xbe, 0x69, 0x4c, 0x5d, 0x71, 0xc0, 0xfc, 0x88, 0x0b, 0xf3, - 0x12, 0x03, 0xf3, 0xe9, 0x48, 0x6d, 0x4f, 0xe5, 0x7c, 0xf1, 0x88, 0x84, 0x0d, 0x53, 0x57, 0x3a, - 0x56, 0x1d, 0x06, 0xfa, 0xa5, 0xd4, 0xc1, 0xc7, 0x64, 0x15, 0x8e, 0xe8, 0xbe, 0x3a, 0xe9, 0xc8, - 0x7c, 0xe6, 0xc8, 0xad, 0x54, 0x7f, 0xe3, 0x12, 0xf3, 0x1a, 0xbb, 0xdc, 0x38, 0xcb, 0x62, 0x18, - 0xc4, 0x47, 0x7f, 0x75, 0xb1, 0x00, 0xf9, 0x3e, 0x17, 0xc8, 0x73, 0x0c, 0x90, 0x2f, 0x88, 0x4e, - 0x40, 0xf2, 0x68, 0xbe, 0x52, 0x80, 0x0c, 0x31, 0x5b, 0xff, 0x51, 0x1a, 0xa0, 0x66, 0x94, 0xf4, - 0xce, 0x96, 0xb2, 0x8b, 0xbb, 0x48, 0x3e, 0x38, 0xa6, 0xd6, 0x6a, 0xde, 0xad, 0x90, 0x20, 0x3a, - 0x23, 0xf9, 0x72, 0xd0, 0x43, 0x7e, 0xb0, 0xce, 0xb1, 0x60, 0xdd, 0x1e, 0xc0, 0x2b, 0x62, 0xad, - 0xed, 0x91, 0x19, 0x70, 0x4f, 0xe8, 0x03, 0x2e, 0x02, 0x0d, 0x06, 0x81, 0xbb, 0x26, 0xaa, 0x35, - 0x79, 0x10, 0x7e, 0x5d, 0x80, 0x6c, 0x5d, 0x36, 0xf1, 0x83, 0xe8, 0x75, 0x02, 0xb5, 0x0e, 0x5e, - 0x3d, 0x38, 0xff, 0x45, 0xc8, 0x58, 0x65, 0xe8, 0xba, 0x8f, 0xfc, 0x8f, 0x6a, 0x14, 0x43, 0xb8, - 0x43, 0x28, 0xb3, 0x0f, 0x2e, 0xa6, 0x6c, 0x14, 0x13, 0xde, 0x7c, 0xf2, 0xb8, 0x7c, 0xaf, 0x40, - 0xd1, 0xf8, 0xa2, 0x03, 0xcb, 0xaf, 0xa5, 0x12, 0xc1, 0x45, 0xbc, 0x07, 0xb2, 0x3b, 0xb2, 0xbe, - 0x6d, 0x90, 0xd5, 0xf8, 0x1c, 0xcf, 0x19, 0x92, 0xf5, 0xd1, 0x68, 0x48, 0xf6, 0x5b, 0x91, 0x0f, - 0x0a, 0x5d, 0xdb, 0xce, 0xd8, 0x50, 0x8d, 0x72, 0x50, 0x18, 0xd6, 0x7a, 0xf2, 0xa0, 0xbe, 0xde, - 0x35, 0xd9, 0xbe, 0x70, 0x70, 0x2c, 0x47, 0x5b, 0x93, 0x4e, 0x32, 0xca, 0x62, 0x36, 0xd6, 0x8e, - 0x3a, 0xca, 0x0e, 0xd1, 0x50, 0xfb, 0xe3, 0xae, 0x9d, 0xd2, 0xcf, 0xc7, 0x30, 0xba, 0x0e, 0x68, - 0xdd, 0x32, 0x31, 0x74, 0xf1, 0x59, 0x28, 0x4d, 0x04, 0xdd, 0xa1, 0x5d, 0x7f, 0xc8, 0x97, 0xb7, - 0x70, 0x67, 0x1b, 0x77, 0xd1, 0x4b, 0x0e, 0x8e, 0xdd, 0x02, 0xe4, 0x3b, 0x76, 0x6d, 0x74, 0xb9, - 0xe0, 0x24, 0x27, 0x5a, 0xd8, 0xd9, 0x22, 0x6d, 0x57, 0x70, 0x28, 0x0b, 0xbb, 0x10, 0x02, 0x92, - 0x87, 0xe6, 0x51, 0x01, 0x32, 0xb5, 0x8e, 0xd6, 0x43, 0x3f, 0x77, 0x70, 0x5c, 0xae, 0x82, 0x59, - 0xa5, 0xa3, 0xf5, 0x6a, 0x3b, 0xf2, 0xa6, 0x73, 0xbb, 0xd8, 0xcb, 0x70, 0x9e, 0x56, 0x77, 0xb4, - 0x97, 0x2a, 0x64, 0x0f, 0x9b, 0x3e, 0x25, 0x19, 0x93, 0x4f, 0x4d, 0x16, 0xf1, 0x87, 0x37, 0x35, - 0x8d, 0x68, 0x3d, 0x79, 0xcc, 0xde, 0xe8, 0x98, 0x6e, 0xbe, 0x46, 0x80, 0x4c, 0x43, 0xde, 0xc1, - 0x31, 0x2d, 0x03, 0xc9, 0x21, 0x9c, 0xe0, 0x1d, 0xc2, 0x4d, 0x04, 0x0a, 0x31, 0x82, 0xb4, 0x88, - 0x3a, 0x14, 0x50, 0x82, 0x5a, 0x4f, 0x1e, 0x94, 0x2f, 0x67, 0x21, 0x4b, 0x04, 0x1d, 0x3d, 0x99, - 0x4e, 0x16, 0x15, 0x7e, 0x9f, 0x09, 0x1e, 0x5f, 0x08, 0x65, 0x21, 0xb0, 0x44, 0x9e, 0x4d, 0x02, - 0x2b, 0x9c, 0xc2, 0x76, 0x5f, 0x1a, 0xb2, 0x17, 0x94, 0xae, 0xb9, 0x15, 0xd3, 0xca, 0xec, 0xa2, - 0x55, 0x17, 0x3d, 0xc5, 0xb5, 0x13, 0x11, 0xbc, 0xc0, 0x0c, 0x73, 0x84, 0x10, 0x76, 0x20, 0x2f, - 0x30, 0x3c, 0x35, 0x4e, 0x47, 0x9c, 0xcf, 0x2b, 0x5d, 0xac, 0x5d, 0x92, 0xe2, 0x4c, 0x28, 0x8b, - 0x53, 0x9c, 0x03, 0x2b, 0xfc, 0xff, 0x56, 0x9c, 0x6d, 0x8e, 0xc4, 0x29, 0xce, 0xc1, 0x35, 0x26, - 0xcf, 0xe4, 0xcf, 0x08, 0x90, 0xa9, 0x2b, 0xbd, 0x6d, 0xf4, 0xfb, 0x02, 0xcc, 0xdb, 0x6e, 0x0e, - 0x1c, 0xbb, 0xb9, 0xcd, 0x83, 0x73, 0xfd, 0x5a, 0x98, 0x37, 0xfd, 0x75, 0x3a, 0x06, 0x7a, 0x4c, - 0x26, 0xfa, 0x94, 0x7f, 0x36, 0x6d, 0xb0, 0x28, 0xdc, 0x11, 0xb4, 0xab, 0xa1, 0xf4, 0xb6, 0x8b, - 0x0c, 0xbd, 0xb1, 0x4c, 0xab, 0x1f, 0x76, 0xa1, 0xfb, 0x19, 0x06, 0xba, 0x7b, 0x26, 0x25, 0x23, - 0x79, 0x04, 0x1f, 0xcf, 0x59, 0xdc, 0x53, 0x65, 0xe2, 0x6d, 0xe0, 0x97, 0x05, 0xc8, 0xb5, 0xb0, - 0x79, 0x0e, 0xef, 0xa1, 0xd6, 0xc1, 0xe1, 0xa3, 0x87, 0x0f, 0x82, 0x7b, 0xf8, 0x80, 0x3e, 0x90, - 0x8e, 0x36, 0x60, 0x1c, 0xc2, 0x8a, 0x36, 0x51, 0xb1, 0x60, 0x14, 0x65, 0x78, 0x85, 0xb7, 0x9f, - 0x3c, 0x38, 0xef, 0x11, 0x40, 0x28, 0x75, 0xbb, 0x68, 0xf7, 0xe0, 0x60, 0xdc, 0x06, 0x33, 0x3a, - 0xed, 0x8d, 0x7b, 0xf0, 0x36, 0x64, 0xd3, 0x43, 0x1f, 0x4b, 0x6e, 0xc1, 0xa8, 0x97, 0x4d, 0x3c, - 0x7e, 0x95, 0xba, 0xdd, 0x69, 0x5f, 0x36, 0x09, 0x6b, 0x3c, 0x79, 0xa4, 0x3e, 0x28, 0x00, 0x34, - 0x3d, 0x8f, 0x4f, 0xef, 0x10, 0xec, 0xa3, 0xd3, 0x65, 0x5e, 0xe0, 0xae, 0x85, 0x79, 0xcf, 0x61, - 0xd4, 0xaa, 0xae, 0x3a, 0xaa, 0x8e, 0xc9, 0x44, 0x5f, 0x88, 0xb8, 0x3d, 0xe2, 0x51, 0xe4, 0x1c, - 0x75, 0x1c, 0x18, 0x91, 0xcf, 0x45, 0x58, 0x01, 0x84, 0x36, 0x1f, 0x0d, 0x93, 0x66, 0x74, 0x4c, - 0xc4, 0x2b, 0xe1, 0x0a, 0xa7, 0x44, 0x73, 0xf1, 0xfe, 0x6a, 0xb9, 0xbd, 0xd6, 0x7e, 0x60, 0xa5, - 0xba, 0xb6, 0x2a, 0xd5, 0x0b, 0x02, 0x7a, 0x53, 0x1e, 0x66, 0x16, 0x35, 0x6d, 0x9b, 0xb8, 0x08, - 0x78, 0xad, 0x00, 0xd9, 0x25, 0x6c, 0x76, 0xb6, 0x62, 0x52, 0x7b, 0x03, 0x17, 0x40, 0x62, 0xd8, - 0x11, 0x75, 0x57, 0xcb, 0xa1, 0xab, 0x48, 0x68, 0x9a, 0xfa, 0xae, 0x56, 0x68, 0xf3, 0xc9, 0x0f, - 0xa5, 0x1f, 0x0b, 0x70, 0xb4, 0xac, 0x63, 0xd9, 0xc4, 0xa5, 0x5e, 0xd7, 0x46, 0xe5, 0x57, 0x63, - 0x71, 0xd1, 0x73, 0x00, 0xc7, 0x88, 0xfb, 0x8d, 0x75, 0x9e, 0x88, 0xe6, 0xb2, 0xc0, 0x63, 0x2a, - 0xdb, 0xb5, 0x84, 0xef, 0x76, 0x44, 0x70, 0x66, 0xc0, 0x49, 0x61, 0xf2, 0xf8, 0x7f, 0x3b, 0x43, - 0xb7, 0x61, 0xbe, 0x9e, 0x81, 0x63, 0x2e, 0x2d, 0xd4, 0x28, 0xeb, 0xef, 0x2f, 0x39, 0x49, 0x60, - 0xcd, 0xa7, 0xb3, 0x43, 0xe6, 0xd3, 0xe2, 0xa2, 0x6d, 0x02, 0x46, 0x3c, 0x03, 0xe6, 0x38, 0x2e, - 0x61, 0x93, 0x9d, 0x16, 0xab, 0xb4, 0xe4, 0xbe, 0xc7, 0xde, 0x60, 0xa8, 0xb3, 0xb2, 0x36, 0x6a, - 0xd9, 0x42, 0xea, 0x18, 0xe2, 0x5c, 0xc2, 0x82, 0xf6, 0x41, 0x57, 0xd0, 0x9a, 0x8c, 0xa0, 0xbd, - 0x70, 0x32, 0xf2, 0xa6, 0xe0, 0xe1, 0xe4, 0x6e, 0x98, 0xa9, 0xc8, 0xa6, 0xbc, 0xab, 0xe0, 0x8b, - 0xe8, 0x9b, 0x02, 0xc0, 0x79, 0x05, 0x5f, 0xb4, 0x89, 0x8a, 0x70, 0xf7, 0x3e, 0x98, 0x7d, 0xf7, - 0x42, 0xc6, 0xaa, 0x9a, 0x9e, 0x28, 0xde, 0x10, 0x7e, 0xf1, 0x9e, 0xd2, 0x51, 0xb4, 0x68, 0x90, - 0xc8, 0x7b, 0xac, 0xb1, 0x2d, 0xc7, 0xf1, 0x3c, 0x53, 0x87, 0xdd, 0x8f, 0x38, 0x26, 0x0e, 0xf1, - 0x04, 0xe4, 0xac, 0x6a, 0xdd, 0x8f, 0x2f, 0x9a, 0x8a, 0x74, 0xc8, 0x3f, 0x9e, 0xb6, 0xe4, 0xf1, - 0x76, 0x20, 0xb6, 0xaf, 0x49, 0x46, 0xb0, 0xa1, 0x0f, 0x86, 0x38, 0x80, 0x35, 0x07, 0x86, 0xfe, - 0x63, 0x07, 0x81, 0xde, 0xee, 0x5f, 0x2c, 0x6b, 0x86, 0x89, 0x21, 0x1e, 0x49, 0x43, 0xf2, 0x10, - 0xbf, 0x83, 0x42, 0x5c, 0xc1, 0x2a, 0x36, 0x31, 0xbf, 0xbf, 0x22, 0x1e, 0x84, 0x33, 0x8c, 0xf0, - 0x1f, 0x08, 0x21, 0x9b, 0xbc, 0xc3, 0x45, 0x68, 0x24, 0x0d, 0xc9, 0x23, 0xf4, 0x25, 0x01, 0x8e, - 0x59, 0xcd, 0xb7, 0xbc, 0x1b, 0x3d, 0xfc, 0x1e, 0x8b, 0x22, 0xc3, 0x44, 0x1c, 0x92, 0xfb, 0xdd, - 0x6d, 0xce, 0xfb, 0x1c, 0x2b, 0x7e, 0xc6, 0x0f, 0xe1, 0x0a, 0x0b, 0xe1, 0x58, 0xf6, 0xf9, 0xe8, - 0x8f, 0x05, 0xc7, 0x8f, 0xb8, 0x38, 0xb6, 0x18, 0x1c, 0xef, 0x9b, 0x9c, 0x90, 0xe4, 0xc1, 0x7c, - 0x42, 0x80, 0x79, 0x4a, 0x43, 0xa9, 0x63, 0x2a, 0xbb, 0x18, 0x3d, 0x94, 0xa0, 0x52, 0x3d, 0x01, - 0x39, 0x6d, 0x63, 0xc3, 0xa0, 0xd7, 0xbd, 0xe6, 0x25, 0x9a, 0x12, 0x8f, 0x43, 0x56, 0x55, 0x76, - 0x14, 0x93, 0x02, 0x6c, 0x27, 0x22, 0xef, 0x09, 0x0e, 0x33, 0xd5, 0xee, 0xd0, 0xd4, 0xf7, 0x04, - 0xb9, 0xc8, 0x48, 0x1e, 0xd9, 0x0f, 0x10, 0x1b, 0xd3, 0x8e, 0xa6, 0x77, 0xe9, 0x6c, 0xf9, 0xfa, - 0x54, 0x2c, 0x77, 0x21, 0x74, 0x52, 0xa7, 0x0b, 0xad, 0x9b, 0x16, 0x6f, 0x86, 0x9c, 0xfd, 0x9f, - 0xce, 0x99, 0xc1, 0x36, 0xe1, 0x76, 0x31, 0xf4, 0x3a, 0x3f, 0xbe, 0xcb, 0x2c, 0xbe, 0x2f, 0x08, - 0x63, 0xac, 0xbf, 0x5b, 0x01, 0xfb, 0xef, 0x1f, 0x72, 0x01, 0x5b, 0x61, 0x00, 0xbb, 0x7b, 0xc2, - 0x7a, 0xa7, 0x72, 0xe9, 0x8b, 0xe2, 0x45, 0xa7, 0xbe, 0x7f, 0x99, 0x28, 0x5c, 0xe8, 0x13, 0x07, - 0xe3, 0x7e, 0x8c, 0x13, 0xe0, 0x01, 0xb0, 0x3a, 0xa4, 0x29, 0xf0, 0x29, 0x17, 0x2b, 0xfa, 0xb1, - 0xf1, 0xc6, 0x54, 0x2c, 0x77, 0x2a, 0xe8, 0xf8, 0x11, 0xb8, 0xc6, 0x8f, 0x78, 0x12, 0xc0, 0xc4, - 0x3b, 0x7d, 0x55, 0x36, 0xb1, 0x3b, 0x6b, 0xfa, 0x72, 0xd0, 0x7f, 0x38, 0x18, 0xc2, 0xa1, 0xdf, - 0x1f, 0x1e, 0xb1, 0x69, 0xbe, 0xc1, 0x7e, 0x00, 0x90, 0x0f, 0xe9, 0x63, 0xe3, 0x37, 0x32, 0x30, - 0xe7, 0x6c, 0x47, 0x1f, 0xe6, 0xfe, 0xfd, 0xeb, 0x85, 0x68, 0x1b, 0x07, 0x3e, 0xee, 0xb9, 0xc4, - 0xc7, 0xf2, 0x15, 0x79, 0x0d, 0xcc, 0x39, 0x44, 0x9d, 0x73, 0x8f, 0x84, 0xfc, 0x59, 0x4c, 0xff, - 0x32, 0xbc, 0xfd, 0x8b, 0xb2, 0xeb, 0xc0, 0xd1, 0xb7, 0xe4, 0x05, 0xe3, 0xbb, 0x02, 0x1c, 0x75, - 0xda, 0xa7, 0x73, 0xeb, 0x9b, 0x63, 0x18, 0xff, 0x09, 0xb1, 0x37, 0xa2, 0x5b, 0xd6, 0xfd, 0x2c, - 0x8e, 0xf1, 0x63, 0x34, 0xca, 0x4e, 0x26, 0x1f, 0x1d, 0xc9, 0xa3, 0xfd, 0x31, 0x1f, 0xda, 0x74, - 0x66, 0xee, 0x4c, 0x01, 0xec, 0x83, 0xe3, 0xc6, 0x37, 0x43, 0x0b, 0x89, 0xe3, 0x76, 0x48, 0x73, - 0xf4, 0x93, 0x19, 0xb8, 0xc2, 0x9e, 0x3f, 0x1c, 0x42, 0x9a, 0x7d, 0x47, 0x95, 0x3f, 0x36, 0x95, - 0xe1, 0xfa, 0x7c, 0xc8, 0x69, 0x7d, 0xdf, 0x60, 0x3d, 0x19, 0x30, 0x58, 0x8b, 0x36, 0x61, 0x12, - 0x2d, 0xcd, 0xac, 0xda, 0xb2, 0x43, 0xab, 0x36, 0xc6, 0x91, 0xc7, 0x8b, 0x59, 0xa9, 0x58, 0x1c, - 0x3f, 0x95, 0xee, 0x63, 0x45, 0x2c, 0x13, 0x83, 0xd7, 0x51, 0x21, 0x4a, 0x47, 0xd1, 0x27, 0x5d, - 0xb1, 0x7a, 0x09, 0x23, 0x56, 0x67, 0x0e, 0xde, 0x91, 0x29, 0x1c, 0x16, 0x67, 0x00, 0x8d, 0xa2, - 0x85, 0xce, 0x08, 0x3f, 0xb9, 0x22, 0xf6, 0x97, 0x7e, 0xc5, 0xf3, 0x12, 0x56, 0xc4, 0xaa, 0x51, - 0x91, 0x89, 0x71, 0xf2, 0xf8, 0xb4, 0x2b, 0x2d, 0xff, 0x8a, 0x91, 0x96, 0xfb, 0x63, 0xa1, 0x69, - 0x0a, 0x96, 0xc9, 0x01, 0x02, 0x43, 0x27, 0x95, 0xb7, 0x4d, 0x45, 0x60, 0x10, 0xcc, 0xd8, 0x22, - 0xe0, 0x7e, 0x31, 0xb8, 0xe9, 0xe9, 0x09, 0x45, 0x8c, 0xdf, 0x8e, 0xb1, 0x09, 0xc5, 0x21, 0xcd, - 0x52, 0x7f, 0x22, 0xc0, 0xd3, 0x1c, 0x42, 0xea, 0x8a, 0x61, 0x96, 0x76, 0x65, 0x45, 0x95, 0xd7, - 0x55, 0x1c, 0x87, 0x77, 0x84, 0xff, 0xe9, 0x07, 0xed, 0x3c, 0x0b, 0xda, 0x8b, 0x78, 0xa6, 0x6e, - 0x86, 0xa2, 0x00, 0xbc, 0x6e, 0x87, 0x59, 0x47, 0xc0, 0x9c, 0x6b, 0xe3, 0x81, 0xab, 0x52, 0xaf, - 0x24, 0xfa, 0x73, 0x17, 0xb8, 0x07, 0x18, 0xe0, 0xaa, 0x07, 0xa5, 0x2b, 0x1a, 0x66, 0xf5, 0x09, - 0x4c, 0x52, 0x16, 0xe0, 0x78, 0xa3, 0xd9, 0x5e, 0x2b, 0xad, 0x55, 0x4a, 0xed, 0xd2, 0xf9, 0x5a, - 0xf5, 0xc2, 0xda, 0x62, 0xbd, 0x59, 0x3e, 0x57, 0x10, 0xd0, 0x6f, 0x0a, 0x30, 0xdb, 0xc2, 0x66, - 0x4b, 0x1b, 0xe8, 0x9d, 0xb8, 0xce, 0x2e, 0x0c, 0x52, 0x19, 0x0d, 0x47, 0x44, 0x53, 0x51, 0x1d, - 0x41, 0x7b, 0x1c, 0x74, 0xa9, 0x1b, 0x37, 0xfa, 0x32, 0x31, 0x3b, 0x82, 0x1e, 0x4f, 0x42, 0xf2, - 0x83, 0xed, 0x61, 0x01, 0x84, 0x33, 0xd8, 0x44, 0x6f, 0x15, 0x20, 0x4b, 0xee, 0x7e, 0xc6, 0xe4, - 0x8c, 0x96, 0xd7, 0xcd, 0x29, 0x7a, 0x97, 0x1f, 0xb6, 0x12, 0x0b, 0xdb, 0x28, 0xb7, 0x80, 0x67, - 0x30, 0xbd, 0xa4, 0x1a, 0x8b, 0xae, 0x7c, 0xb7, 0x8b, 0x56, 0x85, 0x41, 0xeb, 0x96, 0x08, 0x2d, - 0x27, 0x0f, 0xd2, 0x9d, 0x70, 0x6c, 0xb5, 0xd7, 0xd5, 0x24, 0xdc, 0xd5, 0xca, 0xda, 0xa0, 0x67, - 0x62, 0xe2, 0xb4, 0x68, 0xd0, 0xeb, 0x6a, 0x84, 0xdc, 0xac, 0x44, 0xfe, 0x5b, 0x79, 0x3a, 0xee, - 0x6a, 0xa4, 0xd5, 0xac, 0x44, 0xfe, 0xa3, 0xb7, 0x09, 0x90, 0xb1, 0xde, 0x45, 0xcf, 0xe1, 0x84, - 0x15, 0xfd, 0xb7, 0x88, 0x6e, 0x25, 0xad, 0xda, 0x63, 0x59, 0x32, 0xdf, 0x0b, 0x33, 0x1d, 0xbb, - 0x77, 0x8e, 0xa3, 0x86, 0x53, 0x01, 0xcd, 0xf9, 0x18, 0x21, 0xb9, 0xef, 0xf8, 0x0e, 0x24, 0xc6, - 0x3b, 0x97, 0x1c, 0x41, 0x74, 0x34, 0x18, 0x2b, 0x13, 0x28, 0xc9, 0x02, 0x1c, 0x29, 0x97, 0x1a, - 0x6b, 0x96, 0xa2, 0x5c, 0x6e, 0x9e, 0xaf, 0x16, 0x04, 0x82, 0x8e, 0xd5, 0x99, 0xe4, 0xd0, 0xb1, - 0x6a, 0xff, 0x89, 0x43, 0x67, 0x04, 0xd1, 0x87, 0x81, 0xce, 0x7b, 0x04, 0xc8, 0x34, 0xfb, 0xb8, - 0x17, 0xd3, 0x1d, 0x54, 0x53, 0x97, 0x3b, 0xd8, 0x3d, 0x75, 0x70, 0x92, 0xe8, 0x0f, 0x23, 0x22, - 0x6a, 0x51, 0x14, 0x8b, 0xee, 0xfb, 0x42, 0x04, 0x44, 0x46, 0x34, 0x1a, 0x0d, 0x91, 0x9f, 0x9d, - 0x00, 0x91, 0x79, 0x98, 0xb5, 0xd0, 0x58, 0x6a, 0xae, 0x36, 0x2a, 0x05, 0x41, 0x7c, 0x3a, 0x3c, - 0xad, 0xd4, 0x78, 0x80, 0x98, 0xba, 0x36, 0xaa, 0xd5, 0x4a, 0x6b, 0x6d, 0x75, 0xe5, 0x8c, 0x54, - 0xaa, 0x54, 0x0b, 0x40, 0x90, 0x6a, 0x6d, 0x69, 0x17, 0x2f, 0x2d, 0xa4, 0x2c, 0x8a, 0xa6, 0x8e, - 0xd4, 0x88, 0x46, 0x2f, 0x25, 0xa4, 0xbe, 0x94, 0x86, 0x63, 0x67, 0xb0, 0xb9, 0x32, 0x58, 0x57, - 0x95, 0xce, 0x05, 0xbc, 0xbe, 0x2a, 0xd5, 0xd1, 0xb3, 0x3c, 0xd0, 0x02, 0x03, 0xf5, 0xa0, 0x37, - 0x44, 0xbc, 0x62, 0x31, 0xd4, 0x48, 0x00, 0x0e, 0xd4, 0xea, 0x31, 0xed, 0xd9, 0xbf, 0x46, 0xb9, - 0x46, 0x11, 0xde, 0x46, 0xf2, 0xeb, 0x82, 0xb7, 0x0b, 0x70, 0xcc, 0x1a, 0x99, 0x8b, 0x3a, 0x96, - 0xbb, 0x1d, 0x7d, 0xb0, 0xb3, 0x6e, 0x44, 0xfa, 0x46, 0x72, 0xe4, 0x3c, 0xcd, 0xca, 0xf9, 0xe7, - 0x23, 0xb2, 0x7a, 0x88, 0x84, 0x84, 0x2d, 0x32, 0xa3, 0x00, 0x14, 0x4e, 0xd9, 0x14, 0xc2, 0x75, - 0x0b, 0x70, 0xb4, 0x85, 0xcd, 0x00, 0x7c, 0xae, 0x85, 0xf9, 0x75, 0xef, 0x89, 0x8b, 0x11, 0x9b, - 0x69, 0x89, 0xa8, 0xe2, 0x3a, 0x10, 0xb5, 0xfe, 0x4e, 0xe2, 0x4c, 0x62, 0x3c, 0x3c, 0x89, 0x3a, - 0x93, 0x38, 0x4c, 0x0c, 0xbe, 0x27, 0x40, 0x8e, 0x1e, 0x49, 0xbf, 0x2f, 0x16, 0x23, 0xeb, 0x08, - 0xa1, 0x36, 0x0e, 0x12, 0x21, 0xf7, 0x63, 0x11, 0xbd, 0x66, 0x86, 0x9e, 0x4d, 0xc7, 0x35, 0xf8, - 0xa2, 0xf8, 0xd3, 0x3c, 0xa4, 0x33, 0xea, 0xef, 0x65, 0x00, 0xec, 0xa6, 0x89, 0x03, 0xb2, 0x57, - 0x72, 0x87, 0xed, 0x98, 0x20, 0x36, 0x36, 0x6b, 0x6e, 0x90, 0x1d, 0x36, 0x37, 0xe0, 0xb6, 0xd5, - 0x8f, 0x26, 0x1a, 0x3e, 0x57, 0x93, 0x39, 0x3e, 0x57, 0x93, 0x5f, 0x8b, 0xe8, 0x6a, 0xd2, 0xe3, - 0x5f, 0x64, 0x79, 0xf2, 0x77, 0x59, 0x18, 0xea, 0x72, 0xb4, 0x9d, 0x94, 0x28, 0x0e, 0x2a, 0x03, - 0x09, 0x4e, 0x5e, 0xde, 0xfe, 0x53, 0x06, 0x66, 0xed, 0xe6, 0x5b, 0xd8, 0x44, 0x5f, 0x8c, 0x45, - 0xc5, 0x04, 0xec, 0x71, 0xf9, 0x45, 0x34, 0xc3, 0x29, 0xa2, 0x07, 0x08, 0xcd, 0xfe, 0xc3, 0x88, - 0x5b, 0x33, 0x2e, 0x17, 0x0e, 0x51, 0x68, 0x3e, 0x1b, 0x61, 0x43, 0x27, 0x88, 0xde, 0x43, 0xbe, - 0xc1, 0xf7, 0xdd, 0x34, 0xe4, 0x56, 0x7b, 0xaa, 0xd2, 0xdb, 0x46, 0xe5, 0x18, 0x02, 0xb3, 0x45, - 0x77, 0xbf, 0x4c, 0xda, 0x9e, 0xbe, 0xfb, 0xe5, 0x51, 0xcd, 0x4e, 0xc1, 0x4d, 0x58, 0x1a, 0xb2, - 0x65, 0x55, 0x33, 0x62, 0x39, 0x5d, 0xf8, 0x6e, 0x2a, 0x5a, 0x4c, 0x09, 0xd2, 0x70, 0x80, 0xb9, - 0x66, 0x94, 0xb8, 0x0d, 0xa3, 0xea, 0x49, 0x9e, 0x75, 0x7f, 0x73, 0x04, 0x66, 0x2f, 0x68, 0xfa, - 0xb6, 0xd1, 0x97, 0x3b, 0x18, 0x7d, 0x22, 0x0d, 0x70, 0x06, 0x9b, 0xe5, 0x81, 0xae, 0x5b, 0xd0, - 0xcf, 0xba, 0xdc, 0x64, 0x3d, 0x52, 0x87, 0xae, 0x57, 0xdd, 0xda, 0x8a, 0x5e, 0x4d, 0xc1, 0xfe, - 0xf5, 0x2f, 0x3a, 0xa5, 0x5d, 0x20, 0xfc, 0x59, 0x9c, 0x6b, 0x54, 0x8e, 0x26, 0x93, 0xe7, 0xe4, - 0x87, 0xd2, 0x90, 0x3b, 0x83, 0xcd, 0x92, 0xaa, 0xfa, 0xf9, 0xf6, 0x16, 0xee, 0x59, 0x9b, 0xe9, - 0x44, 0x49, 0x55, 0x03, 0x78, 0x76, 0x0a, 0x8e, 0xf8, 0x18, 0xe4, 0x68, 0x0a, 0x26, 0x8f, 0x73, - 0xd6, 0x1d, 0xd3, 0x60, 0xf2, 0x1c, 0xfb, 0xc3, 0xb4, 0xbb, 0xaa, 0xbf, 0xda, 0x1b, 0xb7, 0x23, - 0x22, 0xc3, 0xa0, 0x37, 0x4d, 0xc0, 0xc5, 0xd0, 0xb5, 0xf4, 0x78, 0xc9, 0x8b, 0xca, 0xc3, 0x43, - 0x5a, 0x29, 0x7f, 0x37, 0x0d, 0x85, 0x16, 0x36, 0x6b, 0xc6, 0x59, 0x65, 0x73, 0x4b, 0x55, 0x36, - 0xb7, 0x4c, 0xdc, 0x45, 0xe7, 0x3c, 0x6e, 0x22, 0x98, 0xb1, 0xaf, 0xe9, 0xbb, 0x4a, 0xd0, 0x4d, - 0xdb, 0xc1, 0x85, 0x7c, 0xef, 0x11, 0x9a, 0x48, 0x70, 0x21, 0x7f, 0x65, 0xaf, 0xe1, 0xbe, 0xe0, - 0xe9, 0x31, 0x63, 0x98, 0xa2, 0x00, 0xf5, 0xc8, 0x67, 0x22, 0xc9, 0x5d, 0xed, 0x14, 0x2e, 0x1f, - 0xa4, 0x21, 0xd7, 0x22, 0x71, 0x65, 0xd0, 0x4f, 0x7b, 0x3c, 0x1e, 0x12, 0xa6, 0xd4, 0x7e, 0x61, - 0xfa, 0xdf, 0xa9, 0xe8, 0xf2, 0x6b, 0xb7, 0x13, 0xc0, 0xb9, 0xa8, 0xd2, 0x39, 0xb2, 0xb2, 0x29, - 0x38, 0x70, 0x99, 0x81, 0xdc, 0x05, 0x59, 0x55, 0xb1, 0x89, 0xbe, 0xe1, 0x0d, 0xf6, 0x67, 0x33, - 0xe2, 0xa9, 0x6b, 0x9a, 0x1d, 0xd4, 0x85, 0x8a, 0xa7, 0x93, 0x46, 0xef, 0xe7, 0x8e, 0x4e, 0x6a, - 0x37, 0x11, 0x3e, 0xe2, 0x11, 0xcc, 0xec, 0xf4, 0xf0, 0x8e, 0xd6, 0x53, 0x3a, 0xce, 0x52, 0xdd, - 0x49, 0xa3, 0x3f, 0xe2, 0x8a, 0x38, 0x1a, 0xd6, 0x4a, 0x34, 0x56, 0xb6, 0x26, 0x58, 0x6e, 0x3e, - 0x03, 0xae, 0x5c, 0x2a, 0xd5, 0xea, 0xd5, 0xca, 0x5a, 0xbb, 0xb9, 0x56, 0x96, 0xaa, 0xa5, 0x76, - 0x75, 0xad, 0xde, 0x2c, 0x97, 0xea, 0x6b, 0x52, 0x75, 0xa5, 0x59, 0xc0, 0xe8, 0x5b, 0xe4, 0x23, - 0xb9, 0xa3, 0xed, 0x62, 0xdd, 0xbf, 0x0c, 0x0a, 0xe1, 0x70, 0x28, 0x4f, 0xde, 0xc8, 0x1d, 0x82, - 0x82, 0xf2, 0x85, 0xb6, 0x1d, 0x20, 0xb0, 0xff, 0x91, 0x2b, 0xa8, 0x44, 0x68, 0x55, 0x97, 0x00, - 0x8f, 0x7f, 0x98, 0x86, 0x7c, 0x59, 0xeb, 0xed, 0x62, 0xdd, 0x44, 0xf7, 0x31, 0x3c, 0x76, 0xf9, - 0x98, 0x62, 0xf9, 0x68, 0x2d, 0x34, 0x71, 0xcf, 0xd4, 0xb5, 0xfe, 0x9e, 0xb3, 0xd0, 0xa4, 0x49, - 0xd6, 0x81, 0x0d, 0x0f, 0x87, 0x69, 0xcb, 0xc1, 0x5f, 0x66, 0xa3, 0x1b, 0x62, 0xc8, 0x13, 0x86, - 0x60, 0x7e, 0x38, 0x0a, 0x2e, 0xa3, 0x09, 0x98, 0xc2, 0xd5, 0xcc, 0x2b, 0x20, 0x5f, 0xea, 0x90, - 0x63, 0x48, 0xf4, 0x9d, 0x14, 0xe4, 0xca, 0x5a, 0x6f, 0x43, 0xd9, 0x14, 0xaf, 0x83, 0xa3, 0xb8, - 0x27, 0xaf, 0xab, 0xd8, 0xb1, 0xc1, 0x20, 0xb4, 0xcf, 0x48, 0x43, 0xb9, 0x16, 0x51, 0x34, 0x07, - 0xaf, 0x0f, 0x36, 0xe9, 0x2c, 0xe7, 0xcf, 0x12, 0xef, 0x05, 0x64, 0x27, 0x25, 0xac, 0x62, 0xd9, - 0xc0, 0xe5, 0x2d, 0xb9, 0xd7, 0xc3, 0x6a, 0xeb, 0xa2, 0x62, 0x76, 0xb6, 0xa8, 0xc3, 0xd9, 0x90, - 0x12, 0xd6, 0xa2, 0xcc, 0x7e, 0xda, 0xb2, 0xb4, 0xad, 0x41, 0xa3, 0xbe, 0x31, 0x79, 0xe2, 0x4d, - 0x90, 0xc5, 0x0f, 0x9a, 0xba, 0xbc, 0xd0, 0x0d, 0xff, 0xea, 0xb7, 0x4b, 0xa1, 0x6f, 0x65, 0x5d, - 0x7d, 0xf9, 0x73, 0xa1, 0x8b, 0x23, 0xf1, 0x06, 0x38, 0x26, 0xef, 0xca, 0xa6, 0xac, 0xd7, 0x5d, - 0x4f, 0x0f, 0x84, 0xef, 0x67, 0x2f, 0x93, 0x86, 0x1f, 0x88, 0xd7, 0xc3, 0x31, 0x59, 0xed, 0x6f, - 0xc9, 0xb5, 0xde, 0xae, 0x62, 0x62, 0x0b, 0x88, 0x85, 0xe3, 0xa4, 0xaa, 0xe1, 0xec, 0xc5, 0x19, - 0xc8, 0xd9, 0x2f, 0xa3, 0x27, 0x32, 0xbc, 0x72, 0x4a, 0x31, 0x0a, 0x57, 0xc4, 0xb7, 0x40, 0x5e, - 0xb6, 0xcb, 0xed, 0xfb, 0xfe, 0xb4, 0xf7, 0x32, 0x68, 0x2d, 0x92, 0x53, 0x4c, 0xbc, 0x0d, 0x72, - 0x1d, 0x82, 0x38, 0xdd, 0xd3, 0xbb, 0x72, 0x74, 0xa3, 0xa4, 0x88, 0x44, 0x8b, 0xa2, 0x77, 0x09, - 0x3c, 0x82, 0x1d, 0x4a, 0x71, 0x34, 0xc1, 0xfe, 0x70, 0x7a, 0x02, 0x8d, 0x73, 0x23, 0x5c, 0x5f, - 0x2a, 0x97, 0x9b, 0xab, 0x8d, 0x36, 0xd5, 0x37, 0x95, 0xb5, 0xc5, 0xd5, 0xf6, 0x9a, 0xa7, 0x85, - 0x5a, 0xed, 0x92, 0xd4, 0x5e, 0x6b, 0x34, 0x2b, 0xd5, 0x82, 0x85, 0xf4, 0x75, 0x63, 0x4a, 0x57, - 0xdb, 0x6b, 0x8d, 0xd2, 0x72, 0xb5, 0xb0, 0xc1, 0x51, 0x73, 0xb5, 0xbd, 0x56, 0x3a, 0x5f, 0x6a, - 0x97, 0xa4, 0xc2, 0x26, 0xab, 0xf9, 0x5a, 0xed, 0xe6, 0xca, 0x9a, 0xb4, 0xda, 0x68, 0xd4, 0x1a, - 0x67, 0xec, 0xa6, 0xb7, 0xc4, 0xe3, 0x70, 0xcc, 0xa6, 0xfb, 0x7c, 0xad, 0x5d, 0x5d, 0x2b, 0x5b, - 0x99, 0xbf, 0x90, 0x17, 0x8f, 0xc2, 0x6c, 0xa3, 0xda, 0xa6, 0x9d, 0x7b, 0x75, 0x5e, 0xbc, 0x12, - 0x4e, 0x58, 0xe9, 0x72, 0xb3, 0xd1, 0xa8, 0x96, 0xdb, 0xb5, 0x66, 0x63, 0x4d, 0xaa, 0x2e, 0xad, - 0xb6, 0xaa, 0x95, 0xc2, 0x2f, 0xe6, 0xc5, 0x02, 0xcc, 0x59, 0x0f, 0x9b, 0x4b, 0x4b, 0xf5, 0x5a, - 0xa3, 0x5a, 0x78, 0x28, 0x8f, 0x1e, 0xc9, 0x78, 0x53, 0x96, 0xef, 0x9b, 0xe9, 0xf5, 0x19, 0xde, - 0x3d, 0x2b, 0x07, 0xbe, 0xf0, 0xb9, 0xe7, 0x0f, 0x04, 0x9e, 0xfd, 0xa4, 0xf0, 0xba, 0xa2, 0xc9, - 0xc2, 0x97, 0x27, 0x91, 0x85, 0xa7, 0xc1, 0xe5, 0x8d, 0xe6, 0x1a, 0x05, 0xad, 0x45, 0x0f, 0x62, - 0xad, 0xd6, 0xae, 0x6a, 0x54, 0x6d, 0x60, 0xa4, 0x6a, 0xb9, 0x79, 0xbe, 0x2a, 0xad, 0x5d, 0x28, - 0xd5, 0xeb, 0xd5, 0xf6, 0xda, 0x52, 0x4d, 0x6a, 0xb5, 0x0b, 0x1b, 0xe3, 0xa6, 0xad, 0x4d, 0xf1, - 0x59, 0xf0, 0x0c, 0x2f, 0xbd, 0x56, 0x7d, 0x71, 0xad, 0xd5, 0x6e, 0x11, 0x69, 0x28, 0x37, 0x25, - 0x69, 0x75, 0xa5, 0x5d, 0xad, 0x14, 0xb6, 0xc4, 0x13, 0x20, 0x7a, 0xb5, 0x48, 0xab, 0x0d, 0x1b, - 0x79, 0xc5, 0x6a, 0x9f, 0xb6, 0xe7, 0x34, 0xdf, 0x68, 0xb6, 0xd7, 0x56, 0xaa, 0xd2, 0x52, 0x53, - 0x5a, 0xae, 0x56, 0x0a, 0x2f, 0x1d, 0x27, 0x3c, 0xdb, 0xe2, 0x75, 0x70, 0xaa, 0xd4, 0x68, 0xb6, - 0xcf, 0x56, 0xa5, 0x35, 0xe7, 0x4c, 0x79, 0x45, 0x6a, 0x96, 0xab, 0xad, 0xd6, 0x5a, 0xad, 0xe5, - 0x14, 0x2e, 0xa8, 0x16, 0x09, 0x8e, 0xcc, 0xd6, 0x5a, 0x6b, 0x95, 0x6a, 0xbd, 0x6a, 0x91, 0xb6, - 0x43, 0x5c, 0xff, 0x51, 0x73, 0xe2, 0x67, 0x7a, 0xba, 0xf0, 0x04, 0xe4, 0x74, 0x6c, 0xcd, 0x47, - 0x54, 0xed, 0xd3, 0x14, 0xfa, 0xdb, 0x74, 0x54, 0x7d, 0x15, 0x6a, 0xb8, 0x7b, 0x3b, 0xe4, 0x0c, - 0x53, 0x36, 0x07, 0x06, 0x55, 0x57, 0x57, 0x8f, 0x56, 0x57, 0xc5, 0x16, 0x29, 0x24, 0xd1, 0xc2, - 0xe8, 0x6b, 0xa9, 0x28, 0xfa, 0x27, 0x06, 0x33, 0x5d, 0x65, 0x02, 0x91, 0x3b, 0x09, 0xc8, 0xc7, - 0xf0, 0x52, 0x5d, 0xaa, 0x96, 0x2a, 0x0f, 0xb8, 0x8c, 0xc7, 0x96, 0x48, 0xfa, 0x9f, 0x97, 0xdb, - 0xb5, 0xf3, 0xd5, 0xc2, 0x06, 0xfa, 0x74, 0xd6, 0xfd, 0x0c, 0xba, 0xdd, 0xc3, 0xe3, 0x28, 0xa4, - 0x15, 0xe7, 0xeb, 0x27, 0xad, 0x74, 0x99, 0x95, 0x67, 0x7a, 0x68, 0x6d, 0xff, 0x4f, 0x91, 0xe7, - 0x94, 0xb0, 0xcf, 0xa1, 0x69, 0xcd, 0x29, 0x9f, 0x8b, 0x34, 0xa7, 0xc4, 0xf0, 0xcd, 0xf5, 0x17, - 0xe9, 0x04, 0x56, 0xb1, 0x3c, 0xea, 0x60, 0x23, 0x40, 0x1d, 0x0c, 0xcd, 0x14, 0x4b, 0xb5, 0x46, - 0x65, 0xcd, 0x95, 0x90, 0xc6, 0x52, 0xb3, 0xb0, 0x25, 0x16, 0xe1, 0x06, 0x5f, 0xed, 0x96, 0xae, - 0xa0, 0x2d, 0x94, 0x1a, 0x95, 0xb5, 0xe5, 0x46, 0x75, 0xb9, 0xd9, 0xa8, 0x95, 0x49, 0x7e, 0xab, - 0xda, 0xb6, 0xf5, 0xcb, 0x90, 0xf6, 0x68, 0x55, 0x4b, 0x52, 0xf9, 0x2c, 0x51, 0x34, 0x95, 0x6a, - 0xe1, 0xa5, 0xe2, 0x73, 0xe0, 0x59, 0x3e, 0x52, 0xa8, 0x12, 0x5a, 0x91, 0xaa, 0x95, 0xea, 0x52, - 0xad, 0x61, 0xcd, 0x6b, 0xf5, 0x66, 0xf9, 0x5c, 0x8b, 0x5f, 0xcf, 0xa0, 0x7f, 0x4c, 0x43, 0xa6, - 0x65, 0x6a, 0x7d, 0xf4, 0x5c, 0x4f, 0x7a, 0x4f, 0x02, 0xe8, 0x78, 0x47, 0xdb, 0x25, 0xcb, 0x46, - 0xaa, 0x51, 0x7c, 0x39, 0xe8, 0x8f, 0xb9, 0x77, 0xe0, 0x3d, 0x85, 0xa0, 0xf5, 0x03, 0x66, 0xa4, - 0x1f, 0x71, 0xed, 0xa9, 0x87, 0x54, 0x14, 0x4d, 0x8c, 0x5e, 0x9b, 0x9a, 0x40, 0x8c, 0x10, 0x9c, - 0xf0, 0x8d, 0x7d, 0x0b, 0x2f, 0x87, 0x81, 0x58, 0xbc, 0x02, 0x7e, 0x6a, 0x08, 0x33, 0x02, 0xd5, - 0x86, 0xf8, 0x4c, 0xb8, 0xda, 0x0f, 0xd5, 0x72, 0xf3, 0x7c, 0xd5, 0x95, 0x8f, 0x4a, 0xa9, 0x5d, - 0x2a, 0x6c, 0xa2, 0xcf, 0x08, 0x20, 0xd4, 0xb5, 0x4d, 0xf4, 0x98, 0x00, 0x99, 0x16, 0xee, 0x75, - 0x99, 0x13, 0xfd, 0x05, 0xc8, 0xef, 0x60, 0xc3, 0x90, 0x37, 0x9d, 0x25, 0xae, 0x93, 0x14, 0xef, - 0x84, 0xac, 0x8a, 0x77, 0xb1, 0x6d, 0xe7, 0x73, 0xf4, 0xf4, 0xb3, 0x18, 0x4e, 0xd5, 0xb5, 0xcd, - 0xa2, 0x55, 0x97, 0x1b, 0x75, 0xba, 0x6e, 0x15, 0x95, 0xec, 0x37, 0x4e, 0xdd, 0x0f, 0x59, 0x92, - 0x16, 0x67, 0x21, 0x5b, 0xa9, 0x2e, 0xae, 0x9e, 0x29, 0x5c, 0x66, 0xfd, 0x75, 0xfa, 0x3d, 0x0b, - 0xd9, 0xa5, 0x52, 0xbb, 0x54, 0x2f, 0xa4, 0x2d, 0xfe, 0x10, 0x29, 0x16, 0xac, 0xcc, 0x95, 0x52, - 0xa3, 0x56, 0x2e, 0x64, 0xc4, 0x39, 0xc8, 0x5f, 0x28, 0x49, 0xa4, 0xe7, 0x59, 0xf4, 0x0a, 0xbf, - 0x18, 0xdc, 0xc5, 0x8a, 0xc1, 0xb5, 0x41, 0x34, 0x8d, 0x12, 0x81, 0x8f, 0xbb, 0x22, 0x70, 0x0f, - 0x23, 0x02, 0xcf, 0xe5, 0xa9, 0x24, 0x1a, 0xfc, 0x8d, 0x83, 0x5a, 0x83, 0x61, 0x8b, 0x07, 0xed, - 0xda, 0x72, 0xb5, 0xb9, 0xda, 0x2e, 0x6c, 0xa0, 0xbf, 0x4b, 0x43, 0xfe, 0x3c, 0xd6, 0x0d, 0x45, - 0xeb, 0xa1, 0xff, 0x92, 0xb6, 0x6d, 0xcf, 0x7d, 0xcb, 0x37, 0xc6, 0x23, 0x5c, 0xe8, 0x01, 0x0a, - 0xad, 0x84, 0x58, 0x65, 0x07, 0x7e, 0xd4, 0xee, 0xda, 0x85, 0x9c, 0x8f, 0x5a, 0x9a, 0xb4, 0x9e, - 0xf8, 0x4f, 0xfa, 0x67, 0xbd, 0x68, 0x7d, 0x5f, 0xe5, 0x3a, 0x74, 0x09, 0x6e, 0x3b, 0x1a, 0x73, - 0xbb, 0x13, 0x30, 0xf7, 0x38, 0x14, 0xce, 0x57, 0xa5, 0x96, 0xb5, 0x3e, 0xae, 0xb5, 0xd6, 0xaa, - 0xcb, 0x2b, 0xed, 0x07, 0x0a, 0x42, 0x28, 0xcb, 0xdf, 0xe9, 0x84, 0x7f, 0x78, 0x93, 0x00, 0xf9, - 0xe6, 0xc6, 0x06, 0xf1, 0x37, 0x58, 0x0d, 0x9e, 0x7b, 0x6f, 0x80, 0x82, 0xd2, 0xeb, 0xa8, 0x83, - 0x2e, 0x6e, 0x68, 0xe6, 0x8a, 0xd2, 0xeb, 0xb9, 0xbb, 0xbb, 0xfb, 0xf2, 0xd1, 0xe3, 0xdc, 0x9a, - 0x8d, 0x38, 0xc7, 0xa3, 0xad, 0x07, 0x00, 0x76, 0x1d, 0x1c, 0x5d, 0xdf, 0x33, 0xb1, 0x41, 0x4b, - 0xd1, 0x66, 0x33, 0xd2, 0x50, 0x2e, 0xfa, 0x33, 0x2e, 0x0d, 0x18, 0xd2, 0x60, 0x34, 0x94, 0xe4, - 0xc9, 0x50, 0xb2, 0xb4, 0x9a, 0x3d, 0x55, 0x59, 0x9f, 0x61, 0xd5, 0x4a, 0x61, 0x93, 0xa8, 0xbe, - 0x5a, 0xdd, 0xce, 0x7d, 0xa0, 0xda, 0x5e, 0x5b, 0xa9, 0x35, 0x1a, 0xd6, 0xfa, 0xd9, 0x5a, 0x1c, - 0xcc, 0x58, 0xf4, 0xd6, 0x15, 0xc3, 0x44, 0x1f, 0xf7, 0xc1, 0xd4, 0x64, 0xd4, 0x9b, 0xd6, 0x53, - 0xf7, 0x6a, 0x5d, 0x63, 0x21, 0x45, 0xce, 0x6d, 0x9c, 0x64, 0x24, 0xc0, 0xfe, 0x86, 0xfb, 0x34, - 0xc4, 0xa1, 0x67, 0x3c, 0x68, 0x1b, 0x8a, 0x3a, 0x0c, 0x5a, 0x56, 0x1a, 0xca, 0x1d, 0x01, 0xae, - 0x30, 0x12, 0xdc, 0x4f, 0x72, 0xed, 0x4e, 0x8f, 0x21, 0x2e, 0x1a, 0xc0, 0x67, 0xe3, 0x02, 0x18, - 0xfd, 0xbb, 0x34, 0xcc, 0xb4, 0xb6, 0x06, 0x26, 0x89, 0x4f, 0xee, 0x53, 0x6b, 0xff, 0x94, 0xe2, - 0xd5, 0xfc, 0xce, 0xdb, 0x01, 0x9a, 0xff, 0x23, 0x5c, 0x9a, 0x3f, 0xa0, 0x92, 0xc3, 0xe1, 0x0a, - 0x46, 0xbf, 0x29, 0xc0, 0x5c, 0x05, 0xef, 0x2a, 0x1d, 0x6c, 0x7d, 0xe7, 0x60, 0x26, 0xb2, 0x67, - 0xc3, 0xa2, 0xc3, 0x7d, 0x34, 0x52, 0xdb, 0xfa, 0x5e, 0x75, 0xe7, 0x68, 0x5f, 0x9e, 0xe4, 0xaf, - 0xe0, 0xd4, 0x4d, 0x4c, 0x53, 0xe2, 0x51, 0x80, 0xc5, 0x52, 0xf9, 0xdc, 0x19, 0x89, 0x28, 0xc6, - 0xcb, 0xac, 0xf4, 0x52, 0x53, 0xaa, 0xd2, 0x74, 0x8a, 0x9d, 0x92, 0x43, 0xe7, 0x1b, 0x96, 0x8a, - 0x51, 0xd8, 0x7c, 0x8c, 0x6b, 0xee, 0x08, 0xae, 0xe7, 0xb0, 0xe0, 0xf9, 0x4e, 0xc6, 0xd9, 0x15, - 0x45, 0x5f, 0xcf, 0xec, 0x9b, 0x91, 0x3f, 0x9f, 0xe1, 0x35, 0x7a, 0xb7, 0xeb, 0x08, 0x99, 0x90, - 0xaf, 0x81, 0xb9, 0x2d, 0x6d, 0x07, 0x2f, 0x32, 0xb6, 0x13, 0xfe, 0x2c, 0x4b, 0x49, 0xc8, 0x76, - 0xb4, 0x4c, 0x36, 0x32, 0xc2, 0x50, 0xae, 0x55, 0xae, 0xaf, 0x6b, 0x96, 0x86, 0x71, 0xca, 0xd9, - 0x17, 0x77, 0x87, 0x72, 0xc5, 0x1b, 0xe1, 0xf2, 0x1d, 0x59, 0xdf, 0xc6, 0x66, 0x5f, 0x95, 0x3b, - 0xc4, 0xe7, 0xac, 0x6b, 0xa6, 0xb7, 0xff, 0x81, 0xf8, 0x3c, 0x78, 0x9a, 0x2f, 0xd3, 0xb9, 0x58, - 0x59, 0xeb, 0x12, 0x2b, 0xbb, 0x59, 0x69, 0xf4, 0xc3, 0xa1, 0xb7, 0xda, 0x9e, 0x39, 0x60, 0x7e, - 0xdf, 0x5b, 0x6d, 0xc6, 0x32, 0xd0, 0x16, 0xdb, 0x5a, 0x77, 0x61, 0xc6, 0xfe, 0xc0, 0x75, 0xd2, - 0xd6, 0xe7, 0xc4, 0xa6, 0x6c, 0xe2, 0x8b, 0xf2, 0xde, 0xaa, 0xae, 0x2e, 0x60, 0xdb, 0xaa, 0xd0, - 0xcb, 0x41, 0x1f, 0xe5, 0xba, 0x0e, 0x10, 0x08, 0xc7, 0x61, 0xc9, 0xd9, 0x57, 0xd3, 0x90, 0x59, - 0x51, 0x7a, 0x9b, 0x7e, 0x5f, 0xe4, 0xc7, 0x21, 0xab, 0xf4, 0xba, 0xf8, 0x41, 0x7a, 0x8f, 0xcd, - 0x4e, 0x88, 0xa7, 0xe1, 0x78, 0x6f, 0xb0, 0xb3, 0x8e, 0xf5, 0xe6, 0x06, 0x31, 0x27, 0x32, 0xda, - 0x9a, 0xb5, 0x90, 0xa5, 0x33, 0xcb, 0xc8, 0x67, 0xe8, 0x7f, 0xf9, 0x55, 0xec, 0xf3, 0x59, 0x39, - 0xbd, 0x86, 0x61, 0x8c, 0x45, 0x43, 0x80, 0x84, 0xba, 0xe4, 0xa4, 0x7d, 0xe4, 0xa0, 0x37, 0xbb, - 0xfc, 0xbe, 0x93, 0xe1, 0xf7, 0xb3, 0xc7, 0x55, 0x9b, 0xfc, 0xe9, 0xc6, 0xbb, 0xd3, 0x90, 0x5f, - 0xd1, 0xb5, 0x0e, 0x36, 0x0c, 0xf4, 0xa6, 0x34, 0xe4, 0xca, 0x72, 0xaf, 0x83, 0x55, 0xf4, 0xf4, - 0xc0, 0xd5, 0x1d, 0xfa, 0x41, 0x8a, 0x77, 0xf7, 0x84, 0xd6, 0x5b, 0xb4, 0xeb, 0x0c, 0x50, 0x7a, - 0x7c, 0x67, 0x40, 0xa1, 0x55, 0x25, 0xcf, 0xa5, 0xbf, 0x4a, 0xc3, 0x5c, 0x5d, 0xe9, 0x6d, 0xaf, - 0xe8, 0x98, 0x38, 0xa2, 0xbd, 0xd2, 0x63, 0x0f, 0xbd, 0x00, 0x92, 0xf2, 0x5d, 0x00, 0xe1, 0x9e, - 0x12, 0x7c, 0x55, 0x06, 0xc8, 0xd3, 0xdd, 0x30, 0xa7, 0x7a, 0x85, 0xe8, 0xfe, 0x12, 0x1a, 0xda, - 0x5f, 0xf2, 0x55, 0x23, 0xf9, 0x8b, 0x73, 0x5a, 0x80, 0x05, 0x53, 0x91, 0x3c, 0x63, 0x7f, 0x20, - 0x00, 0xd8, 0x7e, 0xae, 0xc9, 0x07, 0xc6, 0x53, 0xa9, 0x10, 0xc6, 0xb2, 0xfe, 0xc4, 0xd3, 0xc3, - 0xfe, 0xc4, 0xef, 0x82, 0x8c, 0xd5, 0x25, 0xea, 0xb6, 0x9c, 0xd7, 0x97, 0x38, 0x79, 0xc7, 0x52, - 0xf3, 0x5d, 0xc5, 0x90, 0xd7, 0x55, 0x5c, 0xed, 0x75, 0xf4, 0x3d, 0xcf, 0xfb, 0xc7, 0x8c, 0xb4, - 0xff, 0x81, 0x17, 0xca, 0x33, 0xcb, 0x11, 0xca, 0x93, 0x34, 0xc5, 0x84, 0xf2, 0x64, 0xe2, 0x4f, - 0x85, 0x4e, 0x88, 0x1e, 0x67, 0x02, 0xc4, 0x43, 0x84, 0xcc, 0x96, 0x6c, 0x38, 0xcc, 0x20, 0xff, - 0xd1, 0xdb, 0xb9, 0x94, 0x7b, 0x60, 0xd5, 0xc9, 0x63, 0xfe, 0x8d, 0x34, 0x1c, 0xa9, 0x68, 0x17, - 0x7b, 0x2e, 0xea, 0xb7, 0x32, 0x47, 0x8c, 0xa4, 0x43, 0x29, 0xaf, 0x43, 0x56, 0x5e, 0xdf, 0x43, - 0x9c, 0xfc, 0x47, 0x6f, 0xe5, 0xfe, 0x6c, 0xf4, 0xb7, 0x14, 0xc0, 0xc5, 0x50, 0xb9, 0xf2, 0x39, - 0xd9, 0x0b, 0xfb, 0x58, 0x0c, 0x69, 0x26, 0x1a, 0x47, 0x4b, 0x07, 0xbe, 0x3d, 0x87, 0xfe, 0x47, - 0x1e, 0xa0, 0x21, 0xef, 0x2a, 0x9b, 0xb6, 0xb3, 0xb2, 0x27, 0x04, 0x4b, 0x79, 0x19, 0xa6, 0x1d, - 0x74, 0xc4, 0x60, 0x7c, 0x96, 0xde, 0x09, 0x79, 0x6a, 0x96, 0x4a, 0x7b, 0xf5, 0x0c, 0xa6, 0x57, - 0x5e, 0x2d, 0xb6, 0x3c, 0x3f, 0x68, 0x4a, 0x4e, 0x79, 0x6b, 0x01, 0xb2, 0x31, 0x50, 0xd5, 0xb6, - 0xf5, 0x2e, 0xdd, 0x61, 0x77, 0xd2, 0x9e, 0xef, 0x59, 0x1a, 0x15, 0x8c, 0x24, 0x86, 0x3c, 0xd5, - 0x66, 0x1d, 0x4f, 0xb5, 0xe8, 0xf7, 0xb9, 0x83, 0xa8, 0xfa, 0xe8, 0xf1, 0xf5, 0x28, 0x00, 0xd6, - 0xdb, 0x20, 0x6f, 0x5b, 0x9b, 0x39, 0x2e, 0x34, 0x9e, 0x3e, 0x34, 0x50, 0xed, 0xd7, 0x6b, 0xbd, - 0x0d, 0x4d, 0x72, 0x4a, 0x72, 0xc6, 0x52, 0xe5, 0xa2, 0x23, 0xf9, 0x91, 0xf4, 0x15, 0x01, 0x4e, - 0x9c, 0xc1, 0xa6, 0xd7, 0x8f, 0x0b, 0x8a, 0xb9, 0x65, 0xa9, 0x73, 0x03, 0xfd, 0x6b, 0x3e, 0x2b, - 0x3c, 0x1f, 0xfe, 0xe9, 0x68, 0xf8, 0xa3, 0xff, 0xec, 0x47, 0xad, 0xc5, 0xa2, 0x76, 0x4f, 0x50, - 0x2d, 0xa3, 0xa9, 0x0d, 0x00, 0xf0, 0x2e, 0xc8, 0xd9, 0x84, 0xd2, 0x79, 0xef, 0x54, 0x20, 0x7e, - 0x6e, 0x4d, 0x12, 0x7d, 0xc3, 0xf7, 0x2d, 0x75, 0x9e, 0xc1, 0x71, 0xf1, 0x40, 0x94, 0x25, 0x0e, - 0xe9, 0xa9, 0x5b, 0x89, 0x8d, 0x0f, 0x19, 0x60, 0x47, 0xfd, 0xa3, 0xb8, 0x70, 0x99, 0x08, 0x90, - 0x5b, 0xd6, 0x76, 0x71, 0x5b, 0x2b, 0xa4, 0xac, 0xff, 0x16, 0x7d, 0x6d, 0xad, 0x90, 0x46, 0xbf, - 0x32, 0x07, 0xf9, 0xb3, 0x8a, 0x61, 0x6a, 0xfa, 0x1e, 0xfa, 0x72, 0x06, 0x66, 0xe8, 0xe6, 0xa2, - 0x81, 0x1e, 0x49, 0xb9, 0x5b, 0xa5, 0xfb, 0xf6, 0xe8, 0xae, 0x81, 0xb9, 0xbe, 0x35, 0xe7, 0x6b, - 0x03, 0xc3, 0x33, 0xe4, 0xf5, 0x67, 0x59, 0x62, 0x23, 0x0f, 0xcc, 0x2d, 0x4d, 0xf7, 0xae, 0x54, - 0x38, 0x69, 0xeb, 0x03, 0xc3, 0xfe, 0xdf, 0x90, 0x77, 0xb0, 0xe3, 0x25, 0xd5, 0xcb, 0x21, 0xa1, - 0xe4, 0x95, 0x1d, 0x7b, 0x82, 0x14, 0x24, 0xf2, 0x5f, 0x5c, 0x80, 0xfc, 0xa6, 0xae, 0x0d, 0xfa, - 0xf4, 0x73, 0x48, 0x90, 0x9c, 0xa4, 0xdf, 0x29, 0xef, 0x09, 0xc8, 0xf5, 0xe5, 0x4d, 0xcf, 0x90, - 0x91, 0xa6, 0xc4, 0x6b, 0x61, 0x5e, 0x95, 0x0d, 0x93, 0xf6, 0xc6, 0xfd, 0xf6, 0x63, 0x33, 0x47, - 0xab, 0x1d, 0xf4, 0x71, 0xee, 0x1d, 0x2b, 0xca, 0x45, 0x67, 0x7b, 0x36, 0x48, 0x2e, 0x4b, 0x30, - 0x43, 0x37, 0x82, 0x1d, 0xcd, 0xf2, 0xec, 0xf0, 0x6a, 0xe8, 0x1f, 0xc9, 0x7d, 0x8d, 0xd3, 0x84, - 0x72, 0x0c, 0x3d, 0xc9, 0x2b, 0x98, 0xff, 0xea, 0x5c, 0x8b, 0x7f, 0x60, 0x3c, 0x44, 0x57, 0xc1, - 0xec, 0xee, 0x10, 0x3c, 0x5e, 0x46, 0xc8, 0xa5, 0xf8, 0x5f, 0x10, 0x78, 0xa7, 0x72, 0x87, 0x1d, - 0x21, 0xd7, 0xe2, 0xef, 0x02, 0xb0, 0x15, 0x80, 0x55, 0x66, 0xdf, 0x72, 0x99, 0x7c, 0xef, 0x51, - 0xb5, 0x41, 0x6a, 0x91, 0x7c, 0xa5, 0xc5, 0xfb, 0xbc, 0xed, 0x7e, 0xfb, 0x58, 0x96, 0x13, 0x55, - 0xff, 0xa9, 0x80, 0xd3, 0xc7, 0x0c, 0xdb, 0x47, 0xbe, 0x6b, 0x2c, 0x21, 0xfd, 0x4b, 0x1e, 0xea, - 0x2f, 0xa6, 0x01, 0x5a, 0xd8, 0x19, 0x4c, 0x7e, 0x03, 0xc3, 0x89, 0x00, 0x47, 0x3f, 0x4a, 0xf1, - 0x46, 0xc8, 0x73, 0xbb, 0xed, 0xb6, 0x1e, 0xf0, 0xa9, 0xc8, 0x17, 0xf3, 0x6e, 0x6c, 0x75, 0xc9, - 0xf3, 0xf2, 0x55, 0x02, 0x64, 0xc8, 0xdd, 0xd1, 0x7f, 0xf4, 0xec, 0x8e, 0xef, 0xf6, 0x18, 0xea, - 0xbb, 0x84, 0x97, 0xe2, 0xbb, 0x84, 0x87, 0x1e, 0xe5, 0xfe, 0xa6, 0x24, 0x57, 0x18, 0x43, 0x6d, - 0xe0, 0x3c, 0x3c, 0x05, 0x06, 0xcf, 0x68, 0xf7, 0xe4, 0xf8, 0xbe, 0x2d, 0x83, 0xa9, 0x49, 0x1e, - 0x85, 0x3f, 0xa5, 0xa1, 0x06, 0x3f, 0xe7, 0xdd, 0xdf, 0x36, 0x19, 0xa9, 0xa6, 0x37, 0x24, 0x53, - 0x41, 0x37, 0x24, 0xd3, 0x13, 0x5d, 0xe2, 0x15, 0xf6, 0xf9, 0x0c, 0x7f, 0x9c, 0xdb, 0xed, 0x47, - 0x6b, 0x9c, 0x21, 0xb9, 0x3d, 0x8d, 0x0b, 0xee, 0x34, 0x1e, 0x0d, 0xb3, 0x4f, 0x71, 0x7d, 0x1a, - 0xb6, 0xe2, 0xb1, 0x33, 0x8f, 0xfd, 0x5a, 0xe3, 0x9b, 0x8f, 0x33, 0x91, 0x24, 0x1f, 0x4f, 0x43, - 0x86, 0x1c, 0x77, 0xf9, 0xf6, 0x9a, 0x3f, 0xcc, 0x7d, 0xe1, 0xd4, 0x17, 0x81, 0x91, 0x1c, 0x03, - 0x8d, 0x66, 0xf7, 0x0b, 0x61, 0xce, 0x8b, 0x33, 0x19, 0xfe, 0x19, 0x41, 0x76, 0x13, 0xfc, 0xa5, - 0x39, 0x5d, 0x83, 0x85, 0x13, 0x92, 0xfc, 0x28, 0x79, 0xa7, 0x37, 0x3a, 0x2a, 0xfe, 0xef, 0x42, - 0xf0, 0xba, 0x42, 0x19, 0x18, 0xd2, 0x6f, 0x5f, 0x61, 0xf4, 0x67, 0x7e, 0x0c, 0xca, 0x2c, 0x06, - 0x37, 0x05, 0x75, 0x3d, 0x54, 0xe8, 0x59, 0x62, 0xd2, 0x51, 0x88, 0xf1, 0x2e, 0x57, 0x2c, 0x31, - 0x18, 0x9c, 0x8e, 0x44, 0xc8, 0x21, 0x0b, 0xfe, 0x3b, 0x8e, 0xfa, 0x22, 0x11, 0x7f, 0x8b, 0x46, - 0xbe, 0xdd, 0x60, 0xdc, 0x80, 0xb0, 0x21, 0x52, 0x53, 0x23, 0x42, 0xa4, 0x4e, 0xea, 0x53, 0xf2, - 0x07, 0x7e, 0x38, 0x6b, 0x2c, 0x9c, 0xb7, 0x05, 0x71, 0x91, 0x23, 0xdc, 0xed, 0x84, 0xe4, 0x3c, - 0xe5, 0x02, 0x5a, 0x67, 0x00, 0xbd, 0x63, 0x02, 0x52, 0x92, 0x37, 0x71, 0x0c, 0x83, 0x55, 0x5c, - 0x80, 0xe3, 0x52, 0xb5, 0x54, 0x69, 0x36, 0xea, 0x0f, 0xf8, 0x9f, 0x16, 0x32, 0xe8, 0xed, 0x02, - 0xe4, 0x24, 0x62, 0xfd, 0x85, 0x7e, 0x26, 0x2a, 0xcc, 0x43, 0xee, 0x6a, 0xd3, 0xfb, 0x9d, 0xa0, - 0x7f, 0x96, 0xfb, 0x4e, 0xdd, 0x28, 0x36, 0xda, 0x74, 0x05, 0xac, 0xd0, 0xbe, 0xc3, 0x75, 0xa7, - 0x8e, 0xbb, 0xda, 0x4b, 0x16, 0xa0, 0x47, 0x05, 0xc8, 0x51, 0x9f, 0xd4, 0xdd, 0xa8, 0x00, 0xf9, - 0x03, 0x0e, 0xa4, 0x79, 0x03, 0x0e, 0x1c, 0x0c, 0xb3, 0xd0, 0xa8, 0x3e, 0x93, 0x63, 0x16, 0x83, - 0xcf, 0xe7, 0x29, 0x62, 0xf6, 0x35, 0x81, 0xae, 0x17, 0x06, 0x51, 0x11, 0xab, 0xc0, 0xd5, 0x72, - 0xbf, 0x8f, 0x7b, 0xae, 0x77, 0x63, 0x63, 0x49, 0xd7, 0x76, 0x9a, 0xe6, 0x16, 0xd6, 0x9d, 0x75, - 0x41, 0xea, 0xfa, 0x19, 0x29, 0xbc, 0x10, 0xeb, 0x42, 0x25, 0xd4, 0xbd, 0xec, 0x28, 0x5e, 0x87, - 0x2c, 0x52, 0x26, 0xd4, 0xa4, 0x5f, 0xe4, 0xf2, 0x33, 0xcb, 0x49, 0xcb, 0x21, 0xcf, 0x90, 0xaf, - 0xb9, 0x1f, 0x72, 0x36, 0xa5, 0xd6, 0xb2, 0x70, 0xae, 0xb5, 0x25, 0xeb, 0x78, 0x71, 0xaf, 0xae, - 0xf4, 0xb6, 0x87, 0xee, 0x7b, 0x06, 0x6d, 0x84, 0xa2, 0x5f, 0xf6, 0xa3, 0x23, 0x42, 0x46, 0x55, - 0x7a, 0xdb, 0xce, 0x29, 0x84, 0xf5, 0xdf, 0xfb, 0x84, 0x4d, 0x8f, 0xf8, 0x84, 0x75, 0xb7, 0x14, - 0xdc, 0x76, 0x0f, 0xf4, 0x09, 0x3b, 0xb6, 0xba, 0xa9, 0x9c, 0x78, 0x1e, 0x2b, 0x75, 0xbb, 0x17, - 0x14, 0x73, 0xab, 0xe9, 0xf0, 0xe8, 0x3e, 0xbe, 0x3d, 0xe5, 0x05, 0xc8, 0xf7, 0xe5, 0x3d, 0x55, - 0x93, 0x5d, 0xef, 0x16, 0x34, 0xc9, 0x1a, 0xcb, 0x84, 0x6e, 0xf4, 0x53, 0x0e, 0x0c, 0x51, 0x10, - 0xc0, 0x54, 0xbe, 0x3d, 0x7b, 0xae, 0x2a, 0x93, 0x67, 0xec, 0xcf, 0x0f, 0x45, 0x40, 0xfa, 0x59, - 0x5e, 0xa7, 0x21, 0x13, 0xcd, 0x1b, 0x6f, 0x14, 0x78, 0x77, 0x61, 0x28, 0x7b, 0x7e, 0x42, 0xe2, - 0x1b, 0x7d, 0x32, 0xca, 0x38, 0x8a, 0x2b, 0xae, 0xd1, 0xd2, 0x04, 0x6a, 0x4b, 0x84, 0xa3, 0xce, - 0xcd, 0x16, 0xfb, 0x26, 0x42, 0x01, 0xd0, 0x67, 0xf7, 0xc7, 0x3a, 0xfa, 0x37, 0xbc, 0x52, 0x30, - 0x76, 0x79, 0x37, 0x59, 0x3c, 0xac, 0x0f, 0x70, 0x7b, 0x6c, 0x1c, 0xe2, 0x69, 0x8c, 0xb1, 0x28, - 0xf8, 0xfc, 0x32, 0xf2, 0xb4, 0x9f, 0xfc, 0x28, 0x7e, 0xdd, 0xfe, 0x00, 0x46, 0xb5, 0xd8, 0x20, - 0x9c, 0x1c, 0x8d, 0x18, 0xc3, 0x13, 0x4d, 0x84, 0xc6, 0x21, 0x05, 0x7c, 0x78, 0x75, 0x06, 0x2e, - 0xdf, 0x1f, 0x90, 0x88, 0x3f, 0x58, 0xf9, 0xf8, 0x41, 0x35, 0x69, 0x34, 0x9e, 0xef, 0x46, 0x5c, - 0xf4, 0x15, 0x2f, 0xad, 0x60, 0x42, 0xef, 0x8f, 0xb0, 0x46, 0x2c, 0x1e, 0x7e, 0xf8, 0xa0, 0xbf, - 0x12, 0xe0, 0xf8, 0xc8, 0xc0, 0x41, 0x97, 0x82, 0x28, 0xf0, 0xc7, 0x06, 0x1d, 0xc9, 0xcf, 0x18, - 0x15, 0x2d, 0x5f, 0xd8, 0x48, 0x7e, 0x2a, 0x92, 0x07, 0xf6, 0x93, 0x99, 0x61, 0x60, 0xa9, 0xd2, - 0xfd, 0x50, 0x8c, 0xc0, 0xfa, 0xc3, 0xf8, 0x08, 0x43, 0x61, 0x7c, 0xce, 0xc2, 0x33, 0xc8, 0x35, - 0x4c, 0x7d, 0xc7, 0xde, 0xa8, 0x28, 0xa9, 0xea, 0x79, 0x59, 0x1d, 0x60, 0xa3, 0xd6, 0xb3, 0x03, - 0xdf, 0x38, 0x6e, 0x17, 0xc6, 0x15, 0x43, 0xdf, 0x3f, 0x98, 0x18, 0xc4, 0x18, 0xe6, 0xe7, 0x3b, - 0x93, 0x8b, 0x41, 0x0c, 0x7a, 0x7e, 0x6b, 0x82, 0xc5, 0xd4, 0xf3, 0xe0, 0x96, 0x56, 0x73, 0xb9, - 0x4a, 0xae, 0x61, 0x4a, 0x95, 0xd6, 0xda, 0xd9, 0x52, 0x6b, 0x4d, 0xaa, 0xd6, 0x4b, 0xe4, 0xb2, - 0xff, 0xf9, 0x52, 0x7d, 0xb5, 0xba, 0x76, 0xa1, 0xd6, 0x3e, 0xbb, 0xd6, 0x3e, 0x5b, 0x6b, 0xad, - 0x35, 0x57, 0xac, 0xec, 0x82, 0x80, 0x1e, 0x0a, 0x0c, 0x07, 0xc4, 0x1d, 0x34, 0xe1, 0x71, 0xee, - 0xa8, 0xd9, 0x43, 0xec, 0x4a, 0x30, 0xd8, 0x0f, 0x5f, 0xf8, 0xec, 0x08, 0xf4, 0x4c, 0xe1, 0x44, - 0x2e, 0x03, 0xb9, 0x16, 0x96, 0xf5, 0xce, 0x16, 0xfa, 0x2d, 0x9f, 0x57, 0xdd, 0x25, 0xc8, 0x6f, - 0x28, 0x2a, 0x09, 0x0c, 0x91, 0x22, 0xdd, 0xbf, 0x31, 0xd4, 0xa2, 0xd2, 0x0d, 0x7a, 0xb3, 0x44, - 0x5e, 0x92, 0x9c, 0x97, 0xc5, 0x17, 0x41, 0xd6, 0xd0, 0x74, 0xd7, 0xdc, 0xeb, 0x06, 0xbe, 0x5a, - 0x5a, 0x9a, 0x6e, 0x4a, 0xf6, 0x8b, 0x8c, 0x4d, 0x9b, 0x30, 0x64, 0xd3, 0x16, 0x60, 0xbd, 0xc6, - 0xc6, 0x59, 0x77, 0x6d, 0xdd, 0x6e, 0x80, 0x82, 0xb7, 0x89, 0x64, 0x13, 0xba, 0x90, 0x23, 0x07, - 0x8d, 0xfb, 0xf2, 0x45, 0x11, 0x32, 0xdb, 0x78, 0xcf, 0x58, 0xc8, 0x93, 0xe7, 0xe4, 0x3f, 0x7a, - 0x98, 0xdb, 0xff, 0x94, 0xb3, 0x59, 0x40, 0xf8, 0x1a, 0x20, 0x62, 0xb7, 0x42, 0x5e, 0xa7, 0x6a, - 0xca, 0x11, 0xb0, 0xa0, 0x43, 0x4d, 0x5a, 0x0e, 0xbd, 0x8b, 0xcb, 0x2d, 0x55, 0x58, 0xe3, 0x53, - 0x88, 0x3d, 0x94, 0x83, 0xec, 0x19, 0x5d, 0xee, 0x6f, 0xa1, 0xf7, 0xa4, 0xe2, 0x17, 0x27, 0x17, - 0xd8, 0xf4, 0x38, 0x60, 0x85, 0x31, 0xc0, 0x66, 0x7c, 0xc0, 0xbe, 0x25, 0x0d, 0x99, 0x6a, 0x77, - 0x13, 0x33, 0x07, 0xd0, 0x29, 0xdf, 0x01, 0xf4, 0x09, 0xc8, 0xd9, 0xae, 0x6b, 0x29, 0x97, 0x68, - 0xca, 0xf5, 0xbe, 0x23, 0xf8, 0xbc, 0xef, 0xbc, 0x80, 0xda, 0x3c, 0x67, 0x46, 0x5c, 0x4b, 0xa6, - 0xd0, 0x10, 0xfe, 0x14, 0xad, 0x16, 0xfd, 0x06, 0xcf, 0x43, 0x78, 0x64, 0xf7, 0xe1, 0x61, 0x29, - 0x44, 0xa5, 0xa3, 0xf5, 0x6a, 0x3b, 0xf2, 0x26, 0xa6, 0xf7, 0x57, 0xbc, 0x0c, 0xe7, 0x69, 0x75, - 0x47, 0x7b, 0xa9, 0x42, 0xef, 0xa9, 0x78, 0x19, 0x56, 0x17, 0xb6, 0x94, 0x6e, 0x17, 0xf7, 0xc8, - 0xcd, 0x94, 0x19, 0x89, 0xa6, 0x4e, 0x9d, 0x84, 0x8c, 0x45, 0x83, 0x85, 0x71, 0x5d, 0xe9, 0x6d, - 0x17, 0x2e, 0x13, 0x8f, 0x78, 0x27, 0x5b, 0x85, 0x14, 0xfa, 0x73, 0x6e, 0xab, 0x5e, 0xa6, 0x73, - 0xa3, 0x65, 0xfe, 0x26, 0xc8, 0xf6, 0xb4, 0x2e, 0x1e, 0x2b, 0xf1, 0x76, 0x29, 0xf1, 0x79, 0x90, - 0xc5, 0xdd, 0x4d, 0x6c, 0x10, 0x30, 0xfd, 0xab, 0xba, 0x91, 0xbc, 0x94, 0xec, 0xc2, 0x9c, 0x86, - 0x3d, 0x21, 0xd4, 0x26, 0x3f, 0x48, 0xfe, 0x6f, 0x0e, 0x8e, 0xd9, 0xe3, 0xb3, 0x35, 0x58, 0xb7, - 0xaa, 0x5a, 0xc7, 0xe8, 0x0d, 0x02, 0x73, 0x83, 0xc6, 0x18, 0xac, 0xbb, 0xb3, 0x9e, 0x9d, 0xf0, - 0x0f, 0xa2, 0x74, 0x2c, 0x3a, 0x59, 0x98, 0x54, 0x27, 0x33, 0xfa, 0x55, 0xd8, 0x6f, 0x4b, 0x6c, - 0x1b, 0x13, 0x3a, 0xda, 0x78, 0x84, 0x2e, 0x15, 0x17, 0x20, 0x2f, 0x6f, 0x98, 0x58, 0x77, 0x6f, - 0x4a, 0x39, 0x49, 0xe2, 0xf5, 0x18, 0x6f, 0x68, 0x3a, 0xae, 0x75, 0x17, 0x66, 0x6d, 0x7d, 0xef, - 0xa4, 0x7d, 0xe3, 0x13, 0x18, 0x03, 0x91, 0xeb, 0xe1, 0x98, 0xb2, 0xd9, 0xd3, 0x74, 0xec, 0x3a, - 0x38, 0x5c, 0x38, 0x62, 0x7b, 0xb1, 0x1a, 0xca, 0x16, 0x6f, 0x84, 0xcb, 0x7b, 0x5a, 0x05, 0xf7, - 0x29, 0xdf, 0x6d, 0x54, 0xe7, 0xed, 0x5b, 0x05, 0xfb, 0x1e, 0xa0, 0xaf, 0x08, 0x11, 0x37, 0x47, - 0x87, 0x40, 0x8d, 0x4d, 0xf5, 0x8b, 0x2f, 0x84, 0x23, 0x5d, 0xdc, 0xc7, 0xbd, 0x2e, 0xee, 0x75, - 0x14, 0x77, 0x44, 0x04, 0xbe, 0xc7, 0x14, 0xf6, 0xc4, 0x29, 0xe3, 0x17, 0xa7, 0x33, 0xbe, 0xe0, - 0x4f, 0xd9, 0x21, 0x73, 0x0c, 0xd6, 0x2a, 0xcf, 0xc7, 0x92, 0x22, 0x0d, 0x02, 0x65, 0xf8, 0xa2, - 0x40, 0x45, 0xda, 0xeb, 0x0d, 0xe7, 0xd0, 0x14, 0xec, 0xc0, 0x32, 0x70, 0xa4, 0xd6, 0x35, 0xbc, - 0x71, 0xa7, 0x8d, 0x1b, 0x76, 0xfb, 0x62, 0x75, 0xb8, 0x02, 0x2d, 0xf8, 0x04, 0x7a, 0x84, 0x08, - 0xce, 0x8d, 0x14, 0x41, 0xf4, 0x0a, 0xbf, 0x50, 0x55, 0x59, 0xa1, 0xba, 0x79, 0x14, 0xcb, 0xfc, - 0xe4, 0x5e, 0xca, 0x12, 0x65, 0xcd, 0xf8, 0x54, 0x10, 0xce, 0x32, 0x82, 0xf0, 0xbc, 0x88, 0xbd, - 0x4a, 0x5e, 0x0a, 0xfe, 0x20, 0x0d, 0x97, 0xdb, 0x92, 0xb8, 0xda, 0x33, 0x5c, 0x51, 0x60, 0x7d, - 0x49, 0x91, 0x3e, 0x19, 0xae, 0x29, 0x1a, 0x49, 0xa1, 0x57, 0x47, 0xdd, 0x3c, 0xda, 0xd7, 0x4a, - 0xc0, 0x81, 0x49, 0xa4, 0x6d, 0x9d, 0x71, 0x95, 0x26, 0xcf, 0xc0, 0x5f, 0xb3, 0x23, 0x80, 0xd6, - 0xe5, 0x3d, 0x6d, 0x60, 0x22, 0x99, 0xf7, 0x8b, 0xff, 0x0e, 0xc8, 0xa9, 0xe4, 0x15, 0x7a, 0x25, - 0xec, 0x9a, 0x40, 0x93, 0xa1, 0xa2, 0x5d, 0xb5, 0x44, 0xcb, 0xa3, 0x77, 0x73, 0x5b, 0x8c, 0xbb, - 0x3c, 0xa2, 0xd4, 0xc5, 0xf2, 0x61, 0xce, 0x67, 0x1c, 0x3e, 0xa6, 0xe9, 0xe4, 0x61, 0xf9, 0x45, - 0x01, 0xe6, 0x89, 0x53, 0xe4, 0x25, 0x79, 0x57, 0xd3, 0x15, 0x13, 0xa3, 0x33, 0xbc, 0xd0, 0x9c, - 0x04, 0x50, 0xdc, 0xd7, 0xe8, 0xf1, 0xb9, 0x2f, 0x27, 0x42, 0x80, 0x22, 0x8f, 0x0b, 0x1e, 0x1d, - 0x53, 0x0c, 0x50, 0xc4, 0xd1, 0xfc, 0x14, 0x81, 0x28, 0xd9, 0x97, 0xdc, 0xbb, 0x11, 0x81, 0x70, - 0x5e, 0xf3, 0x80, 0x70, 0x2b, 0x9a, 0x0c, 0x08, 0xe7, 0xf5, 0x43, 0x02, 0x22, 0xa0, 0xf9, 0xe4, - 0x81, 0x78, 0x34, 0x07, 0x85, 0x25, 0x2c, 0x9b, 0x03, 0x1d, 0xbb, 0x66, 0x20, 0xe8, 0x97, 0xa8, - 0xc1, 0x5e, 0x95, 0x17, 0x93, 0xab, 0x86, 0xf7, 0x83, 0x66, 0xfd, 0xdb, 0x3e, 0x91, 0xb7, 0x91, - 0x87, 0x09, 0x2a, 0xc6, 0x74, 0xa8, 0x10, 0x6d, 0x1b, 0x99, 0x83, 0x8a, 0xe4, 0xf1, 0x79, 0x83, - 0x67, 0x57, 0x17, 0x13, 0x1a, 0x9f, 0xf1, 0xa3, 0xb1, 0xc2, 0xa2, 0x71, 0x17, 0x17, 0x1f, 0xc2, - 0xec, 0xe9, 0x22, 0x02, 0xe2, 0xf9, 0x76, 0x69, 0x31, 0x80, 0xdc, 0x37, 0x39, 0x21, 0x53, 0x88, - 0x7e, 0x94, 0x86, 0x6c, 0x5b, 0x6b, 0x61, 0xc6, 0xa7, 0x75, 0x38, 0x24, 0xde, 0x97, 0x59, 0x9a, - 0x09, 0xe0, 0xfd, 0xaa, 0xa8, 0xdb, 0x07, 0xa4, 0xdd, 0x60, 0x4f, 0x0e, 0x86, 0x2f, 0xb4, 0x92, - 0x9d, 0x88, 0xf6, 0xbd, 0x3f, 0xaa, 0xfa, 0xe4, 0x19, 0xfa, 0x63, 0x70, 0xcc, 0xe4, 0x89, 0xb5, - 0xdb, 0x1f, 0xa7, 0x61, 0xb6, 0x32, 0xe8, 0xab, 0x4a, 0x47, 0x36, 0x87, 0x77, 0xbc, 0x1d, 0x93, - 0x1d, 0x67, 0xe1, 0xe9, 0x65, 0xa0, 0x5f, 0x89, 0xa8, 0xf8, 0x89, 0x4d, 0x98, 0xdb, 0x4e, 0x70, - 0xb0, 0xcc, 0xa1, 0x48, 0x84, 0x51, 0x94, 0x7b, 0x68, 0x13, 0xc9, 0xf3, 0xf5, 0x6b, 0x69, 0xd7, - 0x0f, 0x2c, 0x37, 0x17, 0x1f, 0x89, 0x68, 0x0b, 0x6f, 0x77, 0x31, 0xbe, 0x23, 0x9e, 0x47, 0x22, - 0x98, 0xbf, 0x07, 0xb7, 0x3d, 0x85, 0xcb, 0x67, 0x59, 0xfb, 0xaa, 0xce, 0xdf, 0xa6, 0x01, 0x02, - 0x97, 0x31, 0xc1, 0x7c, 0x1e, 0xbb, 0x8c, 0x79, 0xc8, 0x8f, 0xc3, 0x39, 0x16, 0x87, 0x40, 0x51, - 0xb3, 0x06, 0xef, 0xb8, 0xb5, 0x0c, 0xfa, 0x80, 0xcb, 0xe1, 0x06, 0xc3, 0xe1, 0xbb, 0x26, 0xaa, - 0x35, 0x79, 0x4e, 0xdb, 0x1c, 0x0e, 0x58, 0xb1, 0x8f, 0xe3, 0x70, 0xc8, 0x8a, 0xfd, 0x00, 0x1c, - 0x0e, 0x5f, 0xb6, 0x4f, 0xca, 0xe1, 0x43, 0x5b, 0x8d, 0x3f, 0x95, 0x81, 0x5c, 0xf5, 0xc1, 0xbe, - 0xa6, 0x9b, 0xe8, 0x73, 0x29, 0xc6, 0xb3, 0x45, 0xdf, 0x0b, 0x83, 0x41, 0xfe, 0x5b, 0x13, 0x59, - 0x57, 0xeb, 0x78, 0xf7, 0xaf, 0x69, 0x4a, 0x3c, 0x0d, 0xb9, 0x0d, 0x4d, 0xdf, 0x91, 0x9d, 0x2f, - 0x57, 0xc4, 0x74, 0xd5, 0xae, 0xbc, 0xb8, 0x44, 0x4a, 0x48, 0xb4, 0xa4, 0xa5, 0x5b, 0x5f, 0xae, - 0xf4, 0xe9, 0x29, 0xb4, 0xf5, 0x97, 0x44, 0xd8, 0xa1, 0xde, 0xfb, 0xb0, 0x61, 0x62, 0xdb, 0x6f, - 0xd5, 0x8c, 0xc4, 0x66, 0x8a, 0xa7, 0xe0, 0x08, 0xcd, 0x58, 0x52, 0x54, 0x6c, 0x07, 0x84, 0x9c, - 0x91, 0x98, 0x3c, 0xf4, 0x69, 0x3f, 0xb8, 0x77, 0xb0, 0xe0, 0x9e, 0x1a, 0x45, 0x5b, 0xa0, 0xb7, - 0x92, 0x61, 0x47, 0x1e, 0xe2, 0x02, 0xe4, 0x8d, 0x41, 0xa7, 0x83, 0x71, 0x97, 0x1e, 0xab, 0x39, - 0xc9, 0x88, 0xe6, 0x4a, 0x6f, 0x75, 0xa5, 0xe4, 0x85, 0x8c, 0x94, 0x3c, 0x67, 0x3c, 0x79, 0xc9, - 0x5f, 0xea, 0x5f, 0x81, 0x9c, 0x8d, 0x96, 0x78, 0x04, 0x66, 0x96, 0x65, 0x7d, 0xbb, 0xab, 0x5d, - 0xec, 0xd9, 0xa7, 0x1f, 0x2b, 0x74, 0xeb, 0xab, 0x90, 0xb2, 0x6a, 0xbc, 0xbf, 0xd5, 0x6c, 0x14, - 0xd2, 0x62, 0x1e, 0x84, 0x4a, 0xb3, 0x5d, 0x10, 0xac, 0x3f, 0xad, 0xf3, 0x67, 0x0a, 0x19, 0xf1, - 0x28, 0xc0, 0x19, 0xa9, 0xb4, 0x72, 0x76, 0x8d, 0x94, 0xc8, 0xa2, 0xd7, 0x0a, 0x70, 0xcc, 0xee, - 0x8c, 0xb7, 0xd7, 0x77, 0x5f, 0xb8, 0xb0, 0x8d, 0x8f, 0x3a, 0xf5, 0x31, 0xee, 0xdb, 0x73, 0x43, - 0x4d, 0x47, 0xc0, 0x3b, 0x1a, 0xaa, 0x7c, 0x57, 0xe8, 0xc2, 0xa9, 0x99, 0xc2, 0x2d, 0xf9, 0xb4, - 0x03, 0x86, 0xe3, 0x9f, 0xcd, 0x18, 0x8a, 0x29, 0x36, 0x0c, 0x46, 0x64, 0x56, 0xbb, 0x15, 0x5f, - 0x12, 0xac, 0x0e, 0xa2, 0x66, 0x2a, 0x37, 0xab, 0x0b, 0x36, 0x0d, 0x24, 0xac, 0x88, 0x61, 0x6a, - 0x3a, 0xf6, 0xbb, 0x81, 0x8f, 0xa0, 0x65, 0xd1, 0x63, 0xdc, 0xbb, 0x7c, 0xc3, 0x2d, 0x26, 0x06, - 0x02, 0xdf, 0xce, 0xdf, 0x18, 0x72, 0x92, 0x47, 0xe1, 0xb1, 0x34, 0x1c, 0x59, 0x96, 0xb7, 0x5d, - 0x77, 0x84, 0xfc, 0x86, 0x34, 0x8c, 0xef, 0xab, 0xd0, 0x4f, 0x34, 0x7f, 0xfd, 0xa1, 0x97, 0xa1, - 0xd3, 0xae, 0x67, 0x3a, 0xbe, 0x8f, 0xb3, 0x90, 0x8a, 0x93, 0xe7, 0xdc, 0x93, 0x69, 0x58, 0xf0, - 0x13, 0xb0, 0xb8, 0xe7, 0xbb, 0xd1, 0xcc, 0x3a, 0x84, 0x1f, 0xba, 0x7f, 0x3b, 0xcb, 0xdc, 0x6b, - 0xfd, 0x75, 0xee, 0xa3, 0x81, 0xa0, 0xd6, 0x38, 0x79, 0xca, 0x77, 0x54, 0xc0, 0xd9, 0xc8, 0x14, - 0x0c, 0x05, 0xd3, 0x30, 0x5f, 0x56, 0xb5, 0xde, 0x04, 0xa2, 0xf9, 0xcf, 0x29, 0x5e, 0x8b, 0x1b, - 0xa6, 0x01, 0x4e, 0x3e, 0xf2, 0x99, 0xd3, 0x84, 0xd5, 0x9c, 0x3c, 0xf3, 0x3e, 0x9b, 0x86, 0x63, - 0x36, 0x76, 0x41, 0x1b, 0x06, 0x21, 0xec, 0x7b, 0x55, 0xc4, 0xab, 0xf7, 0xe3, 0xf6, 0x0a, 0x86, - 0x19, 0x18, 0xe5, 0x36, 0xfd, 0xe1, 0x6d, 0x12, 0xbc, 0x22, 0x03, 0x47, 0x57, 0x7b, 0x46, 0x5f, - 0x95, 0x8d, 0x2d, 0x6a, 0xe9, 0x76, 0x3b, 0x73, 0xe6, 0xfb, 0xb2, 0x01, 0xd6, 0xf7, 0x9c, 0x33, - 0x5f, 0x92, 0x18, 0x6d, 0x67, 0x84, 0x1e, 0x13, 0x78, 0xdd, 0x6c, 0xb2, 0xed, 0x05, 0xb0, 0xf3, - 0x2c, 0xcc, 0xf4, 0x95, 0x8e, 0x39, 0xd0, 0xf1, 0x7e, 0x83, 0x8e, 0xb0, 0x4a, 0x56, 0xec, 0x97, - 0x24, 0xf7, 0x6d, 0x24, 0x43, 0x9e, 0x66, 0xee, 0x73, 0x2a, 0x45, 0x5d, 0x36, 0xa6, 0x3d, 0x97, - 0x8d, 0x27, 0x20, 0x27, 0xeb, 0xa6, 0x62, 0x38, 0xe6, 0x74, 0x34, 0x65, 0xc9, 0x92, 0xfd, 0x6f, - 0x55, 0x57, 0xe9, 0xb9, 0xae, 0x97, 0xe1, 0xf3, 0x53, 0x11, 0xe6, 0x13, 0x34, 0xb4, 0xdf, 0xd1, - 0xa0, 0x3e, 0x37, 0x81, 0x31, 0xea, 0x15, 0xf0, 0x53, 0x12, 0x89, 0x6e, 0x52, 0x5b, 0xae, 0xb5, - 0xd7, 0xaa, 0x2f, 0x2e, 0x57, 0xab, 0x95, 0x6a, 0xa5, 0xd0, 0x45, 0xdf, 0x4c, 0x43, 0xc1, 0xa1, - 0xcd, 0x71, 0x0b, 0x38, 0x34, 0x8e, 0x28, 0x33, 0xbd, 0x71, 0xe4, 0x66, 0xb0, 0x86, 0x7f, 0xa1, - 0xab, 0x92, 0xe1, 0x36, 0x22, 0xf8, 0x88, 0xfc, 0x34, 0xd7, 0x3a, 0x63, 0x4c, 0x03, 0x87, 0xc8, - 0xe2, 0x2f, 0xa5, 0x61, 0xbe, 0xd4, 0xef, 0xab, 0x7b, 0xae, 0x9a, 0x8f, 0x72, 0xe2, 0xe5, 0x73, - 0xd6, 0x92, 0xde, 0xe7, 0xac, 0xe5, 0xfb, 0xdc, 0xd3, 0x00, 0x43, 0x40, 0xc0, 0xe6, 0x05, 0x9f, - 0xda, 0x0f, 0xab, 0x29, 0x79, 0x9d, 0xf5, 0xfa, 0x9f, 0x82, 0x2c, 0x89, 0x44, 0x88, 0xde, 0x2b, - 0x40, 0x5e, 0xd5, 0x36, 0x6b, 0xbd, 0x0d, 0x6d, 0xdf, 0xd8, 0xb6, 0xc4, 0x08, 0xbb, 0x57, 0x3a, - 0xc9, 0x7f, 0xf1, 0x3a, 0x38, 0x6a, 0xfd, 0x3a, 0xf2, 0x41, 0x5d, 0xf2, 0xcf, 0x48, 0x43, 0xb9, - 0xe2, 0x29, 0x38, 0x62, 0x6a, 0xa6, 0xac, 0xfa, 0x4d, 0xe5, 0xb3, 0x12, 0x93, 0x67, 0xa1, 0x46, - 0xd2, 0x2d, 0xe5, 0xe5, 0x98, 0x9a, 0xd2, 0x7a, 0x19, 0xe2, 0xb5, 0x30, 0xbf, 0xa1, 0xe8, 0x86, - 0x69, 0x97, 0x6e, 0xdb, 0xdb, 0x14, 0x59, 0x89, 0xcd, 0xb4, 0x43, 0x09, 0xb8, 0x19, 0xe7, 0xb1, - 0x4e, 0x4c, 0x13, 0x49, 0x28, 0x01, 0x7f, 0xae, 0x45, 0x8f, 0x2a, 0xfb, 0x2a, 0x9b, 0xb1, 0xe9, - 0xf1, 0xe7, 0x39, 0x1e, 0xe7, 0xbc, 0xaa, 0x66, 0xed, 0x16, 0x99, 0x4c, 0xab, 0x45, 0x2b, 0x63, - 0x65, 0xa0, 0xaa, 0x2d, 0xdc, 0x29, 0x6d, 0x6a, 0x0b, 0x60, 0xb7, 0xc8, 0xe6, 0x8a, 0x08, 0x66, - 0x06, 0x7d, 0x3b, 0x48, 0x17, 0x35, 0xd5, 0x71, 0xd3, 0x96, 0x44, 0x76, 0xb5, 0x8b, 0x3d, 0xfa, - 0xd4, 0xb6, 0x25, 0xf3, 0xe5, 0x58, 0xf3, 0x83, 0x2d, 0x84, 0xf3, 0xf6, 0xac, 0x61, 0x4b, 0xd6, - 0x5f, 0x08, 0x00, 0xe6, 0x96, 0x8e, 0xe5, 0xee, 0x48, 0xb8, 0x9e, 0x0f, 0x27, 0x54, 0x6d, 0xd3, - 0xb8, 0xa0, 0x98, 0x5b, 0x1e, 0x10, 0x67, 0x1d, 0x00, 0xb3, 0x52, 0xc0, 0x53, 0xf1, 0x45, 0x70, - 0xa5, 0xf3, 0xe4, 0xc2, 0x96, 0xa6, 0xe2, 0xb6, 0x8e, 0xf1, 0x10, 0xbe, 0x59, 0x29, 0xac, 0x88, - 0x58, 0x84, 0x8c, 0xf5, 0x98, 0x18, 0xbd, 0xce, 0x0d, 0x6d, 0x5d, 0x11, 0x31, 0x2b, 0x52, 0x11, - 0x93, 0x48, 0x39, 0xf1, 0x0e, 0xb8, 0x42, 0xbb, 0xd8, 0xab, 0x6b, 0x9b, 0x67, 0x65, 0xa3, 0x2c, - 0x6f, 0x60, 0x09, 0xdb, 0x93, 0xb7, 0xa6, 0xd3, 0x0d, 0xab, 0xa0, 0xc7, 0x62, 0x11, 0xc4, 0x8e, - 0xbc, 0x81, 0xeb, 0x2c, 0x00, 0xb6, 0x64, 0x8c, 0x78, 0x62, 0xc1, 0x6e, 0xe5, 0xae, 0x3a, 0x40, - 0xd8, 0x76, 0xab, 0x4c, 0x9e, 0x05, 0xa8, 0x95, 0xae, 0x78, 0x80, 0xd8, 0x26, 0x83, 0x43, 0xb9, - 0xfb, 0x44, 0x7a, 0x76, 0x9c, 0x48, 0xc3, 0xb0, 0x48, 0xbb, 0xb0, 0xce, 0xf9, 0x61, 0x7d, 0x22, - 0x0b, 0x99, 0xd6, 0x5e, 0xaf, 0x63, 0xad, 0x77, 0x5c, 0x8d, 0x76, 0x1a, 0x8e, 0x53, 0x4b, 0xaa, - 0xb6, 0x2e, 0xef, 0x62, 0xdd, 0xc0, 0x75, 0xb2, 0x60, 0xb0, 0x7d, 0x9e, 0x8f, 0x7c, 0x66, 0xc9, - 0xaf, 0xb1, 0xad, 0xf4, 0xab, 0x3b, 0x7d, 0x73, 0xaf, 0x6e, 0xe1, 0x41, 0xe3, 0x6b, 0x33, 0x99, - 0xe2, 0xbd, 0x80, 0x4c, 0x7d, 0xaf, 0xad, 0x39, 0xf8, 0x49, 0x78, 0x47, 0x33, 0xb1, 0xd3, 0x29, - 0x1a, 0x7b, 0x34, 0xb8, 0x04, 0xfa, 0x1d, 0x6e, 0xe7, 0xfe, 0x36, 0xf4, 0x56, 0xd7, 0x02, 0xe6, - 0xa9, 0x17, 0x40, 0xde, 0x96, 0x67, 0x67, 0x81, 0x72, 0xf5, 0x88, 0xf7, 0x3d, 0x89, 0x97, 0x9c, - 0xd2, 0x8c, 0x27, 0x7c, 0x61, 0xc8, 0x13, 0xbe, 0x03, 0x53, 0x9b, 0xd6, 0xec, 0xd7, 0x3c, 0x34, - 0x8f, 0xf0, 0xc0, 0xfe, 0x6b, 0x89, 0xb4, 0x36, 0x30, 0x2d, 0x11, 0xab, 0xf5, 0x9a, 0x44, 0xea, - 0xa8, 0x2a, 0x0a, 0x29, 0x21, 0x2e, 0xc2, 0x55, 0xec, 0xd3, 0xb3, 0xac, 0x4e, 0xb4, 0x05, 0x32, - 0xb4, 0xcc, 0x3e, 0x71, 0xca, 0x8f, 0x13, 0xa7, 0x99, 0x21, 0x71, 0xe2, 0x74, 0xfb, 0x1c, 0x88, - 0x42, 0xf2, 0xd3, 0xcc, 0x27, 0x04, 0xc8, 0xd9, 0x2c, 0x47, 0xaf, 0x4b, 0x31, 0x9e, 0x04, 0x28, - 0xa8, 0xae, 0x27, 0x01, 0x27, 0x3d, 0x25, 0x19, 0x7e, 0x27, 0xbf, 0x2f, 0x69, 0xc2, 0x3d, 0xbb, - 0x13, 0x81, 0xc6, 0x91, 0x19, 0xa5, 0xb7, 0xa1, 0xed, 0x0b, 0xd7, 0x38, 0x52, 0x84, 0x49, 0x51, - 0xce, 0x6d, 0x8b, 0x90, 0xb6, 0xa7, 0x12, 0xe8, 0x3f, 0x63, 0xa9, 0x79, 0xf4, 0x12, 0x26, 0x9c, - 0xd0, 0x3a, 0x8d, 0x9d, 0x41, 0xa3, 0xa5, 0xd1, 0xe4, 0xc8, 0x7d, 0xb0, 0x53, 0x70, 0x64, 0xd0, - 0x93, 0x7b, 0x5a, 0x6f, 0x6f, 0x47, 0x79, 0xb9, 0xbb, 0x50, 0x60, 0xf2, 0x58, 0x7b, 0x47, 0x0e, - 0x65, 0x62, 0x51, 0x14, 0x1c, 0x70, 0x7d, 0x43, 0x51, 0x31, 0xb9, 0x30, 0xe1, 0x38, 0xa7, 0xa6, - 0xe9, 0x48, 0x23, 0x65, 0x44, 0x13, 0xc9, 0x73, 0xfb, 0x1f, 0x52, 0x70, 0xfc, 0x0c, 0xee, 0x61, - 0x5d, 0xe9, 0xd8, 0x9d, 0xe2, 0x72, 0xfc, 0x38, 0xea, 0x0d, 0x76, 0x31, 0xca, 0xe7, 0xb2, 0x31, - 0xb8, 0x9e, 0xe4, 0x0f, 0x4a, 0xf2, 0x90, 0x25, 0xe3, 0x7a, 0xf1, 0xaa, 0x2f, 0x3c, 0x75, 0x32, - 0xf5, 0x95, 0xa7, 0x4e, 0xa6, 0xbe, 0xf9, 0xd4, 0xc9, 0xd4, 0xaf, 0x7e, 0xfb, 0xe4, 0x65, 0x5f, - 0xf9, 0xf6, 0xc9, 0xcb, 0xfe, 0xfa, 0xdb, 0x27, 0x2f, 0xfb, 0x17, 0xe9, 0xfe, 0xfa, 0x7a, 0x8e, - 0x18, 0x0c, 0xdf, 0xf6, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0x1c, 0x2c, 0xfd, 0x06, 0x33, 0x12, - 0x01, 0x00, + // 10083 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x7d, 0x7b, 0x94, 0x63, 0x47, + 0x79, 0xe7, 0x48, 0x57, 0x8f, 0xee, 0xea, 0x99, 0x1e, 0xf9, 0x32, 0x19, 0x37, 0x65, 0x7b, 0x70, + 0x06, 0xdb, 0x98, 0xc1, 0xd6, 0xe0, 0x31, 0x18, 0xdb, 0xf8, 0xa5, 0x96, 0xd4, 0xdd, 0xf2, 0x74, + 0x4b, 0xcd, 0x95, 0x7a, 0x06, 0x2f, 0xc9, 0x6a, 0x6f, 0x4b, 0xd5, 0xdd, 0x97, 0xb9, 0xad, 0x2b, + 0xae, 0xae, 0x7a, 0xdc, 0x9c, 0x93, 0xdd, 0x35, 0x59, 0x42, 0x20, 0x07, 0x13, 0x72, 0x92, 0xe5, + 0xe1, 0x0d, 0x6f, 0x87, 0xf0, 0x8a, 0x21, 0x09, 0x31, 0x10, 0x4c, 0x36, 0x60, 0xe7, 0x40, 0x36, + 0x89, 0x9d, 0xc4, 0xc4, 0x81, 0x25, 0xec, 0xda, 0x84, 0x3d, 0xec, 0x26, 0x2c, 0x87, 0x9c, 0xec, + 0x66, 0x13, 0x36, 0x90, 0x53, 0x8f, 0xfb, 0x28, 0xb5, 0xee, 0x55, 0x5d, 0xf5, 0xbd, 0xea, 0xc9, + 0xc9, 0x5f, 0x52, 0xd5, 0xad, 0xc7, 0x57, 0xdf, 0xef, 0xab, 0xaf, 0xbe, 0xaa, 0xfa, 0xaa, 0x0a, + 0xcc, 0x75, 0xd7, 0x4f, 0x77, 0x4d, 0xc3, 0x32, 0x7a, 0xa7, 0x5b, 0xc6, 0xf6, 0xb6, 0xda, 0x69, + 0xf7, 0xf2, 0x24, 0x2c, 0x67, 0xd5, 0xce, 0xae, 0xb5, 0xdb, 0x45, 0xf0, 0x9a, 0xee, 0x85, 0xcd, + 0xd3, 0xba, 0xb6, 0x7e, 0xba, 0xbb, 0x7e, 0x7a, 0xdb, 0x68, 0x23, 0xdd, 0xce, 0x40, 0x02, 0x2c, + 0x39, 0xbc, 0xde, 0x2f, 0x95, 0x6e, 0xb4, 0x54, 0xbd, 0x67, 0x19, 0x26, 0x62, 0x29, 0x8f, 0xbb, + 0x55, 0xa2, 0x1d, 0xd4, 0xb1, 0xec, 0x12, 0xae, 0xdc, 0x34, 0x8c, 0x4d, 0x1d, 0xd1, 0x6f, 0xeb, + 0xfd, 0x8d, 0xd3, 0x3d, 0xcb, 0xec, 0xb7, 0x2c, 0xfa, 0xf5, 0xe4, 0xb3, 0x6f, 0x4f, 0x01, 0x49, + 0xe9, 0xb6, 0xe0, 0x1f, 0x4d, 0x01, 0xa9, 0xd0, 0xed, 0xc2, 0xef, 0x27, 0x01, 0x58, 0x44, 0xd6, + 0x39, 0x64, 0xf6, 0x34, 0xa3, 0x03, 0xa7, 0x41, 0x56, 0x41, 0xaf, 0xeb, 0xa3, 0x9e, 0x05, 0x9f, + 0x49, 0x82, 0x29, 0x05, 0xf5, 0xba, 0x46, 0xa7, 0x87, 0xe4, 0x7b, 0x40, 0x1a, 0x99, 0xa6, 0x61, + 0xce, 0x25, 0xae, 0x4e, 0x5c, 0x3f, 0x73, 0xe6, 0x54, 0x9e, 0x35, 0x2b, 0xaf, 0x74, 0x5b, 0xf9, + 0x42, 0xb7, 0x9b, 0x77, 0xcb, 0xc8, 0xdb, 0x99, 0xf2, 0x65, 0x9c, 0x43, 0xa1, 0x19, 0xe5, 0x39, + 0x90, 0xdd, 0xa1, 0x09, 0xe6, 0x92, 0x57, 0x27, 0xae, 0x9f, 0x56, 0xec, 0x20, 0xfe, 0xd2, 0x46, + 0x96, 0xaa, 0xe9, 0xbd, 0x39, 0x89, 0x7e, 0x61, 0x41, 0xf8, 0x74, 0x02, 0xa4, 0x49, 0x21, 0x72, + 0x11, 0xa4, 0x5a, 0x46, 0x1b, 0x91, 0xea, 0x67, 0xcf, 0x9c, 0x16, 0xaf, 0x3e, 0x5f, 0x34, 0xda, + 0x48, 0x21, 0x99, 0xe5, 0xab, 0xc1, 0x4c, 0x1b, 0xf5, 0x5a, 0xa6, 0xd6, 0xb5, 0x5c, 0x32, 0xbc, + 0x51, 0x27, 0xdb, 0x20, 0x85, 0xd3, 0xcb, 0x53, 0x20, 0x55, 0x5d, 0x5b, 0x5e, 0xce, 0x1d, 0x92, + 0x2f, 0x03, 0x47, 0xd6, 0xaa, 0x67, 0xab, 0xb5, 0xf3, 0xd5, 0x66, 0x59, 0x51, 0x6a, 0x4a, 0x2e, + 0x21, 0x1f, 0x01, 0xd3, 0xf3, 0x85, 0x52, 0xb3, 0x52, 0x5d, 0x5d, 0x6b, 0xe4, 0x92, 0xf2, 0x31, + 0x90, 0x3b, 0x57, 0x56, 0xea, 0x95, 0x5a, 0xb5, 0x59, 0xa9, 0x37, 0xcb, 0x2b, 0xab, 0x8d, 0xfb, + 0x72, 0x12, 0x4e, 0x54, 0xad, 0x35, 0x9a, 0x0b, 0xb5, 0xb5, 0x6a, 0x29, 0x87, 0xe4, 0x19, 0x90, + 0x6d, 0x54, 0x56, 0xca, 0xb5, 0xb5, 0x46, 0x6e, 0x03, 0xfe, 0xa6, 0x04, 0x66, 0xeb, 0xc8, 0x2a, + 0xa1, 0x1d, 0xad, 0x85, 0xea, 0x96, 0x6a, 0x21, 0xf8, 0xb6, 0x84, 0xc3, 0x78, 0x79, 0x0d, 0x93, + 0xe9, 0x7c, 0x62, 0x4d, 0xbe, 0x79, 0x4f, 0x93, 0xf9, 0x12, 0xf2, 0x2c, 0x77, 0xde, 0x13, 0xa7, + 0x78, 0xcb, 0x39, 0x79, 0x23, 0x98, 0xf1, 0x7c, 0x93, 0x67, 0x01, 0x98, 0x2f, 0x14, 0xcf, 0x2e, + 0x2a, 0x84, 0xc2, 0x43, 0x38, 0xbc, 0x50, 0x53, 0xca, 0x2c, 0x9c, 0x80, 0x6f, 0xf3, 0xc2, 0x5f, + 0xe2, 0xe1, 0xcf, 0x8f, 0x26, 0x66, 0x88, 0x08, 0xc0, 0xcf, 0x3b, 0x70, 0x2e, 0x72, 0x70, 0xde, + 0x1c, 0xae, 0xb8, 0x70, 0x90, 0x2e, 0x8d, 0x07, 0x69, 0xb5, 0x56, 0x2a, 0x37, 0x31, 0x82, 0xf5, + 0x46, 0x41, 0x69, 0x94, 0x4b, 0x39, 0x04, 0x1f, 0x4a, 0x82, 0xa9, 0xfa, 0x56, 0xdf, 0x6a, 0x1b, + 0x17, 0xb9, 0x8e, 0xf2, 0xd3, 0x5e, 0x4e, 0xdd, 0xc5, 0x73, 0xea, 0xfa, 0xbd, 0x4d, 0x63, 0x25, + 0xf8, 0xf0, 0xe8, 0xb7, 0x1c, 0x1e, 0x15, 0x38, 0x1e, 0xdd, 0x28, 0x5a, 0xd0, 0x41, 0x71, 0xe7, + 0xf1, 0x29, 0x90, 0x39, 0xaf, 0xea, 0x3a, 0xb2, 0xe0, 0x37, 0x93, 0x20, 0x53, 0x34, 0x11, 0x96, + 0xeb, 0x6b, 0x5d, 0xb1, 0x86, 0x60, 0xca, 0x34, 0x0c, 0x6b, 0x55, 0xb5, 0xb6, 0x48, 0x9b, 0xa6, + 0x15, 0x27, 0x0c, 0x3f, 0xee, 0x65, 0xe1, 0xdd, 0x3c, 0x0b, 0x5f, 0xcc, 0xb5, 0x9c, 0x56, 0x91, + 0xa7, 0xc5, 0xfb, 0xa8, 0x1a, 0x08, 0xa6, 0xb6, 0x3b, 0x68, 0xdb, 0xe8, 0x68, 0x2d, 0xd6, 0x66, + 0x27, 0x0c, 0xbf, 0xe8, 0xf0, 0x77, 0x9e, 0xe3, 0x6f, 0x5e, 0xb8, 0x96, 0x70, 0x0c, 0xae, 0x8f, + 0xc1, 0xe0, 0x17, 0x80, 0x2b, 0x16, 0x0a, 0x95, 0xe5, 0x72, 0xa9, 0xd9, 0xa8, 0x35, 0x8b, 0x4a, + 0xb9, 0xd0, 0x28, 0x37, 0x97, 0x6b, 0xc5, 0xc2, 0x72, 0x53, 0x29, 0xaf, 0xd6, 0x72, 0x08, 0x3e, + 0x9b, 0xc4, 0x6c, 0x6d, 0x19, 0x3b, 0xc8, 0x84, 0x05, 0x21, 0x0e, 0x07, 0xf2, 0xe4, 0x17, 0x84, + 0x35, 0x3d, 0xe3, 0x0b, 0xab, 0xdb, 0x47, 0x84, 0xbf, 0x24, 0xa4, 0xb5, 0x03, 0x8b, 0xba, 0x04, + 0x78, 0xfc, 0xb7, 0x49, 0x90, 0x2d, 0x1a, 0x9d, 0x1d, 0x64, 0x5a, 0xf0, 0x6e, 0x8e, 0xc7, 0x0e, + 0x1f, 0x13, 0x3c, 0x1f, 0xf1, 0x40, 0x86, 0x3a, 0x96, 0x69, 0x74, 0x77, 0xed, 0x21, 0x8e, 0x05, + 0xe1, 0x87, 0xc3, 0x72, 0x98, 0xd5, 0xec, 0x3f, 0x96, 0x0e, 0xaf, 0x88, 0x23, 0x4f, 0x1a, 0x80, + 0xf9, 0x03, 0x61, 0x70, 0x19, 0x4e, 0x40, 0x38, 0x5c, 0xce, 0x84, 0xc7, 0x05, 0xfe, 0xcf, 0xcb, + 0x41, 0xb6, 0xd0, 0x6a, 0x19, 0xfd, 0x8e, 0x05, 0xbf, 0x9d, 0x00, 0x99, 0xa2, 0xd1, 0xd9, 0xd0, + 0x36, 0xe5, 0xeb, 0xc0, 0x2c, 0xea, 0xa8, 0xeb, 0x3a, 0x2a, 0xa9, 0x96, 0xba, 0xa3, 0xa1, 0x8b, + 0x84, 0xf6, 0x29, 0x65, 0x20, 0x16, 0x13, 0xc5, 0x62, 0xd0, 0x7a, 0x7f, 0x93, 0x10, 0x35, 0xa5, + 0x78, 0xa3, 0xe4, 0xbb, 0x00, 0xa4, 0x41, 0x05, 0xe9, 0x48, 0xed, 0xa1, 0xe2, 0x96, 0xda, 0xe9, + 0x20, 0xbd, 0x7e, 0x51, 0xb3, 0x5a, 0x5b, 0x84, 0x67, 0x53, 0x4a, 0x40, 0x0a, 0xf9, 0x24, 0x38, + 0x4c, 0xbf, 0xd6, 0xbb, 0x6a, 0x0b, 0xf5, 0xe6, 0x52, 0x24, 0x07, 0x17, 0x27, 0xdf, 0x08, 0xd2, + 0xe8, 0x7e, 0xcb, 0x54, 0xe7, 0xda, 0x04, 0xe1, 0xcb, 0xf3, 0xd4, 0x26, 0xcb, 0xdb, 0x36, 0x59, + 0xbe, 0x4e, 0x6c, 0x32, 0x85, 0xa6, 0x82, 0xcf, 0xa6, 0x1d, 0x7d, 0xf9, 0x53, 0xae, 0xa4, 0xc9, + 0x20, 0xd5, 0x51, 0xb7, 0x11, 0x93, 0x32, 0xf2, 0x5f, 0x3e, 0x05, 0x8e, 0xaa, 0x3b, 0xaa, 0xa5, + 0x9a, 0xcb, 0xd8, 0x1c, 0x24, 0x1d, 0x9d, 0xf0, 0x7d, 0xe9, 0x90, 0x32, 0xf8, 0x41, 0xbe, 0x1e, + 0x1c, 0x55, 0xf5, 0xee, 0x96, 0x5a, 0xe9, 0xec, 0x68, 0x16, 0xc2, 0x40, 0xcc, 0x1d, 0x23, 0x45, + 0x0d, 0x46, 0xcf, 0x4f, 0x81, 0x0c, 0xcd, 0x0c, 0x9f, 0x49, 0x09, 0xdb, 0x7c, 0x14, 0xa3, 0x60, + 0x45, 0xfc, 0x52, 0x90, 0x55, 0x69, 0x3a, 0x42, 0xe6, 0xcc, 0x99, 0xe3, 0x4e, 0x19, 0xc4, 0xb8, + 0xb5, 0x4b, 0x51, 0xec, 0x64, 0xf2, 0xcd, 0x20, 0xd3, 0x22, 0x88, 0x13, 0x24, 0x66, 0xce, 0x5c, + 0x31, 0xbc, 0x52, 0x92, 0x44, 0x61, 0x49, 0xe1, 0xfb, 0x25, 0x21, 0x33, 0x31, 0x88, 0xe2, 0x70, + 0x82, 0xfd, 0xc9, 0xe4, 0x18, 0x1a, 0xe7, 0x06, 0x70, 0x7d, 0xa1, 0x58, 0xac, 0xad, 0x55, 0x1b, + 0x4c, 0xdf, 0x94, 0x9a, 0xf3, 0x6b, 0x8d, 0xa6, 0xab, 0x85, 0xc8, 0x58, 0xda, 0xc4, 0x43, 0x6b, + 0x0e, 0x23, 0x7d, 0xdd, 0x88, 0xd4, 0xe5, 0x46, 0xb3, 0x5a, 0x58, 0x29, 0xe7, 0x36, 0x04, 0x4a, + 0x2e, 0x37, 0x9a, 0x85, 0x73, 0x85, 0x46, 0x41, 0xc9, 0x6d, 0xf2, 0x9a, 0xaf, 0xde, 0xa8, 0xad, + 0x36, 0x95, 0xb5, 0x6a, 0xb5, 0x52, 0x5d, 0xa4, 0x55, 0x6f, 0xc9, 0xc7, 0xc0, 0x51, 0x4a, 0xf7, + 0xb9, 0x4a, 0xa3, 0xdc, 0x2c, 0xe2, 0xc8, 0xff, 0x90, 0x95, 0x67, 0xc1, 0x74, 0xb5, 0xdc, 0x60, + 0x8d, 0x7b, 0x63, 0x56, 0xbe, 0x02, 0x1c, 0xc7, 0xe1, 0x62, 0xad, 0x5a, 0x2d, 0x17, 0x1b, 0xd8, + 0xfa, 0x55, 0xca, 0x0b, 0x6b, 0xf5, 0x72, 0x29, 0xf7, 0x33, 0x59, 0x39, 0x07, 0x66, 0xf0, 0xc7, + 0xda, 0xc2, 0xc2, 0x72, 0xa5, 0x5a, 0xce, 0xbd, 0x29, 0x0b, 0x1f, 0x4e, 0xb9, 0x43, 0x96, 0xc7, + 0x76, 0x7a, 0xd0, 0x2b, 0x70, 0x05, 0x5e, 0xe0, 0x5e, 0x32, 0x14, 0xbe, 0xe0, 0xb1, 0xe7, 0x0b, + 0x8e, 0x28, 0x94, 0x38, 0x51, 0x78, 0x69, 0x88, 0xb2, 0xc2, 0xc9, 0xc2, 0x1f, 0x8c, 0x23, 0x0b, + 0x3f, 0x06, 0x2e, 0xab, 0xd6, 0x9a, 0x0c, 0xb4, 0xba, 0x33, 0x4b, 0xb8, 0x1a, 0x5c, 0x59, 0x2d, + 0x53, 0x60, 0x94, 0x72, 0xb1, 0x76, 0xae, 0xac, 0x34, 0xcf, 0x17, 0x96, 0x97, 0xcb, 0x8d, 0xe6, + 0x42, 0x45, 0xa9, 0x37, 0x72, 0x1b, 0xa3, 0x86, 0xad, 0x4d, 0xf9, 0x85, 0xe0, 0x05, 0x6e, 0xb8, + 0x59, 0x7e, 0x75, 0xa5, 0xde, 0xa8, 0x13, 0x69, 0x28, 0xd6, 0x14, 0x65, 0x6d, 0x15, 0xdb, 0x6a, + 0x5b, 0xf2, 0x71, 0x20, 0xbb, 0xa5, 0x28, 0x6b, 0x55, 0x8a, 0xbc, 0x86, 0xeb, 0x67, 0xf5, 0xd9, + 0xd5, 0x63, 0x1b, 0x6f, 0xb5, 0xac, 0x2c, 0xd4, 0x94, 0x95, 0x72, 0x29, 0xf7, 0xda, 0x51, 0xc2, + 0x73, 0x41, 0xbe, 0x0e, 0x9c, 0x2c, 0x54, 0x6b, 0x8d, 0xa5, 0xb2, 0xd2, 0x2c, 0x54, 0xef, 0x6b, + 0xdc, 0xb7, 0x5a, 0x6e, 0xae, 0x2a, 0xb5, 0x62, 0xb9, 0x5e, 0xc7, 0xb3, 0x23, 0x96, 0x38, 0xa7, + 0x63, 0x12, 0x6c, 0x99, 0xad, 0xd4, 0x9b, 0xa5, 0xf2, 0x72, 0x19, 0x93, 0xb6, 0x0d, 0xdf, 0x2a, + 0x81, 0x4c, 0x09, 0xe9, 0xc8, 0x42, 0xf0, 0xc7, 0x5d, 0x5d, 0x78, 0x1c, 0x64, 0x4c, 0x84, 0xc7, + 0x23, 0xa6, 0xf6, 0x59, 0x08, 0xfe, 0xb7, 0x64, 0x58, 0x7d, 0x45, 0xcb, 0xf6, 0xd1, 0x57, 0x2f, + 0x07, 0x99, 0x9e, 0xa5, 0x5a, 0xfd, 0x1e, 0x53, 0x57, 0x57, 0x0d, 0x57, 0x57, 0xf9, 0x3a, 0x49, + 0xa4, 0xb0, 0xc4, 0xf0, 0x6b, 0x89, 0x30, 0xfa, 0x67, 0x28, 0x05, 0xe1, 0x64, 0x4e, 0x1b, 0x43, + 0xe4, 0x4e, 0x00, 0xe8, 0x61, 0x78, 0x61, 0x59, 0x29, 0x17, 0x4a, 0xf7, 0x39, 0x8c, 0x47, 0x58, + 0x24, 0xbd, 0xdf, 0x8b, 0x8d, 0xca, 0xb9, 0x72, 0x6e, 0x03, 0x3e, 0x96, 0x06, 0x99, 0x3a, 0xd2, + 0x51, 0xcb, 0x82, 0x2f, 0x77, 0xf1, 0x98, 0x05, 0x49, 0xad, 0xcd, 0x46, 0xa6, 0xa4, 0xd6, 0xe6, + 0x2c, 0xcf, 0xe4, 0x80, 0x6d, 0xff, 0x83, 0xd0, 0x63, 0x0a, 0xad, 0xef, 0x60, 0xc7, 0x94, 0x27, + 0x42, 0x8d, 0x29, 0x43, 0x29, 0x0e, 0x87, 0xe9, 0xd3, 0xc9, 0x18, 0xac, 0x58, 0x11, 0x75, 0xb0, + 0xe1, 0xa3, 0x0e, 0x06, 0x46, 0x8a, 0x85, 0x4a, 0xb5, 0xd4, 0x74, 0x24, 0xa4, 0xba, 0x50, 0xcb, + 0x6d, 0xc9, 0x79, 0x70, 0xca, 0x53, 0x3a, 0xd6, 0x15, 0xac, 0x86, 0x42, 0xb5, 0xd4, 0x5c, 0xa9, + 0x96, 0x57, 0x6a, 0xd5, 0x4a, 0x91, 0xce, 0x13, 0xcb, 0x0d, 0xaa, 0x5f, 0x06, 0xb4, 0x47, 0xbd, + 0x5c, 0x50, 0x8a, 0x4b, 0x44, 0xd1, 0x94, 0xca, 0xb9, 0xd7, 0xca, 0x2f, 0x02, 0x2f, 0xf4, 0x90, + 0xc2, 0x94, 0xd0, 0xaa, 0x52, 0x2e, 0x95, 0x17, 0x2a, 0x55, 0x3c, 0xae, 0x2d, 0xd7, 0x8a, 0x67, + 0xeb, 0xe2, 0x7a, 0x06, 0xfe, 0x43, 0x12, 0xa4, 0xea, 0x96, 0xd1, 0x85, 0x2f, 0x76, 0xa5, 0xf7, + 0x04, 0x00, 0x26, 0xda, 0x36, 0x76, 0x88, 0xd9, 0xc8, 0x34, 0x8a, 0x27, 0x06, 0xfe, 0x9e, 0xf8, + 0x84, 0xde, 0x51, 0x08, 0x46, 0xd7, 0x67, 0x44, 0xfa, 0x7b, 0xb1, 0x09, 0xbd, 0x7f, 0x41, 0xe1, + 0xc4, 0xe8, 0x2d, 0x89, 0x31, 0xc4, 0x08, 0x82, 0xe3, 0x9e, 0xbe, 0x8f, 0xf1, 0xb2, 0x19, 0x88, + 0xe4, 0xcb, 0xc1, 0xf3, 0x06, 0x30, 0x23, 0x50, 0x6d, 0xc8, 0x3f, 0x0e, 0xae, 0xf2, 0x42, 0xb5, + 0x52, 0x3b, 0x57, 0x76, 0xe4, 0xa3, 0x54, 0x68, 0x14, 0x72, 0x9b, 0xf0, 0x2a, 0x30, 0xbd, 0x88, + 0x2c, 0xda, 0xb3, 0x60, 0x0e, 0x48, 0x8b, 0xc8, 0xf2, 0x0e, 0xfe, 0xcf, 0x1e, 0x05, 0xd3, 0xe7, + 0x0d, 0xf3, 0x42, 0x0f, 0x5b, 0xcd, 0xf0, 0xb3, 0x74, 0x25, 0xb2, 0xd8, 0x37, 0x4d, 0xd4, 0xe1, + 0xd2, 0xbd, 0xd7, 0x8b, 0xc7, 0x02, 0x8f, 0x07, 0x3f, 0xb0, 0x3b, 0xa5, 0xe5, 0xdd, 0x92, 0x7c, + 0xf4, 0xc8, 0xd5, 0x60, 0xe6, 0xa2, 0x9d, 0xba, 0xd2, 0xb6, 0x59, 0xe9, 0x89, 0x82, 0xbf, 0xea, + 0x20, 0x57, 0xe1, 0x90, 0x7b, 0x79, 0xd8, 0x2a, 0xe3, 0x9f, 0x35, 0x3d, 0x92, 0x04, 0x99, 0x45, + 0x64, 0x15, 0x74, 0xdd, 0xcb, 0xb7, 0x77, 0x79, 0xf9, 0x36, 0xcf, 0xf3, 0xed, 0x06, 0xff, 0x46, + 0x14, 0x74, 0xdd, 0x87, 0x67, 0x27, 0xc1, 0x61, 0x0f, 0x83, 0xf0, 0x28, 0x29, 0x5d, 0x3f, 0xad, + 0x70, 0x71, 0xf0, 0x43, 0x0e, 0xd7, 0xca, 0x1c, 0xd7, 0x6e, 0x0a, 0x53, 0x61, 0xfc, 0x1c, 0xfb, + 0x5d, 0x77, 0x8d, 0xea, 0xaa, 0xc0, 0x39, 0x17, 0x7c, 0xc7, 0x18, 0x5c, 0x0c, 0x9c, 0x15, 0x8d, + 0x96, 0xbc, 0xb0, 0x3c, 0x8c, 0x60, 0x4a, 0x33, 0x0e, 0x0f, 0xff, 0x2a, 0x09, 0x72, 0x75, 0x64, + 0x55, 0x7a, 0x4b, 0xda, 0xe6, 0x96, 0xae, 0x6d, 0x6e, 0x59, 0xa8, 0x0d, 0xcf, 0x72, 0x6b, 0x25, + 0xc6, 0xfa, 0x6b, 0x51, 0xcb, 0xaa, 0xd8, 0xb6, 0x82, 0x13, 0x96, 0xaf, 0x01, 0x47, 0x34, 0x6f, + 0x3e, 0x36, 0x55, 0xe7, 0x23, 0xe1, 0x9b, 0xbd, 0xbc, 0x5f, 0xe6, 0x79, 0x7f, 0x8b, 0x0f, 0x33, + 0x06, 0x29, 0xf2, 0xd1, 0xcb, 0xbf, 0xe6, 0xf0, 0xb8, 0xc6, 0xf1, 0xf8, 0x95, 0xe3, 0x15, 0x1b, + 0x3f, 0xb7, 0x3f, 0x91, 0x74, 0x2c, 0xb1, 0x97, 0xb8, 0x3c, 0x1e, 0x10, 0xa6, 0xc4, 0x5e, 0x61, + 0xfa, 0x3f, 0x89, 0xf0, 0xf2, 0x1b, 0x64, 0x81, 0x85, 0x96, 0xce, 0x08, 0x8c, 0xa3, 0x71, 0xf8, + 0xf5, 0xd3, 0x12, 0xc8, 0x94, 0xef, 0xef, 0x1a, 0xfc, 0xfa, 0x9d, 0x0c, 0x52, 0x5d, 0x77, 0x7d, + 0x94, 0xfc, 0x17, 0xe8, 0x90, 0x8f, 0x8e, 0xa1, 0x03, 0x68, 0xdd, 0x3e, 0x3a, 0xc0, 0x26, 0x23, + 0xe9, 0x21, 0xe3, 0x06, 0x90, 0x26, 0x3b, 0x79, 0xcc, 0x4c, 0x75, 0xed, 0x5a, 0xbb, 0x88, 0x32, + 0xfe, 0xaa, 0xd0, 0x44, 0xa1, 0x51, 0x18, 0x4a, 0x4e, 0xfc, 0x28, 0x7c, 0x73, 0x03, 0x64, 0x6a, + 0xa4, 0xd3, 0xc3, 0x8f, 0x49, 0x20, 0x55, 0xeb, 0xa2, 0x0e, 0xfc, 0x49, 0x17, 0x8e, 0x2b, 0xc1, + 0x74, 0xcb, 0xe8, 0x58, 0xe8, 0x7e, 0x57, 0x47, 0xb8, 0x11, 0x9c, 0x02, 0x49, 0x0e, 0x28, 0x90, + 0x39, 0x90, 0xb5, 0x4c, 0x0a, 0x18, 0xdb, 0x35, 0x64, 0x41, 0xf8, 0x25, 0x2f, 0x58, 0x77, 0xf2, + 0x60, 0xbd, 0x88, 0xe3, 0x0e, 0x25, 0x2c, 0x8f, 0x89, 0xf2, 0xc1, 0xc9, 0xc1, 0x24, 0x29, 0x82, + 0xc9, 0x57, 0x1c, 0x4c, 0xee, 0xe1, 0x30, 0xb9, 0x41, 0xb0, 0xd6, 0x70, 0x70, 0xfc, 0xc4, 0x18, + 0x96, 0x1e, 0xb7, 0x2d, 0x29, 0xc9, 0xcf, 0x07, 0x3f, 0x66, 0x5b, 0xcf, 0xd5, 0x72, 0xb9, 0x54, + 0x6f, 0xae, 0xad, 0x2e, 0x2a, 0x85, 0x52, 0x39, 0x07, 0xe0, 0xe7, 0x93, 0x20, 0x5d, 0xd4, 0x8d, + 0x1e, 0x82, 0xc5, 0x08, 0xe0, 0x82, 0xdf, 0x4d, 0x88, 0xda, 0xd4, 0x8c, 0x3d, 0xa4, 0x6e, 0x1f, + 0x0d, 0xf4, 0x3e, 0x21, 0x9b, 0x3a, 0xa0, 0xa0, 0xf8, 0xe5, 0x1e, 0x0b, 0x7b, 0x7d, 0xcb, 0xb8, + 0x78, 0xc9, 0x09, 0x3b, 0x26, 0x6a, 0xf2, 0xc2, 0x3e, 0xa4, 0xd6, 0x4b, 0x49, 0xd8, 0x7f, 0xe8, + 0x5a, 0x83, 0x77, 0xb8, 0x78, 0xdd, 0xe4, 0x3a, 0x26, 0x24, 0x82, 0x17, 0xf2, 0x1d, 0x8f, 0x85, + 0x4f, 0x0b, 0x6f, 0x64, 0xda, 0xd2, 0x19, 0x64, 0x29, 0x1e, 0x07, 0x99, 0xae, 0xba, 0xe9, 0xa2, + 0xce, 0x42, 0x2e, 0x50, 0x29, 0x11, 0xa0, 0xde, 0x2f, 0xb4, 0xe5, 0x19, 0x44, 0x4f, 0xfc, 0xdd, + 0xe5, 0x69, 0x09, 0x4c, 0xd3, 0xaa, 0xeb, 0xc8, 0x82, 0x16, 0xb7, 0xf2, 0xd7, 0x33, 0xfa, 0x66, + 0x0b, 0x13, 0x8d, 0x27, 0x1b, 0x2c, 0xe4, 0xc5, 0x26, 0x29, 0x86, 0x0d, 0x9e, 0xf6, 0x5b, 0x68, + 0xbb, 0xab, 0xab, 0x96, 0xcb, 0x51, 0x4f, 0x0c, 0x7c, 0x4a, 0x78, 0x90, 0xe7, 0x78, 0x55, 0x47, + 0x7e, 0x83, 0x3c, 0x5d, 0x25, 0x93, 0x9c, 0x55, 0xb2, 0x70, 0xb0, 0xfd, 0xae, 0xd0, 0x00, 0x3f, + 0x82, 0x94, 0x70, 0xc8, 0xd5, 0xc6, 0xe8, 0x64, 0x57, 0x80, 0xcb, 0xed, 0x14, 0xb5, 0xf9, 0x7b, + 0xcb, 0xc5, 0x46, 0x93, 0xf4, 0xb0, 0x35, 0x65, 0x39, 0x27, 0xe1, 0x41, 0x64, 0xba, 0xd4, 0xef, + 0xea, 0x5a, 0x0b, 0x77, 0xad, 0x17, 0x09, 0xaa, 0x42, 0xf8, 0xc6, 0xb0, 0x48, 0x38, 0x75, 0x04, + 0x22, 0x91, 0xb4, 0x91, 0x10, 0x34, 0x9e, 0x46, 0x14, 0x1e, 0x7f, 0xaf, 0xf8, 0x80, 0x04, 0x8e, + 0x62, 0x33, 0x61, 0xde, 0x44, 0x6a, 0xbb, 0x65, 0xf6, 0xb7, 0xd7, 0x7b, 0xde, 0xfd, 0xfe, 0xe0, + 0xf1, 0xc4, 0x33, 0x66, 0x24, 0xf9, 0x31, 0xe3, 0xbf, 0x78, 0xd9, 0xbb, 0xc4, 0xb3, 0xf7, 0x8c, + 0x9f, 0xa9, 0xe2, 0xa1, 0xc1, 0xdf, 0xed, 0xc2, 0x77, 0x00, 0x0b, 0x67, 0xdb, 0x7e, 0xd4, 0x81, + 0xe7, 0x2c, 0x07, 0xcf, 0x2b, 0xc2, 0x13, 0x37, 0x91, 0x79, 0xc6, 0x6c, 0x1d, 0x59, 0x3e, 0x18, + 0x5d, 0x03, 0x8e, 0xac, 0xbb, 0x5f, 0x1c, 0x9c, 0xf8, 0x48, 0x39, 0x07, 0x24, 0xcd, 0x59, 0x4f, + 0xc1, 0x7f, 0xf1, 0x6c, 0xcf, 0xc5, 0x68, 0x91, 0xc7, 0x68, 0xa8, 0x94, 0xf2, 0x24, 0x44, 0x32, + 0xc2, 0x7f, 0xc4, 0x81, 0xe1, 0x5e, 0x0e, 0x86, 0x5b, 0x42, 0xd7, 0x3f, 0x11, 0x7b, 0x6b, 0xb6, + 0xb2, 0x8d, 0xa7, 0x38, 0x2b, 0xaa, 0x79, 0x81, 0xb8, 0x68, 0x2d, 0x8a, 0xf6, 0x94, 0x13, 0x00, + 0x68, 0x24, 0xab, 0x67, 0xff, 0xc2, 0x13, 0x03, 0x9f, 0x0c, 0x8b, 0x05, 0x4f, 0x88, 0xff, 0x32, + 0x90, 0x69, 0x18, 0xd6, 0xb2, 0xd6, 0xb9, 0xe0, 0xae, 0xa5, 0x79, 0xa3, 0x42, 0x76, 0x9a, 0x50, + 0x68, 0x05, 0x52, 0x18, 0x3f, 0x5a, 0x8f, 0x27, 0xc1, 0x4c, 0x7d, 0x4b, 0x35, 0xd1, 0xfc, 0x2e, + 0x6e, 0xec, 0x80, 0x9b, 0x98, 0xdf, 0xa2, 0x11, 0x7c, 0xab, 0x17, 0x08, 0x19, 0xa4, 0x74, 0xad, + 0x73, 0xc1, 0x9e, 0xc9, 0xe3, 0xff, 0xae, 0x9f, 0x62, 0x72, 0x88, 0x9f, 0xa2, 0x63, 0x8a, 0x3a, + 0xf5, 0xfa, 0x4c, 0x2f, 0x7e, 0x45, 0xc8, 0x4f, 0x71, 0x64, 0x71, 0xf1, 0xb3, 0xf1, 0xcf, 0x92, + 0xe0, 0x68, 0xa1, 0xdd, 0x3e, 0xaf, 0x59, 0x5b, 0x35, 0x9b, 0x47, 0x77, 0x8b, 0xad, 0xbf, 0xcd, + 0x81, 0x6c, 0x57, 0xdd, 0xd5, 0x0d, 0xd5, 0x19, 0x1d, 0x58, 0x10, 0x3e, 0x10, 0x76, 0x74, 0x18, + 0xa0, 0xc0, 0x87, 0xa9, 0xa1, 0x74, 0x7a, 0x70, 0x91, 0xf1, 0x33, 0xf6, 0x0f, 0x53, 0x20, 0x53, + 0x47, 0xaa, 0xd9, 0xda, 0x82, 0xbf, 0x9c, 0x74, 0x19, 0xba, 0x00, 0xb2, 0x1b, 0x9a, 0x6e, 0x21, + 0xb3, 0x47, 0xac, 0x51, 0xaf, 0x31, 0x42, 0xf7, 0x1e, 0xe7, 0x75, 0xa3, 0x75, 0x21, 0x5f, 0xc4, + 0x9a, 0xa5, 0x63, 0xe5, 0x6d, 0xaf, 0xa4, 0xfc, 0x02, 0xc9, 0xa4, 0xd8, 0x99, 0xe5, 0x7b, 0x40, + 0xba, 0x67, 0x98, 0x16, 0xed, 0xf4, 0xde, 0x5d, 0xd0, 0xc0, 0x52, 0xea, 0x86, 0x69, 0x29, 0x34, + 0x23, 0x86, 0x76, 0xa3, 0xaf, 0xeb, 0x0d, 0x74, 0xbf, 0x65, 0xfb, 0x79, 0xd9, 0x61, 0x6c, 0x32, + 0x1b, 0x1b, 0x1b, 0x3d, 0x44, 0xed, 0xcc, 0xb4, 0xc2, 0x42, 0xf2, 0x31, 0x90, 0xd6, 0xb5, 0x6d, + 0xcd, 0x9a, 0x4b, 0x93, 0x68, 0x1a, 0x90, 0x4f, 0x81, 0x1c, 0x15, 0x8a, 0xc6, 0x6e, 0x17, 0x51, + 0x42, 0xe7, 0x32, 0x44, 0x17, 0xed, 0x89, 0xc7, 0x5d, 0xee, 0x02, 0xda, 0xed, 0xcd, 0x65, 0xc9, + 0x77, 0xf2, 0x1f, 0x7e, 0x20, 0xec, 0x8c, 0x87, 0xf2, 0xd5, 0x47, 0x29, 0xde, 0x04, 0xb2, 0x26, + 0x6a, 0x19, 0x66, 0xdb, 0xe6, 0x8d, 0xbf, 0x59, 0xcf, 0xd2, 0x85, 0x9b, 0xde, 0x0c, 0xad, 0x7c, + 0x02, 0x86, 0x5c, 0x06, 0xa4, 0x17, 0x4d, 0xb5, 0xbb, 0x05, 0x3f, 0x9c, 0x88, 0x5e, 0x9c, 0x1c, + 0x60, 0x93, 0xa3, 0x80, 0x95, 0x46, 0x00, 0x9b, 0xf2, 0x00, 0xfb, 0xae, 0x24, 0x48, 0x95, 0xdb, + 0x9b, 0x88, 0x9b, 0x82, 0x25, 0x3c, 0x53, 0xb0, 0xe3, 0x20, 0x63, 0xa9, 0xe6, 0x26, 0xb2, 0x18, + 0x97, 0x58, 0xc8, 0xd9, 0x44, 0x91, 0x3c, 0x8e, 0x6b, 0xaf, 0x00, 0x29, 0xdc, 0x2e, 0x22, 0x91, + 0xb3, 0x67, 0x5e, 0x38, 0x0c, 0x1a, 0xc2, 0x9f, 0x3c, 0xae, 0x31, 0x8f, 0x29, 0x53, 0x48, 0x86, + 0x41, 0x3c, 0xd2, 0x7b, 0xf0, 0xc0, 0x63, 0xbb, 0xd6, 0x32, 0x3a, 0x95, 0x6d, 0x75, 0x13, 0xcd, + 0x65, 0xe8, 0xd8, 0xee, 0x44, 0xd8, 0x5f, 0xcb, 0xdb, 0xc6, 0x6b, 0xb5, 0xb9, 0xac, 0xfb, 0x95, + 0x44, 0xe0, 0x26, 0x6c, 0x69, 0xed, 0x36, 0xea, 0xcc, 0x4d, 0x51, 0xbf, 0x12, 0x1a, 0x3a, 0x79, + 0x02, 0xa4, 0x30, 0x0d, 0x18, 0x63, 0xac, 0xd8, 0x73, 0x87, 0xe4, 0xc3, 0x58, 0xca, 0x75, 0x15, + 0xd7, 0x98, 0x4b, 0xc0, 0x3f, 0x49, 0x86, 0x5c, 0xcd, 0xa2, 0x8d, 0x1b, 0x2e, 0xf3, 0x37, 0x82, + 0x74, 0xc7, 0x68, 0xa3, 0x91, 0x12, 0x4f, 0x53, 0xc9, 0x2f, 0x03, 0x69, 0xd4, 0xde, 0x44, 0x3d, + 0x02, 0xe6, 0xcc, 0x99, 0x13, 0xc1, 0xbc, 0x54, 0x68, 0xe2, 0x70, 0x4b, 0x66, 0xc3, 0xa8, 0x8d, + 0xbf, 0x93, 0xfc, 0xbf, 0x0c, 0x38, 0x4a, 0xfb, 0x67, 0xbd, 0xbf, 0x8e, 0x8b, 0x5a, 0x47, 0xf0, + 0xed, 0x92, 0xdb, 0x5d, 0x8e, 0x81, 0x74, 0xaf, 0xbf, 0xee, 0x8c, 0x65, 0x34, 0xe0, 0xed, 0x44, + 0xc9, 0x48, 0x74, 0xb2, 0x34, 0xae, 0x4e, 0xe6, 0xf4, 0xab, 0x64, 0x77, 0x43, 0x57, 0x1b, 0x67, + 0x48, 0xb4, 0xad, 0x8d, 0x87, 0xe8, 0x52, 0x3c, 0x28, 0xab, 0x1b, 0x16, 0x32, 0x2b, 0x6d, 0x22, + 0x8f, 0xd3, 0x8a, 0x1d, 0xc4, 0xfa, 0x7e, 0x1d, 0x6d, 0x18, 0x26, 0x9e, 0xcd, 0x4d, 0x53, 0x7d, + 0x6f, 0x87, 0x3d, 0xfd, 0x13, 0x70, 0x4b, 0x24, 0xd7, 0x83, 0xa3, 0xda, 0x66, 0xc7, 0x30, 0x91, + 0xb3, 0x09, 0x30, 0x77, 0x98, 0x3a, 0x80, 0x0e, 0x44, 0xcb, 0x37, 0x80, 0xcb, 0x3a, 0x46, 0x09, + 0x75, 0x19, 0xdf, 0x29, 0xaa, 0x47, 0x48, 0x8f, 0xd8, 0xfb, 0x01, 0x3e, 0x25, 0x85, 0x34, 0x10, + 0x06, 0x40, 0x8d, 0x4c, 0xf5, 0xcb, 0xaf, 0x04, 0x87, 0xdb, 0xa8, 0x8b, 0x3a, 0x6d, 0xd4, 0x69, + 0x69, 0x4e, 0x8f, 0xf0, 0xcd, 0xc7, 0x25, 0x76, 0xc5, 0x29, 0xe5, 0x15, 0xa7, 0x45, 0x30, 0x45, + 0x3c, 0x31, 0xb0, 0x3c, 0xa5, 0x07, 0xdc, 0x10, 0x89, 0xb9, 0xed, 0x34, 0xca, 0xc3, 0x92, 0x7c, + 0x91, 0x65, 0x51, 0x9c, 0xcc, 0xe1, 0xec, 0x9d, 0x60, 0x0e, 0x4d, 0x60, 0x0e, 0x9b, 0x02, 0x87, + 0x9d, 0xda, 0x2b, 0xed, 0x1e, 0x34, 0x46, 0x75, 0xbb, 0x3d, 0x33, 0x56, 0x47, 0xa0, 0x25, 0x8f, + 0x40, 0x0f, 0x11, 0xc1, 0x99, 0xa1, 0x22, 0x08, 0x1f, 0xf0, 0x0a, 0x55, 0x99, 0x17, 0xaa, 0xd3, + 0x43, 0x59, 0xe6, 0x21, 0xf7, 0x52, 0x96, 0x28, 0x3c, 0xe2, 0x33, 0x41, 0x58, 0xe2, 0x04, 0xe1, + 0x65, 0x21, 0x5b, 0x15, 0xbf, 0x14, 0x7c, 0x21, 0x09, 0x2e, 0xa3, 0x92, 0xb8, 0xd6, 0xe9, 0x39, + 0x2a, 0x98, 0x77, 0xc3, 0x24, 0x6d, 0xea, 0x39, 0x8b, 0xb1, 0x24, 0xc4, 0xaf, 0xd7, 0xdd, 0xcb, + 0x83, 0xf7, 0x32, 0x7f, 0x79, 0xf7, 0xd4, 0xe2, 0x33, 0x69, 0xf8, 0xb8, 0xc3, 0xbb, 0x15, 0x8e, + 0x77, 0xb7, 0x8d, 0x53, 0x68, 0xfc, 0x0c, 0xfc, 0x45, 0x09, 0x4c, 0xd7, 0x91, 0xb5, 0xac, 0xee, + 0x1a, 0x7d, 0x0b, 0xaa, 0xa2, 0xeb, 0x0f, 0xb7, 0x82, 0x8c, 0x4e, 0xb2, 0x10, 0x93, 0x69, 0xf6, + 0xcc, 0xd5, 0x03, 0x63, 0x4f, 0xcd, 0x31, 0xd7, 0xf2, 0xb4, 0x68, 0x85, 0xa5, 0x87, 0x1f, 0x0c, + 0xbb, 0x50, 0xea, 0x50, 0x17, 0xc9, 0x02, 0x51, 0xa8, 0x65, 0x54, 0xbf, 0xaa, 0xe3, 0x87, 0xe5, + 0x67, 0x24, 0x70, 0x84, 0xb8, 0x6f, 0x2c, 0xa8, 0x3b, 0x86, 0xa9, 0x59, 0x28, 0xdc, 0xd2, 0x90, + 0x93, 0x8d, 0xf9, 0xa8, 0x78, 0x62, 0xe0, 0xc7, 0x84, 0x5d, 0xd3, 0x5c, 0x2e, 0xb8, 0x74, 0x44, + 0x02, 0x82, 0x98, 0x9b, 0x9a, 0x40, 0xf5, 0x13, 0x04, 0xa2, 0x60, 0xb6, 0xb6, 0xb4, 0x1d, 0xd4, + 0x0e, 0x09, 0x84, 0x9d, 0xcd, 0x05, 0xc2, 0x29, 0x68, 0x3c, 0x20, 0xec, 0xec, 0x07, 0x04, 0x84, + 0x4f, 0xf5, 0xf1, 0x03, 0xf1, 0x11, 0x0a, 0x84, 0xab, 0x58, 0xe0, 0x8a, 0x28, 0x10, 0xd7, 0x80, + 0x23, 0xee, 0xf4, 0x71, 0xcd, 0xd4, 0xd9, 0x34, 0x8f, 0x8f, 0x84, 0x5f, 0x1e, 0x03, 0x0e, 0x8f, + 0x9a, 0x8b, 0x02, 0x8e, 0x27, 0x42, 0xc2, 0xe1, 0x5b, 0xfd, 0x01, 0xef, 0xa1, 0x7d, 0x47, 0x02, + 0x80, 0x9c, 0x87, 0xa6, 0x3b, 0xcc, 0x4b, 0x20, 0x43, 0xff, 0x62, 0x13, 0xec, 0x02, 0xda, 0x65, + 0x08, 0xe1, 0xbf, 0x98, 0x41, 0x3b, 0xaa, 0xde, 0x47, 0x0e, 0x83, 0x06, 0xcd, 0x96, 0x73, 0xf8, + 0xab, 0x42, 0x13, 0xc1, 0x2d, 0x51, 0xc8, 0xef, 0xf6, 0xee, 0xb5, 0x62, 0x7b, 0xe8, 0x5a, 0x1f, + 0x16, 0x32, 0x1a, 0xf3, 0xf4, 0xd7, 0xdd, 0x15, 0x7f, 0xd8, 0x2b, 0x0d, 0x45, 0x5e, 0x1a, 0x6e, + 0x1c, 0x51, 0x56, 0x14, 0xa2, 0xf0, 0xb0, 0x23, 0x0a, 0x0b, 0x9c, 0x28, 0x9c, 0x09, 0x55, 0x77, + 0xfc, 0xdd, 0xf2, 0x8f, 0x92, 0x20, 0xdd, 0x30, 0xea, 0x88, 0xf3, 0x58, 0x0b, 0xc6, 0xc6, 0x9d, + 0xfc, 0x25, 0xbd, 0x93, 0xbf, 0x10, 0x87, 0xd2, 0x59, 0xb3, 0x49, 0xbd, 0x3e, 0xdc, 0xc6, 0x86, + 0x2d, 0x72, 0xb7, 0xf5, 0x68, 0x20, 0xdc, 0x92, 0xc2, 0xb0, 0xe2, 0xe3, 0x67, 0xe8, 0x6d, 0xe0, + 0xe8, 0x5a, 0xa7, 0x6d, 0x28, 0xa8, 0x6d, 0xb0, 0x29, 0x1a, 0x9e, 0xa6, 0xf4, 0x3b, 0x6d, 0x83, + 0xd0, 0x9a, 0x56, 0xc8, 0x7f, 0x1c, 0x67, 0xa2, 0xb6, 0xc1, 0xd6, 0xcf, 0xc8, 0x7f, 0xf8, 0x1e, + 0x09, 0xa4, 0x70, 0x5e, 0xf1, 0x5d, 0xeb, 0xbf, 0x0e, 0xeb, 0x8a, 0x83, 0x8b, 0x8f, 0x42, 0xbe, + 0xe5, 0xbb, 0x3d, 0x93, 0x56, 0xba, 0x57, 0xf4, 0x42, 0xbf, 0xfa, 0x3c, 0xac, 0xf0, 0x4c, 0x56, + 0x3f, 0x15, 0xc6, 0x97, 0x67, 0x08, 0xd9, 0xe1, 0x90, 0x2c, 0x8d, 0xa1, 0x22, 0x73, 0xe0, 0x70, + 0xb1, 0x50, 0x25, 0x67, 0x13, 0x56, 0x6a, 0xe7, 0xca, 0x39, 0x89, 0x00, 0x84, 0x5b, 0x13, 0x23, + 0x40, 0xb8, 0xf8, 0x7f, 0x86, 0x00, 0x0d, 0x21, 0xfb, 0x20, 0x00, 0xfa, 0xfd, 0x24, 0x38, 0xb2, + 0xac, 0xf5, 0x2c, 0x3f, 0x07, 0x10, 0x7b, 0x2f, 0xca, 0x9e, 0x4d, 0xba, 0x11, 0xfc, 0xe5, 0x23, + 0x22, 0xe6, 0x03, 0x57, 0x8f, 0x0f, 0x64, 0x7b, 0x37, 0xd9, 0x43, 0x59, 0x6c, 0x41, 0x55, 0xc4, + 0xaf, 0xc9, 0xfe, 0x22, 0x09, 0x00, 0xa1, 0x80, 0x9e, 0x8d, 0x14, 0xe6, 0x64, 0xe8, 0xa1, 0xd7, + 0xad, 0x64, 0xf2, 0x43, 0xaf, 0x6f, 0xdd, 0xf1, 0xf3, 0xf7, 0x2f, 0x93, 0xe0, 0x32, 0x5c, 0x7d, + 0xd0, 0xf4, 0xc4, 0x9f, 0xcd, 0x23, 0xa7, 0x27, 0xa1, 0x57, 0x48, 0xf6, 0xd0, 0x12, 0xc5, 0x0a, + 0xc9, 0xa8, 0x42, 0x27, 0xcc, 0x66, 0x9f, 0xe9, 0xf8, 0x28, 0x36, 0x07, 0x4c, 0xc7, 0xc7, 0x67, + 0x73, 0xf0, 0x94, 0x7c, 0x4c, 0x36, 0x1f, 0xd8, 0x44, 0xfb, 0xcf, 0x93, 0xe0, 0x48, 0xa1, 0xdb, + 0xd5, 0x77, 0x1b, 0xcc, 0xbd, 0x31, 0xd4, 0x44, 0xdb, 0xe3, 0x25, 0x99, 0xdc, 0xe3, 0x25, 0xf9, + 0x8f, 0x89, 0x90, 0xaa, 0x99, 0xa3, 0xc3, 0x87, 0xbd, 0xa1, 0x14, 0x71, 0x50, 0x81, 0xf1, 0xb3, + 0xf6, 0xad, 0x69, 0xaa, 0x88, 0xd9, 0xd1, 0x92, 0x3f, 0x4b, 0x04, 0x9f, 0x2d, 0xe1, 0xe4, 0x39, + 0x39, 0x28, 0xcf, 0x77, 0x82, 0xcc, 0x86, 0x61, 0x6e, 0xab, 0xf6, 0xca, 0xdf, 0xb5, 0x7e, 0xe2, + 0xc4, 0x4e, 0x6f, 0x2c, 0x90, 0xc4, 0x0a, 0xcb, 0x84, 0x47, 0xb4, 0xd7, 0x6b, 0x5d, 0x76, 0x05, + 0x09, 0xfe, 0x4b, 0x8e, 0x55, 0x75, 0x5a, 0x7a, 0xbf, 0x8d, 0xaa, 0xa8, 0x67, 0xa1, 0x36, 0xd9, + 0xc3, 0x98, 0x52, 0xf8, 0x48, 0xf9, 0x24, 0x38, 0xcc, 0x22, 0x16, 0x34, 0x1d, 0xf5, 0xc8, 0xce, + 0xd4, 0x94, 0xc2, 0xc5, 0xc1, 0x3f, 0x1d, 0x67, 0xe0, 0x08, 0x7d, 0xe6, 0x65, 0x0e, 0x64, 0x7b, + 0xfd, 0x56, 0x0b, 0xa1, 0x36, 0x73, 0x56, 0xb0, 0x83, 0x21, 0x9d, 0x9f, 0x42, 0x0f, 0x33, 0x07, + 0x73, 0x1c, 0xe6, 0xe4, 0x2a, 0xc8, 0x50, 0x0c, 0xe5, 0xc3, 0x60, 0xca, 0x76, 0xbf, 0xa2, 0xdb, + 0xcb, 0xab, 0x6c, 0x92, 0x9e, 0x4b, 0xe0, 0x12, 0xef, 0xad, 0xd7, 0xaa, 0xb9, 0xa4, 0x9c, 0x05, + 0x52, 0xa9, 0xd6, 0xc8, 0x49, 0xf8, 0x4f, 0xfd, 0xdc, 0x62, 0x2e, 0x25, 0xcf, 0x02, 0xb0, 0xa8, + 0x14, 0x56, 0x97, 0x9a, 0x24, 0x45, 0x1a, 0x7e, 0xfb, 0x79, 0x60, 0x96, 0xb6, 0xcb, 0xde, 0x9f, + 0x86, 0x7f, 0x29, 0x01, 0xa9, 0xd0, 0x6e, 0xc3, 0x9f, 0x10, 0xed, 0xf3, 0x37, 0x83, 0x29, 0x93, + 0x65, 0x76, 0xbc, 0xa9, 0xf9, 0x25, 0x68, 0xbb, 0x6c, 0xc5, 0x49, 0x08, 0x7f, 0x28, 0x7c, 0x41, + 0x1c, 0x4f, 0x5e, 0xbe, 0xd0, 0x8e, 0x64, 0xbd, 0x8d, 0x38, 0xd0, 0xb1, 0x32, 0xcf, 0xa2, 0x5d, + 0xb6, 0x0e, 0xe5, 0x8d, 0xe2, 0xda, 0x95, 0x12, 0x6d, 0x57, 0x18, 0xef, 0xaf, 0x80, 0x36, 0xc5, + 0xaf, 0x89, 0x3e, 0x23, 0x81, 0xcc, 0x5a, 0xb7, 0x8d, 0xb5, 0xfb, 0xbf, 0x15, 0x45, 0x7a, 0x80, + 0x67, 0xc9, 0x60, 0x9e, 0x49, 0xa2, 0x3c, 0x0b, 0xeb, 0xad, 0xea, 0xf0, 0x8d, 0xd2, 0x3f, 0x71, + 0x6f, 0xd5, 0xe0, 0xfa, 0x27, 0x73, 0x36, 0x91, 0x59, 0xf2, 0x95, 0xc8, 0xa0, 0x1b, 0x1f, 0x05, + 0x31, 0x7b, 0x5f, 0x8a, 0x0d, 0x85, 0x03, 0xb2, 0xf9, 0x7f, 0xc4, 0x26, 0xa8, 0x85, 0x1d, 0x55, + 0xd3, 0xd5, 0x75, 0x3d, 0xc4, 0x09, 0x85, 0xc7, 0xbd, 0xac, 0xae, 0xf2, 0xac, 0xbe, 0x35, 0xa8, + 0xa9, 0x5c, 0x7d, 0xbe, 0xd7, 0xd0, 0x4c, 0xdb, 0xb0, 0xba, 0x3b, 0xd7, 0x3e, 0x7d, 0xd0, 0x4d, + 0x09, 0x3f, 0xe9, 0xb0, 0xfe, 0x55, 0x1c, 0xeb, 0xef, 0x1c, 0x97, 0x9e, 0xf8, 0x11, 0x78, 0x50, + 0x02, 0x33, 0x85, 0x76, 0x7b, 0x01, 0xa9, 0x56, 0xdf, 0x44, 0x6d, 0x58, 0x16, 0xed, 0x0c, 0x57, + 0x0e, 0xb2, 0x68, 0xda, 0xcb, 0x89, 0x47, 0x85, 0x8f, 0x8d, 0xef, 0x55, 0xe3, 0x36, 0x2d, 0x91, + 0xe8, 0x24, 0xb1, 0x43, 0xe6, 0xc2, 0x44, 0xc4, 0x0f, 0xc8, 0x3b, 0x24, 0x30, 0xab, 0x90, 0x9b, + 0x50, 0xa2, 0xc6, 0xe4, 0x31, 0x2f, 0x26, 0x35, 0x1e, 0x93, 0xdb, 0x82, 0xd8, 0xc1, 0x93, 0x13, + 0x09, 0x2c, 0xee, 0x6a, 0x9a, 0xc2, 0xc1, 0x72, 0xd7, 0xd8, 0x74, 0xc4, 0x8f, 0xcc, 0x5b, 0x0e, + 0x83, 0x63, 0x3c, 0x45, 0x35, 0xea, 0x8e, 0xf5, 0x77, 0xcc, 0xda, 0x7b, 0x20, 0x11, 0x9d, 0x11, + 0x70, 0x0b, 0xc8, 0x18, 0x5d, 0x8f, 0x09, 0x70, 0xc2, 0x47, 0xfd, 0xe4, 0x29, 0x0d, 0x0a, 0x4b, + 0x0d, 0xff, 0x2a, 0xe4, 0xfc, 0x9b, 0x6f, 0x4a, 0x64, 0x96, 0xe1, 0xb8, 0xe4, 0x87, 0x99, 0xe5, + 0x8f, 0x24, 0x3d, 0x7e, 0x91, 0xf8, 0xb2, 0x6b, 0x00, 0x5e, 0x0a, 0xe0, 0x7f, 0xd6, 0x0b, 0xfe, + 0x0a, 0x0f, 0xfe, 0x2b, 0x46, 0x73, 0x30, 0x42, 0x53, 0xf0, 0x11, 0x07, 0xc7, 0x55, 0x0e, 0xc7, + 0x3b, 0xc6, 0xa4, 0x22, 0x7e, 0x28, 0x3f, 0x9e, 0x72, 0x0c, 0xc2, 0x47, 0x22, 0x84, 0x12, 0x82, + 0x29, 0x0a, 0x8e, 0x73, 0xe0, 0xd5, 0x09, 0xcb, 0x4b, 0xe0, 0x05, 0xe4, 0xae, 0x33, 0x73, 0x9b, + 0x6a, 0xb6, 0x82, 0xae, 0x93, 0xed, 0xe1, 0x5e, 0xa5, 0xa3, 0x30, 0xaf, 0x39, 0xba, 0xb0, 0x30, + 0x2a, 0x19, 0xfc, 0xde, 0xfe, 0x80, 0x8f, 0x70, 0xb5, 0xf9, 0xdb, 0xe3, 0x03, 0x1f, 0x81, 0x0d, + 0xba, 0x35, 0xc6, 0xb6, 0xc9, 0xcb, 0xc0, 0x4b, 0xeb, 0xb5, 0x95, 0x32, 0xb9, 0xeb, 0x4c, 0x29, + 0xd5, 0x9b, 0x4b, 0x85, 0x7a, 0x53, 0x29, 0x2f, 0x17, 0xc8, 0x8d, 0x9a, 0xe7, 0x0a, 0xcb, 0x6b, + 0xe5, 0xe6, 0xf9, 0x4a, 0x63, 0xa9, 0xd9, 0x58, 0xaa, 0xd4, 0x9b, 0xb5, 0x55, 0x1c, 0x9d, 0x93, + 0xe0, 0x3b, 0x8f, 0x01, 0xe0, 0x71, 0xde, 0x78, 0x3c, 0x09, 0x52, 0xd8, 0x90, 0xf3, 0x5e, 0xfe, + 0xf4, 0xc9, 0xa4, 0xe8, 0xcd, 0x9a, 0x5e, 0xf7, 0x32, 0xad, 0xe7, 0xb7, 0x7a, 0xf3, 0x4a, 0x30, + 0xe3, 0xba, 0x78, 0xd8, 0x66, 0xe9, 0xf3, 0x7d, 0x3d, 0xd5, 0x14, 0x6f, 0x6a, 0xf8, 0xc1, 0x84, + 0xc8, 0xb5, 0x9c, 0xc1, 0x84, 0xc4, 0xdf, 0x09, 0xdf, 0x27, 0x39, 0xb7, 0x00, 0x94, 0xdc, 0x3e, + 0x78, 0x1b, 0x00, 0x6e, 0x53, 0x18, 0x03, 0x03, 0xda, 0xed, 0x49, 0xcc, 0x1f, 0x1c, 0x14, 0x58, + 0x43, 0x23, 0x4d, 0x0f, 0xbc, 0x11, 0x80, 0x27, 0x26, 0x19, 0x86, 0x98, 0x2f, 0x86, 0x58, 0x22, + 0xf3, 0x27, 0xe4, 0x80, 0x9d, 0x61, 0xde, 0x3b, 0xeb, 0x9e, 0xc3, 0x80, 0xcf, 0x32, 0xcb, 0x67, + 0x83, 0x3b, 0x6e, 0xcb, 0x7b, 0x27, 0x25, 0x86, 0x78, 0x27, 0x8d, 0x3b, 0xc1, 0xfa, 0xbe, 0x17, + 0xce, 0x0a, 0x0f, 0xe7, 0xcd, 0x7e, 0x5c, 0x14, 0x58, 0xf6, 0x1a, 0x93, 0x9c, 0xe7, 0x1c, 0x40, + 0x97, 0x39, 0x40, 0x6f, 0x1d, 0x83, 0x94, 0xf8, 0xef, 0x1f, 0x0d, 0x82, 0x55, 0x9e, 0x03, 0xc7, + 0x94, 0x72, 0xa1, 0x54, 0xab, 0x2e, 0xdf, 0xe7, 0xfd, 0x9a, 0x4b, 0xc1, 0xf7, 0x48, 0x20, 0x43, + 0x07, 0x1e, 0xf8, 0xaa, 0xb0, 0x30, 0x8f, 0x5e, 0x31, 0xf9, 0xcf, 0x21, 0x27, 0x8a, 0x3c, 0x1b, + 0x29, 0x5d, 0x3e, 0x5b, 0x1a, 0xdf, 0x0e, 0x31, 0xf5, 0x13, 0x28, 0xf6, 0x92, 0x05, 0xe8, 0x53, + 0xae, 0x11, 0xda, 0x0e, 0x0b, 0xd0, 0x58, 0xeb, 0xce, 0xfb, 0xc3, 0x2c, 0xc8, 0xca, 0xdc, 0x07, + 0x66, 0x11, 0x98, 0x8d, 0x13, 0xc4, 0xec, 0x6b, 0x12, 0xb3, 0x17, 0xfa, 0x61, 0x11, 0x2b, 0x81, + 0xab, 0xd4, 0x6e, 0x17, 0x75, 0xda, 0x76, 0xcb, 0x7b, 0x0b, 0xa6, 0xb1, 0x5d, 0xb3, 0xb6, 0x90, + 0x69, 0xdb, 0x05, 0xd8, 0x64, 0x0c, 0x4e, 0x04, 0xbf, 0x16, 0x72, 0x9a, 0xc8, 0xf3, 0x3a, 0xc0, + 0x48, 0x19, 0x53, 0x93, 0x7e, 0x25, 0xc4, 0xbc, 0x6f, 0x24, 0x2d, 0x07, 0x3c, 0x42, 0x3e, 0x34, + 0x03, 0xb2, 0x4b, 0x5a, 0xcf, 0x32, 0xcc, 0x5d, 0xf8, 0x70, 0x02, 0x64, 0xd9, 0xb3, 0x48, 0x7b, + 0xae, 0x6c, 0xbe, 0x1a, 0xcc, 0x74, 0x4d, 0xb4, 0xa3, 0x19, 0xfd, 0x9e, 0xe7, 0xfa, 0x01, 0x4f, + 0x14, 0x9e, 0x3c, 0xa8, 0x7d, 0x6b, 0xcb, 0x30, 0xdd, 0xc9, 0x83, 0x1d, 0x96, 0x4f, 0x00, 0x40, + 0xff, 0x57, 0xd5, 0x6d, 0xc4, 0xce, 0xbb, 0x78, 0x62, 0x64, 0x19, 0xa4, 0x2c, 0x6d, 0x1b, 0xb1, + 0xa3, 0x70, 0xe4, 0xbf, 0x3c, 0x07, 0xb2, 0x9b, 0xa6, 0xd1, 0xef, 0x56, 0xda, 0xec, 0x28, 0x9c, + 0x1d, 0x84, 0x1f, 0x92, 0xc0, 0x8c, 0xfb, 0x82, 0x53, 0xcf, 0x7b, 0x67, 0x96, 0x7b, 0x05, 0x52, + 0x82, 0xbb, 0x02, 0xe9, 0x1a, 0x70, 0x44, 0x57, 0x7b, 0x76, 0x16, 0x67, 0xa7, 0x9a, 0x8f, 0x74, + 0x8f, 0xe4, 0x49, 0x9e, 0x93, 0xb1, 0xfc, 0x25, 0x4d, 0x81, 0x67, 0x8d, 0x18, 0x23, 0x3d, 0xcf, + 0x4b, 0xf9, 0x39, 0xa4, 0xde, 0x0a, 0xa6, 0xd8, 0x7b, 0x56, 0xb6, 0xe0, 0x5d, 0x39, 0xb4, 0x24, + 0x56, 0x8c, 0xe2, 0xa4, 0x16, 0x3c, 0x1f, 0x34, 0x9a, 0x92, 0xf8, 0xed, 0xe3, 0xbf, 0x95, 0xc0, + 0x4c, 0x7d, 0xcb, 0xb8, 0x68, 0x3f, 0x16, 0x76, 0xdf, 0x68, 0x98, 0xae, 0x04, 0xd3, 0x3b, 0x03, + 0x10, 0xb9, 0x11, 0x01, 0xd7, 0x9a, 0xbd, 0x59, 0x0a, 0x0b, 0x91, 0x87, 0x30, 0x1f, 0x88, 0x6e, + 0xb7, 0x6d, 0x67, 0x9c, 0x94, 0x8d, 0x37, 0xd0, 0xe7, 0x70, 0xdf, 0x96, 0x71, 0x51, 0xf1, 0xa4, + 0x96, 0x6f, 0x71, 0x5f, 0x2f, 0xa3, 0x8b, 0x22, 0xc1, 0xe8, 0x7a, 0xdf, 0x36, 0xb3, 0x5b, 0x98, + 0xe2, 0x5b, 0x18, 0x0e, 0x76, 0xff, 0xd6, 0xc5, 0x0f, 0xfb, 0x57, 0x92, 0xc4, 0x01, 0xdd, 0x46, + 0xfd, 0xee, 0x7d, 0xa2, 0x0e, 0xff, 0x3e, 0x21, 0xba, 0x71, 0xec, 0xb4, 0x7e, 0xc4, 0xe3, 0x72, + 0x82, 0x7b, 0xb6, 0x23, 0x8b, 0x8b, 0x9f, 0x97, 0x6f, 0xb8, 0x0c, 0xa4, 0x16, 0x34, 0x1d, 0xc1, + 0x77, 0x48, 0x20, 0x5b, 0xdb, 0xd8, 0x20, 0x37, 0x6e, 0x94, 0xfd, 0x2f, 0xd6, 0x3f, 0x05, 0x72, + 0xb6, 0xeb, 0x86, 0x61, 0xad, 0x6a, 0x9d, 0x8e, 0xe3, 0x5d, 0xb6, 0x27, 0x9e, 0xdf, 0x93, 0x0a, + 0x74, 0xf9, 0xc6, 0x14, 0xe4, 0x59, 0xed, 0x3e, 0x9d, 0xe5, 0x3a, 0x30, 0xbb, 0xbe, 0x6b, 0xa1, + 0x1e, 0x4b, 0xc5, 0xaa, 0x4d, 0x29, 0x03, 0xb1, 0xf0, 0x49, 0x21, 0x27, 0xf0, 0x80, 0x0a, 0xc3, + 0xf1, 0x5c, 0x8d, 0xe8, 0xbd, 0xb2, 0x4d, 0x72, 0xaf, 0x79, 0x65, 0x99, 0xc6, 0xde, 0x57, 0x6e, + 0x34, 0x57, 0x2b, 0xd5, 0x6a, 0xb9, 0x94, 0xdb, 0x82, 0x9f, 0x97, 0xc0, 0x0c, 0x1e, 0xd6, 0x6d, + 0x74, 0x6a, 0x2e, 0x3a, 0x73, 0x20, 0x6b, 0x74, 0xf4, 0x5d, 0xd7, 0x35, 0xcd, 0x0e, 0x86, 0xc2, + 0xe9, 0xbf, 0x0a, 0x1f, 0xda, 0x23, 0x6c, 0xf3, 0xd0, 0xe2, 0x8f, 0xd5, 0x86, 0xa6, 0x0f, 0x62, + 0x95, 0x56, 0x06, 0x62, 0x87, 0x60, 0x2a, 0x0d, 0xc5, 0xf4, 0x73, 0x42, 0xc7, 0xfa, 0x46, 0x10, + 0x77, 0x30, 0xef, 0xd0, 0x6d, 0xc2, 0xef, 0x91, 0xf9, 0x08, 0x41, 0xee, 0x39, 0xcf, 0x4a, 0x6a, + 0x0e, 0x48, 0x7d, 0xc7, 0xa8, 0xc5, 0x7f, 0xb1, 0x92, 0xd2, 0xf9, 0x57, 0x94, 0x14, 0x37, 0x42, + 0xbe, 0x9d, 0x5d, 0x58, 0x41, 0xfd, 0xb2, 0xae, 0x0b, 0xbc, 0x0d, 0x80, 0x70, 0xc2, 0x73, 0x67, + 0xc5, 0x0d, 0xe0, 0xb2, 0xb6, 0xd6, 0x53, 0xd7, 0x75, 0x54, 0xee, 0xb4, 0xcc, 0xdd, 0xae, 0xe3, + 0x7f, 0x32, 0xa5, 0xec, 0xfd, 0x20, 0xdf, 0x09, 0xd2, 0x3d, 0x6b, 0x57, 0xa7, 0xb6, 0xd2, 0xac, + 0xc7, 0x11, 0xdd, 0xb7, 0xaa, 0x3a, 0x4e, 0xae, 0xd0, 0x5c, 0xf0, 0x47, 0x09, 0x51, 0xa7, 0x76, + 0x92, 0x97, 0xb2, 0xc6, 0xdf, 0x43, 0x6b, 0x4b, 0xed, 0x39, 0x1e, 0x5a, 0xf8, 0x3f, 0x7c, 0xaf, + 0x90, 0xe7, 0xb9, 0x7f, 0xd9, 0xf1, 0xeb, 0xd4, 0x6f, 0x24, 0xc1, 0x54, 0xc9, 0xb8, 0xd8, 0x21, + 0x98, 0xdf, 0xc4, 0xb9, 0xe3, 0x91, 0xd6, 0x24, 0xdc, 0xd6, 0x0c, 0xf3, 0x41, 0x83, 0xff, 0x49, + 0xf8, 0x06, 0x1b, 0xd2, 0x4a, 0xbb, 0x2a, 0x1f, 0x1e, 0x06, 0x8a, 0x95, 0x67, 0x8f, 0x3e, 0xe8, + 0xb2, 0x9a, 0xa0, 0x7a, 0xc2, 0xf1, 0xb3, 0xb0, 0xef, 0x6b, 0x53, 0xe1, 0x93, 0x12, 0x48, 0x95, + 0x4c, 0xa3, 0x0b, 0x7f, 0x4d, 0x78, 0x63, 0xe2, 0x24, 0x38, 0xdc, 0x36, 0x8d, 0x6e, 0x83, 0xdc, + 0x07, 0xe3, 0x98, 0x00, 0x5c, 0x9c, 0x7c, 0x1b, 0x98, 0xea, 0x1a, 0x3d, 0xcd, 0xd9, 0x67, 0x9a, + 0xdd, 0xf3, 0xda, 0x0e, 0x95, 0xfc, 0x55, 0x96, 0x48, 0x71, 0x92, 0x63, 0x3d, 0x46, 0x38, 0x8a, + 0xd9, 0x84, 0xb9, 0x6a, 0xdf, 0x5b, 0x33, 0x10, 0x0b, 0x7f, 0xc9, 0x0b, 0xec, 0x2b, 0x79, 0x60, + 0xaf, 0x1d, 0xc2, 0x70, 0xd3, 0xef, 0x11, 0x8f, 0x90, 0xbb, 0x10, 0xbf, 0xec, 0x80, 0x7c, 0x17, + 0x07, 0xf2, 0x29, 0xa1, 0x3a, 0xe3, 0xef, 0x30, 0x7f, 0x9d, 0x05, 0xa0, 0xaa, 0xee, 0x68, 0x9b, + 0x74, 0x41, 0xe5, 0x19, 0x7b, 0xc0, 0x23, 0xe6, 0x6e, 0x0f, 0x3e, 0x98, 0xf0, 0x2e, 0x7e, 0x67, + 0x19, 0xac, 0xac, 0x0d, 0x2f, 0xe0, 0xda, 0xe0, 0x96, 0x42, 0x35, 0xd4, 0xfd, 0x96, 0x62, 0xa7, + 0xe7, 0xae, 0xa8, 0x4a, 0x0e, 0x5c, 0x51, 0x35, 0x74, 0x5e, 0xe6, 0x77, 0x71, 0x15, 0xfc, 0x2d, + 0xe1, 0x1b, 0xc9, 0x3c, 0xf4, 0x78, 0x5a, 0xe4, 0x03, 0xea, 0xcd, 0x20, 0x4b, 0x2d, 0xfc, 0xe0, + 0xdd, 0x8c, 0x4a, 0x67, 0xc3, 0x50, 0xec, 0x94, 0x82, 0xd7, 0x7a, 0x08, 0xd1, 0x11, 0x3f, 0xd0, + 0x4f, 0x49, 0xe0, 0xf8, 0xa2, 0x7d, 0xb2, 0x15, 0xb7, 0xe3, 0xbc, 0x66, 0x6d, 0x2d, 0x6b, 0x9d, + 0x0b, 0x3d, 0xf8, 0x6f, 0xc4, 0xae, 0x89, 0xf3, 0xe0, 0x9f, 0x0c, 0x87, 0x3f, 0xef, 0x40, 0x5c, + 0xe7, 0x51, 0xbb, 0xd3, 0xaf, 0x94, 0xe1, 0xd4, 0xfa, 0x4e, 0xe8, 0x32, 0x94, 0x50, 0xd6, 0x2d, + 0x4f, 0xfa, 0xe2, 0xe7, 0x94, 0xa4, 0xb0, 0x1c, 0xf0, 0xd3, 0x0e, 0x8e, 0xe7, 0x38, 0x1c, 0xe7, + 0xf7, 0x45, 0x59, 0xfc, 0x0e, 0xc4, 0x37, 0x91, 0x57, 0x49, 0x49, 0x07, 0x9b, 0xf5, 0xf6, 0xe2, + 0xdc, 0x21, 0x19, 0x80, 0xcc, 0x8a, 0xb1, 0x83, 0x1a, 0x46, 0x2e, 0x81, 0xff, 0x63, 0xfa, 0x1a, + 0x46, 0x2e, 0x09, 0xff, 0x17, 0x00, 0x53, 0xce, 0x39, 0x80, 0xaf, 0x26, 0x41, 0x8e, 0x6e, 0xec, + 0x90, 0x35, 0x39, 0xca, 0x0c, 0x61, 0xb7, 0x37, 0xee, 0x2d, 0x94, 0xb3, 0x3c, 0xa6, 0xbc, 0xaf, + 0xbe, 0xe3, 0x9f, 0x3f, 0x58, 0x99, 0xe0, 0x0d, 0xbd, 0x9f, 0x70, 0xf0, 0xa9, 0x72, 0xf8, 0xdc, + 0x3e, 0x56, 0x2d, 0xf1, 0x77, 0xb5, 0x6f, 0x25, 0xc1, 0xb1, 0x41, 0x22, 0xc8, 0xb6, 0x1b, 0xff, + 0xee, 0xd4, 0xc0, 0x4e, 0xe2, 0x34, 0xb7, 0x43, 0xf7, 0x5e, 0x61, 0x17, 0x29, 0xdf, 0x76, 0x07, + 0x9c, 0x9e, 0x1f, 0xe4, 0xb0, 0x98, 0x13, 0x54, 0x98, 0x9a, 0xe2, 0xe7, 0xf2, 0x6f, 0xd2, 0x47, + 0x09, 0x3a, 0x21, 0x3c, 0x35, 0x1f, 0x10, 0x7e, 0x22, 0xd0, 0x6d, 0x2a, 0xae, 0x41, 0x90, 0x8b, + 0x62, 0x8f, 0xea, 0x06, 0x16, 0x1d, 0x3f, 0xdb, 0xbe, 0x93, 0x04, 0xd3, 0xf4, 0xc0, 0x43, 0x41, + 0xd7, 0x07, 0xde, 0x3b, 0x1a, 0x3c, 0xb1, 0x02, 0x7f, 0x5b, 0xd8, 0xaf, 0xdf, 0x69, 0x95, 0x53, + 0x76, 0x6c, 0xaf, 0x9d, 0x88, 0x2d, 0xf0, 0x8c, 0x24, 0x68, 0x22, 0x57, 0xb2, 0xce, 0x60, 0xcd, + 0xbb, 0x6a, 0xa2, 0x1d, 0x0d, 0x5d, 0x84, 0x57, 0x04, 0x4c, 0x41, 0xe1, 0x47, 0x84, 0x0f, 0x24, + 0x7b, 0x8a, 0xf4, 0xe1, 0xf1, 0x1d, 0x60, 0x46, 0x77, 0x13, 0xed, 0x59, 0xde, 0xa4, 0x23, 0xa2, + 0xa7, 0x18, 0xc5, 0x9b, 0x5c, 0x70, 0x96, 0xe7, 0x4f, 0x45, 0xfc, 0x8c, 0xfd, 0x1f, 0x19, 0x30, + 0xb5, 0xd6, 0xe9, 0x75, 0x75, 0x3c, 0x29, 0xfd, 0xff, 0x92, 0x73, 0x3f, 0xeb, 0xcb, 0xb9, 0x9b, + 0xca, 0x5e, 0xd7, 0x47, 0xa6, 0x7d, 0x25, 0x06, 0x0d, 0x0c, 0xbf, 0x1d, 0x13, 0x7e, 0x4e, 0x12, + 0x75, 0x8f, 0xb1, 0x2b, 0x0d, 0xbe, 0xb8, 0xb4, 0x02, 0xa6, 0xba, 0x5a, 0xcb, 0xea, 0x9b, 0x8e, + 0x6f, 0xcc, 0x8d, 0x62, 0xa5, 0xac, 0xd2, 0x5c, 0x8a, 0x93, 0x1d, 0xaa, 0x20, 0xcb, 0x22, 0xf7, + 0x2c, 0x07, 0x32, 0x11, 0x4a, 0xba, 0xab, 0x18, 0xc7, 0x41, 0x46, 0x35, 0x2d, 0xad, 0x67, 0x5f, + 0x03, 0xcb, 0x42, 0x58, 0x29, 0xd2, 0x7f, 0x6b, 0xa6, 0xce, 0x96, 0x9e, 0xdd, 0x08, 0xf8, 0x79, + 0x21, 0x7f, 0x9c, 0xe0, 0x96, 0x87, 0x83, 0xfc, 0xec, 0x18, 0x13, 0xd1, 0xcb, 0xc1, 0xf3, 0x14, + 0xf2, 0xa2, 0x65, 0x65, 0xa5, 0xd2, 0x68, 0x96, 0x5f, 0x5d, 0x2c, 0x97, 0x4b, 0xe5, 0x52, 0xae, + 0x0d, 0xbf, 0xee, 0x9d, 0xf1, 0xf3, 0x23, 0x01, 0xe3, 0xa2, 0x3b, 0x12, 0x38, 0x11, 0xf0, 0x43, + 0xc2, 0xde, 0x38, 0x4e, 0xc3, 0x47, 0xcc, 0xf5, 0x87, 0xad, 0x97, 0x7c, 0x41, 0xc8, 0xcd, 0x66, + 0x54, 0x0d, 0x07, 0xc8, 0xdc, 0xa7, 0x5f, 0x05, 0xd2, 0x64, 0xea, 0x0d, 0x7f, 0x9d, 0x5c, 0xbe, + 0xd9, 0xd5, 0xd5, 0x16, 0x82, 0xdb, 0x21, 0x9e, 0x1d, 0x58, 0xc7, 0xb9, 0xdd, 0x67, 0x07, 0x58, + 0x50, 0x3e, 0x05, 0xd2, 0xe4, 0x2f, 0xd3, 0xf8, 0xc7, 0x86, 0x4d, 0xf7, 0x15, 0x9a, 0x84, 0xf7, + 0xe0, 0x0f, 0x5c, 0x93, 0xa1, 0xab, 0x04, 0x8c, 0x4c, 0xff, 0xf7, 0xf2, 0x7d, 0x68, 0x0a, 0x37, + 0x0a, 0x89, 0x5d, 0x35, 0x1c, 0x44, 0x51, 0xfc, 0x7a, 0xf2, 0xeb, 0x29, 0x90, 0xae, 0x77, 0x75, + 0xcd, 0x82, 0xef, 0x4e, 0x46, 0x82, 0x99, 0xa9, 0x76, 0x36, 0x91, 0x0f, 0x66, 0x0a, 0xfe, 0xa6, + 0xd0, 0x24, 0xee, 0x42, 0x66, 0x4a, 0x60, 0x21, 0xb3, 0x81, 0xee, 0xb7, 0xb8, 0x85, 0x4c, 0xf9, + 0x36, 0x90, 0xc2, 0x09, 0xd9, 0x32, 0xe8, 0xb5, 0x43, 0x58, 0x4a, 0x9a, 0x95, 0x67, 0x4d, 0xca, + 0xaf, 0x10, 0x4e, 0xe2, 0x2c, 0x27, 0x6f, 0x02, 0x29, 0x1c, 0xc2, 0xb3, 0x9e, 0xf9, 0x5a, 0xa3, + 0x51, 0x5b, 0xc9, 0x1d, 0x92, 0xb3, 0x40, 0x6a, 0xd4, 0x56, 0x73, 0x09, 0x79, 0x1a, 0xa4, 0x2b, + 0xd5, 0x6a, 0x59, 0xc9, 0x25, 0xf1, 0xdf, 0x46, 0xa5, 0xb1, 0x5c, 0xce, 0x49, 0xf0, 0x37, 0x84, + 0x87, 0x5e, 0xbe, 0xee, 0x38, 0xc5, 0x4b, 0x6c, 0x10, 0xf6, 0xa7, 0x27, 0x7e, 0xe1, 0xfa, 0x8f, + 0x12, 0x48, 0xaf, 0x20, 0x73, 0x13, 0xc1, 0xd7, 0x85, 0x58, 0x0b, 0xdc, 0xd0, 0xcc, 0x9e, 0x35, + 0xcf, 0x71, 0x88, 0x8b, 0x93, 0xaf, 0x01, 0x47, 0x7a, 0xa8, 0x65, 0x74, 0xda, 0x76, 0x22, 0x76, + 0xa7, 0x18, 0x17, 0xc9, 0x3f, 0x67, 0x2a, 0x00, 0x19, 0x21, 0x34, 0x92, 0x05, 0xbd, 0x30, 0xc0, + 0x0c, 0xab, 0x35, 0x7e, 0x60, 0xfe, 0xaf, 0x84, 0x33, 0x75, 0x77, 0xe1, 0xbb, 0x84, 0x17, 0x69, + 0x6f, 0x00, 0x19, 0x22, 0xa6, 0xb6, 0xbd, 0x32, 0x5c, 0x1f, 0xb3, 0x34, 0xf2, 0x3c, 0xb8, 0xac, + 0x47, 0xde, 0x71, 0x44, 0x6d, 0xdc, 0x75, 0x95, 0x91, 0x4a, 0x61, 0x6f, 0x72, 0xf8, 0xc7, 0x5e, + 0x00, 0xef, 0xe0, 0x01, 0xbc, 0x6e, 0x08, 0x2b, 0x71, 0x83, 0xfc, 0xdf, 0x9a, 0xc1, 0xcd, 0xa8, + 0xeb, 0x86, 0xb3, 0xb8, 0x68, 0x87, 0xf1, 0xb7, 0x2d, 0x6b, 0x5b, 0x27, 0xdf, 0x98, 0xdf, 0x8a, + 0x1d, 0x96, 0xf3, 0x20, 0xab, 0x76, 0x76, 0xc9, 0xa7, 0x54, 0x40, 0xab, 0xed, 0x44, 0xf0, 0x3d, + 0x0e, 0xf2, 0x77, 0x73, 0xc8, 0xbf, 0x44, 0x8c, 0xdc, 0xf8, 0x81, 0xff, 0x9b, 0x0c, 0x48, 0xaf, + 0xaa, 0x3d, 0x0b, 0xc1, 0x6f, 0x4a, 0xa2, 0xc8, 0x5f, 0x07, 0x66, 0x37, 0x8c, 0x56, 0xbf, 0x87, + 0xda, 0x7c, 0xa7, 0x1c, 0x88, 0x8d, 0x02, 0x73, 0xf9, 0x14, 0xc8, 0xd9, 0x91, 0xac, 0x58, 0x7b, + 0xb5, 0x7e, 0x4f, 0x3c, 0x7d, 0x13, 0x76, 0x55, 0x35, 0xad, 0xda, 0x06, 0x89, 0x73, 0x2e, 0x2f, + 0xf0, 0x46, 0x72, 0xd0, 0x67, 0x02, 0xa0, 0xcf, 0xfa, 0x43, 0x3f, 0x25, 0x00, 0xbd, 0x5c, 0x00, + 0x53, 0x1b, 0x9a, 0x8e, 0x48, 0x86, 0xe9, 0x21, 0xd7, 0xde, 0xb1, 0xed, 0x09, 0xcc, 0x7b, 0x67, + 0x4c, 0x5a, 0xd0, 0x74, 0xa4, 0x38, 0xd9, 0xe0, 0x32, 0xdd, 0xec, 0x1f, 0xf6, 0xac, 0x30, 0x8e, + 0x6b, 0xab, 0x96, 0x4a, 0x58, 0x7f, 0x58, 0x21, 0xff, 0xf9, 0xbd, 0x23, 0x69, 0x70, 0xef, 0xe8, + 0x4d, 0x52, 0x38, 0xfd, 0x67, 0x93, 0xe6, 0xd3, 0x7f, 0xd6, 0x6d, 0x38, 0xa8, 0xeb, 0x97, 0x13, + 0xc6, 0x30, 0xb4, 0x54, 0x13, 0x59, 0xab, 0xde, 0xed, 0x99, 0xb4, 0xc2, 0x47, 0x92, 0x1d, 0xef, + 0x5e, 0x5d, 0xdd, 0x46, 0xa4, 0xb2, 0x22, 0xfe, 0xc6, 0xf6, 0x38, 0xf7, 0xc4, 0xbb, 0xda, 0x36, + 0x1d, 0xb5, 0xb6, 0x1d, 0xd6, 0xc6, 0xf8, 0x3b, 0xdd, 0xfb, 0x53, 0x40, 0x2a, 0xf6, 0xad, 0x4b, + 0x5a, 0xd9, 0xfe, 0xa3, 0xf0, 0xe6, 0x17, 0xd3, 0x5e, 0xbe, 0x77, 0x02, 0x4f, 0x48, 0xd7, 0x86, + 0x94, 0x12, 0xb1, 0x4d, 0x36, 0xbf, 0xb6, 0x4d, 0xe4, 0x24, 0xad, 0xed, 0x87, 0x60, 0xec, 0xdf, + 0x0e, 0x87, 0x54, 0x19, 0x79, 0x14, 0x83, 0x13, 0xb6, 0x17, 0x05, 0x52, 0xee, 0xba, 0xd2, 0x43, + 0xc2, 0x9e, 0x40, 0x94, 0x3f, 0x81, 0x4e, 0x01, 0xe1, 0x4c, 0x25, 0xb1, 0x4b, 0x21, 0x03, 0xaa, + 0x8d, 0x1f, 0x99, 0xef, 0x79, 0x57, 0x0f, 0x0a, 0xfb, 0xc6, 0x86, 0x5f, 0xb6, 0x0f, 0x5c, 0x61, + 0xa6, 0xcd, 0x1e, 0xb1, 0xa8, 0x10, 0x8e, 0xdf, 0x62, 0xeb, 0xcf, 0x81, 0x15, 0xc7, 0xcf, 0xf1, + 0xef, 0xba, 0x07, 0xab, 0x3e, 0x9a, 0x08, 0xf1, 0x1e, 0xae, 0xc5, 0x3b, 0x10, 0x38, 0xe1, 0x30, + 0x4b, 0x09, 0x9c, 0xa3, 0x41, 0x2a, 0x94, 0xa3, 0x01, 0xef, 0x28, 0x2c, 0xd0, 0x8f, 0x02, 0x8f, + 0x6e, 0x45, 0x35, 0x4b, 0x0c, 0xd3, 0xc3, 0x0e, 0xe8, 0x35, 0xd7, 0xbf, 0xe3, 0x2f, 0x2b, 0x0c, + 0xf3, 0x80, 0xb4, 0x9f, 0x55, 0x12, 0xe2, 0xaa, 0x7b, 0xda, 0xf4, 0x88, 0xef, 0x31, 0x14, 0xbb, + 0xea, 0x7e, 0x44, 0xd5, 0xf1, 0x73, 0xfe, 0x83, 0xf4, 0x05, 0x82, 0x05, 0x0d, 0xe9, 0xed, 0x1e, + 0x34, 0xf7, 0x3f, 0xf0, 0x9c, 0x06, 0x99, 0x0d, 0x52, 0x98, 0x73, 0x19, 0x90, 0xcf, 0x53, 0x18, + 0x2c, 0x19, 0x7c, 0xbf, 0xf0, 0xb9, 0x53, 0xb6, 0x90, 0x61, 0x53, 0x1b, 0x09, 0x4c, 0x62, 0x07, + 0x4d, 0x83, 0x6b, 0x8e, 0x1f, 0xa5, 0x47, 0x24, 0x70, 0x98, 0x5d, 0x12, 0x58, 0xd0, 0xb5, 0xcd, + 0x8e, 0xf7, 0x1c, 0xce, 0xd8, 0x3d, 0x44, 0x7e, 0x29, 0x48, 0xab, 0xb8, 0x34, 0xe6, 0x4e, 0x05, + 0x87, 0x6a, 0x39, 0x52, 0x9f, 0x42, 0x13, 0xc2, 0x0f, 0x0b, 0x6f, 0xf5, 0xb9, 0x82, 0x6d, 0xd3, + 0x1c, 0x09, 0x5c, 0x62, 0xdb, 0x7a, 0x23, 0x2b, 0x8f, 0x1f, 0xb1, 0x5f, 0x4a, 0xd1, 0xab, 0x82, + 0xdc, 0xbe, 0xf5, 0x8c, 0xf0, 0x40, 0xb6, 0x06, 0x66, 0x08, 0x46, 0x34, 0x23, 0x9b, 0x00, 0x04, + 0xb4, 0xd0, 0x11, 0x4a, 0x3a, 0xa7, 0x9c, 0x77, 0xf2, 0x2a, 0xde, 0x72, 0xe0, 0x79, 0x00, 0xdc, + 0x4f, 0xde, 0x1e, 0x9c, 0xf0, 0xeb, 0xc1, 0x49, 0xb1, 0x1e, 0xfc, 0x11, 0xe1, 0xe3, 0x31, 0xc3, + 0xc9, 0xde, 0xbf, 0x58, 0x88, 0x9d, 0x8d, 0x18, 0x5d, 0xfb, 0x44, 0x8e, 0xc4, 0x0c, 0xdc, 0x71, + 0xfc, 0xee, 0x48, 0x0c, 0x1c, 0x6f, 0x3f, 0x97, 0x06, 0xfa, 0xf9, 0x3e, 0x0c, 0x9a, 0x27, 0xc6, + 0x80, 0x76, 0xd4, 0xb5, 0xca, 0x41, 0x2a, 0x29, 0x9c, 0x65, 0x13, 0x16, 0xf6, 0x83, 0xbb, 0x8d, + 0xf9, 0x3b, 0x29, 0x6a, 0xe0, 0xb0, 0x83, 0xaf, 0x5f, 0x4b, 0x45, 0xa1, 0xbf, 0xef, 0x01, 0x29, + 0xcb, 0x7e, 0xcf, 0x73, 0xf8, 0xcc, 0xc1, 0xad, 0xd2, 0xd1, 0x0e, 0x78, 0xc2, 0xbf, 0x74, 0x48, + 0x21, 0x39, 0xe5, 0x53, 0xe0, 0xe8, 0xba, 0xda, 0xba, 0xb0, 0x69, 0x1a, 0xfd, 0x4e, 0xbb, 0x68, + 0xe8, 0x86, 0x49, 0x67, 0x85, 0x4b, 0x87, 0x94, 0xc1, 0x0f, 0xf2, 0x19, 0x7b, 0xb4, 0x48, 0x8f, + 0x1a, 0x2d, 0x96, 0x0e, 0xb1, 0xf1, 0x42, 0xbe, 0xc9, 0x51, 0x25, 0x99, 0x40, 0x55, 0xb2, 0x74, + 0xc8, 0x56, 0x26, 0x72, 0x09, 0x4c, 0xb5, 0xb5, 0x1d, 0xb2, 0xd1, 0x43, 0x56, 0xe4, 0x46, 0xf9, + 0xd2, 0x97, 0xb4, 0x1d, 0xba, 0x2d, 0xb4, 0x74, 0x48, 0x71, 0x72, 0xca, 0x8b, 0x60, 0x9a, 0x2c, + 0xaa, 0x91, 0x62, 0xa6, 0x42, 0xf9, 0xc9, 0x2f, 0x1d, 0x52, 0xdc, 0xbc, 0x78, 0xc0, 0x49, 0x11, + 0x0f, 0xd4, 0xbb, 0xed, 0xcd, 0xaa, 0x44, 0xa8, 0xcd, 0x2a, 0xcc, 0x0b, 0xba, 0x5d, 0x75, 0x1c, + 0xa4, 0x5b, 0x84, 0xc3, 0x49, 0xc6, 0x61, 0x1a, 0x94, 0xef, 0x00, 0xa9, 0x6d, 0xd5, 0xb4, 0x67, + 0x26, 0xd7, 0x8d, 0x2e, 0x77, 0x45, 0x35, 0x2f, 0x60, 0x04, 0x71, 0xae, 0xf9, 0x2c, 0x48, 0x13, + 0xc6, 0x39, 0x7f, 0xe0, 0x93, 0x12, 0x38, 0x86, 0x71, 0x2f, 0x1a, 0x9d, 0x1d, 0x64, 0x5a, 0x0d, + 0xc3, 0x76, 0xd3, 0x6d, 0x45, 0x21, 0x73, 0xbc, 0x4b, 0x9a, 0xb4, 0xc7, 0x25, 0xed, 0x8f, 0x85, + 0x0f, 0x5b, 0xbb, 0x12, 0x3a, 0x48, 0xa9, 0xff, 0x7c, 0x48, 0xe7, 0xde, 0xbe, 0xb6, 0x83, 0x21, + 0xb5, 0x86, 0xd8, 0x1d, 0x6b, 0xc2, 0xe4, 0x4d, 0xe0, 0xa9, 0xf2, 0x14, 0x98, 0xc3, 0x84, 0x50, + 0x67, 0xcd, 0xf2, 0xfd, 0x5a, 0xcf, 0xd2, 0x3a, 0x9b, 0xcc, 0x15, 0xf3, 0x0f, 0x12, 0x51, 0xc0, + 0x7a, 0x3d, 0x38, 0x4a, 0x87, 0x92, 0xa2, 0x93, 0x9f, 0x62, 0x3b, 0x18, 0xbd, 0xc7, 0x55, 0x3f, + 0x35, 0xc2, 0x55, 0x3f, 0x1d, 0x6e, 0xc0, 0xf9, 0x1d, 0xaf, 0xfc, 0xac, 0xf2, 0xf2, 0x73, 0xbb, + 0x0f, 0x40, 0xc3, 0xf8, 0x12, 0x89, 0x59, 0xf1, 0xeb, 0x8e, 0xa4, 0xd4, 0x39, 0x49, 0xb9, 0x7b, + 0x7c, 0x42, 0xe2, 0x97, 0x96, 0xc7, 0x52, 0xe0, 0x79, 0x2e, 0x31, 0x55, 0x74, 0x91, 0x09, 0xca, + 0x57, 0x23, 0x11, 0x94, 0x9b, 0xdc, 0xa7, 0x7d, 0x46, 0xcc, 0xef, 0xec, 0x74, 0x71, 0x4b, 0xcc, + 0x1f, 0x0a, 0xbb, 0x18, 0x0f, 0x02, 0xe5, 0xf0, 0xc6, 0x47, 0x58, 0x8e, 0x83, 0x0c, 0xd5, 0x30, + 0xf6, 0x7b, 0xc5, 0x34, 0x14, 0x52, 0xdd, 0x88, 0x39, 0x26, 0x8b, 0xd2, 0x36, 0x01, 0xf9, 0x61, + 0x73, 0xcd, 0x46, 0xdf, 0xec, 0x54, 0x3a, 0x96, 0x01, 0xdf, 0x10, 0x89, 0xe0, 0x38, 0xce, 0x1e, + 0xd2, 0x38, 0xce, 0x1e, 0x63, 0xcd, 0x3c, 0xed, 0x16, 0x1c, 0xc8, 0xcc, 0xd3, 0xa7, 0xf2, 0xf8, + 0xf1, 0xfb, 0x94, 0x04, 0x8e, 0xb3, 0x39, 0xce, 0x3c, 0x6f, 0xc2, 0x79, 0xcf, 0xdf, 0x8f, 0x0f, + 0xe4, 0x31, 0xdb, 0x8e, 0xa1, 0x03, 0x04, 0x0d, 0xf0, 0x4e, 0xc0, 0x81, 0xf7, 0xdb, 0x72, 0xb3, + 0xb0, 0x01, 0x0a, 0x23, 0x41, 0x4a, 0xec, 0x5a, 0xdb, 0x10, 0x64, 0xc4, 0x8f, 0xd9, 0xdb, 0x25, + 0x90, 0x61, 0xef, 0x03, 0xac, 0xc5, 0xb2, 0x43, 0x08, 0x1f, 0x09, 0xb9, 0x32, 0x1d, 0xfa, 0x62, + 0xfe, 0xf8, 0xd6, 0xa4, 0x0f, 0xe6, 0xe6, 0x7d, 0xf8, 0x2e, 0x89, 0xad, 0x97, 0x2c, 0xab, 0x16, + 0xba, 0x1f, 0xbe, 0x45, 0x02, 0xd9, 0x3a, 0xb2, 0xb0, 0x66, 0x12, 0xc7, 0xc8, 0x7f, 0x99, 0x54, + 0xf6, 0xcc, 0xdd, 0xa6, 0xe9, 0x6c, 0x2c, 0xac, 0x8e, 0x23, 0x74, 0xe5, 0x19, 0x4d, 0x93, 0xd6, + 0x71, 0x41, 0x95, 0xc7, 0x8f, 0xcd, 0xef, 0x9f, 0x00, 0xd3, 0x84, 0x0c, 0x02, 0xc7, 0x97, 0x3d, + 0xd0, 0xfc, 0x62, 0x22, 0x16, 0x6c, 0xf0, 0xf0, 0x85, 0xe7, 0x5b, 0x3d, 0xf6, 0x2c, 0xc0, 0x8b, + 0xc4, 0xa6, 0x69, 0x3d, 0x85, 0xe6, 0x0a, 0xf1, 0xaa, 0x92, 0xd3, 0xac, 0x48, 0x91, 0x15, 0x7b, + 0xee, 0x62, 0x54, 0xdd, 0x13, 0x78, 0x2c, 0x45, 0x02, 0x53, 0x75, 0x3c, 0xdd, 0xc0, 0x63, 0xca, + 0xf9, 0xfd, 0x43, 0x39, 0x7c, 0xb0, 0x0a, 0xd9, 0xd1, 0x6c, 0x8e, 0x44, 0x37, 0x44, 0x85, 0xe8, + 0x68, 0x41, 0x95, 0xc7, 0x8f, 0xc7, 0x6f, 0x50, 0x3c, 0x88, 0x2c, 0xc3, 0x5f, 0x91, 0x80, 0xb4, + 0x88, 0xac, 0x88, 0x5c, 0xbb, 0x45, 0xdd, 0x84, 0xf9, 0xa1, 0x2b, 0xf0, 0x34, 0x2f, 0xc7, 0x30, + 0x42, 0x73, 0x7e, 0x11, 0x45, 0xd3, 0x81, 0xc4, 0x8e, 0xf1, 0x0a, 0x11, 0x10, 0x3f, 0x6a, 0x8f, + 0x52, 0xd4, 0xe8, 0x0a, 0xd6, 0xbf, 0x8f, 0x40, 0x23, 0x4e, 0xd6, 0x78, 0xb7, 0x19, 0x48, 0xca, + 0x38, 0xa8, 0xfe, 0x36, 0xac, 0xf2, 0x89, 0x38, 0x01, 0x01, 0xdc, 0xd9, 0xb7, 0x50, 0xeb, 0x02, + 0x6a, 0xc3, 0xd7, 0xec, 0x1f, 0xba, 0x39, 0x90, 0x6d, 0xd1, 0xd2, 0x08, 0x78, 0x53, 0x8a, 0x1d, + 0x0c, 0xf1, 0x02, 0x36, 0xaf, 0x88, 0x68, 0xf6, 0x09, 0xbe, 0x80, 0x2d, 0x50, 0x7d, 0xfc, 0xc8, + 0x7c, 0x92, 0x1a, 0x19, 0x95, 0x96, 0xd1, 0x81, 0x3f, 0xb5, 0x7f, 0x58, 0xae, 0x04, 0xd3, 0x5a, + 0xcb, 0xe8, 0x54, 0xb6, 0xd5, 0x4d, 0x7b, 0x19, 0xd5, 0x8d, 0xb0, 0xbf, 0x96, 0xb7, 0x8d, 0xd7, + 0x6a, 0x64, 0x3d, 0x84, 0x7d, 0x25, 0x11, 0xe3, 0x1a, 0x13, 0x98, 0xf4, 0x83, 0x32, 0x26, 0x86, + 0xd4, 0x1d, 0x3f, 0x64, 0x4f, 0xb8, 0xbb, 0xe6, 0x54, 0x15, 0x5e, 0x12, 0x2b, 0x19, 0xe3, 0x0c, + 0x67, 0xde, 0x56, 0x1c, 0xc8, 0x70, 0x16, 0x40, 0x40, 0xfc, 0x38, 0x3e, 0xe4, 0xe2, 0x18, 0xfb, + 0x3a, 0xc6, 0x3e, 0xd0, 0x89, 0xce, 0x3c, 0x1c, 0x13, 0x9d, 0x83, 0x31, 0x11, 0xbf, 0xc0, 0x6e, + 0x83, 0x61, 0x16, 0x0f, 0xfc, 0x77, 0x51, 0x80, 0x73, 0xfb, 0x38, 0x9b, 0x62, 0x74, 0x4b, 0x2c, + 0xc4, 0xab, 0x56, 0x7b, 0x38, 0x88, 0x4b, 0x99, 0xe0, 0xdb, 0x62, 0x22, 0xf5, 0xc7, 0x0f, 0xe0, + 0x67, 0x67, 0xd8, 0x64, 0x9a, 0xdc, 0x33, 0xf8, 0xb3, 0x74, 0x9c, 0xab, 0xaa, 0xdb, 0x28, 0xa2, + 0x75, 0x0e, 0x72, 0x92, 0x41, 0x72, 0x4f, 0x32, 0x84, 0x1d, 0xbf, 0xe8, 0xd6, 0x2c, 0x25, 0x69, + 0xd2, 0xe3, 0x57, 0x40, 0xdd, 0x13, 0x78, 0x94, 0x35, 0x05, 0x8e, 0x52, 0x87, 0xcc, 0x42, 0xa7, + 0xcd, 0x5c, 0xc3, 0xff, 0x26, 0x12, 0x6f, 0x91, 0x7d, 0xdc, 0xa5, 0xb5, 0xc7, 0x79, 0x9c, 0x3f, + 0x84, 0x92, 0x1e, 0xbc, 0x17, 0x6f, 0x9e, 0x3a, 0xa2, 0x93, 0xed, 0xe2, 0x4c, 0xa8, 0xbb, 0xf1, + 0x9c, 0x7c, 0xfc, 0xb3, 0x08, 0xa3, 0xb7, 0x78, 0x48, 0x11, 0x03, 0x8c, 0x8b, 0xd9, 0xc7, 0x36, + 0xc4, 0x26, 0x8f, 0x00, 0x75, 0xff, 0x32, 0x4c, 0xa3, 0xbd, 0x57, 0x13, 0x86, 0x1c, 0x7c, 0x9d, + 0x0b, 0x25, 0x0f, 0xca, 0x34, 0x1a, 0x45, 0x40, 0xfc, 0x38, 0x3e, 0x99, 0x66, 0x8b, 0xd4, 0x64, + 0xde, 0x00, 0xbf, 0x91, 0x8c, 0x5d, 0x79, 0x8b, 0x5f, 0xc6, 0xeb, 0xd2, 0x15, 0xac, 0xbd, 0xc3, + 0xcc, 0xce, 0x83, 0x8a, 0x8b, 0x9f, 0xdb, 0xcf, 0x26, 0xc9, 0xba, 0xca, 0x79, 0xad, 0x6d, 0x6d, + 0x45, 0xb4, 0x3a, 0x79, 0x11, 0x97, 0x65, 0xdf, 0x6a, 0x47, 0x02, 0xf0, 0x07, 0x89, 0x50, 0x3e, + 0x77, 0x0e, 0x4b, 0x08, 0x59, 0x3e, 0x2c, 0x0e, 0xe1, 0x29, 0x17, 0x58, 0xde, 0x04, 0x25, 0xfa, + 0x9c, 0xd6, 0x46, 0xc6, 0x25, 0x28, 0xd1, 0x84, 0xae, 0xe8, 0x24, 0x3a, 0xa8, 0xb8, 0x7f, 0xa1, + 0x12, 0xed, 0xb0, 0x24, 0x22, 0x89, 0x0e, 0x2c, 0x6f, 0x02, 0xce, 0xfb, 0x80, 0xd9, 0xd7, 0xcb, + 0x5a, 0xe7, 0x02, 0x7c, 0x53, 0xda, 0xbe, 0x4f, 0xef, 0xbc, 0x66, 0x6d, 0x31, 0xdf, 0x9c, 0x37, + 0x08, 0xdf, 0xbc, 0x31, 0x86, 0xff, 0x0d, 0xff, 0x40, 0x7f, 0x7a, 0xf0, 0x81, 0x7e, 0x61, 0x43, + 0x31, 0x9c, 0xeb, 0xb0, 0xc7, 0x8d, 0x3c, 0x23, 0xe6, 0x46, 0xfe, 0xdd, 0x70, 0xae, 0x83, 0x98, + 0x9b, 0xf9, 0x41, 0x4e, 0x86, 0x36, 0xf3, 0xbc, 0x8d, 0x97, 0x06, 0x1a, 0xef, 0xd8, 0x0d, 0xa9, + 0x88, 0xdd, 0x0a, 0x45, 0x48, 0x9f, 0xc0, 0x5a, 0x73, 0x1a, 0x5c, 0x66, 0x9f, 0x91, 0xe8, 0x76, + 0x91, 0x6a, 0xaa, 0x9d, 0x16, 0x82, 0x4f, 0x24, 0xa3, 0x30, 0x04, 0x17, 0xc0, 0x94, 0xd6, 0x32, + 0x3a, 0x75, 0xed, 0xf5, 0xf6, 0xed, 0x2e, 0xa7, 0x02, 0x6d, 0x41, 0xc2, 0x91, 0x0a, 0xcb, 0xa1, + 0x38, 0x79, 0xe5, 0x0a, 0x98, 0x6e, 0xa9, 0x66, 0xbb, 0xee, 0xb9, 0xef, 0xfa, 0x25, 0xa3, 0x0b, + 0x2a, 0xda, 0x59, 0x14, 0x37, 0xb7, 0x5c, 0xe3, 0x99, 0x98, 0x19, 0xf0, 0x37, 0xf0, 0x2d, 0xac, + 0xe4, 0x66, 0xe2, 0x78, 0xce, 0x3f, 0x5f, 0x9b, 0x1d, 0x7c, 0xbe, 0x56, 0xfc, 0x71, 0x4b, 0x57, + 0x24, 0xf6, 0xa0, 0x31, 0xc1, 0xc7, 0x2d, 0xc5, 0xa9, 0x98, 0xc0, 0xec, 0x24, 0x03, 0x8e, 0x50, + 0xf7, 0x15, 0xfb, 0x0d, 0xa7, 0x9f, 0x23, 0xf7, 0xb7, 0x59, 0x67, 0xd1, 0x2e, 0xac, 0xef, 0x7f, + 0x94, 0xca, 0x01, 0xe9, 0x02, 0xda, 0x65, 0xfd, 0x1d, 0xff, 0x0d, 0xbb, 0x17, 0xe2, 0x3c, 0xe7, + 0x43, 0x69, 0x9a, 0xf4, 0x5e, 0x48, 0x70, 0xf5, 0xf1, 0xe3, 0xf3, 0x30, 0x7b, 0x47, 0x6f, 0x67, + 0xff, 0x50, 0x78, 0x5f, 0xf4, 0x92, 0x44, 0x5f, 0xf4, 0x0a, 0xb9, 0x80, 0x24, 0xf0, 0xa2, 0x5e, + 0x6c, 0x0b, 0x48, 0x91, 0x3d, 0xa1, 0x37, 0x0e, 0x4e, 0xef, 0xcc, 0xb2, 0x7e, 0x34, 0x6f, 0x18, + 0x17, 0xc8, 0xda, 0xe8, 0xcf, 0x4a, 0x20, 0xbd, 0x80, 0xac, 0xd6, 0x56, 0x44, 0xdd, 0xa8, 0x6f, + 0xea, 0x76, 0x37, 0xda, 0x73, 0x3f, 0xe5, 0x68, 0x43, 0xcf, 0x26, 0x2b, 0x4f, 0x48, 0x9a, 0xf4, + 0x49, 0xb0, 0xc0, 0xda, 0xe3, 0x07, 0xe7, 0x07, 0x12, 0x98, 0x75, 0x96, 0x81, 0x28, 0x26, 0x3f, + 0x7f, 0xc9, 0x2d, 0xee, 0xc1, 0xaf, 0x86, 0xf3, 0xeb, 0x74, 0x78, 0xca, 0xb7, 0x2c, 0xe6, 0xd5, + 0xb7, 0x10, 0x1e, 0x9f, 0x62, 0x04, 0x4e, 0x60, 0x9a, 0x2b, 0x81, 0x29, 0x42, 0x50, 0x49, 0xdb, + 0x81, 0x5f, 0x1c, 0x5c, 0x8d, 0x7b, 0x20, 0x92, 0xd5, 0xb8, 0x3b, 0xf8, 0xd5, 0x38, 0xc1, 0x73, + 0x54, 0xf6, 0x62, 0x5c, 0xc8, 0x6d, 0x14, 0x9c, 0x3f, 0xf2, 0xb5, 0xb8, 0x10, 0xdb, 0x28, 0x23, + 0xea, 0x8f, 0x1f, 0xd1, 0x8f, 0x5e, 0xc3, 0x94, 0x6d, 0x49, 0xb5, 0x54, 0x72, 0x47, 0xee, 0x03, + 0x32, 0x48, 0x9d, 0xc3, 0x7f, 0xbe, 0xe1, 0x5e, 0x67, 0xf1, 0x40, 0x04, 0xde, 0x38, 0x77, 0x81, + 0x14, 0xb9, 0xb2, 0x37, 0x35, 0x70, 0xee, 0x6f, 0x28, 0xac, 0x8c, 0x98, 0x3c, 0x26, 0x44, 0x21, + 0xf9, 0xc2, 0x9e, 0x98, 0xe0, 0x8a, 0x08, 0xbe, 0xb2, 0x22, 0xdc, 0xab, 0xfb, 0xc7, 0x41, 0x06, + 0x97, 0xeb, 0xcc, 0xbc, 0x58, 0x28, 0xcc, 0x62, 0xba, 0x00, 0x6d, 0x13, 0x78, 0x4f, 0xc6, 0x7d, + 0xd1, 0xf4, 0x5d, 0x11, 0xc0, 0xeb, 0xc3, 0x96, 0x7d, 0xc3, 0xfe, 0xe9, 0xfd, 0xc0, 0x1e, 0xe1, + 0x63, 0xfb, 0x63, 0xc3, 0x7b, 0x40, 0x4f, 0xed, 0x3f, 0x24, 0x39, 0x4f, 0xed, 0xdf, 0x17, 0x25, + 0xba, 0x29, 0x4e, 0xe8, 0xf7, 0x85, 0x4e, 0x84, 0xf7, 0x96, 0x8c, 0x8d, 0xce, 0x01, 0x5d, 0x60, + 0xf2, 0x7b, 0x12, 0x98, 0xa9, 0xbb, 0xd7, 0xcc, 0x89, 0xdf, 0x8c, 0x11, 0x1a, 0x22, 0x3c, 0xd6, + 0x72, 0x87, 0xd4, 0x8e, 0x8c, 0x7f, 0x6e, 0x91, 0x67, 0x9d, 0x87, 0xfe, 0x49, 0x9f, 0x5b, 0x14, + 0x25, 0x24, 0x7e, 0x20, 0xff, 0x94, 0xde, 0x44, 0x53, 0x68, 0x59, 0xda, 0x0e, 0x82, 0x6f, 0x8a, + 0x51, 0x91, 0xf2, 0xcf, 0x06, 0x1d, 0xb1, 0x9f, 0x0d, 0x72, 0x2f, 0x7e, 0xa7, 0xe0, 0xb2, 0x8b, + 0xdf, 0x43, 0x9e, 0x6c, 0xda, 0xc3, 0x50, 0xda, 0xa0, 0x49, 0x9f, 0x6c, 0x12, 0x23, 0x63, 0x02, + 0x37, 0x3b, 0x79, 0xdf, 0xdf, 0x7f, 0x30, 0x75, 0xb0, 0xeb, 0x06, 0x0f, 0x4a, 0xa1, 0x56, 0x98, + 0x1d, 0x1e, 0x46, 0xbd, 0x80, 0x30, 0xf8, 0xd0, 0xbc, 0xb4, 0xe7, 0xa1, 0x79, 0xae, 0x7d, 0x29, + 0xd1, 0xf6, 0x85, 0x58, 0x82, 0x16, 0x69, 0xdb, 0x04, 0x1e, 0xc1, 0x71, 0x2d, 0xa7, 0x77, 0x46, + 0xd0, 0xe1, 0x63, 0x62, 0xeb, 0x63, 0xc2, 0xcf, 0xec, 0xf8, 0xb0, 0x36, 0x42, 0xe3, 0x49, 0xec, + 0x11, 0x9e, 0x30, 0x74, 0xc4, 0x8f, 0xf2, 0x27, 0x5c, 0x03, 0xaa, 0x35, 0x01, 0x90, 0xf7, 0x8f, + 0x97, 0x98, 0x39, 0x25, 0xc5, 0x8e, 0xd7, 0x01, 0x99, 0x54, 0x5f, 0x62, 0x77, 0x14, 0x15, 0x76, + 0x54, 0x4d, 0x57, 0xd7, 0x75, 0x14, 0xc5, 0xa5, 0x97, 0xff, 0xdb, 0x0b, 0xca, 0x39, 0x1e, 0x94, + 0x7b, 0x44, 0x98, 0xc1, 0x51, 0x14, 0xed, 0x73, 0xfe, 0x7f, 0xe2, 0x80, 0x74, 0x1f, 0x07, 0x52, + 0x79, 0xbf, 0x74, 0x85, 0xc3, 0x6a, 0x79, 0x8c, 0x57, 0x39, 0xe6, 0xc0, 0xb1, 0x6a, 0xad, 0xd1, + 0x2c, 0x34, 0x4b, 0x85, 0x46, 0xe1, 0x5c, 0xa5, 0x7c, 0xbe, 0x39, 0xbf, 0x5c, 0x2b, 0x9e, 0xcd, + 0x49, 0xf0, 0xdd, 0xd4, 0x9e, 0xaa, 0x1b, 0x7d, 0xb3, 0x15, 0xd5, 0xcc, 0xa5, 0x47, 0x0a, 0x63, + 0x17, 0x4c, 0xb1, 0x10, 0xfc, 0x94, 0x17, 0xd9, 0x0a, 0x8f, 0xec, 0xcd, 0x01, 0x1c, 0x74, 0x88, + 0x1b, 0xd5, 0xd1, 0x84, 0xb6, 0x5f, 0x3f, 0xe6, 0x60, 0xb8, 0xcc, 0x61, 0x78, 0xeb, 0x18, 0x14, + 0xc4, 0xdf, 0xc5, 0x7e, 0xfb, 0x72, 0xf0, 0x3c, 0x8e, 0x16, 0x05, 0xb5, 0x0c, 0xb3, 0x0d, 0x1f, + 0x76, 0x07, 0xc4, 0x07, 0x13, 0x91, 0xdc, 0x02, 0x6c, 0x92, 0x82, 0xdd, 0xdd, 0x6d, 0x3b, 0x2c, + 0x9f, 0x06, 0x19, 0xfa, 0xdf, 0x19, 0x08, 0xfd, 0xf6, 0xe7, 0x69, 0x32, 0xf8, 0xe6, 0xe4, 0x58, + 0xd6, 0x13, 0x6d, 0x59, 0xe0, 0x18, 0x38, 0x8e, 0xe1, 0x12, 0x54, 0xec, 0x04, 0x2e, 0xf4, 0x76, + 0x87, 0xb4, 0x9f, 0x8c, 0x15, 0x26, 0xfe, 0x61, 0x9b, 0xd0, 0x5c, 0x8f, 0x70, 0x61, 0x60, 0x7c, + 0x8c, 0x0e, 0x68, 0x18, 0xfb, 0xba, 0xbb, 0xea, 0xfa, 0x0b, 0x89, 0x48, 0x2e, 0x36, 0x65, 0xfd, + 0x45, 0x12, 0xea, 0x2f, 0x03, 0x7e, 0x37, 0xa9, 0x41, 0xbf, 0x1b, 0xf8, 0xb9, 0x7d, 0x21, 0x1b, + 0xb8, 0x0e, 0xeb, 0xd2, 0x9a, 0x14, 0xeb, 0xdb, 0xe3, 0x83, 0x7b, 0x40, 0x6b, 0xae, 0xff, 0x70, + 0x18, 0xcc, 0xda, 0x43, 0x70, 0x8d, 0x14, 0x03, 0xbf, 0xc2, 0x66, 0x97, 0x8f, 0x4e, 0x64, 0x26, + 0x71, 0x0b, 0xc8, 0x18, 0x5d, 0xcf, 0x3c, 0xe2, 0x84, 0x8f, 0x9d, 0x91, 0xa7, 0xd4, 0x29, 0x2c, + 0x35, 0xd7, 0xd7, 0xd3, 0x03, 0x7d, 0x9d, 0x7b, 0xb0, 0xe1, 0xd5, 0xbc, 0x44, 0xcc, 0x8f, 0x44, + 0x82, 0x67, 0x47, 0x64, 0x73, 0x55, 0xb7, 0xa1, 0x52, 0x98, 0x86, 0xc2, 0xcf, 0x39, 0x22, 0xf5, + 0x1a, 0x4e, 0xa4, 0x16, 0xf7, 0xdf, 0x90, 0xf8, 0xc5, 0xeb, 0xdd, 0x29, 0x67, 0x1c, 0xfe, 0xe7, + 0x2b, 0x4e, 0xdc, 0xde, 0xed, 0x6b, 0x78, 0x71, 0x2a, 0x87, 0x45, 0x21, 0xc2, 0x39, 0xec, 0x63, + 0x8e, 0x64, 0xfc, 0x6b, 0x4e, 0x32, 0xee, 0x8d, 0x84, 0xa6, 0xf8, 0x85, 0xe3, 0x87, 0xee, 0xe0, + 0xff, 0xd0, 0x44, 0x84, 0x03, 0x82, 0x29, 0x0a, 0xb7, 0x33, 0x8e, 0x38, 0xe1, 0xc9, 0x09, 0x40, + 0x84, 0xa6, 0x44, 0x64, 0x02, 0x70, 0x40, 0x96, 0xc5, 0x87, 0x9e, 0x0f, 0xd2, 0x25, 0xb4, 0xde, + 0xdf, 0x84, 0x1f, 0x91, 0x40, 0x56, 0x37, 0x36, 0x2b, 0x9d, 0x0d, 0x63, 0xcf, 0xdb, 0x9b, 0x32, + 0x48, 0x6d, 0x21, 0xb5, 0xed, 0x3c, 0xf6, 0x88, 0x54, 0xf2, 0x92, 0x12, 0xfe, 0xb5, 0x1f, 0x56, + 0x70, 0x0e, 0xe5, 0x0f, 0xc4, 0xca, 0x27, 0xc1, 0x61, 0xcb, 0xb0, 0x54, 0x9d, 0x36, 0xbb, 0xc7, + 0xde, 0xb7, 0xe7, 0xe2, 0xb0, 0xbc, 0x91, 0x30, 0x71, 0xb2, 0x4c, 0x93, 0x04, 0x6e, 0x84, 0x7c, + 0x0d, 0x38, 0x42, 0x9e, 0x4c, 0xa3, 0xa9, 0x1b, 0xd4, 0x0b, 0x37, 0xad, 0xf0, 0x91, 0xe4, 0x65, + 0x27, 0x37, 0xe2, 0x1c, 0x32, 0xc9, 0x9d, 0xab, 0x69, 0x65, 0x20, 0x16, 0xd3, 0xa3, 0xab, 0x9e, + 0xc2, 0xa6, 0x28, 0x3d, 0xde, 0x38, 0x5c, 0xa3, 0x1b, 0xc6, 0x45, 0x4d, 0xd3, 0x1a, 0xb9, 0x48, + 0x5c, 0x23, 0x8e, 0x58, 0xed, 0xeb, 0x7a, 0x1d, 0xb5, 0x0a, 0x9b, 0xc6, 0x1c, 0xa0, 0x35, 0xf2, + 0xb1, 0x58, 0xae, 0xfb, 0xdd, 0xba, 0xa5, 0x5a, 0xfd, 0xde, 0xdc, 0x0c, 0x95, 0x6b, 0x3b, 0x8c, + 0x2d, 0xab, 0xb6, 0x71, 0xb1, 0xc3, 0xbe, 0x1e, 0xa6, 0x96, 0x95, 0x1b, 0x23, 0x1f, 0xb3, 0x45, + 0xfd, 0x08, 0x3d, 0xda, 0x4b, 0x27, 0x19, 0x4f, 0x4b, 0x00, 0x58, 0x5b, 0x26, 0x52, 0xdb, 0x43, + 0xe1, 0xba, 0x05, 0x1c, 0xd7, 0x8d, 0xcd, 0xde, 0x79, 0xcd, 0xda, 0x72, 0x81, 0x58, 0xb2, 0x01, + 0x4c, 0x2b, 0x3e, 0x5f, 0xe5, 0x7b, 0xc0, 0x15, 0xf6, 0x97, 0xf3, 0x5b, 0x86, 0x8e, 0x1a, 0x26, + 0x42, 0x03, 0xf8, 0xa6, 0x95, 0xa0, 0x24, 0x72, 0x1e, 0xa4, 0xf0, 0x67, 0xf6, 0xe8, 0x0d, 0xe4, + 0x3a, 0x01, 0x11, 0xb3, 0x3c, 0x13, 0x31, 0x85, 0xa4, 0x93, 0x6f, 0x05, 0x97, 0x1b, 0x17, 0x3b, + 0xcb, 0xc6, 0xe6, 0x92, 0xda, 0x2b, 0xaa, 0x1b, 0x48, 0x41, 0xf4, 0x5a, 0x63, 0xc3, 0x64, 0x0f, + 0x60, 0xf9, 0x7d, 0x96, 0xf3, 0x40, 0x6e, 0xa9, 0x1b, 0x68, 0x99, 0x07, 0x80, 0x4a, 0xc6, 0x90, + 0x2f, 0x18, 0x76, 0x1c, 0xbb, 0x66, 0x03, 0x41, 0x9f, 0xc8, 0xe2, 0xe2, 0x30, 0xa0, 0x38, 0x5c, + 0x72, 0x01, 0x99, 0xa2, 0x8f, 0x83, 0xf1, 0xb1, 0x7b, 0x44, 0x7a, 0x7a, 0x94, 0x48, 0x83, 0x41, + 0x91, 0x76, 0x60, 0x9d, 0xf1, 0xc2, 0xfa, 0x4c, 0x1a, 0xa4, 0xea, 0xbb, 0x9d, 0x16, 0xfc, 0xa0, + 0x47, 0x17, 0x9f, 0x01, 0xc7, 0xa8, 0x16, 0xec, 0x35, 0x4c, 0x75, 0x07, 0x99, 0x3d, 0xb4, 0x4c, + 0x76, 0x76, 0x12, 0xa4, 0xcc, 0xa1, 0xdf, 0xc8, 0xa3, 0x82, 0x17, 0xb4, 0x6e, 0x79, 0xbb, 0x6b, + 0xed, 0x2e, 0x63, 0x3c, 0x92, 0xf4, 0x35, 0x31, 0x2e, 0x52, 0xbe, 0x0b, 0x40, 0xcb, 0xdc, 0x6d, + 0x18, 0x36, 0x7e, 0x0a, 0xda, 0x36, 0x2c, 0x64, 0x37, 0x8a, 0xf6, 0xe6, 0x80, 0x14, 0xf0, 0x57, + 0x53, 0xa2, 0x6f, 0xda, 0x51, 0xe8, 0x71, 0xd3, 0x7c, 0x94, 0xee, 0x2b, 0x40, 0x96, 0xca, 0xb3, + 0xbd, 0xd6, 0x75, 0xd5, 0x90, 0xfc, 0xae, 0xc4, 0x2b, 0x76, 0x6a, 0xdc, 0xb7, 0xda, 0x68, 0x47, + 0x6b, 0x21, 0x77, 0xbe, 0x69, 0x87, 0x1d, 0x98, 0x1a, 0xac, 0x64, 0xaf, 0xe6, 0x61, 0x71, 0x84, + 0x07, 0xf4, 0x2f, 0x16, 0x69, 0xa3, 0x6f, 0x61, 0x11, 0xab, 0x74, 0x6a, 0x44, 0xea, 0x98, 0x2a, + 0x0a, 0x48, 0x21, 0xcf, 0x83, 0x2b, 0xf9, 0xaf, 0x4b, 0xbc, 0x4e, 0xa4, 0x02, 0x19, 0x98, 0x66, + 0x8f, 0x38, 0x65, 0x47, 0x89, 0xd3, 0xd4, 0x80, 0x38, 0x09, 0x3e, 0xd5, 0xe7, 0x8b, 0xc2, 0x04, + 0x0e, 0x66, 0x4b, 0x20, 0x43, 0x59, 0x0e, 0x7f, 0xce, 0x23, 0xdb, 0x10, 0x4c, 0x31, 0x50, 0x6d, + 0xf5, 0xe5, 0x84, 0x27, 0x24, 0xc3, 0xef, 0x13, 0xbe, 0x4c, 0x90, 0x72, 0x8f, 0x36, 0xc2, 0x47, + 0x8a, 0x6f, 0x02, 0x29, 0xad, 0xb3, 0x61, 0x30, 0xcb, 0x61, 0x84, 0x08, 0x93, 0xa4, 0x82, 0xb7, + 0x07, 0x06, 0xd4, 0x1d, 0x3f, 0x76, 0x6f, 0x93, 0x40, 0x0a, 0xab, 0x79, 0xef, 0x75, 0x08, 0xd8, + 0x8c, 0x23, 0x47, 0x3d, 0x5c, 0xe0, 0xec, 0xf0, 0xd0, 0x2b, 0x15, 0x4f, 0x82, 0xc3, 0xfd, 0x8e, + 0xda, 0x31, 0x3a, 0xbb, 0xdb, 0xda, 0xeb, 0x1d, 0x53, 0x81, 0x8b, 0xc3, 0xd4, 0x6f, 0xa2, 0x0e, + 0x32, 0x55, 0x0b, 0xd5, 0x77, 0x36, 0xd9, 0x83, 0x7a, 0xde, 0x28, 0xf8, 0xc6, 0x64, 0x38, 0x85, + 0x83, 0xa9, 0xf6, 0xbf, 0xb9, 0x7f, 0x43, 0xd3, 0x11, 0x39, 0x41, 0x97, 0x74, 0x1f, 0x15, 0x23, + 0xa7, 0xe8, 0xc2, 0xf4, 0xa6, 0x21, 0x55, 0x4c, 0x04, 0x91, 0x1c, 0xbd, 0x4a, 0x72, 0xd9, 0x68, + 0xa9, 0x7a, 0xcf, 0x32, 0x4c, 0xe4, 0x7d, 0x0c, 0xde, 0x46, 0x20, 0xe1, 0x41, 0xe0, 0x38, 0xc8, + 0xb4, 0x8d, 0x96, 0xeb, 0x5b, 0xc9, 0x42, 0xf0, 0x4b, 0xc2, 0x07, 0x95, 0x69, 0x83, 0x07, 0xeb, + 0x8d, 0xed, 0x5e, 0x4d, 0xb1, 0xc3, 0xcb, 0x42, 0x44, 0xc5, 0x8f, 0xc8, 0x5f, 0x24, 0x41, 0x6a, + 0x55, 0xeb, 0x6c, 0x7a, 0x7d, 0xd1, 0x8f, 0x81, 0xb4, 0xd6, 0x69, 0xa3, 0xfb, 0xd9, 0x48, 0x4d, + 0x03, 0x78, 0x38, 0xef, 0xf4, 0xb7, 0xd7, 0x91, 0x59, 0xdb, 0x20, 0xcd, 0xed, 0x35, 0x8c, 0x3a, + 0xea, 0xd8, 0x96, 0xd9, 0xd0, 0x6f, 0xf0, 0x47, 0x89, 0x70, 0x72, 0x8f, 0x29, 0xf1, 0xc1, 0xc5, + 0x21, 0x2a, 0xe9, 0x21, 0x2a, 0x94, 0xc4, 0x0f, 0x29, 0x3c, 0x7e, 0xfe, 0x3e, 0x9e, 0x04, 0xd9, + 0x15, 0x64, 0x99, 0x5a, 0xab, 0x07, 0x3f, 0x93, 0x04, 0x47, 0xea, 0xc8, 0x5a, 0x55, 0x4d, 0x75, + 0x1b, 0x59, 0xc8, 0xec, 0xc1, 0x6b, 0x39, 0xc5, 0xd4, 0xd5, 0x55, 0x6b, 0xc3, 0x30, 0xb7, 0x6d, + 0xc5, 0x64, 0x87, 0x79, 0x36, 0x06, 0xba, 0x01, 0xb3, 0xaa, 0xf2, 0x5c, 0x35, 0x3e, 0x0b, 0xfe, + 0x62, 0x8e, 0xbd, 0x22, 0x25, 0xc6, 0xcf, 0xc6, 0xdf, 0x91, 0x80, 0xb4, 0x6c, 0x6c, 0xc2, 0x47, + 0x25, 0x90, 0x22, 0x92, 0xe5, 0x7d, 0x92, 0x6e, 0x0e, 0x64, 0xb7, 0x51, 0xaf, 0xa7, 0x6e, 0xda, + 0x8f, 0xb5, 0xda, 0x41, 0xf9, 0x36, 0x90, 0xd6, 0xd1, 0x0e, 0xd2, 0x09, 0x19, 0xb3, 0x67, 0x5e, + 0xc8, 0xb5, 0x6c, 0xd9, 0xd8, 0xcc, 0xe3, 0xb2, 0x9c, 0x67, 0x39, 0x96, 0x71, 0x52, 0x85, 0xe6, + 0x38, 0x79, 0x2f, 0x48, 0x93, 0xb0, 0x3c, 0x0d, 0xd2, 0xa5, 0xf2, 0xfc, 0xda, 0x62, 0xee, 0x10, + 0xfe, 0x6b, 0xd3, 0x37, 0x0d, 0xd2, 0x0b, 0x85, 0x46, 0x61, 0x39, 0x97, 0xc4, 0xed, 0xa8, 0x54, + 0x17, 0x6a, 0x39, 0x09, 0x47, 0xae, 0x16, 0xaa, 0x95, 0x62, 0x2e, 0x25, 0xcf, 0x80, 0xec, 0xf9, + 0x82, 0x52, 0xad, 0x54, 0x17, 0x73, 0x69, 0xf8, 0x80, 0x57, 0x55, 0xdd, 0xce, 0xe3, 0x77, 0x8d, + 0x1f, 0x4d, 0xc3, 0x20, 0xfb, 0x8c, 0x03, 0xd9, 0x9d, 0x1c, 0x64, 0x2f, 0x16, 0x29, 0x24, 0x1c, + 0x4a, 0xd5, 0x31, 0x36, 0x42, 0x8f, 0x80, 0xe9, 0x6a, 0xad, 0xd1, 0x5c, 0xa8, 0xad, 0x55, 0x4b, + 0x39, 0x84, 0x79, 0xd0, 0xa8, 0xac, 0x94, 0x6b, 0x6b, 0x8d, 0xdc, 0x06, 0xfc, 0x60, 0x12, 0x64, + 0x57, 0x4d, 0xa3, 0x85, 0x7a, 0x3d, 0xf8, 0x8e, 0x24, 0xc8, 0x14, 0xd5, 0x4e, 0x0b, 0xe9, 0xf0, + 0xf9, 0x2e, 0x8c, 0x03, 0x93, 0x41, 0xf8, 0xfd, 0x84, 0xe8, 0x13, 0x8d, 0xac, 0xdc, 0x3c, 0x2d, + 0xd3, 0x87, 0x77, 0x62, 0x8f, 0x2e, 0x06, 0x16, 0x35, 0x01, 0x57, 0xad, 0x04, 0x38, 0xb6, 0x88, + 0x0d, 0x07, 0xad, 0x45, 0x89, 0x17, 0x7a, 0x3a, 0x78, 0x58, 0x0e, 0xbe, 0xf1, 0x62, 0xcf, 0xf3, + 0xfa, 0x97, 0x13, 0x7b, 0xcb, 0x4f, 0x66, 0x41, 0x9a, 0x18, 0xc7, 0xf3, 0x57, 0x7e, 0xf9, 0xb9, + 0x13, 0x89, 0xa7, 0x9e, 0x3b, 0x91, 0xf8, 0xef, 0xcf, 0x9d, 0x48, 0xfc, 0xfc, 0xb7, 0x4e, 0x1c, + 0x7a, 0xea, 0x5b, 0x27, 0x0e, 0xfd, 0xf9, 0xb7, 0x4e, 0x1c, 0xfa, 0x57, 0xc9, 0xee, 0xfa, 0x7a, + 0x86, 0xec, 0x9e, 0xdc, 0xfc, 0x4f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x84, 0xb4, 0xaa, 0x1f, 0xbd, + 0x09, 0x01, 0x00, } func (m *Rpc) Marshal() (dAtA []byte, err error) { @@ -39808,7 +38242,7 @@ func (m *Rpc) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *RpcMetrics) Marshal() (dAtA []byte, err error) { +func (m *RpcApp) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -39818,12 +38252,12 @@ func (m *RpcMetrics) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcMetrics) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcApp) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcMetrics) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcApp) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -39831,7 +38265,7 @@ func (m *RpcMetrics) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *RpcMetricsSetParameters) Marshal() (dAtA []byte, err error) { +func (m *RpcAppGetVersion) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -39841,12 +38275,12 @@ func (m *RpcMetricsSetParameters) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcMetricsSetParameters) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcAppGetVersion) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcMetricsSetParameters) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcAppGetVersion) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -39854,7 +38288,7 @@ func (m *RpcMetricsSetParameters) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *RpcMetricsSetParametersRequest) Marshal() (dAtA []byte, err error) { +func (m *RpcAppGetVersionRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -39864,4739 +38298,20 @@ func (m *RpcMetricsSetParametersRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcMetricsSetParametersRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcAppGetVersionRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcMetricsSetParametersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcAppGetVersionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Platform) > 0 { - i -= len(m.Platform) - copy(dAtA[i:], m.Platform) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Platform))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcMetricsSetParametersResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcMetricsSetParametersResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcMetricsSetParametersResponse) 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 *RpcMetricsSetParametersResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcMetricsSetParametersResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcMetricsSetParametersResponseError) 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 *RpcExternalDrop) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcExternalDrop) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcExternalDrop) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcExternalDropFiles) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcExternalDropFiles) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcExternalDropFiles) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcExternalDropFilesRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcExternalDropFilesRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcExternalDropFilesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.LocalFilePaths) > 0 { - for iNdEx := len(m.LocalFilePaths) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.LocalFilePaths[iNdEx]) - copy(dAtA[i:], m.LocalFilePaths[iNdEx]) - i = encodeVarintCommands(dAtA, i, uint64(len(m.LocalFilePaths[iNdEx]))) - i-- - dAtA[i] = 0x22 - } - } - if m.Position != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.Position)) - i-- - dAtA[i] = 0x18 - } - if len(m.DropTargetId) > 0 { - i -= len(m.DropTargetId) - copy(dAtA[i:], m.DropTargetId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.DropTargetId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcExternalDropFilesResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcExternalDropFilesResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcExternalDropFilesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcExternalDropFilesResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcExternalDropFilesResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcExternalDropFilesResponseError) 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 *RpcExternalDropContent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcExternalDropContent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcExternalDropContent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcExternalDropContentRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcExternalDropContentRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcExternalDropContentRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Content) > 0 { - i -= len(m.Content) - copy(dAtA[i:], m.Content) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Content))) - i-- - dAtA[i] = 0x1a - } - if len(m.FocusedBlockId) > 0 { - i -= len(m.FocusedBlockId) - copy(dAtA[i:], m.FocusedBlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.FocusedBlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcExternalDropContentResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcExternalDropContentResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcExternalDropContentResponse) 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 *RpcExternalDropContentResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcExternalDropContentResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcExternalDropContentResponseError) 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 *RpcBlockList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockListConvertChildrenToPages) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListConvertChildrenToPages) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListConvertChildrenToPages) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockListConvertChildrenToPagesRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListConvertChildrenToPagesRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListConvertChildrenToPagesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ObjectType) > 0 { - i -= len(m.ObjectType) - copy(dAtA[i:], m.ObjectType) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ObjectType))) - i-- - dAtA[i] = 0x1a - } - if len(m.BlockIds) > 0 { - for iNdEx := len(m.BlockIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.BlockIds[iNdEx]) - copy(dAtA[i:], m.BlockIds[iNdEx]) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockIds[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockListConvertChildrenToPagesResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListConvertChildrenToPagesResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListConvertChildrenToPagesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.LinkIds) > 0 { - for iNdEx := len(m.LinkIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.LinkIds[iNdEx]) - copy(dAtA[i:], m.LinkIds[iNdEx]) - i = encodeVarintCommands(dAtA, i, uint64(len(m.LinkIds[iNdEx]))) - 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 *RpcBlockListConvertChildrenToPagesResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListConvertChildrenToPagesResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListConvertChildrenToPagesResponseError) 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 *RpcBlockListMove) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListMove) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListMove) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockListMoveRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListMoveRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListMoveRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Position != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.Position)) - i-- - dAtA[i] = 0x28 - } - if len(m.DropTargetId) > 0 { - i -= len(m.DropTargetId) - copy(dAtA[i:], m.DropTargetId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.DropTargetId))) - i-- - dAtA[i] = 0x22 - } - if len(m.TargetContextId) > 0 { - i -= len(m.TargetContextId) - copy(dAtA[i:], m.TargetContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.TargetContextId))) - i-- - dAtA[i] = 0x1a - } - if len(m.BlockIds) > 0 { - for iNdEx := len(m.BlockIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.BlockIds[iNdEx]) - copy(dAtA[i:], m.BlockIds[iNdEx]) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockIds[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockListMoveResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListMoveResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListMoveResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcBlockListMoveResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListMoveResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListMoveResponseError) 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 *RpcBlockListMoveToNewPage) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListMoveToNewPage) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListMoveToNewPage) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockListMoveToNewPageRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListMoveToNewPageRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListMoveToNewPageRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Position != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.Position)) - i-- - dAtA[i] = 0x28 - } - if len(m.DropTargetId) > 0 { - i -= len(m.DropTargetId) - copy(dAtA[i:], m.DropTargetId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.DropTargetId))) - i-- - dAtA[i] = 0x22 - } - if m.Details != nil { - { - size, err := m.Details.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.BlockIds) > 0 { - for iNdEx := len(m.BlockIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.BlockIds[iNdEx]) - copy(dAtA[i:], m.BlockIds[iNdEx]) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockIds[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockListMoveToNewPageResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListMoveToNewPageResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListMoveToNewPageResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.LinkId) > 0 { - i -= len(m.LinkId) - copy(dAtA[i:], m.LinkId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.LinkId))) - 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 *RpcBlockListMoveToNewPageResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListMoveToNewPageResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListMoveToNewPageResponseError) 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 *RpcBlockListDuplicate) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListDuplicate) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListDuplicate) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockListDuplicateRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListDuplicateRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListDuplicateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Position != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.Position)) - i-- - dAtA[i] = 0x20 - } - if len(m.BlockIds) > 0 { - for iNdEx := len(m.BlockIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.BlockIds[iNdEx]) - copy(dAtA[i:], m.BlockIds[iNdEx]) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockIds[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if len(m.TargetId) > 0 { - i -= len(m.TargetId) - copy(dAtA[i:], m.TargetId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.TargetId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockListDuplicateResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListDuplicateResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListDuplicateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.BlockIds) > 0 { - for iNdEx := len(m.BlockIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.BlockIds[iNdEx]) - copy(dAtA[i:], m.BlockIds[iNdEx]) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockIds[iNdEx]))) - 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 *RpcBlockListDuplicateResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListDuplicateResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListDuplicateResponseError) 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 *RpcBlockListSet) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListSet) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListSet) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockListSetText) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListSetText) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListSetText) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockListSetTextStyle) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListSetTextStyle) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListSetTextStyle) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockListSetTextStyleRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListSetTextStyleRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListSetTextStyleRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Style != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.Style)) - i-- - dAtA[i] = 0x18 - } - if len(m.BlockIds) > 0 { - for iNdEx := len(m.BlockIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.BlockIds[iNdEx]) - copy(dAtA[i:], m.BlockIds[iNdEx]) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockIds[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockListSetTextStyleResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListSetTextStyleResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListSetTextStyleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcBlockListSetTextStyleResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListSetTextStyleResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListSetTextStyleResponseError) 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 *RpcBlockListSetTextColor) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListSetTextColor) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListSetTextColor) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockListSetTextColorRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListSetTextColorRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListSetTextColorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Color) > 0 { - i -= len(m.Color) - copy(dAtA[i:], m.Color) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Color))) - i-- - dAtA[i] = 0x1a - } - if len(m.BlockIds) > 0 { - for iNdEx := len(m.BlockIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.BlockIds[iNdEx]) - copy(dAtA[i:], m.BlockIds[iNdEx]) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockIds[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockListSetTextColorResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListSetTextColorResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListSetTextColorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcBlockListSetTextColorResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListSetTextColorResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListSetTextColorResponseError) 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 *RpcBlockListSetTextMark) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListSetTextMark) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListSetTextMark) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockListSetTextMarkRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListSetTextMarkRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListSetTextMarkRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Mark != nil { - { - size, err := m.Mark.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.BlockIds) > 0 { - for iNdEx := len(m.BlockIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.BlockIds[iNdEx]) - copy(dAtA[i:], m.BlockIds[iNdEx]) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockIds[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockListSetTextMarkResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListSetTextMarkResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListSetTextMarkResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcBlockListSetTextMarkResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListSetTextMarkResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListSetTextMarkResponseError) 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 *RpcBlockListSetBackgroundColor) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListSetBackgroundColor) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListSetBackgroundColor) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockListSetBackgroundColorRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListSetBackgroundColorRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListSetBackgroundColorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Color) > 0 { - i -= len(m.Color) - copy(dAtA[i:], m.Color) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Color))) - i-- - dAtA[i] = 0x1a - } - if len(m.BlockIds) > 0 { - for iNdEx := len(m.BlockIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.BlockIds[iNdEx]) - copy(dAtA[i:], m.BlockIds[iNdEx]) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockIds[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockListSetBackgroundColorResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListSetBackgroundColorResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListSetBackgroundColorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcBlockListSetBackgroundColorResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListSetBackgroundColorResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListSetBackgroundColorResponseError) 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 *RpcBlockListSetAlign) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListSetAlign) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListSetAlign) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockListSetAlignRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListSetAlignRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListSetAlignRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Align != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.Align)) - i-- - dAtA[i] = 0x18 - } - if len(m.BlockIds) > 0 { - for iNdEx := len(m.BlockIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.BlockIds[iNdEx]) - copy(dAtA[i:], m.BlockIds[iNdEx]) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockIds[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockListSetAlignResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListSetAlignResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListSetAlignResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcBlockListSetAlignResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListSetAlignResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListSetAlignResponseError) 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 *RpcBlockListSetFields) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListSetFields) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListSetFields) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockListSetFieldsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListSetFieldsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListSetFieldsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.BlockFields) > 0 { - for iNdEx := len(m.BlockFields) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.BlockFields[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockListSetFieldsRequestBlockField) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListSetFieldsRequestBlockField) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListSetFieldsRequestBlockField) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Fields != nil { - { - size, err := m.Fields.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockListSetFieldsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListSetFieldsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListSetFieldsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcBlockListSetFieldsResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListSetFieldsResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListSetFieldsResponseError) 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 *RpcBlockListSetDiv) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListSetDiv) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListSetDiv) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockListSetDivStyle) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListSetDivStyle) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListSetDivStyle) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockListSetDivStyleRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListSetDivStyleRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListSetDivStyleRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Style != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.Style)) - i-- - dAtA[i] = 0x18 - } - if len(m.BlockIds) > 0 { - for iNdEx := len(m.BlockIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.BlockIds[iNdEx]) - copy(dAtA[i:], m.BlockIds[iNdEx]) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockIds[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockListSetDivStyleResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListSetDivStyleResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListSetDivStyleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcBlockListSetDivStyleResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListSetDivStyleResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListSetDivStyleResponseError) 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 *RpcBlockListSetFile) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListSetFile) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListSetFile) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockListSetFileStyle) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListSetFileStyle) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListSetFileStyle) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockListSetFileStyleRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListSetFileStyleRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListSetFileStyleRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Style != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.Style)) - i-- - dAtA[i] = 0x18 - } - if len(m.BlockIds) > 0 { - for iNdEx := len(m.BlockIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.BlockIds[iNdEx]) - copy(dAtA[i:], m.BlockIds[iNdEx]) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockIds[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockListSetFileStyleResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListSetFileStyleResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListSetFileStyleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcBlockListSetFileStyleResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListSetFileStyleResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListSetFileStyleResponseError) 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 *RpcBlockListTurnInto) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListTurnInto) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListTurnInto) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockListTurnIntoRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListTurnIntoRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListTurnIntoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Style != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.Style)) - i-- - dAtA[i] = 0x18 - } - if len(m.BlockIds) > 0 { - for iNdEx := len(m.BlockIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.BlockIds[iNdEx]) - copy(dAtA[i:], m.BlockIds[iNdEx]) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockIds[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockListTurnIntoResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListTurnIntoResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListTurnIntoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcBlockListTurnIntoResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockListTurnIntoResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockListTurnIntoResponseError) 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 *RpcBlock) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlock) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockReplace) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockReplace) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockReplace) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockReplaceRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockReplaceRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockReplaceRequest) 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 = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockReplaceResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockReplaceResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockReplaceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - 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 *RpcBlockReplaceResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockReplaceResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockReplaceResponseError) 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 *RpcBlockUpdateContent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockUpdateContent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockUpdateContent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockUpdateContentRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockUpdateContentRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockUpdateContentRequest) 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 = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockUpdateContentResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockUpdateContentResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockUpdateContentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - 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 *RpcBlockUpdateContentResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockUpdateContentResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockUpdateContentResponseError) 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 *RpcBlockSplit) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSplit) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSplit) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockSplitRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSplitRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSplitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Mode != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.Mode)) - i-- - dAtA[i] = 0x28 - } - if m.Style != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.Style)) - i-- - dAtA[i] = 0x20 - } - if m.Range != nil { - { - size, err := m.Range.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockSplitResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSplitResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSplitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - 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 *RpcBlockSplitResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSplitResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSplitResponseError) 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 *RpcBlockMerge) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockMerge) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockMerge) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockMergeRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockMergeRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockMergeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.SecondBlockId) > 0 { - i -= len(m.SecondBlockId) - copy(dAtA[i:], m.SecondBlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.SecondBlockId))) - i-- - dAtA[i] = 0x1a - } - if len(m.FirstBlockId) > 0 { - i -= len(m.FirstBlockId) - copy(dAtA[i:], m.FirstBlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.FirstBlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockMergeResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockMergeResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockMergeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcBlockMergeResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockMergeResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockMergeResponseError) 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 *RpcBlockCopy) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockCopy) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockCopy) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockCopyRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockCopyRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockCopyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.SelectedTextRange != nil { - { - size, err := m.SelectedTextRange.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - 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 = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockCopyResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockCopyResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockCopyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.AnySlot) > 0 { - for iNdEx := len(m.AnySlot) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.AnySlot[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - } - if len(m.HtmlSlot) > 0 { - i -= len(m.HtmlSlot) - copy(dAtA[i:], m.HtmlSlot) - i = encodeVarintCommands(dAtA, i, uint64(len(m.HtmlSlot))) - i-- - dAtA[i] = 0x1a - } - if len(m.TextSlot) > 0 { - i -= len(m.TextSlot) - copy(dAtA[i:], m.TextSlot) - i = encodeVarintCommands(dAtA, i, uint64(len(m.TextSlot))) - 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 *RpcBlockCopyResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockCopyResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockCopyResponseError) 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 *RpcBlockPaste) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockPaste) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockPaste) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockPasteRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockPasteRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockPasteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.FileSlot) > 0 { - for iNdEx := len(m.FileSlot) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.FileSlot[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a - } - } - if len(m.AnySlot) > 0 { - for iNdEx := len(m.AnySlot) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.AnySlot[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - } - } - if len(m.HtmlSlot) > 0 { - i -= len(m.HtmlSlot) - copy(dAtA[i:], m.HtmlSlot) - i = encodeVarintCommands(dAtA, i, uint64(len(m.HtmlSlot))) - i-- - dAtA[i] = 0x3a - } - if len(m.TextSlot) > 0 { - i -= len(m.TextSlot) - copy(dAtA[i:], m.TextSlot) - i = encodeVarintCommands(dAtA, i, uint64(len(m.TextSlot))) - i-- - dAtA[i] = 0x32 - } - if m.IsPartOfBlock { - i-- - if m.IsPartOfBlock { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x28 - } - if len(m.SelectedBlockIds) > 0 { - for iNdEx := len(m.SelectedBlockIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.SelectedBlockIds[iNdEx]) - copy(dAtA[i:], m.SelectedBlockIds[iNdEx]) - i = encodeVarintCommands(dAtA, i, uint64(len(m.SelectedBlockIds[iNdEx]))) - i-- - dAtA[i] = 0x22 - } - } - if m.SelectedTextRange != nil { - { - size, err := m.SelectedTextRange.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.FocusedBlockId) > 0 { - i -= len(m.FocusedBlockId) - copy(dAtA[i:], m.FocusedBlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.FocusedBlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockPasteRequestFile) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockPasteRequestFile) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockPasteRequestFile) 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] = 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 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 *RpcBlockPasteResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockPasteResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockPasteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.IsSameBlockCaret { - i-- - if m.IsSameBlockCaret { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if m.CaretPosition != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.CaretPosition)) - i-- - dAtA[i] = 0x18 - } - if len(m.BlockIds) > 0 { - for iNdEx := len(m.BlockIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.BlockIds[iNdEx]) - copy(dAtA[i:], m.BlockIds[iNdEx]) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockIds[iNdEx]))) - 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 *RpcBlockPasteResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockPasteResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockPasteResponseError) 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 *RpcBlockCut) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockCut) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockCut) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockCutRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockCutRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockCutRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.SelectedTextRange != nil { - { - size, err := m.SelectedTextRange.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - 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 = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockCutResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockCutResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockCutResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if len(m.AnySlot) > 0 { - for iNdEx := len(m.AnySlot) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.AnySlot[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - } - if len(m.HtmlSlot) > 0 { - i -= len(m.HtmlSlot) - copy(dAtA[i:], m.HtmlSlot) - i = encodeVarintCommands(dAtA, i, uint64(len(m.HtmlSlot))) - i-- - dAtA[i] = 0x1a - } - if len(m.TextSlot) > 0 { - i -= len(m.TextSlot) - copy(dAtA[i:], m.TextSlot) - i = encodeVarintCommands(dAtA, i, uint64(len(m.TextSlot))) - 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 *RpcBlockCutResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockCutResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockCutResponseError) 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 *RpcBlockImportMarkdown) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockImportMarkdown) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockImportMarkdown) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockImportMarkdownRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockImportMarkdownRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockImportMarkdownRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ImportPath) > 0 { - i -= len(m.ImportPath) - copy(dAtA[i:], m.ImportPath) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ImportPath))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockImportMarkdownResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockImportMarkdownResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockImportMarkdownResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.RootLinkIds) > 0 { - for iNdEx := len(m.RootLinkIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.RootLinkIds[iNdEx]) - copy(dAtA[i:], m.RootLinkIds[iNdEx]) - i = encodeVarintCommands(dAtA, i, uint64(len(m.RootLinkIds[iNdEx]))) - 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 *RpcBlockImportMarkdownResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockImportMarkdownResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockImportMarkdownResponseError) 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 *RpcBlockExport) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockExport) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockExport) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockExportRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockExportRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockExportRequest) 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 = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockExportResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockExportResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockExportResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.Path) > 0 { - i -= len(m.Path) - copy(dAtA[i:], m.Path) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Path))) - 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 *RpcBlockExportResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockExportResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockExportResponseError) 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 *RpcBlockUpload) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockUpload) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockUpload) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockUploadRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockUploadRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockUploadRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Url) > 0 { - i -= len(m.Url) - copy(dAtA[i:], m.Url) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Url))) - i-- - dAtA[i] = 0x22 - } - if len(m.FilePath) > 0 { - i -= len(m.FilePath) - copy(dAtA[i:], m.FilePath) - i = encodeVarintCommands(dAtA, i, uint64(len(m.FilePath))) - i-- - dAtA[i] = 0x1a - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockUploadResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockUploadResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockUploadResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcBlockUploadResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockUploadResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockUploadResponseError) 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 *RpcBlockDownload) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDownload) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDownload) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockDownloadRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDownloadRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDownloadRequest) 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 = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockDownloadResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDownloadResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDownloadResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcBlockDownloadResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDownloadResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDownloadResponseError) 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 *RpcBlockSet) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSet) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSet) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockSetFields) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetFields) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetFields) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockSetFieldsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetFieldsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetFieldsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Fields != nil { - { - size, err := m.Fields.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockSetFieldsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetFieldsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetFieldsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcBlockSetFieldsResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetFieldsResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetFieldsResponseError) 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 *RpcBlockSetDetails) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetDetails) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetDetails) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockSetDetailsDetail) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetDetailsDetail) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetDetailsDetail) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Value != nil { - { - size, err := m.Value.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } -func (m *RpcBlockSetDetailsRequest) Marshal() (dAtA []byte, err error) { +func (m *RpcAppGetVersionResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -44606,223 +38321,27 @@ func (m *RpcBlockSetDetailsRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcBlockSetDetailsRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcAppGetVersionResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcBlockSetDetailsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcAppGetVersionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Details) > 0 { - for iNdEx := len(m.Details) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Details[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockSetDetailsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetDetailsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetDetailsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcBlockSetDetailsResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetDetailsResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetDetailsResponseError) 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 *RpcBlockSetRestrictions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetRestrictions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetRestrictions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockSetRestrictionsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetRestrictionsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetRestrictionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Restrictions != nil { - { - size, err := m.Restrictions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } + i -= len(m.Details) + copy(dAtA[i:], m.Details) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Details))) i-- dAtA[i] = 0x1a } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockSetRestrictionsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetRestrictionsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetRestrictionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } + 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 } @@ -44841,7 +38360,7 @@ func (m *RpcBlockSetRestrictionsResponse) MarshalToSizedBuffer(dAtA []byte) (int return len(dAtA) - i, nil } -func (m *RpcBlockSetRestrictionsResponseError) Marshal() (dAtA []byte, err error) { +func (m *RpcAppGetVersionResponseError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -44851,12 +38370,12 @@ func (m *RpcBlockSetRestrictionsResponseError) Marshal() (dAtA []byte, err error return dAtA[:n], nil } -func (m *RpcBlockSetRestrictionsResponseError) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcAppGetVersionResponseError) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcBlockSetRestrictionsResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcAppGetVersionResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -44876,7 +38395,7 @@ func (m *RpcBlockSetRestrictionsResponseError) MarshalToSizedBuffer(dAtA []byte) return len(dAtA) - i, nil } -func (m *RpcBlockSetPage) Marshal() (dAtA []byte, err error) { +func (m *RpcAppSetDeviceState) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -44886,12 +38405,12 @@ func (m *RpcBlockSetPage) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcBlockSetPage) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcAppSetDeviceState) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcBlockSetPage) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcAppSetDeviceState) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -44899,7 +38418,7 @@ func (m *RpcBlockSetPage) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *RpcBlockSetPageIsArchived) Marshal() (dAtA []byte, err error) { +func (m *RpcAppSetDeviceStateRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -44909,20 +38428,25 @@ func (m *RpcBlockSetPageIsArchived) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcBlockSetPageIsArchived) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcAppSetDeviceStateRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcBlockSetPageIsArchived) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcAppSetDeviceStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l + if m.DeviceState != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.DeviceState)) + i-- + dAtA[i] = 0x8 + } return len(dAtA) - i, nil } -func (m *RpcBlockSetPageIsArchivedRequest) Marshal() (dAtA []byte, err error) { +func (m *RpcAppSetDeviceStateResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -44932,59 +38456,12 @@ func (m *RpcBlockSetPageIsArchivedRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcBlockSetPageIsArchivedRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcAppSetDeviceStateResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcBlockSetPageIsArchivedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.IsArchived { - i-- - if m.IsArchived { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockSetPageIsArchivedResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetPageIsArchivedResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetPageIsArchivedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcAppSetDeviceStateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -45004,7 +38481,7 @@ func (m *RpcBlockSetPageIsArchivedResponse) MarshalToSizedBuffer(dAtA []byte) (i return len(dAtA) - i, nil } -func (m *RpcBlockSetPageIsArchivedResponseError) Marshal() (dAtA []byte, err error) { +func (m *RpcAppSetDeviceStateResponseError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -45014,12 +38491,12 @@ func (m *RpcBlockSetPageIsArchivedResponseError) Marshal() (dAtA []byte, err err return dAtA[:n], nil } -func (m *RpcBlockSetPageIsArchivedResponseError) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcAppSetDeviceStateResponseError) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcBlockSetPageIsArchivedResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcAppSetDeviceStateResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -45039,7 +38516,7 @@ func (m *RpcBlockSetPageIsArchivedResponseError) MarshalToSizedBuffer(dAtA []byt return len(dAtA) - i, nil } -func (m *RpcBlockSetLatex) Marshal() (dAtA []byte, err error) { +func (m *RpcAppShutdown) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -45049,12 +38526,12 @@ func (m *RpcBlockSetLatex) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcBlockSetLatex) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcAppShutdown) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcBlockSetLatex) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcAppShutdown) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -45062,7 +38539,7 @@ func (m *RpcBlockSetLatex) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *RpcBlockSetLatexText) Marshal() (dAtA []byte, err error) { +func (m *RpcAppShutdownRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -45072,12 +38549,12 @@ func (m *RpcBlockSetLatexText) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcBlockSetLatexText) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcAppShutdownRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcBlockSetLatexText) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcAppShutdownRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -45085,7 +38562,7 @@ func (m *RpcBlockSetLatexText) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *RpcBlockSetLatexTextRequest) Marshal() (dAtA []byte, err error) { +func (m *RpcAppShutdownResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -45095,1188 +38572,12 @@ func (m *RpcBlockSetLatexTextRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcBlockSetLatexTextRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcAppShutdownResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcBlockSetLatexTextRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Text) > 0 { - i -= len(m.Text) - copy(dAtA[i:], m.Text) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Text))) - i-- - dAtA[i] = 0x1a - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockSetLatexTextResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetLatexTextResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetLatexTextResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcBlockSetLatexTextResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetLatexTextResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetLatexTextResponseError) 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 *RpcBlockSetText) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetText) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetText) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockSetTextText) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetTextText) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetTextText) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockSetTextTextRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetTextTextRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetTextTextRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Marks != nil { - { - size, err := m.Marks.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.Text) > 0 { - i -= len(m.Text) - copy(dAtA[i:], m.Text) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Text))) - i-- - dAtA[i] = 0x1a - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockSetTextTextResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetTextTextResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetTextTextResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcBlockSetTextTextResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetTextTextResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetTextTextResponseError) 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 *RpcBlockSetTextColor) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetTextColor) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetTextColor) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockSetTextColorRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetTextColorRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetTextColorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Color) > 0 { - i -= len(m.Color) - copy(dAtA[i:], m.Color) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Color))) - i-- - dAtA[i] = 0x1a - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockSetTextColorResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetTextColorResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetTextColorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcBlockSetTextColorResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetTextColorResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetTextColorResponseError) 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 *RpcBlockSetTextStyle) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetTextStyle) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetTextStyle) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockSetTextStyleRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetTextStyleRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetTextStyleRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Style != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.Style)) - i-- - dAtA[i] = 0x18 - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockSetTextStyleResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetTextStyleResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetTextStyleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcBlockSetTextStyleResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetTextStyleResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetTextStyleResponseError) 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 *RpcBlockSetTextChecked) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetTextChecked) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetTextChecked) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockSetTextCheckedRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetTextCheckedRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetTextCheckedRequest) 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] = 0x18 - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockSetTextCheckedResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetTextCheckedResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetTextCheckedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcBlockSetTextCheckedResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetTextCheckedResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetTextCheckedResponseError) 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 *RpcBlockSetTextIcon) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetTextIcon) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetTextIcon) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockSetTextIconRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetTextIconRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetTextIconRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.IconEmoji) > 0 { - i -= len(m.IconEmoji) - copy(dAtA[i:], m.IconEmoji) - i = encodeVarintCommands(dAtA, i, uint64(len(m.IconEmoji))) - i-- - dAtA[i] = 0x2a - } - if len(m.IconImage) > 0 { - i -= len(m.IconImage) - copy(dAtA[i:], m.IconImage) - i = encodeVarintCommands(dAtA, i, uint64(len(m.IconImage))) - i-- - dAtA[i] = 0x1a - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockSetTextIconResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetTextIconResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetTextIconResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcBlockSetTextIconResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetTextIconResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetTextIconResponseError) 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 *RpcBlockSetFile) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetFile) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetFile) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockSetFileName) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetFileName) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetFileName) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockSetFileNameRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetFileNameRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetFileNameRequest) 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] = 0x1a - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockSetFileNameResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetFileNameResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetFileNameResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcBlockSetFileNameResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetFileNameResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetFileNameResponseError) 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 *RpcBlockSetImage) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetImage) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetImage) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockSetImageName) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetImageName) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetImageName) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockSetImageNameRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetImageNameRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetImageNameRequest) 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] = 0x1a - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockSetImageNameResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetImageNameResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetImageNameResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcAppShutdownResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -46296,7 +38597,7 @@ func (m *RpcBlockSetImageNameResponse) MarshalToSizedBuffer(dAtA []byte) (int, e return len(dAtA) - i, nil } -func (m *RpcBlockSetImageNameResponseError) Marshal() (dAtA []byte, err error) { +func (m *RpcAppShutdownResponseError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -46306,6885 +38607,12 @@ func (m *RpcBlockSetImageNameResponseError) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcBlockSetImageNameResponseError) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcAppShutdownResponseError) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcBlockSetImageNameResponseError) 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 *RpcBlockSetImageWidth) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetImageWidth) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetImageWidth) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockSetImageWidthRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetImageWidthRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetImageWidthRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Width != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.Width)) - i-- - dAtA[i] = 0x18 - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockSetImageWidthResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetImageWidthResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetImageWidthResponse) 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 *RpcBlockSetImageWidthResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetImageWidthResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetImageWidthResponseError) 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 *RpcBlockSetVideo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetVideo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetVideo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockSetVideoName) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetVideoName) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetVideoName) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockSetVideoNameRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetVideoNameRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetVideoNameRequest) 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] = 0x1a - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockSetVideoNameResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetVideoNameResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetVideoNameResponse) 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 *RpcBlockSetVideoNameResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetVideoNameResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetVideoNameResponseError) 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 *RpcBlockSetVideoWidth) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetVideoWidth) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetVideoWidth) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockSetVideoWidthRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetVideoWidthRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetVideoWidthRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Width != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.Width)) - i-- - dAtA[i] = 0x18 - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockSetVideoWidthResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetVideoWidthResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetVideoWidthResponse) 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 *RpcBlockSetVideoWidthResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetVideoWidthResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetVideoWidthResponseError) 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 *RpcBlockSetLink) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetLink) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetLink) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockSetLinkTargetBlockId) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetLinkTargetBlockId) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetLinkTargetBlockId) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockSetLinkTargetBlockIdRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetLinkTargetBlockIdRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetLinkTargetBlockIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.TargetBlockId) > 0 { - i -= len(m.TargetBlockId) - copy(dAtA[i:], m.TargetBlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.TargetBlockId))) - i-- - dAtA[i] = 0x1a - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockSetLinkTargetBlockIdResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetLinkTargetBlockIdResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetLinkTargetBlockIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcBlockSetLinkTargetBlockIdResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetLinkTargetBlockIdResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetLinkTargetBlockIdResponseError) 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 *RpcBlockRelation) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockRelation) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockRelation) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockRelationSetKey) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockRelationSetKey) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockRelationSetKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockRelationSetKeyRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockRelationSetKeyRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockRelationSetKeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Key) > 0 { - i -= len(m.Key) - copy(dAtA[i:], m.Key) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Key))) - i-- - dAtA[i] = 0x1a - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockRelationSetKeyResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockRelationSetKeyResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockRelationSetKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcBlockRelationSetKeyResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockRelationSetKeyResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockRelationSetKeyResponseError) 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 *RpcBlockRelationAdd) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockRelationAdd) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockRelationAdd) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockRelationAddRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockRelationAddRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockRelationAddRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Relation != nil { - { - size, err := m.Relation.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockRelationAddResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockRelationAddResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockRelationAddResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcBlockRelationAddResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockRelationAddResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockRelationAddResponseError) 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 *RpcBlockObjectType) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockObjectType) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockObjectType) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockObjectTypeSet) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockObjectTypeSet) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockObjectTypeSet) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockObjectTypeSetRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockObjectTypeSetRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockObjectTypeSetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ObjectTypeUrl) > 0 { - i -= len(m.ObjectTypeUrl) - copy(dAtA[i:], m.ObjectTypeUrl) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ObjectTypeUrl))) - i-- - dAtA[i] = 0x1a - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockObjectTypeSetResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockObjectTypeSetResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockObjectTypeSetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcBlockObjectTypeSetResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockObjectTypeSetResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockObjectTypeSetResponseError) 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 *RpcBlockBookmark) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockBookmark) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockBookmark) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockBookmarkFetch) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockBookmarkFetch) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockBookmarkFetch) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockBookmarkFetchRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockBookmarkFetchRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockBookmarkFetchRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Url) > 0 { - i -= len(m.Url) - copy(dAtA[i:], m.Url) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Url))) - i-- - dAtA[i] = 0x1a - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockBookmarkFetchResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockBookmarkFetchResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockBookmarkFetchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcBlockBookmarkFetchResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockBookmarkFetchResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockBookmarkFetchResponseError) 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 *RpcBlockBookmarkCreateAndFetch) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockBookmarkCreateAndFetch) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockBookmarkCreateAndFetch) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockBookmarkCreateAndFetchRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockBookmarkCreateAndFetchRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockBookmarkCreateAndFetchRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Url) > 0 { - i -= len(m.Url) - copy(dAtA[i:], m.Url) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Url))) - i-- - dAtA[i] = 0x22 - } - if m.Position != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.Position)) - i-- - dAtA[i] = 0x18 - } - if len(m.TargetId) > 0 { - i -= len(m.TargetId) - copy(dAtA[i:], m.TargetId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.TargetId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockBookmarkCreateAndFetchResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockBookmarkCreateAndFetchResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockBookmarkCreateAndFetchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - 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 *RpcBlockBookmarkCreateAndFetchResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockBookmarkCreateAndFetchResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockBookmarkCreateAndFetchResponseError) 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 *RpcBlockFile) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockFile) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockFile) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockFileCreateAndUpload) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockFileCreateAndUpload) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockFileCreateAndUpload) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockFileCreateAndUploadRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockFileCreateAndUploadRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockFileCreateAndUploadRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.FileType != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.FileType)) - i-- - dAtA[i] = 0x30 - } - 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] = 0x2a - } - if len(m.Url) > 0 { - i -= len(m.Url) - copy(dAtA[i:], m.Url) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Url))) - i-- - dAtA[i] = 0x22 - } - if m.Position != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.Position)) - i-- - dAtA[i] = 0x18 - } - if len(m.TargetId) > 0 { - i -= len(m.TargetId) - copy(dAtA[i:], m.TargetId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.TargetId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockFileCreateAndUploadResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockFileCreateAndUploadResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockFileCreateAndUploadResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - 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 *RpcBlockFileCreateAndUploadResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockFileCreateAndUploadResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockFileCreateAndUploadResponseError) 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 *RpcBlockDataview) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataview) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataview) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockDataviewViewCreate) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewViewCreate) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewViewCreate) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockDataviewViewCreateRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewViewCreateRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewViewCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.View != nil { - { - size, err := m.View.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockDataviewViewCreateResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewViewCreateResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewViewCreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ViewId) > 0 { - i -= len(m.ViewId) - copy(dAtA[i:], m.ViewId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ViewId))) - i-- - dAtA[i] = 0x1a - } - if m.Event != nil { - { - size, err := m.Event.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 *RpcBlockDataviewViewCreateResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewViewCreateResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewViewCreateResponseError) 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 *RpcBlockDataviewViewUpdate) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewViewUpdate) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewViewUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockDataviewViewUpdateRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewViewUpdateRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewViewUpdateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.View != nil { - { - size, err := m.View.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.ViewId) > 0 { - i -= len(m.ViewId) - copy(dAtA[i:], m.ViewId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ViewId))) - i-- - dAtA[i] = 0x1a - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockDataviewViewUpdateResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewViewUpdateResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewViewUpdateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcBlockDataviewViewUpdateResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewViewUpdateResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewViewUpdateResponseError) 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 *RpcBlockDataviewViewDelete) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewViewDelete) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewViewDelete) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockDataviewViewDeleteRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewViewDeleteRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewViewDeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ViewId) > 0 { - i -= len(m.ViewId) - copy(dAtA[i:], m.ViewId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ViewId))) - i-- - dAtA[i] = 0x22 - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockDataviewViewDeleteResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewViewDeleteResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewViewDeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcBlockDataviewViewDeleteResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewViewDeleteResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewViewDeleteResponseError) 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 *RpcBlockDataviewViewSetPosition) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewViewSetPosition) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewViewSetPosition) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockDataviewViewSetPositionRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewViewSetPositionRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewViewSetPositionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Position != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.Position)) - i-- - dAtA[i] = 0x28 - } - if len(m.ViewId) > 0 { - i -= len(m.ViewId) - copy(dAtA[i:], m.ViewId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ViewId))) - i-- - dAtA[i] = 0x22 - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockDataviewViewSetPositionResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewViewSetPositionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewViewSetPositionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcBlockDataviewViewSetPositionResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewViewSetPositionResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewViewSetPositionResponseError) 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 *RpcBlockDataviewViewSetActive) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewViewSetActive) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewViewSetActive) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockDataviewViewSetActiveRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewViewSetActiveRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewViewSetActiveRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Limit != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.Limit)) - i-- - dAtA[i] = 0x28 - } - if m.Offset != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.Offset)) - i-- - dAtA[i] = 0x20 - } - if len(m.ViewId) > 0 { - i -= len(m.ViewId) - copy(dAtA[i:], m.ViewId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ViewId))) - i-- - dAtA[i] = 0x1a - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockDataviewViewSetActiveResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewViewSetActiveResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewViewSetActiveResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcBlockDataviewViewSetActiveResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewViewSetActiveResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewViewSetActiveResponseError) 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 *RpcBlockDataviewRecordUpdate) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewRecordUpdate) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewRecordUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockDataviewRecordUpdateRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewRecordUpdateRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewRecordUpdateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Record != nil { - { - size, err := m.Record.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.RecordId) > 0 { - i -= len(m.RecordId) - copy(dAtA[i:], m.RecordId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.RecordId))) - i-- - dAtA[i] = 0x1a - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockDataviewRecordUpdateResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewRecordUpdateResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewRecordUpdateResponse) 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 *RpcBlockDataviewRecordUpdateResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewRecordUpdateResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewRecordUpdateResponseError) 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 *RpcBlockDataviewRecordDelete) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewRecordDelete) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewRecordDelete) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockDataviewRecordDeleteRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewRecordDeleteRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewRecordDeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.RecordId) > 0 { - i -= len(m.RecordId) - copy(dAtA[i:], m.RecordId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.RecordId))) - i-- - dAtA[i] = 0x1a - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockDataviewRecordDeleteResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewRecordDeleteResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewRecordDeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcBlockDataviewRecordDeleteResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewRecordDeleteResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewRecordDeleteResponseError) 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 *RpcBlockDataviewRecordCreate) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewRecordCreate) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewRecordCreate) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockDataviewRecordCreateRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewRecordCreateRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewRecordCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.TemplateId) > 0 { - i -= len(m.TemplateId) - copy(dAtA[i:], m.TemplateId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.TemplateId))) - i-- - dAtA[i] = 0x22 - } - if m.Record != nil { - { - size, err := m.Record.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockDataviewRecordCreateResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewRecordCreateResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewRecordCreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Record != nil { - { - size, err := m.Record.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 *RpcBlockDataviewRecordCreateResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewRecordCreateResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewRecordCreateResponseError) 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 *RpcBlockDataviewRelationAdd) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewRelationAdd) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewRelationAdd) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockDataviewRelationAddRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewRelationAddRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewRelationAddRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Relation != nil { - { - size, err := m.Relation.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockDataviewRelationAddResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewRelationAddResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewRelationAddResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Relation != nil { - { - size, err := m.Relation.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.RelationKey) > 0 { - i -= len(m.RelationKey) - copy(dAtA[i:], m.RelationKey) - i = encodeVarintCommands(dAtA, i, uint64(len(m.RelationKey))) - i-- - dAtA[i] = 0x1a - } - if m.Event != nil { - { - size, err := m.Event.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 *RpcBlockDataviewRelationAddResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewRelationAddResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewRelationAddResponseError) 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 *RpcBlockDataviewRelationUpdate) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewRelationUpdate) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewRelationUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockDataviewRelationUpdateRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewRelationUpdateRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewRelationUpdateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Relation != nil { - { - size, err := m.Relation.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.RelationKey) > 0 { - i -= len(m.RelationKey) - copy(dAtA[i:], m.RelationKey) - i = encodeVarintCommands(dAtA, i, uint64(len(m.RelationKey))) - i-- - dAtA[i] = 0x1a - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockDataviewRelationUpdateResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewRelationUpdateResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewRelationUpdateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcBlockDataviewRelationUpdateResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewRelationUpdateResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewRelationUpdateResponseError) 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 *RpcBlockDataviewRelationDelete) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewRelationDelete) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewRelationDelete) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockDataviewRelationDeleteRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewRelationDeleteRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewRelationDeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.RelationKey) > 0 { - i -= len(m.RelationKey) - copy(dAtA[i:], m.RelationKey) - i = encodeVarintCommands(dAtA, i, uint64(len(m.RelationKey))) - i-- - dAtA[i] = 0x1a - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockDataviewRelationDeleteResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewRelationDeleteResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewRelationDeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - 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 *RpcBlockDataviewRelationDeleteResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewRelationDeleteResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewRelationDeleteResponseError) 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 *RpcBlockDataviewRecordRelationOptionAdd) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewRecordRelationOptionAdd) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewRecordRelationOptionAdd) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockDataviewRecordRelationOptionAddRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewRecordRelationOptionAddRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewRecordRelationOptionAddRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.RecordId) > 0 { - i -= len(m.RecordId) - copy(dAtA[i:], m.RecordId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.RecordId))) - i-- - dAtA[i] = 0x2a - } - if m.Option != nil { - { - size, err := m.Option.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.RelationKey) > 0 { - i -= len(m.RelationKey) - copy(dAtA[i:], m.RelationKey) - i = encodeVarintCommands(dAtA, i, uint64(len(m.RelationKey))) - i-- - dAtA[i] = 0x1a - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockDataviewRecordRelationOptionAddResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewRecordRelationOptionAddResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewRecordRelationOptionAddResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Option != nil { - { - size, err := m.Option.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Event != nil { - { - size, err := m.Event.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 *RpcBlockDataviewRecordRelationOptionAddResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewRecordRelationOptionAddResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewRecordRelationOptionAddResponseError) 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 *RpcBlockDataviewRecordRelationOptionUpdate) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewRecordRelationOptionUpdate) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewRecordRelationOptionUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockDataviewRecordRelationOptionUpdateRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewRecordRelationOptionUpdateRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewRecordRelationOptionUpdateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.RecordId) > 0 { - i -= len(m.RecordId) - copy(dAtA[i:], m.RecordId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.RecordId))) - i-- - dAtA[i] = 0x2a - } - if m.Option != nil { - { - size, err := m.Option.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.RelationKey) > 0 { - i -= len(m.RelationKey) - copy(dAtA[i:], m.RelationKey) - i = encodeVarintCommands(dAtA, i, uint64(len(m.RelationKey))) - i-- - dAtA[i] = 0x1a - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockDataviewRecordRelationOptionUpdateResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewRecordRelationOptionUpdateResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewRecordRelationOptionUpdateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcBlockDataviewRecordRelationOptionUpdateResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewRecordRelationOptionUpdateResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewRecordRelationOptionUpdateResponseError) 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 *RpcBlockDataviewRecordRelationOptionDelete) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewRecordRelationOptionDelete) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewRecordRelationOptionDelete) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockDataviewRecordRelationOptionDeleteRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewRecordRelationOptionDeleteRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewRecordRelationOptionDeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.RecordId) > 0 { - i -= len(m.RecordId) - copy(dAtA[i:], m.RecordId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.RecordId))) - i-- - dAtA[i] = 0x2a - } - if len(m.OptionId) > 0 { - i -= len(m.OptionId) - copy(dAtA[i:], m.OptionId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.OptionId))) - i-- - dAtA[i] = 0x22 - } - if len(m.RelationKey) > 0 { - i -= len(m.RelationKey) - copy(dAtA[i:], m.RelationKey) - i = encodeVarintCommands(dAtA, i, uint64(len(m.RelationKey))) - i-- - dAtA[i] = 0x1a - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockDataviewRecordRelationOptionDeleteResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewRecordRelationOptionDeleteResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewRecordRelationOptionDeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcBlockDataviewRecordRelationOptionDeleteResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewRecordRelationOptionDeleteResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewRecordRelationOptionDeleteResponseError) 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 *RpcBlockDataviewRelationListAvailable) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewRelationListAvailable) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewRelationListAvailable) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockDataviewRelationListAvailableRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewRelationListAvailableRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewRelationListAvailableRequest) 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 = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockDataviewRelationListAvailableResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewRelationListAvailableResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewRelationListAvailableResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Relations) > 0 { - for iNdEx := len(m.Relations) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Relations[iNdEx].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 *RpcBlockDataviewRelationListAvailableResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewRelationListAvailableResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewRelationListAvailableResponseError) 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 *RpcBlockDataviewSetSource) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewSetSource) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewSetSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockDataviewSetSourceRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewSetSourceRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewSetSourceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Source) > 0 { - for iNdEx := len(m.Source) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Source[iNdEx]) - copy(dAtA[i:], m.Source[iNdEx]) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Source[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockDataviewSetSourceResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewSetSourceResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewSetSourceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - 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 *RpcBlockDataviewSetSourceResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockDataviewSetSourceResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockDataviewSetSourceResponseError) 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 *RpcBlockGet) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockGet) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockGet) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockGetMarks) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockGetMarks) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockGetMarks) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockGetMarksRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockGetMarksRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockGetMarksRequest) 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 = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockGetMarksResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockGetMarksResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockGetMarksResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcBlockGetMarksResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockGetMarksResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockGetMarksResponseError) 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 *RpcBlockUndoRedoCounter) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockUndoRedoCounter) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockUndoRedoCounter) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Redo != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.Redo)) - i-- - dAtA[i] = 0x10 - } - if m.Undo != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.Undo)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockUndo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockUndo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockUndo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockUndoRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockUndoRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockUndoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockUndoResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockUndoResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockUndoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Counters != nil { - { - size, err := m.Counters.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Event != nil { - { - size, err := m.Event.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 *RpcBlockUndoResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockUndoResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockUndoResponseError) 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 *RpcBlockRedo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockRedo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockRedo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockRedoRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockRedoRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockRedoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockRedoResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockRedoResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockRedoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Counters != nil { - { - size, err := m.Counters.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Event != nil { - { - size, err := m.Event.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 *RpcBlockRedoResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockRedoResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockRedoResponseError) 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 *RpcBlockOpen) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockOpen) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockOpen) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockOpenRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockOpenRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockOpenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.TraceId) > 0 { - i -= len(m.TraceId) - copy(dAtA[i:], m.TraceId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.TraceId))) - i-- - dAtA[i] = 0x1a - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockOpenResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockOpenResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockOpenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcBlockOpenResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockOpenResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockOpenResponseError) 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 *RpcBlockShow) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockShow) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockShow) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockShowRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockShowRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockShowRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.TraceId) > 0 { - i -= len(m.TraceId) - copy(dAtA[i:], m.TraceId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.TraceId))) - i-- - dAtA[i] = 0x1a - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockShowResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockShowResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockShowResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcBlockShowResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockShowResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockShowResponseError) 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 *RpcBlockGetPublicWebURL) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockGetPublicWebURL) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockGetPublicWebURL) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockGetPublicWebURLRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockGetPublicWebURLRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockGetPublicWebURLRequest) 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 = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockGetPublicWebURLResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockGetPublicWebURLResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockGetPublicWebURLResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Url) > 0 { - i -= len(m.Url) - copy(dAtA[i:], m.Url) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Url))) - 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 *RpcBlockGetPublicWebURLResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockGetPublicWebURLResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockGetPublicWebURLResponseError) 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 *RpcBlockOpenBreadcrumbs) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockOpenBreadcrumbs) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockOpenBreadcrumbs) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockOpenBreadcrumbsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockOpenBreadcrumbsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockOpenBreadcrumbsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.TraceId) > 0 { - i -= len(m.TraceId) - copy(dAtA[i:], m.TraceId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.TraceId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockOpenBreadcrumbsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockOpenBreadcrumbsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockOpenBreadcrumbsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - 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 *RpcBlockOpenBreadcrumbsResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockOpenBreadcrumbsResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockOpenBreadcrumbsResponseError) 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 *RpcBlockSetBreadcrumbs) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetBreadcrumbs) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetBreadcrumbs) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockSetBreadcrumbsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetBreadcrumbsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetBreadcrumbsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Ids) > 0 { - for iNdEx := len(m.Ids) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Ids[iNdEx]) - copy(dAtA[i:], m.Ids[iNdEx]) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Ids[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(m.BreadcrumbsId) > 0 { - i -= len(m.BreadcrumbsId) - copy(dAtA[i:], m.BreadcrumbsId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BreadcrumbsId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockSetBreadcrumbsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetBreadcrumbsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetBreadcrumbsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcBlockSetBreadcrumbsResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockSetBreadcrumbsResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockSetBreadcrumbsResponseError) 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 *RpcBlockCreate) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockCreate) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockCreate) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockCreateRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockCreateRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Position != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.Position)) - i-- - dAtA[i] = 0x20 - } - if m.Block != nil { - { - size, err := m.Block.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.TargetId) > 0 { - i -= len(m.TargetId) - copy(dAtA[i:], m.TargetId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.TargetId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockCreateResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockCreateResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockCreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - 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 *RpcBlockCreateResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockCreateResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockCreateResponseError) 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 *RpcBlockCreatePage) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockCreatePage) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockCreatePage) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockCreatePageRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockCreatePageRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockCreatePageRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Fields != nil { - { - size, err := m.Fields.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - if len(m.TemplateId) > 0 { - i -= len(m.TemplateId) - copy(dAtA[i:], m.TemplateId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.TemplateId))) - i-- - dAtA[i] = 0x2a - } - if m.Position != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.Position)) - i-- - dAtA[i] = 0x20 - } - if m.Details != nil { - { - size, err := m.Details.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.TargetId) > 0 { - i -= len(m.TargetId) - copy(dAtA[i:], m.TargetId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.TargetId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockCreatePageResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockCreatePageResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockCreatePageResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.TargetId) > 0 { - i -= len(m.TargetId) - copy(dAtA[i:], m.TargetId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.TargetId))) - i-- - dAtA[i] = 0x1a - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - 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 *RpcBlockCreatePageResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockCreatePageResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockCreatePageResponseError) 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 *RpcBlockCreateSet) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockCreateSet) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockCreateSet) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockCreateSetRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockCreateSetRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockCreateSetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Position != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.Position)) - i-- - dAtA[i] = 0x28 - } - if m.Details != nil { - { - size, err := m.Details.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.Source) > 0 { - for iNdEx := len(m.Source) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Source[iNdEx]) - copy(dAtA[i:], m.Source[iNdEx]) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Source[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if len(m.TargetId) > 0 { - i -= len(m.TargetId) - copy(dAtA[i:], m.TargetId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.TargetId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockCreateSetResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockCreateSetResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockCreateSetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.TargetId) > 0 { - i -= len(m.TargetId) - copy(dAtA[i:], m.TargetId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.TargetId))) - i-- - dAtA[i] = 0x1a - } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - 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 *RpcBlockCreateSetResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockCreateSetResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockCreateSetResponseError) 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 *RpcBlockUnlink) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockUnlink) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockUnlink) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockUnlinkRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockUnlinkRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockUnlinkRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.BlockIds) > 0 { - for iNdEx := len(m.BlockIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.BlockIds[iNdEx]) - copy(dAtA[i:], m.BlockIds[iNdEx]) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockIds[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockUnlinkResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockUnlinkResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockUnlinkResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcBlockUnlinkResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockUnlinkResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockUnlinkResponseError) 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 *RpcBlockClose) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockClose) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockClose) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcBlockCloseRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockCloseRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockCloseRequest) 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 = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcBlockCloseResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockCloseResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockCloseResponse) 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 *RpcBlockCloseResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcBlockCloseResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcBlockCloseResponseError) 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 *RpcWorkspace) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcWorkspace) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcWorkspace) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcWorkspaceGetCurrent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcWorkspaceGetCurrent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcWorkspaceGetCurrent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcWorkspaceGetCurrentRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcWorkspaceGetCurrentRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcWorkspaceGetCurrentRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcWorkspaceGetCurrentResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcWorkspaceGetCurrentResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcWorkspaceGetCurrentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.WorkspaceId) > 0 { - i -= len(m.WorkspaceId) - copy(dAtA[i:], m.WorkspaceId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.WorkspaceId))) - 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 *RpcWorkspaceGetCurrentResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcWorkspaceGetCurrentResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcWorkspaceGetCurrentResponseError) 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 *RpcWorkspaceGetAll) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcWorkspaceGetAll) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcWorkspaceGetAll) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcWorkspaceGetAllRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcWorkspaceGetAllRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcWorkspaceGetAllRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcWorkspaceGetAllResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcWorkspaceGetAllResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcWorkspaceGetAllResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.WorkspaceIds) > 0 { - for iNdEx := len(m.WorkspaceIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.WorkspaceIds[iNdEx]) - copy(dAtA[i:], m.WorkspaceIds[iNdEx]) - i = encodeVarintCommands(dAtA, i, uint64(len(m.WorkspaceIds[iNdEx]))) - 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 *RpcWorkspaceGetAllResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcWorkspaceGetAllResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcWorkspaceGetAllResponseError) 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 *RpcWorkspaceCreate) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcWorkspaceCreate) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcWorkspaceCreate) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcWorkspaceCreateRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcWorkspaceCreateRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcWorkspaceCreateRequest) 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] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcWorkspaceCreateResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcWorkspaceCreateResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcWorkspaceCreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.WorkspaceId) > 0 { - i -= len(m.WorkspaceId) - copy(dAtA[i:], m.WorkspaceId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.WorkspaceId))) - 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 *RpcWorkspaceCreateResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcWorkspaceCreateResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcWorkspaceCreateResponseError) 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 *RpcWorkspaceSetIsHighlighted) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcWorkspaceSetIsHighlighted) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcWorkspaceSetIsHighlighted) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcWorkspaceSetIsHighlightedRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcWorkspaceSetIsHighlightedRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcWorkspaceSetIsHighlightedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.IsHighlighted { - i-- - if m.IsHighlighted { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } - if len(m.ObjectId) > 0 { - i -= len(m.ObjectId) - copy(dAtA[i:], m.ObjectId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ObjectId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcWorkspaceSetIsHighlightedResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcWorkspaceSetIsHighlightedResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcWorkspaceSetIsHighlightedResponse) 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 *RpcWorkspaceSetIsHighlightedResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcWorkspaceSetIsHighlightedResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcWorkspaceSetIsHighlightedResponseError) 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 *RpcWorkspaceSelect) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcWorkspaceSelect) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcWorkspaceSelect) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcWorkspaceSelectRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcWorkspaceSelectRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcWorkspaceSelectRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.WorkspaceId) > 0 { - i -= len(m.WorkspaceId) - copy(dAtA[i:], m.WorkspaceId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.WorkspaceId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcWorkspaceSelectResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcWorkspaceSelectResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcWorkspaceSelectResponse) 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 *RpcWorkspaceSelectResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcWorkspaceSelectResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcWorkspaceSelectResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcAppShutdownResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -54444,7 +39872,7 @@ func (m *RpcAccountStopResponseError) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *RpcLog) Marshal() (dAtA []byte, err error) { +func (m *RpcAccountGetConfig) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -54454,12 +39882,12 @@ func (m *RpcLog) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcLog) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcAccountGetConfig) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcLog) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcAccountGetConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -54467,7 +39895,7 @@ func (m *RpcLog) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *RpcLogSend) Marshal() (dAtA []byte, err error) { +func (m *RpcAccountGetConfigGet) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -54477,12 +39905,12 @@ func (m *RpcLogSend) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcLogSend) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcAccountGetConfigGet) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcLogSend) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcAccountGetConfigGet) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -54490,7 +39918,7 @@ func (m *RpcLogSend) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *RpcLogSendRequest) Marshal() (dAtA []byte, err error) { +func (m *RpcAccountGetConfigGetRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -54500,51 +39928,115 @@ func (m *RpcLogSendRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcLogSendRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcAccountGetConfigGetRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcLogSendRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcAccountGetConfigGetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Level != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.Level)) + return len(dAtA) - i, nil +} + +func (m *RpcWorkspace) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcWorkspace) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcWorkspace) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcWorkspaceGetCurrent) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcWorkspaceGetCurrent) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcWorkspaceGetCurrent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcWorkspaceGetCurrentRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcWorkspaceGetCurrentRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcWorkspaceGetCurrentRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcWorkspaceGetCurrentResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcWorkspaceGetCurrentResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcWorkspaceGetCurrentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.WorkspaceId) > 0 { + i -= len(m.WorkspaceId) + copy(dAtA[i:], m.WorkspaceId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.WorkspaceId))) i-- - dAtA[i] = 0x10 + dAtA[i] = 0x12 } - 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 *RpcLogSendResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcLogSendResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcLogSendResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l if m.Error != nil { { size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) @@ -54560,7 +40052,7 @@ func (m *RpcLogSendResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *RpcLogSendResponseError) Marshal() (dAtA []byte, err error) { +func (m *RpcWorkspaceGetCurrentResponseError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -54570,12 +40062,12 @@ func (m *RpcLogSendResponseError) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcLogSendResponseError) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcWorkspaceGetCurrentResponseError) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcLogSendResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcWorkspaceGetCurrentResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -54595,7 +40087,7 @@ func (m *RpcLogSendResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *RpcVersion) Marshal() (dAtA []byte, err error) { +func (m *RpcWorkspaceGetAll) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -54605,12 +40097,12 @@ func (m *RpcVersion) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcVersion) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcWorkspaceGetAll) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcVersion) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcWorkspaceGetAll) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -54618,7 +40110,7 @@ func (m *RpcVersion) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *RpcVersionGet) Marshal() (dAtA []byte, err error) { +func (m *RpcWorkspaceGetAllRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -54628,12 +40120,12 @@ func (m *RpcVersionGet) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcVersionGet) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcWorkspaceGetAllRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcVersionGet) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcWorkspaceGetAllRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -54641,7 +40133,7 @@ func (m *RpcVersionGet) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *RpcVersionGetRequest) Marshal() (dAtA []byte, err error) { +func (m *RpcWorkspaceGetAllResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -54651,1693 +40143,21 @@ func (m *RpcVersionGetRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcVersionGetRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcWorkspaceGetAllResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcVersionGetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcWorkspaceGetAllResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - return len(dAtA) - i, nil -} - -func (m *RpcVersionGetResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcVersionGetResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcVersionGetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Details) > 0 { - i -= len(m.Details) - copy(dAtA[i:], m.Details) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Details))) - i-- - dAtA[i] = 0x1a - } - 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 *RpcVersionGetResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcVersionGetResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcVersionGetResponseError) 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 *RpcFile) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcFile) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcFile) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcFileOffload) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcFileOffload) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcFileOffload) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcFileOffloadRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcFileOffloadRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcFileOffloadRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.IncludeNotPinned { - i-- - if m.IncludeNotPinned { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - 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 *RpcFileOffloadResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcFileOffloadResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcFileOffloadResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.BytesOffloaded != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.BytesOffloaded)) - i-- - dAtA[i] = 0x10 - } - 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 *RpcFileOffloadResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcFileOffloadResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcFileOffloadResponseError) 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 *RpcFileList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcFileList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcFileList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcFileListOffload) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcFileListOffload) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcFileListOffload) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcFileListOffloadRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcFileListOffloadRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcFileListOffloadRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.IncludeNotPinned { - i-- - if m.IncludeNotPinned { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } - if len(m.OnlyIds) > 0 { - for iNdEx := len(m.OnlyIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.OnlyIds[iNdEx]) - copy(dAtA[i:], m.OnlyIds[iNdEx]) - i = encodeVarintCommands(dAtA, i, uint64(len(m.OnlyIds[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *RpcFileListOffloadResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcFileListOffloadResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcFileListOffloadResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.BytesOffloaded != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.BytesOffloaded)) - i-- - dAtA[i] = 0x18 - } - if m.FilesOffloaded != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.FilesOffloaded)) - i-- - dAtA[i] = 0x10 - } - 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 *RpcFileListOffloadResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcFileListOffloadResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcFileListOffloadResponseError) 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 *RpcShutdown) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcShutdown) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcShutdown) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcShutdownRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcShutdownRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcShutdownRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcShutdownResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcShutdownResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcShutdownResponse) 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 *RpcShutdownResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcShutdownResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcShutdownResponseError) 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 *RpcDeviceState) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcDeviceState) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcDeviceState) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcDeviceStateRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcDeviceStateRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcDeviceStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.DeviceState != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.DeviceState)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *RpcDeviceStateResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcDeviceStateResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcDeviceStateResponse) 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 *RpcDeviceStateResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcDeviceStateResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcDeviceStateResponseError) 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 *RpcConfig) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcConfig) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcConfigGet) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcConfigGet) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcConfigGet) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcConfigGetRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcConfigGetRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcConfigGetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcConfigGetResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcConfigGetResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcConfigGetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.GatewayUrl) > 0 { - i -= len(m.GatewayUrl) - copy(dAtA[i:], m.GatewayUrl) - i = encodeVarintCommands(dAtA, i, uint64(len(m.GatewayUrl))) - i-- - dAtA[i] = 0x6 - i-- - dAtA[i] = 0xaa - } - if len(m.DeviceId) > 0 { - i -= len(m.DeviceId) - copy(dAtA[i:], m.DeviceId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.DeviceId))) - i-- - dAtA[i] = 0x42 - } - if len(m.MarketplaceTemplateId) > 0 { - i -= len(m.MarketplaceTemplateId) - copy(dAtA[i:], m.MarketplaceTemplateId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.MarketplaceTemplateId))) - i-- - dAtA[i] = 0x3a - } - if len(m.MarketplaceRelationId) > 0 { - i -= len(m.MarketplaceRelationId) - copy(dAtA[i:], m.MarketplaceRelationId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.MarketplaceRelationId))) - i-- - dAtA[i] = 0x32 - } - if len(m.MarketplaceTypeId) > 0 { - i -= len(m.MarketplaceTypeId) - copy(dAtA[i:], m.MarketplaceTypeId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.MarketplaceTypeId))) - i-- - dAtA[i] = 0x2a - } - if len(m.ProfileBlockId) > 0 { - i -= len(m.ProfileBlockId) - copy(dAtA[i:], m.ProfileBlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ProfileBlockId))) - i-- - dAtA[i] = 0x22 - } - if len(m.ArchiveBlockId) > 0 { - i -= len(m.ArchiveBlockId) - copy(dAtA[i:], m.ArchiveBlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ArchiveBlockId))) - i-- - dAtA[i] = 0x1a - } - if len(m.HomeBlockId) > 0 { - i -= len(m.HomeBlockId) - copy(dAtA[i:], m.HomeBlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.HomeBlockId))) - 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 *RpcConfigGetResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcConfigGetResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcConfigGetResponseError) 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 *RpcPing) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcPing) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcPing) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcPingRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcPingRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcPingRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.NumberOfEventsToSend != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.NumberOfEventsToSend)) - i-- - dAtA[i] = 0x10 - } - if m.Index != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.Index)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *RpcPingResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcPingResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcPingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Index != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.Index)) - i-- - dAtA[i] = 0x10 - } - 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 *RpcPingResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcPingResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcPingResponseError) 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 *RpcProcess) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcProcess) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcProcess) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcProcessCancel) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcProcessCancel) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcProcessCancel) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcProcessCancelRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcProcessCancelRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcProcessCancelRequest) 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 *RpcProcessCancelResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcProcessCancelResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcProcessCancelResponse) 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 *RpcProcessCancelResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcProcessCancelResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcProcessCancelResponseError) 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 *RpcLinkPreview) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcLinkPreview) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcLinkPreview) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcLinkPreviewRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcLinkPreviewRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcLinkPreviewRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Url) > 0 { - i -= len(m.Url) - copy(dAtA[i:], m.Url) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Url))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcLinkPreviewResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcLinkPreviewResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcLinkPreviewResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.LinkPreview != nil { - { - size, err := m.LinkPreview.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 *RpcLinkPreviewResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcLinkPreviewResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcLinkPreviewResponseError) 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 *RpcUploadFile) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcUploadFile) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcUploadFile) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcUploadFileRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcUploadFileRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcUploadFileRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Style != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.Style)) - i-- - dAtA[i] = 0x28 - } - if m.DisableEncryption { - i-- - if m.DisableEncryption { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if m.Type != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x18 - } - 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 len(m.Url) > 0 { - i -= len(m.Url) - copy(dAtA[i:], m.Url) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Url))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcUploadFileResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcUploadFileResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcUploadFileResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Hash) > 0 { - i -= len(m.Hash) - copy(dAtA[i:], m.Hash) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Hash))) - 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 *RpcUploadFileResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcUploadFileResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcUploadFileResponseError) 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 *RpcDownloadFile) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcDownloadFile) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcDownloadFile) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcDownloadFileRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcDownloadFileRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcDownloadFileRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Path) > 0 { - i -= len(m.Path) - copy(dAtA[i:], m.Path) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Path))) - i-- - dAtA[i] = 0x12 - } - if len(m.Hash) > 0 { - i -= len(m.Hash) - copy(dAtA[i:], m.Hash) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Hash))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcDownloadFileResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcDownloadFileResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcDownloadFileResponse) 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 *RpcDownloadFileResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcDownloadFileResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcDownloadFileResponseError) 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 *RpcNavigation) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcNavigation) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcNavigation) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcNavigationListObjects) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcNavigationListObjects) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcNavigationListObjects) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcNavigationListObjectsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcNavigationListObjectsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcNavigationListObjectsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Offset != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.Offset)) - i-- - dAtA[i] = 0x20 - } - if m.Limit != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.Limit)) - i-- - dAtA[i] = 0x18 - } - if len(m.FullText) > 0 { - i -= len(m.FullText) - copy(dAtA[i:], m.FullText) - i = encodeVarintCommands(dAtA, i, uint64(len(m.FullText))) - i-- - dAtA[i] = 0x12 - } - if m.Context != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.Context)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *RpcNavigationListObjectsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcNavigationListObjectsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcNavigationListObjectsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Objects) > 0 { - for iNdEx := len(m.Objects) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Objects[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } + if len(m.WorkspaceIds) > 0 { + for iNdEx := len(m.WorkspaceIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.WorkspaceIds[iNdEx]) + copy(dAtA[i:], m.WorkspaceIds[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.WorkspaceIds[iNdEx]))) i-- dAtA[i] = 0x12 } @@ -56357,7 +40177,7 @@ func (m *RpcNavigationListObjectsResponse) MarshalToSizedBuffer(dAtA []byte) (in return len(dAtA) - i, nil } -func (m *RpcNavigationListObjectsResponseError) Marshal() (dAtA []byte, err error) { +func (m *RpcWorkspaceGetAllResponseError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -56367,12 +40187,12 @@ func (m *RpcNavigationListObjectsResponseError) Marshal() (dAtA []byte, err erro return dAtA[:n], nil } -func (m *RpcNavigationListObjectsResponseError) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcWorkspaceGetAllResponseError) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcNavigationListObjectsResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcWorkspaceGetAllResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -56392,7 +40212,7 @@ func (m *RpcNavigationListObjectsResponseError) MarshalToSizedBuffer(dAtA []byte return len(dAtA) - i, nil } -func (m *RpcNavigationGetObjectInfoWithLinks) Marshal() (dAtA []byte, err error) { +func (m *RpcWorkspaceCreate) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -56402,12 +40222,12 @@ func (m *RpcNavigationGetObjectInfoWithLinks) Marshal() (dAtA []byte, err error) return dAtA[:n], nil } -func (m *RpcNavigationGetObjectInfoWithLinks) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcWorkspaceCreate) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcNavigationGetObjectInfoWithLinks) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcWorkspaceCreate) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -56415,7 +40235,7 @@ func (m *RpcNavigationGetObjectInfoWithLinks) MarshalToSizedBuffer(dAtA []byte) return len(dAtA) - i, nil } -func (m *RpcNavigationGetObjectInfoWithLinksRequest) Marshal() (dAtA []byte, err error) { +func (m *RpcWorkspaceCreateRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -56425,18 +40245,153 @@ func (m *RpcNavigationGetObjectInfoWithLinksRequest) Marshal() (dAtA []byte, err return dAtA[:n], nil } -func (m *RpcNavigationGetObjectInfoWithLinksRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcWorkspaceCreateRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcNavigationGetObjectInfoWithLinksRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcWorkspaceCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Context != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.Context)) + 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 *RpcWorkspaceCreateResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcWorkspaceCreateResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcWorkspaceCreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.WorkspaceId) > 0 { + i -= len(m.WorkspaceId) + copy(dAtA[i:], m.WorkspaceId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.WorkspaceId))) + 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 *RpcWorkspaceCreateResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcWorkspaceCreateResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcWorkspaceCreateResponseError) 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 *RpcWorkspaceSetIsHighlighted) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcWorkspaceSetIsHighlighted) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcWorkspaceSetIsHighlighted) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcWorkspaceSetIsHighlightedRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcWorkspaceSetIsHighlightedRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcWorkspaceSetIsHighlightedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.IsHighlighted { + i-- + if m.IsHighlighted { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } i-- dAtA[i] = 0x10 } @@ -56450,7 +40405,7 @@ func (m *RpcNavigationGetObjectInfoWithLinksRequest) MarshalToSizedBuffer(dAtA [ return len(dAtA) - i, nil } -func (m *RpcNavigationGetObjectInfoWithLinksResponse) Marshal() (dAtA []byte, err error) { +func (m *RpcWorkspaceSetIsHighlightedResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -56460,28 +40415,16 @@ func (m *RpcNavigationGetObjectInfoWithLinksResponse) Marshal() (dAtA []byte, er return dAtA[:n], nil } -func (m *RpcNavigationGetObjectInfoWithLinksResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcWorkspaceSetIsHighlightedResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcNavigationGetObjectInfoWithLinksResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcWorkspaceSetIsHighlightedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Object != nil { - { - size, err := m.Object.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]) @@ -56497,7 +40440,7 @@ func (m *RpcNavigationGetObjectInfoWithLinksResponse) MarshalToSizedBuffer(dAtA return len(dAtA) - i, nil } -func (m *RpcNavigationGetObjectInfoWithLinksResponseError) Marshal() (dAtA []byte, err error) { +func (m *RpcWorkspaceSetIsHighlightedResponseError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -56507,12 +40450,12 @@ func (m *RpcNavigationGetObjectInfoWithLinksResponseError) Marshal() (dAtA []byt return dAtA[:n], nil } -func (m *RpcNavigationGetObjectInfoWithLinksResponseError) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcWorkspaceSetIsHighlightedResponseError) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcNavigationGetObjectInfoWithLinksResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcWorkspaceSetIsHighlightedResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -56532,7 +40475,7 @@ func (m *RpcNavigationGetObjectInfoWithLinksResponseError) MarshalToSizedBuffer( return len(dAtA) - i, nil } -func (m *RpcHistory) Marshal() (dAtA []byte, err error) { +func (m *RpcWorkspaceSelect) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -56542,12 +40485,12 @@ func (m *RpcHistory) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcHistory) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcWorkspaceSelect) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcHistory) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcWorkspaceSelect) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -56555,7 +40498,7 @@ func (m *RpcHistory) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *RpcHistoryVersions) Marshal() (dAtA []byte, err error) { +func (m *RpcWorkspaceSelectRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -56565,12 +40508,112 @@ func (m *RpcHistoryVersions) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcHistoryVersions) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcWorkspaceSelectRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcHistoryVersions) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcWorkspaceSelectRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.WorkspaceId) > 0 { + i -= len(m.WorkspaceId) + copy(dAtA[i:], m.WorkspaceId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.WorkspaceId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcWorkspaceSelectResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcWorkspaceSelectResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcWorkspaceSelectResponse) 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 *RpcWorkspaceSelectResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcWorkspaceSelectResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcWorkspaceSelectResponseError) 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 *RpcWorkspaceExport) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcWorkspaceExport) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcWorkspaceExport) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -56578,7 +40621,7 @@ func (m *RpcHistoryVersions) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *RpcHistoryVersionsVersion) Marshal() (dAtA []byte, err error) { +func (m *RpcWorkspaceExportRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -56588,135 +40631,72 @@ func (m *RpcHistoryVersionsVersion) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcHistoryVersionsVersion) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcWorkspaceExportRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcHistoryVersionsVersion) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcWorkspaceExportRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.GroupId != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.GroupId)) + if len(m.WorkspaceId) > 0 { + i -= len(m.WorkspaceId) + copy(dAtA[i:], m.WorkspaceId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.WorkspaceId))) i-- - dAtA[i] = 0x30 + dAtA[i] = 0x12 } - if m.Time != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.Time)) + if len(m.Path) > 0 { + i -= len(m.Path) + copy(dAtA[i:], m.Path) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Path))) i-- - dAtA[i] = 0x28 + dAtA[i] = 0xa } - if len(m.AuthorName) > 0 { - i -= len(m.AuthorName) - copy(dAtA[i:], m.AuthorName) - i = encodeVarintCommands(dAtA, i, uint64(len(m.AuthorName))) - i-- - dAtA[i] = 0x22 + return len(dAtA) - i, nil +} + +func (m *RpcWorkspaceExportResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - if len(m.AuthorId) > 0 { - i -= len(m.AuthorId) - copy(dAtA[i:], m.AuthorId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.AuthorId))) + return dAtA[:n], nil +} + +func (m *RpcWorkspaceExportResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcWorkspaceExportResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } i-- dAtA[i] = 0x1a } - if len(m.PreviousIds) > 0 { - for iNdEx := len(m.PreviousIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.PreviousIds[iNdEx]) - copy(dAtA[i:], m.PreviousIds[iNdEx]) - i = encodeVarintCommands(dAtA, i, uint64(len(m.PreviousIds[iNdEx]))) - 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 *RpcHistoryVersionsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcHistoryVersionsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcHistoryVersionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Limit != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.Limit)) - i-- - dAtA[i] = 0x18 - } - if len(m.LastVersionId) > 0 { - i -= len(m.LastVersionId) - copy(dAtA[i:], m.LastVersionId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.LastVersionId))) + if len(m.Path) > 0 { + i -= len(m.Path) + copy(dAtA[i:], m.Path) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Path))) i-- dAtA[i] = 0x12 } - if len(m.PageId) > 0 { - i -= len(m.PageId) - copy(dAtA[i:], m.PageId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.PageId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcHistoryVersionsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcHistoryVersionsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcHistoryVersionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Versions) > 0 { - for iNdEx := len(m.Versions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Versions[iNdEx].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]) @@ -56732,7 +40712,7 @@ func (m *RpcHistoryVersionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, err return len(dAtA) - i, nil } -func (m *RpcHistoryVersionsResponseError) Marshal() (dAtA []byte, err error) { +func (m *RpcWorkspaceExportResponseError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -56742,12 +40722,12 @@ func (m *RpcHistoryVersionsResponseError) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcHistoryVersionsResponseError) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcWorkspaceExportResponseError) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcHistoryVersionsResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcWorkspaceExportResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -56767,7 +40747,7 @@ func (m *RpcHistoryVersionsResponseError) MarshalToSizedBuffer(dAtA []byte) (int return len(dAtA) - i, nil } -func (m *RpcHistoryShow) Marshal() (dAtA []byte, err error) { +func (m *RpcObject) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -56777,12 +40757,12 @@ func (m *RpcHistoryShow) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcHistoryShow) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcObject) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcHistoryShow) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcObject) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -56790,7 +40770,7 @@ func (m *RpcHistoryShow) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *RpcHistoryShowRequest) Marshal() (dAtA []byte, err error) { +func (m *RpcObjectOpen) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -56800,12 +40780,35 @@ func (m *RpcHistoryShowRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcHistoryShowRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcObjectOpen) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcHistoryShowRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcObjectOpen) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcObjectOpenRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectOpenRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectOpenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -56817,24 +40820,24 @@ func (m *RpcHistoryShowRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x1a } - if len(m.VersionId) > 0 { - i -= len(m.VersionId) - copy(dAtA[i:], m.VersionId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.VersionId))) + if len(m.ObjectId) > 0 { + i -= len(m.ObjectId) + copy(dAtA[i:], m.ObjectId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ObjectId))) i-- dAtA[i] = 0x12 } - if len(m.PageId) > 0 { - i -= len(m.PageId) - copy(dAtA[i:], m.PageId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.PageId))) + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *RpcHistoryShowResponse) Marshal() (dAtA []byte, err error) { +func (m *RpcObjectOpenResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -56844,12 +40847,247 @@ func (m *RpcHistoryShowResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcHistoryShowResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcObjectOpenResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcHistoryShowResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcObjectOpenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcObjectOpenResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectOpenResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectOpenResponseError) 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 *RpcObjectClose) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectClose) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectClose) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcObjectCloseRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectCloseRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectCloseRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ObjectId) > 0 { + i -= len(m.ObjectId) + copy(dAtA[i:], m.ObjectId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ObjectId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcObjectCloseResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectCloseResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectCloseResponse) 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 *RpcObjectCloseResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectCloseResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectCloseResponseError) 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 *RpcObjectShow) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectShow) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectShow) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcObjectShowRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectShowRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectShowRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -56859,23 +41097,48 @@ func (m *RpcHistoryShowResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) copy(dAtA[i:], m.TraceId) i = encodeVarintCommands(dAtA, i, uint64(len(m.TraceId))) i-- - dAtA[i] = 0x22 - } - if m.Version != nil { - { - size, err := m.Version.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x1a } - if m.ObjectShow != nil { + if len(m.ObjectId) > 0 { + i -= len(m.ObjectId) + copy(dAtA[i:], m.ObjectId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ObjectId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcObjectShowResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectShowResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectShowResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { { - size, err := m.ObjectShow.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -56900,7 +41163,7 @@ func (m *RpcHistoryShowResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *RpcHistoryShowResponseError) Marshal() (dAtA []byte, err error) { +func (m *RpcObjectShowResponseError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -56910,12 +41173,12 @@ func (m *RpcHistoryShowResponseError) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcHistoryShowResponseError) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcObjectShowResponseError) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcHistoryShowResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcObjectShowResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -56935,7 +41198,7 @@ func (m *RpcHistoryShowResponseError) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *RpcHistorySetVersion) Marshal() (dAtA []byte, err error) { +func (m *RpcObjectCreate) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -56945,12 +41208,12 @@ func (m *RpcHistorySetVersion) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcHistorySetVersion) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcObjectCreate) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcHistorySetVersion) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcObjectCreate) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -56958,7 +41221,7 @@ func (m *RpcHistorySetVersion) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *RpcHistorySetVersionRequest) Marshal() (dAtA []byte, err error) { +func (m *RpcObjectCreateRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -56968,165 +41231,12 @@ func (m *RpcHistorySetVersionRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcHistorySetVersionRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcObjectCreateRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcHistorySetVersionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.VersionId) > 0 { - i -= len(m.VersionId) - copy(dAtA[i:], m.VersionId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.VersionId))) - i-- - dAtA[i] = 0x12 - } - if len(m.PageId) > 0 { - i -= len(m.PageId) - copy(dAtA[i:], m.PageId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.PageId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcHistorySetVersionResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcHistorySetVersionResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcHistorySetVersionResponse) 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 *RpcHistorySetVersionResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcHistorySetVersionResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcHistorySetVersionResponseError) 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 *RpcPage) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcPage) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcPage) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcPageCreate) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcPageCreate) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcPageCreate) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcPageCreateRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcPageCreateRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcPageCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcObjectCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -57146,7 +41256,7 @@ func (m *RpcPageCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *RpcPageCreateResponse) Marshal() (dAtA []byte, err error) { +func (m *RpcObjectCreateResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -57156,12 +41266,12 @@ func (m *RpcPageCreateResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcPageCreateResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcObjectCreateResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcPageCreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcObjectCreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -57200,7 +41310,7 @@ func (m *RpcPageCreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *RpcPageCreateResponseError) Marshal() (dAtA []byte, err error) { +func (m *RpcObjectCreateResponseError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -57210,12 +41320,12 @@ func (m *RpcPageCreateResponseError) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcPageCreateResponseError) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcObjectCreateResponseError) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcPageCreateResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcObjectCreateResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -57235,7 +41345,7 @@ func (m *RpcPageCreateResponseError) MarshalToSizedBuffer(dAtA []byte) (int, err return len(dAtA) - i, nil } -func (m *RpcSet) Marshal() (dAtA []byte, err error) { +func (m *RpcObjectCreateSet) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -57245,12 +41355,12 @@ func (m *RpcSet) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcSet) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcObjectCreateSet) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcSet) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcObjectCreateSet) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -57258,7 +41368,7 @@ func (m *RpcSet) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *RpcSetCreate) Marshal() (dAtA []byte, err error) { +func (m *RpcObjectCreateSetRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -57268,35 +41378,12 @@ func (m *RpcSetCreate) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcSetCreate) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcObjectCreateSetRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcSetCreate) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcSetCreateRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcSetCreateRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcSetCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcObjectCreateSetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -57332,7 +41419,7 @@ func (m *RpcSetCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *RpcSetCreateResponse) Marshal() (dAtA []byte, err error) { +func (m *RpcObjectCreateSetResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -57342,12 +41429,12 @@ func (m *RpcSetCreateResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcSetCreateResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcObjectCreateSetResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcSetCreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcObjectCreateSetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -57386,7 +41473,7 @@ func (m *RpcSetCreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *RpcSetCreateResponseError) Marshal() (dAtA []byte, err error) { +func (m *RpcObjectCreateSetResponseError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -57396,12 +41483,5368 @@ func (m *RpcSetCreateResponseError) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcSetCreateResponseError) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcObjectCreateSetResponseError) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcSetCreateResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcObjectCreateSetResponseError) 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 *RpcObjectDuplicate) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectDuplicate) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectDuplicate) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcObjectDuplicateRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectDuplicateRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectDuplicateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcObjectDuplicateResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectDuplicateResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectDuplicateResponse) 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] = 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 *RpcObjectDuplicateResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectDuplicateResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectDuplicateResponseError) 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 *RpcObjectOpenBreadcrumbs) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectOpenBreadcrumbs) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectOpenBreadcrumbs) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcObjectOpenBreadcrumbsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectOpenBreadcrumbsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectOpenBreadcrumbsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TraceId) > 0 { + i -= len(m.TraceId) + copy(dAtA[i:], m.TraceId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.TraceId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcObjectOpenBreadcrumbsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectOpenBreadcrumbsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectOpenBreadcrumbsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.ObjectId) > 0 { + i -= len(m.ObjectId) + copy(dAtA[i:], m.ObjectId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ObjectId))) + 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 *RpcObjectOpenBreadcrumbsResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectOpenBreadcrumbsResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectOpenBreadcrumbsResponseError) 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 *RpcObjectSetBreadcrumbs) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectSetBreadcrumbs) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectSetBreadcrumbs) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcObjectSetBreadcrumbsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectSetBreadcrumbsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectSetBreadcrumbsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Ids) > 0 { + for iNdEx := len(m.Ids) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Ids[iNdEx]) + copy(dAtA[i:], m.Ids[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Ids[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.BreadcrumbsId) > 0 { + i -= len(m.BreadcrumbsId) + copy(dAtA[i:], m.BreadcrumbsId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BreadcrumbsId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcObjectSetBreadcrumbsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectSetBreadcrumbsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectSetBreadcrumbsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcObjectSetBreadcrumbsResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectSetBreadcrumbsResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectSetBreadcrumbsResponseError) 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 *RpcObjectImportMarkdown) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectImportMarkdown) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectImportMarkdown) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcObjectImportMarkdownRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectImportMarkdownRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectImportMarkdownRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ImportPath) > 0 { + i -= len(m.ImportPath) + copy(dAtA[i:], m.ImportPath) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ImportPath))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcObjectImportMarkdownResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectImportMarkdownResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectImportMarkdownResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.RootLinkIds) > 0 { + for iNdEx := len(m.RootLinkIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.RootLinkIds[iNdEx]) + copy(dAtA[i:], m.RootLinkIds[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.RootLinkIds[iNdEx]))) + 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 *RpcObjectImportMarkdownResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectImportMarkdownResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectImportMarkdownResponseError) 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 *RpcObjectShareByLink) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectShareByLink) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectShareByLink) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcObjectShareByLinkRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectShareByLinkRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectShareByLinkRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ObjectId) > 0 { + i -= len(m.ObjectId) + copy(dAtA[i:], m.ObjectId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ObjectId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcObjectShareByLinkResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectShareByLinkResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectShareByLinkResponse) 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] = 0x12 + } + if len(m.Link) > 0 { + i -= len(m.Link) + copy(dAtA[i:], m.Link) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Link))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcObjectShareByLinkResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectShareByLinkResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectShareByLinkResponseError) 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 *RpcObjectAddWithObjectId) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectAddWithObjectId) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectAddWithObjectId) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcObjectAddWithObjectIdRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectAddWithObjectIdRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectAddWithObjectIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Payload) > 0 { + i -= len(m.Payload) + copy(dAtA[i:], m.Payload) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Payload))) + i-- + dAtA[i] = 0x12 + } + if len(m.ObjectId) > 0 { + i -= len(m.ObjectId) + copy(dAtA[i:], m.ObjectId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ObjectId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcObjectAddWithObjectIdResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectAddWithObjectIdResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectAddWithObjectIdResponse) 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 *RpcObjectAddWithObjectIdResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectAddWithObjectIdResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectAddWithObjectIdResponseError) 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 *RpcObjectSearch) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectSearch) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectSearch) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcObjectSearchRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectSearchRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectSearchRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Keys) > 0 { + for iNdEx := len(m.Keys) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Keys[iNdEx]) + copy(dAtA[i:], m.Keys[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Keys[iNdEx]))) + i-- + dAtA[i] = 0x3a + } + } + if len(m.ObjectTypeFilter) > 0 { + for iNdEx := len(m.ObjectTypeFilter) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ObjectTypeFilter[iNdEx]) + copy(dAtA[i:], m.ObjectTypeFilter[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ObjectTypeFilter[iNdEx]))) + i-- + dAtA[i] = 0x32 + } + } + if m.Limit != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Limit)) + i-- + dAtA[i] = 0x28 + } + if m.Offset != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Offset)) + i-- + dAtA[i] = 0x20 + } + if len(m.FullText) > 0 { + i -= len(m.FullText) + copy(dAtA[i:], m.FullText) + i = encodeVarintCommands(dAtA, i, uint64(len(m.FullText))) + i-- + dAtA[i] = 0x1a + } + if len(m.Sorts) > 0 { + for iNdEx := len(m.Sorts) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Sorts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.Filters) > 0 { + for iNdEx := len(m.Filters) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Filters[iNdEx].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 *RpcObjectSearchResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectSearchResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectSearchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Records) > 0 { + for iNdEx := len(m.Records) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Records[iNdEx].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 *RpcObjectSearchResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectSearchResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectSearchResponseError) 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 *RpcObjectGraph) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectGraph) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectGraph) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcObjectGraphRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectGraphRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectGraphRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Keys) > 0 { + for iNdEx := len(m.Keys) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Keys[iNdEx]) + copy(dAtA[i:], m.Keys[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Keys[iNdEx]))) + i-- + dAtA[i] = 0x22 + } + } + if len(m.ObjectTypeFilter) > 0 { + for iNdEx := len(m.ObjectTypeFilter) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ObjectTypeFilter[iNdEx]) + copy(dAtA[i:], m.ObjectTypeFilter[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ObjectTypeFilter[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + if m.Limit != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Limit)) + i-- + dAtA[i] = 0x10 + } + if len(m.Filters) > 0 { + for iNdEx := len(m.Filters) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Filters[iNdEx].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 *RpcObjectGraphEdge) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectGraphEdge) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectGraphEdge) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Hidden { + i-- + if m.Hidden { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x40 + } + if len(m.IconEmoji) > 0 { + i -= len(m.IconEmoji) + copy(dAtA[i:], m.IconEmoji) + i = encodeVarintCommands(dAtA, i, uint64(len(m.IconEmoji))) + i-- + dAtA[i] = 0x3a + } + if len(m.IconImage) > 0 { + i -= len(m.IconImage) + copy(dAtA[i:], m.IconImage) + i = encodeVarintCommands(dAtA, i, uint64(len(m.IconImage))) + i-- + dAtA[i] = 0x32 + } + 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] = 0x2a + } + if m.Type != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x20 + } + 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] = 0x1a + } + if len(m.Target) > 0 { + i -= len(m.Target) + copy(dAtA[i:], m.Target) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Target))) + i-- + dAtA[i] = 0x12 + } + if len(m.Source) > 0 { + i -= len(m.Source) + copy(dAtA[i:], m.Source) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Source))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcObjectGraphResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectGraphResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectGraphResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Edges) > 0 { + for iNdEx := len(m.Edges) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Edges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.Nodes) > 0 { + for iNdEx := len(m.Nodes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Nodes[iNdEx].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 *RpcObjectGraphResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectGraphResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectGraphResponseError) 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 *RpcObjectSearchSubscribe) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectSearchSubscribe) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectSearchSubscribe) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcObjectSearchSubscribeRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectSearchSubscribeRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectSearchSubscribeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.NoDepSubscription { + i-- + if m.NoDepSubscription { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x68 + } + if len(m.IgnoreWorkspace) > 0 { + i -= len(m.IgnoreWorkspace) + copy(dAtA[i:], m.IgnoreWorkspace) + i = encodeVarintCommands(dAtA, i, uint64(len(m.IgnoreWorkspace))) + i-- + dAtA[i] = 0x62 + } + if len(m.Source) > 0 { + for iNdEx := len(m.Source) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Source[iNdEx]) + copy(dAtA[i:], m.Source[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Source[iNdEx]))) + i-- + dAtA[i] = 0x52 + } + } + if len(m.BeforeId) > 0 { + i -= len(m.BeforeId) + copy(dAtA[i:], m.BeforeId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BeforeId))) + i-- + dAtA[i] = 0x4a + } + if len(m.AfterId) > 0 { + i -= len(m.AfterId) + copy(dAtA[i:], m.AfterId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.AfterId))) + i-- + dAtA[i] = 0x42 + } + if len(m.Keys) > 0 { + for iNdEx := len(m.Keys) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Keys[iNdEx]) + copy(dAtA[i:], m.Keys[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Keys[iNdEx]))) + i-- + dAtA[i] = 0x3a + } + } + if m.Offset != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Offset)) + i-- + dAtA[i] = 0x30 + } + if m.Limit != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Limit)) + i-- + dAtA[i] = 0x28 + } + if len(m.Sorts) > 0 { + for iNdEx := len(m.Sorts) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Sorts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.Filters) > 0 { + for iNdEx := len(m.Filters) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Filters[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.SubId) > 0 { + i -= len(m.SubId) + copy(dAtA[i:], m.SubId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.SubId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcObjectSearchSubscribeResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectSearchSubscribeResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectSearchSubscribeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Counters != nil { + { + size, err := m.Counters.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if len(m.SubId) > 0 { + i -= len(m.SubId) + copy(dAtA[i:], m.SubId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.SubId))) + i-- + dAtA[i] = 0x22 + } + if len(m.Dependencies) > 0 { + for iNdEx := len(m.Dependencies) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Dependencies[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.Records) > 0 { + for iNdEx := len(m.Records) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Records[iNdEx].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 *RpcObjectSearchSubscribeResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectSearchSubscribeResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectSearchSubscribeResponseError) 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 *RpcObjectSubscribeIds) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectSubscribeIds) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectSubscribeIds) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcObjectSubscribeIdsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectSubscribeIdsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectSubscribeIdsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.IgnoreWorkspace) > 0 { + i -= len(m.IgnoreWorkspace) + copy(dAtA[i:], m.IgnoreWorkspace) + i = encodeVarintCommands(dAtA, i, uint64(len(m.IgnoreWorkspace))) + i-- + dAtA[i] = 0x5a + } + if len(m.Keys) > 0 { + for iNdEx := len(m.Keys) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Keys[iNdEx]) + copy(dAtA[i:], m.Keys[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Keys[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + if len(m.Ids) > 0 { + for iNdEx := len(m.Ids) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Ids[iNdEx]) + copy(dAtA[i:], m.Ids[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Ids[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.SubId) > 0 { + i -= len(m.SubId) + copy(dAtA[i:], m.SubId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.SubId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcObjectSubscribeIdsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectSubscribeIdsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectSubscribeIdsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.SubId) > 0 { + i -= len(m.SubId) + copy(dAtA[i:], m.SubId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.SubId))) + i-- + dAtA[i] = 0x22 + } + if len(m.Dependencies) > 0 { + for iNdEx := len(m.Dependencies) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Dependencies[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + } + if len(m.Records) > 0 { + for iNdEx := len(m.Records) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Records[iNdEx].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 *RpcObjectSubscribeIdsResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectSubscribeIdsResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectSubscribeIdsResponseError) 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 *RpcObjectSearchUnsubscribe) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectSearchUnsubscribe) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectSearchUnsubscribe) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcObjectSearchUnsubscribeRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectSearchUnsubscribeRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectSearchUnsubscribeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.SubIds) > 0 { + for iNdEx := len(m.SubIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.SubIds[iNdEx]) + copy(dAtA[i:], m.SubIds[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.SubIds[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *RpcObjectSearchUnsubscribeResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectSearchUnsubscribeResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectSearchUnsubscribeResponse) 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 *RpcObjectSearchUnsubscribeResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectSearchUnsubscribeResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectSearchUnsubscribeResponseError) 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 *RpcObjectSetLayout) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectSetLayout) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectSetLayout) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcObjectSetLayoutRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectSetLayoutRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectSetLayoutRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Layout != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Layout)) + i-- + dAtA[i] = 0x18 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcObjectSetLayoutResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectSetLayoutResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectSetLayoutResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcObjectSetLayoutResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectSetLayoutResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectSetLayoutResponseError) 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 *RpcObjectSetIsFavorite) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectSetIsFavorite) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectSetIsFavorite) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcObjectSetIsFavoriteRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectSetIsFavoriteRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectSetIsFavoriteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.IsFavorite { + i-- + if m.IsFavorite { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcObjectSetIsFavoriteResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectSetIsFavoriteResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectSetIsFavoriteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcObjectSetIsFavoriteResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectSetIsFavoriteResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectSetIsFavoriteResponseError) 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 *RpcObjectSetIsArchived) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectSetIsArchived) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectSetIsArchived) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcObjectSetIsArchivedRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectSetIsArchivedRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectSetIsArchivedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.IsArchived { + i-- + if m.IsArchived { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcObjectSetIsArchivedResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectSetIsArchivedResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectSetIsArchivedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcObjectSetIsArchivedResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectSetIsArchivedResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectSetIsArchivedResponseError) 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 *RpcObjectSetObjectType) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectSetObjectType) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectSetObjectType) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcObjectSetObjectTypeRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectSetObjectTypeRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectSetObjectTypeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ObjectTypeUrl) > 0 { + i -= len(m.ObjectTypeUrl) + copy(dAtA[i:], m.ObjectTypeUrl) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ObjectTypeUrl))) + i-- + dAtA[i] = 0x1a + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcObjectSetObjectTypeResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectSetObjectTypeResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectSetObjectTypeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcObjectSetObjectTypeResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectSetObjectTypeResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectSetObjectTypeResponseError) 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 *RpcObjectSetDetails) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectSetDetails) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectSetDetails) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcObjectSetDetailsDetail) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectSetDetailsDetail) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectSetDetailsDetail) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != nil { + { + size, err := m.Value.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcObjectSetDetailsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectSetDetailsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectSetDetailsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Details) > 0 { + for iNdEx := len(m.Details) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Details[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcObjectSetDetailsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectSetDetailsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectSetDetailsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcObjectSetDetailsResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectSetDetailsResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectSetDetailsResponseError) 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 *RpcObjectToSet) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectToSet) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectToSet) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcObjectToSetRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectToSetRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectToSetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Source) > 0 { + for iNdEx := len(m.Source) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Source[iNdEx]) + copy(dAtA[i:], m.Source[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Source[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcObjectToSetResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectToSetResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectToSetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.SetId) > 0 { + i -= len(m.SetId) + copy(dAtA[i:], m.SetId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.SetId))) + 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 *RpcObjectToSetResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectToSetResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectToSetResponseError) 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 *RpcObjectUndoRedoCounter) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectUndoRedoCounter) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectUndoRedoCounter) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Redo != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Redo)) + i-- + dAtA[i] = 0x10 + } + if m.Undo != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Undo)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *RpcObjectUndo) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectUndo) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectUndo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcObjectUndoRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectUndoRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectUndoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcObjectUndoResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectUndoResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectUndoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Counters != nil { + { + size, err := m.Counters.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.Event != nil { + { + size, err := m.Event.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 *RpcObjectUndoResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectUndoResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectUndoResponseError) 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 *RpcObjectRedo) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectRedo) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectRedo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcObjectRedoRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectRedoRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectRedoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcObjectRedoResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectRedoResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectRedoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Counters != nil { + { + size, err := m.Counters.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.Event != nil { + { + size, err := m.Event.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 *RpcObjectRedoResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectRedoResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectRedoResponseError) 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 *RpcObjectListDuplicate) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectListDuplicate) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectListDuplicate) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcObjectListDuplicateRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectListDuplicateRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectListDuplicateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ObjectIds) > 0 { + for iNdEx := len(m.ObjectIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ObjectIds[iNdEx]) + copy(dAtA[i:], m.ObjectIds[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ObjectIds[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *RpcObjectListDuplicateResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectListDuplicateResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectListDuplicateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Ids) > 0 { + for iNdEx := len(m.Ids) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Ids[iNdEx]) + copy(dAtA[i:], m.Ids[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Ids[iNdEx]))) + 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 *RpcObjectListDuplicateResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectListDuplicateResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectListDuplicateResponseError) 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 *RpcObjectListDelete) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectListDelete) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectListDelete) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcObjectListDeleteRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectListDeleteRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectListDeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ObjectIds) > 0 { + for iNdEx := len(m.ObjectIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ObjectIds[iNdEx]) + copy(dAtA[i:], m.ObjectIds[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ObjectIds[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *RpcObjectListDeleteResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectListDeleteResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectListDeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcObjectListDeleteResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectListDeleteResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectListDeleteResponseError) 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 *RpcObjectListSetIsArchived) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectListSetIsArchived) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectListSetIsArchived) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcObjectListSetIsArchivedRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectListSetIsArchivedRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectListSetIsArchivedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.IsArchived { + i-- + if m.IsArchived { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if len(m.ObjectIds) > 0 { + for iNdEx := len(m.ObjectIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ObjectIds[iNdEx]) + copy(dAtA[i:], m.ObjectIds[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ObjectIds[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *RpcObjectListSetIsArchivedResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectListSetIsArchivedResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectListSetIsArchivedResponse) 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 *RpcObjectListSetIsArchivedResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectListSetIsArchivedResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectListSetIsArchivedResponseError) 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 *RpcObjectListSetIsFavorite) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectListSetIsFavorite) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectListSetIsFavorite) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcObjectListSetIsFavoriteRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectListSetIsFavoriteRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectListSetIsFavoriteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.IsFavorite { + i-- + if m.IsFavorite { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if len(m.ObjectIds) > 0 { + for iNdEx := len(m.ObjectIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ObjectIds[iNdEx]) + copy(dAtA[i:], m.ObjectIds[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ObjectIds[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *RpcObjectListSetIsFavoriteResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectListSetIsFavoriteResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectListSetIsFavoriteResponse) 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 *RpcObjectListSetIsFavoriteResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectListSetIsFavoriteResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectListSetIsFavoriteResponseError) 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 *RpcObjectApplyTemplate) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectApplyTemplate) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectApplyTemplate) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcObjectApplyTemplateRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectApplyTemplateRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectApplyTemplateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TemplateId) > 0 { + i -= len(m.TemplateId) + copy(dAtA[i:], m.TemplateId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.TemplateId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcObjectApplyTemplateResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectApplyTemplateResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectApplyTemplateResponse) 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 *RpcObjectApplyTemplateResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectApplyTemplateResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectApplyTemplateResponseError) 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 *RpcObjectListExport) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectListExport) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectListExport) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcObjectListExportRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectListExportRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectListExportRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.IncludeFiles { + i-- + if m.IncludeFiles { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x30 + } + if m.IncludeNested { + i-- + if m.IncludeNested { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if m.Zip { + i-- + if m.Zip { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if m.Format != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Format)) + i-- + dAtA[i] = 0x18 + } + if len(m.ObjectIds) > 0 { + for iNdEx := len(m.ObjectIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ObjectIds[iNdEx]) + copy(dAtA[i:], m.ObjectIds[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ObjectIds[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.Path) > 0 { + i -= len(m.Path) + copy(dAtA[i:], m.Path) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Path))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcObjectListExportResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectListExportResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectListExportResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Succeed != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Succeed)) + i-- + dAtA[i] = 0x20 + } + if m.Event != nil { + { + size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.Path) > 0 { + i -= len(m.Path) + copy(dAtA[i:], m.Path) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Path))) + 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 *RpcObjectListExportResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectListExportResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectListExportResponseError) 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 *RpcObjectRelation) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectRelation) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectRelation) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcObjectRelationAdd) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectRelationAdd) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectRelationAdd) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcObjectRelationAddRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectRelationAddRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectRelationAddRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Relation != nil { + { + size, err := m.Relation.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcObjectRelationAddResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectRelationAddResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectRelationAddResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Relation != nil { + { + size, err := m.Relation.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if len(m.RelationKey) > 0 { + i -= len(m.RelationKey) + copy(dAtA[i:], m.RelationKey) + i = encodeVarintCommands(dAtA, i, uint64(len(m.RelationKey))) + i-- + dAtA[i] = 0x1a + } + if m.Event != nil { + { + size, err := m.Event.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 *RpcObjectRelationAddResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectRelationAddResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectRelationAddResponseError) 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 *RpcObjectRelationUpdate) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectRelationUpdate) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectRelationUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcObjectRelationUpdateRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectRelationUpdateRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectRelationUpdateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Relation != nil { + { + size, err := m.Relation.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.RelationKey) > 0 { + i -= len(m.RelationKey) + copy(dAtA[i:], m.RelationKey) + i = encodeVarintCommands(dAtA, i, uint64(len(m.RelationKey))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcObjectRelationUpdateResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectRelationUpdateResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectRelationUpdateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcObjectRelationUpdateResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectRelationUpdateResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectRelationUpdateResponseError) 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 *RpcObjectRelationDelete) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectRelationDelete) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectRelationDelete) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcObjectRelationDeleteRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectRelationDeleteRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectRelationDeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.RelationKey) > 0 { + i -= len(m.RelationKey) + copy(dAtA[i:], m.RelationKey) + i = encodeVarintCommands(dAtA, i, uint64(len(m.RelationKey))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcObjectRelationDeleteResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectRelationDeleteResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectRelationDeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + 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 *RpcObjectRelationDeleteResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectRelationDeleteResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectRelationDeleteResponseError) 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 *RpcObjectRelationListAvailable) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectRelationListAvailable) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectRelationListAvailable) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcObjectRelationListAvailableRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectRelationListAvailableRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectRelationListAvailableRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcObjectRelationListAvailableResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectRelationListAvailableResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectRelationListAvailableResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Relations) > 0 { + for iNdEx := len(m.Relations) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Relations[iNdEx].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 *RpcObjectRelationListAvailableResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectRelationListAvailableResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectRelationListAvailableResponseError) 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 *RpcObjectRelationAddFeatured) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectRelationAddFeatured) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectRelationAddFeatured) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcObjectRelationAddFeaturedRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectRelationAddFeaturedRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectRelationAddFeaturedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Relations) > 0 { + for iNdEx := len(m.Relations) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Relations[iNdEx]) + copy(dAtA[i:], m.Relations[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Relations[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcObjectRelationAddFeaturedResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectRelationAddFeaturedResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectRelationAddFeaturedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcObjectRelationAddFeaturedResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectRelationAddFeaturedResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectRelationAddFeaturedResponseError) 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 *RpcObjectRelationRemoveFeatured) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectRelationRemoveFeatured) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectRelationRemoveFeatured) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcObjectRelationRemoveFeaturedRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectRelationRemoveFeaturedRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectRelationRemoveFeaturedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Relations) > 0 { + for iNdEx := len(m.Relations) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Relations[iNdEx]) + copy(dAtA[i:], m.Relations[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Relations[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcObjectRelationRemoveFeaturedResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectRelationRemoveFeaturedResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectRelationRemoveFeaturedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcObjectRelationRemoveFeaturedResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectRelationRemoveFeaturedResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectRelationRemoveFeaturedResponseError) 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 *RpcObjectRelationOption) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectRelationOption) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectRelationOption) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcObjectRelationOptionAdd) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectRelationOptionAdd) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectRelationOptionAdd) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcObjectRelationOptionAddRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectRelationOptionAddRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectRelationOptionAddRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Option != nil { + { + size, err := m.Option.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.RelationKey) > 0 { + i -= len(m.RelationKey) + copy(dAtA[i:], m.RelationKey) + i = encodeVarintCommands(dAtA, i, uint64(len(m.RelationKey))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcObjectRelationOptionAddResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectRelationOptionAddResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectRelationOptionAddResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Option != nil { + { + size, err := m.Option.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.Event != nil { + { + size, err := m.Event.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 *RpcObjectRelationOptionAddResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectRelationOptionAddResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectRelationOptionAddResponseError) 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 *RpcObjectRelationOptionUpdate) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectRelationOptionUpdate) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectRelationOptionUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcObjectRelationOptionUpdateRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectRelationOptionUpdateRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectRelationOptionUpdateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Option != nil { + { + size, err := m.Option.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.RelationKey) > 0 { + i -= len(m.RelationKey) + copy(dAtA[i:], m.RelationKey) + i = encodeVarintCommands(dAtA, i, uint64(len(m.RelationKey))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcObjectRelationOptionUpdateResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectRelationOptionUpdateResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectRelationOptionUpdateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcObjectRelationOptionUpdateResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectRelationOptionUpdateResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectRelationOptionUpdateResponseError) 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 *RpcObjectRelationOptionDelete) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectRelationOptionDelete) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectRelationOptionDelete) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcObjectRelationOptionDeleteRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectRelationOptionDeleteRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectRelationOptionDeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ConfirmRemoveAllValuesInRecords { + i-- + if m.ConfirmRemoveAllValuesInRecords { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if len(m.OptionId) > 0 { + i -= len(m.OptionId) + copy(dAtA[i:], m.OptionId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.OptionId))) + i-- + dAtA[i] = 0x1a + } + if len(m.RelationKey) > 0 { + i -= len(m.RelationKey) + copy(dAtA[i:], m.RelationKey) + i = encodeVarintCommands(dAtA, i, uint64(len(m.RelationKey))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcObjectRelationOptionDeleteResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectRelationOptionDeleteResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectRelationOptionDeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcObjectRelationOptionDeleteResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcObjectRelationOptionDeleteResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcObjectRelationOptionDeleteResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -58300,7 +47743,7 @@ func (m *RpcObjectTypeRelationListResponseError) MarshalToSizedBuffer(dAtA []byt return len(dAtA) - i, nil } -func (m *RpcObject) Marshal() (dAtA []byte, err error) { +func (m *RpcHistory) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -58310,12 +47753,12 @@ func (m *RpcObject) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcObject) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcHistory) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcObject) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcHistory) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -58323,7 +47766,7 @@ func (m *RpcObject) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *RpcObjectShareByLink) Marshal() (dAtA []byte, err error) { +func (m *RpcHistoryVersion) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -58333,388 +47776,60 @@ func (m *RpcObjectShareByLink) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcObjectShareByLink) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcHistoryVersion) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcObjectShareByLink) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcHistoryVersion) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - return len(dAtA) - i, nil -} - -func (m *RpcObjectShareByLinkRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectShareByLinkRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectShareByLinkRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ObjectId) > 0 { - i -= len(m.ObjectId) - copy(dAtA[i:], m.ObjectId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ObjectId))) + if m.GroupId != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.GroupId)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x30 } - return len(dAtA) - i, nil -} - -func (m *RpcObjectShareByLinkResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectShareByLinkResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectShareByLinkResponse) 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)) - } + if m.Time != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Time)) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x28 } - if len(m.Link) > 0 { - i -= len(m.Link) - copy(dAtA[i:], m.Link) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Link))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcObjectShareByLinkResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectShareByLinkResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectShareByLinkResponseError) 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 *RpcObjectAddWithObjectId) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectAddWithObjectId) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectAddWithObjectId) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcObjectAddWithObjectIdRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectAddWithObjectIdRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectAddWithObjectIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Payload) > 0 { - i -= len(m.Payload) - copy(dAtA[i:], m.Payload) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Payload))) - i-- - dAtA[i] = 0x12 - } - if len(m.ObjectId) > 0 { - i -= len(m.ObjectId) - copy(dAtA[i:], m.ObjectId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ObjectId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcObjectAddWithObjectIdResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectAddWithObjectIdResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectAddWithObjectIdResponse) 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 *RpcObjectAddWithObjectIdResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectAddWithObjectIdResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectAddWithObjectIdResponseError) 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 *RpcObjectRelationAdd) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectRelationAdd) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectRelationAdd) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcObjectRelationAddRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectRelationAddRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectRelationAddRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Relation != nil { - { - size, err := m.Relation.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcObjectRelationAddResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectRelationAddResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectRelationAddResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Relation != nil { - { - size, err := m.Relation.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } + if len(m.AuthorName) > 0 { + i -= len(m.AuthorName) + copy(dAtA[i:], m.AuthorName) + i = encodeVarintCommands(dAtA, i, uint64(len(m.AuthorName))) i-- dAtA[i] = 0x22 } - if len(m.RelationKey) > 0 { - i -= len(m.RelationKey) - copy(dAtA[i:], m.RelationKey) - i = encodeVarintCommands(dAtA, i, uint64(len(m.RelationKey))) + if len(m.AuthorId) > 0 { + i -= len(m.AuthorId) + copy(dAtA[i:], m.AuthorId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.AuthorId))) i-- dAtA[i] = 0x1a } - if m.Event != nil { - { - size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) + if len(m.PreviousIds) > 0 { + for iNdEx := len(m.PreviousIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.PreviousIds[iNdEx]) + copy(dAtA[i:], m.PreviousIds[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.PreviousIds[iNdEx]))) + i-- + dAtA[i] = 0x12 } - 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)) - } + 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 *RpcObjectRelationAddResponseError) Marshal() (dAtA []byte, err error) { +func (m *RpcHistoryGetVersions) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -58724,47 +47839,12 @@ func (m *RpcObjectRelationAddResponseError) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcObjectRelationAddResponseError) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcHistoryGetVersions) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcObjectRelationAddResponseError) 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 *RpcObjectRelationUpdate) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectRelationUpdate) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectRelationUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcHistoryGetVersions) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -58772,7 +47852,7 @@ func (m *RpcObjectRelationUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *RpcObjectRelationUpdateRequest) Marshal() (dAtA []byte, err error) { +func (m *RpcHistoryGetVersionsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -58782,46 +47862,39 @@ func (m *RpcObjectRelationUpdateRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcObjectRelationUpdateRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcHistoryGetVersionsRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcObjectRelationUpdateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcHistoryGetVersionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Relation != nil { - { - size, err := m.Relation.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } + if m.Limit != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Limit)) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x18 } - if len(m.RelationKey) > 0 { - i -= len(m.RelationKey) - copy(dAtA[i:], m.RelationKey) - i = encodeVarintCommands(dAtA, i, uint64(len(m.RelationKey))) + if len(m.LastVersionId) > 0 { + i -= len(m.LastVersionId) + copy(dAtA[i:], m.LastVersionId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.LastVersionId))) i-- dAtA[i] = 0x12 } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + if len(m.PageId) > 0 { + i -= len(m.PageId) + copy(dAtA[i:], m.PageId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.PageId))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *RpcObjectRelationUpdateResponse) Marshal() (dAtA []byte, err error) { +func (m *RpcHistoryGetVersionsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -58831,776 +47904,20 @@ func (m *RpcObjectRelationUpdateResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcObjectRelationUpdateResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcHistoryGetVersionsResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcObjectRelationUpdateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcHistoryGetVersionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcObjectRelationUpdateResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectRelationUpdateResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectRelationUpdateResponseError) 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 *RpcObjectRelationDelete) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectRelationDelete) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectRelationDelete) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcObjectRelationDeleteRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectRelationDeleteRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectRelationDeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.RelationKey) > 0 { - i -= len(m.RelationKey) - copy(dAtA[i:], m.RelationKey) - i = encodeVarintCommands(dAtA, i, uint64(len(m.RelationKey))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcObjectRelationDeleteResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectRelationDeleteResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectRelationDeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - 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 *RpcObjectRelationDeleteResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectRelationDeleteResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectRelationDeleteResponseError) 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 *RpcObjectRelationOptionAdd) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectRelationOptionAdd) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectRelationOptionAdd) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcObjectRelationOptionAddRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectRelationOptionAddRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectRelationOptionAddRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Option != nil { - { - size, err := m.Option.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.RelationKey) > 0 { - i -= len(m.RelationKey) - copy(dAtA[i:], m.RelationKey) - i = encodeVarintCommands(dAtA, i, uint64(len(m.RelationKey))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcObjectRelationOptionAddResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectRelationOptionAddResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectRelationOptionAddResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Option != nil { - { - size, err := m.Option.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.Event != nil { - { - size, err := m.Event.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 *RpcObjectRelationOptionAddResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectRelationOptionAddResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectRelationOptionAddResponseError) 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 *RpcObjectRelationOptionUpdate) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectRelationOptionUpdate) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectRelationOptionUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcObjectRelationOptionUpdateRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectRelationOptionUpdateRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectRelationOptionUpdateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Option != nil { - { - size, err := m.Option.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.RelationKey) > 0 { - i -= len(m.RelationKey) - copy(dAtA[i:], m.RelationKey) - i = encodeVarintCommands(dAtA, i, uint64(len(m.RelationKey))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcObjectRelationOptionUpdateResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectRelationOptionUpdateResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectRelationOptionUpdateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcObjectRelationOptionUpdateResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectRelationOptionUpdateResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectRelationOptionUpdateResponseError) 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 *RpcObjectRelationOptionDelete) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectRelationOptionDelete) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectRelationOptionDelete) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcObjectRelationOptionDeleteRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectRelationOptionDeleteRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectRelationOptionDeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ConfirmRemoveAllValuesInRecords { - i-- - if m.ConfirmRemoveAllValuesInRecords { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if len(m.OptionId) > 0 { - i -= len(m.OptionId) - copy(dAtA[i:], m.OptionId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.OptionId))) - i-- - dAtA[i] = 0x1a - } - if len(m.RelationKey) > 0 { - i -= len(m.RelationKey) - copy(dAtA[i:], m.RelationKey) - i = encodeVarintCommands(dAtA, i, uint64(len(m.RelationKey))) - i-- - dAtA[i] = 0x12 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcObjectRelationOptionDeleteResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectRelationOptionDeleteResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectRelationOptionDeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcObjectRelationOptionDeleteResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectRelationOptionDeleteResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectRelationOptionDeleteResponseError) 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 *RpcObjectRelationListAvailable) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectRelationListAvailable) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectRelationListAvailable) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcObjectRelationListAvailableRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectRelationListAvailableRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectRelationListAvailableRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcObjectRelationListAvailableResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectRelationListAvailableResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectRelationListAvailableResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Relations) > 0 { - for iNdEx := len(m.Relations) - 1; iNdEx >= 0; iNdEx-- { + if len(m.Versions) > 0 { + for iNdEx := len(m.Versions) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.Relations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Versions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -59626,7 +47943,7 @@ func (m *RpcObjectRelationListAvailableResponse) MarshalToSizedBuffer(dAtA []byt return len(dAtA) - i, nil } -func (m *RpcObjectRelationListAvailableResponseError) Marshal() (dAtA []byte, err error) { +func (m *RpcHistoryGetVersionsResponseError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -59636,12 +47953,12 @@ func (m *RpcObjectRelationListAvailableResponseError) Marshal() (dAtA []byte, er return dAtA[:n], nil } -func (m *RpcObjectRelationListAvailableResponseError) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcHistoryGetVersionsResponseError) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcObjectRelationListAvailableResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcHistoryGetVersionsResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -59661,7 +47978,7 @@ func (m *RpcObjectRelationListAvailableResponseError) MarshalToSizedBuffer(dAtA return len(dAtA) - i, nil } -func (m *RpcObjectSearch) Marshal() (dAtA []byte, err error) { +func (m *RpcHistoryShowVersion) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -59671,12 +47988,12 @@ func (m *RpcObjectSearch) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcObjectSearch) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcHistoryShowVersion) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcObjectSearch) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcHistoryShowVersion) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -59684,7 +48001,7 @@ func (m *RpcObjectSearch) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *RpcObjectSearchRequest) Marshal() (dAtA []byte, err error) { +func (m *RpcHistoryShowVersionRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -59694,83 +48011,1119 @@ func (m *RpcObjectSearchRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcObjectSearchRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcHistoryShowVersionRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcObjectSearchRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcHistoryShowVersionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Keys) > 0 { - for iNdEx := len(m.Keys) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Keys[iNdEx]) - copy(dAtA[i:], m.Keys[iNdEx]) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Keys[iNdEx]))) + if len(m.TraceId) > 0 { + i -= len(m.TraceId) + copy(dAtA[i:], m.TraceId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.TraceId))) + i-- + dAtA[i] = 0x1a + } + if len(m.VersionId) > 0 { + i -= len(m.VersionId) + copy(dAtA[i:], m.VersionId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.VersionId))) + i-- + dAtA[i] = 0x12 + } + if len(m.PageId) > 0 { + i -= len(m.PageId) + copy(dAtA[i:], m.PageId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.PageId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcHistoryShowVersionResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcHistoryShowVersionResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcHistoryShowVersionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TraceId) > 0 { + i -= len(m.TraceId) + copy(dAtA[i:], m.TraceId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.TraceId))) + i-- + dAtA[i] = 0x22 + } + if m.Version != nil { + { + size, err := m.Version.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.ObjectShow != nil { + { + size, err := m.ObjectShow.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 *RpcHistoryShowVersionResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcHistoryShowVersionResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcHistoryShowVersionResponseError) 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 *RpcHistorySetVersion) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcHistorySetVersion) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcHistorySetVersion) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcHistorySetVersionRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcHistorySetVersionRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcHistorySetVersionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.VersionId) > 0 { + i -= len(m.VersionId) + copy(dAtA[i:], m.VersionId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.VersionId))) + i-- + dAtA[i] = 0x12 + } + if len(m.PageId) > 0 { + i -= len(m.PageId) + copy(dAtA[i:], m.PageId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.PageId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcHistorySetVersionResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcHistorySetVersionResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcHistorySetVersionResponse) 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 *RpcHistorySetVersionResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcHistorySetVersionResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcHistorySetVersionResponseError) 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 *RpcFile) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcFile) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcFile) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcFileOffload) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcFileOffload) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcFileOffload) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcFileOffloadRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcFileOffloadRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcFileOffloadRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.IncludeNotPinned { + i-- + if m.IncludeNotPinned { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + 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 *RpcFileOffloadResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcFileOffloadResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcFileOffloadResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.BytesOffloaded != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.BytesOffloaded)) + i-- + dAtA[i] = 0x10 + } + 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 *RpcFileOffloadResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcFileOffloadResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcFileOffloadResponseError) 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 *RpcFileListOffload) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcFileListOffload) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcFileListOffload) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcFileListOffloadRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcFileListOffloadRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcFileListOffloadRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.IncludeNotPinned { + i-- + if m.IncludeNotPinned { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if len(m.OnlyIds) > 0 { + for iNdEx := len(m.OnlyIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.OnlyIds[iNdEx]) + copy(dAtA[i:], m.OnlyIds[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.OnlyIds[iNdEx]))) i-- - dAtA[i] = 0x3a + dAtA[i] = 0xa } } - if len(m.ObjectTypeFilter) > 0 { - for iNdEx := len(m.ObjectTypeFilter) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.ObjectTypeFilter[iNdEx]) - copy(dAtA[i:], m.ObjectTypeFilter[iNdEx]) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ObjectTypeFilter[iNdEx]))) - i-- - dAtA[i] = 0x32 - } + return len(dAtA) - i, nil +} + +func (m *RpcFileListOffloadResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - if m.Limit != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.Limit)) + return dAtA[:n], nil +} + +func (m *RpcFileListOffloadResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcFileListOffloadResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.BytesOffloaded != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.BytesOffloaded)) + i-- + dAtA[i] = 0x18 + } + if m.FilesOffloaded != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.FilesOffloaded)) + i-- + dAtA[i] = 0x10 + } + 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 *RpcFileListOffloadResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcFileListOffloadResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcFileListOffloadResponseError) 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 *RpcFileUpload) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcFileUpload) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcFileUpload) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcFileUploadRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcFileUploadRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcFileUploadRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Style != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Style)) i-- dAtA[i] = 0x28 } + if m.DisableEncryption { + i-- + if m.DisableEncryption { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if m.Type != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x18 + } + 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 len(m.Url) > 0 { + i -= len(m.Url) + copy(dAtA[i:], m.Url) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Url))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcFileUploadResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcFileUploadResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcFileUploadResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Hash) > 0 { + i -= len(m.Hash) + copy(dAtA[i:], m.Hash) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Hash))) + 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 *RpcFileUploadResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcFileUploadResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcFileUploadResponseError) 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 *RpcFileDownload) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcFileDownload) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcFileDownload) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcFileDownloadRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcFileDownloadRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcFileDownloadRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Path) > 0 { + i -= len(m.Path) + copy(dAtA[i:], m.Path) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Path))) + i-- + dAtA[i] = 0x12 + } + if len(m.Hash) > 0 { + i -= len(m.Hash) + copy(dAtA[i:], m.Hash) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Hash))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcFileDownloadResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcFileDownloadResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcFileDownloadResponse) 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 *RpcFileDownloadResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcFileDownloadResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcFileDownloadResponseError) 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 *RpcFileDrop) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcFileDrop) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcFileDrop) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcFileDropRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcFileDropRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcFileDropRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.LocalFilePaths) > 0 { + for iNdEx := len(m.LocalFilePaths) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.LocalFilePaths[iNdEx]) + copy(dAtA[i:], m.LocalFilePaths[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.LocalFilePaths[iNdEx]))) + i-- + dAtA[i] = 0x22 + } + } + if m.Position != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Position)) + i-- + dAtA[i] = 0x18 + } + if len(m.DropTargetId) > 0 { + i -= len(m.DropTargetId) + copy(dAtA[i:], m.DropTargetId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.DropTargetId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcFileDropResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcFileDropResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcFileDropResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcFileDropResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcFileDropResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcFileDropResponseError) 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 *RpcNavigation) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcNavigation) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcNavigation) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcNavigationListObjects) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcNavigationListObjects) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcNavigationListObjects) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcNavigationListObjectsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcNavigationListObjectsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcNavigationListObjectsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l if m.Offset != 0 { i = encodeVarintCommands(dAtA, i, uint64(m.Offset)) i-- dAtA[i] = 0x20 } + if m.Limit != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Limit)) + i-- + dAtA[i] = 0x18 + } if len(m.FullText) > 0 { i -= len(m.FullText) copy(dAtA[i:], m.FullText) i = encodeVarintCommands(dAtA, i, uint64(len(m.FullText))) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x12 } - if len(m.Sorts) > 0 { - for iNdEx := len(m.Sorts) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Sorts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.Filters) > 0 { - for iNdEx := len(m.Filters) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Filters[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } + if m.Context != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Context)) + i-- + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *RpcObjectSearchResponse) Marshal() (dAtA []byte, err error) { +func (m *RpcNavigationListObjectsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -59780,20 +49133,20 @@ func (m *RpcObjectSearchResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcObjectSearchResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcNavigationListObjectsResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcObjectSearchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcNavigationListObjectsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Records) > 0 { - for iNdEx := len(m.Records) - 1; iNdEx >= 0; iNdEx-- { + if len(m.Objects) > 0 { + for iNdEx := len(m.Objects) - 1; iNdEx >= 0; iNdEx-- { { - size, err := m.Records[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Objects[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -59819,7 +49172,7 @@ func (m *RpcObjectSearchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *RpcObjectSearchResponseError) Marshal() (dAtA []byte, err error) { +func (m *RpcNavigationListObjectsResponseError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -59829,12 +49182,12 @@ func (m *RpcObjectSearchResponseError) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcObjectSearchResponseError) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcNavigationListObjectsResponseError) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcObjectSearchResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcNavigationListObjectsResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -59854,7 +49207,7 @@ func (m *RpcObjectSearchResponseError) MarshalToSizedBuffer(dAtA []byte) (int, e return len(dAtA) - i, nil } -func (m *RpcObjectGraph) Marshal() (dAtA []byte, err error) { +func (m *RpcNavigationGetObjectInfoWithLinks) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -59864,12 +49217,12 @@ func (m *RpcObjectGraph) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcObjectGraph) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcNavigationGetObjectInfoWithLinks) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcObjectGraph) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcNavigationGetObjectInfoWithLinks) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -59877,7 +49230,7 @@ func (m *RpcObjectGraph) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *RpcObjectGraphRequest) Marshal() (dAtA []byte, err error) { +func (m *RpcNavigationGetObjectInfoWithLinksRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -59887,137 +49240,32 @@ func (m *RpcObjectGraphRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcObjectGraphRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcNavigationGetObjectInfoWithLinksRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcObjectGraphRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcNavigationGetObjectInfoWithLinksRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Keys) > 0 { - for iNdEx := len(m.Keys) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Keys[iNdEx]) - copy(dAtA[i:], m.Keys[iNdEx]) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Keys[iNdEx]))) - i-- - dAtA[i] = 0x22 - } - } - if len(m.ObjectTypeFilter) > 0 { - for iNdEx := len(m.ObjectTypeFilter) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.ObjectTypeFilter[iNdEx]) - copy(dAtA[i:], m.ObjectTypeFilter[iNdEx]) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ObjectTypeFilter[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if m.Limit != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.Limit)) + if m.Context != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Context)) i-- dAtA[i] = 0x10 } - if len(m.Filters) > 0 { - for iNdEx := len(m.Filters) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Filters[iNdEx].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 *RpcObjectGraphEdge) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectGraphEdge) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectGraphEdge) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Hidden { - i-- - if m.Hidden { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x40 - } - if len(m.IconEmoji) > 0 { - i -= len(m.IconEmoji) - copy(dAtA[i:], m.IconEmoji) - i = encodeVarintCommands(dAtA, i, uint64(len(m.IconEmoji))) - i-- - dAtA[i] = 0x3a - } - if len(m.IconImage) > 0 { - i -= len(m.IconImage) - copy(dAtA[i:], m.IconImage) - i = encodeVarintCommands(dAtA, i, uint64(len(m.IconImage))) - i-- - dAtA[i] = 0x32 - } - 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] = 0x2a - } - if m.Type != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x20 - } - 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] = 0x1a - } - if len(m.Target) > 0 { - i -= len(m.Target) - copy(dAtA[i:], m.Target) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Target))) - i-- - dAtA[i] = 0x12 - } - if len(m.Source) > 0 { - i -= len(m.Source) - copy(dAtA[i:], m.Source) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Source))) + if len(m.ObjectId) > 0 { + i -= len(m.ObjectId) + copy(dAtA[i:], m.ObjectId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ObjectId))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *RpcObjectGraphResponse) Marshal() (dAtA []byte, err error) { +func (m *RpcNavigationGetObjectInfoWithLinksResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -60027,740 +49275,19 @@ func (m *RpcObjectGraphResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcObjectGraphResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcNavigationGetObjectInfoWithLinksResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcObjectGraphResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcNavigationGetObjectInfoWithLinksResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Edges) > 0 { - for iNdEx := len(m.Edges) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Edges[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if len(m.Nodes) > 0 { - for iNdEx := len(m.Nodes) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Nodes[iNdEx].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 { + if m.Object != 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 *RpcObjectGraphResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectGraphResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectGraphResponseError) 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 *RpcObjectSearchSubscribe) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectSearchSubscribe) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectSearchSubscribe) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcObjectSearchSubscribeRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectSearchSubscribeRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectSearchSubscribeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.NoDepSubscription { - i-- - if m.NoDepSubscription { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x68 - } - if len(m.IgnoreWorkspace) > 0 { - i -= len(m.IgnoreWorkspace) - copy(dAtA[i:], m.IgnoreWorkspace) - i = encodeVarintCommands(dAtA, i, uint64(len(m.IgnoreWorkspace))) - i-- - dAtA[i] = 0x62 - } - if len(m.Source) > 0 { - for iNdEx := len(m.Source) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Source[iNdEx]) - copy(dAtA[i:], m.Source[iNdEx]) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Source[iNdEx]))) - i-- - dAtA[i] = 0x52 - } - } - if len(m.BeforeId) > 0 { - i -= len(m.BeforeId) - copy(dAtA[i:], m.BeforeId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BeforeId))) - i-- - dAtA[i] = 0x4a - } - if len(m.AfterId) > 0 { - i -= len(m.AfterId) - copy(dAtA[i:], m.AfterId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.AfterId))) - i-- - dAtA[i] = 0x42 - } - if len(m.Keys) > 0 { - for iNdEx := len(m.Keys) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Keys[iNdEx]) - copy(dAtA[i:], m.Keys[iNdEx]) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Keys[iNdEx]))) - i-- - dAtA[i] = 0x3a - } - } - if m.Offset != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.Offset)) - i-- - dAtA[i] = 0x30 - } - if m.Limit != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.Limit)) - i-- - dAtA[i] = 0x28 - } - if len(m.Sorts) > 0 { - for iNdEx := len(m.Sorts) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Sorts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if len(m.Filters) > 0 { - for iNdEx := len(m.Filters) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Filters[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.SubId) > 0 { - i -= len(m.SubId) - copy(dAtA[i:], m.SubId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.SubId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcObjectSearchSubscribeResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectSearchSubscribeResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectSearchSubscribeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Counters != nil { - { - size, err := m.Counters.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if len(m.SubId) > 0 { - i -= len(m.SubId) - copy(dAtA[i:], m.SubId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.SubId))) - i-- - dAtA[i] = 0x22 - } - if len(m.Dependencies) > 0 { - for iNdEx := len(m.Dependencies) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Dependencies[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if len(m.Records) > 0 { - for iNdEx := len(m.Records) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Records[iNdEx].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 *RpcObjectSearchSubscribeResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectSearchSubscribeResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectSearchSubscribeResponseError) 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 *RpcObjectIdsSubscribe) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectIdsSubscribe) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectIdsSubscribe) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcObjectIdsSubscribeRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectIdsSubscribeRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectIdsSubscribeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.IgnoreWorkspace) > 0 { - i -= len(m.IgnoreWorkspace) - copy(dAtA[i:], m.IgnoreWorkspace) - i = encodeVarintCommands(dAtA, i, uint64(len(m.IgnoreWorkspace))) - i-- - dAtA[i] = 0x5a - } - if len(m.Keys) > 0 { - for iNdEx := len(m.Keys) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Keys[iNdEx]) - copy(dAtA[i:], m.Keys[iNdEx]) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Keys[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if len(m.Ids) > 0 { - for iNdEx := len(m.Ids) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Ids[iNdEx]) - copy(dAtA[i:], m.Ids[iNdEx]) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Ids[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(m.SubId) > 0 { - i -= len(m.SubId) - copy(dAtA[i:], m.SubId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.SubId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcObjectIdsSubscribeResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectIdsSubscribeResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectIdsSubscribeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.SubId) > 0 { - i -= len(m.SubId) - copy(dAtA[i:], m.SubId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.SubId))) - i-- - dAtA[i] = 0x22 - } - if len(m.Dependencies) > 0 { - for iNdEx := len(m.Dependencies) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Dependencies[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if len(m.Records) > 0 { - for iNdEx := len(m.Records) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Records[iNdEx].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 *RpcObjectIdsSubscribeResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectIdsSubscribeResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectIdsSubscribeResponseError) 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 *RpcObjectSearchUnsubscribe) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectSearchUnsubscribe) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectSearchUnsubscribe) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcObjectSearchUnsubscribeRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectSearchUnsubscribeRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectSearchUnsubscribeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.SubIds) > 0 { - for iNdEx := len(m.SubIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.SubIds[iNdEx]) - copy(dAtA[i:], m.SubIds[iNdEx]) - i = encodeVarintCommands(dAtA, i, uint64(len(m.SubIds[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *RpcObjectSearchUnsubscribeResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectSearchUnsubscribeResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectSearchUnsubscribeResponse) 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 *RpcObjectSearchUnsubscribeResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectSearchUnsubscribeResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectSearchUnsubscribeResponseError) 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 *RpcObjectSetLayout) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectSetLayout) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectSetLayout) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcObjectSetLayoutRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectSetLayoutRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectSetLayoutRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Layout != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.Layout)) - i-- - dAtA[i] = 0x18 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcObjectSetLayoutResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectSetLayoutResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectSetLayoutResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Object.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -60785,7 +49312,7 @@ func (m *RpcObjectSetLayoutResponse) MarshalToSizedBuffer(dAtA []byte) (int, err return len(dAtA) - i, nil } -func (m *RpcObjectSetLayoutResponseError) Marshal() (dAtA []byte, err error) { +func (m *RpcNavigationGetObjectInfoWithLinksResponseError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -60795,12 +49322,12 @@ func (m *RpcObjectSetLayoutResponseError) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcObjectSetLayoutResponseError) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcNavigationGetObjectInfoWithLinksResponseError) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcObjectSetLayoutResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcNavigationGetObjectInfoWithLinksResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -60820,7 +49347,7 @@ func (m *RpcObjectSetLayoutResponseError) MarshalToSizedBuffer(dAtA []byte) (int return len(dAtA) - i, nil } -func (m *RpcObjectSetIsFavorite) Marshal() (dAtA []byte, err error) { +func (m *RpcTemplate) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -60830,12 +49357,12 @@ func (m *RpcObjectSetIsFavorite) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcObjectSetIsFavorite) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcTemplate) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcObjectSetIsFavorite) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcTemplate) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -60843,7 +49370,7 @@ func (m *RpcObjectSetIsFavorite) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *RpcObjectSetIsFavoriteRequest) Marshal() (dAtA []byte, err error) { +func (m *RpcTemplateCreateFromObject) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -60853,134 +49380,12 @@ func (m *RpcObjectSetIsFavoriteRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcObjectSetIsFavoriteRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcTemplateCreateFromObject) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcObjectSetIsFavoriteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.IsFavorite { - i-- - if m.IsFavorite { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcObjectSetIsFavoriteResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectSetIsFavoriteResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectSetIsFavoriteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcObjectSetIsFavoriteResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectSetIsFavoriteResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectSetIsFavoriteResponseError) 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 *RpcObjectSetIsArchived) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectSetIsArchived) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectSetIsArchived) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcTemplateCreateFromObject) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -60988,7 +49393,7 @@ func (m *RpcObjectSetIsArchived) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *RpcObjectSetIsArchivedRequest) Marshal() (dAtA []byte, err error) { +func (m *RpcTemplateCreateFromObjectRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -60998,1827 +49403,12 @@ func (m *RpcObjectSetIsArchivedRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcObjectSetIsArchivedRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcTemplateCreateFromObjectRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcObjectSetIsArchivedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.IsArchived { - i-- - if m.IsArchived { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcObjectSetIsArchivedResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectSetIsArchivedResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectSetIsArchivedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcObjectSetIsArchivedResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectSetIsArchivedResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectSetIsArchivedResponseError) 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 *RpcObjectFeaturedRelation) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectFeaturedRelation) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectFeaturedRelation) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcObjectFeaturedRelationAdd) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectFeaturedRelationAdd) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectFeaturedRelationAdd) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcObjectFeaturedRelationAddRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectFeaturedRelationAddRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectFeaturedRelationAddRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Relations) > 0 { - for iNdEx := len(m.Relations) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Relations[iNdEx]) - copy(dAtA[i:], m.Relations[iNdEx]) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Relations[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcObjectFeaturedRelationAddResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectFeaturedRelationAddResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectFeaturedRelationAddResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcObjectFeaturedRelationAddResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectFeaturedRelationAddResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectFeaturedRelationAddResponseError) 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 *RpcObjectFeaturedRelationRemove) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectFeaturedRelationRemove) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectFeaturedRelationRemove) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcObjectFeaturedRelationRemoveRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectFeaturedRelationRemoveRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectFeaturedRelationRemoveRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Relations) > 0 { - for iNdEx := len(m.Relations) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Relations[iNdEx]) - copy(dAtA[i:], m.Relations[iNdEx]) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Relations[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcObjectFeaturedRelationRemoveResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectFeaturedRelationRemoveResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectFeaturedRelationRemoveResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcObjectFeaturedRelationRemoveResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectFeaturedRelationRemoveResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectFeaturedRelationRemoveResponseError) 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 *RpcObjectToSet) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectToSet) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectToSet) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcObjectToSetRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectToSetRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectToSetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Source) > 0 { - for iNdEx := len(m.Source) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Source[iNdEx]) - copy(dAtA[i:], m.Source[iNdEx]) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Source[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcObjectToSetResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectToSetResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectToSetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.SetId) > 0 { - i -= len(m.SetId) - copy(dAtA[i:], m.SetId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.SetId))) - 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 *RpcObjectToSetResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectToSetResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectToSetResponseError) 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 *RpcObjectList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcObjectListDuplicate) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectListDuplicate) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectListDuplicate) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcObjectListDuplicateRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectListDuplicateRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectListDuplicateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ObjectIds) > 0 { - for iNdEx := len(m.ObjectIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.ObjectIds[iNdEx]) - copy(dAtA[i:], m.ObjectIds[iNdEx]) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ObjectIds[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *RpcObjectListDuplicateResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectListDuplicateResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectListDuplicateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Ids) > 0 { - for iNdEx := len(m.Ids) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Ids[iNdEx]) - copy(dAtA[i:], m.Ids[iNdEx]) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Ids[iNdEx]))) - 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 *RpcObjectListDuplicateResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectListDuplicateResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectListDuplicateResponseError) 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 *RpcObjectListDelete) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectListDelete) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectListDelete) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcObjectListDeleteRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectListDeleteRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectListDeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ObjectIds) > 0 { - for iNdEx := len(m.ObjectIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.ObjectIds[iNdEx]) - copy(dAtA[i:], m.ObjectIds[iNdEx]) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ObjectIds[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *RpcObjectListDeleteResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectListDeleteResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectListDeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.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 *RpcObjectListDeleteResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectListDeleteResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectListDeleteResponseError) 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 *RpcObjectListSet) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectListSet) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectListSet) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcObjectListSetIsArchived) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectListSetIsArchived) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectListSetIsArchived) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcObjectListSetIsArchivedRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectListSetIsArchivedRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectListSetIsArchivedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.IsArchived { - i-- - if m.IsArchived { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } - if len(m.ObjectIds) > 0 { - for iNdEx := len(m.ObjectIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.ObjectIds[iNdEx]) - copy(dAtA[i:], m.ObjectIds[iNdEx]) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ObjectIds[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *RpcObjectListSetIsArchivedResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectListSetIsArchivedResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectListSetIsArchivedResponse) 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 *RpcObjectListSetIsArchivedResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectListSetIsArchivedResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectListSetIsArchivedResponseError) 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 *RpcObjectListSetIsFavorite) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectListSetIsFavorite) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectListSetIsFavorite) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcObjectListSetIsFavoriteRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectListSetIsFavoriteRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectListSetIsFavoriteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.IsFavorite { - i-- - if m.IsFavorite { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } - if len(m.ObjectIds) > 0 { - for iNdEx := len(m.ObjectIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.ObjectIds[iNdEx]) - copy(dAtA[i:], m.ObjectIds[iNdEx]) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ObjectIds[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *RpcObjectListSetIsFavoriteResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectListSetIsFavoriteResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectListSetIsFavoriteResponse) 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 *RpcObjectListSetIsFavoriteResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcObjectListSetIsFavoriteResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcObjectListSetIsFavoriteResponseError) 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 *RpcExport) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcExport) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcExport) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcExportRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcExportRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcExportRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.IncludeFiles { - i-- - if m.IncludeFiles { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x30 - } - if m.IncludeNested { - i-- - if m.IncludeNested { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x28 - } - if m.Zip { - i-- - if m.Zip { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if m.Format != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.Format)) - i-- - dAtA[i] = 0x18 - } - if len(m.DocIds) > 0 { - for iNdEx := len(m.DocIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.DocIds[iNdEx]) - copy(dAtA[i:], m.DocIds[iNdEx]) - i = encodeVarintCommands(dAtA, i, uint64(len(m.DocIds[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(m.Path) > 0 { - i -= len(m.Path) - copy(dAtA[i:], m.Path) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Path))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcExportResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcExportResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcExportResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Succeed != 0 { - i = encodeVarintCommands(dAtA, i, uint64(m.Succeed)) - i-- - dAtA[i] = 0x20 - } - if m.Event != nil { - { - size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.Path) > 0 { - i -= len(m.Path) - copy(dAtA[i:], m.Path) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Path))) - 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 *RpcExportResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcExportResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcExportResponseError) 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 *RpcExportWorkspace) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcExportWorkspace) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcExportWorkspace) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcExportWorkspaceRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcExportWorkspaceRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcExportWorkspaceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.WorkspaceId) > 0 { - i -= len(m.WorkspaceId) - copy(dAtA[i:], m.WorkspaceId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.WorkspaceId))) - i-- - dAtA[i] = 0x12 - } - if len(m.Path) > 0 { - i -= len(m.Path) - copy(dAtA[i:], m.Path) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Path))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcExportWorkspaceResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcExportWorkspaceResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcExportWorkspaceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.Path) > 0 { - i -= len(m.Path) - copy(dAtA[i:], m.Path) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Path))) - 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 *RpcExportWorkspaceResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcExportWorkspaceResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcExportWorkspaceResponseError) 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 *RpcExportTemplates) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcExportTemplates) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcExportTemplates) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcExportTemplatesRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcExportTemplatesRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcExportTemplatesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Path) > 0 { - i -= len(m.Path) - copy(dAtA[i:], m.Path) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Path))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcExportTemplatesResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcExportTemplatesResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcExportTemplatesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.Path) > 0 { - i -= len(m.Path) - copy(dAtA[i:], m.Path) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Path))) - 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 *RpcExportTemplatesResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcExportTemplatesResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcExportTemplatesResponseError) 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 *RpcExportLocalstore) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcExportLocalstore) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcExportLocalstore) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcExportLocalstoreRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcExportLocalstoreRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcExportLocalstoreRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.DocIds) > 0 { - for iNdEx := len(m.DocIds) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.DocIds[iNdEx]) - copy(dAtA[i:], m.DocIds[iNdEx]) - i = encodeVarintCommands(dAtA, i, uint64(len(m.DocIds[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(m.Path) > 0 { - i -= len(m.Path) - copy(dAtA[i:], m.Path) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Path))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RpcExportLocalstoreResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcExportLocalstoreResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcExportLocalstoreResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Event != nil { - { - size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintCommands(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.Path) > 0 { - i -= len(m.Path) - copy(dAtA[i:], m.Path) - i = encodeVarintCommands(dAtA, i, uint64(len(m.Path))) - 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 *RpcExportLocalstoreResponseError) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcExportLocalstoreResponseError) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcExportLocalstoreResponseError) 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 *RpcMakeTemplate) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcMakeTemplate) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcMakeTemplate) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *RpcMakeTemplateRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RpcMakeTemplateRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RpcMakeTemplateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcTemplateCreateFromObjectRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -62833,7 +49423,7 @@ func (m *RpcMakeTemplateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *RpcMakeTemplateResponse) Marshal() (dAtA []byte, err error) { +func (m *RpcTemplateCreateFromObjectResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -62843,12 +49433,12 @@ func (m *RpcMakeTemplateResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcMakeTemplateResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcTemplateCreateFromObjectResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcMakeTemplateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcTemplateCreateFromObjectResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -62875,7 +49465,7 @@ func (m *RpcMakeTemplateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *RpcMakeTemplateResponseError) Marshal() (dAtA []byte, err error) { +func (m *RpcTemplateCreateFromObjectResponseError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -62885,12 +49475,12 @@ func (m *RpcMakeTemplateResponseError) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcMakeTemplateResponseError) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcTemplateCreateFromObjectResponseError) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcMakeTemplateResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcTemplateCreateFromObjectResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -62910,7 +49500,7 @@ func (m *RpcMakeTemplateResponseError) MarshalToSizedBuffer(dAtA []byte) (int, e return len(dAtA) - i, nil } -func (m *RpcMakeTemplateByObjectType) Marshal() (dAtA []byte, err error) { +func (m *RpcTemplateCreateFromObjectType) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -62920,12 +49510,12 @@ func (m *RpcMakeTemplateByObjectType) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcMakeTemplateByObjectType) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcTemplateCreateFromObjectType) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcMakeTemplateByObjectType) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcTemplateCreateFromObjectType) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -62933,7 +49523,7 @@ func (m *RpcMakeTemplateByObjectType) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *RpcMakeTemplateByObjectTypeRequest) Marshal() (dAtA []byte, err error) { +func (m *RpcTemplateCreateFromObjectTypeRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -62943,12 +49533,12 @@ func (m *RpcMakeTemplateByObjectTypeRequest) Marshal() (dAtA []byte, err error) return dAtA[:n], nil } -func (m *RpcMakeTemplateByObjectTypeRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcTemplateCreateFromObjectTypeRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcMakeTemplateByObjectTypeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcTemplateCreateFromObjectTypeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -62963,7 +49553,7 @@ func (m *RpcMakeTemplateByObjectTypeRequest) MarshalToSizedBuffer(dAtA []byte) ( return len(dAtA) - i, nil } -func (m *RpcMakeTemplateByObjectTypeResponse) Marshal() (dAtA []byte, err error) { +func (m *RpcTemplateCreateFromObjectTypeResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -62973,12 +49563,12 @@ func (m *RpcMakeTemplateByObjectTypeResponse) Marshal() (dAtA []byte, err error) return dAtA[:n], nil } -func (m *RpcMakeTemplateByObjectTypeResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcTemplateCreateFromObjectTypeResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcMakeTemplateByObjectTypeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcTemplateCreateFromObjectTypeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -63005,7 +49595,7 @@ func (m *RpcMakeTemplateByObjectTypeResponse) MarshalToSizedBuffer(dAtA []byte) return len(dAtA) - i, nil } -func (m *RpcMakeTemplateByObjectTypeResponseError) Marshal() (dAtA []byte, err error) { +func (m *RpcTemplateCreateFromObjectTypeResponseError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -63015,12 +49605,12 @@ func (m *RpcMakeTemplateByObjectTypeResponseError) Marshal() (dAtA []byte, err e return dAtA[:n], nil } -func (m *RpcMakeTemplateByObjectTypeResponseError) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcTemplateCreateFromObjectTypeResponseError) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcMakeTemplateByObjectTypeResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcTemplateCreateFromObjectTypeResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -63040,7 +49630,7 @@ func (m *RpcMakeTemplateByObjectTypeResponseError) MarshalToSizedBuffer(dAtA []b return len(dAtA) - i, nil } -func (m *RpcCloneTemplate) Marshal() (dAtA []byte, err error) { +func (m *RpcTemplateClone) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -63050,12 +49640,12 @@ func (m *RpcCloneTemplate) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcCloneTemplate) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcTemplateClone) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcCloneTemplate) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcTemplateClone) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -63063,7 +49653,7 @@ func (m *RpcCloneTemplate) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *RpcCloneTemplateRequest) Marshal() (dAtA []byte, err error) { +func (m *RpcTemplateCloneRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -63073,12 +49663,12 @@ func (m *RpcCloneTemplateRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcCloneTemplateRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcTemplateCloneRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcCloneTemplateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcTemplateCloneRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -63093,7 +49683,7 @@ func (m *RpcCloneTemplateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *RpcCloneTemplateResponse) Marshal() (dAtA []byte, err error) { +func (m *RpcTemplateCloneResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -63103,12 +49693,12 @@ func (m *RpcCloneTemplateResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcCloneTemplateResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcTemplateCloneResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcCloneTemplateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcTemplateCloneResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -63135,7 +49725,7 @@ func (m *RpcCloneTemplateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error return len(dAtA) - i, nil } -func (m *RpcCloneTemplateResponseError) Marshal() (dAtA []byte, err error) { +func (m *RpcTemplateCloneResponseError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -63145,12 +49735,12 @@ func (m *RpcCloneTemplateResponseError) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcCloneTemplateResponseError) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcTemplateCloneResponseError) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcCloneTemplateResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcTemplateCloneResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -63170,7 +49760,7 @@ func (m *RpcCloneTemplateResponseError) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } -func (m *RpcObjectDuplicate) Marshal() (dAtA []byte, err error) { +func (m *RpcTemplateExportAll) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -63180,12 +49770,12 @@ func (m *RpcObjectDuplicate) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcObjectDuplicate) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcTemplateExportAll) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcObjectDuplicate) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcTemplateExportAll) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -63193,7 +49783,7 @@ func (m *RpcObjectDuplicate) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *RpcObjectDuplicateRequest) Marshal() (dAtA []byte, err error) { +func (m *RpcTemplateExportAllRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -63203,27 +49793,27 @@ func (m *RpcObjectDuplicateRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcObjectDuplicateRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcTemplateExportAllRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcObjectDuplicateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcTemplateExportAllRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.ContextId) > 0 { - i -= len(m.ContextId) - copy(dAtA[i:], m.ContextId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + if len(m.Path) > 0 { + i -= len(m.Path) + copy(dAtA[i:], m.Path) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Path))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *RpcObjectDuplicateResponse) Marshal() (dAtA []byte, err error) { +func (m *RpcTemplateExportAllResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -63233,20 +49823,32 @@ func (m *RpcObjectDuplicateResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcObjectDuplicateResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcTemplateExportAllResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcObjectDuplicateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcTemplateExportAllResponse) 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))) + if m.Event != nil { + { + size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.Path) > 0 { + i -= len(m.Path) + copy(dAtA[i:], m.Path) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Path))) i-- dAtA[i] = 0x12 } @@ -63265,7 +49867,7 @@ func (m *RpcObjectDuplicateResponse) MarshalToSizedBuffer(dAtA []byte) (int, err return len(dAtA) - i, nil } -func (m *RpcObjectDuplicateResponseError) Marshal() (dAtA []byte, err error) { +func (m *RpcTemplateExportAllResponseError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -63275,12 +49877,12 @@ func (m *RpcObjectDuplicateResponseError) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcObjectDuplicateResponseError) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcTemplateExportAllResponseError) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcObjectDuplicateResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcTemplateExportAllResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -63300,6 +49902,164 @@ func (m *RpcObjectDuplicateResponseError) MarshalToSizedBuffer(dAtA []byte) (int return len(dAtA) - i, nil } +func (m *RpcLinkPreview) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcLinkPreview) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcLinkPreview) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcLinkPreviewRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcLinkPreviewRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcLinkPreviewRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Url) > 0 { + i -= len(m.Url) + copy(dAtA[i:], m.Url) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Url))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcLinkPreviewResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcLinkPreviewResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcLinkPreviewResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.LinkPreview != nil { + { + size, err := m.LinkPreview.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 *RpcLinkPreviewResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcLinkPreviewResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcLinkPreviewResponseError) 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 *RpcUnsplash) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcUnsplash) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcUnsplash) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + func (m *RpcUnsplashSearch) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -63623,7 +50383,7 @@ func (m *RpcUnsplashDownloadResponseError) MarshalToSizedBuffer(dAtA []byte) (in return len(dAtA) - i, nil } -func (m *RpcApplyTemplate) 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]) @@ -63633,12 +50393,12 @@ func (m *RpcApplyTemplate) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcApplyTemplate) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcBlock) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcApplyTemplate) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -63646,7 +50406,7 @@ func (m *RpcApplyTemplate) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *RpcApplyTemplateRequest) Marshal() (dAtA []byte, err error) { +func (m *RpcBlockReplace) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -63656,20 +50416,55 @@ func (m *RpcApplyTemplateRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcApplyTemplateRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcBlockReplace) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcApplyTemplateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcBlockReplace) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.TemplateId) > 0 { - i -= len(m.TemplateId) - copy(dAtA[i:], m.TemplateId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.TemplateId))) + return len(dAtA) - i, nil +} + +func (m *RpcBlockReplaceRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockReplaceRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockReplaceRequest) 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 = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) i-- dAtA[i] = 0x12 } @@ -63683,7 +50478,7 @@ func (m *RpcApplyTemplateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } -func (m *RpcApplyTemplateResponse) Marshal() (dAtA []byte, err error) { +func (m *RpcBlockReplaceResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -63693,12 +50488,5710 @@ func (m *RpcApplyTemplateResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcApplyTemplateResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcBlockReplaceResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcApplyTemplateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcBlockReplaceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) + 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 *RpcBlockReplaceResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockReplaceResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockReplaceResponseError) 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 *RpcBlockSplit) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockSplit) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockSplit) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockSplitRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockSplitRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockSplitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Mode != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Mode)) + i-- + dAtA[i] = 0x28 + } + if m.Style != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Style)) + i-- + dAtA[i] = 0x20 + } + if m.Range != nil { + { + size, err := m.Range.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockSplitResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockSplitResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockSplitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) + 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 *RpcBlockSplitResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockSplitResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockSplitResponseError) 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 *RpcBlockMerge) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockMerge) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockMerge) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockMergeRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockMergeRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockMergeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.SecondBlockId) > 0 { + i -= len(m.SecondBlockId) + copy(dAtA[i:], m.SecondBlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.SecondBlockId))) + i-- + dAtA[i] = 0x1a + } + if len(m.FirstBlockId) > 0 { + i -= len(m.FirstBlockId) + copy(dAtA[i:], m.FirstBlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.FirstBlockId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockMergeResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockMergeResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockMergeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcBlockMergeResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockMergeResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockMergeResponseError) 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 *RpcBlockCopy) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockCopy) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockCopy) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockCopyRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockCopyRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockCopyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.SelectedTextRange != nil { + { + size, err := m.SelectedTextRange.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + 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 = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockCopyResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockCopyResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockCopyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.AnySlot) > 0 { + for iNdEx := len(m.AnySlot) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.AnySlot[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.HtmlSlot) > 0 { + i -= len(m.HtmlSlot) + copy(dAtA[i:], m.HtmlSlot) + i = encodeVarintCommands(dAtA, i, uint64(len(m.HtmlSlot))) + i-- + dAtA[i] = 0x1a + } + if len(m.TextSlot) > 0 { + i -= len(m.TextSlot) + copy(dAtA[i:], m.TextSlot) + i = encodeVarintCommands(dAtA, i, uint64(len(m.TextSlot))) + 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 *RpcBlockCopyResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockCopyResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockCopyResponseError) 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 *RpcBlockPaste) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockPaste) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockPaste) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockPasteRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockPasteRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockPasteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.FileSlot) > 0 { + for iNdEx := len(m.FileSlot) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.FileSlot[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + } + if len(m.AnySlot) > 0 { + for iNdEx := len(m.AnySlot) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.AnySlot[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + } + if len(m.HtmlSlot) > 0 { + i -= len(m.HtmlSlot) + copy(dAtA[i:], m.HtmlSlot) + i = encodeVarintCommands(dAtA, i, uint64(len(m.HtmlSlot))) + i-- + dAtA[i] = 0x3a + } + if len(m.TextSlot) > 0 { + i -= len(m.TextSlot) + copy(dAtA[i:], m.TextSlot) + i = encodeVarintCommands(dAtA, i, uint64(len(m.TextSlot))) + i-- + dAtA[i] = 0x32 + } + if m.IsPartOfBlock { + i-- + if m.IsPartOfBlock { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x28 + } + if len(m.SelectedBlockIds) > 0 { + for iNdEx := len(m.SelectedBlockIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.SelectedBlockIds[iNdEx]) + copy(dAtA[i:], m.SelectedBlockIds[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.SelectedBlockIds[iNdEx]))) + i-- + dAtA[i] = 0x22 + } + } + if m.SelectedTextRange != nil { + { + size, err := m.SelectedTextRange.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.FocusedBlockId) > 0 { + i -= len(m.FocusedBlockId) + copy(dAtA[i:], m.FocusedBlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.FocusedBlockId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockPasteRequestFile) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockPasteRequestFile) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockPasteRequestFile) 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] = 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 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 *RpcBlockPasteResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockPasteResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockPasteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if m.IsSameBlockCaret { + i-- + if m.IsSameBlockCaret { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if m.CaretPosition != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.CaretPosition)) + i-- + dAtA[i] = 0x18 + } + if len(m.BlockIds) > 0 { + for iNdEx := len(m.BlockIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.BlockIds[iNdEx]) + copy(dAtA[i:], m.BlockIds[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockIds[iNdEx]))) + 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 *RpcBlockPasteResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockPasteResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockPasteResponseError) 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 *RpcBlockCut) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockCut) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockCut) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockCutRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockCutRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockCutRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.SelectedTextRange != nil { + { + size, err := m.SelectedTextRange.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + 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 = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockCutResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockCutResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockCutResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if len(m.AnySlot) > 0 { + for iNdEx := len(m.AnySlot) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.AnySlot[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.HtmlSlot) > 0 { + i -= len(m.HtmlSlot) + copy(dAtA[i:], m.HtmlSlot) + i = encodeVarintCommands(dAtA, i, uint64(len(m.HtmlSlot))) + i-- + dAtA[i] = 0x1a + } + if len(m.TextSlot) > 0 { + i -= len(m.TextSlot) + copy(dAtA[i:], m.TextSlot) + i = encodeVarintCommands(dAtA, i, uint64(len(m.TextSlot))) + 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 *RpcBlockCutResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockCutResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockCutResponseError) 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 *RpcBlockUpload) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockUpload) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockUpload) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockUploadRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockUploadRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockUploadRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Url) > 0 { + i -= len(m.Url) + copy(dAtA[i:], m.Url) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Url))) + i-- + dAtA[i] = 0x22 + } + if len(m.FilePath) > 0 { + i -= len(m.FilePath) + copy(dAtA[i:], m.FilePath) + i = encodeVarintCommands(dAtA, i, uint64(len(m.FilePath))) + i-- + dAtA[i] = 0x1a + } + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockUploadResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockUploadResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockUploadResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcBlockUploadResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockUploadResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockUploadResponseError) 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 *RpcBlockDownload) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDownload) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDownload) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockDownloadRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDownloadRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDownloadRequest) 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 = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockDownloadResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDownloadResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDownloadResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcBlockDownloadResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDownloadResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDownloadResponseError) 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 *RpcBlockCreate) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockCreate) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockCreate) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockCreateRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockCreateRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Position != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Position)) + i-- + dAtA[i] = 0x20 + } + if m.Block != nil { + { + size, err := m.Block.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.TargetId) > 0 { + i -= len(m.TargetId) + copy(dAtA[i:], m.TargetId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.TargetId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockCreateResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockCreateResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockCreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) + 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 *RpcBlockCreateResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockCreateResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockCreateResponseError) 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 *RpcBlockListDelete) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockListDelete) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListDelete) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockListDeleteRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockListDeleteRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListDeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.BlockIds) > 0 { + for iNdEx := len(m.BlockIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.BlockIds[iNdEx]) + copy(dAtA[i:], m.BlockIds[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockIds[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockListDeleteResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockListDeleteResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListDeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcBlockListDeleteResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockListDeleteResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListDeleteResponseError) 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 *RpcBlockSetFields) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockSetFields) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockSetFields) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockSetFieldsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockSetFieldsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockSetFieldsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Fields != nil { + { + size, err := m.Fields.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockSetFieldsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockSetFieldsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockSetFieldsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcBlockSetFieldsResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockSetFieldsResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockSetFieldsResponseError) 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 *RpcBlockListSetAlign) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockListSetAlign) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListSetAlign) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockListSetAlignRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockListSetAlignRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListSetAlignRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Align != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Align)) + i-- + dAtA[i] = 0x18 + } + if len(m.BlockIds) > 0 { + for iNdEx := len(m.BlockIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.BlockIds[iNdEx]) + copy(dAtA[i:], m.BlockIds[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockIds[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockListSetAlignResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockListSetAlignResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListSetAlignResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcBlockListSetAlignResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockListSetAlignResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListSetAlignResponseError) 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 *RpcBlockListSetFields) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockListSetFields) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListSetFields) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockListSetFieldsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockListSetFieldsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListSetFieldsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.BlockFields) > 0 { + for iNdEx := len(m.BlockFields) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.BlockFields[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockListSetFieldsRequestBlockField) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockListSetFieldsRequestBlockField) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListSetFieldsRequestBlockField) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Fields != nil { + { + size, err := m.Fields.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockListSetFieldsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockListSetFieldsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListSetFieldsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcBlockListSetFieldsResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockListSetFieldsResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListSetFieldsResponseError) 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 *RpcBlockListDuplicate) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockListDuplicate) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListDuplicate) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockListDuplicateRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockListDuplicateRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListDuplicateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Position != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Position)) + i-- + dAtA[i] = 0x20 + } + if len(m.BlockIds) > 0 { + for iNdEx := len(m.BlockIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.BlockIds[iNdEx]) + copy(dAtA[i:], m.BlockIds[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockIds[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + if len(m.TargetId) > 0 { + i -= len(m.TargetId) + copy(dAtA[i:], m.TargetId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.TargetId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockListDuplicateResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockListDuplicateResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListDuplicateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.BlockIds) > 0 { + for iNdEx := len(m.BlockIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.BlockIds[iNdEx]) + copy(dAtA[i:], m.BlockIds[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockIds[iNdEx]))) + 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 *RpcBlockListDuplicateResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockListDuplicateResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListDuplicateResponseError) 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 *RpcBlockListUpdate) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockListUpdate) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockListUpdateRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockListUpdateRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListUpdateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Field != nil { + { + size := m.Field.Size() + i -= size + if _, err := m.Field.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + if len(m.BlockIds) > 0 { + for iNdEx := len(m.BlockIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.BlockIds[iNdEx]) + copy(dAtA[i:], m.BlockIds[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockIds[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockListUpdateRequestFieldOfText) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListUpdateRequestFieldOfText) 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 = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + return len(dAtA) - i, nil +} +func (m *RpcBlockListUpdateRequestFieldOfBackgroundColor) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListUpdateRequestFieldOfBackgroundColor) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i -= len(m.BackgroundColor) + copy(dAtA[i:], m.BackgroundColor) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BackgroundColor))) + i-- + dAtA[i] = 0x22 + return len(dAtA) - i, nil +} +func (m *RpcBlockListUpdateRequestFieldOfAlign) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListUpdateRequestFieldOfAlign) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i = encodeVarintCommands(dAtA, i, uint64(m.Align)) + i-- + dAtA[i] = 0x28 + return len(dAtA) - i, nil +} +func (m *RpcBlockListUpdateRequestFieldOfFields) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListUpdateRequestFieldOfFields) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Fields != nil { + { + size, err := m.Fields.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + return len(dAtA) - i, nil +} +func (m *RpcBlockListUpdateRequestFieldOfDivStyle) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListUpdateRequestFieldOfDivStyle) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i = encodeVarintCommands(dAtA, i, uint64(m.DivStyle)) + i-- + dAtA[i] = 0x38 + return len(dAtA) - i, nil +} +func (m *RpcBlockListUpdateRequestFieldOfFileStyle) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListUpdateRequestFieldOfFileStyle) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i = encodeVarintCommands(dAtA, i, uint64(m.FileStyle)) + i-- + dAtA[i] = 0x40 + return len(dAtA) - i, nil +} +func (m *RpcBlockListUpdateRequestText) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockListUpdateRequestText) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListUpdateRequestText) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Field != nil { + { + size := m.Field.Size() + i -= size + if _, err := m.Field.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockListUpdateRequestTextFieldOfStyle) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListUpdateRequestTextFieldOfStyle) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i = encodeVarintCommands(dAtA, i, uint64(m.Style)) + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil +} +func (m *RpcBlockListUpdateRequestTextFieldOfColor) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListUpdateRequestTextFieldOfColor) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i -= len(m.Color) + copy(dAtA[i:], m.Color) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Color))) + i-- + dAtA[i] = 0x12 + return len(dAtA) - i, nil +} +func (m *RpcBlockListUpdateRequestTextFieldOfMark) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListUpdateRequestTextFieldOfMark) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.Mark != nil { + { + size, err := m.Mark.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + return len(dAtA) - i, nil +} +func (m *RpcBlockListConvertToObjects) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockListConvertToObjects) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListConvertToObjects) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockListConvertToObjectsRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockListConvertToObjectsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListConvertToObjectsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ObjectType) > 0 { + i -= len(m.ObjectType) + copy(dAtA[i:], m.ObjectType) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ObjectType))) + i-- + dAtA[i] = 0x1a + } + if len(m.BlockIds) > 0 { + for iNdEx := len(m.BlockIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.BlockIds[iNdEx]) + copy(dAtA[i:], m.BlockIds[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockIds[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockListConvertToObjectsResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockListConvertToObjectsResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListConvertToObjectsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.LinkIds) > 0 { + for iNdEx := len(m.LinkIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.LinkIds[iNdEx]) + copy(dAtA[i:], m.LinkIds[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.LinkIds[iNdEx]))) + 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 *RpcBlockListConvertToObjectsResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockListConvertToObjectsResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListConvertToObjectsResponseError) 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 *RpcBlockListMoveToExistingObject) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockListMoveToExistingObject) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListMoveToExistingObject) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockListMoveToExistingObjectRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockListMoveToExistingObjectRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListMoveToExistingObjectRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Position != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Position)) + i-- + dAtA[i] = 0x28 + } + if len(m.DropTargetId) > 0 { + i -= len(m.DropTargetId) + copy(dAtA[i:], m.DropTargetId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.DropTargetId))) + i-- + dAtA[i] = 0x22 + } + if len(m.TargetContextId) > 0 { + i -= len(m.TargetContextId) + copy(dAtA[i:], m.TargetContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.TargetContextId))) + i-- + dAtA[i] = 0x1a + } + if len(m.BlockIds) > 0 { + for iNdEx := len(m.BlockIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.BlockIds[iNdEx]) + copy(dAtA[i:], m.BlockIds[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockIds[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockListMoveToExistingObjectResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockListMoveToExistingObjectResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListMoveToExistingObjectResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcBlockListMoveToExistingObjectResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockListMoveToExistingObjectResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListMoveToExistingObjectResponseError) 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 *RpcBlockListMoveToNewObject) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockListMoveToNewObject) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListMoveToNewObject) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockListMoveToNewObjectRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockListMoveToNewObjectRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListMoveToNewObjectRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Position != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Position)) + i-- + dAtA[i] = 0x28 + } + if len(m.DropTargetId) > 0 { + i -= len(m.DropTargetId) + copy(dAtA[i:], m.DropTargetId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.DropTargetId))) + i-- + dAtA[i] = 0x22 + } + if m.Details != nil { + { + size, err := m.Details.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.BlockIds) > 0 { + for iNdEx := len(m.BlockIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.BlockIds[iNdEx]) + copy(dAtA[i:], m.BlockIds[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockIds[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockListMoveToNewObjectResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockListMoveToNewObjectResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListMoveToNewObjectResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.LinkId) > 0 { + i -= len(m.LinkId) + copy(dAtA[i:], m.LinkId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.LinkId))) + 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 *RpcBlockListMoveToNewObjectResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockListMoveToNewObjectResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListMoveToNewObjectResponseError) 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 *RpcBlockListTurnInto) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockListTurnInto) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListTurnInto) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockListTurnIntoRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockListTurnIntoRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListTurnIntoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Style != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Style)) + i-- + dAtA[i] = 0x18 + } + if len(m.BlockIds) > 0 { + for iNdEx := len(m.BlockIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.BlockIds[iNdEx]) + copy(dAtA[i:], m.BlockIds[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockIds[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockListTurnIntoResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockListTurnIntoResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListTurnIntoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcBlockListTurnIntoResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockListTurnIntoResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListTurnIntoResponseError) 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 *RpcBlockListSetBackgroundColor) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockListSetBackgroundColor) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListSetBackgroundColor) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockListSetBackgroundColorRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockListSetBackgroundColorRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListSetBackgroundColorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Color) > 0 { + i -= len(m.Color) + copy(dAtA[i:], m.Color) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Color))) + i-- + dAtA[i] = 0x1a + } + if len(m.BlockIds) > 0 { + for iNdEx := len(m.BlockIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.BlockIds[iNdEx]) + copy(dAtA[i:], m.BlockIds[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockIds[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockListSetBackgroundColorResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockListSetBackgroundColorResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListSetBackgroundColorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcBlockListSetBackgroundColorResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockListSetBackgroundColorResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockListSetBackgroundColorResponseError) 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 *RpcBlockExport) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockExport) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockExport) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockExportRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockExportRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockExportRequest) 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 = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockExportResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockExportResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockExportResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.Path) > 0 { + i -= len(m.Path) + copy(dAtA[i:], m.Path) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Path))) + 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 *RpcBlockExportResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockExportResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockExportResponseError) 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 *RpcBlockLatex) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockLatex) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockLatex) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockLatexSetText) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockLatexSetText) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockLatexSetText) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockLatexSetTextRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockLatexSetTextRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockLatexSetTextRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Text) > 0 { + i -= len(m.Text) + copy(dAtA[i:], m.Text) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Text))) + i-- + dAtA[i] = 0x1a + } + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockLatexSetTextResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockLatexSetTextResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockLatexSetTextResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcBlockLatexSetTextResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockLatexSetTextResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockLatexSetTextResponseError) 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 *RpcBlockText) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockText) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockText) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockTextSetText) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockTextSetText) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockTextSetText) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockTextSetTextRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockTextSetTextRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockTextSetTextRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Marks != nil { + { + size, err := m.Marks.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if len(m.Text) > 0 { + i -= len(m.Text) + copy(dAtA[i:], m.Text) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Text))) + i-- + dAtA[i] = 0x1a + } + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockTextSetTextResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockTextSetTextResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockTextSetTextResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcBlockTextSetTextResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockTextSetTextResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockTextSetTextResponseError) 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 *RpcBlockTextSetColor) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockTextSetColor) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockTextSetColor) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockTextSetColorRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockTextSetColorRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockTextSetColorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Color) > 0 { + i -= len(m.Color) + copy(dAtA[i:], m.Color) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Color))) + i-- + dAtA[i] = 0x1a + } + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockTextSetColorResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockTextSetColorResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockTextSetColorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcBlockTextSetColorResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockTextSetColorResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockTextSetColorResponseError) 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 *RpcBlockTextSetMarks) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockTextSetMarks) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockTextSetMarks) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockTextSetMarksGet) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockTextSetMarksGet) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockTextSetMarksGet) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockTextSetMarksGetRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockTextSetMarksGetRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockTextSetMarksGetRequest) 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 = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockTextSetMarksGetResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockTextSetMarksGetResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockTextSetMarksGetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcBlockTextSetMarksGetResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockTextSetMarksGetResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockTextSetMarksGetResponseError) 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 *RpcBlockTextSetStyle) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockTextSetStyle) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockTextSetStyle) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockTextSetStyleRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockTextSetStyleRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockTextSetStyleRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Style != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Style)) + i-- + dAtA[i] = 0x18 + } + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockTextSetStyleResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockTextSetStyleResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockTextSetStyleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcBlockTextSetStyleResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockTextSetStyleResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockTextSetStyleResponseError) 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 *RpcBlockTextSetChecked) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockTextSetChecked) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockTextSetChecked) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockTextSetCheckedRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockTextSetCheckedRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockTextSetCheckedRequest) 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] = 0x18 + } + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockTextSetCheckedResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockTextSetCheckedResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockTextSetCheckedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcBlockTextSetCheckedResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockTextSetCheckedResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockTextSetCheckedResponseError) 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 *RpcBlockTextSetIcon) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockTextSetIcon) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockTextSetIcon) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockTextSetIconRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockTextSetIconRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockTextSetIconRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.IconEmoji) > 0 { + i -= len(m.IconEmoji) + copy(dAtA[i:], m.IconEmoji) + i = encodeVarintCommands(dAtA, i, uint64(len(m.IconEmoji))) + i-- + dAtA[i] = 0x2a + } + if len(m.IconImage) > 0 { + i -= len(m.IconImage) + copy(dAtA[i:], m.IconImage) + i = encodeVarintCommands(dAtA, i, uint64(len(m.IconImage))) + i-- + dAtA[i] = 0x1a + } + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockTextSetIconResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockTextSetIconResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockTextSetIconResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcBlockTextSetIconResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockTextSetIconResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockTextSetIconResponseError) 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 *RpcBlockTextListSetStyle) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockTextListSetStyle) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockTextListSetStyle) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockTextListSetStyleRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockTextListSetStyleRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockTextListSetStyleRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Style != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Style)) + i-- + dAtA[i] = 0x18 + } + if len(m.BlockIds) > 0 { + for iNdEx := len(m.BlockIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.BlockIds[iNdEx]) + copy(dAtA[i:], m.BlockIds[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockIds[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockTextListSetStyleResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockTextListSetStyleResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockTextListSetStyleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcBlockTextListSetStyleResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockTextListSetStyleResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockTextListSetStyleResponseError) 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 *RpcBlockTextListSetColor) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockTextListSetColor) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockTextListSetColor) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockTextListSetColorRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockTextListSetColorRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockTextListSetColorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Color) > 0 { + i -= len(m.Color) + copy(dAtA[i:], m.Color) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Color))) + i-- + dAtA[i] = 0x1a + } + if len(m.BlockIds) > 0 { + for iNdEx := len(m.BlockIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.BlockIds[iNdEx]) + copy(dAtA[i:], m.BlockIds[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockIds[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockTextListSetColorResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockTextListSetColorResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockTextListSetColorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcBlockTextListSetColorResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockTextListSetColorResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockTextListSetColorResponseError) 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 *RpcBlockTextListSetMark) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockTextListSetMark) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockTextListSetMark) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockTextListSetMarkRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockTextListSetMarkRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockTextListSetMarkRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Mark != nil { + { + size, err := m.Mark.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.BlockIds) > 0 { + for iNdEx := len(m.BlockIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.BlockIds[iNdEx]) + copy(dAtA[i:], m.BlockIds[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockIds[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockTextListSetMarkResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockTextListSetMarkResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockTextListSetMarkResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcBlockTextListSetMarkResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockTextListSetMarkResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockTextListSetMarkResponseError) 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 *RpcBlockFile) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockFile) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockFile) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockFileSetName) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockFileSetName) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockFileSetName) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockFileSetNameRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockFileSetNameRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockFileSetNameRequest) 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] = 0x1a + } + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockFileSetNameResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockFileSetNameResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockFileSetNameResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcBlockFileSetNameResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockFileSetNameResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockFileSetNameResponseError) 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 *RpcBlockFileCreateAndUpload) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockFileCreateAndUpload) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockFileCreateAndUpload) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockFileCreateAndUploadRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockFileCreateAndUploadRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockFileCreateAndUploadRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.FileType != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.FileType)) + i-- + dAtA[i] = 0x30 + } + 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] = 0x2a + } + if len(m.Url) > 0 { + i -= len(m.Url) + copy(dAtA[i:], m.Url) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Url))) + i-- + dAtA[i] = 0x22 + } + if m.Position != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Position)) + i-- + dAtA[i] = 0x18 + } + if len(m.TargetId) > 0 { + i -= len(m.TargetId) + copy(dAtA[i:], m.TargetId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.TargetId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockFileCreateAndUploadResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockFileCreateAndUploadResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockFileCreateAndUploadResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) + 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 *RpcBlockFileCreateAndUploadResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockFileCreateAndUploadResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockFileCreateAndUploadResponseError) 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 *RpcBlockFileListSetStyle) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockFileListSetStyle) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockFileListSetStyle) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockFileListSetStyleRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockFileListSetStyleRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockFileListSetStyleRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Style != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Style)) + i-- + dAtA[i] = 0x18 + } + if len(m.BlockIds) > 0 { + for iNdEx := len(m.BlockIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.BlockIds[iNdEx]) + copy(dAtA[i:], m.BlockIds[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockIds[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockFileListSetStyleResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockFileListSetStyleResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockFileListSetStyleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcBlockFileListSetStyleResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockFileListSetStyleResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockFileListSetStyleResponseError) 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 *RpcBlockImage) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockImage) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockImage) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockImageSetName) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockImageSetName) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockImageSetName) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockImageSetNameRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockImageSetNameRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockImageSetNameRequest) 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] = 0x1a + } + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockImageSetNameResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockImageSetNameResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockImageSetNameResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -63718,7 +56211,7 @@ func (m *RpcApplyTemplateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error return len(dAtA) - i, nil } -func (m *RpcApplyTemplateResponseError) Marshal() (dAtA []byte, err error) { +func (m *RpcBlockImageSetNameResponseError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -63728,12 +56221,4303 @@ func (m *RpcApplyTemplateResponseError) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RpcApplyTemplateResponseError) MarshalTo(dAtA []byte) (int, error) { +func (m *RpcBlockImageSetNameResponseError) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *RpcApplyTemplateResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *RpcBlockImageSetNameResponseError) 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 *RpcBlockImageSetWidth) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockImageSetWidth) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockImageSetWidth) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockImageSetWidthRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockImageSetWidthRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockImageSetWidthRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Width != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Width)) + i-- + dAtA[i] = 0x18 + } + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockImageSetWidthResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockImageSetWidthResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockImageSetWidthResponse) 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 *RpcBlockImageSetWidthResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockImageSetWidthResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockImageSetWidthResponseError) 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 *RpcBlockVideo) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockVideo) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockVideo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockVideoSetName) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockVideoSetName) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockVideoSetName) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockVideoSetNameRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockVideoSetNameRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockVideoSetNameRequest) 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] = 0x1a + } + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockVideoSetNameResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockVideoSetNameResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockVideoSetNameResponse) 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 *RpcBlockVideoSetNameResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockVideoSetNameResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockVideoSetNameResponseError) 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 *RpcBlockVideoSetWidth) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockVideoSetWidth) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockVideoSetWidth) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockVideoSetWidthRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockVideoSetWidthRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockVideoSetWidthRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Width != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Width)) + i-- + dAtA[i] = 0x18 + } + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockVideoSetWidthResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockVideoSetWidthResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockVideoSetWidthResponse) 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 *RpcBlockVideoSetWidthResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockVideoSetWidthResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockVideoSetWidthResponseError) 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 *RpcBlockLink) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockLink) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockLink) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockLinkCreateWithObject) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockLinkCreateWithObject) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockLinkCreateWithObject) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockLinkCreateWithObjectRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockLinkCreateWithObjectRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockLinkCreateWithObjectRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Fields != nil { + { + size, err := m.Fields.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if len(m.TemplateId) > 0 { + i -= len(m.TemplateId) + copy(dAtA[i:], m.TemplateId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.TemplateId))) + i-- + dAtA[i] = 0x2a + } + if m.Position != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Position)) + i-- + dAtA[i] = 0x20 + } + if m.Details != nil { + { + size, err := m.Details.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.TargetId) > 0 { + i -= len(m.TargetId) + copy(dAtA[i:], m.TargetId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.TargetId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockLinkCreateWithObjectResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockLinkCreateWithObjectResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockLinkCreateWithObjectResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if len(m.TargetId) > 0 { + i -= len(m.TargetId) + copy(dAtA[i:], m.TargetId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.TargetId))) + i-- + dAtA[i] = 0x1a + } + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) + 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 *RpcBlockLinkCreateWithObjectResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockLinkCreateWithObjectResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockLinkCreateWithObjectResponseError) 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 *RpcBlockLinkListSetAppearance) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockLinkListSetAppearance) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockLinkListSetAppearance) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockLinkListSetAppearanceRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockLinkListSetAppearanceRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockLinkListSetAppearanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Relations) > 0 { + for iNdEx := len(m.Relations) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Relations[iNdEx]) + copy(dAtA[i:], m.Relations[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Relations[iNdEx]))) + i-- + dAtA[i] = 0x3a + } + } + if m.Description != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Description)) + i-- + dAtA[i] = 0x30 + } + if m.CardStyle != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.CardStyle)) + i-- + dAtA[i] = 0x28 + } + if m.IconSize != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.IconSize)) + i-- + dAtA[i] = 0x20 + } + if len(m.BlockIds) > 0 { + for iNdEx := len(m.BlockIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.BlockIds[iNdEx]) + copy(dAtA[i:], m.BlockIds[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockIds[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockLinkListSetAppearanceResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockLinkListSetAppearanceResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockLinkListSetAppearanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcBlockLinkListSetAppearanceResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockLinkListSetAppearanceResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockLinkListSetAppearanceResponseError) 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 *RpcBlockRelation) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockRelation) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockRelation) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockRelationSetKey) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockRelationSetKey) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockRelationSetKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockRelationSetKeyRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockRelationSetKeyRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockRelationSetKeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Key) > 0 { + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0x1a + } + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockRelationSetKeyResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockRelationSetKeyResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockRelationSetKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcBlockRelationSetKeyResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockRelationSetKeyResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockRelationSetKeyResponseError) 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 *RpcBlockRelationAdd) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockRelationAdd) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockRelationAdd) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockRelationAddRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockRelationAddRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockRelationAddRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Relation != nil { + { + size, err := m.Relation.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockRelationAddResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockRelationAddResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockRelationAddResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcBlockRelationAddResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockRelationAddResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockRelationAddResponseError) 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 *RpcBlockBookmark) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockBookmark) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockBookmark) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockBookmarkFetch) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockBookmarkFetch) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockBookmarkFetch) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockBookmarkFetchRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockBookmarkFetchRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockBookmarkFetchRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Url) > 0 { + i -= len(m.Url) + copy(dAtA[i:], m.Url) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Url))) + i-- + dAtA[i] = 0x1a + } + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockBookmarkFetchResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockBookmarkFetchResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockBookmarkFetchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcBlockBookmarkFetchResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockBookmarkFetchResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockBookmarkFetchResponseError) 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 *RpcBlockBookmarkCreateAndFetch) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockBookmarkCreateAndFetch) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockBookmarkCreateAndFetch) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockBookmarkCreateAndFetchRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockBookmarkCreateAndFetchRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockBookmarkCreateAndFetchRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Url) > 0 { + i -= len(m.Url) + copy(dAtA[i:], m.Url) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Url))) + i-- + dAtA[i] = 0x22 + } + if m.Position != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Position)) + i-- + dAtA[i] = 0x18 + } + if len(m.TargetId) > 0 { + i -= len(m.TargetId) + copy(dAtA[i:], m.TargetId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.TargetId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockBookmarkCreateAndFetchResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockBookmarkCreateAndFetchResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockBookmarkCreateAndFetchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) + 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 *RpcBlockBookmarkCreateAndFetchResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockBookmarkCreateAndFetchResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockBookmarkCreateAndFetchResponseError) 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 *RpcBlockDiv) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDiv) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDiv) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockDivListSetStyle) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDivListSetStyle) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDivListSetStyle) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockDivListSetStyleRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDivListSetStyleRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDivListSetStyleRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Style != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Style)) + i-- + dAtA[i] = 0x18 + } + if len(m.BlockIds) > 0 { + for iNdEx := len(m.BlockIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.BlockIds[iNdEx]) + copy(dAtA[i:], m.BlockIds[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockIds[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockDivListSetStyleResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDivListSetStyleResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDivListSetStyleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcBlockDivListSetStyleResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDivListSetStyleResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDivListSetStyleResponseError) 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 *RpcBlockDataview) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataview) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataview) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockDataviewView) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewView) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewView) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockDataviewViewCreate) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewViewCreate) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewViewCreate) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockDataviewViewCreateRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewViewCreateRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewViewCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.View != nil { + { + size, err := m.View.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockDataviewViewCreateResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewViewCreateResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewViewCreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ViewId) > 0 { + i -= len(m.ViewId) + copy(dAtA[i:], m.ViewId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ViewId))) + i-- + dAtA[i] = 0x1a + } + if m.Event != nil { + { + size, err := m.Event.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 *RpcBlockDataviewViewCreateResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewViewCreateResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewViewCreateResponseError) 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 *RpcBlockDataviewViewUpdate) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewViewUpdate) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewViewUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockDataviewViewUpdateRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewViewUpdateRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewViewUpdateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.View != nil { + { + size, err := m.View.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if len(m.ViewId) > 0 { + i -= len(m.ViewId) + copy(dAtA[i:], m.ViewId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ViewId))) + i-- + dAtA[i] = 0x1a + } + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockDataviewViewUpdateResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewViewUpdateResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewViewUpdateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcBlockDataviewViewUpdateResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewViewUpdateResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewViewUpdateResponseError) 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 *RpcBlockDataviewViewDelete) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewViewDelete) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewViewDelete) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockDataviewViewDeleteRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewViewDeleteRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewViewDeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ViewId) > 0 { + i -= len(m.ViewId) + copy(dAtA[i:], m.ViewId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ViewId))) + i-- + dAtA[i] = 0x22 + } + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockDataviewViewDeleteResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewViewDeleteResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewViewDeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcBlockDataviewViewDeleteResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewViewDeleteResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewViewDeleteResponseError) 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 *RpcBlockDataviewViewSetPosition) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewViewSetPosition) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewViewSetPosition) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockDataviewViewSetPositionRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewViewSetPositionRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewViewSetPositionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Position != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Position)) + i-- + dAtA[i] = 0x28 + } + if len(m.ViewId) > 0 { + i -= len(m.ViewId) + copy(dAtA[i:], m.ViewId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ViewId))) + i-- + dAtA[i] = 0x22 + } + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockDataviewViewSetPositionResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewViewSetPositionResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewViewSetPositionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcBlockDataviewViewSetPositionResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewViewSetPositionResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewViewSetPositionResponseError) 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 *RpcBlockDataviewViewSetActive) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewViewSetActive) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewViewSetActive) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockDataviewViewSetActiveRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewViewSetActiveRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewViewSetActiveRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Limit != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Limit)) + i-- + dAtA[i] = 0x28 + } + if m.Offset != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Offset)) + i-- + dAtA[i] = 0x20 + } + if len(m.ViewId) > 0 { + i -= len(m.ViewId) + copy(dAtA[i:], m.ViewId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ViewId))) + i-- + dAtA[i] = 0x1a + } + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockDataviewViewSetActiveResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewViewSetActiveResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewViewSetActiveResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcBlockDataviewViewSetActiveResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewViewSetActiveResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewViewSetActiveResponseError) 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 *RpcBlockDataviewRelation) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewRelation) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewRelation) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockDataviewRelationAdd) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewRelationAdd) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewRelationAdd) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockDataviewRelationAddRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewRelationAddRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewRelationAddRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Relation != nil { + { + size, err := m.Relation.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockDataviewRelationAddResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewRelationAddResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewRelationAddResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Relation != nil { + { + size, err := m.Relation.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if len(m.RelationKey) > 0 { + i -= len(m.RelationKey) + copy(dAtA[i:], m.RelationKey) + i = encodeVarintCommands(dAtA, i, uint64(len(m.RelationKey))) + i-- + dAtA[i] = 0x1a + } + if m.Event != nil { + { + size, err := m.Event.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 *RpcBlockDataviewRelationAddResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewRelationAddResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewRelationAddResponseError) 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 *RpcBlockDataviewRelationUpdate) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewRelationUpdate) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewRelationUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockDataviewRelationUpdateRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewRelationUpdateRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewRelationUpdateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Relation != nil { + { + size, err := m.Relation.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if len(m.RelationKey) > 0 { + i -= len(m.RelationKey) + copy(dAtA[i:], m.RelationKey) + i = encodeVarintCommands(dAtA, i, uint64(len(m.RelationKey))) + i-- + dAtA[i] = 0x1a + } + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockDataviewRelationUpdateResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewRelationUpdateResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewRelationUpdateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcBlockDataviewRelationUpdateResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewRelationUpdateResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewRelationUpdateResponseError) 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 *RpcBlockDataviewRelationDelete) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewRelationDelete) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewRelationDelete) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockDataviewRelationDeleteRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewRelationDeleteRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewRelationDeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.RelationKey) > 0 { + i -= len(m.RelationKey) + copy(dAtA[i:], m.RelationKey) + i = encodeVarintCommands(dAtA, i, uint64(len(m.RelationKey))) + i-- + dAtA[i] = 0x1a + } + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockDataviewRelationDeleteResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewRelationDeleteResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewRelationDeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + 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 *RpcBlockDataviewRelationDeleteResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewRelationDeleteResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewRelationDeleteResponseError) 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 *RpcBlockDataviewRelationListAvailable) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewRelationListAvailable) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewRelationListAvailable) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockDataviewRelationListAvailableRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewRelationListAvailableRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewRelationListAvailableRequest) 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 = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockDataviewRelationListAvailableResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewRelationListAvailableResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewRelationListAvailableResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Relations) > 0 { + for iNdEx := len(m.Relations) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Relations[iNdEx].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 *RpcBlockDataviewRelationListAvailableResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewRelationListAvailableResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewRelationListAvailableResponseError) 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 *RpcBlockDataviewSetSource) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewSetSource) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewSetSource) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockDataviewSetSourceRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewSetSourceRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewSetSourceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Source) > 0 { + for iNdEx := len(m.Source) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Source[iNdEx]) + copy(dAtA[i:], m.Source[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Source[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockDataviewSetSourceResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewSetSourceResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewSetSourceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + 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 *RpcBlockDataviewSetSourceResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewSetSourceResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewSetSourceResponseError) 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 *RpcBlockDataviewRecord) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewRecord) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockDataviewRecordUpdate) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewRecordUpdate) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewRecordUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockDataviewRecordUpdateRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewRecordUpdateRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewRecordUpdateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Record != nil { + { + size, err := m.Record.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if len(m.RecordId) > 0 { + i -= len(m.RecordId) + copy(dAtA[i:], m.RecordId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.RecordId))) + i-- + dAtA[i] = 0x1a + } + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockDataviewRecordUpdateResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewRecordUpdateResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewRecordUpdateResponse) 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 *RpcBlockDataviewRecordUpdateResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewRecordUpdateResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewRecordUpdateResponseError) 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 *RpcBlockDataviewRecordDelete) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewRecordDelete) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewRecordDelete) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockDataviewRecordDeleteRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewRecordDeleteRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewRecordDeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.RecordId) > 0 { + i -= len(m.RecordId) + copy(dAtA[i:], m.RecordId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.RecordId))) + i-- + dAtA[i] = 0x1a + } + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockDataviewRecordDeleteResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewRecordDeleteResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewRecordDeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcBlockDataviewRecordDeleteResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewRecordDeleteResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewRecordDeleteResponseError) 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 *RpcBlockDataviewRecordCreate) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewRecordCreate) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewRecordCreate) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockDataviewRecordCreateRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewRecordCreateRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewRecordCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TemplateId) > 0 { + i -= len(m.TemplateId) + copy(dAtA[i:], m.TemplateId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.TemplateId))) + i-- + dAtA[i] = 0x22 + } + if m.Record != nil { + { + size, err := m.Record.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockDataviewRecordCreateResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewRecordCreateResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewRecordCreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Record != nil { + { + size, err := m.Record.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 *RpcBlockDataviewRecordCreateResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewRecordCreateResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewRecordCreateResponseError) 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 *RpcBlockDataviewRecordRelationOption) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewRecordRelationOption) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewRecordRelationOption) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockDataviewRecordRelationOptionAdd) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewRecordRelationOptionAdd) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewRecordRelationOptionAdd) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockDataviewRecordRelationOptionAddRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewRecordRelationOptionAddRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewRecordRelationOptionAddRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.RecordId) > 0 { + i -= len(m.RecordId) + copy(dAtA[i:], m.RecordId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.RecordId))) + i-- + dAtA[i] = 0x2a + } + if m.Option != nil { + { + size, err := m.Option.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if len(m.RelationKey) > 0 { + i -= len(m.RelationKey) + copy(dAtA[i:], m.RelationKey) + i = encodeVarintCommands(dAtA, i, uint64(len(m.RelationKey))) + i-- + dAtA[i] = 0x1a + } + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockDataviewRecordRelationOptionAddResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewRecordRelationOptionAddResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewRecordRelationOptionAddResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Option != nil { + { + size, err := m.Option.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.Event != nil { + { + size, err := m.Event.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 *RpcBlockDataviewRecordRelationOptionAddResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewRecordRelationOptionAddResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewRecordRelationOptionAddResponseError) 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 *RpcBlockDataviewRecordRelationOptionUpdate) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewRecordRelationOptionUpdate) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewRecordRelationOptionUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockDataviewRecordRelationOptionUpdateRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewRecordRelationOptionUpdateRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewRecordRelationOptionUpdateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.RecordId) > 0 { + i -= len(m.RecordId) + copy(dAtA[i:], m.RecordId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.RecordId))) + i-- + dAtA[i] = 0x2a + } + if m.Option != nil { + { + size, err := m.Option.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if len(m.RelationKey) > 0 { + i -= len(m.RelationKey) + copy(dAtA[i:], m.RelationKey) + i = encodeVarintCommands(dAtA, i, uint64(len(m.RelationKey))) + i-- + dAtA[i] = 0x1a + } + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockDataviewRecordRelationOptionUpdateResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewRecordRelationOptionUpdateResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewRecordRelationOptionUpdateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcBlockDataviewRecordRelationOptionUpdateResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewRecordRelationOptionUpdateResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewRecordRelationOptionUpdateResponseError) 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 *RpcBlockDataviewRecordRelationOptionDelete) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewRecordRelationOptionDelete) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewRecordRelationOptionDelete) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcBlockDataviewRecordRelationOptionDeleteRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewRecordRelationOptionDeleteRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewRecordRelationOptionDeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.RecordId) > 0 { + i -= len(m.RecordId) + copy(dAtA[i:], m.RecordId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.RecordId))) + i-- + dAtA[i] = 0x2a + } + if len(m.OptionId) > 0 { + i -= len(m.OptionId) + copy(dAtA[i:], m.OptionId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.OptionId))) + i-- + dAtA[i] = 0x22 + } + if len(m.RelationKey) > 0 { + i -= len(m.RelationKey) + copy(dAtA[i:], m.RelationKey) + i = encodeVarintCommands(dAtA, i, uint64(len(m.RelationKey))) + i-- + dAtA[i] = 0x1a + } + if len(m.BlockId) > 0 { + i -= len(m.BlockId) + copy(dAtA[i:], m.BlockId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) + i-- + dAtA[i] = 0x12 + } + if len(m.ContextId) > 0 { + i -= len(m.ContextId) + copy(dAtA[i:], m.ContextId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ContextId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcBlockDataviewRecordRelationOptionDeleteResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewRecordRelationOptionDeleteResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewRecordRelationOptionDeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.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 *RpcBlockDataviewRecordRelationOptionDeleteResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcBlockDataviewRecordRelationOptionDeleteResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcBlockDataviewRecordRelationOptionDeleteResponseError) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -64364,6 +61148,16 @@ func (m *RpcDebugTreeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.GenerateSvg { + i-- + if m.GenerateSvg { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } if m.Unanonymized { i-- if m.Unanonymized { @@ -64381,10 +61175,10 @@ func (m *RpcDebugTreeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x12 } - if len(m.BlockId) > 0 { - i -= len(m.BlockId) - copy(dAtA[i:], m.BlockId) - i = encodeVarintCommands(dAtA, i, uint64(len(m.BlockId))) + if len(m.ObjectId) > 0 { + i -= len(m.ObjectId) + copy(dAtA[i:], m.ObjectId) + i = encodeVarintCommands(dAtA, i, uint64(len(m.ObjectId))) i-- dAtA[i] = 0xa } @@ -64468,6 +61262,731 @@ func (m *RpcDebugTreeResponseError) MarshalToSizedBuffer(dAtA []byte) (int, erro return len(dAtA) - i, nil } +func (m *RpcDebugExportLocalstore) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcDebugExportLocalstore) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcDebugExportLocalstore) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcDebugExportLocalstoreRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcDebugExportLocalstoreRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcDebugExportLocalstoreRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.DocIds) > 0 { + for iNdEx := len(m.DocIds) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.DocIds[iNdEx]) + copy(dAtA[i:], m.DocIds[iNdEx]) + i = encodeVarintCommands(dAtA, i, uint64(len(m.DocIds[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if len(m.Path) > 0 { + i -= len(m.Path) + copy(dAtA[i:], m.Path) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Path))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcDebugExportLocalstoreResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcDebugExportLocalstoreResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcDebugExportLocalstoreResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Event != nil { + { + size, err := m.Event.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintCommands(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.Path) > 0 { + i -= len(m.Path) + copy(dAtA[i:], m.Path) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Path))) + 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 *RpcDebugExportLocalstoreResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcDebugExportLocalstoreResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcDebugExportLocalstoreResponseError) 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 *RpcDebugPing) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcDebugPing) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcDebugPing) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcDebugPingRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcDebugPingRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcDebugPingRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.NumberOfEventsToSend != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.NumberOfEventsToSend)) + i-- + dAtA[i] = 0x10 + } + if m.Index != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Index)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *RpcDebugPingResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcDebugPingResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcDebugPingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Index != 0 { + i = encodeVarintCommands(dAtA, i, uint64(m.Index)) + i-- + dAtA[i] = 0x10 + } + 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 *RpcDebugPingResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcDebugPingResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcDebugPingResponseError) 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 *RpcMetrics) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcMetrics) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcMetrics) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcMetricsSetParameters) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcMetricsSetParameters) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcMetricsSetParameters) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcMetricsSetParametersRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcMetricsSetParametersRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcMetricsSetParametersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Platform) > 0 { + i -= len(m.Platform) + copy(dAtA[i:], m.Platform) + i = encodeVarintCommands(dAtA, i, uint64(len(m.Platform))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *RpcMetricsSetParametersResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcMetricsSetParametersResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcMetricsSetParametersResponse) 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 *RpcMetricsSetParametersResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcMetricsSetParametersResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcMetricsSetParametersResponseError) 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 *RpcLog) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcLog) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcLog) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcLogSend) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcLogSend) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcLogSend) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcLogSendRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcLogSendRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcLogSendRequest) 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 *RpcLogSendResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcLogSendResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcLogSendResponse) 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 *RpcLogSendResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcLogSendResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcLogSendResponseError) 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 *RpcProcess) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcProcess) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcProcess) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcProcessCancel) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcProcessCancel) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcProcessCancel) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *RpcProcessCancelRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcProcessCancelRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcProcessCancelRequest) 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 *RpcProcessCancelResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcProcessCancelResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcProcessCancelResponse) 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 *RpcProcessCancelResponseError) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RpcProcessCancelResponseError) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RpcProcessCancelResponseError) 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 *RpcGenericErrorResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -64581,7 +62100,7 @@ func (m *Rpc) Size() (n int) { return n } -func (m *RpcMetrics) Size() (n int) { +func (m *RpcApp) Size() (n int) { if m == nil { return 0 } @@ -64590,7 +62109,7 @@ func (m *RpcMetrics) Size() (n int) { return n } -func (m *RpcMetricsSetParameters) Size() (n int) { +func (m *RpcAppGetVersion) Size() (n int) { if m == nil { return 0 } @@ -64599,5440 +62118,7 @@ func (m *RpcMetricsSetParameters) Size() (n int) { return n } -func (m *RpcMetricsSetParametersRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Platform) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcMetricsSetParametersResponse) 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 *RpcMetricsSetParametersResponseError) 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 *RpcExternalDrop) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcExternalDropFiles) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcExternalDropFilesRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.DropTargetId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Position != 0 { - n += 1 + sovCommands(uint64(m.Position)) - } - if len(m.LocalFilePaths) > 0 { - for _, s := range m.LocalFilePaths { - l = len(s) - n += 1 + l + sovCommands(uint64(l)) - } - } - return n -} - -func (m *RpcExternalDropFilesResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcExternalDropFilesResponseError) 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 *RpcExternalDropContent) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcExternalDropContentRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.FocusedBlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.Content) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcExternalDropContentResponse) 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 *RpcExternalDropContentResponseError) 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 *RpcBlockList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockListConvertChildrenToPages) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockListConvertChildrenToPagesRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if len(m.BlockIds) > 0 { - for _, s := range m.BlockIds { - l = len(s) - n += 1 + l + sovCommands(uint64(l)) - } - } - l = len(m.ObjectType) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockListConvertChildrenToPagesResponse) 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 len(m.LinkIds) > 0 { - for _, s := range m.LinkIds { - l = len(s) - n += 1 + l + sovCommands(uint64(l)) - } - } - if m.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockListConvertChildrenToPagesResponseError) 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 *RpcBlockListMove) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockListMoveRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if len(m.BlockIds) > 0 { - for _, s := range m.BlockIds { - l = len(s) - n += 1 + l + sovCommands(uint64(l)) - } - } - l = len(m.TargetContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.DropTargetId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Position != 0 { - n += 1 + sovCommands(uint64(m.Position)) - } - return n -} - -func (m *RpcBlockListMoveResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockListMoveResponseError) 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 *RpcBlockListMoveToNewPage) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockListMoveToNewPageRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if len(m.BlockIds) > 0 { - for _, s := range m.BlockIds { - l = len(s) - n += 1 + l + sovCommands(uint64(l)) - } - } - if m.Details != nil { - l = m.Details.Size() - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.DropTargetId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Position != 0 { - n += 1 + sovCommands(uint64(m.Position)) - } - return n -} - -func (m *RpcBlockListMoveToNewPageResponse) 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.LinkId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockListMoveToNewPageResponseError) 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 *RpcBlockListDuplicate) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockListDuplicateRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.TargetId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if len(m.BlockIds) > 0 { - for _, s := range m.BlockIds { - l = len(s) - n += 1 + l + sovCommands(uint64(l)) - } - } - if m.Position != 0 { - n += 1 + sovCommands(uint64(m.Position)) - } - return n -} - -func (m *RpcBlockListDuplicateResponse) 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 len(m.BlockIds) > 0 { - for _, s := range m.BlockIds { - l = len(s) - n += 1 + l + sovCommands(uint64(l)) - } - } - if m.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockListDuplicateResponseError) 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 *RpcBlockListSet) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockListSetText) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockListSetTextStyle) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockListSetTextStyleRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if len(m.BlockIds) > 0 { - for _, s := range m.BlockIds { - l = len(s) - n += 1 + l + sovCommands(uint64(l)) - } - } - if m.Style != 0 { - n += 1 + sovCommands(uint64(m.Style)) - } - return n -} - -func (m *RpcBlockListSetTextStyleResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockListSetTextStyleResponseError) 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 *RpcBlockListSetTextColor) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockListSetTextColorRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if len(m.BlockIds) > 0 { - for _, s := range m.BlockIds { - l = len(s) - n += 1 + l + sovCommands(uint64(l)) - } - } - l = len(m.Color) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockListSetTextColorResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockListSetTextColorResponseError) 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 *RpcBlockListSetTextMark) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockListSetTextMarkRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if len(m.BlockIds) > 0 { - for _, s := range m.BlockIds { - l = len(s) - n += 1 + l + sovCommands(uint64(l)) - } - } - if m.Mark != nil { - l = m.Mark.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockListSetTextMarkResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockListSetTextMarkResponseError) 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 *RpcBlockListSetBackgroundColor) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockListSetBackgroundColorRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if len(m.BlockIds) > 0 { - for _, s := range m.BlockIds { - l = len(s) - n += 1 + l + sovCommands(uint64(l)) - } - } - l = len(m.Color) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockListSetBackgroundColorResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockListSetBackgroundColorResponseError) 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 *RpcBlockListSetAlign) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockListSetAlignRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if len(m.BlockIds) > 0 { - for _, s := range m.BlockIds { - l = len(s) - n += 1 + l + sovCommands(uint64(l)) - } - } - if m.Align != 0 { - n += 1 + sovCommands(uint64(m.Align)) - } - return n -} - -func (m *RpcBlockListSetAlignResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockListSetAlignResponseError) 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 *RpcBlockListSetFields) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockListSetFieldsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if len(m.BlockFields) > 0 { - for _, e := range m.BlockFields { - l = e.Size() - n += 1 + l + sovCommands(uint64(l)) - } - } - return n -} - -func (m *RpcBlockListSetFieldsRequestBlockField) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Fields != nil { - l = m.Fields.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockListSetFieldsResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockListSetFieldsResponseError) 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 *RpcBlockListSetDiv) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockListSetDivStyle) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockListSetDivStyleRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if len(m.BlockIds) > 0 { - for _, s := range m.BlockIds { - l = len(s) - n += 1 + l + sovCommands(uint64(l)) - } - } - if m.Style != 0 { - n += 1 + sovCommands(uint64(m.Style)) - } - return n -} - -func (m *RpcBlockListSetDivStyleResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockListSetDivStyleResponseError) 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 *RpcBlockListSetFile) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockListSetFileStyle) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockListSetFileStyleRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if len(m.BlockIds) > 0 { - for _, s := range m.BlockIds { - l = len(s) - n += 1 + l + sovCommands(uint64(l)) - } - } - if m.Style != 0 { - n += 1 + sovCommands(uint64(m.Style)) - } - return n -} - -func (m *RpcBlockListSetFileStyleResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockListSetFileStyleResponseError) 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 *RpcBlockListTurnInto) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockListTurnIntoRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if len(m.BlockIds) > 0 { - for _, s := range m.BlockIds { - l = len(s) - n += 1 + l + sovCommands(uint64(l)) - } - } - if m.Style != 0 { - n += 1 + sovCommands(uint64(m.Style)) - } - return n -} - -func (m *RpcBlockListTurnIntoResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockListTurnIntoResponseError) 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 *RpcBlock) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockReplace) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockReplaceRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Block != nil { - l = m.Block.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockReplaceResponse) 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.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockReplaceResponseError) 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 *RpcBlockUpdateContent) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockUpdateContentRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Block != nil { - l = m.Block.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockUpdateContentResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockUpdateContentResponseError) 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 *RpcBlockSplit) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockSplitRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Range != nil { - l = m.Range.Size() - n += 1 + l + sovCommands(uint64(l)) - } - if m.Style != 0 { - n += 1 + sovCommands(uint64(m.Style)) - } - if m.Mode != 0 { - n += 1 + sovCommands(uint64(m.Mode)) - } - return n -} - -func (m *RpcBlockSplitResponse) 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.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockSplitResponseError) 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 *RpcBlockMerge) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockMergeRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.FirstBlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.SecondBlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockMergeResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockMergeResponseError) 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 *RpcBlockCopy) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockCopyRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if len(m.Blocks) > 0 { - for _, e := range m.Blocks { - l = e.Size() - n += 1 + l + sovCommands(uint64(l)) - } - } - if m.SelectedTextRange != nil { - l = m.SelectedTextRange.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockCopyResponse) 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.TextSlot) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.HtmlSlot) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if len(m.AnySlot) > 0 { - for _, e := range m.AnySlot { - l = e.Size() - n += 1 + l + sovCommands(uint64(l)) - } - } - return n -} - -func (m *RpcBlockCopyResponseError) 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 *RpcBlockPaste) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockPasteRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.FocusedBlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.SelectedTextRange != nil { - l = m.SelectedTextRange.Size() - n += 1 + l + sovCommands(uint64(l)) - } - if len(m.SelectedBlockIds) > 0 { - for _, s := range m.SelectedBlockIds { - l = len(s) - n += 1 + l + sovCommands(uint64(l)) - } - } - if m.IsPartOfBlock { - n += 2 - } - l = len(m.TextSlot) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.HtmlSlot) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if len(m.AnySlot) > 0 { - for _, e := range m.AnySlot { - l = e.Size() - n += 1 + l + sovCommands(uint64(l)) - } - } - if len(m.FileSlot) > 0 { - for _, e := range m.FileSlot { - l = e.Size() - n += 1 + l + sovCommands(uint64(l)) - } - } - return n -} - -func (m *RpcBlockPasteRequestFile) 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)) - } - l = len(m.Data) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.LocalPath) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockPasteResponse) 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 len(m.BlockIds) > 0 { - for _, s := range m.BlockIds { - l = len(s) - n += 1 + l + sovCommands(uint64(l)) - } - } - if m.CaretPosition != 0 { - n += 1 + sovCommands(uint64(m.CaretPosition)) - } - if m.IsSameBlockCaret { - n += 2 - } - if m.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockPasteResponseError) 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 *RpcBlockCut) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockCutRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if len(m.Blocks) > 0 { - for _, e := range m.Blocks { - l = e.Size() - n += 1 + l + sovCommands(uint64(l)) - } - } - if m.SelectedTextRange != nil { - l = m.SelectedTextRange.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockCutResponse) 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.TextSlot) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.HtmlSlot) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if len(m.AnySlot) > 0 { - for _, e := range m.AnySlot { - l = e.Size() - n += 1 + l + sovCommands(uint64(l)) - } - } - if m.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockCutResponseError) 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 *RpcBlockImportMarkdown) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockImportMarkdownRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.ImportPath) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockImportMarkdownResponse) 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 len(m.RootLinkIds) > 0 { - for _, s := range m.RootLinkIds { - l = len(s) - n += 1 + l + sovCommands(uint64(l)) - } - } - if m.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockImportMarkdownResponseError) 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 *RpcBlockExport) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockExportRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if len(m.Blocks) > 0 { - for _, e := range m.Blocks { - l = e.Size() - n += 1 + l + sovCommands(uint64(l)) - } - } - return n -} - -func (m *RpcBlockExportResponse) 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.Path) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockExportResponseError) 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 *RpcBlockUpload) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockUploadRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.FilePath) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.Url) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockUploadResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockUploadResponseError) 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 *RpcBlockDownload) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockDownloadRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockDownloadResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockDownloadResponseError) 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 *RpcBlockSet) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockSetFields) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockSetFieldsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Fields != nil { - l = m.Fields.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockSetFieldsResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockSetFieldsResponseError) 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 *RpcBlockSetDetails) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockSetDetailsDetail) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Key) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Value != nil { - l = m.Value.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockSetDetailsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if len(m.Details) > 0 { - for _, e := range m.Details { - l = e.Size() - n += 1 + l + sovCommands(uint64(l)) - } - } - return n -} - -func (m *RpcBlockSetDetailsResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockSetDetailsResponseError) 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 *RpcBlockSetRestrictions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockSetRestrictionsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Restrictions != nil { - l = m.Restrictions.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockSetRestrictionsResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockSetRestrictionsResponseError) 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 *RpcBlockSetPage) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockSetPageIsArchived) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockSetPageIsArchivedRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.IsArchived { - n += 2 - } - return n -} - -func (m *RpcBlockSetPageIsArchivedResponse) 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 *RpcBlockSetPageIsArchivedResponseError) 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 *RpcBlockSetLatex) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockSetLatexText) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockSetLatexTextRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.Text) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockSetLatexTextResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockSetLatexTextResponseError) 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 *RpcBlockSetText) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockSetTextText) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockSetTextTextRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.Text) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Marks != nil { - l = m.Marks.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockSetTextTextResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockSetTextTextResponseError) 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 *RpcBlockSetTextColor) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockSetTextColorRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.Color) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockSetTextColorResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockSetTextColorResponseError) 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 *RpcBlockSetTextStyle) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockSetTextStyleRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Style != 0 { - n += 1 + sovCommands(uint64(m.Style)) - } - return n -} - -func (m *RpcBlockSetTextStyleResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockSetTextStyleResponseError) 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 *RpcBlockSetTextChecked) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockSetTextCheckedRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Checked { - n += 2 - } - return n -} - -func (m *RpcBlockSetTextCheckedResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockSetTextCheckedResponseError) 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 *RpcBlockSetTextIcon) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockSetTextIconRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.IconImage) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.IconEmoji) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockSetTextIconResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockSetTextIconResponseError) 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 *RpcBlockSetFile) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockSetFileName) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockSetFileNameRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.BlockId) - 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 *RpcBlockSetFileNameResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockSetFileNameResponseError) 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 *RpcBlockSetImage) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockSetImageName) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockSetImageNameRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.BlockId) - 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 *RpcBlockSetImageNameResponse) 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 *RpcBlockSetImageNameResponseError) 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 *RpcBlockSetImageWidth) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockSetImageWidthRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Width != 0 { - n += 1 + sovCommands(uint64(m.Width)) - } - return n -} - -func (m *RpcBlockSetImageWidthResponse) 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 *RpcBlockSetImageWidthResponseError) 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 *RpcBlockSetVideo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockSetVideoName) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockSetVideoNameRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.BlockId) - 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 *RpcBlockSetVideoNameResponse) 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 *RpcBlockSetVideoNameResponseError) 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 *RpcBlockSetVideoWidth) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockSetVideoWidthRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Width != 0 { - n += 1 + sovCommands(uint64(m.Width)) - } - return n -} - -func (m *RpcBlockSetVideoWidthResponse) 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 *RpcBlockSetVideoWidthResponseError) 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 *RpcBlockSetLink) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockSetLinkTargetBlockId) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockSetLinkTargetBlockIdRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.TargetBlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockSetLinkTargetBlockIdResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockSetLinkTargetBlockIdResponseError) 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 *RpcBlockRelation) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockRelationSetKey) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockRelationSetKeyRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.Key) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockRelationSetKeyResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockRelationSetKeyResponseError) 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 *RpcBlockRelationAdd) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockRelationAddRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Relation != nil { - l = m.Relation.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockRelationAddResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockRelationAddResponseError) 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 *RpcBlockObjectType) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockObjectTypeSet) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockObjectTypeSetRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.ObjectTypeUrl) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockObjectTypeSetResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockObjectTypeSetResponseError) 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 *RpcBlockBookmark) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockBookmarkFetch) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockBookmarkFetchRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.Url) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockBookmarkFetchResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockBookmarkFetchResponseError) 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 *RpcBlockBookmarkCreateAndFetch) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockBookmarkCreateAndFetchRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.TargetId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Position != 0 { - n += 1 + sovCommands(uint64(m.Position)) - } - l = len(m.Url) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockBookmarkCreateAndFetchResponse) 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.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockBookmarkCreateAndFetchResponseError) 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 *RpcBlockFile) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockFileCreateAndUpload) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockFileCreateAndUploadRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.TargetId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Position != 0 { - n += 1 + sovCommands(uint64(m.Position)) - } - l = len(m.Url) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.LocalPath) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.FileType != 0 { - n += 1 + sovCommands(uint64(m.FileType)) - } - return n -} - -func (m *RpcBlockFileCreateAndUploadResponse) 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.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockFileCreateAndUploadResponseError) 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 *RpcBlockDataview) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockDataviewViewCreate) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockDataviewViewCreateRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.View != nil { - l = m.View.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockDataviewViewCreateResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.ViewId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockDataviewViewCreateResponseError) 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 *RpcBlockDataviewViewUpdate) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockDataviewViewUpdateRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.ViewId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.View != nil { - l = m.View.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockDataviewViewUpdateResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockDataviewViewUpdateResponseError) 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 *RpcBlockDataviewViewDelete) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockDataviewViewDeleteRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.ViewId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockDataviewViewDeleteResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockDataviewViewDeleteResponseError) 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 *RpcBlockDataviewViewSetPosition) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockDataviewViewSetPositionRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.ViewId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Position != 0 { - n += 1 + sovCommands(uint64(m.Position)) - } - return n -} - -func (m *RpcBlockDataviewViewSetPositionResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockDataviewViewSetPositionResponseError) 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 *RpcBlockDataviewViewSetActive) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockDataviewViewSetActiveRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.ViewId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Offset != 0 { - n += 1 + sovCommands(uint64(m.Offset)) - } - if m.Limit != 0 { - n += 1 + sovCommands(uint64(m.Limit)) - } - return n -} - -func (m *RpcBlockDataviewViewSetActiveResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockDataviewViewSetActiveResponseError) 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 *RpcBlockDataviewRecordUpdate) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockDataviewRecordUpdateRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.RecordId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Record != nil { - l = m.Record.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockDataviewRecordUpdateResponse) 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 *RpcBlockDataviewRecordUpdateResponseError) 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 *RpcBlockDataviewRecordDelete) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockDataviewRecordDeleteRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.RecordId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockDataviewRecordDeleteResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockDataviewRecordDeleteResponseError) 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 *RpcBlockDataviewRecordCreate) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockDataviewRecordCreateRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Record != nil { - l = m.Record.Size() - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.TemplateId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockDataviewRecordCreateResponse) 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.Record != nil { - l = m.Record.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockDataviewRecordCreateResponseError) 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 *RpcBlockDataviewRelationAdd) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockDataviewRelationAddRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Relation != nil { - l = m.Relation.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockDataviewRelationAddResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.RelationKey) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Relation != nil { - l = m.Relation.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockDataviewRelationAddResponseError) 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 *RpcBlockDataviewRelationUpdate) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockDataviewRelationUpdateRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.RelationKey) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Relation != nil { - l = m.Relation.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockDataviewRelationUpdateResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockDataviewRelationUpdateResponseError) 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 *RpcBlockDataviewRelationDelete) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockDataviewRelationDeleteRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.RelationKey) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockDataviewRelationDeleteResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockDataviewRelationDeleteResponseError) 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 *RpcBlockDataviewRecordRelationOptionAdd) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockDataviewRecordRelationOptionAddRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.RelationKey) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Option != nil { - l = m.Option.Size() - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.RecordId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockDataviewRecordRelationOptionAddResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - if m.Option != nil { - l = m.Option.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockDataviewRecordRelationOptionAddResponseError) 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 *RpcBlockDataviewRecordRelationOptionUpdate) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockDataviewRecordRelationOptionUpdateRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.RelationKey) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Option != nil { - l = m.Option.Size() - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.RecordId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockDataviewRecordRelationOptionUpdateResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockDataviewRecordRelationOptionUpdateResponseError) 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 *RpcBlockDataviewRecordRelationOptionDelete) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockDataviewRecordRelationOptionDeleteRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.RelationKey) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.OptionId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.RecordId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockDataviewRecordRelationOptionDeleteResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockDataviewRecordRelationOptionDeleteResponseError) 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 *RpcBlockDataviewRelationListAvailable) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockDataviewRelationListAvailableRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockDataviewRelationListAvailableResponse) 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 len(m.Relations) > 0 { - for _, e := range m.Relations { - l = e.Size() - n += 1 + l + sovCommands(uint64(l)) - } - } - return n -} - -func (m *RpcBlockDataviewRelationListAvailableResponseError) 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 *RpcBlockDataviewSetSource) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockDataviewSetSourceRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if len(m.Source) > 0 { - for _, s := range m.Source { - l = len(s) - n += 1 + l + sovCommands(uint64(l)) - } - } - return n -} - -func (m *RpcBlockDataviewSetSourceResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockDataviewSetSourceResponseError) 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 *RpcBlockGet) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockGetMarks) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockGetMarksRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Range != nil { - l = m.Range.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockGetMarksResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockGetMarksResponseError) 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 *RpcBlockUndoRedoCounter) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Undo != 0 { - n += 1 + sovCommands(uint64(m.Undo)) - } - if m.Redo != 0 { - n += 1 + sovCommands(uint64(m.Redo)) - } - return n -} - -func (m *RpcBlockUndo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockUndoRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockUndoResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - if m.Counters != nil { - l = m.Counters.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockUndoResponseError) 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 *RpcBlockRedo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockRedoRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockRedoResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - if m.Counters != nil { - l = m.Counters.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockRedoResponseError) 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 *RpcBlockOpen) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockOpenRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.TraceId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockOpenResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockOpenResponseError) 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 *RpcBlockShow) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockShowRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.TraceId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockShowResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockShowResponseError) 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 *RpcBlockGetPublicWebURL) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockGetPublicWebURLRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockGetPublicWebURLResponse) 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.Url) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockGetPublicWebURLResponseError) 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 *RpcBlockOpenBreadcrumbs) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockOpenBreadcrumbsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.TraceId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockOpenBreadcrumbsResponse) 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.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockOpenBreadcrumbsResponseError) 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 *RpcBlockSetBreadcrumbs) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockSetBreadcrumbsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.BreadcrumbsId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if len(m.Ids) > 0 { - for _, s := range m.Ids { - l = len(s) - n += 1 + l + sovCommands(uint64(l)) - } - } - return n -} - -func (m *RpcBlockSetBreadcrumbsResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockSetBreadcrumbsResponseError) 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 *RpcBlockCreate) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockCreateRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.TargetId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Block != nil { - l = m.Block.Size() - n += 1 + l + sovCommands(uint64(l)) - } - if m.Position != 0 { - n += 1 + sovCommands(uint64(m.Position)) - } - return n -} - -func (m *RpcBlockCreateResponse) 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.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockCreateResponseError) 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 *RpcBlockCreatePage) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockCreatePageRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.TargetId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Details != nil { - l = m.Details.Size() - n += 1 + l + sovCommands(uint64(l)) - } - if m.Position != 0 { - n += 1 + sovCommands(uint64(m.Position)) - } - l = len(m.TemplateId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Fields != nil { - l = m.Fields.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockCreatePageResponse) 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.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.TargetId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockCreatePageResponseError) 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 *RpcBlockCreateSet) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockCreateSetRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.TargetId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if len(m.Source) > 0 { - for _, s := range m.Source { - l = len(s) - n += 1 + l + sovCommands(uint64(l)) - } - } - if m.Details != nil { - l = m.Details.Size() - n += 1 + l + sovCommands(uint64(l)) - } - if m.Position != 0 { - n += 1 + sovCommands(uint64(m.Position)) - } - return n -} - -func (m *RpcBlockCreateSetResponse) 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.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.TargetId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockCreateSetResponseError) 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 *RpcBlockUnlink) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockUnlinkRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if len(m.BlockIds) > 0 { - for _, s := range m.BlockIds { - l = len(s) - n += 1 + l + sovCommands(uint64(l)) - } - } - return n -} - -func (m *RpcBlockUnlinkResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockUnlinkResponseError) 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 *RpcBlockClose) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcBlockCloseRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.BlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcBlockCloseResponse) 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 *RpcBlockCloseResponseError) 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 *RpcWorkspace) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcWorkspaceGetCurrent) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcWorkspaceGetCurrentRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcWorkspaceGetCurrentResponse) 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.WorkspaceId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcWorkspaceGetCurrentResponseError) 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 *RpcWorkspaceGetAll) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcWorkspaceGetAllRequest) Size() (n int) { +func (m *RpcAppGetVersionRequest) Size() (n int) { if m == nil { return 0 } @@ -70041,7 +62127,7 @@ func (m *RpcWorkspaceGetAllRequest) Size() (n int) { return n } -func (m *RpcWorkspaceGetAllResponse) Size() (n int) { +func (m *RpcAppGetVersionResponse) Size() (n int) { if m == nil { return 0 } @@ -70051,71 +62137,18 @@ func (m *RpcWorkspaceGetAllResponse) Size() (n int) { l = m.Error.Size() n += 1 + l + sovCommands(uint64(l)) } - if len(m.WorkspaceIds) > 0 { - for _, s := range m.WorkspaceIds { - l = len(s) - n += 1 + l + sovCommands(uint64(l)) - } - } - return n -} - -func (m *RpcWorkspaceGetAllResponseError) 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 *RpcWorkspaceCreate) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcWorkspaceCreateRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Name) + l = len(m.Version) if l > 0 { n += 1 + l + sovCommands(uint64(l)) } - return n -} - -func (m *RpcWorkspaceCreateResponse) 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.WorkspaceId) + l = len(m.Details) if l > 0 { n += 1 + l + sovCommands(uint64(l)) } return n } -func (m *RpcWorkspaceCreateResponseError) Size() (n int) { +func (m *RpcAppGetVersionResponseError) Size() (n int) { if m == nil { return 0 } @@ -70131,7 +62164,7 @@ func (m *RpcWorkspaceCreateResponseError) Size() (n int) { return n } -func (m *RpcWorkspaceSetIsHighlighted) Size() (n int) { +func (m *RpcAppSetDeviceState) Size() (n int) { if m == nil { return 0 } @@ -70140,23 +62173,19 @@ func (m *RpcWorkspaceSetIsHighlighted) Size() (n int) { return n } -func (m *RpcWorkspaceSetIsHighlightedRequest) Size() (n int) { +func (m *RpcAppSetDeviceStateRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ObjectId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.IsHighlighted { - n += 2 + if m.DeviceState != 0 { + n += 1 + sovCommands(uint64(m.DeviceState)) } return n } -func (m *RpcWorkspaceSetIsHighlightedResponse) Size() (n int) { +func (m *RpcAppSetDeviceStateResponse) Size() (n int) { if m == nil { return 0 } @@ -70169,7 +62198,7 @@ func (m *RpcWorkspaceSetIsHighlightedResponse) Size() (n int) { return n } -func (m *RpcWorkspaceSetIsHighlightedResponseError) Size() (n int) { +func (m *RpcAppSetDeviceStateResponseError) Size() (n int) { if m == nil { return 0 } @@ -70185,7 +62214,7 @@ func (m *RpcWorkspaceSetIsHighlightedResponseError) Size() (n int) { return n } -func (m *RpcWorkspaceSelect) Size() (n int) { +func (m *RpcAppShutdown) Size() (n int) { if m == nil { return 0 } @@ -70194,20 +62223,16 @@ func (m *RpcWorkspaceSelect) Size() (n int) { return n } -func (m *RpcWorkspaceSelectRequest) Size() (n int) { +func (m *RpcAppShutdownRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.WorkspaceId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } return n } -func (m *RpcWorkspaceSelectResponse) Size() (n int) { +func (m *RpcAppShutdownResponse) Size() (n int) { if m == nil { return 0 } @@ -70220,7 +62245,7 @@ func (m *RpcWorkspaceSelectResponse) Size() (n int) { return n } -func (m *RpcWorkspaceSelectResponseError) Size() (n int) { +func (m *RpcAppShutdownResponseError) Size() (n int) { if m == nil { return 0 } @@ -70742,7 +62767,7 @@ func (m *RpcAccountStopResponseError) Size() (n int) { return n } -func (m *RpcLog) Size() (n int) { +func (m *RpcAccountGetConfig) Size() (n int) { if m == nil { return 0 } @@ -70751,7 +62776,7 @@ func (m *RpcLog) Size() (n int) { return n } -func (m *RpcLogSend) Size() (n int) { +func (m *RpcAccountGetConfigGet) Size() (n int) { if m == nil { return 0 } @@ -70760,23 +62785,43 @@ func (m *RpcLogSend) Size() (n int) { return n } -func (m *RpcLogSendRequest) Size() (n int) { +func (m *RpcAccountGetConfigGetRequest) 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 *RpcLogSendResponse) Size() (n int) { +func (m *RpcWorkspace) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcWorkspaceGetCurrent) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcWorkspaceGetCurrentRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcWorkspaceGetCurrentResponse) Size() (n int) { if m == nil { return 0 } @@ -70786,10 +62831,14 @@ func (m *RpcLogSendResponse) Size() (n int) { l = m.Error.Size() n += 1 + l + sovCommands(uint64(l)) } + l = len(m.WorkspaceId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } return n } -func (m *RpcLogSendResponseError) Size() (n int) { +func (m *RpcWorkspaceGetCurrentResponseError) Size() (n int) { if m == nil { return 0 } @@ -70805,7 +62854,7 @@ func (m *RpcLogSendResponseError) Size() (n int) { return n } -func (m *RpcVersion) Size() (n int) { +func (m *RpcWorkspaceGetAll) Size() (n int) { if m == nil { return 0 } @@ -70814,7 +62863,7 @@ func (m *RpcVersion) Size() (n int) { return n } -func (m *RpcVersionGet) Size() (n int) { +func (m *RpcWorkspaceGetAllRequest) Size() (n int) { if m == nil { return 0 } @@ -70823,16 +62872,7 @@ func (m *RpcVersionGet) Size() (n int) { return n } -func (m *RpcVersionGetRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcVersionGetResponse) Size() (n int) { +func (m *RpcWorkspaceGetAllResponse) Size() (n int) { if m == nil { return 0 } @@ -70842,155 +62882,16 @@ func (m *RpcVersionGetResponse) Size() (n int) { l = m.Error.Size() n += 1 + l + sovCommands(uint64(l)) } - l = len(m.Version) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.Details) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcVersionGetResponseError) 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 *RpcFile) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcFileOffload) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcFileOffloadRequest) 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.IncludeNotPinned { - n += 2 - } - return n -} - -func (m *RpcFileOffloadResponse) 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.BytesOffloaded != 0 { - n += 1 + sovCommands(uint64(m.BytesOffloaded)) - } - return n -} - -func (m *RpcFileOffloadResponseError) 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 *RpcFileList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcFileListOffload) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcFileListOffloadRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.OnlyIds) > 0 { - for _, s := range m.OnlyIds { + if len(m.WorkspaceIds) > 0 { + for _, s := range m.WorkspaceIds { l = len(s) n += 1 + l + sovCommands(uint64(l)) } } - if m.IncludeNotPinned { - n += 2 - } return n } -func (m *RpcFileListOffloadResponse) 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.FilesOffloaded != 0 { - n += 1 + sovCommands(uint64(m.FilesOffloaded)) - } - if m.BytesOffloaded != 0 { - n += 1 + sovCommands(uint64(m.BytesOffloaded)) - } - return n -} - -func (m *RpcFileListOffloadResponseError) Size() (n int) { +func (m *RpcWorkspaceGetAllResponseError) Size() (n int) { if m == nil { return 0 } @@ -71006,7 +62907,7 @@ func (m *RpcFileListOffloadResponseError) Size() (n int) { return n } -func (m *RpcShutdown) Size() (n int) { +func (m *RpcWorkspaceCreate) Size() (n int) { if m == nil { return 0 } @@ -71015,16 +62916,20 @@ func (m *RpcShutdown) Size() (n int) { return n } -func (m *RpcShutdownRequest) Size() (n int) { +func (m *RpcWorkspaceCreateRequest) 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)) + } return n } -func (m *RpcShutdownResponse) Size() (n int) { +func (m *RpcWorkspaceCreateResponse) Size() (n int) { if m == nil { return 0 } @@ -71034,10 +62939,14 @@ func (m *RpcShutdownResponse) Size() (n int) { l = m.Error.Size() n += 1 + l + sovCommands(uint64(l)) } + l = len(m.WorkspaceId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } return n } -func (m *RpcShutdownResponseError) Size() (n int) { +func (m *RpcWorkspaceCreateResponseError) Size() (n int) { if m == nil { return 0 } @@ -71053,7 +62962,7 @@ func (m *RpcShutdownResponseError) Size() (n int) { return n } -func (m *RpcDeviceState) Size() (n int) { +func (m *RpcWorkspaceSetIsHighlighted) Size() (n int) { if m == nil { return 0 } @@ -71062,518 +62971,7 @@ func (m *RpcDeviceState) Size() (n int) { return n } -func (m *RpcDeviceStateRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.DeviceState != 0 { - n += 1 + sovCommands(uint64(m.DeviceState)) - } - return n -} - -func (m *RpcDeviceStateResponse) 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 *RpcDeviceStateResponseError) 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 *RpcConfig) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcConfigGet) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcConfigGetRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcConfigGetResponse) 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.HomeBlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.ArchiveBlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.ProfileBlockId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.MarketplaceTypeId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.MarketplaceRelationId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.MarketplaceTemplateId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.DeviceId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.GatewayUrl) - if l > 0 { - n += 2 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcConfigGetResponseError) 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 *RpcPing) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcPingRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Index != 0 { - n += 1 + sovCommands(uint64(m.Index)) - } - if m.NumberOfEventsToSend != 0 { - n += 1 + sovCommands(uint64(m.NumberOfEventsToSend)) - } - return n -} - -func (m *RpcPingResponse) 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.Index != 0 { - n += 1 + sovCommands(uint64(m.Index)) - } - return n -} - -func (m *RpcPingResponseError) 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 *RpcProcess) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcProcessCancel) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcProcessCancelRequest) 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 *RpcProcessCancelResponse) 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 *RpcProcessCancelResponseError) 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 *RpcLinkPreview) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcLinkPreviewRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Url) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcLinkPreviewResponse) 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.LinkPreview != nil { - l = m.LinkPreview.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcLinkPreviewResponseError) 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 *RpcUploadFile) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcUploadFileRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Url) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.LocalPath) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Type != 0 { - n += 1 + sovCommands(uint64(m.Type)) - } - if m.DisableEncryption { - n += 2 - } - if m.Style != 0 { - n += 1 + sovCommands(uint64(m.Style)) - } - return n -} - -func (m *RpcUploadFileResponse) 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.Hash) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcUploadFileResponseError) 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 *RpcDownloadFile) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcDownloadFileRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Hash) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.Path) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcDownloadFileResponse) 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 *RpcDownloadFileResponseError) 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 *RpcNavigation) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcNavigationListObjects) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcNavigationListObjectsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Context != 0 { - n += 1 + sovCommands(uint64(m.Context)) - } - l = len(m.FullText) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Limit != 0 { - n += 1 + sovCommands(uint64(m.Limit)) - } - if m.Offset != 0 { - n += 1 + sovCommands(uint64(m.Offset)) - } - return n -} - -func (m *RpcNavigationListObjectsResponse) 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 len(m.Objects) > 0 { - for _, e := range m.Objects { - l = e.Size() - n += 1 + l + sovCommands(uint64(l)) - } - } - return n -} - -func (m *RpcNavigationListObjectsResponseError) 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 *RpcNavigationGetObjectInfoWithLinks) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcNavigationGetObjectInfoWithLinksRequest) Size() (n int) { +func (m *RpcWorkspaceSetIsHighlightedRequest) Size() (n int) { if m == nil { return 0 } @@ -71583,13 +62981,13 @@ func (m *RpcNavigationGetObjectInfoWithLinksRequest) Size() (n int) { if l > 0 { n += 1 + l + sovCommands(uint64(l)) } - if m.Context != 0 { - n += 1 + sovCommands(uint64(m.Context)) + if m.IsHighlighted { + n += 2 } return n } -func (m *RpcNavigationGetObjectInfoWithLinksResponse) Size() (n int) { +func (m *RpcWorkspaceSetIsHighlightedResponse) Size() (n int) { if m == nil { return 0 } @@ -71599,14 +62997,10 @@ func (m *RpcNavigationGetObjectInfoWithLinksResponse) Size() (n int) { l = m.Error.Size() n += 1 + l + sovCommands(uint64(l)) } - if m.Object != nil { - l = m.Object.Size() - n += 1 + l + sovCommands(uint64(l)) - } return n } -func (m *RpcNavigationGetObjectInfoWithLinksResponseError) Size() (n int) { +func (m *RpcWorkspaceSetIsHighlightedResponseError) Size() (n int) { if m == nil { return 0 } @@ -71622,7 +63016,7 @@ func (m *RpcNavigationGetObjectInfoWithLinksResponseError) Size() (n int) { return n } -func (m *RpcHistory) Size() (n int) { +func (m *RpcWorkspaceSelect) Size() (n int) { if m == nil { return 0 } @@ -71631,69 +63025,20 @@ func (m *RpcHistory) Size() (n int) { return n } -func (m *RpcHistoryVersions) Size() (n int) { +func (m *RpcWorkspaceSelectRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l - return n -} - -func (m *RpcHistoryVersionsVersion) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Id) + l = len(m.WorkspaceId) if l > 0 { n += 1 + l + sovCommands(uint64(l)) } - if len(m.PreviousIds) > 0 { - for _, s := range m.PreviousIds { - l = len(s) - n += 1 + l + sovCommands(uint64(l)) - } - } - l = len(m.AuthorId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.AuthorName) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Time != 0 { - n += 1 + sovCommands(uint64(m.Time)) - } - if m.GroupId != 0 { - n += 1 + sovCommands(uint64(m.GroupId)) - } return n } -func (m *RpcHistoryVersionsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.PageId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.LastVersionId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Limit != 0 { - n += 1 + sovCommands(uint64(m.Limit)) - } - return n -} - -func (m *RpcHistoryVersionsResponse) Size() (n int) { +func (m *RpcWorkspaceSelectResponse) Size() (n int) { if m == nil { return 0 } @@ -71703,16 +63048,10 @@ func (m *RpcHistoryVersionsResponse) Size() (n int) { l = m.Error.Size() n += 1 + l + sovCommands(uint64(l)) } - if len(m.Versions) > 0 { - for _, e := range m.Versions { - l = e.Size() - n += 1 + l + sovCommands(uint64(l)) - } - } return n } -func (m *RpcHistoryVersionsResponseError) Size() (n int) { +func (m *RpcWorkspaceSelectResponseError) Size() (n int) { if m == nil { return 0 } @@ -71728,7 +63067,7 @@ func (m *RpcHistoryVersionsResponseError) Size() (n int) { return n } -func (m *RpcHistoryShow) Size() (n int) { +func (m *RpcWorkspaceExport) Size() (n int) { if m == nil { return 0 } @@ -71737,17 +63076,89 @@ func (m *RpcHistoryShow) Size() (n int) { return n } -func (m *RpcHistoryShowRequest) Size() (n int) { +func (m *RpcWorkspaceExportRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.PageId) + l = len(m.Path) if l > 0 { n += 1 + l + sovCommands(uint64(l)) } - l = len(m.VersionId) + l = len(m.WorkspaceId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcWorkspaceExportResponse) 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.Path) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcWorkspaceExportResponseError) 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 *RpcObject) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcObjectOpen) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcObjectOpenRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.ObjectId) if l > 0 { n += 1 + l + sovCommands(uint64(l)) } @@ -71758,7 +63169,7 @@ func (m *RpcHistoryShowRequest) Size() (n int) { return n } -func (m *RpcHistoryShowResponse) Size() (n int) { +func (m *RpcObjectOpenResponse) Size() (n int) { if m == nil { return 0 } @@ -71768,12 +63179,105 @@ func (m *RpcHistoryShowResponse) Size() (n int) { l = m.Error.Size() n += 1 + l + sovCommands(uint64(l)) } - if m.ObjectShow != nil { - l = m.ObjectShow.Size() + if m.Event != nil { + l = m.Event.Size() n += 1 + l + sovCommands(uint64(l)) } - if m.Version != nil { - l = m.Version.Size() + return n +} + +func (m *RpcObjectOpenResponseError) 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 *RpcObjectClose) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcObjectCloseRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.ObjectId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcObjectCloseResponse) 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 *RpcObjectCloseResponseError) 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 *RpcObjectShow) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcObjectShowRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.ObjectId) + if l > 0 { n += 1 + l + sovCommands(uint64(l)) } l = len(m.TraceId) @@ -71783,49 +63287,7 @@ func (m *RpcHistoryShowResponse) Size() (n int) { return n } -func (m *RpcHistoryShowResponseError) 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 *RpcHistorySetVersion) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcHistorySetVersionRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.PageId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.VersionId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcHistorySetVersionResponse) Size() (n int) { +func (m *RpcObjectShowResponse) Size() (n int) { if m == nil { return 0 } @@ -71835,10 +63297,14 @@ func (m *RpcHistorySetVersionResponse) Size() (n int) { l = m.Error.Size() n += 1 + l + sovCommands(uint64(l)) } + if m.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } return n } -func (m *RpcHistorySetVersionResponseError) Size() (n int) { +func (m *RpcObjectShowResponseError) Size() (n int) { if m == nil { return 0 } @@ -71854,7 +63320,7 @@ func (m *RpcHistorySetVersionResponseError) Size() (n int) { return n } -func (m *RpcPage) Size() (n int) { +func (m *RpcObjectCreate) Size() (n int) { if m == nil { return 0 } @@ -71863,16 +63329,7 @@ func (m *RpcPage) Size() (n int) { return n } -func (m *RpcPageCreate) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcPageCreateRequest) Size() (n int) { +func (m *RpcObjectCreateRequest) Size() (n int) { if m == nil { return 0 } @@ -71885,7 +63342,7 @@ func (m *RpcPageCreateRequest) Size() (n int) { return n } -func (m *RpcPageCreateResponse) Size() (n int) { +func (m *RpcObjectCreateResponse) Size() (n int) { if m == nil { return 0 } @@ -71906,7 +63363,7 @@ func (m *RpcPageCreateResponse) Size() (n int) { return n } -func (m *RpcPageCreateResponseError) Size() (n int) { +func (m *RpcObjectCreateResponseError) Size() (n int) { if m == nil { return 0 } @@ -71922,7 +63379,7 @@ func (m *RpcPageCreateResponseError) Size() (n int) { return n } -func (m *RpcSet) Size() (n int) { +func (m *RpcObjectCreateSet) Size() (n int) { if m == nil { return 0 } @@ -71931,16 +63388,7 @@ func (m *RpcSet) Size() (n int) { return n } -func (m *RpcSetCreate) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcSetCreateRequest) Size() (n int) { +func (m *RpcObjectCreateSetRequest) Size() (n int) { if m == nil { return 0 } @@ -71963,7 +63411,7 @@ func (m *RpcSetCreateRequest) Size() (n int) { return n } -func (m *RpcSetCreateResponse) Size() (n int) { +func (m *RpcObjectCreateSetResponse) Size() (n int) { if m == nil { return 0 } @@ -71984,7 +63432,2269 @@ func (m *RpcSetCreateResponse) Size() (n int) { return n } -func (m *RpcSetCreateResponseError) Size() (n int) { +func (m *RpcObjectCreateSetResponseError) 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 *RpcObjectDuplicate) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcObjectDuplicateRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcObjectDuplicateResponse) 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.Id) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcObjectDuplicateResponseError) 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 *RpcObjectOpenBreadcrumbs) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcObjectOpenBreadcrumbsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.TraceId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcObjectOpenBreadcrumbsResponse) 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.ObjectId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcObjectOpenBreadcrumbsResponseError) 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 *RpcObjectSetBreadcrumbs) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcObjectSetBreadcrumbsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.BreadcrumbsId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if len(m.Ids) > 0 { + for _, s := range m.Ids { + l = len(s) + n += 1 + l + sovCommands(uint64(l)) + } + } + return n +} + +func (m *RpcObjectSetBreadcrumbsResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcObjectSetBreadcrumbsResponseError) 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 *RpcObjectImportMarkdown) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcObjectImportMarkdownRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.ImportPath) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcObjectImportMarkdownResponse) 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 len(m.RootLinkIds) > 0 { + for _, s := range m.RootLinkIds { + l = len(s) + n += 1 + l + sovCommands(uint64(l)) + } + } + if m.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcObjectImportMarkdownResponseError) 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 *RpcObjectShareByLink) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcObjectShareByLinkRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ObjectId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcObjectShareByLinkResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Link) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Error != nil { + l = m.Error.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcObjectShareByLinkResponseError) 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 *RpcObjectAddWithObjectId) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcObjectAddWithObjectIdRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ObjectId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.Payload) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcObjectAddWithObjectIdResponse) 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 *RpcObjectAddWithObjectIdResponseError) 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 *RpcObjectSearch) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcObjectSearchRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Filters) > 0 { + for _, e := range m.Filters { + l = e.Size() + n += 1 + l + sovCommands(uint64(l)) + } + } + if len(m.Sorts) > 0 { + for _, e := range m.Sorts { + l = e.Size() + n += 1 + l + sovCommands(uint64(l)) + } + } + l = len(m.FullText) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Offset != 0 { + n += 1 + sovCommands(uint64(m.Offset)) + } + if m.Limit != 0 { + n += 1 + sovCommands(uint64(m.Limit)) + } + if len(m.ObjectTypeFilter) > 0 { + for _, s := range m.ObjectTypeFilter { + l = len(s) + n += 1 + l + sovCommands(uint64(l)) + } + } + if len(m.Keys) > 0 { + for _, s := range m.Keys { + l = len(s) + n += 1 + l + sovCommands(uint64(l)) + } + } + return n +} + +func (m *RpcObjectSearchResponse) 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 len(m.Records) > 0 { + for _, e := range m.Records { + l = e.Size() + n += 1 + l + sovCommands(uint64(l)) + } + } + return n +} + +func (m *RpcObjectSearchResponseError) 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 *RpcObjectGraph) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcObjectGraphRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Filters) > 0 { + for _, e := range m.Filters { + l = e.Size() + n += 1 + l + sovCommands(uint64(l)) + } + } + if m.Limit != 0 { + n += 1 + sovCommands(uint64(m.Limit)) + } + if len(m.ObjectTypeFilter) > 0 { + for _, s := range m.ObjectTypeFilter { + l = len(s) + n += 1 + l + sovCommands(uint64(l)) + } + } + if len(m.Keys) > 0 { + for _, s := range m.Keys { + l = len(s) + n += 1 + l + sovCommands(uint64(l)) + } + } + return n +} + +func (m *RpcObjectGraphEdge) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Source) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.Target) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.Name) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Type != 0 { + n += 1 + sovCommands(uint64(m.Type)) + } + l = len(m.Description) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.IconImage) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.IconEmoji) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Hidden { + n += 2 + } + return n +} + +func (m *RpcObjectGraphResponse) 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 len(m.Nodes) > 0 { + for _, e := range m.Nodes { + l = e.Size() + n += 1 + l + sovCommands(uint64(l)) + } + } + if len(m.Edges) > 0 { + for _, e := range m.Edges { + l = e.Size() + n += 1 + l + sovCommands(uint64(l)) + } + } + return n +} + +func (m *RpcObjectGraphResponseError) 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 *RpcObjectSearchSubscribe) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcObjectSearchSubscribeRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.SubId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if len(m.Filters) > 0 { + for _, e := range m.Filters { + l = e.Size() + n += 1 + l + sovCommands(uint64(l)) + } + } + if len(m.Sorts) > 0 { + for _, e := range m.Sorts { + l = e.Size() + n += 1 + l + sovCommands(uint64(l)) + } + } + if m.Limit != 0 { + n += 1 + sovCommands(uint64(m.Limit)) + } + if m.Offset != 0 { + n += 1 + sovCommands(uint64(m.Offset)) + } + if len(m.Keys) > 0 { + for _, s := range m.Keys { + l = len(s) + n += 1 + l + sovCommands(uint64(l)) + } + } + l = len(m.AfterId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.BeforeId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if len(m.Source) > 0 { + for _, s := range m.Source { + l = len(s) + n += 1 + l + sovCommands(uint64(l)) + } + } + l = len(m.IgnoreWorkspace) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.NoDepSubscription { + n += 2 + } + return n +} + +func (m *RpcObjectSearchSubscribeResponse) 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 len(m.Records) > 0 { + for _, e := range m.Records { + l = e.Size() + n += 1 + l + sovCommands(uint64(l)) + } + } + if len(m.Dependencies) > 0 { + for _, e := range m.Dependencies { + l = e.Size() + n += 1 + l + sovCommands(uint64(l)) + } + } + l = len(m.SubId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Counters != nil { + l = m.Counters.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcObjectSearchSubscribeResponseError) 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 *RpcObjectSubscribeIds) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcObjectSubscribeIdsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.SubId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if len(m.Ids) > 0 { + for _, s := range m.Ids { + l = len(s) + n += 1 + l + sovCommands(uint64(l)) + } + } + if len(m.Keys) > 0 { + for _, s := range m.Keys { + l = len(s) + n += 1 + l + sovCommands(uint64(l)) + } + } + l = len(m.IgnoreWorkspace) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcObjectSubscribeIdsResponse) 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 len(m.Records) > 0 { + for _, e := range m.Records { + l = e.Size() + n += 1 + l + sovCommands(uint64(l)) + } + } + if len(m.Dependencies) > 0 { + for _, e := range m.Dependencies { + l = e.Size() + n += 1 + l + sovCommands(uint64(l)) + } + } + l = len(m.SubId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcObjectSubscribeIdsResponseError) 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 *RpcObjectSearchUnsubscribe) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcObjectSearchUnsubscribeRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.SubIds) > 0 { + for _, s := range m.SubIds { + l = len(s) + n += 1 + l + sovCommands(uint64(l)) + } + } + return n +} + +func (m *RpcObjectSearchUnsubscribeResponse) 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 *RpcObjectSearchUnsubscribeResponseError) 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 *RpcObjectSetLayout) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcObjectSetLayoutRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Layout != 0 { + n += 1 + sovCommands(uint64(m.Layout)) + } + return n +} + +func (m *RpcObjectSetLayoutResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcObjectSetLayoutResponseError) 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 *RpcObjectSetIsFavorite) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcObjectSetIsFavoriteRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.IsFavorite { + n += 2 + } + return n +} + +func (m *RpcObjectSetIsFavoriteResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcObjectSetIsFavoriteResponseError) 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 *RpcObjectSetIsArchived) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcObjectSetIsArchivedRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.IsArchived { + n += 2 + } + return n +} + +func (m *RpcObjectSetIsArchivedResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcObjectSetIsArchivedResponseError) 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 *RpcObjectSetObjectType) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcObjectSetObjectTypeRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.ObjectTypeUrl) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcObjectSetObjectTypeResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcObjectSetObjectTypeResponseError) 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 *RpcObjectSetDetails) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcObjectSetDetailsDetail) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Key) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Value != nil { + l = m.Value.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcObjectSetDetailsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if len(m.Details) > 0 { + for _, e := range m.Details { + l = e.Size() + n += 1 + l + sovCommands(uint64(l)) + } + } + return n +} + +func (m *RpcObjectSetDetailsResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcObjectSetDetailsResponseError) 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 *RpcObjectToSet) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcObjectToSetRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if len(m.Source) > 0 { + for _, s := range m.Source { + l = len(s) + n += 1 + l + sovCommands(uint64(l)) + } + } + return n +} + +func (m *RpcObjectToSetResponse) 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.SetId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcObjectToSetResponseError) 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 *RpcObjectUndoRedoCounter) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Undo != 0 { + n += 1 + sovCommands(uint64(m.Undo)) + } + if m.Redo != 0 { + n += 1 + sovCommands(uint64(m.Redo)) + } + return n +} + +func (m *RpcObjectUndo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcObjectUndoRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcObjectUndoResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + if m.Counters != nil { + l = m.Counters.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcObjectUndoResponseError) 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 *RpcObjectRedo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcObjectRedoRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcObjectRedoResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + if m.Counters != nil { + l = m.Counters.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcObjectRedoResponseError) 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 *RpcObjectListDuplicate) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcObjectListDuplicateRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ObjectIds) > 0 { + for _, s := range m.ObjectIds { + l = len(s) + n += 1 + l + sovCommands(uint64(l)) + } + } + return n +} + +func (m *RpcObjectListDuplicateResponse) 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 len(m.Ids) > 0 { + for _, s := range m.Ids { + l = len(s) + n += 1 + l + sovCommands(uint64(l)) + } + } + return n +} + +func (m *RpcObjectListDuplicateResponseError) 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 *RpcObjectListDelete) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcObjectListDeleteRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ObjectIds) > 0 { + for _, s := range m.ObjectIds { + l = len(s) + n += 1 + l + sovCommands(uint64(l)) + } + } + return n +} + +func (m *RpcObjectListDeleteResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcObjectListDeleteResponseError) 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 *RpcObjectListSetIsArchived) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcObjectListSetIsArchivedRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ObjectIds) > 0 { + for _, s := range m.ObjectIds { + l = len(s) + n += 1 + l + sovCommands(uint64(l)) + } + } + if m.IsArchived { + n += 2 + } + return n +} + +func (m *RpcObjectListSetIsArchivedResponse) 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 *RpcObjectListSetIsArchivedResponseError) 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 *RpcObjectListSetIsFavorite) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcObjectListSetIsFavoriteRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ObjectIds) > 0 { + for _, s := range m.ObjectIds { + l = len(s) + n += 1 + l + sovCommands(uint64(l)) + } + } + if m.IsFavorite { + n += 2 + } + return n +} + +func (m *RpcObjectListSetIsFavoriteResponse) 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 *RpcObjectListSetIsFavoriteResponseError) 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 *RpcObjectApplyTemplate) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcObjectApplyTemplateRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.TemplateId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcObjectApplyTemplateResponse) 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 *RpcObjectApplyTemplateResponseError) 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 *RpcObjectListExport) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcObjectListExportRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Path) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if len(m.ObjectIds) > 0 { + for _, s := range m.ObjectIds { + l = len(s) + n += 1 + l + sovCommands(uint64(l)) + } + } + if m.Format != 0 { + n += 1 + sovCommands(uint64(m.Format)) + } + if m.Zip { + n += 2 + } + if m.IncludeNested { + n += 2 + } + if m.IncludeFiles { + n += 2 + } + return n +} + +func (m *RpcObjectListExportResponse) 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.Path) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + if m.Succeed != 0 { + n += 1 + sovCommands(uint64(m.Succeed)) + } + return n +} + +func (m *RpcObjectListExportResponseError) 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 *RpcObjectRelation) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcObjectRelationAdd) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcObjectRelationAddRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Relation != nil { + l = m.Relation.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcObjectRelationAddResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.RelationKey) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Relation != nil { + l = m.Relation.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcObjectRelationAddResponseError) 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 *RpcObjectRelationUpdate) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcObjectRelationUpdateRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.RelationKey) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Relation != nil { + l = m.Relation.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcObjectRelationUpdateResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcObjectRelationUpdateResponseError) 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 *RpcObjectRelationDelete) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcObjectRelationDeleteRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.RelationKey) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcObjectRelationDeleteResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcObjectRelationDeleteResponseError) 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 *RpcObjectRelationListAvailable) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcObjectRelationListAvailableRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcObjectRelationListAvailableResponse) 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 len(m.Relations) > 0 { + for _, e := range m.Relations { + l = e.Size() + n += 1 + l + sovCommands(uint64(l)) + } + } + return n +} + +func (m *RpcObjectRelationListAvailableResponseError) 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 *RpcObjectRelationAddFeatured) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcObjectRelationAddFeaturedRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if len(m.Relations) > 0 { + for _, s := range m.Relations { + l = len(s) + n += 1 + l + sovCommands(uint64(l)) + } + } + return n +} + +func (m *RpcObjectRelationAddFeaturedResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcObjectRelationAddFeaturedResponseError) 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 *RpcObjectRelationRemoveFeatured) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcObjectRelationRemoveFeaturedRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if len(m.Relations) > 0 { + for _, s := range m.Relations { + l = len(s) + n += 1 + l + sovCommands(uint64(l)) + } + } + return n +} + +func (m *RpcObjectRelationRemoveFeaturedResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcObjectRelationRemoveFeaturedResponseError) 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 *RpcObjectRelationOption) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcObjectRelationOptionAdd) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcObjectRelationOptionAddRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.RelationKey) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Option != nil { + l = m.Option.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcObjectRelationOptionAddResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + if m.Option != nil { + l = m.Option.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcObjectRelationOptionAddResponseError) 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 *RpcObjectRelationOptionUpdate) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcObjectRelationOptionUpdateRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.RelationKey) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Option != nil { + l = m.Option.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcObjectRelationOptionUpdateResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcObjectRelationOptionUpdateResponseError) 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 *RpcObjectRelationOptionDelete) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcObjectRelationOptionDeleteRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.RelationKey) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.OptionId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.ConfirmRemoveAllValuesInRecords { + n += 2 + } + return n +} + +func (m *RpcObjectRelationOptionDeleteResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcObjectRelationOptionDeleteResponseError) Size() (n int) { if m == nil { return 0 } @@ -72359,7 +66069,7 @@ func (m *RpcObjectTypeRelationListResponseError) Size() (n int) { return n } -func (m *RpcObject) Size() (n int) { +func (m *RpcHistory) Size() (n int) { if m == nil { return 0 } @@ -72368,46 +66078,88 @@ func (m *RpcObject) Size() (n int) { return n } -func (m *RpcObjectShareByLink) Size() (n int) { +func (m *RpcHistoryVersion) Size() (n int) { if m == nil { return 0 } var l int _ = l - return n -} - -func (m *RpcObjectShareByLinkRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ObjectId) + l = len(m.Id) if l > 0 { n += 1 + l + sovCommands(uint64(l)) } + if len(m.PreviousIds) > 0 { + for _, s := range m.PreviousIds { + l = len(s) + n += 1 + l + sovCommands(uint64(l)) + } + } + l = len(m.AuthorId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.AuthorName) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Time != 0 { + n += 1 + sovCommands(uint64(m.Time)) + } + if m.GroupId != 0 { + n += 1 + sovCommands(uint64(m.GroupId)) + } return n } -func (m *RpcObjectShareByLinkResponse) Size() (n int) { +func (m *RpcHistoryGetVersions) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.Link) + return n +} + +func (m *RpcHistoryGetVersionsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.PageId) if l > 0 { n += 1 + l + sovCommands(uint64(l)) } + l = len(m.LastVersionId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Limit != 0 { + n += 1 + sovCommands(uint64(m.Limit)) + } + return n +} + +func (m *RpcHistoryGetVersionsResponse) 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 len(m.Versions) > 0 { + for _, e := range m.Versions { + l = e.Size() + n += 1 + l + sovCommands(uint64(l)) + } + } return n } -func (m *RpcObjectShareByLinkResponseError) Size() (n int) { +func (m *RpcHistoryGetVersionsResponseError) Size() (n int) { if m == nil { return 0 } @@ -72423,7 +66175,7 @@ func (m *RpcObjectShareByLinkResponseError) Size() (n int) { return n } -func (m *RpcObjectAddWithObjectId) Size() (n int) { +func (m *RpcHistoryShowVersion) Size() (n int) { if m == nil { return 0 } @@ -72432,24 +66184,28 @@ func (m *RpcObjectAddWithObjectId) Size() (n int) { return n } -func (m *RpcObjectAddWithObjectIdRequest) Size() (n int) { +func (m *RpcHistoryShowVersionRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ObjectId) + l = len(m.PageId) if l > 0 { n += 1 + l + sovCommands(uint64(l)) } - l = len(m.Payload) + l = len(m.VersionId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.TraceId) if l > 0 { n += 1 + l + sovCommands(uint64(l)) } return n } -func (m *RpcObjectAddWithObjectIdResponse) Size() (n int) { +func (m *RpcHistoryShowVersionResponse) Size() (n int) { if m == nil { return 0 } @@ -72459,10 +66215,22 @@ func (m *RpcObjectAddWithObjectIdResponse) Size() (n int) { l = m.Error.Size() n += 1 + l + sovCommands(uint64(l)) } + if m.ObjectShow != nil { + l = m.ObjectShow.Size() + n += 1 + l + sovCommands(uint64(l)) + } + if m.Version != nil { + l = m.Version.Size() + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.TraceId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } return n } -func (m *RpcObjectAddWithObjectIdResponseError) Size() (n int) { +func (m *RpcHistoryShowVersionResponseError) Size() (n int) { if m == nil { return 0 } @@ -72478,7 +66246,7 @@ func (m *RpcObjectAddWithObjectIdResponseError) Size() (n int) { return n } -func (m *RpcObjectRelationAdd) Size() (n int) { +func (m *RpcHistorySetVersion) Size() (n int) { if m == nil { return 0 } @@ -72487,24 +66255,24 @@ func (m *RpcObjectRelationAdd) Size() (n int) { return n } -func (m *RpcObjectRelationAddRequest) Size() (n int) { +func (m *RpcHistorySetVersionRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ContextId) + l = len(m.PageId) if l > 0 { n += 1 + l + sovCommands(uint64(l)) } - if m.Relation != nil { - l = m.Relation.Size() + l = len(m.VersionId) + if l > 0 { n += 1 + l + sovCommands(uint64(l)) } return n } -func (m *RpcObjectRelationAddResponse) Size() (n int) { +func (m *RpcHistorySetVersionResponse) Size() (n int) { if m == nil { return 0 } @@ -72514,22 +66282,10 @@ func (m *RpcObjectRelationAddResponse) Size() (n int) { l = m.Error.Size() n += 1 + l + sovCommands(uint64(l)) } - if m.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.RelationKey) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Relation != nil { - l = m.Relation.Size() - n += 1 + l + sovCommands(uint64(l)) - } return n } -func (m *RpcObjectRelationAddResponseError) Size() (n int) { +func (m *RpcHistorySetVersionResponseError) Size() (n int) { if m == nil { return 0 } @@ -72545,7 +66301,7 @@ func (m *RpcObjectRelationAddResponseError) Size() (n int) { return n } -func (m *RpcObjectRelationUpdate) Size() (n int) { +func (m *RpcFile) Size() (n int) { if m == nil { return 0 } @@ -72554,283 +66310,32 @@ func (m *RpcObjectRelationUpdate) Size() (n int) { return n } -func (m *RpcObjectRelationUpdateRequest) Size() (n int) { +func (m *RpcFileOffload) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ContextId) + return n +} + +func (m *RpcFileOffloadRequest) 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.RelationKey) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Relation != nil { - l = m.Relation.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcObjectRelationUpdateResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcObjectRelationUpdateResponseError) 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 *RpcObjectRelationDelete) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcObjectRelationDeleteRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.RelationKey) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcObjectRelationDeleteResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcObjectRelationDeleteResponseError) 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 *RpcObjectRelationOptionAdd) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcObjectRelationOptionAddRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.RelationKey) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Option != nil { - l = m.Option.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcObjectRelationOptionAddResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - if m.Option != nil { - l = m.Option.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcObjectRelationOptionAddResponseError) 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 *RpcObjectRelationOptionUpdate) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcObjectRelationOptionUpdateRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.RelationKey) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Option != nil { - l = m.Option.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcObjectRelationOptionUpdateResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcObjectRelationOptionUpdateResponseError) 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 *RpcObjectRelationOptionDelete) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcObjectRelationOptionDeleteRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.RelationKey) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.OptionId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.ConfirmRemoveAllValuesInRecords { + if m.IncludeNotPinned { n += 2 } return n } -func (m *RpcObjectRelationOptionDeleteResponse) Size() (n int) { +func (m *RpcFileOffloadResponse) Size() (n int) { if m == nil { return 0 } @@ -72840,14 +66345,13 @@ func (m *RpcObjectRelationOptionDeleteResponse) Size() (n int) { l = m.Error.Size() n += 1 + l + sovCommands(uint64(l)) } - if m.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) + if m.BytesOffloaded != 0 { + n += 1 + sovCommands(uint64(m.BytesOffloaded)) } return n } -func (m *RpcObjectRelationOptionDeleteResponseError) Size() (n int) { +func (m *RpcFileOffloadResponseError) Size() (n int) { if m == nil { return 0 } @@ -72863,7 +66367,7 @@ func (m *RpcObjectRelationOptionDeleteResponseError) Size() (n int) { return n } -func (m *RpcObjectRelationListAvailable) Size() (n int) { +func (m *RpcFileListOffload) Size() (n int) { if m == nil { return 0 } @@ -72872,20 +66376,25 @@ func (m *RpcObjectRelationListAvailable) Size() (n int) { return n } -func (m *RpcObjectRelationListAvailableRequest) Size() (n int) { +func (m *RpcFileListOffloadRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) + if len(m.OnlyIds) > 0 { + for _, s := range m.OnlyIds { + l = len(s) + n += 1 + l + sovCommands(uint64(l)) + } + } + if m.IncludeNotPinned { + n += 2 } return n } -func (m *RpcObjectRelationListAvailableResponse) Size() (n int) { +func (m *RpcFileListOffloadResponse) Size() (n int) { if m == nil { return 0 } @@ -72895,16 +66404,16 @@ func (m *RpcObjectRelationListAvailableResponse) Size() (n int) { l = m.Error.Size() n += 1 + l + sovCommands(uint64(l)) } - if len(m.Relations) > 0 { - for _, e := range m.Relations { - l = e.Size() - n += 1 + l + sovCommands(uint64(l)) - } + if m.FilesOffloaded != 0 { + n += 1 + sovCommands(uint64(m.FilesOffloaded)) + } + if m.BytesOffloaded != 0 { + n += 1 + sovCommands(uint64(m.BytesOffloaded)) } return n } -func (m *RpcObjectRelationListAvailableResponseError) Size() (n int) { +func (m *RpcFileListOffloadResponseError) Size() (n int) { if m == nil { return 0 } @@ -72920,7 +66429,7 @@ func (m *RpcObjectRelationListAvailableResponseError) Size() (n int) { return n } -func (m *RpcObjectSearch) Size() (n int) { +func (m *RpcFileUpload) Size() (n int) { if m == nil { return 0 } @@ -72929,163 +66438,33 @@ func (m *RpcObjectSearch) Size() (n int) { return n } -func (m *RpcObjectSearchRequest) Size() (n int) { +func (m *RpcFileUploadRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l - if len(m.Filters) > 0 { - for _, e := range m.Filters { - l = e.Size() - n += 1 + l + sovCommands(uint64(l)) - } - } - if len(m.Sorts) > 0 { - for _, e := range m.Sorts { - l = e.Size() - n += 1 + l + sovCommands(uint64(l)) - } - } - l = len(m.FullText) + l = len(m.Url) if l > 0 { n += 1 + l + sovCommands(uint64(l)) } - if m.Offset != 0 { - n += 1 + sovCommands(uint64(m.Offset)) - } - if m.Limit != 0 { - n += 1 + sovCommands(uint64(m.Limit)) - } - if len(m.ObjectTypeFilter) > 0 { - for _, s := range m.ObjectTypeFilter { - l = len(s) - n += 1 + l + sovCommands(uint64(l)) - } - } - if len(m.Keys) > 0 { - for _, s := range m.Keys { - l = len(s) - n += 1 + l + sovCommands(uint64(l)) - } - } - return n -} - -func (m *RpcObjectSearchResponse) 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 len(m.Records) > 0 { - for _, e := range m.Records { - l = e.Size() - n += 1 + l + sovCommands(uint64(l)) - } - } - return n -} - -func (m *RpcObjectSearchResponseError) 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 *RpcObjectGraph) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcObjectGraphRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Filters) > 0 { - for _, e := range m.Filters { - l = e.Size() - n += 1 + l + sovCommands(uint64(l)) - } - } - if m.Limit != 0 { - n += 1 + sovCommands(uint64(m.Limit)) - } - if len(m.ObjectTypeFilter) > 0 { - for _, s := range m.ObjectTypeFilter { - l = len(s) - n += 1 + l + sovCommands(uint64(l)) - } - } - if len(m.Keys) > 0 { - for _, s := range m.Keys { - l = len(s) - n += 1 + l + sovCommands(uint64(l)) - } - } - return n -} - -func (m *RpcObjectGraphEdge) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Source) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.Target) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.Name) + l = len(m.LocalPath) if l > 0 { n += 1 + l + sovCommands(uint64(l)) } if m.Type != 0 { n += 1 + sovCommands(uint64(m.Type)) } - l = len(m.Description) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.IconImage) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.IconEmoji) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Hidden { + if m.DisableEncryption { n += 2 } + if m.Style != 0 { + n += 1 + sovCommands(uint64(m.Style)) + } return n } -func (m *RpcObjectGraphResponse) Size() (n int) { +func (m *RpcFileUploadResponse) Size() (n int) { if m == nil { return 0 } @@ -73095,22 +66474,14 @@ func (m *RpcObjectGraphResponse) Size() (n int) { l = m.Error.Size() n += 1 + l + sovCommands(uint64(l)) } - if len(m.Nodes) > 0 { - for _, e := range m.Nodes { - l = e.Size() - n += 1 + l + sovCommands(uint64(l)) - } - } - if len(m.Edges) > 0 { - for _, e := range m.Edges { - l = e.Size() - n += 1 + l + sovCommands(uint64(l)) - } + l = len(m.Hash) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) } return n } -func (m *RpcObjectGraphResponseError) Size() (n int) { +func (m *RpcFileUploadResponseError) Size() (n int) { if m == nil { return 0 } @@ -73126,7 +66497,7 @@ func (m *RpcObjectGraphResponseError) Size() (n int) { return n } -func (m *RpcObjectSearchSubscribe) Size() (n int) { +func (m *RpcFileDownload) Size() (n int) { if m == nil { return 0 } @@ -73135,27 +66506,154 @@ func (m *RpcObjectSearchSubscribe) Size() (n int) { return n } -func (m *RpcObjectSearchSubscribeRequest) Size() (n int) { +func (m *RpcFileDownloadRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.SubId) + l = len(m.Hash) if l > 0 { n += 1 + l + sovCommands(uint64(l)) } - if len(m.Filters) > 0 { - for _, e := range m.Filters { - l = e.Size() + l = len(m.Path) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcFileDownloadResponse) 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 *RpcFileDownloadResponseError) 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 *RpcFileDrop) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcFileDropRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.DropTargetId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Position != 0 { + n += 1 + sovCommands(uint64(m.Position)) + } + if len(m.LocalFilePaths) > 0 { + for _, s := range m.LocalFilePaths { + l = len(s) n += 1 + l + sovCommands(uint64(l)) } } - if len(m.Sorts) > 0 { - for _, e := range m.Sorts { - l = e.Size() - n += 1 + l + sovCommands(uint64(l)) - } + return n +} + +func (m *RpcFileDropResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcFileDropResponseError) 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 *RpcNavigation) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcNavigationListObjects) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcNavigationListObjectsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Context != 0 { + n += 1 + sovCommands(uint64(m.Context)) + } + l = len(m.FullText) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) } if m.Limit != 0 { n += 1 + sovCommands(uint64(m.Limit)) @@ -73163,37 +66661,10 @@ func (m *RpcObjectSearchSubscribeRequest) Size() (n int) { if m.Offset != 0 { n += 1 + sovCommands(uint64(m.Offset)) } - if len(m.Keys) > 0 { - for _, s := range m.Keys { - l = len(s) - n += 1 + l + sovCommands(uint64(l)) - } - } - l = len(m.AfterId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.BeforeId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if len(m.Source) > 0 { - for _, s := range m.Source { - l = len(s) - n += 1 + l + sovCommands(uint64(l)) - } - } - l = len(m.IgnoreWorkspace) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.NoDepSubscription { - n += 2 - } return n } -func (m *RpcObjectSearchSubscribeResponse) Size() (n int) { +func (m *RpcNavigationListObjectsResponse) Size() (n int) { if m == nil { return 0 } @@ -73203,30 +66674,16 @@ func (m *RpcObjectSearchSubscribeResponse) Size() (n int) { l = m.Error.Size() n += 1 + l + sovCommands(uint64(l)) } - if len(m.Records) > 0 { - for _, e := range m.Records { + if len(m.Objects) > 0 { + for _, e := range m.Objects { l = e.Size() n += 1 + l + sovCommands(uint64(l)) } } - if len(m.Dependencies) > 0 { - for _, e := range m.Dependencies { - l = e.Size() - n += 1 + l + sovCommands(uint64(l)) - } - } - l = len(m.SubId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Counters != nil { - l = m.Counters.Size() - n += 1 + l + sovCommands(uint64(l)) - } return n } -func (m *RpcObjectSearchSubscribeResponseError) Size() (n int) { +func (m *RpcNavigationListObjectsResponseError) Size() (n int) { if m == nil { return 0 } @@ -73242,7 +66699,7 @@ func (m *RpcObjectSearchSubscribeResponseError) Size() (n int) { return n } -func (m *RpcObjectIdsSubscribe) Size() (n int) { +func (m *RpcNavigationGetObjectInfoWithLinks) Size() (n int) { if m == nil { return 0 } @@ -73251,36 +66708,23 @@ func (m *RpcObjectIdsSubscribe) Size() (n int) { return n } -func (m *RpcObjectIdsSubscribeRequest) Size() (n int) { +func (m *RpcNavigationGetObjectInfoWithLinksRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.SubId) + l = len(m.ObjectId) if l > 0 { n += 1 + l + sovCommands(uint64(l)) } - if len(m.Ids) > 0 { - for _, s := range m.Ids { - l = len(s) - n += 1 + l + sovCommands(uint64(l)) - } - } - if len(m.Keys) > 0 { - for _, s := range m.Keys { - l = len(s) - n += 1 + l + sovCommands(uint64(l)) - } - } - l = len(m.IgnoreWorkspace) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) + if m.Context != 0 { + n += 1 + sovCommands(uint64(m.Context)) } return n } -func (m *RpcObjectIdsSubscribeResponse) Size() (n int) { +func (m *RpcNavigationGetObjectInfoWithLinksResponse) Size() (n int) { if m == nil { return 0 } @@ -73290,26 +66734,14 @@ func (m *RpcObjectIdsSubscribeResponse) Size() (n int) { l = m.Error.Size() n += 1 + l + sovCommands(uint64(l)) } - if len(m.Records) > 0 { - for _, e := range m.Records { - l = e.Size() - n += 1 + l + sovCommands(uint64(l)) - } - } - if len(m.Dependencies) > 0 { - for _, e := range m.Dependencies { - l = e.Size() - n += 1 + l + sovCommands(uint64(l)) - } - } - l = len(m.SubId) - if l > 0 { + if m.Object != nil { + l = m.Object.Size() n += 1 + l + sovCommands(uint64(l)) } return n } -func (m *RpcObjectIdsSubscribeResponseError) Size() (n int) { +func (m *RpcNavigationGetObjectInfoWithLinksResponseError) Size() (n int) { if m == nil { return 0 } @@ -73325,7 +66757,7 @@ func (m *RpcObjectIdsSubscribeResponseError) Size() (n int) { return n } -func (m *RpcObjectSearchUnsubscribe) Size() (n int) { +func (m *RpcTemplate) Size() (n int) { if m == nil { return 0 } @@ -73334,51 +66766,7 @@ func (m *RpcObjectSearchUnsubscribe) Size() (n int) { return n } -func (m *RpcObjectSearchUnsubscribeRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.SubIds) > 0 { - for _, s := range m.SubIds { - l = len(s) - n += 1 + l + sovCommands(uint64(l)) - } - } - return n -} - -func (m *RpcObjectSearchUnsubscribeResponse) 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 *RpcObjectSearchUnsubscribeResponseError) 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 *RpcObjectSetLayout) Size() (n int) { +func (m *RpcTemplateCreateFromObject) Size() (n int) { if m == nil { return 0 } @@ -73387,886 +66775,7 @@ func (m *RpcObjectSetLayout) Size() (n int) { return n } -func (m *RpcObjectSetLayoutRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Layout != 0 { - n += 1 + sovCommands(uint64(m.Layout)) - } - return n -} - -func (m *RpcObjectSetLayoutResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcObjectSetLayoutResponseError) 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 *RpcObjectSetIsFavorite) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcObjectSetIsFavoriteRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.IsFavorite { - n += 2 - } - return n -} - -func (m *RpcObjectSetIsFavoriteResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcObjectSetIsFavoriteResponseError) 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 *RpcObjectSetIsArchived) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcObjectSetIsArchivedRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.IsArchived { - n += 2 - } - return n -} - -func (m *RpcObjectSetIsArchivedResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcObjectSetIsArchivedResponseError) 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 *RpcObjectFeaturedRelation) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcObjectFeaturedRelationAdd) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcObjectFeaturedRelationAddRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if len(m.Relations) > 0 { - for _, s := range m.Relations { - l = len(s) - n += 1 + l + sovCommands(uint64(l)) - } - } - return n -} - -func (m *RpcObjectFeaturedRelationAddResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcObjectFeaturedRelationAddResponseError) 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 *RpcObjectFeaturedRelationRemove) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcObjectFeaturedRelationRemoveRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if len(m.Relations) > 0 { - for _, s := range m.Relations { - l = len(s) - n += 1 + l + sovCommands(uint64(l)) - } - } - return n -} - -func (m *RpcObjectFeaturedRelationRemoveResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcObjectFeaturedRelationRemoveResponseError) 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 *RpcObjectToSet) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcObjectToSetRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContextId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if len(m.Source) > 0 { - for _, s := range m.Source { - l = len(s) - n += 1 + l + sovCommands(uint64(l)) - } - } - return n -} - -func (m *RpcObjectToSetResponse) 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.SetId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcObjectToSetResponseError) 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 *RpcObjectList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcObjectListDuplicate) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcObjectListDuplicateRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.ObjectIds) > 0 { - for _, s := range m.ObjectIds { - l = len(s) - n += 1 + l + sovCommands(uint64(l)) - } - } - return n -} - -func (m *RpcObjectListDuplicateResponse) 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 len(m.Ids) > 0 { - for _, s := range m.Ids { - l = len(s) - n += 1 + l + sovCommands(uint64(l)) - } - } - return n -} - -func (m *RpcObjectListDuplicateResponseError) 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 *RpcObjectListDelete) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcObjectListDeleteRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.ObjectIds) > 0 { - for _, s := range m.ObjectIds { - l = len(s) - n += 1 + l + sovCommands(uint64(l)) - } - } - return n -} - -func (m *RpcObjectListDeleteResponse) 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.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcObjectListDeleteResponseError) 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 *RpcObjectListSet) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcObjectListSetIsArchived) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcObjectListSetIsArchivedRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.ObjectIds) > 0 { - for _, s := range m.ObjectIds { - l = len(s) - n += 1 + l + sovCommands(uint64(l)) - } - } - if m.IsArchived { - n += 2 - } - return n -} - -func (m *RpcObjectListSetIsArchivedResponse) 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 *RpcObjectListSetIsArchivedResponseError) 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 *RpcObjectListSetIsFavorite) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcObjectListSetIsFavoriteRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.ObjectIds) > 0 { - for _, s := range m.ObjectIds { - l = len(s) - n += 1 + l + sovCommands(uint64(l)) - } - } - if m.IsFavorite { - n += 2 - } - return n -} - -func (m *RpcObjectListSetIsFavoriteResponse) 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 *RpcObjectListSetIsFavoriteResponseError) 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 *RpcExport) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcExportRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Path) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if len(m.DocIds) > 0 { - for _, s := range m.DocIds { - l = len(s) - n += 1 + l + sovCommands(uint64(l)) - } - } - if m.Format != 0 { - n += 1 + sovCommands(uint64(m.Format)) - } - if m.Zip { - n += 2 - } - if m.IncludeNested { - n += 2 - } - if m.IncludeFiles { - n += 2 - } - return n -} - -func (m *RpcExportResponse) 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.Path) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - if m.Succeed != 0 { - n += 1 + sovCommands(uint64(m.Succeed)) - } - return n -} - -func (m *RpcExportResponseError) 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 *RpcExportWorkspace) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcExportWorkspaceRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Path) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - l = len(m.WorkspaceId) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcExportWorkspaceResponse) 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.Path) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcExportWorkspaceResponseError) 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 *RpcExportTemplates) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcExportTemplatesRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Path) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcExportTemplatesResponse) 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.Path) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcExportTemplatesResponseError) 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 *RpcExportLocalstore) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcExportLocalstoreRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Path) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if len(m.DocIds) > 0 { - for _, s := range m.DocIds { - l = len(s) - n += 1 + l + sovCommands(uint64(l)) - } - } - return n -} - -func (m *RpcExportLocalstoreResponse) 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.Path) - if l > 0 { - n += 1 + l + sovCommands(uint64(l)) - } - if m.Event != nil { - l = m.Event.Size() - n += 1 + l + sovCommands(uint64(l)) - } - return n -} - -func (m *RpcExportLocalstoreResponseError) 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 *RpcMakeTemplate) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *RpcMakeTemplateRequest) Size() (n int) { +func (m *RpcTemplateCreateFromObjectRequest) Size() (n int) { if m == nil { return 0 } @@ -74279,7 +66788,7 @@ func (m *RpcMakeTemplateRequest) Size() (n int) { return n } -func (m *RpcMakeTemplateResponse) Size() (n int) { +func (m *RpcTemplateCreateFromObjectResponse) Size() (n int) { if m == nil { return 0 } @@ -74296,7 +66805,7 @@ func (m *RpcMakeTemplateResponse) Size() (n int) { return n } -func (m *RpcMakeTemplateResponseError) Size() (n int) { +func (m *RpcTemplateCreateFromObjectResponseError) Size() (n int) { if m == nil { return 0 } @@ -74312,7 +66821,7 @@ func (m *RpcMakeTemplateResponseError) Size() (n int) { return n } -func (m *RpcMakeTemplateByObjectType) Size() (n int) { +func (m *RpcTemplateCreateFromObjectType) Size() (n int) { if m == nil { return 0 } @@ -74321,7 +66830,7 @@ func (m *RpcMakeTemplateByObjectType) Size() (n int) { return n } -func (m *RpcMakeTemplateByObjectTypeRequest) Size() (n int) { +func (m *RpcTemplateCreateFromObjectTypeRequest) Size() (n int) { if m == nil { return 0 } @@ -74334,7 +66843,7 @@ func (m *RpcMakeTemplateByObjectTypeRequest) Size() (n int) { return n } -func (m *RpcMakeTemplateByObjectTypeResponse) Size() (n int) { +func (m *RpcTemplateCreateFromObjectTypeResponse) Size() (n int) { if m == nil { return 0 } @@ -74351,7 +66860,7 @@ func (m *RpcMakeTemplateByObjectTypeResponse) Size() (n int) { return n } -func (m *RpcMakeTemplateByObjectTypeResponseError) Size() (n int) { +func (m *RpcTemplateCreateFromObjectTypeResponseError) Size() (n int) { if m == nil { return 0 } @@ -74367,7 +66876,7 @@ func (m *RpcMakeTemplateByObjectTypeResponseError) Size() (n int) { return n } -func (m *RpcCloneTemplate) Size() (n int) { +func (m *RpcTemplateClone) Size() (n int) { if m == nil { return 0 } @@ -74376,7 +66885,7 @@ func (m *RpcCloneTemplate) Size() (n int) { return n } -func (m *RpcCloneTemplateRequest) Size() (n int) { +func (m *RpcTemplateCloneRequest) Size() (n int) { if m == nil { return 0 } @@ -74389,7 +66898,7 @@ func (m *RpcCloneTemplateRequest) Size() (n int) { return n } -func (m *RpcCloneTemplateResponse) Size() (n int) { +func (m *RpcTemplateCloneResponse) Size() (n int) { if m == nil { return 0 } @@ -74406,7 +66915,7 @@ func (m *RpcCloneTemplateResponse) Size() (n int) { return n } -func (m *RpcCloneTemplateResponseError) Size() (n int) { +func (m *RpcTemplateCloneResponseError) Size() (n int) { if m == nil { return 0 } @@ -74422,7 +66931,7 @@ func (m *RpcCloneTemplateResponseError) Size() (n int) { return n } -func (m *RpcObjectDuplicate) Size() (n int) { +func (m *RpcTemplateExportAll) Size() (n int) { if m == nil { return 0 } @@ -74431,20 +66940,20 @@ func (m *RpcObjectDuplicate) Size() (n int) { return n } -func (m *RpcObjectDuplicateRequest) Size() (n int) { +func (m *RpcTemplateExportAllRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l - l = len(m.ContextId) + l = len(m.Path) if l > 0 { n += 1 + l + sovCommands(uint64(l)) } return n } -func (m *RpcObjectDuplicateResponse) Size() (n int) { +func (m *RpcTemplateExportAllResponse) Size() (n int) { if m == nil { return 0 } @@ -74454,14 +66963,18 @@ func (m *RpcObjectDuplicateResponse) Size() (n int) { l = m.Error.Size() n += 1 + l + sovCommands(uint64(l)) } - l = len(m.Id) + l = len(m.Path) if l > 0 { n += 1 + l + sovCommands(uint64(l)) } + if m.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } return n } -func (m *RpcObjectDuplicateResponseError) Size() (n int) { +func (m *RpcTemplateExportAllResponseError) Size() (n int) { if m == nil { return 0 } @@ -74477,6 +66990,70 @@ func (m *RpcObjectDuplicateResponseError) Size() (n int) { return n } +func (m *RpcLinkPreview) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcLinkPreviewRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Url) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcLinkPreviewResponse) 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.LinkPreview != nil { + l = m.LinkPreview.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcLinkPreviewResponseError) 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 *RpcUnsplash) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + func (m *RpcUnsplashSearch) Size() (n int) { if m == nil { return 0 @@ -74617,7 +67194,7 @@ func (m *RpcUnsplashDownloadResponseError) Size() (n int) { return n } -func (m *RpcApplyTemplate) Size() (n int) { +func (m *RpcBlock) Size() (n int) { if m == nil { return 0 } @@ -74626,7 +67203,16 @@ func (m *RpcApplyTemplate) Size() (n int) { return n } -func (m *RpcApplyTemplateRequest) Size() (n int) { +func (m *RpcBlockReplace) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockReplaceRequest) Size() (n int) { if m == nil { return 0 } @@ -74636,14 +67222,2474 @@ func (m *RpcApplyTemplateRequest) Size() (n int) { if l > 0 { n += 1 + l + sovCommands(uint64(l)) } - l = len(m.TemplateId) + l = len(m.BlockId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Block != nil { + l = m.Block.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockReplaceResponse) 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.BlockId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockReplaceResponseError) 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 *RpcApplyTemplateResponse) Size() (n int) { +func (m *RpcBlockSplit) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockSplitRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.BlockId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Range != nil { + l = m.Range.Size() + n += 1 + l + sovCommands(uint64(l)) + } + if m.Style != 0 { + n += 1 + sovCommands(uint64(m.Style)) + } + if m.Mode != 0 { + n += 1 + sovCommands(uint64(m.Mode)) + } + return n +} + +func (m *RpcBlockSplitResponse) 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.BlockId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockSplitResponseError) 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 *RpcBlockMerge) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockMergeRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.FirstBlockId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.SecondBlockId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockMergeResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockMergeResponseError) 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 *RpcBlockCopy) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockCopyRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if len(m.Blocks) > 0 { + for _, e := range m.Blocks { + l = e.Size() + n += 1 + l + sovCommands(uint64(l)) + } + } + if m.SelectedTextRange != nil { + l = m.SelectedTextRange.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockCopyResponse) 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.TextSlot) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.HtmlSlot) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if len(m.AnySlot) > 0 { + for _, e := range m.AnySlot { + l = e.Size() + n += 1 + l + sovCommands(uint64(l)) + } + } + return n +} + +func (m *RpcBlockCopyResponseError) 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 *RpcBlockPaste) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockPasteRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.FocusedBlockId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.SelectedTextRange != nil { + l = m.SelectedTextRange.Size() + n += 1 + l + sovCommands(uint64(l)) + } + if len(m.SelectedBlockIds) > 0 { + for _, s := range m.SelectedBlockIds { + l = len(s) + n += 1 + l + sovCommands(uint64(l)) + } + } + if m.IsPartOfBlock { + n += 2 + } + l = len(m.TextSlot) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.HtmlSlot) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if len(m.AnySlot) > 0 { + for _, e := range m.AnySlot { + l = e.Size() + n += 1 + l + sovCommands(uint64(l)) + } + } + if len(m.FileSlot) > 0 { + for _, e := range m.FileSlot { + l = e.Size() + n += 1 + l + sovCommands(uint64(l)) + } + } + return n +} + +func (m *RpcBlockPasteRequestFile) 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)) + } + l = len(m.Data) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.LocalPath) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockPasteResponse) 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 len(m.BlockIds) > 0 { + for _, s := range m.BlockIds { + l = len(s) + n += 1 + l + sovCommands(uint64(l)) + } + } + if m.CaretPosition != 0 { + n += 1 + sovCommands(uint64(m.CaretPosition)) + } + if m.IsSameBlockCaret { + n += 2 + } + if m.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockPasteResponseError) 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 *RpcBlockCut) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockCutRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if len(m.Blocks) > 0 { + for _, e := range m.Blocks { + l = e.Size() + n += 1 + l + sovCommands(uint64(l)) + } + } + if m.SelectedTextRange != nil { + l = m.SelectedTextRange.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockCutResponse) 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.TextSlot) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.HtmlSlot) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if len(m.AnySlot) > 0 { + for _, e := range m.AnySlot { + l = e.Size() + n += 1 + l + sovCommands(uint64(l)) + } + } + if m.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockCutResponseError) 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 *RpcBlockUpload) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockUploadRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.BlockId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.FilePath) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.Url) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockUploadResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockUploadResponseError) 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 *RpcBlockDownload) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockDownloadRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.BlockId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockDownloadResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockDownloadResponseError) 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 *RpcBlockCreate) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockCreateRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.TargetId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Block != nil { + l = m.Block.Size() + n += 1 + l + sovCommands(uint64(l)) + } + if m.Position != 0 { + n += 1 + sovCommands(uint64(m.Position)) + } + return n +} + +func (m *RpcBlockCreateResponse) 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.BlockId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockCreateResponseError) 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 *RpcBlockListDelete) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockListDeleteRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if len(m.BlockIds) > 0 { + for _, s := range m.BlockIds { + l = len(s) + n += 1 + l + sovCommands(uint64(l)) + } + } + return n +} + +func (m *RpcBlockListDeleteResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockListDeleteResponseError) 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 *RpcBlockSetFields) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockSetFieldsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.BlockId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Fields != nil { + l = m.Fields.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockSetFieldsResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockSetFieldsResponseError) 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 *RpcBlockListSetAlign) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockListSetAlignRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if len(m.BlockIds) > 0 { + for _, s := range m.BlockIds { + l = len(s) + n += 1 + l + sovCommands(uint64(l)) + } + } + if m.Align != 0 { + n += 1 + sovCommands(uint64(m.Align)) + } + return n +} + +func (m *RpcBlockListSetAlignResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockListSetAlignResponseError) 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 *RpcBlockListSetFields) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockListSetFieldsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if len(m.BlockFields) > 0 { + for _, e := range m.BlockFields { + l = e.Size() + n += 1 + l + sovCommands(uint64(l)) + } + } + return n +} + +func (m *RpcBlockListSetFieldsRequestBlockField) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.BlockId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Fields != nil { + l = m.Fields.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockListSetFieldsResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockListSetFieldsResponseError) 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 *RpcBlockListDuplicate) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockListDuplicateRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.TargetId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if len(m.BlockIds) > 0 { + for _, s := range m.BlockIds { + l = len(s) + n += 1 + l + sovCommands(uint64(l)) + } + } + if m.Position != 0 { + n += 1 + sovCommands(uint64(m.Position)) + } + return n +} + +func (m *RpcBlockListDuplicateResponse) 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 len(m.BlockIds) > 0 { + for _, s := range m.BlockIds { + l = len(s) + n += 1 + l + sovCommands(uint64(l)) + } + } + if m.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockListDuplicateResponseError) 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 *RpcBlockListUpdate) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockListUpdateRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if len(m.BlockIds) > 0 { + for _, s := range m.BlockIds { + l = len(s) + n += 1 + l + sovCommands(uint64(l)) + } + } + if m.Field != nil { + n += m.Field.Size() + } + return n +} + +func (m *RpcBlockListUpdateRequestFieldOfText) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Text != nil { + l = m.Text.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} +func (m *RpcBlockListUpdateRequestFieldOfBackgroundColor) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.BackgroundColor) + n += 1 + l + sovCommands(uint64(l)) + return n +} +func (m *RpcBlockListUpdateRequestFieldOfAlign) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 1 + sovCommands(uint64(m.Align)) + return n +} +func (m *RpcBlockListUpdateRequestFieldOfFields) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Fields != nil { + l = m.Fields.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} +func (m *RpcBlockListUpdateRequestFieldOfDivStyle) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 1 + sovCommands(uint64(m.DivStyle)) + return n +} +func (m *RpcBlockListUpdateRequestFieldOfFileStyle) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 1 + sovCommands(uint64(m.FileStyle)) + return n +} +func (m *RpcBlockListUpdateRequestText) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Field != nil { + n += m.Field.Size() + } + return n +} + +func (m *RpcBlockListUpdateRequestTextFieldOfStyle) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 1 + sovCommands(uint64(m.Style)) + return n +} +func (m *RpcBlockListUpdateRequestTextFieldOfColor) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Color) + n += 1 + l + sovCommands(uint64(l)) + return n +} +func (m *RpcBlockListUpdateRequestTextFieldOfMark) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Mark != nil { + l = m.Mark.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} +func (m *RpcBlockListConvertToObjects) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockListConvertToObjectsRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if len(m.BlockIds) > 0 { + for _, s := range m.BlockIds { + l = len(s) + n += 1 + l + sovCommands(uint64(l)) + } + } + l = len(m.ObjectType) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockListConvertToObjectsResponse) 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 len(m.LinkIds) > 0 { + for _, s := range m.LinkIds { + l = len(s) + n += 1 + l + sovCommands(uint64(l)) + } + } + if m.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockListConvertToObjectsResponseError) 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 *RpcBlockListMoveToExistingObject) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockListMoveToExistingObjectRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if len(m.BlockIds) > 0 { + for _, s := range m.BlockIds { + l = len(s) + n += 1 + l + sovCommands(uint64(l)) + } + } + l = len(m.TargetContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.DropTargetId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Position != 0 { + n += 1 + sovCommands(uint64(m.Position)) + } + return n +} + +func (m *RpcBlockListMoveToExistingObjectResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockListMoveToExistingObjectResponseError) 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 *RpcBlockListMoveToNewObject) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockListMoveToNewObjectRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if len(m.BlockIds) > 0 { + for _, s := range m.BlockIds { + l = len(s) + n += 1 + l + sovCommands(uint64(l)) + } + } + if m.Details != nil { + l = m.Details.Size() + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.DropTargetId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Position != 0 { + n += 1 + sovCommands(uint64(m.Position)) + } + return n +} + +func (m *RpcBlockListMoveToNewObjectResponse) 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.LinkId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockListMoveToNewObjectResponseError) 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 *RpcBlockListTurnInto) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockListTurnIntoRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if len(m.BlockIds) > 0 { + for _, s := range m.BlockIds { + l = len(s) + n += 1 + l + sovCommands(uint64(l)) + } + } + if m.Style != 0 { + n += 1 + sovCommands(uint64(m.Style)) + } + return n +} + +func (m *RpcBlockListTurnIntoResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockListTurnIntoResponseError) 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 *RpcBlockListSetBackgroundColor) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockListSetBackgroundColorRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if len(m.BlockIds) > 0 { + for _, s := range m.BlockIds { + l = len(s) + n += 1 + l + sovCommands(uint64(l)) + } + } + l = len(m.Color) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockListSetBackgroundColorResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockListSetBackgroundColorResponseError) 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 *RpcBlockExport) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockExportRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if len(m.Blocks) > 0 { + for _, e := range m.Blocks { + l = e.Size() + n += 1 + l + sovCommands(uint64(l)) + } + } + return n +} + +func (m *RpcBlockExportResponse) 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.Path) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockExportResponseError) 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 *RpcBlockLatex) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockLatexSetText) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockLatexSetTextRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.BlockId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.Text) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockLatexSetTextResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockLatexSetTextResponseError) 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 *RpcBlockText) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockTextSetText) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockTextSetTextRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.BlockId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.Text) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Marks != nil { + l = m.Marks.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockTextSetTextResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockTextSetTextResponseError) 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 *RpcBlockTextSetColor) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockTextSetColorRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.BlockId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.Color) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockTextSetColorResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockTextSetColorResponseError) 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 *RpcBlockTextSetMarks) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockTextSetMarksGet) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockTextSetMarksGetRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.BlockId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Range != nil { + l = m.Range.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockTextSetMarksGetResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockTextSetMarksGetResponseError) 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 *RpcBlockTextSetStyle) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockTextSetStyleRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.BlockId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Style != 0 { + n += 1 + sovCommands(uint64(m.Style)) + } + return n +} + +func (m *RpcBlockTextSetStyleResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockTextSetStyleResponseError) 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 *RpcBlockTextSetChecked) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockTextSetCheckedRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.BlockId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Checked { + n += 2 + } + return n +} + +func (m *RpcBlockTextSetCheckedResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockTextSetCheckedResponseError) 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 *RpcBlockTextSetIcon) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockTextSetIconRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.BlockId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.IconImage) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.IconEmoji) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockTextSetIconResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockTextSetIconResponseError) 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 *RpcBlockTextListSetStyle) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockTextListSetStyleRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if len(m.BlockIds) > 0 { + for _, s := range m.BlockIds { + l = len(s) + n += 1 + l + sovCommands(uint64(l)) + } + } + if m.Style != 0 { + n += 1 + sovCommands(uint64(m.Style)) + } + return n +} + +func (m *RpcBlockTextListSetStyleResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockTextListSetStyleResponseError) 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 *RpcBlockTextListSetColor) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockTextListSetColorRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if len(m.BlockIds) > 0 { + for _, s := range m.BlockIds { + l = len(s) + n += 1 + l + sovCommands(uint64(l)) + } + } + l = len(m.Color) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockTextListSetColorResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockTextListSetColorResponseError) 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 *RpcBlockTextListSetMark) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockTextListSetMarkRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if len(m.BlockIds) > 0 { + for _, s := range m.BlockIds { + l = len(s) + n += 1 + l + sovCommands(uint64(l)) + } + } + if m.Mark != nil { + l = m.Mark.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockTextListSetMarkResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockTextListSetMarkResponseError) 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 *RpcBlockFile) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockFileSetName) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockFileSetNameRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.BlockId) + 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 *RpcBlockFileSetNameResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockFileSetNameResponseError) 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 *RpcBlockFileCreateAndUpload) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockFileCreateAndUploadRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.TargetId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Position != 0 { + n += 1 + sovCommands(uint64(m.Position)) + } + l = len(m.Url) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.LocalPath) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.FileType != 0 { + n += 1 + sovCommands(uint64(m.FileType)) + } + return n +} + +func (m *RpcBlockFileCreateAndUploadResponse) 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.BlockId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockFileCreateAndUploadResponseError) 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 *RpcBlockFileListSetStyle) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockFileListSetStyleRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if len(m.BlockIds) > 0 { + for _, s := range m.BlockIds { + l = len(s) + n += 1 + l + sovCommands(uint64(l)) + } + } + if m.Style != 0 { + n += 1 + sovCommands(uint64(m.Style)) + } + return n +} + +func (m *RpcBlockFileListSetStyleResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockFileListSetStyleResponseError) 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 *RpcBlockImage) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockImageSetName) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockImageSetNameRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.BlockId) + 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 *RpcBlockImageSetNameResponse) Size() (n int) { if m == nil { return 0 } @@ -74656,7 +69702,1822 @@ func (m *RpcApplyTemplateResponse) Size() (n int) { return n } -func (m *RpcApplyTemplateResponseError) Size() (n int) { +func (m *RpcBlockImageSetNameResponseError) 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 *RpcBlockImageSetWidth) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockImageSetWidthRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.BlockId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Width != 0 { + n += 1 + sovCommands(uint64(m.Width)) + } + return n +} + +func (m *RpcBlockImageSetWidthResponse) 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 *RpcBlockImageSetWidthResponseError) 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 *RpcBlockVideo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockVideoSetName) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockVideoSetNameRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.BlockId) + 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 *RpcBlockVideoSetNameResponse) 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 *RpcBlockVideoSetNameResponseError) 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 *RpcBlockVideoSetWidth) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockVideoSetWidthRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.BlockId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Width != 0 { + n += 1 + sovCommands(uint64(m.Width)) + } + return n +} + +func (m *RpcBlockVideoSetWidthResponse) 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 *RpcBlockVideoSetWidthResponseError) 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 *RpcBlockLink) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockLinkCreateWithObject) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockLinkCreateWithObjectRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.TargetId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Details != nil { + l = m.Details.Size() + n += 1 + l + sovCommands(uint64(l)) + } + if m.Position != 0 { + n += 1 + sovCommands(uint64(m.Position)) + } + l = len(m.TemplateId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Fields != nil { + l = m.Fields.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockLinkCreateWithObjectResponse) 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.BlockId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.TargetId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockLinkCreateWithObjectResponseError) 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 *RpcBlockLinkListSetAppearance) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockLinkListSetAppearanceRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if len(m.BlockIds) > 0 { + for _, s := range m.BlockIds { + l = len(s) + n += 1 + l + sovCommands(uint64(l)) + } + } + if m.IconSize != 0 { + n += 1 + sovCommands(uint64(m.IconSize)) + } + if m.CardStyle != 0 { + n += 1 + sovCommands(uint64(m.CardStyle)) + } + if m.Description != 0 { + n += 1 + sovCommands(uint64(m.Description)) + } + if len(m.Relations) > 0 { + for _, s := range m.Relations { + l = len(s) + n += 1 + l + sovCommands(uint64(l)) + } + } + return n +} + +func (m *RpcBlockLinkListSetAppearanceResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockLinkListSetAppearanceResponseError) 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 *RpcBlockRelation) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockRelationSetKey) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockRelationSetKeyRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.BlockId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.Key) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockRelationSetKeyResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockRelationSetKeyResponseError) 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 *RpcBlockRelationAdd) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockRelationAddRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.BlockId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Relation != nil { + l = m.Relation.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockRelationAddResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockRelationAddResponseError) 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 *RpcBlockBookmark) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockBookmarkFetch) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockBookmarkFetchRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.BlockId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.Url) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockBookmarkFetchResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockBookmarkFetchResponseError) 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 *RpcBlockBookmarkCreateAndFetch) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockBookmarkCreateAndFetchRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.TargetId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Position != 0 { + n += 1 + sovCommands(uint64(m.Position)) + } + l = len(m.Url) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockBookmarkCreateAndFetchResponse) 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.BlockId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockBookmarkCreateAndFetchResponseError) 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 *RpcBlockDiv) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockDivListSetStyle) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockDivListSetStyleRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if len(m.BlockIds) > 0 { + for _, s := range m.BlockIds { + l = len(s) + n += 1 + l + sovCommands(uint64(l)) + } + } + if m.Style != 0 { + n += 1 + sovCommands(uint64(m.Style)) + } + return n +} + +func (m *RpcBlockDivListSetStyleResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockDivListSetStyleResponseError) 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 *RpcBlockDataview) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockDataviewView) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockDataviewViewCreate) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockDataviewViewCreateRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.BlockId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.View != nil { + l = m.View.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockDataviewViewCreateResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.ViewId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockDataviewViewCreateResponseError) 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 *RpcBlockDataviewViewUpdate) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockDataviewViewUpdateRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.BlockId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.ViewId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.View != nil { + l = m.View.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockDataviewViewUpdateResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockDataviewViewUpdateResponseError) 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 *RpcBlockDataviewViewDelete) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockDataviewViewDeleteRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.BlockId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.ViewId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockDataviewViewDeleteResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockDataviewViewDeleteResponseError) 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 *RpcBlockDataviewViewSetPosition) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockDataviewViewSetPositionRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.BlockId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.ViewId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Position != 0 { + n += 1 + sovCommands(uint64(m.Position)) + } + return n +} + +func (m *RpcBlockDataviewViewSetPositionResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockDataviewViewSetPositionResponseError) 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 *RpcBlockDataviewViewSetActive) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockDataviewViewSetActiveRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.BlockId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.ViewId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Offset != 0 { + n += 1 + sovCommands(uint64(m.Offset)) + } + if m.Limit != 0 { + n += 1 + sovCommands(uint64(m.Limit)) + } + return n +} + +func (m *RpcBlockDataviewViewSetActiveResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockDataviewViewSetActiveResponseError) 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 *RpcBlockDataviewRelation) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockDataviewRelationAdd) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockDataviewRelationAddRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.BlockId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Relation != nil { + l = m.Relation.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockDataviewRelationAddResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.RelationKey) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Relation != nil { + l = m.Relation.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockDataviewRelationAddResponseError) 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 *RpcBlockDataviewRelationUpdate) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockDataviewRelationUpdateRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.BlockId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.RelationKey) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Relation != nil { + l = m.Relation.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockDataviewRelationUpdateResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockDataviewRelationUpdateResponseError) 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 *RpcBlockDataviewRelationDelete) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockDataviewRelationDeleteRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.BlockId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.RelationKey) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockDataviewRelationDeleteResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockDataviewRelationDeleteResponseError) 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 *RpcBlockDataviewRelationListAvailable) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockDataviewRelationListAvailableRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.BlockId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockDataviewRelationListAvailableResponse) 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 len(m.Relations) > 0 { + for _, e := range m.Relations { + l = e.Size() + n += 1 + l + sovCommands(uint64(l)) + } + } + return n +} + +func (m *RpcBlockDataviewRelationListAvailableResponseError) 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 *RpcBlockDataviewSetSource) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockDataviewSetSourceRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.BlockId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if len(m.Source) > 0 { + for _, s := range m.Source { + l = len(s) + n += 1 + l + sovCommands(uint64(l)) + } + } + return n +} + +func (m *RpcBlockDataviewSetSourceResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockDataviewSetSourceResponseError) 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 *RpcBlockDataviewRecord) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockDataviewRecordUpdate) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockDataviewRecordUpdateRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.BlockId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.RecordId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Record != nil { + l = m.Record.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockDataviewRecordUpdateResponse) 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 *RpcBlockDataviewRecordUpdateResponseError) 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 *RpcBlockDataviewRecordDelete) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockDataviewRecordDeleteRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.BlockId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.RecordId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockDataviewRecordDeleteResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockDataviewRecordDeleteResponseError) 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 *RpcBlockDataviewRecordCreate) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockDataviewRecordCreateRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.BlockId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Record != nil { + l = m.Record.Size() + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.TemplateId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockDataviewRecordCreateResponse) 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.Record != nil { + l = m.Record.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockDataviewRecordCreateResponseError) 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 *RpcBlockDataviewRecordRelationOption) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockDataviewRecordRelationOptionAdd) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockDataviewRecordRelationOptionAddRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.BlockId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.RelationKey) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Option != nil { + l = m.Option.Size() + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.RecordId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockDataviewRecordRelationOptionAddResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + if m.Option != nil { + l = m.Option.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockDataviewRecordRelationOptionAddResponseError) 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 *RpcBlockDataviewRecordRelationOptionUpdate) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockDataviewRecordRelationOptionUpdateRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.BlockId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.RelationKey) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Option != nil { + l = m.Option.Size() + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.RecordId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockDataviewRecordRelationOptionUpdateResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockDataviewRecordRelationOptionUpdateResponseError) 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 *RpcBlockDataviewRecordRelationOptionDelete) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcBlockDataviewRecordRelationOptionDeleteRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ContextId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.BlockId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.RelationKey) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.OptionId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + l = len(m.RecordId) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockDataviewRecordRelationOptionDeleteResponse) 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.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcBlockDataviewRecordRelationOptionDeleteResponseError) Size() (n int) { if m == nil { return 0 } @@ -74940,7 +71801,7 @@ func (m *RpcDebugTreeRequest) Size() (n int) { } var l int _ = l - l = len(m.BlockId) + l = len(m.ObjectId) if l > 0 { n += 1 + l + sovCommands(uint64(l)) } @@ -74951,6 +71812,9 @@ func (m *RpcDebugTreeRequest) Size() (n int) { if m.Unanonymized { n += 2 } + if m.GenerateSvg { + n += 2 + } return n } @@ -74987,6 +71851,310 @@ func (m *RpcDebugTreeResponseError) Size() (n int) { return n } +func (m *RpcDebugExportLocalstore) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcDebugExportLocalstoreRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Path) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if len(m.DocIds) > 0 { + for _, s := range m.DocIds { + l = len(s) + n += 1 + l + sovCommands(uint64(l)) + } + } + return n +} + +func (m *RpcDebugExportLocalstoreResponse) 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.Path) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + if m.Event != nil { + l = m.Event.Size() + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcDebugExportLocalstoreResponseError) 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 *RpcDebugPing) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcDebugPingRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Index != 0 { + n += 1 + sovCommands(uint64(m.Index)) + } + if m.NumberOfEventsToSend != 0 { + n += 1 + sovCommands(uint64(m.NumberOfEventsToSend)) + } + return n +} + +func (m *RpcDebugPingResponse) 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.Index != 0 { + n += 1 + sovCommands(uint64(m.Index)) + } + return n +} + +func (m *RpcDebugPingResponseError) 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 *RpcMetrics) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcMetricsSetParameters) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcMetricsSetParametersRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Platform) + if l > 0 { + n += 1 + l + sovCommands(uint64(l)) + } + return n +} + +func (m *RpcMetricsSetParametersResponse) 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 *RpcMetricsSetParametersResponseError) 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 *RpcLog) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcLogSend) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcLogSendRequest) 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 *RpcLogSendResponse) 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 *RpcLogSendResponseError) 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 *RpcProcess) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcProcessCancel) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *RpcProcessCancelRequest) 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 *RpcProcessCancelResponse) 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 *RpcProcessCancelResponseError) 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 *RpcGenericErrorResponse) Size() (n int) { if m == nil { return 0 @@ -75081,7 +72249,7 @@ func (m *Rpc) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcMetrics) Unmarshal(dAtA []byte) error { +func (m *RpcApp) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -75104,10 +72272,10 @@ func (m *RpcMetrics) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Metrics: wiretype end group for non-group") + return fmt.Errorf("proto: App: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Metrics: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: App: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -75131,7 +72299,7 @@ func (m *RpcMetrics) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcMetricsSetParameters) Unmarshal(dAtA []byte) error { +func (m *RpcAppGetVersion) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -75154,10 +72322,10 @@ func (m *RpcMetricsSetParameters) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SetParameters: wiretype end group for non-group") + return fmt.Errorf("proto: GetVersion: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SetParameters: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetVersion: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -75181,7 +72349,7 @@ func (m *RpcMetricsSetParameters) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcMetricsSetParametersRequest) Unmarshal(dAtA []byte) error { +func (m *RpcAppGetVersionRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -75210,38 +72378,6 @@ func (m *RpcMetricsSetParametersRequest) Unmarshal(dAtA []byte) error { 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 Platform", 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.Platform = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipCommands(dAtA[iNdEx:]) @@ -75263,7 +72399,7 @@ func (m *RpcMetricsSetParametersRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcMetricsSetParametersResponse) Unmarshal(dAtA []byte) error { +func (m *RpcAppGetVersionResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -75322,459 +72458,7 @@ func (m *RpcMetricsSetParametersResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Error == nil { - m.Error = &RpcMetricsSetParametersResponseError{} - } - 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcMetricsSetParametersResponseError) Unmarshal(dAtA []byte) 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 |= RpcMetricsSetParametersResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcExternalDrop) Unmarshal(dAtA []byte) 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: ExternalDrop: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExternalDrop: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcExternalDropFiles) Unmarshal(dAtA []byte) 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: Files: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Files: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcExternalDropFilesRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DropTargetId", 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.DropTargetId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Position", wireType) - } - m.Position = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Position |= model.BlockPosition(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LocalFilePaths", 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.LocalFilePaths = append(m.LocalFilePaths, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcExternalDropFilesResponse) Unmarshal(dAtA []byte) 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 = &RpcExternalDropFilesResponseError{} + m.Error = &RpcAppGetVersionResponseError{} } if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -75782,112 +72466,7 @@ func (m *RpcExternalDropFilesResponse) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcExternalDropFilesResponseError) Unmarshal(dAtA []byte) 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 |= RpcExternalDropFilesResponseErrorCode(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -75915,35357 +72494,12 @@ func (m *RpcExternalDropFilesResponseError) Unmarshal(dAtA []byte) error { 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcExternalDropContent) Unmarshal(dAtA []byte) 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: Content: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Content: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcExternalDropContentRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FocusedBlockId", 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.FocusedBlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - 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 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.Content = append(m.Content[:0], dAtA[iNdEx:postIndex]...) - if m.Content == nil { - m.Content = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcExternalDropContentResponse) Unmarshal(dAtA []byte) 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 = &RpcExternalDropContentResponseError{} - } - 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcExternalDropContentResponseError) Unmarshal(dAtA []byte) 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 |= RpcExternalDropContentResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockList) Unmarshal(dAtA []byte) 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: BlockList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockList: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListConvertChildrenToPages) Unmarshal(dAtA []byte) 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: ConvertChildrenToPages: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ConvertChildrenToPages: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListConvertChildrenToPagesRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockIds", 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.BlockIds = append(m.BlockIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectType", 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.ObjectType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListConvertChildrenToPagesResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockListConvertChildrenToPagesResponseError{} - } - 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 LinkIds", 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.LinkIds = append(m.LinkIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListConvertChildrenToPagesResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockListConvertChildrenToPagesResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListMove) Unmarshal(dAtA []byte) 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListMoveRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockIds", 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.BlockIds = append(m.BlockIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetContextId", 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.TargetContextId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DropTargetId", 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.DropTargetId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Position", wireType) - } - m.Position = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Position |= model.BlockPosition(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListMoveResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockListMoveResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListMoveResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockListMoveResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListMoveToNewPage) Unmarshal(dAtA []byte) 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: MoveToNewPage: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MoveToNewPage: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListMoveToNewPageRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockIds", 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.BlockIds = append(m.BlockIds, string(dAtA[iNdEx:postIndex])) + m.Version = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Details", 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.Details == nil { - m.Details = &types.Struct{} - } - if err := m.Details.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DropTargetId", 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.DropTargetId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Position", wireType) - } - m.Position = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Position |= model.BlockPosition(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListMoveToNewPageResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockListMoveToNewPageResponseError{} - } - 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 LinkId", 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.LinkId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListMoveToNewPageResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockListMoveToNewPageResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListDuplicate) Unmarshal(dAtA []byte) 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: Duplicate: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Duplicate: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListDuplicateRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetId", 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.TargetId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockIds", 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.BlockIds = append(m.BlockIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Position", wireType) - } - m.Position = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Position |= model.BlockPosition(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListDuplicateResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockListDuplicateResponseError{} - } - 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 BlockIds", 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.BlockIds = append(m.BlockIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListDuplicateResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockListDuplicateResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListSet) Unmarshal(dAtA []byte) 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: Set: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Set: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListSetText) Unmarshal(dAtA []byte) 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: 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 { - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListSetTextStyle) Unmarshal(dAtA []byte) 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: Style: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Style: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListSetTextStyleRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockIds", 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.BlockIds = append(m.BlockIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - 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 ErrIntOverflowCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Style |= model.BlockContentTextStyle(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListSetTextStyleResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockListSetTextStyleResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListSetTextStyleResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockListSetTextStyleResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListSetTextColor) Unmarshal(dAtA []byte) 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: Color: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Color: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListSetTextColorRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockIds", 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.BlockIds = append(m.BlockIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - 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 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.Color = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListSetTextColorResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockListSetTextColorResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListSetTextColorResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockListSetTextColorResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListSetTextMark) Unmarshal(dAtA []byte) 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: 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 { - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListSetTextMarkRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockIds", 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.BlockIds = append(m.BlockIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Mark", 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.Mark == nil { - m.Mark = &model.BlockContentTextMark{} - } - if err := m.Mark.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListSetTextMarkResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockListSetTextMarkResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListSetTextMarkResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockListSetTextMarkResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListSetBackgroundColor) Unmarshal(dAtA []byte) 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: BackgroundColor: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BackgroundColor: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListSetBackgroundColorRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockIds", 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.BlockIds = append(m.BlockIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - 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 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.Color = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListSetBackgroundColorResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockListSetBackgroundColorResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListSetBackgroundColorResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockListSetBackgroundColorResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListSetAlign) Unmarshal(dAtA []byte) 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: Align: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Align: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListSetAlignRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockIds", 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.BlockIds = append(m.BlockIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Align", wireType) - } - m.Align = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Align |= model.BlockAlign(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListSetAlignResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockListSetAlignResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListSetAlignResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockListSetAlignResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListSetFields) Unmarshal(dAtA []byte) 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: Fields: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Fields: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListSetFieldsRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockFields", 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 - } - m.BlockFields = append(m.BlockFields, &RpcBlockListSetFieldsRequestBlockField{}) - if err := m.BlockFields[len(m.BlockFields)-1].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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListSetFieldsRequestBlockField) Unmarshal(dAtA []byte) 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: BlockField: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockField: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - 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 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - 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 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.Fields == nil { - m.Fields = &types.Struct{} - } - if err := m.Fields.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListSetFieldsResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockListSetFieldsResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListSetFieldsResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockListSetFieldsResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListSetDiv) Unmarshal(dAtA []byte) 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: Div: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Div: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListSetDivStyle) Unmarshal(dAtA []byte) 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: Style: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Style: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListSetDivStyleRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockIds", 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.BlockIds = append(m.BlockIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - 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 ErrIntOverflowCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Style |= model.BlockContentDivStyle(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListSetDivStyleResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockListSetDivStyleResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListSetDivStyleResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockListSetDivStyleResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListSetFile) Unmarshal(dAtA []byte) 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListSetFileStyle) Unmarshal(dAtA []byte) 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: Style: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Style: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListSetFileStyleRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockIds", 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.BlockIds = append(m.BlockIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - 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 ErrIntOverflowCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Style |= model.BlockContentFileStyle(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListSetFileStyleResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockListSetFileStyleResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListSetFileStyleResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockListSetFileStyleResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListTurnInto) Unmarshal(dAtA []byte) 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: TurnInto: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TurnInto: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListTurnIntoRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockIds", 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.BlockIds = append(m.BlockIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - 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 ErrIntOverflowCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Style |= model.BlockContentTextStyle(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListTurnIntoResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockListTurnIntoResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockListTurnIntoResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockListTurnIntoResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlock) Unmarshal(dAtA []byte) 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockReplace) Unmarshal(dAtA []byte) 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: Replace: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Replace: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockReplaceRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) - 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 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.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 := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockReplaceResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockReplaceResponseError{} - } - 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 BlockId", 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockReplaceResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockReplaceResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockUpdateContent) Unmarshal(dAtA []byte) 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: UpdateContent: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UpdateContent: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockUpdateContentRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) - 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 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.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 := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockUpdateContentResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockUpdateContentResponseError{} - } - if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockUpdateContentResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockUpdateContentResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSplit) Unmarshal(dAtA []byte) 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: Split: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Split: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSplitRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.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 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.Range == nil { - m.Range = &model.Range{} - } - if err := m.Range.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - 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 ErrIntOverflowCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Style |= model.BlockContentTextStyle(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType) - } - m.Mode = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Mode |= RpcBlockSplitRequestMode(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSplitResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockSplitResponseError{} - } - 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 BlockId", 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSplitResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockSplitResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockMerge) Unmarshal(dAtA []byte) 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: Merge: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Merge: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockMergeRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FirstBlockId", 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.FirstBlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecondBlockId", 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.SecondBlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockMergeResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockMergeResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockMergeResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockMergeResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockCopy) Unmarshal(dAtA []byte) 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: Copy: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Copy: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockCopyRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - 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 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 - } - 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 - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SelectedTextRange", 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.SelectedTextRange == nil { - m.SelectedTextRange = &model.Range{} - } - if err := m.SelectedTextRange.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockCopyResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockCopyResponseError{} - } - 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 TextSlot", 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.TextSlot = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HtmlSlot", 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.HtmlSlot = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AnySlot", 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 - } - m.AnySlot = append(m.AnySlot, &model.Block{}) - if err := m.AnySlot[len(m.AnySlot)-1].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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockCopyResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockCopyResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockPaste) Unmarshal(dAtA []byte) 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: Paste: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Paste: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockPasteRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FocusedBlockId", 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.FocusedBlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SelectedTextRange", 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.SelectedTextRange == nil { - m.SelectedTextRange = &model.Range{} - } - if err := m.SelectedTextRange.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SelectedBlockIds", 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.SelectedBlockIds = append(m.SelectedBlockIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsPartOfBlock", 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.IsPartOfBlock = bool(v != 0) - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TextSlot", 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.TextSlot = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HtmlSlot", 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.HtmlSlot = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AnySlot", 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 - } - m.AnySlot = append(m.AnySlot, &model.Block{}) - if err := m.AnySlot[len(m.AnySlot)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FileSlot", 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 - } - m.FileSlot = append(m.FileSlot, &RpcBlockPasteRequestFile{}) - if err := m.FileSlot[len(m.FileSlot)-1].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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockPasteRequestFile) Unmarshal(dAtA []byte) 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 { - 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 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 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockPasteResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockPasteResponseError{} - } - 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 BlockIds", 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.BlockIds = append(m.BlockIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CaretPosition", wireType) - } - m.CaretPosition = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CaretPosition |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsSameBlockCaret", 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.IsSameBlockCaret = bool(v != 0) - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockPasteResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockPasteResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockCut) Unmarshal(dAtA []byte) 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: Cut: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Cut: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockCutRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - 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 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 - } - 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 - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SelectedTextRange", 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.SelectedTextRange == nil { - m.SelectedTextRange = &model.Range{} - } - if err := m.SelectedTextRange.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockCutResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockCutResponseError{} - } - 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 TextSlot", 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.TextSlot = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HtmlSlot", 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.HtmlSlot = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AnySlot", 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 - } - m.AnySlot = append(m.AnySlot, &model.Block{}) - if err := m.AnySlot[len(m.AnySlot)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockCutResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockCutResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockImportMarkdown) Unmarshal(dAtA []byte) 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: ImportMarkdown: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ImportMarkdown: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockImportMarkdownRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ImportPath", 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.ImportPath = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockImportMarkdownResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockImportMarkdownResponseError{} - } - 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 RootLinkIds", 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.RootLinkIds = append(m.RootLinkIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockImportMarkdownResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockImportMarkdownResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockExport) Unmarshal(dAtA []byte) 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: Export: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Export: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockExportRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - 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 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 - } - 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 := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockExportResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockExportResponseError{} - } - 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 Path", 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.Path = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockExportResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockExportResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockUpload) Unmarshal(dAtA []byte) 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: Upload: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Upload: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockUploadRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - 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 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.FilePath = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Url", 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.Url = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockUploadResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockUploadResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockUploadResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockUploadResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDownload) Unmarshal(dAtA []byte) 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: Download: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Download: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDownloadRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDownloadResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockDownloadResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDownloadResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockDownloadResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSet) Unmarshal(dAtA []byte) 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: Set: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Set: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetFields) Unmarshal(dAtA []byte) 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: Fields: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Fields: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetFieldsRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - 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 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.Fields == nil { - m.Fields = &types.Struct{} - } - if err := m.Fields.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetFieldsResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockSetFieldsResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetFieldsResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockSetFieldsResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetDetails) Unmarshal(dAtA []byte) 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: Details: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Details: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetDetailsDetail) Unmarshal(dAtA []byte) 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: Detail: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Detail: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", 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.Key = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Value", 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.Value == nil { - m.Value = &types.Value{} - } - if err := m.Value.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetDetailsRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Details", 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 - } - m.Details = append(m.Details, &RpcBlockSetDetailsDetail{}) - if err := m.Details[len(m.Details)-1].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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetDetailsResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockSetDetailsResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetDetailsResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockSetDetailsResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetRestrictions) Unmarshal(dAtA []byte) 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: Restrictions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Restrictions: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetRestrictionsRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Restrictions", 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.Restrictions == nil { - m.Restrictions = &model.BlockRestrictions{} - } - if err := m.Restrictions.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetRestrictionsResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockSetRestrictionsResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetRestrictionsResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockSetRestrictionsResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetPage) Unmarshal(dAtA []byte) 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: 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 { - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetPageIsArchived) Unmarshal(dAtA []byte) 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: IsArchived: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IsArchived: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetPageIsArchivedRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsArchived", 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.IsArchived = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetPageIsArchivedResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockSetPageIsArchivedResponseError{} - } - 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetPageIsArchivedResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockSetPageIsArchivedResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetLatex) Unmarshal(dAtA []byte) 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: Latex: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Latex: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetLatexText) Unmarshal(dAtA []byte) 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: 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 { - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetLatexTextRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - 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 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.Text = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetLatexTextResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockSetLatexTextResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetLatexTextResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockSetLatexTextResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetText) Unmarshal(dAtA []byte) 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: 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 { - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetTextText) Unmarshal(dAtA []byte) 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: 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 { - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetTextTextRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - 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 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.Text = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - 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 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.Marks == nil { - m.Marks = &model.BlockContentTextMarks{} - } - if err := m.Marks.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetTextTextResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockSetTextTextResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetTextTextResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockSetTextTextResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetTextColor) Unmarshal(dAtA []byte) 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: Color: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Color: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetTextColorRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - 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 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.Color = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetTextColorResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockSetTextColorResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetTextColorResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockSetTextColorResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetTextStyle) Unmarshal(dAtA []byte) 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: Style: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Style: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetTextStyleRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - 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 ErrIntOverflowCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Style |= model.BlockContentTextStyle(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetTextStyleResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockSetTextStyleResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetTextStyleResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockSetTextStyleResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetTextChecked) Unmarshal(dAtA []byte) 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: Checked: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Checked: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetTextCheckedRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - 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 ErrIntOverflowCommands - } - 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 := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetTextCheckedResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockSetTextCheckedResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetTextCheckedResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockSetTextCheckedResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetTextIcon) Unmarshal(dAtA []byte) 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: Icon: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Icon: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetTextIconRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IconImage", 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.IconImage = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IconEmoji", 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.IconEmoji = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetTextIconResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockSetTextIconResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetTextIconResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockSetTextIconResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetFile) Unmarshal(dAtA []byte) 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetFileName) Unmarshal(dAtA []byte) 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: Name: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Name: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetFileNameRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - 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 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetFileNameResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockSetFileNameResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetFileNameResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockSetFileNameResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetImage) Unmarshal(dAtA []byte) 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetImageName) Unmarshal(dAtA []byte) 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: Name: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Name: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetImageNameRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - 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 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetImageNameResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockSetImageNameResponseError{} - } - 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetImageNameResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockSetImageNameResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetImageWidth) Unmarshal(dAtA []byte) 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: Width: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Width: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetImageWidthRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = 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 ErrIntOverflowCommands - } - 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 := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetImageWidthResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockSetImageWidthResponseError{} - } - 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetImageWidthResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockSetImageWidthResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetVideo) Unmarshal(dAtA []byte) 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: 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 { - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetVideoName) Unmarshal(dAtA []byte) 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: Name: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Name: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetVideoNameRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - 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 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetVideoNameResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockSetVideoNameResponseError{} - } - 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetVideoNameResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockSetVideoNameResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetVideoWidth) Unmarshal(dAtA []byte) 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: Width: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Width: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetVideoWidthRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = 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 ErrIntOverflowCommands - } - 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 := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetVideoWidthResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockSetVideoWidthResponseError{} - } - 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetVideoWidthResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockSetVideoWidthResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetLink) Unmarshal(dAtA []byte) 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: Link: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Link: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetLinkTargetBlockId) Unmarshal(dAtA []byte) 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: TargetBlockId: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TargetBlockId: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetLinkTargetBlockIdRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetBlockId", 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.TargetBlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetLinkTargetBlockIdResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockSetLinkTargetBlockIdResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetLinkTargetBlockIdResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockSetLinkTargetBlockIdResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockRelation) Unmarshal(dAtA []byte) 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: Relation: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Relation: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockRelationSetKey) Unmarshal(dAtA []byte) 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: SetKey: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SetKey: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockRelationSetKeyRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Key", 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.Key = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockRelationSetKeyResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockRelationSetKeyResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockRelationSetKeyResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockRelationSetKeyResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockRelationAdd) Unmarshal(dAtA []byte) 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: Add: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Add: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockRelationAddRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Relation", 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.Relation == nil { - m.Relation = &model.Relation{} - } - if err := m.Relation.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockRelationAddResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockRelationAddResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockRelationAddResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockRelationAddResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockObjectType) Unmarshal(dAtA []byte) 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: ObjectType: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ObjectType: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockObjectTypeSet) Unmarshal(dAtA []byte) 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: Set: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Set: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockObjectTypeSetRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectTypeUrl", 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.ObjectTypeUrl = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockObjectTypeSetResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockObjectTypeSetResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockObjectTypeSetResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockObjectTypeSetResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockBookmark) Unmarshal(dAtA []byte) 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: Bookmark: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Bookmark: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockBookmarkFetch) Unmarshal(dAtA []byte) 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: Fetch: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Fetch: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockBookmarkFetchRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Url", 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.Url = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockBookmarkFetchResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockBookmarkFetchResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockBookmarkFetchResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockBookmarkFetchResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockBookmarkCreateAndFetch) Unmarshal(dAtA []byte) 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: CreateAndFetch: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CreateAndFetch: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockBookmarkCreateAndFetchRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetId", 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.TargetId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Position", wireType) - } - m.Position = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Position |= model.BlockPosition(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Url", 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.Url = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockBookmarkCreateAndFetchResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockBookmarkCreateAndFetchResponseError{} - } - 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 BlockId", 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockBookmarkCreateAndFetchResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockBookmarkCreateAndFetchResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockFile) Unmarshal(dAtA []byte) 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockFileCreateAndUpload) Unmarshal(dAtA []byte) 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: CreateAndUpload: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CreateAndUpload: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockFileCreateAndUploadRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetId", 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.TargetId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Position", wireType) - } - m.Position = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Position |= model.BlockPosition(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Url", 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.Url = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - 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 - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field FileType", wireType) - } - m.FileType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.FileType |= model.BlockContentFileType(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockFileCreateAndUploadResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockFileCreateAndUploadResponseError{} - } - 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 BlockId", 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockFileCreateAndUploadResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockFileCreateAndUploadResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataview) Unmarshal(dAtA []byte) 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: Dataview: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Dataview: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewViewCreate) Unmarshal(dAtA []byte) 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: ViewCreate: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ViewCreate: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewViewCreateRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field View", 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.View == nil { - m.View = &model.BlockContentDataviewView{} - } - if err := m.View.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewViewCreateResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockDataviewViewCreateResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ViewId", 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.ViewId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewViewCreateResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockDataviewViewCreateResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewViewUpdate) Unmarshal(dAtA []byte) 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: ViewUpdate: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ViewUpdate: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewViewUpdateRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ViewId", 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.ViewId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field View", 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.View == nil { - m.View = &model.BlockContentDataviewView{} - } - if err := m.View.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewViewUpdateResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockDataviewViewUpdateResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewViewUpdateResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockDataviewViewUpdateResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewViewDelete) Unmarshal(dAtA []byte) 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: ViewDelete: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ViewDelete: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewViewDeleteRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ViewId", 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.ViewId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewViewDeleteResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockDataviewViewDeleteResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewViewDeleteResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockDataviewViewDeleteResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewViewSetPosition) Unmarshal(dAtA []byte) 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: ViewSetPosition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ViewSetPosition: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewViewSetPositionRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ViewId", 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.ViewId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Position", wireType) - } - m.Position = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Position |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewViewSetPositionResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockDataviewViewSetPositionResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewViewSetPositionResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockDataviewViewSetPositionResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewViewSetActive) Unmarshal(dAtA []byte) 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: ViewSetActive: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ViewSetActive: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewViewSetActiveRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ViewId", 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.ViewId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Offset", wireType) - } - m.Offset = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Offset |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) - } - m.Limit = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Limit |= uint32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewViewSetActiveResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockDataviewViewSetActiveResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewViewSetActiveResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockDataviewViewSetActiveResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewRecordUpdate) Unmarshal(dAtA []byte) 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: RecordUpdate: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RecordUpdate: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewRecordUpdateRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RecordId", 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.RecordId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Record", 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.Record == nil { - m.Record = &types.Struct{} - } - if err := m.Record.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewRecordUpdateResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockDataviewRecordUpdateResponseError{} - } - 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewRecordUpdateResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockDataviewRecordUpdateResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewRecordDelete) Unmarshal(dAtA []byte) 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: RecordDelete: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RecordDelete: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewRecordDeleteRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RecordId", 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.RecordId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewRecordDeleteResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockDataviewRecordDeleteResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewRecordDeleteResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockDataviewRecordDeleteResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewRecordCreate) Unmarshal(dAtA []byte) 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: RecordCreate: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RecordCreate: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewRecordCreateRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Record", 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.Record == nil { - m.Record = &types.Struct{} - } - if err := m.Record.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TemplateId", 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.TemplateId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewRecordCreateResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockDataviewRecordCreateResponseError{} - } - 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 Record", 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.Record == nil { - m.Record = &types.Struct{} - } - if err := m.Record.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewRecordCreateResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockDataviewRecordCreateResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewRelationAdd) Unmarshal(dAtA []byte) 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: RelationAdd: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RelationAdd: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewRelationAddRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Relation", 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.Relation == nil { - m.Relation = &model.Relation{} - } - if err := m.Relation.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewRelationAddResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockDataviewRelationAddResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RelationKey", 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.RelationKey = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Relation", 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.Relation == nil { - m.Relation = &model.Relation{} - } - if err := m.Relation.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewRelationAddResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockDataviewRelationAddResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewRelationUpdate) Unmarshal(dAtA []byte) 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: RelationUpdate: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RelationUpdate: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewRelationUpdateRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RelationKey", 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.RelationKey = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Relation", 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.Relation == nil { - m.Relation = &model.Relation{} - } - if err := m.Relation.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewRelationUpdateResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockDataviewRelationUpdateResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewRelationUpdateResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockDataviewRelationUpdateResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewRelationDelete) Unmarshal(dAtA []byte) 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: RelationDelete: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RelationDelete: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewRelationDeleteRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RelationKey", 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.RelationKey = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewRelationDeleteResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockDataviewRelationDeleteResponseError{} - } - if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewRelationDeleteResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockDataviewRelationDeleteResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewRecordRelationOptionAdd) Unmarshal(dAtA []byte) 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: RecordRelationOptionAdd: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RecordRelationOptionAdd: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewRecordRelationOptionAddRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RelationKey", 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.RelationKey = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Option", 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.Option == nil { - m.Option = &model.RelationOption{} - } - if err := m.Option.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RecordId", 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.RecordId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewRecordRelationOptionAddResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockDataviewRecordRelationOptionAddResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Option", 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.Option == nil { - m.Option = &model.RelationOption{} - } - if err := m.Option.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewRecordRelationOptionAddResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockDataviewRecordRelationOptionAddResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewRecordRelationOptionUpdate) Unmarshal(dAtA []byte) 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: RecordRelationOptionUpdate: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RecordRelationOptionUpdate: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewRecordRelationOptionUpdateRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RelationKey", 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.RelationKey = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Option", 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.Option == nil { - m.Option = &model.RelationOption{} - } - if err := m.Option.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RecordId", 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.RecordId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewRecordRelationOptionUpdateResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockDataviewRecordRelationOptionUpdateResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewRecordRelationOptionUpdateResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockDataviewRecordRelationOptionUpdateResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewRecordRelationOptionDelete) Unmarshal(dAtA []byte) 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: RecordRelationOptionDelete: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RecordRelationOptionDelete: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewRecordRelationOptionDeleteRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RelationKey", 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.RelationKey = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OptionId", 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.OptionId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RecordId", 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.RecordId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewRecordRelationOptionDeleteResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockDataviewRecordRelationOptionDeleteResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewRecordRelationOptionDeleteResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockDataviewRecordRelationOptionDeleteResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewRelationListAvailable) Unmarshal(dAtA []byte) 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: RelationListAvailable: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RelationListAvailable: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewRelationListAvailableRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewRelationListAvailableResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockDataviewRelationListAvailableResponseError{} - } - 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 Relations", 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 - } - m.Relations = append(m.Relations, &model.Relation{}) - if err := m.Relations[len(m.Relations)-1].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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewRelationListAvailableResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockDataviewRelationListAvailableResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewSetSource) Unmarshal(dAtA []byte) 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: SetSource: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SetSource: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewSetSourceRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Source", 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.Source = append(m.Source, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewSetSourceResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockDataviewSetSourceResponseError{} - } - if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockDataviewSetSourceResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockDataviewSetSourceResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockGet) Unmarshal(dAtA []byte) 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockGetMarks) Unmarshal(dAtA []byte) 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: 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 { - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockGetMarksRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.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 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.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 := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockGetMarksResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockGetMarksResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockGetMarksResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockGetMarksResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockUndoRedoCounter) Unmarshal(dAtA []byte) 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: UndoRedoCounter: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UndoRedoCounter: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Undo", wireType) - } - m.Undo = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Undo |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Redo", wireType) - } - m.Redo = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Redo |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockUndo) Unmarshal(dAtA []byte) 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: Undo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Undo: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockUndoRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockUndoResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockUndoResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Counters", 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.Counters == nil { - m.Counters = &RpcBlockUndoRedoCounter{} - } - if err := m.Counters.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockUndoResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockUndoResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockRedo) Unmarshal(dAtA []byte) 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: Redo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Redo: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockRedoRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockRedoResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockRedoResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Counters", 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.Counters == nil { - m.Counters = &RpcBlockUndoRedoCounter{} - } - if err := m.Counters.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockRedoResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockRedoResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockOpen) Unmarshal(dAtA []byte) 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockOpenRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TraceId", 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.TraceId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockOpenResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockOpenResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockOpenResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockOpenResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockShow) Unmarshal(dAtA []byte) 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: 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 { - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockShowRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TraceId", 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.TraceId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockShowResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockShowResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockShowResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockShowResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockGetPublicWebURL) Unmarshal(dAtA []byte) 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: GetPublicWebURL: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetPublicWebURL: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockGetPublicWebURLRequest) Unmarshal(dAtA []byte) 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 BlockId", 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockGetPublicWebURLResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockGetPublicWebURLResponseError{} - } - 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 Url", 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.Url = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockGetPublicWebURLResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockGetPublicWebURLResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockOpenBreadcrumbs) Unmarshal(dAtA []byte) 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: OpenBreadcrumbs: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: OpenBreadcrumbs: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockOpenBreadcrumbsRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TraceId", 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.TraceId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockOpenBreadcrumbsResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockOpenBreadcrumbsResponseError{} - } - 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 BlockId", 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockOpenBreadcrumbsResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockOpenBreadcrumbsResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetBreadcrumbs) Unmarshal(dAtA []byte) 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: SetBreadcrumbs: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SetBreadcrumbs: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetBreadcrumbsRequest) Unmarshal(dAtA []byte) 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 BreadcrumbsId", 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.BreadcrumbsId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ids", 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.Ids = append(m.Ids, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetBreadcrumbsResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockSetBreadcrumbsResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockSetBreadcrumbsResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockSetBreadcrumbsResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockCreate) Unmarshal(dAtA []byte) 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockCreateRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetId", 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.TargetId = string(dAtA[iNdEx:postIndex]) - 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 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.Block == nil { - m.Block = &model.Block{} - } - if err := m.Block.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Position", wireType) - } - m.Position = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Position |= model.BlockPosition(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockCreateResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockCreateResponseError{} - } - 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 BlockId", 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockCreateResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockCreateResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockCreatePage) Unmarshal(dAtA []byte) 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: CreatePage: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CreatePage: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockCreatePageRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetId", 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.TargetId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Details", 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.Details == nil { - m.Details = &types.Struct{} - } - if err := m.Details.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Position", wireType) - } - m.Position = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Position |= model.BlockPosition(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TemplateId", 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.TemplateId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - 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 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.Fields == nil { - m.Fields = &types.Struct{} - } - if err := m.Fields.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockCreatePageResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockCreatePageResponseError{} - } - 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 BlockId", 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetId", 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.TargetId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockCreatePageResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockCreatePageResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockCreateSet) Unmarshal(dAtA []byte) 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: CreateSet: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CreateSet: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockCreateSetRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetId", 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.TargetId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Source", 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.Source = append(m.Source, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Details", 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.Details == nil { - m.Details = &types.Struct{} - } - if err := m.Details.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Position", wireType) - } - m.Position = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Position |= model.BlockPosition(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockCreateSetResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockCreateSetResponseError{} - } - 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 BlockId", 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TargetId", 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.TargetId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockCreateSetResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockCreateSetResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockUnlink) Unmarshal(dAtA []byte) 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: Unlink: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Unlink: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockUnlinkRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockIds", 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.BlockIds = append(m.BlockIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockUnlinkResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockUnlinkResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockUnlinkResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockUnlinkResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockClose) Unmarshal(dAtA []byte) 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: Close: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Close: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockCloseRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockCloseResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockCloseResponseError{} - } - 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcBlockCloseResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockCloseResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcWorkspace) Unmarshal(dAtA []byte) 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: Workspace: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Workspace: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcWorkspaceGetCurrent) Unmarshal(dAtA []byte) 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: GetCurrent: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetCurrent: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcWorkspaceGetCurrentRequest) Unmarshal(dAtA []byte) 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcWorkspaceGetCurrentResponse) Unmarshal(dAtA []byte) 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 = &RpcWorkspaceGetCurrentResponseError{} - } - 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 WorkspaceId", 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.WorkspaceId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcWorkspaceGetCurrentResponseError) Unmarshal(dAtA []byte) 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 |= RpcWorkspaceGetCurrentResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcWorkspaceGetAll) Unmarshal(dAtA []byte) 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: GetAll: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetAll: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcWorkspaceGetAllRequest) Unmarshal(dAtA []byte) 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcWorkspaceGetAllResponse) Unmarshal(dAtA []byte) 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 = &RpcWorkspaceGetAllResponseError{} - } - 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 WorkspaceIds", 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.WorkspaceIds = append(m.WorkspaceIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcWorkspaceGetAllResponseError) Unmarshal(dAtA []byte) 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 |= RpcWorkspaceGetAllResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcWorkspaceCreate) Unmarshal(dAtA []byte) 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcWorkspaceCreateRequest) Unmarshal(dAtA []byte) 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 - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcWorkspaceCreateResponse) Unmarshal(dAtA []byte) 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 = &RpcWorkspaceCreateResponseError{} - } - 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 WorkspaceId", wireType) - } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { @@ -111292,7 +72526,7 @@ func (m *RpcWorkspaceCreateResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.WorkspaceId = string(dAtA[iNdEx:postIndex]) + m.Details = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -111315,7 +72549,7 @@ func (m *RpcWorkspaceCreateResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcWorkspaceCreateResponseError) Unmarshal(dAtA []byte) error { +func (m *RpcAppGetVersionResponseError) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -111358,7 +72592,7 @@ func (m *RpcWorkspaceCreateResponseError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Code |= RpcWorkspaceCreateResponseErrorCode(b&0x7F) << shift + m.Code |= RpcAppGetVersionResponseErrorCode(b&0x7F) << shift if b < 0x80 { break } @@ -111416,7 +72650,7 @@ func (m *RpcWorkspaceCreateResponseError) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcWorkspaceSetIsHighlighted) Unmarshal(dAtA []byte) error { +func (m *RpcAppSetDeviceState) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -111439,10 +72673,10 @@ func (m *RpcWorkspaceSetIsHighlighted) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SetIsHighlighted: wiretype end group for non-group") + return fmt.Errorf("proto: SetDeviceState: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SetIsHighlighted: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SetDeviceState: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -111466,7 +72700,7 @@ func (m *RpcWorkspaceSetIsHighlighted) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcWorkspaceSetIsHighlightedRequest) Unmarshal(dAtA []byte) error { +func (m *RpcAppSetDeviceStateRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -111496,42 +72730,10 @@ func (m *RpcWorkspaceSetIsHighlightedRequest) Unmarshal(dAtA []byte) error { } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectId", 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.ObjectId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsHighlighted", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field DeviceState", wireType) } - var v int + m.DeviceState = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCommands @@ -111541,12 +72743,11 @@ func (m *RpcWorkspaceSetIsHighlightedRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + m.DeviceState |= RpcAppSetDeviceStateRequestDeviceState(b&0x7F) << shift if b < 0x80 { break } } - m.IsHighlighted = bool(v != 0) default: iNdEx = preIndex skippy, err := skipCommands(dAtA[iNdEx:]) @@ -111568,7 +72769,7 @@ func (m *RpcWorkspaceSetIsHighlightedRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcWorkspaceSetIsHighlightedResponse) Unmarshal(dAtA []byte) error { +func (m *RpcAppSetDeviceStateResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -111627,7 +72828,7 @@ func (m *RpcWorkspaceSetIsHighlightedResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Error == nil { - m.Error = &RpcWorkspaceSetIsHighlightedResponseError{} + m.Error = &RpcAppSetDeviceStateResponseError{} } if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -111654,7 +72855,7 @@ func (m *RpcWorkspaceSetIsHighlightedResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcWorkspaceSetIsHighlightedResponseError) Unmarshal(dAtA []byte) error { +func (m *RpcAppSetDeviceStateResponseError) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -111697,7 +72898,7 @@ func (m *RpcWorkspaceSetIsHighlightedResponseError) Unmarshal(dAtA []byte) error } b := dAtA[iNdEx] iNdEx++ - m.Code |= RpcWorkspaceSetIsHighlightedResponseErrorCode(b&0x7F) << shift + m.Code |= RpcAppSetDeviceStateResponseErrorCode(b&0x7F) << shift if b < 0x80 { break } @@ -111755,7 +72956,7 @@ func (m *RpcWorkspaceSetIsHighlightedResponseError) Unmarshal(dAtA []byte) error } return nil } -func (m *RpcWorkspaceSelect) Unmarshal(dAtA []byte) error { +func (m *RpcAppShutdown) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -111778,10 +72979,10 @@ func (m *RpcWorkspaceSelect) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Select: wiretype end group for non-group") + return fmt.Errorf("proto: Shutdown: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Select: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Shutdown: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -111805,7 +73006,7 @@ func (m *RpcWorkspaceSelect) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcWorkspaceSelectRequest) Unmarshal(dAtA []byte) error { +func (m *RpcAppShutdownRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -111834,38 +73035,6 @@ func (m *RpcWorkspaceSelectRequest) Unmarshal(dAtA []byte) error { 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 WorkspaceId", 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.WorkspaceId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipCommands(dAtA[iNdEx:]) @@ -111887,7 +73056,7 @@ func (m *RpcWorkspaceSelectRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcWorkspaceSelectResponse) Unmarshal(dAtA []byte) error { +func (m *RpcAppShutdownResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -111946,7 +73115,7 @@ func (m *RpcWorkspaceSelectResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Error == nil { - m.Error = &RpcWorkspaceSelectResponseError{} + m.Error = &RpcAppShutdownResponseError{} } if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -111973,7 +73142,7 @@ func (m *RpcWorkspaceSelectResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcWorkspaceSelectResponseError) Unmarshal(dAtA []byte) error { +func (m *RpcAppShutdownResponseError) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -112016,7 +73185,7 @@ func (m *RpcWorkspaceSelectResponseError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Code |= RpcWorkspaceSelectResponseErrorCode(b&0x7F) << shift + m.Code |= RpcAppShutdownResponseErrorCode(b&0x7F) << shift if b < 0x80 { break } @@ -115272,7 +76441,7 @@ func (m *RpcAccountStopResponseError) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcLog) Unmarshal(dAtA []byte) error { +func (m *RpcAccountGetConfig) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -115295,10 +76464,10 @@ func (m *RpcLog) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Log: wiretype end group for non-group") + return fmt.Errorf("proto: GetConfig: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Log: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetConfig: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -115322,395 +76491,7 @@ func (m *RpcLog) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcLogSend) Unmarshal(dAtA []byte) 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcLogSendRequest) Unmarshal(dAtA []byte) 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 |= RpcLogSendRequestLevel(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcLogSendResponse) Unmarshal(dAtA []byte) 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 = &RpcLogSendResponseError{} - } - 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcLogSendResponseError) Unmarshal(dAtA []byte) 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 |= RpcLogSendResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcVersion) Unmarshal(dAtA []byte) 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcVersionGet) Unmarshal(dAtA []byte) error { +func (m *RpcAccountGetConfigGet) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -115760,7 +76541,7 @@ func (m *RpcVersionGet) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcVersionGetRequest) Unmarshal(dAtA []byte) error { +func (m *RpcAccountGetConfigGetRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -115810,7 +76591,157 @@ func (m *RpcVersionGetRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcVersionGetResponse) Unmarshal(dAtA []byte) error { +func (m *RpcWorkspace) Unmarshal(dAtA []byte) 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: Workspace: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Workspace: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcWorkspaceGetCurrent) Unmarshal(dAtA []byte) 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: GetCurrent: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GetCurrent: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcWorkspaceGetCurrentRequest) Unmarshal(dAtA []byte) 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcWorkspaceGetCurrentResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -115869,7 +76800,7 @@ func (m *RpcVersionGetResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Error == nil { - m.Error = &RpcVersionGetResponseError{} + m.Error = &RpcWorkspaceGetCurrentResponseError{} } if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -115877,7 +76808,7 @@ func (m *RpcVersionGetResponse) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field WorkspaceId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -115905,39 +76836,7 @@ func (m *RpcVersionGetResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Version = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Details", 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.Details = string(dAtA[iNdEx:postIndex]) + m.WorkspaceId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -115960,7 +76859,7 @@ func (m *RpcVersionGetResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcVersionGetResponseError) Unmarshal(dAtA []byte) error { +func (m *RpcWorkspaceGetCurrentResponseError) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -116003,7 +76902,7 @@ func (m *RpcVersionGetResponseError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Code |= RpcVersionGetResponseErrorCode(b&0x7F) << shift + m.Code |= RpcWorkspaceGetCurrentResponseErrorCode(b&0x7F) << shift if b < 0x80 { break } @@ -116061,7 +76960,7 @@ func (m *RpcVersionGetResponseError) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcFile) Unmarshal(dAtA []byte) error { +func (m *RpcWorkspaceGetAll) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -116084,10 +76983,10 @@ func (m *RpcFile) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: File: wiretype end group for non-group") + return fmt.Errorf("proto: GetAll: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: File: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetAll: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -116111,57 +77010,7 @@ func (m *RpcFile) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcFileOffload) Unmarshal(dAtA []byte) 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: Offload: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Offload: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcFileOffloadRequest) Unmarshal(dAtA []byte) error { +func (m *RpcWorkspaceGetAllRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -116190,58 +77039,6 @@ func (m *RpcFileOffloadRequest) Unmarshal(dAtA []byte) error { 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 IncludeNotPinned", 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.IncludeNotPinned = bool(v != 0) default: iNdEx = preIndex skippy, err := skipCommands(dAtA[iNdEx:]) @@ -116263,7 +77060,7 @@ func (m *RpcFileOffloadRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcFileOffloadResponse) Unmarshal(dAtA []byte) error { +func (m *RpcWorkspaceGetAllResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -116322,17 +77119,17 @@ func (m *RpcFileOffloadResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Error == nil { - m.Error = &RpcFileOffloadResponseError{} + m.Error = &RpcWorkspaceGetAllResponseError{} } if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field BytesOffloaded", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field WorkspaceIds", wireType) } - m.BytesOffloaded = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCommands @@ -116342,11 +77139,24 @@ func (m *RpcFileOffloadResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.BytesOffloaded |= uint64(b&0x7F) << shift + 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.WorkspaceIds = append(m.WorkspaceIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipCommands(dAtA[iNdEx:]) @@ -116368,7 +77178,7 @@ func (m *RpcFileOffloadResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcFileOffloadResponseError) Unmarshal(dAtA []byte) error { +func (m *RpcWorkspaceGetAllResponseError) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -116411,7 +77221,7 @@ func (m *RpcFileOffloadResponseError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Code |= RpcFileOffloadResponseErrorCode(b&0x7F) << shift + m.Code |= RpcWorkspaceGetAllResponseErrorCode(b&0x7F) << shift if b < 0x80 { break } @@ -116469,7 +77279,7 @@ func (m *RpcFileOffloadResponseError) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcFileList) Unmarshal(dAtA []byte) error { +func (m *RpcWorkspaceCreate) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -116492,10 +77302,10 @@ func (m *RpcFileList) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: FileList: wiretype end group for non-group") + return fmt.Errorf("proto: Create: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: FileList: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Create: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -116519,57 +77329,7 @@ func (m *RpcFileList) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcFileListOffload) Unmarshal(dAtA []byte) 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: Offload: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Offload: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcFileListOffloadRequest) Unmarshal(dAtA []byte) error { +func (m *RpcWorkspaceCreateRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -116600,7 +77360,7 @@ func (m *RpcFileListOffloadRequest) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OnlyIds", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -116628,28 +77388,8 @@ func (m *RpcFileListOffloadRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.OnlyIds = append(m.OnlyIds, string(dAtA[iNdEx:postIndex])) + m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IncludeNotPinned", 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.IncludeNotPinned = bool(v != 0) default: iNdEx = preIndex skippy, err := skipCommands(dAtA[iNdEx:]) @@ -116671,7 +77411,7 @@ func (m *RpcFileListOffloadRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcFileListOffloadResponse) Unmarshal(dAtA []byte) error { +func (m *RpcWorkspaceCreateResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -116730,17 +77470,17 @@ func (m *RpcFileListOffloadResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Error == nil { - m.Error = &RpcFileListOffloadResponseError{} + m.Error = &RpcWorkspaceCreateResponseError{} } if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field FilesOffloaded", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field WorkspaceId", wireType) } - m.FilesOffloaded = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCommands @@ -116750,30 +77490,24 @@ func (m *RpcFileListOffloadResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.FilesOffloaded |= int32(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field BytesOffloaded", wireType) + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCommands } - m.BytesOffloaded = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.BytesOffloaded |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthCommands } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.WorkspaceId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipCommands(dAtA[iNdEx:]) @@ -116795,7 +77529,7 @@ func (m *RpcFileListOffloadResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcFileListOffloadResponseError) Unmarshal(dAtA []byte) error { +func (m *RpcWorkspaceCreateResponseError) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -116838,7 +77572,7 @@ func (m *RpcFileListOffloadResponseError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Code |= RpcFileListOffloadResponseErrorCode(b&0x7F) << shift + m.Code |= RpcWorkspaceCreateResponseErrorCode(b&0x7F) << shift if b < 0x80 { break } @@ -116896,7 +77630,7 @@ func (m *RpcFileListOffloadResponseError) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcShutdown) Unmarshal(dAtA []byte) error { +func (m *RpcWorkspaceSetIsHighlighted) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -116919,10 +77653,10 @@ func (m *RpcShutdown) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Shutdown: wiretype end group for non-group") + return fmt.Errorf("proto: SetIsHighlighted: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Shutdown: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: SetIsHighlighted: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -116946,3545 +77680,7 @@ func (m *RpcShutdown) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcShutdownRequest) Unmarshal(dAtA []byte) 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcShutdownResponse) Unmarshal(dAtA []byte) 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 = &RpcShutdownResponseError{} - } - 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcShutdownResponseError) Unmarshal(dAtA []byte) 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 |= RpcShutdownResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcDeviceState) Unmarshal(dAtA []byte) 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: DeviceState: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeviceState: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcDeviceStateRequest) Unmarshal(dAtA []byte) 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 DeviceState", wireType) - } - m.DeviceState = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.DeviceState |= RpcDeviceStateRequestDeviceState(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcDeviceStateResponse) Unmarshal(dAtA []byte) 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 = &RpcDeviceStateResponseError{} - } - 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcDeviceStateResponseError) Unmarshal(dAtA []byte) 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 |= RpcDeviceStateResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcConfig) Unmarshal(dAtA []byte) 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: Config: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Config: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcConfigGet) Unmarshal(dAtA []byte) 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcConfigGetRequest) Unmarshal(dAtA []byte) 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcConfigGetResponse) Unmarshal(dAtA []byte) 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 = &RpcConfigGetResponseError{} - } - 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 HomeBlockId", 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.HomeBlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ArchiveBlockId", 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.ArchiveBlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ProfileBlockId", 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.ProfileBlockId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MarketplaceTypeId", 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.MarketplaceTypeId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MarketplaceRelationId", 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.MarketplaceRelationId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MarketplaceTemplateId", 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.MarketplaceTemplateId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DeviceId", 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.DeviceId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 101: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GatewayUrl", 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.GatewayUrl = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcConfigGetResponseError) Unmarshal(dAtA []byte) 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 |= RpcConfigGetResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcPing) Unmarshal(dAtA []byte) 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: Ping: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Ping: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcPingRequest) Unmarshal(dAtA []byte) 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 Index", wireType) - } - m.Index = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Index |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumberOfEventsToSend", wireType) - } - m.NumberOfEventsToSend = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NumberOfEventsToSend |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcPingResponse) Unmarshal(dAtA []byte) 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 = &RpcPingResponseError{} - } - if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - 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 ErrIntOverflowCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Index |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcPingResponseError) Unmarshal(dAtA []byte) 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 |= RpcPingResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcProcess) Unmarshal(dAtA []byte) 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: Process: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Process: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcProcessCancel) Unmarshal(dAtA []byte) 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: Cancel: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Cancel: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcProcessCancelRequest) Unmarshal(dAtA []byte) 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcProcessCancelResponse) Unmarshal(dAtA []byte) 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 = &RpcProcessCancelResponseError{} - } - 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcProcessCancelResponseError) Unmarshal(dAtA []byte) 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 |= RpcProcessCancelResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcLinkPreview) Unmarshal(dAtA []byte) 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: LinkPreview: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: LinkPreview: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcLinkPreviewRequest) Unmarshal(dAtA []byte) 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 Url", 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.Url = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcLinkPreviewResponse) Unmarshal(dAtA []byte) 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 = &RpcLinkPreviewResponseError{} - } - 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 LinkPreview", 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.LinkPreview == nil { - m.LinkPreview = &model.LinkPreview{} - } - if err := m.LinkPreview.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcLinkPreviewResponseError) Unmarshal(dAtA []byte) 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 |= RpcLinkPreviewResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcUploadFile) Unmarshal(dAtA []byte) 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: UploadFile: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UploadFile: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcUploadFileRequest) Unmarshal(dAtA []byte) 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 Url", 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.Url = string(dAtA[iNdEx:postIndex]) - 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 - case 3: - 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.BlockContentFileType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DisableEncryption", 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.DisableEncryption = bool(v != 0) - case 5: - 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 ErrIntOverflowCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Style |= model.BlockContentFileStyle(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcUploadFileResponse) Unmarshal(dAtA []byte) 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 = &RpcUploadFileResponseError{} - } - 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 Hash", 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.Hash = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcUploadFileResponseError) Unmarshal(dAtA []byte) 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 |= RpcUploadFileResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcDownloadFile) Unmarshal(dAtA []byte) 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: DownloadFile: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DownloadFile: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcDownloadFileRequest) Unmarshal(dAtA []byte) 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 Hash", 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.Hash = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Path", 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.Path = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcDownloadFileResponse) Unmarshal(dAtA []byte) 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 = &RpcDownloadFileResponseError{} - } - 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcDownloadFileResponseError) Unmarshal(dAtA []byte) 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 |= RpcDownloadFileResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcNavigation) Unmarshal(dAtA []byte) 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: Navigation: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Navigation: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcNavigationListObjects) Unmarshal(dAtA []byte) 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: ListObjects: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ListObjects: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcNavigationListObjectsRequest) Unmarshal(dAtA []byte) 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 Context", wireType) - } - m.Context = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Context |= RpcNavigationContext(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FullText", 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.FullText = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) - } - m.Limit = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Limit |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Offset", wireType) - } - m.Offset = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Offset |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcNavigationListObjectsResponse) Unmarshal(dAtA []byte) 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 = &RpcNavigationListObjectsResponseError{} - } - 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 Objects", 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 - } - m.Objects = append(m.Objects, &model.ObjectInfo{}) - if err := m.Objects[len(m.Objects)-1].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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcNavigationListObjectsResponseError) Unmarshal(dAtA []byte) 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 |= RpcNavigationListObjectsResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcNavigationGetObjectInfoWithLinks) Unmarshal(dAtA []byte) 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: GetObjectInfoWithLinks: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GetObjectInfoWithLinks: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcNavigationGetObjectInfoWithLinksRequest) Unmarshal(dAtA []byte) error { +func (m *RpcWorkspaceSetIsHighlightedRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -120547,9 +77743,9 @@ func (m *RpcNavigationGetObjectInfoWithLinksRequest) Unmarshal(dAtA []byte) erro iNdEx = postIndex case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Context", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field IsHighlighted", wireType) } - m.Context = 0 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCommands @@ -120559,11 +77755,12 @@ func (m *RpcNavigationGetObjectInfoWithLinksRequest) Unmarshal(dAtA []byte) erro } b := dAtA[iNdEx] iNdEx++ - m.Context |= RpcNavigationContext(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } + m.IsHighlighted = bool(v != 0) default: iNdEx = preIndex skippy, err := skipCommands(dAtA[iNdEx:]) @@ -120585,7 +77782,7 @@ func (m *RpcNavigationGetObjectInfoWithLinksRequest) Unmarshal(dAtA []byte) erro } return nil } -func (m *RpcNavigationGetObjectInfoWithLinksResponse) Unmarshal(dAtA []byte) error { +func (m *RpcWorkspaceSetIsHighlightedResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -120644,48 +77841,12 @@ func (m *RpcNavigationGetObjectInfoWithLinksResponse) Unmarshal(dAtA []byte) err return io.ErrUnexpectedEOF } if m.Error == nil { - m.Error = &RpcNavigationGetObjectInfoWithLinksResponseError{} + m.Error = &RpcWorkspaceSetIsHighlightedResponseError{} } 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 Object", 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.Object == nil { - m.Object = &model.ObjectInfoWithLinks{} - } - if err := m.Object.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipCommands(dAtA[iNdEx:]) @@ -120707,7 +77868,7 @@ func (m *RpcNavigationGetObjectInfoWithLinksResponse) Unmarshal(dAtA []byte) err } return nil } -func (m *RpcNavigationGetObjectInfoWithLinksResponseError) Unmarshal(dAtA []byte) error { +func (m *RpcWorkspaceSetIsHighlightedResponseError) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -120750,7 +77911,7 @@ func (m *RpcNavigationGetObjectInfoWithLinksResponseError) Unmarshal(dAtA []byte } b := dAtA[iNdEx] iNdEx++ - m.Code |= RpcNavigationGetObjectInfoWithLinksResponseErrorCode(b&0x7F) << shift + m.Code |= RpcWorkspaceSetIsHighlightedResponseErrorCode(b&0x7F) << shift if b < 0x80 { break } @@ -120808,7 +77969,7 @@ func (m *RpcNavigationGetObjectInfoWithLinksResponseError) Unmarshal(dAtA []byte } return nil } -func (m *RpcHistory) Unmarshal(dAtA []byte) error { +func (m *RpcWorkspaceSelect) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -120831,10 +77992,10 @@ func (m *RpcHistory) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: History: wiretype end group for non-group") + return fmt.Errorf("proto: Select: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: History: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Select: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -120858,273 +78019,7 @@ func (m *RpcHistory) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcHistoryVersions) Unmarshal(dAtA []byte) 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: Versions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Versions: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcHistoryVersionsVersion) Unmarshal(dAtA []byte) 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 { - 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 PreviousIds", 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.PreviousIds = append(m.PreviousIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AuthorId", 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.AuthorId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AuthorName", 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.AuthorName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType) - } - m.Time = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Time |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) - } - m.GroupId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.GroupId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcHistoryVersionsRequest) Unmarshal(dAtA []byte) error { +func (m *RpcWorkspaceSelectRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -121155,7 +78050,7 @@ func (m *RpcHistoryVersionsRequest) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PageId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field WorkspaceId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -121183,59 +78078,8 @@ func (m *RpcHistoryVersionsRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.PageId = string(dAtA[iNdEx:postIndex]) + m.WorkspaceId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LastVersionId", 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.LastVersionId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) - } - m.Limit = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Limit |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := skipCommands(dAtA[iNdEx:]) @@ -121257,7 +78101,7 @@ func (m *RpcHistoryVersionsRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcHistoryVersionsResponse) Unmarshal(dAtA []byte) error { +func (m *RpcWorkspaceSelectResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -121316,46 +78160,12 @@ func (m *RpcHistoryVersionsResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Error == nil { - m.Error = &RpcHistoryVersionsResponseError{} + m.Error = &RpcWorkspaceSelectResponseError{} } 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 Versions", 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 - } - m.Versions = append(m.Versions, &RpcHistoryVersionsVersion{}) - if err := m.Versions[len(m.Versions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipCommands(dAtA[iNdEx:]) @@ -121377,7 +78187,7 @@ func (m *RpcHistoryVersionsResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcHistoryVersionsResponseError) Unmarshal(dAtA []byte) error { +func (m *RpcWorkspaceSelectResponseError) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -121420,7 +78230,7 @@ func (m *RpcHistoryVersionsResponseError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Code |= RpcHistoryVersionsResponseErrorCode(b&0x7F) << shift + m.Code |= RpcWorkspaceSelectResponseErrorCode(b&0x7F) << shift if b < 0x80 { break } @@ -121478,7 +78288,1246 @@ func (m *RpcHistoryVersionsResponseError) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcHistoryShow) Unmarshal(dAtA []byte) error { +func (m *RpcWorkspaceExport) Unmarshal(dAtA []byte) 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: Export: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Export: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcWorkspaceExportRequest) Unmarshal(dAtA []byte) 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 Path", 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.Path = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field WorkspaceId", 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.WorkspaceId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcWorkspaceExportResponse) Unmarshal(dAtA []byte) 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 = &RpcWorkspaceExportResponseError{} + } + 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 Path", 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.Path = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcWorkspaceExportResponseError) Unmarshal(dAtA []byte) 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 |= RpcWorkspaceExportResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObject) Unmarshal(dAtA []byte) 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: Object: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Object: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectOpen) Unmarshal(dAtA []byte) 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectOpenRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectId", 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.ObjectId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TraceId", 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.TraceId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectOpenResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectOpenResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectOpenResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectOpenResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectClose) Unmarshal(dAtA []byte) 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: Close: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Close: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectCloseRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectId", 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.ObjectId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectCloseResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectCloseResponseError{} + } + 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectCloseResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectCloseResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectShow) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -121528,7 +79577,7 @@ func (m *RpcHistoryShow) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcHistoryShowRequest) Unmarshal(dAtA []byte) error { +func (m *RpcObjectShowRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -121559,7 +79608,7 @@ func (m *RpcHistoryShowRequest) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PageId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ContextId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -121587,11 +79636,11 @@ func (m *RpcHistoryShowRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.PageId = string(dAtA[iNdEx:postIndex]) + m.ContextId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VersionId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ObjectId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -121619,7 +79668,7 @@ func (m *RpcHistoryShowRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.VersionId = string(dAtA[iNdEx:postIndex]) + m.ObjectId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { @@ -121674,7 +79723,7 @@ func (m *RpcHistoryShowRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcHistoryShowResponse) Unmarshal(dAtA []byte) error { +func (m *RpcObjectShowResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -121733,7 +79782,7 @@ func (m *RpcHistoryShowResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Error == nil { - m.Error = &RpcHistoryShowResponseError{} + m.Error = &RpcObjectShowResponseError{} } if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -121741,7 +79790,7 @@ func (m *RpcHistoryShowResponse) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectShow", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Event", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -121768,81 +79817,13 @@ func (m *RpcHistoryShowResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.ObjectShow == nil { - m.ObjectShow = &EventObjectShow{} + if m.Event == nil { + m.Event = &ResponseEvent{} } - if err := m.ObjectShow.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Event.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Version", 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.Version == nil { - m.Version = &RpcHistoryVersionsVersion{} - } - if err := m.Version.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TraceId", 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.TraceId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipCommands(dAtA[iNdEx:]) @@ -121864,7 +79845,7 @@ func (m *RpcHistoryShowResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcHistoryShowResponseError) Unmarshal(dAtA []byte) error { +func (m *RpcObjectShowResponseError) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -121907,7 +79888,7 @@ func (m *RpcHistoryShowResponseError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Code |= RpcHistoryShowResponseErrorCode(b&0x7F) << shift + m.Code |= RpcObjectShowResponseErrorCode(b&0x7F) << shift if b < 0x80 { break } @@ -121965,408 +79946,7 @@ func (m *RpcHistoryShowResponseError) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcHistorySetVersion) Unmarshal(dAtA []byte) 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: SetVersion: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SetVersion: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcHistorySetVersionRequest) Unmarshal(dAtA []byte) 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 PageId", 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.PageId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VersionId", 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.VersionId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcHistorySetVersionResponse) Unmarshal(dAtA []byte) 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 = &RpcHistorySetVersionResponseError{} - } - 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcHistorySetVersionResponseError) Unmarshal(dAtA []byte) 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 |= RpcHistorySetVersionResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcPage) Unmarshal(dAtA []byte) 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: 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 { - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcPageCreate) Unmarshal(dAtA []byte) error { +func (m *RpcObjectCreate) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -122416,7 +79996,7 @@ func (m *RpcPageCreate) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcPageCreateRequest) Unmarshal(dAtA []byte) error { +func (m *RpcObjectCreateRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -122502,7 +80082,7 @@ func (m *RpcPageCreateRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcPageCreateResponse) Unmarshal(dAtA []byte) error { +func (m *RpcObjectCreateResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -122561,7 +80141,7 @@ func (m *RpcPageCreateResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Error == nil { - m.Error = &RpcPageCreateResponseError{} + m.Error = &RpcObjectCreateResponseError{} } if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -122656,7 +80236,7 @@ func (m *RpcPageCreateResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcPageCreateResponseError) Unmarshal(dAtA []byte) error { +func (m *RpcObjectCreateResponseError) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -122699,7 +80279,7 @@ func (m *RpcPageCreateResponseError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Code |= RpcPageCreateResponseErrorCode(b&0x7F) << shift + m.Code |= RpcObjectCreateResponseErrorCode(b&0x7F) << shift if b < 0x80 { break } @@ -122757,7 +80337,7 @@ func (m *RpcPageCreateResponseError) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcSet) Unmarshal(dAtA []byte) error { +func (m *RpcObjectCreateSet) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -122780,10 +80360,10 @@ func (m *RpcSet) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Set: wiretype end group for non-group") + return fmt.Errorf("proto: CreateSet: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Set: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CreateSet: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -122807,57 +80387,7 @@ func (m *RpcSet) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcSetCreate) Unmarshal(dAtA []byte) 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcSetCreateRequest) Unmarshal(dAtA []byte) error { +func (m *RpcObjectCreateSetRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -123007,7 +80537,7 @@ func (m *RpcSetCreateRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcSetCreateResponse) Unmarshal(dAtA []byte) error { +func (m *RpcObjectCreateSetResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -123066,7 +80596,7 @@ func (m *RpcSetCreateResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Error == nil { - m.Error = &RpcSetCreateResponseError{} + m.Error = &RpcObjectCreateSetResponseError{} } if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -123161,7 +80691,7 @@ func (m *RpcSetCreateResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcSetCreateResponseError) Unmarshal(dAtA []byte) error { +func (m *RpcObjectCreateSetResponseError) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -123204,7 +80734,14476 @@ func (m *RpcSetCreateResponseError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Code |= RpcSetCreateResponseErrorCode(b&0x7F) << shift + m.Code |= RpcObjectCreateSetResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectDuplicate) Unmarshal(dAtA []byte) 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: Duplicate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Duplicate: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectDuplicateRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectDuplicateResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectDuplicateResponseError{} + } + 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 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectDuplicateResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectDuplicateResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectOpenBreadcrumbs) Unmarshal(dAtA []byte) 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: OpenBreadcrumbs: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OpenBreadcrumbs: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectOpenBreadcrumbsRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TraceId", 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.TraceId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectOpenBreadcrumbsResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectOpenBreadcrumbsResponseError{} + } + 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 ObjectId", 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.ObjectId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectOpenBreadcrumbsResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectOpenBreadcrumbsResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectSetBreadcrumbs) Unmarshal(dAtA []byte) 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: SetBreadcrumbs: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SetBreadcrumbs: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectSetBreadcrumbsRequest) Unmarshal(dAtA []byte) 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 BreadcrumbsId", 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.BreadcrumbsId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ids", 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.Ids = append(m.Ids, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectSetBreadcrumbsResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectSetBreadcrumbsResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectSetBreadcrumbsResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectSetBreadcrumbsResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectImportMarkdown) Unmarshal(dAtA []byte) 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: ImportMarkdown: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ImportMarkdown: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectImportMarkdownRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ImportPath", 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.ImportPath = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectImportMarkdownResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectImportMarkdownResponseError{} + } + 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 RootLinkIds", 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.RootLinkIds = append(m.RootLinkIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectImportMarkdownResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectImportMarkdownResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectShareByLink) Unmarshal(dAtA []byte) 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: ShareByLink: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ShareByLink: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectShareByLinkRequest) Unmarshal(dAtA []byte) 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 ObjectId", 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.ObjectId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectShareByLinkResponse) Unmarshal(dAtA []byte) 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 Link", 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.Link = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + 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 = &RpcObjectShareByLinkResponseError{} + } + 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectShareByLinkResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectShareByLinkResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectAddWithObjectId) Unmarshal(dAtA []byte) 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: AddWithObjectId: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AddWithObjectId: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectAddWithObjectIdRequest) Unmarshal(dAtA []byte) 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 ObjectId", 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.ObjectId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Payload", 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.Payload = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectAddWithObjectIdResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectAddWithObjectIdResponseError{} + } + 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectAddWithObjectIdResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectAddWithObjectIdResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectSearch) Unmarshal(dAtA []byte) 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: Search: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Search: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectSearchRequest) Unmarshal(dAtA []byte) 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 Filters", 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 + } + m.Filters = append(m.Filters, &model.BlockContentDataviewFilter{}) + if err := m.Filters[len(m.Filters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sorts", 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 + } + m.Sorts = append(m.Sorts, &model.BlockContentDataviewSort{}) + if err := m.Sorts[len(m.Sorts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FullText", 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.FullText = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Offset", wireType) + } + m.Offset = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Offset |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) + } + m.Limit = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Limit |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectTypeFilter", 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.ObjectTypeFilter = append(m.ObjectTypeFilter, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Keys", 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.Keys = append(m.Keys, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectSearchResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectSearchResponseError{} + } + 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 Records", 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 + } + m.Records = append(m.Records, &types.Struct{}) + if err := m.Records[len(m.Records)-1].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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectSearchResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectSearchResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectGraph) Unmarshal(dAtA []byte) 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: Graph: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Graph: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectGraphRequest) Unmarshal(dAtA []byte) 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 Filters", 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 + } + m.Filters = append(m.Filters, &model.BlockContentDataviewFilter{}) + if err := m.Filters[len(m.Filters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) + } + m.Limit = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Limit |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectTypeFilter", 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.ObjectTypeFilter = append(m.ObjectTypeFilter, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Keys", 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.Keys = append(m.Keys, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectGraphEdge) Unmarshal(dAtA []byte) 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: Edge: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Edge: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Source", 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.Source = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Target", 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.Target = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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 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 4: + 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 |= RpcObjectGraphEdgeType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + 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 + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IconImage", 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.IconImage = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IconEmoji", 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.IconEmoji = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Hidden", 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.Hidden = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectGraphResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectGraphResponseError{} + } + 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 Nodes", 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 + } + m.Nodes = append(m.Nodes, &types.Struct{}) + if err := m.Nodes[len(m.Nodes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Edges", 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 + } + m.Edges = append(m.Edges, &RpcObjectGraphEdge{}) + if err := m.Edges[len(m.Edges)-1].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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectGraphResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectGraphResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectSearchSubscribe) Unmarshal(dAtA []byte) 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: SearchSubscribe: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SearchSubscribe: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectSearchSubscribeRequest) Unmarshal(dAtA []byte) 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 SubId", 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.SubId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Filters", 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 + } + m.Filters = append(m.Filters, &model.BlockContentDataviewFilter{}) + if err := m.Filters[len(m.Filters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sorts", 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 + } + m.Sorts = append(m.Sorts, &model.BlockContentDataviewSort{}) + if err := m.Sorts[len(m.Sorts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) + } + m.Limit = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Limit |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Offset", wireType) + } + m.Offset = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Offset |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Keys", 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.Keys = append(m.Keys, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AfterId", 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.AfterId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BeforeId", 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.BeforeId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Source", 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.Source = append(m.Source, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IgnoreWorkspace", 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.IgnoreWorkspace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NoDepSubscription", 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.NoDepSubscription = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectSearchSubscribeResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectSearchSubscribeResponseError{} + } + 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 Records", 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 + } + m.Records = append(m.Records, &types.Struct{}) + if err := m.Records[len(m.Records)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Dependencies", 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 + } + m.Dependencies = append(m.Dependencies, &types.Struct{}) + if err := m.Dependencies[len(m.Dependencies)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SubId", 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.SubId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Counters", 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.Counters == nil { + m.Counters = &EventObjectSubscriptionCounters{} + } + if err := m.Counters.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectSearchSubscribeResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectSearchSubscribeResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectSubscribeIds) Unmarshal(dAtA []byte) 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: SubscribeIds: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SubscribeIds: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectSubscribeIdsRequest) Unmarshal(dAtA []byte) 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 SubId", 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.SubId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Ids", 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.Ids = append(m.Ids, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Keys", 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.Keys = append(m.Keys, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IgnoreWorkspace", 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.IgnoreWorkspace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectSubscribeIdsResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectSubscribeIdsResponseError{} + } + 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 Records", 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 + } + m.Records = append(m.Records, &types.Struct{}) + if err := m.Records[len(m.Records)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Dependencies", 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 + } + m.Dependencies = append(m.Dependencies, &types.Struct{}) + if err := m.Dependencies[len(m.Dependencies)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SubId", 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.SubId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectSubscribeIdsResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectSubscribeIdsResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectSearchUnsubscribe) Unmarshal(dAtA []byte) 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: SearchUnsubscribe: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SearchUnsubscribe: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectSearchUnsubscribeRequest) Unmarshal(dAtA []byte) 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 SubIds", 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.SubIds = append(m.SubIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectSearchUnsubscribeResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectSearchUnsubscribeResponseError{} + } + 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectSearchUnsubscribeResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectSearchUnsubscribeResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectSetLayout) Unmarshal(dAtA []byte) 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: SetLayout: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SetLayout: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectSetLayoutRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Layout", wireType) + } + m.Layout = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Layout |= model.ObjectTypeLayout(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectSetLayoutResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectSetLayoutResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectSetLayoutResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectSetLayoutResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectSetIsFavorite) Unmarshal(dAtA []byte) 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: SetIsFavorite: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SetIsFavorite: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectSetIsFavoriteRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsFavorite", 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.IsFavorite = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectSetIsFavoriteResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectSetIsFavoriteResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectSetIsFavoriteResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectSetIsFavoriteResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectSetIsArchived) Unmarshal(dAtA []byte) 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: SetIsArchived: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SetIsArchived: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectSetIsArchivedRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsArchived", 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.IsArchived = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectSetIsArchivedResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectSetIsArchivedResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectSetIsArchivedResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectSetIsArchivedResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectSetObjectType) Unmarshal(dAtA []byte) 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: SetObjectType: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SetObjectType: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectSetObjectTypeRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectTypeUrl", 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.ObjectTypeUrl = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectSetObjectTypeResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectSetObjectTypeResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectSetObjectTypeResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectSetObjectTypeResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectSetDetails) Unmarshal(dAtA []byte) 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: SetDetails: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SetDetails: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectSetDetailsDetail) Unmarshal(dAtA []byte) 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: Detail: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Detail: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", 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.Key = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", 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.Value == nil { + m.Value = &types.Value{} + } + if err := m.Value.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectSetDetailsRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Details", 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 + } + m.Details = append(m.Details, &RpcObjectSetDetailsDetail{}) + if err := m.Details[len(m.Details)-1].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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectSetDetailsResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectSetDetailsResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectSetDetailsResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectSetDetailsResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectToSet) Unmarshal(dAtA []byte) 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: ToSet: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ToSet: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectToSetRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Source", 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.Source = append(m.Source, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectToSetResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectToSetResponseError{} + } + 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 SetId", 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.SetId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectToSetResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectToSetResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectUndoRedoCounter) Unmarshal(dAtA []byte) 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: UndoRedoCounter: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UndoRedoCounter: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Undo", wireType) + } + m.Undo = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Undo |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Redo", wireType) + } + m.Redo = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Redo |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectUndo) Unmarshal(dAtA []byte) 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: Undo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Undo: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectUndoRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectUndoResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectUndoResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Counters", 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.Counters == nil { + m.Counters = &RpcObjectUndoRedoCounter{} + } + if err := m.Counters.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectUndoResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectUndoResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectRedo) Unmarshal(dAtA []byte) 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: Redo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Redo: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectRedoRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectRedoResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectRedoResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Counters", 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.Counters == nil { + m.Counters = &RpcObjectUndoRedoCounter{} + } + if err := m.Counters.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectRedoResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectRedoResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectListDuplicate) Unmarshal(dAtA []byte) 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: ListDuplicate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListDuplicate: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectListDuplicateRequest) Unmarshal(dAtA []byte) 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 ObjectIds", 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.ObjectIds = append(m.ObjectIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectListDuplicateResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectListDuplicateResponseError{} + } + 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 Ids", 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.Ids = append(m.Ids, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectListDuplicateResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectListDuplicateResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectListDelete) Unmarshal(dAtA []byte) 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: ListDelete: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListDelete: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectListDeleteRequest) Unmarshal(dAtA []byte) 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 ObjectIds", 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.ObjectIds = append(m.ObjectIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectListDeleteResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectListDeleteResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectListDeleteResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectListDeleteResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectListSetIsArchived) Unmarshal(dAtA []byte) 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: ListSetIsArchived: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListSetIsArchived: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectListSetIsArchivedRequest) Unmarshal(dAtA []byte) 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 ObjectIds", 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.ObjectIds = append(m.ObjectIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsArchived", 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.IsArchived = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectListSetIsArchivedResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectListSetIsArchivedResponseError{} + } + 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectListSetIsArchivedResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectListSetIsArchivedResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectListSetIsFavorite) Unmarshal(dAtA []byte) 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: ListSetIsFavorite: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListSetIsFavorite: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectListSetIsFavoriteRequest) Unmarshal(dAtA []byte) 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 ObjectIds", 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.ObjectIds = append(m.ObjectIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsFavorite", 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.IsFavorite = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectListSetIsFavoriteResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectListSetIsFavoriteResponseError{} + } + 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectListSetIsFavoriteResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectListSetIsFavoriteResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectApplyTemplate) Unmarshal(dAtA []byte) 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: ApplyTemplate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ApplyTemplate: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectApplyTemplateRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TemplateId", 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.TemplateId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectApplyTemplateResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectApplyTemplateResponseError{} + } + 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectApplyTemplateResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectApplyTemplateResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectListExport) Unmarshal(dAtA []byte) 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: ListExport: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListExport: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectListExportRequest) Unmarshal(dAtA []byte) 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 Path", 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.Path = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectIds", 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.ObjectIds = append(m.ObjectIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Format", wireType) + } + m.Format = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Format |= RpcObjectListExportFormat(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Zip", 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.Zip = bool(v != 0) + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IncludeNested", 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.IncludeNested = bool(v != 0) + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IncludeFiles", 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.IncludeFiles = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectListExportResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectListExportResponseError{} + } + 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 Path", 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.Path = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Succeed", wireType) + } + m.Succeed = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Succeed |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectListExportResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectListExportResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectRelation) Unmarshal(dAtA []byte) 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: ObjectRelation: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ObjectRelation: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectRelationAdd) Unmarshal(dAtA []byte) 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: Add: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Add: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectRelationAddRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Relation", 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.Relation == nil { + m.Relation = &model.Relation{} + } + if err := m.Relation.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectRelationAddResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectRelationAddResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RelationKey", 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.RelationKey = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Relation", 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.Relation == nil { + m.Relation = &model.Relation{} + } + if err := m.Relation.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectRelationAddResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectRelationAddResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectRelationUpdate) Unmarshal(dAtA []byte) 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectRelationUpdateRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RelationKey", 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.RelationKey = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Relation", 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.Relation == nil { + m.Relation = &model.Relation{} + } + if err := m.Relation.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectRelationUpdateResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectRelationUpdateResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectRelationUpdateResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectRelationUpdateResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectRelationDelete) Unmarshal(dAtA []byte) 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: Delete: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Delete: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectRelationDeleteRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RelationKey", 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.RelationKey = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectRelationDeleteResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectRelationDeleteResponseError{} + } + if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectRelationDeleteResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectRelationDeleteResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectRelationListAvailable) Unmarshal(dAtA []byte) 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: ListAvailable: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListAvailable: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectRelationListAvailableRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectRelationListAvailableResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectRelationListAvailableResponseError{} + } + 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 Relations", 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 + } + m.Relations = append(m.Relations, &model.Relation{}) + if err := m.Relations[len(m.Relations)-1].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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectRelationListAvailableResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectRelationListAvailableResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectRelationAddFeatured) Unmarshal(dAtA []byte) 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: AddFeatured: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AddFeatured: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectRelationAddFeaturedRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Relations", 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.Relations = append(m.Relations, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectRelationAddFeaturedResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectRelationAddFeaturedResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectRelationAddFeaturedResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectRelationAddFeaturedResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectRelationRemoveFeatured) Unmarshal(dAtA []byte) 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: RemoveFeatured: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RemoveFeatured: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectRelationRemoveFeaturedRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Relations", 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.Relations = append(m.Relations, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectRelationRemoveFeaturedResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectRelationRemoveFeaturedResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectRelationRemoveFeaturedResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectRelationRemoveFeaturedResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectRelationOption) Unmarshal(dAtA []byte) 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: ObjectRelationOption: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ObjectRelationOption: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectRelationOptionAdd) Unmarshal(dAtA []byte) 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: Add: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Add: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectRelationOptionAddRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RelationKey", 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.RelationKey = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Option", 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.Option == nil { + m.Option = &model.RelationOption{} + } + if err := m.Option.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectRelationOptionAddResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectRelationOptionAddResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Option", 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.Option == nil { + m.Option = &model.RelationOption{} + } + if err := m.Option.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectRelationOptionAddResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectRelationOptionAddResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectRelationOptionUpdate) Unmarshal(dAtA []byte) 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectRelationOptionUpdateRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RelationKey", 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.RelationKey = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Option", 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.Option == nil { + m.Option = &model.RelationOption{} + } + if err := m.Option.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectRelationOptionUpdateResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectRelationOptionUpdateResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectRelationOptionUpdateResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectRelationOptionUpdateResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectRelationOptionDelete) Unmarshal(dAtA []byte) 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: Delete: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Delete: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectRelationOptionDeleteRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RelationKey", 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.RelationKey = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OptionId", 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.OptionId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ConfirmRemoveAllValuesInRecords", 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.ConfirmRemoveAllValuesInRecords = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectRelationOptionDeleteResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectRelationOptionDeleteResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcObjectRelationOptionDeleteResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectRelationOptionDeleteResponseErrorCode(b&0x7F) << shift if b < 0x80 { break } @@ -125508,7 +97507,7 @@ func (m *RpcObjectTypeRelationListResponseError) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcObject) Unmarshal(dAtA []byte) error { +func (m *RpcHistory) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -125531,10 +97530,10 @@ func (m *RpcObject) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Object: wiretype end group for non-group") + return fmt.Errorf("proto: History: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Object: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: History: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -125558,7 +97557,7 @@ func (m *RpcObject) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcObjectShareByLink) Unmarshal(dAtA []byte) error { +func (m *RpcHistoryVersion) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -125581,65 +97580,15 @@ func (m *RpcObjectShareByLink) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ShareByLink: wiretype end group for non-group") + return fmt.Errorf("proto: Version: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ShareByLink: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectShareByLinkRequest) Unmarshal(dAtA []byte) 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) + return fmt.Errorf("proto: Version: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -125667,198 +97616,11 @@ func (m *RpcObjectShareByLinkRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ObjectId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectShareByLinkResponse) Unmarshal(dAtA []byte) 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 Link", 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.Link = string(dAtA[iNdEx:postIndex]) + m.Id = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: 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 = &RpcObjectShareByLinkResponseError{} - } - 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectShareByLinkResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectShareByLinkResponseErrorCode(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PreviousIds", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -125886,652 +97648,11 @@ func (m *RpcObjectShareByLinkResponseError) Unmarshal(dAtA []byte) error { 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectAddWithObjectId) Unmarshal(dAtA []byte) 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: AddWithObjectId: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AddWithObjectId: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectAddWithObjectIdRequest) Unmarshal(dAtA []byte) 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 ObjectId", 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.ObjectId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Payload", 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.Payload = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectAddWithObjectIdResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectAddWithObjectIdResponseError{} - } - 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectAddWithObjectIdResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectAddWithObjectIdResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectRelationAdd) Unmarshal(dAtA []byte) 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: RelationAdd: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RelationAdd: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectRelationAddRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Relation", 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.Relation == nil { - m.Relation = &model.Relation{} - } - if err := m.Relation.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectRelationAddResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectRelationAddResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.PreviousIds = append(m.PreviousIds, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RelationKey", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AuthorId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -126559,116 +97680,11 @@ func (m *RpcObjectRelationAddResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.RelationKey = string(dAtA[iNdEx:postIndex]) + m.AuthorId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 4: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Relation", 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.Relation == nil { - m.Relation = &model.Relation{} - } - if err := m.Relation.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectRelationAddResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectRelationAddResponseErrorCode(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field AuthorName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -126696,8 +97712,46 @@ func (m *RpcObjectRelationAddResponseError) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Description = string(dAtA[iNdEx:postIndex]) + m.AuthorName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType) + } + m.Time = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Time |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType) + } + m.GroupId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroupId |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipCommands(dAtA[iNdEx:]) @@ -126719,7 +97773,7 @@ func (m *RpcObjectRelationAddResponseError) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcObjectRelationUpdate) Unmarshal(dAtA []byte) error { +func (m *RpcHistoryGetVersions) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -126742,10 +97796,10 @@ func (m *RpcObjectRelationUpdate) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RelationUpdate: wiretype end group for non-group") + return fmt.Errorf("proto: GetVersions: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RelationUpdate: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetVersions: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -126769,7 +97823,7 @@ func (m *RpcObjectRelationUpdate) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcObjectRelationUpdateRequest) Unmarshal(dAtA []byte) error { +func (m *RpcHistoryGetVersionsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -126800,7 +97854,7 @@ func (m *RpcObjectRelationUpdateRequest) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContextId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PageId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -126828,11 +97882,11 @@ func (m *RpcObjectRelationUpdateRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ContextId = string(dAtA[iNdEx:postIndex]) + m.PageId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RelationKey", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field LastVersionId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -126860,13 +97914,13 @@ func (m *RpcObjectRelationUpdateRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.RelationKey = string(dAtA[iNdEx:postIndex]) + m.LastVersionId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Relation", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) } - var msglen int + m.Limit = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCommands @@ -126876,28 +97930,11 @@ func (m *RpcObjectRelationUpdateRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.Limit |= int32(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.Relation == nil { - m.Relation = &model.Relation{} - } - if err := m.Relation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipCommands(dAtA[iNdEx:]) @@ -126919,7 +97956,7 @@ func (m *RpcObjectRelationUpdateRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcObjectRelationUpdateResponse) Unmarshal(dAtA []byte) error { +func (m *RpcHistoryGetVersionsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -126978,7 +98015,7 @@ func (m *RpcObjectRelationUpdateResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Error == nil { - m.Error = &RpcObjectRelationUpdateResponseError{} + m.Error = &RpcHistoryGetVersionsResponseError{} } if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -126986,7 +98023,7 @@ func (m *RpcObjectRelationUpdateResponse) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Event", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Versions", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -127013,10 +98050,8 @@ func (m *RpcObjectRelationUpdateResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Versions = append(m.Versions, &RpcHistoryVersion{}) + if err := m.Versions[len(m.Versions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -127041,7 +98076,7 @@ func (m *RpcObjectRelationUpdateResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcObjectRelationUpdateResponseError) Unmarshal(dAtA []byte) error { +func (m *RpcHistoryGetVersionsResponseError) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -127084,7 +98119,7 @@ func (m *RpcObjectRelationUpdateResponseError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Code |= RpcObjectRelationUpdateResponseErrorCode(b&0x7F) << shift + m.Code |= RpcHistoryGetVersionsResponseErrorCode(b&0x7F) << shift if b < 0x80 { break } @@ -127142,7 +98177,7 @@ func (m *RpcObjectRelationUpdateResponseError) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcObjectRelationDelete) Unmarshal(dAtA []byte) error { +func (m *RpcHistoryShowVersion) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -127165,10 +98200,10 @@ func (m *RpcObjectRelationDelete) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RelationDelete: wiretype end group for non-group") + return fmt.Errorf("proto: ShowVersion: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RelationDelete: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ShowVersion: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -127192,7 +98227,7 @@ func (m *RpcObjectRelationDelete) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcObjectRelationDeleteRequest) Unmarshal(dAtA []byte) error { +func (m *RpcHistoryShowVersionRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -127223,7 +98258,7 @@ func (m *RpcObjectRelationDeleteRequest) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContextId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PageId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -127251,11 +98286,11 @@ func (m *RpcObjectRelationDeleteRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ContextId = string(dAtA[iNdEx:postIndex]) + m.PageId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RelationKey", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field VersionId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -127283,7 +98318,39 @@ func (m *RpcObjectRelationDeleteRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.RelationKey = string(dAtA[iNdEx:postIndex]) + m.VersionId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TraceId", 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.TraceId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -127306,7 +98373,7 @@ func (m *RpcObjectRelationDeleteRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcObjectRelationDeleteResponse) Unmarshal(dAtA []byte) error { +func (m *RpcHistoryShowVersionResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -127365,430 +98432,7 @@ func (m *RpcObjectRelationDeleteResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Error == nil { - m.Error = &RpcObjectRelationDeleteResponseError{} - } - if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectRelationDeleteResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectRelationDeleteResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectRelationOptionAdd) Unmarshal(dAtA []byte) 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: RelationOptionAdd: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RelationOptionAdd: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectRelationOptionAddRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RelationKey", 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.RelationKey = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Option", 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.Option == nil { - m.Option = &model.RelationOption{} - } - if err := m.Option.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectRelationOptionAddResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectRelationOptionAddResponseError{} + m.Error = &RpcHistoryShowVersionResponseError{} } if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -127796,7 +98440,7 @@ func (m *RpcObjectRelationOptionAddResponse) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Event", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ObjectShow", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -127823,16 +98467,16 @@ func (m *RpcObjectRelationOptionAddResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Event == nil { - m.Event = &ResponseEvent{} + if m.ObjectShow == nil { + m.ObjectShow = &EventObjectShow{} } - if err := m.Event.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.ObjectShow.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Option", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -127859,736 +98503,682 @@ func (m *RpcObjectRelationOptionAddResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Option == nil { - m.Option = &model.RelationOption{} + if m.Version == nil { + m.Version = &RpcHistoryVersion{} } - if err := m.Option.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Version.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectRelationOptionAddResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectRelationOptionAddResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectRelationOptionUpdate) Unmarshal(dAtA []byte) 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: RelationOptionUpdate: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RelationOptionUpdate: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectRelationOptionUpdateRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RelationKey", 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.RelationKey = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Option", 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.Option == nil { - m.Option = &model.RelationOption{} - } - if err := m.Option.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectRelationOptionUpdateResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectRelationOptionUpdateResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectRelationOptionUpdateResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectRelationOptionUpdateResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectRelationOptionDelete) Unmarshal(dAtA []byte) 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: RelationOptionDelete: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RelationOptionDelete: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectRelationOptionDeleteRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RelationKey", 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.RelationKey = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OptionId", 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.OptionId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TraceId", 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.TraceId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcHistoryShowVersionResponseError) Unmarshal(dAtA []byte) 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 ConfirmRemoveAllValuesInRecords", wireType) + 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 |= RpcHistoryShowVersionResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcHistorySetVersion) Unmarshal(dAtA []byte) 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: SetVersion: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SetVersion: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcHistorySetVersionRequest) Unmarshal(dAtA []byte) 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 PageId", 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.PageId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VersionId", 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.VersionId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcHistorySetVersionResponse) Unmarshal(dAtA []byte) 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 = &RpcHistorySetVersionResponseError{} + } + 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcHistorySetVersionResponseError) Unmarshal(dAtA []byte) 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 |= RpcHistorySetVersionResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcFile) Unmarshal(dAtA []byte) 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcFileOffload) Unmarshal(dAtA []byte) 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: Offload: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Offload: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcFileOffloadRequest) Unmarshal(dAtA []byte) 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 IncludeNotPinned", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -128605,7 +99195,7 @@ func (m *RpcObjectRelationOptionDeleteRequest) Unmarshal(dAtA []byte) error { break } } - m.ConfirmRemoveAllValuesInRecords = bool(v != 0) + m.IncludeNotPinned = bool(v != 0) default: iNdEx = preIndex skippy, err := skipCommands(dAtA[iNdEx:]) @@ -128627,7 +99217,7 @@ func (m *RpcObjectRelationOptionDeleteRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcObjectRelationOptionDeleteResponse) Unmarshal(dAtA []byte) error { +func (m *RpcFileOffloadResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -128686,7 +99276,1629 @@ func (m *RpcObjectRelationOptionDeleteResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Error == nil { - m.Error = &RpcObjectRelationOptionDeleteResponseError{} + m.Error = &RpcFileOffloadResponseError{} + } + if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BytesOffloaded", wireType) + } + m.BytesOffloaded = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BytesOffloaded |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcFileOffloadResponseError) Unmarshal(dAtA []byte) 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 |= RpcFileOffloadResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcFileListOffload) Unmarshal(dAtA []byte) 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: ListOffload: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListOffload: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcFileListOffloadRequest) Unmarshal(dAtA []byte) 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 OnlyIds", 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.OnlyIds = append(m.OnlyIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IncludeNotPinned", 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.IncludeNotPinned = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcFileListOffloadResponse) Unmarshal(dAtA []byte) 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 = &RpcFileListOffloadResponseError{} + } + if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FilesOffloaded", wireType) + } + m.FilesOffloaded = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.FilesOffloaded |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BytesOffloaded", wireType) + } + m.BytesOffloaded = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BytesOffloaded |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcFileListOffloadResponseError) Unmarshal(dAtA []byte) 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 |= RpcFileListOffloadResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcFileUpload) Unmarshal(dAtA []byte) 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: Upload: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Upload: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcFileUploadRequest) Unmarshal(dAtA []byte) 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 Url", 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.Url = string(dAtA[iNdEx:postIndex]) + 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 + case 3: + 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.BlockContentFileType(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DisableEncryption", 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.DisableEncryption = bool(v != 0) + case 5: + 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 ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Style |= model.BlockContentFileStyle(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcFileUploadResponse) Unmarshal(dAtA []byte) 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 = &RpcFileUploadResponseError{} + } + 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 Hash", 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.Hash = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcFileUploadResponseError) Unmarshal(dAtA []byte) 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 |= RpcFileUploadResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcFileDownload) Unmarshal(dAtA []byte) 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: Download: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Download: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcFileDownloadRequest) Unmarshal(dAtA []byte) 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 Hash", 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.Hash = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Path", 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.Path = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcFileDownloadResponse) Unmarshal(dAtA []byte) 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 = &RpcFileDownloadResponseError{} + } + 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcFileDownloadResponseError) Unmarshal(dAtA []byte) 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 |= RpcFileDownloadResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcFileDrop) Unmarshal(dAtA []byte) 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: Drop: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Drop: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcFileDropRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DropTargetId", 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.DropTargetId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Position", wireType) + } + m.Position = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Position |= model.BlockPosition(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LocalFilePaths", 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.LocalFilePaths = append(m.LocalFilePaths, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcFileDropResponse) Unmarshal(dAtA []byte) 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 = &RpcFileDropResponseError{} } if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -128749,7 +100961,7 @@ func (m *RpcObjectRelationOptionDeleteResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcObjectRelationOptionDeleteResponseError) Unmarshal(dAtA []byte) error { +func (m *RpcFileDropResponseError) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -128792,7 +101004,7 @@ func (m *RpcObjectRelationOptionDeleteResponseError) Unmarshal(dAtA []byte) erro } b := dAtA[iNdEx] iNdEx++ - m.Code |= RpcObjectRelationOptionDeleteResponseErrorCode(b&0x7F) << shift + m.Code |= RpcFileDropResponseErrorCode(b&0x7F) << shift if b < 0x80 { break } @@ -128850,7 +101062,7 @@ func (m *RpcObjectRelationOptionDeleteResponseError) Unmarshal(dAtA []byte) erro } return nil } -func (m *RpcObjectRelationListAvailable) Unmarshal(dAtA []byte) error { +func (m *RpcNavigation) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -128873,10 +101085,10 @@ func (m *RpcObjectRelationListAvailable) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RelationListAvailable: wiretype end group for non-group") + return fmt.Errorf("proto: Navigation: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RelationListAvailable: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Navigation: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -128900,7 +101112,57 @@ func (m *RpcObjectRelationListAvailable) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcObjectRelationListAvailableRequest) Unmarshal(dAtA []byte) error { +func (m *RpcNavigationListObjects) Unmarshal(dAtA []byte) 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: ListObjects: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListObjects: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcNavigationListObjectsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -128929,213 +101191,11 @@ func (m *RpcObjectRelationListAvailableRequest) Unmarshal(dAtA []byte) error { 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectRelationListAvailableResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectRelationListAvailableResponseError{} - } - 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 Relations", 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 - } - m.Relations = append(m.Relations, &model.Relation{}) - if err := m.Relations[len(m.Relations)-1].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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectRelationListAvailableResponseError) Unmarshal(dAtA []byte) 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) + return fmt.Errorf("proto: wrong wireType = %d for field Context", wireType) } - m.Code = 0 + m.Context = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCommands @@ -129145,212 +101205,12 @@ func (m *RpcObjectRelationListAvailableResponseError) Unmarshal(dAtA []byte) err } b := dAtA[iNdEx] iNdEx++ - m.Code |= RpcObjectRelationListAvailableResponseErrorCode(b&0x7F) << shift + m.Context |= RpcNavigationContext(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectSearch) Unmarshal(dAtA []byte) 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: Search: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Search: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectSearchRequest) Unmarshal(dAtA []byte) 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 Filters", 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 - } - m.Filters = append(m.Filters, &model.BlockContentDataviewFilter{}) - if err := m.Filters[len(m.Filters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Sorts", 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 - } - m.Sorts = append(m.Sorts, &model.BlockContentDataviewSort{}) - if err := m.Sorts[len(m.Sorts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field FullText", wireType) } @@ -129382,6 +101242,25 @@ func (m *RpcObjectSearchRequest) Unmarshal(dAtA []byte) error { } m.FullText = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) + } + m.Limit = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Limit |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } case 4: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Offset", wireType) @@ -129401,89 +101280,6 @@ func (m *RpcObjectSearchRequest) Unmarshal(dAtA []byte) error { break } } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) - } - m.Limit = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Limit |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectTypeFilter", 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.ObjectTypeFilter = append(m.ObjectTypeFilter, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keys", 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.Keys = append(m.Keys, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipCommands(dAtA[iNdEx:]) @@ -129505,7 +101301,7 @@ func (m *RpcObjectSearchRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcObjectSearchResponse) Unmarshal(dAtA []byte) error { +func (m *RpcNavigationListObjectsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -129564,7 +101360,7 @@ func (m *RpcObjectSearchResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Error == nil { - m.Error = &RpcObjectSearchResponseError{} + m.Error = &RpcNavigationListObjectsResponseError{} } if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -129572,7 +101368,7 @@ func (m *RpcObjectSearchResponse) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Records", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Objects", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -129599,8 +101395,8 @@ func (m *RpcObjectSearchResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Records = append(m.Records, &types.Struct{}) - if err := m.Records[len(m.Records)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Objects = append(m.Objects, &model.ObjectInfo{}) + if err := m.Objects[len(m.Objects)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -129625,7 +101421,7 @@ func (m *RpcObjectSearchResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcObjectSearchResponseError) Unmarshal(dAtA []byte) error { +func (m *RpcNavigationListObjectsResponseError) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -129668,7 +101464,7 @@ func (m *RpcObjectSearchResponseError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Code |= RpcObjectSearchResponseErrorCode(b&0x7F) << shift + m.Code |= RpcNavigationListObjectsResponseErrorCode(b&0x7F) << shift if b < 0x80 { break } @@ -129726,7 +101522,7 @@ func (m *RpcObjectSearchResponseError) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcObjectGraph) Unmarshal(dAtA []byte) error { +func (m *RpcNavigationGetObjectInfoWithLinks) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -129749,10 +101545,10 @@ func (m *RpcObjectGraph) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Graph: wiretype end group for non-group") + return fmt.Errorf("proto: GetObjectInfoWithLinks: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: Graph: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: GetObjectInfoWithLinks: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -129776,7 +101572,7 @@ func (m *RpcObjectGraph) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcObjectGraphRequest) Unmarshal(dAtA []byte) error { +func (m *RpcNavigationGetObjectInfoWithLinksRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -129807,9 +101603,9 @@ func (m *RpcObjectGraphRequest) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Filters", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ObjectId", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCommands @@ -129819,31 +101615,29 @@ func (m *RpcObjectGraphRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthCommands } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthCommands } if postIndex > l { return io.ErrUnexpectedEOF } - m.Filters = append(m.Filters, &model.BlockContentDataviewFilter{}) - if err := m.Filters[len(m.Filters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.ObjectId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Context", wireType) } - m.Limit = 0 + m.Context = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowCommands @@ -129853,75 +101647,11 @@ func (m *RpcObjectGraphRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Limit |= int32(b&0x7F) << shift + m.Context |= RpcNavigationContext(b&0x7F) << shift if b < 0x80 { break } } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ObjectTypeFilter", 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.ObjectTypeFilter = append(m.ObjectTypeFilter, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keys", 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.Keys = append(m.Keys, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipCommands(dAtA[iNdEx:]) @@ -129943,288 +101673,7 @@ func (m *RpcObjectGraphRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcObjectGraphEdge) Unmarshal(dAtA []byte) 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: Edge: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Edge: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Source", 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.Source = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Target", 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.Target = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - 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 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 4: - 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 |= RpcObjectGraphEdgeType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - 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 - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IconImage", 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.IconImage = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IconEmoji", 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.IconEmoji = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Hidden", 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.Hidden = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectGraphResponse) Unmarshal(dAtA []byte) error { +func (m *RpcNavigationGetObjectInfoWithLinksResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -130283,7 +101732,7 @@ func (m *RpcObjectGraphResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Error == nil { - m.Error = &RpcObjectGraphResponseError{} + m.Error = &RpcNavigationGetObjectInfoWithLinksResponseError{} } if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -130291,7 +101740,7 @@ func (m *RpcObjectGraphResponse) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Nodes", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Object", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -130318,42 +101767,10 @@ func (m *RpcObjectGraphResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Nodes = append(m.Nodes, &types.Struct{}) - if err := m.Nodes[len(m.Nodes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + if m.Object == nil { + m.Object = &model.ObjectInfoWithLinks{} } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Edges", 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 - } - m.Edges = append(m.Edges, &RpcObjectGraphEdge{}) - if err := m.Edges[len(m.Edges)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Object.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -130378,7 +101795,7 @@ func (m *RpcObjectGraphResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcObjectGraphResponseError) Unmarshal(dAtA []byte) error { +func (m *RpcNavigationGetObjectInfoWithLinksResponseError) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -130421,7 +101838,7 @@ func (m *RpcObjectGraphResponseError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Code |= RpcObjectGraphResponseErrorCode(b&0x7F) << shift + m.Code |= RpcNavigationGetObjectInfoWithLinksResponseErrorCode(b&0x7F) << shift if b < 0x80 { break } @@ -130479,7 +101896,7 @@ func (m *RpcObjectGraphResponseError) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcObjectSearchSubscribe) Unmarshal(dAtA []byte) error { +func (m *RpcTemplate) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -130502,10 +101919,10 @@ func (m *RpcObjectSearchSubscribe) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: SearchSubscribe: wiretype end group for non-group") + return fmt.Errorf("proto: Template: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: SearchSubscribe: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Template: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -130529,7 +101946,7 @@ func (m *RpcObjectSearchSubscribe) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcObjectSearchSubscribeRequest) Unmarshal(dAtA []byte) error { +func (m *RpcTemplateCreateFromObject) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -130552,7092 +101969,10 @@ func (m *RpcObjectSearchSubscribeRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") + return fmt.Errorf("proto: CreateFromObject: 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 SubId", 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.SubId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Filters", 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 - } - m.Filters = append(m.Filters, &model.BlockContentDataviewFilter{}) - if err := m.Filters[len(m.Filters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Sorts", 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 - } - m.Sorts = append(m.Sorts, &model.BlockContentDataviewSort{}) - if err := m.Sorts[len(m.Sorts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) - } - m.Limit = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Limit |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Offset", wireType) - } - m.Offset = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Offset |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keys", 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.Keys = append(m.Keys, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AfterId", 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.AfterId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BeforeId", 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.BeforeId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Source", 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.Source = append(m.Source, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IgnoreWorkspace", 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.IgnoreWorkspace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 13: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NoDepSubscription", 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.NoDepSubscription = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectSearchSubscribeResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectSearchSubscribeResponseError{} - } - 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 Records", 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 - } - m.Records = append(m.Records, &types.Struct{}) - if err := m.Records[len(m.Records)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Dependencies", 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 - } - m.Dependencies = append(m.Dependencies, &types.Struct{}) - if err := m.Dependencies[len(m.Dependencies)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SubId", 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.SubId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Counters", 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.Counters == nil { - m.Counters = &EventObjectSubscriptionCounters{} - } - if err := m.Counters.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectSearchSubscribeResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectSearchSubscribeResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectIdsSubscribe) Unmarshal(dAtA []byte) 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: IdsSubscribe: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IdsSubscribe: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectIdsSubscribeRequest) Unmarshal(dAtA []byte) 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 SubId", 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.SubId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Ids", 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.Ids = append(m.Ids, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Keys", 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.Keys = append(m.Keys, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field IgnoreWorkspace", 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.IgnoreWorkspace = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectIdsSubscribeResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectIdsSubscribeResponseError{} - } - 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 Records", 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 - } - m.Records = append(m.Records, &types.Struct{}) - if err := m.Records[len(m.Records)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Dependencies", 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 - } - m.Dependencies = append(m.Dependencies, &types.Struct{}) - if err := m.Dependencies[len(m.Dependencies)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SubId", 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.SubId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectIdsSubscribeResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectIdsSubscribeResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectSearchUnsubscribe) Unmarshal(dAtA []byte) 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: SearchUnsubscribe: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SearchUnsubscribe: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectSearchUnsubscribeRequest) Unmarshal(dAtA []byte) 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 SubIds", 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.SubIds = append(m.SubIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectSearchUnsubscribeResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectSearchUnsubscribeResponseError{} - } - 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectSearchUnsubscribeResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectSearchUnsubscribeResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectSetLayout) Unmarshal(dAtA []byte) 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: SetLayout: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SetLayout: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectSetLayoutRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Layout", wireType) - } - m.Layout = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Layout |= model.ObjectTypeLayout(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectSetLayoutResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectSetLayoutResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectSetLayoutResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectSetLayoutResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectSetIsFavorite) Unmarshal(dAtA []byte) 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: SetIsFavorite: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SetIsFavorite: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectSetIsFavoriteRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsFavorite", 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.IsFavorite = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectSetIsFavoriteResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectSetIsFavoriteResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectSetIsFavoriteResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectSetIsFavoriteResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectSetIsArchived) Unmarshal(dAtA []byte) 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: SetIsArchived: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SetIsArchived: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectSetIsArchivedRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsArchived", 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.IsArchived = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectSetIsArchivedResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectSetIsArchivedResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectSetIsArchivedResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectSetIsArchivedResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectFeaturedRelation) Unmarshal(dAtA []byte) 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: FeaturedRelation: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: FeaturedRelation: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectFeaturedRelationAdd) Unmarshal(dAtA []byte) 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: Add: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Add: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectFeaturedRelationAddRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Relations", 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.Relations = append(m.Relations, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectFeaturedRelationAddResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectFeaturedRelationAddResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectFeaturedRelationAddResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectFeaturedRelationAddResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectFeaturedRelationRemove) Unmarshal(dAtA []byte) 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: Remove: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Remove: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectFeaturedRelationRemoveRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Relations", 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.Relations = append(m.Relations, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectFeaturedRelationRemoveResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectFeaturedRelationRemoveResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectFeaturedRelationRemoveResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectFeaturedRelationRemoveResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectToSet) Unmarshal(dAtA []byte) 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: ToSet: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ToSet: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectToSetRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Source", 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.Source = append(m.Source, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectToSetResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectToSetResponseError{} - } - 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 SetId", 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.SetId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectToSetResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectToSetResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectList) Unmarshal(dAtA []byte) 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: ObjectList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ObjectList: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectListDuplicate) Unmarshal(dAtA []byte) 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: Duplicate: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Duplicate: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectListDuplicateRequest) Unmarshal(dAtA []byte) 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 ObjectIds", 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.ObjectIds = append(m.ObjectIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectListDuplicateResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectListDuplicateResponseError{} - } - 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 Ids", 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.Ids = append(m.Ids, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectListDuplicateResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectListDuplicateResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectListDelete) Unmarshal(dAtA []byte) 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: Delete: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Delete: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectListDeleteRequest) Unmarshal(dAtA []byte) 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 ObjectIds", 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.ObjectIds = append(m.ObjectIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectListDeleteResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectListDeleteResponseError{} - } - 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 Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectListDeleteResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectListDeleteResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectListSet) Unmarshal(dAtA []byte) 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: Set: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Set: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectListSetIsArchived) Unmarshal(dAtA []byte) 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: IsArchived: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IsArchived: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectListSetIsArchivedRequest) Unmarshal(dAtA []byte) 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 ObjectIds", 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.ObjectIds = append(m.ObjectIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsArchived", 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.IsArchived = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectListSetIsArchivedResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectListSetIsArchivedResponseError{} - } - 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectListSetIsArchivedResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectListSetIsArchivedResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectListSetIsFavorite) Unmarshal(dAtA []byte) 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: IsFavorite: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: IsFavorite: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectListSetIsFavoriteRequest) Unmarshal(dAtA []byte) 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 ObjectIds", 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.ObjectIds = append(m.ObjectIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsFavorite", 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.IsFavorite = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectListSetIsFavoriteResponse) Unmarshal(dAtA []byte) 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 = &RpcObjectListSetIsFavoriteResponseError{} - } - 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcObjectListSetIsFavoriteResponseError) Unmarshal(dAtA []byte) 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 |= RpcObjectListSetIsFavoriteResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcExport) Unmarshal(dAtA []byte) 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: Export: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Export: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcExportRequest) Unmarshal(dAtA []byte) 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 Path", 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.Path = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DocIds", 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.DocIds = append(m.DocIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Format", wireType) - } - m.Format = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Format |= RpcExportFormat(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Zip", 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.Zip = bool(v != 0) - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IncludeNested", 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.IncludeNested = bool(v != 0) - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IncludeFiles", 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.IncludeFiles = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcExportResponse) Unmarshal(dAtA []byte) 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 = &RpcExportResponseError{} - } - 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 Path", 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.Path = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Succeed", wireType) - } - m.Succeed = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowCommands - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Succeed |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcExportResponseError) Unmarshal(dAtA []byte) 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 |= RpcExportResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcExportWorkspace) Unmarshal(dAtA []byte) 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: ExportWorkspace: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExportWorkspace: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcExportWorkspaceRequest) Unmarshal(dAtA []byte) 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 Path", 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.Path = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkspaceId", 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.WorkspaceId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcExportWorkspaceResponse) Unmarshal(dAtA []byte) 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 = &RpcExportWorkspaceResponseError{} - } - 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 Path", 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.Path = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcExportWorkspaceResponseError) Unmarshal(dAtA []byte) 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 |= RpcExportWorkspaceResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcExportTemplates) Unmarshal(dAtA []byte) 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: ExportTemplates: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExportTemplates: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcExportTemplatesRequest) Unmarshal(dAtA []byte) 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 Path", 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.Path = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcExportTemplatesResponse) Unmarshal(dAtA []byte) 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 = &RpcExportTemplatesResponseError{} - } - 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 Path", 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.Path = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcExportTemplatesResponseError) Unmarshal(dAtA []byte) 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 |= RpcExportTemplatesResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcExportLocalstore) Unmarshal(dAtA []byte) 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: ExportLocalstore: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExportLocalstore: 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcExportLocalstoreRequest) Unmarshal(dAtA []byte) 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 Path", 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.Path = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DocIds", 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.DocIds = append(m.DocIds, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipCommands(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcExportLocalstoreResponse) Unmarshal(dAtA []byte) 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 = &RpcExportLocalstoreResponseError{} - } - 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 Path", 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.Path = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Event", 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.Event == nil { - m.Event = &ResponseEvent{} - } - if err := m.Event.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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcExportLocalstoreResponseError) Unmarshal(dAtA []byte) 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 |= RpcExportLocalstoreResponseErrorCode(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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommands - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RpcMakeTemplate) Unmarshal(dAtA []byte) 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: MakeTemplate: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MakeTemplate: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CreateFromObject: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -137661,7 +101996,7 @@ func (m *RpcMakeTemplate) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcMakeTemplateRequest) Unmarshal(dAtA []byte) error { +func (m *RpcTemplateCreateFromObjectRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -137743,7 +102078,7 @@ func (m *RpcMakeTemplateRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcMakeTemplateResponse) Unmarshal(dAtA []byte) error { +func (m *RpcTemplateCreateFromObjectResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -137802,7 +102137,7 @@ func (m *RpcMakeTemplateResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Error == nil { - m.Error = &RpcMakeTemplateResponseError{} + m.Error = &RpcTemplateCreateFromObjectResponseError{} } if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -137861,7 +102196,7 @@ func (m *RpcMakeTemplateResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcMakeTemplateResponseError) Unmarshal(dAtA []byte) error { +func (m *RpcTemplateCreateFromObjectResponseError) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -137904,7 +102239,7 @@ func (m *RpcMakeTemplateResponseError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Code |= RpcMakeTemplateResponseErrorCode(b&0x7F) << shift + m.Code |= RpcTemplateCreateFromObjectResponseErrorCode(b&0x7F) << shift if b < 0x80 { break } @@ -137962,7 +102297,7 @@ func (m *RpcMakeTemplateResponseError) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcMakeTemplateByObjectType) Unmarshal(dAtA []byte) error { +func (m *RpcTemplateCreateFromObjectType) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -137985,10 +102320,10 @@ func (m *RpcMakeTemplateByObjectType) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MakeTemplateByObjectType: wiretype end group for non-group") + return fmt.Errorf("proto: CreateFromObjectType: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MakeTemplateByObjectType: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: CreateFromObjectType: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -138012,7 +102347,7 @@ func (m *RpcMakeTemplateByObjectType) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcMakeTemplateByObjectTypeRequest) Unmarshal(dAtA []byte) error { +func (m *RpcTemplateCreateFromObjectTypeRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -138094,7 +102429,7 @@ func (m *RpcMakeTemplateByObjectTypeRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcMakeTemplateByObjectTypeResponse) Unmarshal(dAtA []byte) error { +func (m *RpcTemplateCreateFromObjectTypeResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -138153,7 +102488,7 @@ func (m *RpcMakeTemplateByObjectTypeResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Error == nil { - m.Error = &RpcMakeTemplateByObjectTypeResponseError{} + m.Error = &RpcTemplateCreateFromObjectTypeResponseError{} } if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -138212,7 +102547,7 @@ func (m *RpcMakeTemplateByObjectTypeResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcMakeTemplateByObjectTypeResponseError) Unmarshal(dAtA []byte) error { +func (m *RpcTemplateCreateFromObjectTypeResponseError) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -138255,7 +102590,7 @@ func (m *RpcMakeTemplateByObjectTypeResponseError) Unmarshal(dAtA []byte) error } b := dAtA[iNdEx] iNdEx++ - m.Code |= RpcMakeTemplateByObjectTypeResponseErrorCode(b&0x7F) << shift + m.Code |= RpcTemplateCreateFromObjectTypeResponseErrorCode(b&0x7F) << shift if b < 0x80 { break } @@ -138313,7 +102648,7 @@ func (m *RpcMakeTemplateByObjectTypeResponseError) Unmarshal(dAtA []byte) error } return nil } -func (m *RpcCloneTemplate) Unmarshal(dAtA []byte) error { +func (m *RpcTemplateClone) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -138336,10 +102671,10 @@ func (m *RpcCloneTemplate) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CloneTemplate: wiretype end group for non-group") + return fmt.Errorf("proto: Clone: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CloneTemplate: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Clone: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -138363,7 +102698,7 @@ func (m *RpcCloneTemplate) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcCloneTemplateRequest) Unmarshal(dAtA []byte) error { +func (m *RpcTemplateCloneRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -138445,7 +102780,7 @@ func (m *RpcCloneTemplateRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcCloneTemplateResponse) Unmarshal(dAtA []byte) error { +func (m *RpcTemplateCloneResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -138504,7 +102839,7 @@ func (m *RpcCloneTemplateResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Error == nil { - m.Error = &RpcCloneTemplateResponseError{} + m.Error = &RpcTemplateCloneResponseError{} } if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -138563,7 +102898,7 @@ func (m *RpcCloneTemplateResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcCloneTemplateResponseError) Unmarshal(dAtA []byte) error { +func (m *RpcTemplateCloneResponseError) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -138606,7 +102941,7 @@ func (m *RpcCloneTemplateResponseError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Code |= RpcCloneTemplateResponseErrorCode(b&0x7F) << shift + m.Code |= RpcTemplateCloneResponseErrorCode(b&0x7F) << shift if b < 0x80 { break } @@ -138664,7 +102999,7 @@ func (m *RpcCloneTemplateResponseError) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcObjectDuplicate) Unmarshal(dAtA []byte) error { +func (m *RpcTemplateExportAll) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -138687,10 +103022,10 @@ func (m *RpcObjectDuplicate) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ObjectDuplicate: wiretype end group for non-group") + return fmt.Errorf("proto: ExportAll: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ObjectDuplicate: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: ExportAll: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -138714,7 +103049,7 @@ func (m *RpcObjectDuplicate) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcObjectDuplicateRequest) Unmarshal(dAtA []byte) error { +func (m *RpcTemplateExportAllRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -138745,7 +103080,7 @@ func (m *RpcObjectDuplicateRequest) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContextId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -138773,7 +103108,7 @@ func (m *RpcObjectDuplicateRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.ContextId = string(dAtA[iNdEx:postIndex]) + m.Path = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -138796,7 +103131,7 @@ func (m *RpcObjectDuplicateRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcObjectDuplicateResponse) Unmarshal(dAtA []byte) error { +func (m *RpcTemplateExportAllResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -138855,7 +103190,7 @@ func (m *RpcObjectDuplicateResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Error == nil { - m.Error = &RpcObjectDuplicateResponseError{} + m.Error = &RpcTemplateExportAllResponseError{} } if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -138863,7 +103198,7 @@ func (m *RpcObjectDuplicateResponse) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -138891,7 +103226,43 @@ func (m *RpcObjectDuplicateResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Id = string(dAtA[iNdEx:postIndex]) + m.Path = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -138914,7 +103285,7 @@ func (m *RpcObjectDuplicateResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcObjectDuplicateResponseError) Unmarshal(dAtA []byte) error { +func (m *RpcTemplateExportAllResponseError) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -138957,7 +103328,7 @@ func (m *RpcObjectDuplicateResponseError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Code |= RpcObjectDuplicateResponseErrorCode(b&0x7F) << shift + m.Code |= RpcTemplateExportAllResponseErrorCode(b&0x7F) << shift if b < 0x80 { break } @@ -139015,6 +103386,411 @@ func (m *RpcObjectDuplicateResponseError) Unmarshal(dAtA []byte) error { } return nil } +func (m *RpcLinkPreview) Unmarshal(dAtA []byte) 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: LinkPreview: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LinkPreview: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcLinkPreviewRequest) Unmarshal(dAtA []byte) 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 Url", 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.Url = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcLinkPreviewResponse) Unmarshal(dAtA []byte) 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 = &RpcLinkPreviewResponseError{} + } + 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 LinkPreview", 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.LinkPreview == nil { + m.LinkPreview = &model.LinkPreview{} + } + if err := m.LinkPreview.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcLinkPreviewResponseError) Unmarshal(dAtA []byte) 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 |= RpcLinkPreviewResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcUnsplash) Unmarshal(dAtA []byte) 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: Unsplash: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Unsplash: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *RpcUnsplashSearch) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -139038,10 +103814,10 @@ func (m *RpcUnsplashSearch) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UnsplashSearch: wiretype end group for non-group") + return fmt.Errorf("proto: Search: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UnsplashSearch: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Search: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -139588,10 +104364,10 @@ func (m *RpcUnsplashDownload) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: UnsplashDownload: wiretype end group for non-group") + return fmt.Errorf("proto: Download: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: UnsplashDownload: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Download: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -139916,7 +104692,7 @@ func (m *RpcUnsplashDownloadResponseError) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcApplyTemplate) Unmarshal(dAtA []byte) error { +func (m *RpcBlock) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -139939,10 +104715,10 @@ func (m *RpcApplyTemplate) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: ApplyTemplate: wiretype end group for non-group") + return fmt.Errorf("proto: Block: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: ApplyTemplate: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: Block: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -139966,7 +104742,57 @@ func (m *RpcApplyTemplate) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcApplyTemplateRequest) Unmarshal(dAtA []byte) error { +func (m *RpcBlockReplace) Unmarshal(dAtA []byte) 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: Replace: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Replace: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockReplaceRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -140029,7 +104855,7 @@ func (m *RpcApplyTemplateRequest) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TemplateId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field BlockId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -140057,7 +104883,43 @@ func (m *RpcApplyTemplateRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.TemplateId = string(dAtA[iNdEx:postIndex]) + m.BlockId = string(dAtA[iNdEx:postIndex]) + 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 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.Block == nil { + m.Block = &model.Block{} + } + if err := m.Block.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -140080,7 +104942,7 @@ func (m *RpcApplyTemplateRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcApplyTemplateResponse) Unmarshal(dAtA []byte) error { +func (m *RpcBlockReplaceResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -140139,12 +105001,80 @@ func (m *RpcApplyTemplateResponse) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Error == nil { - m.Error = &RpcApplyTemplateResponseError{} + m.Error = &RpcBlockReplaceResponseError{} } 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 BlockId", 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.BlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipCommands(dAtA[iNdEx:]) @@ -140166,7 +105096,7 @@ func (m *RpcApplyTemplateResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *RpcApplyTemplateResponseError) Unmarshal(dAtA []byte) error { +func (m *RpcBlockReplaceResponseError) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -140209,7 +105139,27592 @@ func (m *RpcApplyTemplateResponseError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Code |= RpcApplyTemplateResponseErrorCode(b&0x7F) << shift + m.Code |= RpcBlockReplaceResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockSplit) Unmarshal(dAtA []byte) 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: Split: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Split: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockSplitRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.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 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.Range == nil { + m.Range = &model.Range{} + } + if err := m.Range.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + 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 ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Style |= model.BlockContentTextStyle(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType) + } + m.Mode = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Mode |= RpcBlockSplitRequestMode(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockSplitResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockSplitResponseError{} + } + 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 BlockId", 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.BlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockSplitResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockSplitResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockMerge) Unmarshal(dAtA []byte) 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: Merge: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Merge: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockMergeRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FirstBlockId", 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.FirstBlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SecondBlockId", 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.SecondBlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockMergeResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockMergeResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockMergeResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockMergeResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockCopy) Unmarshal(dAtA []byte) 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: Copy: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Copy: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockCopyRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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 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 + } + 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 + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SelectedTextRange", 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.SelectedTextRange == nil { + m.SelectedTextRange = &model.Range{} + } + if err := m.SelectedTextRange.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockCopyResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockCopyResponseError{} + } + 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 TextSlot", 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.TextSlot = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HtmlSlot", 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.HtmlSlot = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AnySlot", 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 + } + m.AnySlot = append(m.AnySlot, &model.Block{}) + if err := m.AnySlot[len(m.AnySlot)-1].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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockCopyResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockCopyResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockPaste) Unmarshal(dAtA []byte) 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: Paste: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Paste: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockPasteRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FocusedBlockId", 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.FocusedBlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SelectedTextRange", 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.SelectedTextRange == nil { + m.SelectedTextRange = &model.Range{} + } + if err := m.SelectedTextRange.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SelectedBlockIds", 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.SelectedBlockIds = append(m.SelectedBlockIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsPartOfBlock", 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.IsPartOfBlock = bool(v != 0) + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TextSlot", 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.TextSlot = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HtmlSlot", 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.HtmlSlot = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AnySlot", 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 + } + m.AnySlot = append(m.AnySlot, &model.Block{}) + if err := m.AnySlot[len(m.AnySlot)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FileSlot", 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 + } + m.FileSlot = append(m.FileSlot, &RpcBlockPasteRequestFile{}) + if err := m.FileSlot[len(m.FileSlot)-1].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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockPasteRequestFile) Unmarshal(dAtA []byte) 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 { + 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 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 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockPasteResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockPasteResponseError{} + } + 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 BlockIds", 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.BlockIds = append(m.BlockIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CaretPosition", wireType) + } + m.CaretPosition = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CaretPosition |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsSameBlockCaret", 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.IsSameBlockCaret = bool(v != 0) + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockPasteResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockPasteResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockCut) Unmarshal(dAtA []byte) 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: Cut: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Cut: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockCutRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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 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 + } + 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 + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SelectedTextRange", 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.SelectedTextRange == nil { + m.SelectedTextRange = &model.Range{} + } + if err := m.SelectedTextRange.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockCutResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockCutResponseError{} + } + 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 TextSlot", 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.TextSlot = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HtmlSlot", 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.HtmlSlot = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AnySlot", 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 + } + m.AnySlot = append(m.AnySlot, &model.Block{}) + if err := m.AnySlot[len(m.AnySlot)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockCutResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockCutResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockUpload) Unmarshal(dAtA []byte) 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: Upload: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Upload: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockUploadRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + 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 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.FilePath = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Url", 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.Url = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockUploadResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockUploadResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockUploadResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockUploadResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDownload) Unmarshal(dAtA []byte) 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: Download: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Download: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDownloadRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDownloadResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockDownloadResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDownloadResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockDownloadResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockCreate) Unmarshal(dAtA []byte) 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockCreateRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetId", 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.TargetId = string(dAtA[iNdEx:postIndex]) + 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 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.Block == nil { + m.Block = &model.Block{} + } + if err := m.Block.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Position", wireType) + } + m.Position = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Position |= model.BlockPosition(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockCreateResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockCreateResponseError{} + } + 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 BlockId", 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.BlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockCreateResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockCreateResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockListDelete) Unmarshal(dAtA []byte) 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: ListDelete: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListDelete: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockListDeleteRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockIds", 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.BlockIds = append(m.BlockIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockListDeleteResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockListDeleteResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockListDeleteResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockListDeleteResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockSetFields) Unmarshal(dAtA []byte) 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: SetFields: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SetFields: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockSetFieldsRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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 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.Fields == nil { + m.Fields = &types.Struct{} + } + if err := m.Fields.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockSetFieldsResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockSetFieldsResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockSetFieldsResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockSetFieldsResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockListSetAlign) Unmarshal(dAtA []byte) 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: ListSetAlign: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListSetAlign: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockListSetAlignRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockIds", 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.BlockIds = append(m.BlockIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Align", wireType) + } + m.Align = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Align |= model.BlockAlign(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockListSetAlignResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockListSetAlignResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockListSetAlignResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockListSetAlignResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockListSetFields) Unmarshal(dAtA []byte) 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: ListSetFields: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListSetFields: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockListSetFieldsRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockFields", 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 + } + m.BlockFields = append(m.BlockFields, &RpcBlockListSetFieldsRequestBlockField{}) + if err := m.BlockFields[len(m.BlockFields)-1].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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockListSetFieldsRequestBlockField) Unmarshal(dAtA []byte) 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: BlockField: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BlockField: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + 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 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.BlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + 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 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.Fields == nil { + m.Fields = &types.Struct{} + } + if err := m.Fields.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockListSetFieldsResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockListSetFieldsResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockListSetFieldsResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockListSetFieldsResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockListDuplicate) Unmarshal(dAtA []byte) 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: ListDuplicate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListDuplicate: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockListDuplicateRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetId", 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.TargetId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockIds", 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.BlockIds = append(m.BlockIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Position", wireType) + } + m.Position = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Position |= model.BlockPosition(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockListDuplicateResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockListDuplicateResponseError{} + } + 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 BlockIds", 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.BlockIds = append(m.BlockIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockListDuplicateResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockListDuplicateResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockListUpdate) Unmarshal(dAtA []byte) 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: ListUpdate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListUpdate: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockListUpdateRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockIds", 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.BlockIds = append(m.BlockIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + 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 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 + } + v := &RpcBlockListUpdateRequestText{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Field = &RpcBlockListUpdateRequestFieldOfText{v} + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BackgroundColor", 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.Field = &RpcBlockListUpdateRequestFieldOfBackgroundColor{string(dAtA[iNdEx:postIndex])} + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Align", wireType) + } + var v model.BlockAlign + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= model.BlockAlign(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Field = &RpcBlockListUpdateRequestFieldOfAlign{v} + case 6: + 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 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 + } + v := &types.Struct{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Field = &RpcBlockListUpdateRequestFieldOfFields{v} + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DivStyle", wireType) + } + var v model.BlockContentDivStyle + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= model.BlockContentDivStyle(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Field = &RpcBlockListUpdateRequestFieldOfDivStyle{v} + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FileStyle", wireType) + } + var v model.BlockContentFileStyle + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= model.BlockContentFileStyle(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Field = &RpcBlockListUpdateRequestFieldOfFileStyle{v} + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockListUpdateRequestText) Unmarshal(dAtA []byte) 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: 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 != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Style", wireType) + } + var v model.BlockContentTextStyle + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= model.BlockContentTextStyle(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Field = &RpcBlockListUpdateRequestTextFieldOfStyle{v} + 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 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.Field = &RpcBlockListUpdateRequestTextFieldOfColor{string(dAtA[iNdEx:postIndex])} + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Mark", 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 + } + v := &model.BlockContentTextMark{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Field = &RpcBlockListUpdateRequestTextFieldOfMark{v} + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockListConvertToObjects) Unmarshal(dAtA []byte) 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: ListConvertToObjects: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListConvertToObjects: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockListConvertToObjectsRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockIds", 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.BlockIds = append(m.BlockIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectType", 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.ObjectType = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockListConvertToObjectsResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockListConvertToObjectsResponseError{} + } + 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 LinkIds", 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.LinkIds = append(m.LinkIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockListConvertToObjectsResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockListConvertToObjectsResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockListMoveToExistingObject) Unmarshal(dAtA []byte) 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: ListMoveToExistingObject: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListMoveToExistingObject: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockListMoveToExistingObjectRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockIds", 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.BlockIds = append(m.BlockIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetContextId", 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.TargetContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DropTargetId", 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.DropTargetId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Position", wireType) + } + m.Position = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Position |= model.BlockPosition(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockListMoveToExistingObjectResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockListMoveToExistingObjectResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockListMoveToExistingObjectResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockListMoveToExistingObjectResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockListMoveToNewObject) Unmarshal(dAtA []byte) 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: ListMoveToNewObject: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListMoveToNewObject: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockListMoveToNewObjectRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockIds", 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.BlockIds = append(m.BlockIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Details", 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.Details == nil { + m.Details = &types.Struct{} + } + if err := m.Details.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DropTargetId", 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.DropTargetId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Position", wireType) + } + m.Position = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Position |= model.BlockPosition(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockListMoveToNewObjectResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockListMoveToNewObjectResponseError{} + } + 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 LinkId", 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.LinkId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockListMoveToNewObjectResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockListMoveToNewObjectResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockListTurnInto) Unmarshal(dAtA []byte) 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: ListTurnInto: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListTurnInto: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockListTurnIntoRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockIds", 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.BlockIds = append(m.BlockIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + 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 ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Style |= model.BlockContentTextStyle(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockListTurnIntoResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockListTurnIntoResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockListTurnIntoResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockListTurnIntoResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockListSetBackgroundColor) Unmarshal(dAtA []byte) 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: ListSetBackgroundColor: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListSetBackgroundColor: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockListSetBackgroundColorRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockIds", 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.BlockIds = append(m.BlockIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + 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 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.Color = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockListSetBackgroundColorResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockListSetBackgroundColorResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockListSetBackgroundColorResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockListSetBackgroundColorResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockExport) Unmarshal(dAtA []byte) 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: Export: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Export: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockExportRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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 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 + } + 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 := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockExportResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockExportResponseError{} + } + 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 Path", 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.Path = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockExportResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockExportResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockLatex) Unmarshal(dAtA []byte) 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: BlockLatex: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BlockLatex: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockLatexSetText) Unmarshal(dAtA []byte) 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: SetText: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SetText: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockLatexSetTextRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + 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 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.Text = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockLatexSetTextResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockLatexSetTextResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockLatexSetTextResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockLatexSetTextResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockText) Unmarshal(dAtA []byte) 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: BlockText: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BlockText: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockTextSetText) Unmarshal(dAtA []byte) 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: SetText: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SetText: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockTextSetTextRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + 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 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.Text = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + 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 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.Marks == nil { + m.Marks = &model.BlockContentTextMarks{} + } + if err := m.Marks.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockTextSetTextResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockTextSetTextResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockTextSetTextResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockTextSetTextResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockTextSetColor) Unmarshal(dAtA []byte) 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: SetColor: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SetColor: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockTextSetColorRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + 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 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.Color = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockTextSetColorResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockTextSetColorResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockTextSetColorResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockTextSetColorResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockTextSetMarks) Unmarshal(dAtA []byte) 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: SetMarks: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SetMarks: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockTextSetMarksGet) Unmarshal(dAtA []byte) 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockTextSetMarksGetRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.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 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.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 := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockTextSetMarksGetResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockTextSetMarksGetResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockTextSetMarksGetResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockTextSetMarksGetResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockTextSetStyle) Unmarshal(dAtA []byte) 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: SetStyle: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SetStyle: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockTextSetStyleRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + 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 ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Style |= model.BlockContentTextStyle(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockTextSetStyleResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockTextSetStyleResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockTextSetStyleResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockTextSetStyleResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockTextSetChecked) Unmarshal(dAtA []byte) 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: SetChecked: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SetChecked: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockTextSetCheckedRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + 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 ErrIntOverflowCommands + } + 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 := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockTextSetCheckedResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockTextSetCheckedResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockTextSetCheckedResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockTextSetCheckedResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockTextSetIcon) Unmarshal(dAtA []byte) 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: SetIcon: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SetIcon: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockTextSetIconRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IconImage", 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.IconImage = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IconEmoji", 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.IconEmoji = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockTextSetIconResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockTextSetIconResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockTextSetIconResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockTextSetIconResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockTextListSetStyle) Unmarshal(dAtA []byte) 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: ListSetStyle: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListSetStyle: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockTextListSetStyleRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockIds", 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.BlockIds = append(m.BlockIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + 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 ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Style |= model.BlockContentTextStyle(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockTextListSetStyleResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockTextListSetStyleResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockTextListSetStyleResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockTextListSetStyleResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockTextListSetColor) Unmarshal(dAtA []byte) 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: ListSetColor: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListSetColor: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockTextListSetColorRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockIds", 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.BlockIds = append(m.BlockIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + 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 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.Color = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockTextListSetColorResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockTextListSetColorResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockTextListSetColorResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockTextListSetColorResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockTextListSetMark) Unmarshal(dAtA []byte) 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: ListSetMark: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListSetMark: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockTextListSetMarkRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockIds", 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.BlockIds = append(m.BlockIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Mark", 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.Mark == nil { + m.Mark = &model.BlockContentTextMark{} + } + if err := m.Mark.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockTextListSetMarkResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockTextListSetMarkResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockTextListSetMarkResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockTextListSetMarkResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockFile) Unmarshal(dAtA []byte) 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: BlockFile: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BlockFile: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockFileSetName) Unmarshal(dAtA []byte) 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: SetName: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SetName: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockFileSetNameRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockFileSetNameResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockFileSetNameResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockFileSetNameResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockFileSetNameResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockFileCreateAndUpload) Unmarshal(dAtA []byte) 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: CreateAndUpload: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateAndUpload: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockFileCreateAndUploadRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetId", 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.TargetId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Position", wireType) + } + m.Position = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Position |= model.BlockPosition(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Url", 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.Url = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + 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 + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FileType", wireType) + } + m.FileType = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.FileType |= model.BlockContentFileType(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockFileCreateAndUploadResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockFileCreateAndUploadResponseError{} + } + 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 BlockId", 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.BlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockFileCreateAndUploadResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockFileCreateAndUploadResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockFileListSetStyle) Unmarshal(dAtA []byte) 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: ListSetStyle: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListSetStyle: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockFileListSetStyleRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockIds", 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.BlockIds = append(m.BlockIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + 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 ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Style |= model.BlockContentFileStyle(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockFileListSetStyleResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockFileListSetStyleResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockFileListSetStyleResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockFileListSetStyleResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockImage) Unmarshal(dAtA []byte) 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: BlockImage: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BlockImage: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockImageSetName) Unmarshal(dAtA []byte) 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: SetName: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SetName: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockImageSetNameRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockImageSetNameResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockImageSetNameResponseError{} + } + 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockImageSetNameResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockImageSetNameResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockImageSetWidth) Unmarshal(dAtA []byte) 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: SetWidth: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SetWidth: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockImageSetWidthRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = 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 ErrIntOverflowCommands + } + 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 := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockImageSetWidthResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockImageSetWidthResponseError{} + } + 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockImageSetWidthResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockImageSetWidthResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockVideo) Unmarshal(dAtA []byte) 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: BlockVideo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BlockVideo: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockVideoSetName) Unmarshal(dAtA []byte) 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: SetName: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SetName: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockVideoSetNameRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + 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 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockVideoSetNameResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockVideoSetNameResponseError{} + } + 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockVideoSetNameResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockVideoSetNameResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockVideoSetWidth) Unmarshal(dAtA []byte) 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: SetWidth: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SetWidth: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockVideoSetWidthRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = 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 ErrIntOverflowCommands + } + 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 := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockVideoSetWidthResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockVideoSetWidthResponseError{} + } + 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockVideoSetWidthResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockVideoSetWidthResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockLink) Unmarshal(dAtA []byte) 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: BlockLink: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BlockLink: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockLinkCreateWithObject) Unmarshal(dAtA []byte) 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: CreateWithObject: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateWithObject: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockLinkCreateWithObjectRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetId", 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.TargetId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Details", 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.Details == nil { + m.Details = &types.Struct{} + } + if err := m.Details.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Position", wireType) + } + m.Position = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Position |= model.BlockPosition(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TemplateId", 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.TemplateId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + 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 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.Fields == nil { + m.Fields = &types.Struct{} + } + if err := m.Fields.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockLinkCreateWithObjectResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockLinkCreateWithObjectResponseError{} + } + 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 BlockId", 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.BlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetId", 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.TargetId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockLinkCreateWithObjectResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockLinkCreateWithObjectResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockLinkListSetAppearance) Unmarshal(dAtA []byte) 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: ListSetAppearance: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListSetAppearance: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockLinkListSetAppearanceRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockIds", 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.BlockIds = append(m.BlockIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IconSize", wireType) + } + m.IconSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.IconSize |= model.BlockContentLinkIconSize(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CardStyle", wireType) + } + m.CardStyle = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CardStyle |= model.BlockContentLinkCardStyle(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + m.Description = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Description |= model.BlockContentLinkDescription(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Relations", 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.Relations = append(m.Relations, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockLinkListSetAppearanceResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockLinkListSetAppearanceResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockLinkListSetAppearanceResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockLinkListSetAppearanceResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockRelation) Unmarshal(dAtA []byte) 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: BlockRelation: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BlockRelation: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockRelationSetKey) Unmarshal(dAtA []byte) 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: SetKey: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SetKey: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockRelationSetKeyRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", 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.Key = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockRelationSetKeyResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockRelationSetKeyResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockRelationSetKeyResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockRelationSetKeyResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockRelationAdd) Unmarshal(dAtA []byte) 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: Add: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Add: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockRelationAddRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Relation", 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.Relation == nil { + m.Relation = &model.Relation{} + } + if err := m.Relation.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockRelationAddResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockRelationAddResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockRelationAddResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockRelationAddResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockBookmark) Unmarshal(dAtA []byte) 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: BlockBookmark: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BlockBookmark: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockBookmarkFetch) Unmarshal(dAtA []byte) 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: Fetch: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Fetch: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockBookmarkFetchRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Url", 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.Url = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockBookmarkFetchResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockBookmarkFetchResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockBookmarkFetchResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockBookmarkFetchResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockBookmarkCreateAndFetch) Unmarshal(dAtA []byte) 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: CreateAndFetch: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CreateAndFetch: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockBookmarkCreateAndFetchRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TargetId", 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.TargetId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Position", wireType) + } + m.Position = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Position |= model.BlockPosition(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Url", 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.Url = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockBookmarkCreateAndFetchResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockBookmarkCreateAndFetchResponseError{} + } + 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 BlockId", 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.BlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockBookmarkCreateAndFetchResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockBookmarkCreateAndFetchResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDiv) Unmarshal(dAtA []byte) 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: BlockDiv: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BlockDiv: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDivListSetStyle) Unmarshal(dAtA []byte) 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: ListSetStyle: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListSetStyle: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDivListSetStyleRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockIds", 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.BlockIds = append(m.BlockIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + 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 ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Style |= model.BlockContentDivStyle(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDivListSetStyleResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockDivListSetStyleResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDivListSetStyleResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockDivListSetStyleResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataview) Unmarshal(dAtA []byte) 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: BlockDataview: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BlockDataview: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewView) Unmarshal(dAtA []byte) 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: View: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: View: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewViewCreate) Unmarshal(dAtA []byte) 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewViewCreateRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field View", 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.View == nil { + m.View = &model.BlockContentDataviewView{} + } + if err := m.View.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewViewCreateResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockDataviewViewCreateResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ViewId", 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.ViewId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewViewCreateResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockDataviewViewCreateResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewViewUpdate) Unmarshal(dAtA []byte) 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewViewUpdateRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ViewId", 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.ViewId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field View", 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.View == nil { + m.View = &model.BlockContentDataviewView{} + } + if err := m.View.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewViewUpdateResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockDataviewViewUpdateResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewViewUpdateResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockDataviewViewUpdateResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewViewDelete) Unmarshal(dAtA []byte) 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: Delete: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Delete: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewViewDeleteRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ViewId", 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.ViewId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewViewDeleteResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockDataviewViewDeleteResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewViewDeleteResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockDataviewViewDeleteResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewViewSetPosition) Unmarshal(dAtA []byte) 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: SetPosition: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SetPosition: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewViewSetPositionRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ViewId", 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.ViewId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Position", wireType) + } + m.Position = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Position |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewViewSetPositionResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockDataviewViewSetPositionResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewViewSetPositionResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockDataviewViewSetPositionResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewViewSetActive) Unmarshal(dAtA []byte) 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: SetActive: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SetActive: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewViewSetActiveRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ViewId", 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.ViewId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Offset", wireType) + } + m.Offset = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Offset |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) + } + m.Limit = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Limit |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewViewSetActiveResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockDataviewViewSetActiveResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewViewSetActiveResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockDataviewViewSetActiveResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewRelation) Unmarshal(dAtA []byte) 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: Relation: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Relation: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewRelationAdd) Unmarshal(dAtA []byte) 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: Add: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Add: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewRelationAddRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Relation", 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.Relation == nil { + m.Relation = &model.Relation{} + } + if err := m.Relation.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewRelationAddResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockDataviewRelationAddResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RelationKey", 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.RelationKey = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Relation", 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.Relation == nil { + m.Relation = &model.Relation{} + } + if err := m.Relation.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewRelationAddResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockDataviewRelationAddResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewRelationUpdate) Unmarshal(dAtA []byte) 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewRelationUpdateRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RelationKey", 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.RelationKey = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Relation", 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.Relation == nil { + m.Relation = &model.Relation{} + } + if err := m.Relation.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewRelationUpdateResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockDataviewRelationUpdateResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewRelationUpdateResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockDataviewRelationUpdateResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewRelationDelete) Unmarshal(dAtA []byte) 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: Delete: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Delete: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewRelationDeleteRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RelationKey", 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.RelationKey = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewRelationDeleteResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockDataviewRelationDeleteResponseError{} + } + if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewRelationDeleteResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockDataviewRelationDeleteResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewRelationListAvailable) Unmarshal(dAtA []byte) 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: ListAvailable: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ListAvailable: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewRelationListAvailableRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewRelationListAvailableResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockDataviewRelationListAvailableResponseError{} + } + 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 Relations", 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 + } + m.Relations = append(m.Relations, &model.Relation{}) + if err := m.Relations[len(m.Relations)-1].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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewRelationListAvailableResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockDataviewRelationListAvailableResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewSetSource) Unmarshal(dAtA []byte) 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: SetSource: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SetSource: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewSetSourceRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Source", 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.Source = append(m.Source, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewSetSourceResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockDataviewSetSourceResponseError{} + } + if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewSetSourceResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockDataviewSetSourceResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewRecord) Unmarshal(dAtA []byte) 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: BlockDataviewRecord: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BlockDataviewRecord: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewRecordUpdate) Unmarshal(dAtA []byte) 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewRecordUpdateRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RecordId", 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.RecordId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Record", 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.Record == nil { + m.Record = &types.Struct{} + } + if err := m.Record.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewRecordUpdateResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockDataviewRecordUpdateResponseError{} + } + 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewRecordUpdateResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockDataviewRecordUpdateResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewRecordDelete) Unmarshal(dAtA []byte) 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: Delete: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Delete: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewRecordDeleteRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RecordId", 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.RecordId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewRecordDeleteResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockDataviewRecordDeleteResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewRecordDeleteResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockDataviewRecordDeleteResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewRecordCreate) Unmarshal(dAtA []byte) 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewRecordCreateRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Record", 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.Record == nil { + m.Record = &types.Struct{} + } + if err := m.Record.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TemplateId", 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.TemplateId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewRecordCreateResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockDataviewRecordCreateResponseError{} + } + 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 Record", 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.Record == nil { + m.Record = &types.Struct{} + } + if err := m.Record.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewRecordCreateResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockDataviewRecordCreateResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewRecordRelationOption) Unmarshal(dAtA []byte) 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: RelationOption: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RelationOption: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewRecordRelationOptionAdd) Unmarshal(dAtA []byte) 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: Add: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Add: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewRecordRelationOptionAddRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RelationKey", 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.RelationKey = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Option", 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.Option == nil { + m.Option = &model.RelationOption{} + } + if err := m.Option.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RecordId", 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.RecordId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewRecordRelationOptionAddResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockDataviewRecordRelationOptionAddResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Option", 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.Option == nil { + m.Option = &model.RelationOption{} + } + if err := m.Option.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewRecordRelationOptionAddResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockDataviewRecordRelationOptionAddResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewRecordRelationOptionUpdate) Unmarshal(dAtA []byte) 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewRecordRelationOptionUpdateRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RelationKey", 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.RelationKey = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Option", 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.Option == nil { + m.Option = &model.RelationOption{} + } + if err := m.Option.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RecordId", 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.RecordId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewRecordRelationOptionUpdateResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockDataviewRecordRelationOptionUpdateResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewRecordRelationOptionUpdateResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockDataviewRecordRelationOptionUpdateResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewRecordRelationOptionDelete) Unmarshal(dAtA []byte) 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: Delete: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Delete: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewRecordRelationOptionDeleteRequest) Unmarshal(dAtA []byte) 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 ContextId", 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.ContextId = 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 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.BlockId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RelationKey", 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.RelationKey = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OptionId", 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.OptionId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RecordId", 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.RecordId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewRecordRelationOptionDeleteResponse) Unmarshal(dAtA []byte) 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 = &RpcBlockDataviewRecordRelationOptionDeleteResponseError{} + } + 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 Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcBlockDataviewRecordRelationOptionDeleteResponseError) Unmarshal(dAtA []byte) 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 |= RpcBlockDataviewRecordRelationOptionDeleteResponseErrorCode(b&0x7F) << shift if b < 0x80 { break } @@ -141990,7 +134505,7 @@ func (m *RpcDebugTreeRequest) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ObjectId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -142018,7 +134533,7 @@ func (m *RpcDebugTreeRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.BlockId = string(dAtA[iNdEx:postIndex]) + m.ObjectId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -142072,6 +134587,26 @@ func (m *RpcDebugTreeRequest) Unmarshal(dAtA []byte) error { } } m.Unanonymized = bool(v != 0) + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GenerateSvg", 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.GenerateSvg = bool(v != 0) default: iNdEx = preIndex skippy, err := skipCommands(dAtA[iNdEx:]) @@ -142312,6 +134847,1895 @@ func (m *RpcDebugTreeResponseError) Unmarshal(dAtA []byte) error { } return nil } +func (m *RpcDebugExportLocalstore) Unmarshal(dAtA []byte) 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: ExportLocalstore: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ExportLocalstore: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcDebugExportLocalstoreRequest) Unmarshal(dAtA []byte) 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 Path", 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.Path = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DocIds", 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.DocIds = append(m.DocIds, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcDebugExportLocalstoreResponse) Unmarshal(dAtA []byte) 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 = &RpcDebugExportLocalstoreResponseError{} + } + 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 Path", 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.Path = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Event", 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.Event == nil { + m.Event = &ResponseEvent{} + } + if err := m.Event.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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcDebugExportLocalstoreResponseError) Unmarshal(dAtA []byte) 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 |= RpcDebugExportLocalstoreResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcDebugPing) Unmarshal(dAtA []byte) 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: Ping: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Ping: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcDebugPingRequest) Unmarshal(dAtA []byte) 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 Index", wireType) + } + m.Index = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Index |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NumberOfEventsToSend", wireType) + } + m.NumberOfEventsToSend = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NumberOfEventsToSend |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcDebugPingResponse) Unmarshal(dAtA []byte) 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 = &RpcDebugPingResponseError{} + } + if err := m.Error.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + 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 ErrIntOverflowCommands + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Index |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcDebugPingResponseError) Unmarshal(dAtA []byte) 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 |= RpcDebugPingResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcMetrics) Unmarshal(dAtA []byte) 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: Metrics: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Metrics: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcMetricsSetParameters) Unmarshal(dAtA []byte) 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: SetParameters: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SetParameters: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcMetricsSetParametersRequest) Unmarshal(dAtA []byte) 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 Platform", 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.Platform = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcMetricsSetParametersResponse) Unmarshal(dAtA []byte) 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 = &RpcMetricsSetParametersResponseError{} + } + 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcMetricsSetParametersResponseError) Unmarshal(dAtA []byte) 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 |= RpcMetricsSetParametersResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcLog) Unmarshal(dAtA []byte) 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcLogSend) Unmarshal(dAtA []byte) 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcLogSendRequest) Unmarshal(dAtA []byte) 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 |= RpcLogSendRequestLevel(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipCommands(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcLogSendResponse) Unmarshal(dAtA []byte) 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 = &RpcLogSendResponseError{} + } + 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcLogSendResponseError) Unmarshal(dAtA []byte) 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 |= RpcLogSendResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcProcess) Unmarshal(dAtA []byte) 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: Process: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Process: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcProcessCancel) Unmarshal(dAtA []byte) 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: Cancel: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Cancel: 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcProcessCancelRequest) Unmarshal(dAtA []byte) 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcProcessCancelResponse) Unmarshal(dAtA []byte) 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 = &RpcProcessCancelResponseError{} + } + 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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RpcProcessCancelResponseError) Unmarshal(dAtA []byte) 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 |= RpcProcessCancelResponseErrorCode(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) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthCommands + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *RpcGenericErrorResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/pb/events.pb.go b/pb/events.pb.go index e87d1488e..4e59471d2 100644 --- a/pb/events.pb.go +++ b/pb/events.pb.go @@ -1060,7 +1060,6 @@ func (m *EventAccountDetails) GetDetails() *types.Struct { return nil } -// Deprecated type EventAccountConfig struct { } @@ -4013,6 +4012,10 @@ type EventBlockSetLink struct { TargetBlockId *EventBlockSetLinkTargetBlockId `protobuf:"bytes,2,opt,name=targetBlockId,proto3" json:"targetBlockId,omitempty"` Style *EventBlockSetLinkStyle `protobuf:"bytes,3,opt,name=style,proto3" json:"style,omitempty"` Fields *EventBlockSetLinkFields `protobuf:"bytes,4,opt,name=fields,proto3" json:"fields,omitempty"` + IconSize *EventBlockSetLinkIconSize `protobuf:"bytes,5,opt,name=iconSize,proto3" json:"iconSize,omitempty"` + CardStyle *EventBlockSetLinkCardStyle `protobuf:"bytes,6,opt,name=cardStyle,proto3" json:"cardStyle,omitempty"` + Description *EventBlockSetLinkDescription `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"` + Relations *EventBlockSetLinkRelations `protobuf:"bytes,8,opt,name=relations,proto3" json:"relations,omitempty"` } func (m *EventBlockSetLink) Reset() { *m = EventBlockSetLink{} } @@ -4076,6 +4079,34 @@ func (m *EventBlockSetLink) GetFields() *EventBlockSetLinkFields { return nil } +func (m *EventBlockSetLink) GetIconSize() *EventBlockSetLinkIconSize { + if m != nil { + return m.IconSize + } + return nil +} + +func (m *EventBlockSetLink) GetCardStyle() *EventBlockSetLinkCardStyle { + if m != nil { + return m.CardStyle + } + return nil +} + +func (m *EventBlockSetLink) GetDescription() *EventBlockSetLinkDescription { + if m != nil { + return m.Description + } + return nil +} + +func (m *EventBlockSetLink) GetRelations() *EventBlockSetLinkRelations { + if m != nil { + return m.Relations + } + return nil +} + type EventBlockSetLinkTargetBlockId struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` } @@ -4208,6 +4239,182 @@ func (m *EventBlockSetLinkFields) GetValue() *types.Struct { return nil } +type EventBlockSetLinkIconSize struct { + Value model.BlockContentLinkIconSize `protobuf:"varint,1,opt,name=value,proto3,enum=anytype.model.BlockContentLinkIconSize" json:"value,omitempty"` +} + +func (m *EventBlockSetLinkIconSize) Reset() { *m = EventBlockSetLinkIconSize{} } +func (m *EventBlockSetLinkIconSize) String() string { return proto.CompactTextString(m) } +func (*EventBlockSetLinkIconSize) ProtoMessage() {} +func (*EventBlockSetLinkIconSize) Descriptor() ([]byte, []int) { + return fileDescriptor_a966342d378ae5f5, []int{0, 3, 4, 10, 3} +} +func (m *EventBlockSetLinkIconSize) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventBlockSetLinkIconSize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventBlockSetLinkIconSize.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EventBlockSetLinkIconSize) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventBlockSetLinkIconSize.Merge(m, src) +} +func (m *EventBlockSetLinkIconSize) XXX_Size() int { + return m.Size() +} +func (m *EventBlockSetLinkIconSize) XXX_DiscardUnknown() { + xxx_messageInfo_EventBlockSetLinkIconSize.DiscardUnknown(m) +} + +var xxx_messageInfo_EventBlockSetLinkIconSize proto.InternalMessageInfo + +func (m *EventBlockSetLinkIconSize) GetValue() model.BlockContentLinkIconSize { + if m != nil { + return m.Value + } + return model.BlockContentLink_Small +} + +type EventBlockSetLinkCardStyle struct { + Value model.BlockContentLinkCardStyle `protobuf:"varint,1,opt,name=value,proto3,enum=anytype.model.BlockContentLinkCardStyle" json:"value,omitempty"` +} + +func (m *EventBlockSetLinkCardStyle) Reset() { *m = EventBlockSetLinkCardStyle{} } +func (m *EventBlockSetLinkCardStyle) String() string { return proto.CompactTextString(m) } +func (*EventBlockSetLinkCardStyle) ProtoMessage() {} +func (*EventBlockSetLinkCardStyle) Descriptor() ([]byte, []int) { + return fileDescriptor_a966342d378ae5f5, []int{0, 3, 4, 10, 4} +} +func (m *EventBlockSetLinkCardStyle) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventBlockSetLinkCardStyle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventBlockSetLinkCardStyle.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EventBlockSetLinkCardStyle) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventBlockSetLinkCardStyle.Merge(m, src) +} +func (m *EventBlockSetLinkCardStyle) XXX_Size() int { + return m.Size() +} +func (m *EventBlockSetLinkCardStyle) XXX_DiscardUnknown() { + xxx_messageInfo_EventBlockSetLinkCardStyle.DiscardUnknown(m) +} + +var xxx_messageInfo_EventBlockSetLinkCardStyle proto.InternalMessageInfo + +func (m *EventBlockSetLinkCardStyle) GetValue() model.BlockContentLinkCardStyle { + if m != nil { + return m.Value + } + return model.BlockContentLink_Text +} + +type EventBlockSetLinkDescription struct { + Value model.BlockContentLinkDescription `protobuf:"varint,1,opt,name=value,proto3,enum=anytype.model.BlockContentLinkDescription" json:"value,omitempty"` +} + +func (m *EventBlockSetLinkDescription) Reset() { *m = EventBlockSetLinkDescription{} } +func (m *EventBlockSetLinkDescription) String() string { return proto.CompactTextString(m) } +func (*EventBlockSetLinkDescription) ProtoMessage() {} +func (*EventBlockSetLinkDescription) Descriptor() ([]byte, []int) { + return fileDescriptor_a966342d378ae5f5, []int{0, 3, 4, 10, 5} +} +func (m *EventBlockSetLinkDescription) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventBlockSetLinkDescription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventBlockSetLinkDescription.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EventBlockSetLinkDescription) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventBlockSetLinkDescription.Merge(m, src) +} +func (m *EventBlockSetLinkDescription) XXX_Size() int { + return m.Size() +} +func (m *EventBlockSetLinkDescription) XXX_DiscardUnknown() { + xxx_messageInfo_EventBlockSetLinkDescription.DiscardUnknown(m) +} + +var xxx_messageInfo_EventBlockSetLinkDescription proto.InternalMessageInfo + +func (m *EventBlockSetLinkDescription) GetValue() model.BlockContentLinkDescription { + if m != nil { + return m.Value + } + return model.BlockContentLink_None +} + +type EventBlockSetLinkRelations struct { + Value []string `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"` +} + +func (m *EventBlockSetLinkRelations) Reset() { *m = EventBlockSetLinkRelations{} } +func (m *EventBlockSetLinkRelations) String() string { return proto.CompactTextString(m) } +func (*EventBlockSetLinkRelations) ProtoMessage() {} +func (*EventBlockSetLinkRelations) Descriptor() ([]byte, []int) { + return fileDescriptor_a966342d378ae5f5, []int{0, 3, 4, 10, 6} +} +func (m *EventBlockSetLinkRelations) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *EventBlockSetLinkRelations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_EventBlockSetLinkRelations.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *EventBlockSetLinkRelations) XXX_Merge(src proto.Message) { + xxx_messageInfo_EventBlockSetLinkRelations.Merge(m, src) +} +func (m *EventBlockSetLinkRelations) XXX_Size() int { + return m.Size() +} +func (m *EventBlockSetLinkRelations) XXX_DiscardUnknown() { + xxx_messageInfo_EventBlockSetLinkRelations.DiscardUnknown(m) +} + +var xxx_messageInfo_EventBlockSetLinkRelations proto.InternalMessageInfo + +func (m *EventBlockSetLinkRelations) GetValue() []string { + if m != nil { + return m.Value + } + return nil +} + type EventBlockSetBookmark struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Url *EventBlockSetBookmarkUrl `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` @@ -8249,6 +8456,10 @@ func init() { proto.RegisterType((*EventBlockSetLinkTargetBlockId)(nil), "anytype.Event.Block.Set.Link.TargetBlockId") proto.RegisterType((*EventBlockSetLinkStyle)(nil), "anytype.Event.Block.Set.Link.Style") proto.RegisterType((*EventBlockSetLinkFields)(nil), "anytype.Event.Block.Set.Link.Fields") + proto.RegisterType((*EventBlockSetLinkIconSize)(nil), "anytype.Event.Block.Set.Link.IconSize") + proto.RegisterType((*EventBlockSetLinkCardStyle)(nil), "anytype.Event.Block.Set.Link.CardStyle") + proto.RegisterType((*EventBlockSetLinkDescription)(nil), "anytype.Event.Block.Set.Link.Description") + proto.RegisterType((*EventBlockSetLinkRelations)(nil), "anytype.Event.Block.Set.Link.Relations") proto.RegisterType((*EventBlockSetBookmark)(nil), "anytype.Event.Block.Set.Bookmark") proto.RegisterType((*EventBlockSetBookmarkUrl)(nil), "anytype.Event.Block.Set.Bookmark.Url") proto.RegisterType((*EventBlockSetBookmarkTitle)(nil), "anytype.Event.Block.Set.Bookmark.Title") @@ -8330,255 +8541,262 @@ func init() { func init() { proto.RegisterFile("pb/protos/events.proto", fileDescriptor_a966342d378ae5f5) } var fileDescriptor_a966342d378ae5f5 = []byte{ - // 3954 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x5b, 0x4d, 0x6c, 0x1c, 0xc9, - 0x75, 0xe6, 0xfc, 0xcf, 0x3c, 0x8a, 0x14, 0x53, 0x2b, 0x6b, 0xdb, 0x2d, 0x2e, 0x57, 0x2b, 0x69, - 0x77, 0x65, 0xaf, 0x3c, 0xb2, 0xa5, 0xd5, 0x4a, 0xd6, 0xae, 0xa4, 0x95, 0x48, 0x0a, 0x1c, 0xad, - 0x56, 0xa2, 0x6b, 0x44, 0x3b, 0xb1, 0x83, 0x20, 0xcd, 0xe9, 0xe2, 0xb0, 0x97, 0x33, 0xdd, 0x83, - 0xee, 0x26, 0x25, 0x3a, 0x09, 0x10, 0x24, 0x87, 0x04, 0x01, 0x02, 0x24, 0x39, 0x24, 0x39, 0x04, - 0xf0, 0x21, 0x27, 0xdf, 0x02, 0x24, 0x87, 0xdc, 0x13, 0x03, 0xf9, 0xb9, 0xf8, 0xe6, 0x00, 0xc9, - 0x21, 0xd8, 0xcd, 0x21, 0x40, 0x4e, 0xb9, 0xe4, 0x16, 0x20, 0x78, 0xf5, 0xd7, 0xd5, 0x3d, 0xdd, - 0xd3, 0x43, 0x2b, 0x1b, 0xc7, 0xb0, 0x4f, 0x9c, 0xaa, 0xfa, 0xde, 0x57, 0x55, 0xaf, 0x5e, 0xbd, - 0xaa, 0xf7, 0xba, 0x08, 0x67, 0x27, 0xbb, 0x57, 0x27, 0x61, 0x10, 0x07, 0xd1, 0x55, 0x76, 0xc4, - 0xfc, 0x38, 0xea, 0xf2, 0x12, 0x69, 0x39, 0xfe, 0x71, 0x7c, 0x3c, 0x61, 0xf6, 0xa5, 0xc9, 0xc1, - 0xf0, 0xea, 0xc8, 0xdb, 0xbd, 0x3a, 0xd9, 0xbd, 0x3a, 0x0e, 0x5c, 0x36, 0x52, 0x70, 0x5e, 0x90, - 0x70, 0x7b, 0x75, 0x18, 0x04, 0xc3, 0x11, 0x13, 0x6d, 0xbb, 0x87, 0x7b, 0x57, 0xa3, 0x38, 0x3c, - 0x1c, 0xc4, 0xa2, 0xf5, 0xc2, 0xdf, 0xfe, 0x3a, 0x34, 0x36, 0x91, 0x9d, 0x5c, 0x83, 0xf6, 0x98, - 0x45, 0x91, 0x33, 0x64, 0x91, 0x55, 0x39, 0x5f, 0xbb, 0xbc, 0x78, 0xed, 0x6c, 0x57, 0xf6, 0xd4, - 0xe5, 0x88, 0xee, 0xc7, 0xa2, 0x99, 0x6a, 0x1c, 0x59, 0x85, 0xce, 0x20, 0xf0, 0x63, 0xf6, 0x22, - 0xee, 0xb9, 0x56, 0xf5, 0x7c, 0xe5, 0x72, 0x87, 0x26, 0x15, 0xe4, 0x5d, 0xe8, 0x78, 0xbe, 0x17, - 0x7b, 0x4e, 0x1c, 0x84, 0x56, 0xed, 0x7c, 0x25, 0x45, 0xc9, 0xc7, 0xd8, 0xbd, 0x3f, 0x18, 0x04, - 0x87, 0x7e, 0x4c, 0x13, 0x20, 0xb1, 0xa0, 0x15, 0x87, 0xce, 0x80, 0xf5, 0x5c, 0xab, 0xce, 0x19, - 0x55, 0xd1, 0xfe, 0x9d, 0x37, 0xa0, 0x25, 0xc7, 0x40, 0xee, 0xc1, 0xa2, 0x23, 0x64, 0xfb, 0xfb, - 0xc1, 0x73, 0xab, 0xc2, 0xd9, 0xcf, 0x65, 0x06, 0x2c, 0xd9, 0xbb, 0x08, 0xd9, 0x5a, 0xa0, 0xa6, - 0x04, 0xe9, 0xc1, 0xb2, 0x2c, 0x6e, 0xb0, 0xd8, 0xf1, 0x46, 0x91, 0xf5, 0xf7, 0x82, 0x64, 0xad, - 0x80, 0x44, 0xc2, 0xb6, 0x16, 0x68, 0x46, 0x90, 0xfc, 0x12, 0xbc, 0x22, 0x6b, 0xd6, 0x03, 0x7f, - 0xcf, 0x1b, 0xee, 0x4c, 0x5c, 0x27, 0x66, 0xd6, 0x3f, 0x08, 0xbe, 0x4b, 0x05, 0x7c, 0x02, 0xdb, - 0x15, 0xe0, 0xad, 0x05, 0x9a, 0xc7, 0x41, 0x1e, 0xc2, 0x92, 0xac, 0x96, 0xa4, 0xff, 0x28, 0x48, - 0x5f, 0x2b, 0x20, 0xd5, 0x6c, 0x69, 0x31, 0xf2, 0x14, 0x56, 0x82, 0xdd, 0x4f, 0xd8, 0x40, 0x8d, - 0xb9, 0xcf, 0x62, 0x6b, 0x85, 0x33, 0xbd, 0x91, 0x61, 0x7a, 0xca, 0x61, 0x6a, 0xb6, 0xdd, 0x3e, - 0x8b, 0xb7, 0x16, 0xe8, 0x94, 0x30, 0xd9, 0x01, 0x92, 0xaa, 0xbb, 0x3f, 0x66, 0xbe, 0x6b, 0x5d, - 0xe3, 0x94, 0x17, 0x67, 0x53, 0x72, 0xe8, 0xd6, 0x02, 0xcd, 0x21, 0x98, 0xa2, 0xdd, 0xf1, 0x23, - 0x16, 0x5b, 0xd7, 0xe7, 0xa1, 0xe5, 0xd0, 0x29, 0x5a, 0x5e, 0x9b, 0xd0, 0x52, 0x36, 0x72, 0x62, - 0x2f, 0xf0, 0xb9, 0x02, 0xce, 0xce, 0xa2, 0xd5, 0x48, 0xa9, 0x82, 0x1c, 0x02, 0xf2, 0x1d, 0x38, - 0x93, 0xa9, 0x15, 0x6a, 0x78, 0x97, 0x13, 0xbf, 0x59, 0x46, 0xac, 0x14, 0x91, 0x4b, 0x42, 0x7e, - 0x05, 0xbe, 0x90, 0xa9, 0xa7, 0x6c, 0x1c, 0x1c, 0x31, 0xeb, 0x06, 0x67, 0x7f, 0xab, 0x8c, 0x5d, - 0xa0, 0xb7, 0x16, 0x68, 0x3e, 0x0d, 0x79, 0x00, 0xa7, 0x54, 0x03, 0xa7, 0x7d, 0x8f, 0xd3, 0xae, - 0x16, 0xd1, 0x4a, 0xb2, 0x94, 0x0c, 0xf9, 0x00, 0x40, 0x94, 0xf9, 0x26, 0x5c, 0xe3, 0x0c, 0x76, - 0x3e, 0x83, 0xdc, 0x83, 0x06, 0x9e, 0x50, 0x38, 0x1d, 0x1d, 0xee, 0x46, 0x83, 0xd0, 0x9b, 0xe0, - 0xc0, 0xee, 0xbb, 0xae, 0xf5, 0xc1, 0xac, 0xb9, 0xf5, 0x0d, 0x70, 0xf7, 0xbe, 0x8b, 0xaa, 0xcb, - 0x12, 0x90, 0xef, 0x00, 0x31, 0xab, 0xe4, 0xdc, 0xee, 0x70, 0xda, 0x2f, 0xcd, 0x41, 0xab, 0x27, - 0x9a, 0x43, 0x43, 0x1c, 0x38, 0x63, 0xd6, 0x6e, 0x07, 0x91, 0x87, 0x7f, 0xad, 0xbb, 0x9c, 0xfe, - 0x9d, 0x39, 0xe8, 0x95, 0x08, 0xae, 0x7a, 0x1e, 0x55, 0xb6, 0x8b, 0x75, 0xdc, 0xc3, 0x2c, 0x8c, - 0xac, 0x7b, 0x73, 0x77, 0xa1, 0x44, 0xb2, 0x5d, 0xa8, 0x7a, 0xf2, 0x1e, 0xb4, 0x77, 0x47, 0xc1, - 0xe0, 0x00, 0xf5, 0x5d, 0xe5, 0xb4, 0x56, 0x86, 0xf6, 0x01, 0x36, 0x4b, 0x0d, 0x6b, 0x2c, 0xba, - 0x5c, 0xfe, 0x7b, 0x83, 0x8d, 0x58, 0xcc, 0xa4, 0x43, 0x3f, 0x97, 0x2b, 0x2a, 0x20, 0xe8, 0x72, - 0x0d, 0x09, 0xb2, 0x01, 0x8b, 0x7b, 0xde, 0x88, 0x45, 0x3b, 0x93, 0x51, 0xe0, 0x08, 0xef, 0xbe, - 0x78, 0xed, 0x7c, 0x2e, 0xc1, 0xc3, 0x04, 0x87, 0x2c, 0x86, 0x18, 0xb9, 0x0b, 0x9d, 0xb1, 0x13, - 0x1e, 0x44, 0x3d, 0x7f, 0x2f, 0xb0, 0x1a, 0xb9, 0x2e, 0x5b, 0x70, 0x7c, 0xac, 0x50, 0x5b, 0x0b, - 0x34, 0x11, 0x41, 0xc7, 0xcf, 0x07, 0xd5, 0x67, 0xf1, 0x43, 0x8f, 0x8d, 0xdc, 0xc8, 0x6a, 0x72, - 0x92, 0xd7, 0x73, 0x49, 0xfa, 0x2c, 0xee, 0x0a, 0x18, 0x3a, 0xfe, 0xb4, 0x20, 0xf9, 0x45, 0x78, - 0x45, 0xd5, 0xac, 0xef, 0x7b, 0x23, 0x37, 0x64, 0x7e, 0xcf, 0x8d, 0xac, 0x56, 0xae, 0xdf, 0x4f, - 0xf8, 0x0c, 0x2c, 0xfa, 0xfd, 0x1c, 0x0a, 0xf4, 0x2c, 0xaa, 0x9a, 0xb2, 0x28, 0x0e, 0xbd, 0x01, - 0xdf, 0xba, 0x56, 0x3b, 0xd7, 0xb3, 0x24, 0xd4, 0x26, 0x18, 0x0d, 0x20, 0x8f, 0x84, 0xb8, 0xf0, - 0xaa, 0xaa, 0x7f, 0xe0, 0x0c, 0x0e, 0x86, 0x61, 0x70, 0xe8, 0xbb, 0xeb, 0xc1, 0x28, 0x08, 0xad, - 0x0e, 0xe7, 0xbf, 0x5c, 0xc8, 0x9f, 0xc1, 0x6f, 0x2d, 0xd0, 0x22, 0x2a, 0xb2, 0x0e, 0xa7, 0x54, - 0xd3, 0x33, 0xf6, 0x22, 0xb6, 0x20, 0xf7, 0xe0, 0x4a, 0xa8, 0x11, 0x84, 0x0e, 0xc6, 0x14, 0x32, - 0x49, 0xd0, 0x24, 0xac, 0xc5, 0x12, 0x12, 0x04, 0x99, 0x24, 0x58, 0x36, 0x49, 0x1e, 0x7b, 0xfe, - 0x81, 0xb5, 0x54, 0x42, 0x82, 0x20, 0x93, 0x04, 0xcb, 0x78, 0x82, 0xea, 0x99, 0x06, 0xc1, 0x01, - 0xda, 0x93, 0xb5, 0x9c, 0x7b, 0x82, 0x1a, 0xda, 0x92, 0x40, 0x3c, 0x41, 0xb3, 0xc2, 0x78, 0xb4, - 0xab, 0xba, 0xfb, 0x23, 0x6f, 0xe8, 0x5b, 0xa7, 0x67, 0xd8, 0x32, 0xb2, 0x71, 0x14, 0x1e, 0xed, - 0x29, 0x31, 0xf2, 0xa1, 0xdc, 0x96, 0x7d, 0x16, 0x6f, 0x78, 0x47, 0xd6, 0x2f, 0xe4, 0xba, 0xf1, - 0x84, 0x65, 0xc3, 0x3b, 0xd2, 0xfb, 0x52, 0x88, 0x98, 0x53, 0x53, 0x87, 0x84, 0xf5, 0x85, 0x92, - 0xa9, 0x29, 0xa0, 0x39, 0x35, 0x55, 0x67, 0x4e, 0xed, 0xb1, 0x13, 0xb3, 0x17, 0xd6, 0x17, 0x4b, - 0xa6, 0xc6, 0x51, 0xe6, 0xd4, 0x78, 0x85, 0x36, 0xd4, 0x0d, 0x27, 0x76, 0x8e, 0x3c, 0xf6, 0x9c, - 0xb2, 0x41, 0x10, 0xba, 0xfc, 0xec, 0x26, 0x33, 0x0c, 0x55, 0xc1, 0xbb, 0x09, 0x5e, 0x1b, 0xea, - 0x34, 0x15, 0x19, 0x83, 0x9d, 0xd7, 0x24, 0x2f, 0x5c, 0x76, 0xae, 0xe3, 0xcd, 0xef, 0x48, 0xdf, - 0xbe, 0x66, 0x10, 0x16, 0x75, 0xd7, 0xf3, 0x23, 0x16, 0xc6, 0xd6, 0xb9, 0x13, 0x74, 0x27, 0x44, - 0x8a, 0xba, 0x13, 0xad, 0x45, 0xdd, 0x49, 0x27, 0xbe, 0x7a, 0x82, 0xee, 0xb4, 0x53, 0x9f, 0x41, - 0x48, 0x1c, 0x38, 0x9b, 0x6a, 0xed, 0x07, 0x87, 0xe1, 0x80, 0xe1, 0x8a, 0x5d, 0xe4, 0x5d, 0xbd, - 0x3d, 0xbb, 0x2b, 0x0d, 0xdf, 0x5a, 0xa0, 0x05, 0x44, 0xda, 0x37, 0xaa, 0x96, 0x6f, 0x62, 0x2b, - 0x8b, 0xad, 0x57, 0x66, 0xf8, 0x46, 0xdd, 0x81, 0x04, 0x6b, 0xdf, 0x98, 0x21, 0x99, 0x32, 0x39, - 0xac, 0x97, 0xba, 0x3a, 0x33, 0x8f, 0xc9, 0x25, 0xf8, 0x29, 0x93, 0x4b, 0x9a, 0xa6, 0xb4, 0x84, - 0x4d, 0x4f, 0x43, 0x97, 0x85, 0xd6, 0x6b, 0xf3, 0x68, 0x49, 0xc3, 0xa7, 0xb4, 0xa4, 0x5b, 0xc8, - 0x04, 0xce, 0x65, 0x96, 0x49, 0x6c, 0x4e, 0x39, 0x19, 0x8b, 0xf7, 0x73, 0xa5, 0x6c, 0xe1, 0x4d, - 0x99, 0xad, 0x05, 0x3a, 0x8b, 0x92, 0x0c, 0xc1, 0xca, 0x6d, 0xc6, 0xb5, 0x79, 0x35, 0xf7, 0x02, - 0x56, 0xd0, 0x9d, 0x58, 0x9f, 0x42, 0x32, 0x74, 0x2f, 0x87, 0x11, 0x0b, 0xb9, 0xf4, 0xa3, 0xc0, - 0xf3, 0xad, 0xd7, 0x73, 0xdd, 0xcb, 0x4e, 0xc4, 0x42, 0xd9, 0x05, 0xa2, 0xd0, 0xbd, 0xa4, 0xc4, - 0x52, 0x3c, 0x8f, 0xd9, 0x5e, 0x6c, 0x9d, 0x2f, 0xe3, 0x41, 0x54, 0x8a, 0x07, 0x2b, 0xd0, 0x20, - 0x75, 0x45, 0x9f, 0x8d, 0xf0, 0x7a, 0xec, 0xf8, 0x43, 0x66, 0xbd, 0x91, 0x6b, 0x90, 0x06, 0x9d, - 0x01, 0x46, 0x83, 0xcc, 0x23, 0xc1, 0xd0, 0x45, 0xd7, 0xe3, 0x91, 0x28, 0xa8, 0x2f, 0xe4, 0x86, - 0x2e, 0x06, 0xb5, 0x86, 0xe2, 0x55, 0x76, 0x9a, 0x80, 0x7c, 0x09, 0xea, 0x13, 0xcf, 0x1f, 0x5a, - 0x2e, 0x27, 0x7a, 0x25, 0x43, 0xb4, 0xed, 0xf9, 0xc3, 0xad, 0x05, 0xca, 0x21, 0x78, 0xc9, 0x9f, - 0x84, 0xc1, 0x80, 0x45, 0xd1, 0x13, 0xf6, 0xdc, 0x62, 0xb9, 0x97, 0xfc, 0x6d, 0x01, 0xe8, 0x3e, - 0x61, 0xfc, 0x92, 0x9f, 0xe0, 0xc9, 0x26, 0x2c, 0xc9, 0x92, 0x74, 0xa8, 0x7b, 0xb9, 0xa7, 0xaf, - 0x22, 0x48, 0x02, 0xd8, 0x94, 0x14, 0x5e, 0x3e, 0x65, 0xc5, 0x46, 0xe0, 0x33, 0x6b, 0x98, 0x7b, - 0xf9, 0x54, 0x24, 0x08, 0xc1, 0x43, 0xce, 0x90, 0xc0, 0x70, 0x27, 0xde, 0x0f, 0x99, 0xe3, 0xf6, - 0x63, 0x27, 0x3e, 0x8c, 0x2c, 0x3f, 0xf7, 0x9c, 0x14, 0x8d, 0xdd, 0x67, 0x1c, 0x89, 0x77, 0x00, - 0x53, 0xe6, 0x41, 0x0b, 0x1a, 0x47, 0xce, 0xe8, 0x90, 0xd9, 0x7f, 0x51, 0x83, 0x96, 0x0c, 0xb9, - 0xed, 0x27, 0x50, 0xe7, 0xd1, 0xcc, 0x19, 0x68, 0x78, 0xbe, 0xcb, 0x5e, 0xf0, 0x5c, 0x44, 0x83, - 0x8a, 0x02, 0xf9, 0x2a, 0xb4, 0x64, 0x24, 0x2e, 0xef, 0xda, 0x45, 0x19, 0x10, 0x05, 0xb3, 0xbf, - 0x0d, 0x2d, 0x95, 0x58, 0x58, 0x85, 0xce, 0x24, 0x0c, 0xf0, 0xf2, 0xdb, 0x73, 0x39, 0x6d, 0x87, - 0x26, 0x15, 0xe4, 0x6b, 0xd0, 0x72, 0x65, 0xea, 0x42, 0x50, 0xbf, 0xda, 0x15, 0xa9, 0x9e, 0xae, - 0x4a, 0xf5, 0x74, 0xfb, 0x3c, 0xd5, 0x43, 0x15, 0xce, 0xfe, 0xcd, 0x0a, 0x34, 0x45, 0x7e, 0xc1, - 0x3e, 0x82, 0xa6, 0x54, 0xed, 0x0d, 0x68, 0x0e, 0x78, 0x9d, 0x95, 0xcd, 0x2d, 0xa4, 0x46, 0x28, - 0x13, 0x16, 0x54, 0x82, 0x51, 0x2c, 0x12, 0xaa, 0xac, 0xce, 0x14, 0x13, 0xba, 0xa3, 0x12, 0xfc, - 0x13, 0xeb, 0xf7, 0xdf, 0x4e, 0x41, 0x53, 0x84, 0x4b, 0xf6, 0x7f, 0x55, 0xb5, 0x8a, 0xed, 0xbf, - 0xa9, 0x40, 0x43, 0xc4, 0xdb, 0xcb, 0x50, 0xf5, 0x94, 0x96, 0xab, 0x9e, 0x4b, 0x1e, 0x9a, 0xea, - 0xad, 0xe5, 0x38, 0xcb, 0xbc, 0xb4, 0x46, 0xf7, 0x23, 0x76, 0xfc, 0x4d, 0x34, 0x11, 0xad, 0x73, - 0x72, 0x16, 0x9a, 0xd1, 0xe1, 0x2e, 0xc6, 0x05, 0xb5, 0xf3, 0xb5, 0xcb, 0x1d, 0x2a, 0x4b, 0xf6, - 0x23, 0x68, 0x2b, 0x30, 0x59, 0x81, 0xda, 0x01, 0x3b, 0x96, 0x9d, 0xe3, 0x4f, 0x72, 0x45, 0x9a, - 0x9a, 0xb6, 0x9a, 0xec, 0xd2, 0x8a, 0x5e, 0xa4, 0x3d, 0xfe, 0x2a, 0xd4, 0xd0, 0x31, 0x66, 0xa7, - 0x70, 0x72, 0x0b, 0x29, 0x1c, 0xed, 0x3a, 0x34, 0x44, 0x2a, 0x25, 0xdb, 0x07, 0x81, 0xfa, 0x01, - 0x3b, 0x16, 0x3a, 0xea, 0x50, 0xfe, 0xbb, 0x90, 0xe4, 0x07, 0x55, 0x38, 0x65, 0xc6, 0xaa, 0xf6, - 0x26, 0xd4, 0x30, 0xb2, 0xcc, 0x72, 0x5a, 0xd0, 0x72, 0xf6, 0x62, 0x16, 0xea, 0xa4, 0xa2, 0x2a, - 0xe2, 0x26, 0xe3, 0x5c, 0x3c, 0xfa, 0xec, 0x50, 0x51, 0xb0, 0xbb, 0xd0, 0x94, 0x11, 0x7a, 0x96, - 0x49, 0xe3, 0xab, 0x26, 0xfe, 0x11, 0xb4, 0x75, 0xc0, 0xfd, 0xb2, 0x7d, 0x87, 0xd0, 0xd6, 0x91, - 0xf5, 0x19, 0x68, 0xc4, 0x41, 0xec, 0x8c, 0x38, 0x5d, 0x8d, 0x8a, 0x02, 0xee, 0x62, 0x9f, 0xbd, - 0x88, 0xd7, 0xb5, 0x13, 0xa8, 0xd1, 0xa4, 0x42, 0xec, 0x71, 0x76, 0x24, 0x5a, 0x6b, 0xa2, 0x55, - 0x57, 0x24, 0x7d, 0xd6, 0xcd, 0x3e, 0x7f, 0x54, 0x81, 0x8e, 0x4e, 0xe7, 0xd8, 0x8f, 0xf3, 0x17, - 0xff, 0x06, 0x74, 0x42, 0x85, 0x91, 0x16, 0xfc, 0x6a, 0x66, 0xab, 0x28, 0x0e, 0x9a, 0x20, 0xed, - 0x27, 0x45, 0xfb, 0xe1, 0xc7, 0xe4, 0xbb, 0x52, 0xb8, 0x36, 0x39, 0x96, 0x63, 0xff, 0x55, 0x05, - 0xda, 0x8a, 0xc5, 0x1e, 0xe5, 0x4f, 0xec, 0x3c, 0x2c, 0x2a, 0xfa, 0x8f, 0xd8, 0xb1, 0x5c, 0x25, - 0xb3, 0x8a, 0x5c, 0x87, 0xb6, 0x2a, 0xca, 0x34, 0x45, 0xe1, 0x48, 0x35, 0xd0, 0xbe, 0x5d, 0x38, - 0xd0, 0xd2, 0x0e, 0xed, 0xff, 0xa8, 0xc9, 0x43, 0xe0, 0x2c, 0x34, 0xc3, 0x20, 0x88, 0xb5, 0xbb, - 0x96, 0x25, 0x72, 0x05, 0x9a, 0xfc, 0x3a, 0xa3, 0x34, 0x77, 0x26, 0x33, 0x1e, 0x7e, 0x3a, 0x53, - 0x89, 0x21, 0xef, 0x27, 0xfb, 0xb6, 0xc6, 0xe1, 0xe5, 0x49, 0xda, 0x64, 0x07, 0x7f, 0x0d, 0xea, - 0x88, 0xe4, 0x16, 0xb3, 0x3c, 0xe5, 0x1d, 0xfb, 0x63, 0x27, 0x8c, 0xc5, 0x5d, 0xe0, 0x78, 0xc2, - 0x28, 0x87, 0x92, 0xf7, 0x61, 0x51, 0xa4, 0xe5, 0xb0, 0x2e, 0xb2, 0x1a, 0xbc, 0xcf, 0x2f, 0x66, - 0x24, 0x9f, 0x6a, 0x04, 0x35, 0xd1, 0x69, 0xbb, 0x68, 0xcd, 0x6b, 0x17, 0xe4, 0x1e, 0x9c, 0x0a, - 0xa7, 0x33, 0x1b, 0xe7, 0xa6, 0x24, 0x13, 0x08, 0x4d, 0x09, 0xd8, 0x2f, 0xc0, 0x56, 0xbc, 0xdf, - 0xf2, 0xe2, 0x7d, 0xee, 0x0f, 0xb7, 0x59, 0x28, 0x86, 0x49, 0x6c, 0x68, 0x8b, 0x41, 0xea, 0xa5, - 0xd0, 0x65, 0x72, 0x77, 0xda, 0x92, 0xcf, 0x17, 0x8c, 0x58, 0x33, 0x9b, 0x26, 0x6d, 0x6b, 0x4b, - 0x59, 0x81, 0x9a, 0xe7, 0x8a, 0xcf, 0x25, 0x1d, 0x8a, 0x3f, 0xed, 0x3f, 0xbb, 0x03, 0x0d, 0xae, - 0x5e, 0xfb, 0xba, 0xf0, 0x6d, 0xc9, 0xca, 0x57, 0xca, 0x57, 0xde, 0x5e, 0x87, 0x45, 0x23, 0xf5, - 0x85, 0xce, 0x88, 0x37, 0xe8, 0x49, 0xa8, 0x22, 0xce, 0x0f, 0xaf, 0x01, 0xdb, 0x4e, 0xbc, 0x2f, - 0x37, 0x90, 0x2e, 0xdb, 0x97, 0xa0, 0x29, 0xaf, 0xe4, 0xb6, 0x4c, 0xf5, 0xf5, 0xf4, 0x20, 0x75, - 0xd9, 0xfe, 0x65, 0xe8, 0xe8, 0x0c, 0x19, 0x79, 0x0a, 0xa7, 0x64, 0x86, 0x4c, 0xdc, 0x2f, 0x11, - 0xbc, 0x6c, 0xc4, 0x85, 0xc6, 0x58, 0xf1, 0x3c, 0x8e, 0xd1, 0x08, 0xf1, 0x32, 0xc9, 0x93, 0x6c, - 0x5d, 0x6e, 0x14, 0x29, 0x02, 0xfb, 0x47, 0x36, 0xdf, 0xbc, 0xf6, 0x24, 0xd9, 0xcf, 0x53, 0xfb, - 0xea, 0xa6, 0x38, 0xf5, 0xaa, 0xa5, 0x39, 0x2d, 0x21, 0x8f, 0x67, 0x2b, 0x3f, 0x1c, 0xed, 0x73, - 0x50, 0xc3, 0x6d, 0x7e, 0x46, 0x9d, 0x91, 0x82, 0x52, 0x9e, 0x85, 0x3d, 0x68, 0xca, 0xf4, 0x5c, - 0xb6, 0xbf, 0xab, 0xd0, 0xdc, 0x13, 0x19, 0xbf, 0x92, 0xd3, 0x50, 0xc2, 0xec, 0x7b, 0xb0, 0x68, - 0x26, 0xe5, 0x72, 0xfc, 0xc2, 0xc0, 0x48, 0xfb, 0x89, 0x65, 0x30, 0xab, 0x6c, 0x06, 0xa7, 0x52, - 0x99, 0xb7, 0x2c, 0xc3, 0x66, 0x66, 0x13, 0x54, 0x33, 0x59, 0x17, 0x53, 0xed, 0x33, 0xb6, 0xc2, - 0x47, 0x70, 0x3a, 0x9b, 0x7d, 0xcb, 0xf6, 0x74, 0x19, 0x4e, 0xef, 0x66, 0x72, 0x7d, 0xc2, 0x8f, - 0x65, 0xab, 0xed, 0x1e, 0x34, 0x44, 0x62, 0x29, 0x4b, 0xf1, 0x55, 0x68, 0x38, 0x3c, 0x51, 0x55, - 0xe5, 0x9e, 0xc5, 0xce, 0x1d, 0x25, 0x17, 0xa5, 0x02, 0x68, 0xff, 0x56, 0x13, 0xea, 0x3c, 0x8d, - 0x97, 0xa5, 0x7a, 0x0f, 0xea, 0x31, 0x7b, 0xa1, 0xae, 0xc4, 0x17, 0x66, 0xe6, 0x04, 0x45, 0x28, - 0xc3, 0xf1, 0xe4, 0xeb, 0xd0, 0x88, 0xe2, 0xe3, 0x91, 0x4a, 0x3e, 0x5f, 0x9c, 0x2d, 0xd8, 0x47, - 0x28, 0x15, 0x12, 0x28, 0xca, 0x0d, 0x54, 0xa6, 0x9d, 0x4b, 0x44, 0xf9, 0xce, 0xa0, 0x42, 0x82, - 0xdc, 0x83, 0xd6, 0x60, 0x9f, 0x0d, 0x0e, 0x98, 0x2b, 0xf3, 0xcd, 0x6f, 0xce, 0x16, 0x5e, 0x17, - 0x60, 0xaa, 0xa4, 0xb0, 0xef, 0x01, 0x57, 0x79, 0x73, 0x9e, 0xbe, 0xf9, 0x32, 0x50, 0x21, 0x41, - 0x36, 0xa1, 0xe3, 0x0d, 0x02, 0x7f, 0x73, 0x1c, 0x7c, 0xe2, 0xc9, 0xc4, 0xf2, 0xdb, 0xb3, 0xc5, - 0x7b, 0x0a, 0x4e, 0x13, 0x49, 0x45, 0xd3, 0x1b, 0x3b, 0x43, 0x26, 0x5d, 0xed, 0x1c, 0x34, 0x1c, - 0x4e, 0x13, 0x49, 0x7b, 0x55, 0xae, 0x67, 0xfe, 0xce, 0x7b, 0x08, 0x0d, 0xae, 0x72, 0x72, 0xc7, - 0x6c, 0x5e, 0x36, 0x7a, 0x2a, 0x74, 0x23, 0x72, 0xa9, 0x34, 0x0f, 0xd7, 0x7f, 0x9a, 0x67, 0x71, - 0x1e, 0x1e, 0xb9, 0x6e, 0x82, 0xe7, 0x75, 0x68, 0xc9, 0xa5, 0x48, 0x0f, 0xb8, 0xad, 0x00, 0xaf, - 0x41, 0x43, 0xec, 0x96, 0xfc, 0xf9, 0xbc, 0x01, 0x1d, 0xad, 0xcc, 0xd9, 0x10, 0xae, 0x9d, 0x02, - 0x88, 0x0f, 0x0d, 0x91, 0xcd, 0x9c, 0x76, 0x7f, 0xe6, 0x26, 0xb8, 0x38, 0x3b, 0x39, 0x6a, 0xec, - 0x82, 0x92, 0x55, 0xf8, 0xe3, 0x0a, 0xd4, 0x36, 0xbc, 0xa3, 0xa9, 0xee, 0x6e, 0xa9, 0xbd, 0x53, - 0xb6, 0xe9, 0x36, 0xbc, 0xa3, 0xd4, 0xd6, 0xb1, 0x37, 0xd5, 0xba, 0x7e, 0x90, 0x5e, 0xd7, 0xb7, - 0x66, 0xae, 0x87, 0x41, 0x23, 0x06, 0xf6, 0x87, 0x4d, 0xa8, 0xf3, 0x7c, 0x7c, 0x9e, 0x37, 0xc0, - 0x1b, 0x4b, 0xd9, 0xc0, 0x50, 0xb8, 0x6b, 0x5c, 0x5b, 0xb8, 0x37, 0x70, 0xe2, 0x72, 0x6f, 0xc0, - 0x05, 0x31, 0x1e, 0xe4, 0x53, 0xc2, 0xd8, 0xf3, 0x3d, 0xa8, 0x8f, 0xbd, 0x31, 0x93, 0xce, 0xa0, - 0xa4, 0xcb, 0x8f, 0xbd, 0x31, 0xa3, 0x1c, 0x8f, 0x72, 0xfb, 0x4e, 0xb4, 0x2f, 0xfd, 0x40, 0x89, - 0xdc, 0x96, 0x13, 0xed, 0x53, 0x8e, 0x47, 0x39, 0xdf, 0x19, 0x33, 0xe9, 0x00, 0x4a, 0xe4, 0x9e, - 0x38, 0xd8, 0x1f, 0xe2, 0x51, 0x2e, 0xf2, 0xbe, 0xcb, 0xe4, 0xce, 0x2f, 0x91, 0xeb, 0x7b, 0xdf, - 0x65, 0x94, 0xe3, 0x13, 0x47, 0xd9, 0x9e, 0x4f, 0x35, 0xc6, 0x6a, 0xaf, 0x42, 0x1d, 0x07, 0x50, - 0x60, 0x5d, 0xaf, 0x41, 0xe3, 0x5b, 0x9e, 0x1b, 0xef, 0xa7, 0x9b, 0x1b, 0x29, 0x17, 0x80, 0x0a, - 0x3e, 0x91, 0x0b, 0x30, 0xd7, 0x47, 0xf0, 0x6c, 0x40, 0x1d, 0x17, 0xfa, 0x64, 0x16, 0x97, 0xd8, - 0xc7, 0x4b, 0x39, 0x24, 0x53, 0x25, 0x82, 0x67, 0x15, 0xea, 0xb8, 0x96, 0x05, 0x2a, 0x59, 0x85, - 0x3a, 0x5a, 0x48, 0x71, 0x2b, 0xae, 0x4b, 0xba, 0xb5, 0xa6, 0x5a, 0x7f, 0xaf, 0x06, 0x75, 0xfe, - 0x79, 0x29, 0xbb, 0x27, 0xbe, 0x01, 0x4b, 0xb1, 0x13, 0x0e, 0x99, 0xb8, 0xab, 0xf7, 0xd4, 0x97, - 0xda, 0x77, 0x66, 0x7e, 0xb4, 0xea, 0x3e, 0x33, 0x45, 0x68, 0x9a, 0x61, 0xfe, 0xc3, 0x93, 0x53, - 0xa5, 0x0e, 0xcf, 0x0f, 0xf4, 0xcd, 0xa9, 0x5e, 0xf2, 0x6d, 0x93, 0xcb, 0x8a, 0xfb, 0x97, 0xbe, - 0x46, 0xbd, 0x09, 0x4b, 0xa9, 0x81, 0xfd, 0xaf, 0x1e, 0x1f, 0xe6, 0x60, 0x05, 0xcf, 0x4d, 0x7d, - 0x01, 0xfc, 0x4a, 0xfa, 0xfc, 0x28, 0xbc, 0xef, 0x49, 0xc1, 0x3f, 0x6f, 0x40, 0x5b, 0x7f, 0x9e, - 0xcb, 0xb9, 0xac, 0x1e, 0x86, 0xa3, 0xd2, 0xcb, 0xaa, 0x92, 0xef, 0xee, 0x84, 0x23, 0x8a, 0x12, - 0x38, 0x9b, 0xd8, 0x8b, 0xb5, 0xda, 0xdf, 0x2e, 0x17, 0x7d, 0x86, 0x70, 0x2a, 0xa4, 0xc8, 0x53, - 0x58, 0x74, 0x99, 0xce, 0x98, 0x48, 0xfd, 0x7f, 0xa5, 0x9c, 0x64, 0x23, 0x11, 0xa2, 0x26, 0x03, - 0xe9, 0x41, 0xc7, 0xc3, 0xe3, 0x6a, 0x2b, 0xf1, 0x63, 0xef, 0x94, 0xd3, 0xf5, 0x94, 0x08, 0x4d, - 0xa4, 0x71, 0x6c, 0x7b, 0xce, 0x11, 0x5e, 0x0f, 0x38, 0x59, 0x73, 0xde, 0xb1, 0x3d, 0x4c, 0x84, - 0xa8, 0xc9, 0x40, 0x6e, 0xcb, 0x93, 0xa0, 0x95, 0xfb, 0x0c, 0x24, 0x4f, 0x55, 0xfa, 0x34, 0xc0, - 0xa0, 0x60, 0x27, 0x1c, 0x15, 0xbb, 0x2d, 0xae, 0xd5, 0x82, 0xe6, 0x8b, 0xb0, 0x68, 0xe8, 0x6b, - 0xc6, 0x59, 0xaf, 0xa7, 0x5e, 0xc8, 0x63, 0xcc, 0xad, 0x00, 0x74, 0x47, 0xfa, 0xb6, 0x1b, 0x69, - 0x33, 0x7f, 0x3d, 0x63, 0xe6, 0x68, 0xd8, 0xdb, 0x21, 0xe3, 0x5f, 0x46, 0x4c, 0xa7, 0xf6, 0x2f, - 0x16, 0x3f, 0x46, 0x47, 0xf6, 0xe3, 0x24, 0x51, 0xfc, 0xf2, 0x89, 0x3f, 0xfb, 0x19, 0x9c, 0xde, - 0x70, 0x62, 0x67, 0xd7, 0x89, 0x98, 0xfc, 0xa2, 0x97, 0xc7, 0x1a, 0x8a, 0x26, 0x9d, 0xff, 0x29, - 0x62, 0x95, 0xb8, 0x9f, 0x07, 0x63, 0xff, 0x7f, 0x82, 0xb1, 0xbf, 0xac, 0x17, 0x04, 0x63, 0xf3, - 0xdc, 0x43, 0xd1, 0xe0, 0xa6, 0xa2, 0xb1, 0xdb, 0xe9, 0x03, 0xe5, 0x52, 0x89, 0x64, 0xea, 0x44, - 0xb9, 0x9d, 0x0e, 0xc7, 0xca, 0x64, 0x53, 0xf1, 0xd8, 0x87, 0xd9, 0x78, 0xec, 0xad, 0x12, 0xe9, - 0xa9, 0x80, 0xec, 0x76, 0x3a, 0x20, 0x2b, 0xeb, 0xdd, 0x8c, 0xc8, 0x7e, 0xc6, 0x62, 0xa0, 0x3f, - 0x29, 0x88, 0x26, 0xbe, 0x9e, 0x8e, 0x26, 0x66, 0x58, 0xcd, 0xe7, 0x15, 0x4e, 0xfc, 0x69, 0x51, - 0x38, 0x71, 0x33, 0x15, 0x4e, 0xcc, 0x18, 0x59, 0x36, 0x9e, 0xb8, 0x9d, 0x8e, 0x27, 0x2e, 0x95, - 0x48, 0xa6, 0x02, 0x8a, 0x9b, 0xa9, 0x80, 0xa2, 0xac, 0x53, 0x23, 0xa2, 0xb8, 0x99, 0x8a, 0x28, - 0xca, 0x04, 0x8d, 0x90, 0xe2, 0x66, 0x2a, 0xa4, 0x28, 0x13, 0x34, 0x62, 0x8a, 0x9b, 0xa9, 0x98, - 0xa2, 0x4c, 0xd0, 0x08, 0x2a, 0x6e, 0xa7, 0x83, 0x8a, 0x72, 0xfd, 0xfc, 0x3c, 0xaa, 0xf8, 0xc9, - 0x44, 0x15, 0xbf, 0x5f, 0x14, 0x55, 0xd0, 0xfc, 0xa8, 0xe2, 0x4a, 0xf1, 0x4a, 0x96, 0x87, 0x15, - 0xf3, 0x9f, 0x02, 0xd3, 0x71, 0xc5, 0x9d, 0x4c, 0x5c, 0xf1, 0x66, 0x89, 0xf0, 0x4f, 0x69, 0x60, - 0xf1, 0xfd, 0x59, 0x81, 0xc5, 0x2d, 0x33, 0xb0, 0x98, 0x71, 0x92, 0x4d, 0x47, 0x16, 0x77, 0xd3, - 0x91, 0xc5, 0xe5, 0x39, 0x64, 0x53, 0xa1, 0xc5, 0x76, 0x5e, 0x68, 0xd1, 0x9d, 0x83, 0xa5, 0x30, - 0xb6, 0x78, 0x34, 0x1d, 0x5b, 0x5c, 0x99, 0x83, 0x2f, 0x37, 0xb8, 0xd8, 0xce, 0x0b, 0x2e, 0xe6, - 0x19, 0x5d, 0x61, 0x74, 0xf1, 0x7e, 0x2a, 0xba, 0x78, 0x7b, 0x1e, 0x75, 0xfd, 0xec, 0x85, 0x17, - 0xff, 0xdc, 0x82, 0xb6, 0x7a, 0x74, 0x65, 0x7f, 0xaf, 0x02, 0x2d, 0xf5, 0x32, 0x2e, 0x6b, 0xb7, - 0x67, 0xa1, 0x89, 0x18, 0xfd, 0x9d, 0x5c, 0x96, 0xc8, 0x5d, 0xa8, 0xe3, 0x2f, 0x69, 0x94, 0x5f, - 0x9e, 0x7d, 0xa8, 0x9b, 0x2f, 0xda, 0x28, 0x97, 0x43, 0xde, 0x60, 0x6f, 0x2f, 0x62, 0x31, 0x37, - 0xc8, 0x25, 0x2a, 0x4b, 0x38, 0xdb, 0x91, 0x37, 0xf6, 0x62, 0x6e, 0x57, 0x4b, 0x54, 0x14, 0xec, - 0x77, 0x01, 0x8c, 0x77, 0x75, 0x73, 0x8e, 0xd1, 0xbe, 0x01, 0x9d, 0xe4, 0xa5, 0x5c, 0xce, 0x0b, - 0x00, 0x01, 0x53, 0x51, 0x84, 0x2a, 0xda, 0xd7, 0xa1, 0x93, 0x3c, 0x43, 0xcc, 0xe9, 0x2b, 0xe2, - 0x8d, 0x52, 0x4a, 0x96, 0xec, 0x07, 0xb0, 0x9c, 0x79, 0x28, 0x77, 0xf2, 0xef, 0xcb, 0x31, 0x2c, - 0x9a, 0x0f, 0xe0, 0xfe, 0x8f, 0xbe, 0x88, 0xff, 0x06, 0x80, 0xf1, 0x4c, 0x76, 0xde, 0xf5, 0x37, - 0xa2, 0xc4, 0xda, 0x7c, 0x51, 0x62, 0xf2, 0x6e, 0xa2, 0x25, 0x96, 0x96, 0x17, 0xec, 0x3f, 0xaa, - 0xc0, 0x52, 0xfa, 0x2d, 0xeb, 0xe7, 0x38, 0x84, 0xb7, 0x60, 0xd9, 0xe3, 0x9d, 0xe8, 0x7f, 0xea, - 0x10, 0x66, 0x96, 0xa9, 0xb5, 0x3f, 0xd1, 0x63, 0x92, 0xaf, 0x98, 0x7e, 0x8c, 0x31, 0xd5, 0xe7, - 0x0c, 0x9e, 0xbf, 0xa1, 0xfb, 0x3a, 0x99, 0x79, 0xa3, 0x05, 0x87, 0xfc, 0x03, 0xb5, 0x6b, 0x35, - 0x85, 0x05, 0xcb, 0xa2, 0xfd, 0x9f, 0x55, 0xa8, 0xef, 0x44, 0x2c, 0xb4, 0xff, 0xbd, 0xaa, 0xbe, - 0x53, 0xdf, 0x82, 0x3a, 0x7f, 0x0d, 0x69, 0xbc, 0x54, 0xab, 0x64, 0x5e, 0xaa, 0xa5, 0xfe, 0xc7, - 0x2c, 0x79, 0xa9, 0x76, 0x0b, 0xea, 0xfc, 0xfd, 0xe3, 0xc9, 0x25, 0x7f, 0xbb, 0x02, 0x9d, 0xe4, - 0x2d, 0xe2, 0x89, 0xe5, 0xcd, 0xef, 0xe2, 0xd5, 0xf4, 0x77, 0xf1, 0x2f, 0x43, 0x23, 0xe4, 0x5f, - 0xb0, 0x85, 0x95, 0x67, 0xbf, 0xb6, 0xf3, 0x0e, 0xa9, 0x80, 0xd8, 0x0c, 0x16, 0xcd, 0x97, 0x96, - 0x27, 0x1f, 0xc6, 0x25, 0xf9, 0xce, 0xbd, 0xe7, 0x46, 0xf7, 0xc3, 0xd0, 0x39, 0x96, 0x3b, 0x3f, - 0x5d, 0x89, 0x77, 0xb5, 0x6d, 0xcf, 0x1f, 0xe6, 0x3f, 0x10, 0xb4, 0xff, 0xba, 0x02, 0x2d, 0xf9, - 0x6e, 0xd1, 0xbe, 0x09, 0xb5, 0x27, 0xec, 0x39, 0x0e, 0x44, 0xbe, 0x5c, 0x9c, 0x1a, 0xc8, 0xc7, - 0x7c, 0x16, 0x12, 0x4f, 0x15, 0xcc, 0xbe, 0xad, 0x1f, 0xd5, 0x9d, 0x5c, 0xf6, 0x16, 0xd4, 0xf9, - 0x03, 0xc9, 0x93, 0x4b, 0xfe, 0x6e, 0x1b, 0x9a, 0xe2, 0x95, 0x9d, 0xfd, 0xdf, 0x2d, 0x68, 0x8a, - 0x47, 0x93, 0xe4, 0x2e, 0xb4, 0xa2, 0xc3, 0xf1, 0xd8, 0x09, 0x8f, 0xad, 0xfc, 0x7f, 0x80, 0x4c, - 0xbd, 0xb1, 0xec, 0xf6, 0x05, 0x96, 0x2a, 0x21, 0x72, 0x03, 0xea, 0x03, 0x67, 0x8f, 0x4d, 0xa5, - 0x5f, 0xf2, 0x84, 0xd7, 0x9d, 0x3d, 0x46, 0x39, 0x9c, 0x7c, 0x08, 0x6d, 0xb9, 0x2c, 0x6a, 0xd3, - 0xcf, 0xee, 0x57, 0x2d, 0xa6, 0x96, 0xb2, 0x1f, 0x41, 0x4b, 0x0e, 0x86, 0xdc, 0xd3, 0x6f, 0x0c, - 0xb3, 0x37, 0xc5, 0xdc, 0x29, 0x1c, 0xfb, 0x83, 0xcc, 0x6b, 0xc3, 0x1f, 0x54, 0xa1, 0x8e, 0x83, - 0x7b, 0x69, 0x26, 0xb2, 0x06, 0x30, 0x72, 0xa2, 0x78, 0xfb, 0x70, 0x34, 0x62, 0xae, 0x7c, 0x3e, - 0x66, 0xd4, 0x90, 0xcb, 0x70, 0x5a, 0x94, 0xa2, 0xfd, 0xfe, 0xe1, 0x60, 0xc0, 0x98, 0x78, 0x9f, - 0xd6, 0xa6, 0xd9, 0x6a, 0x72, 0x1f, 0x1a, 0xfc, 0xff, 0xa8, 0xe4, 0x45, 0xef, 0x9d, 0x52, 0xcd, - 0x76, 0xb7, 0x3d, 0x5f, 0x8e, 0x46, 0x48, 0xda, 0x01, 0x74, 0x74, 0x1d, 0x6e, 0xc2, 0x89, 0xe7, - 0xfb, 0x9e, 0x3f, 0x94, 0x16, 0xad, 0x8a, 0xe8, 0x97, 0xf0, 0xa7, 0x1c, 0x6f, 0x83, 0xca, 0x12, - 0xd6, 0xef, 0x39, 0xde, 0x48, 0x0e, 0xb1, 0x41, 0x65, 0x09, 0x99, 0x0e, 0xb9, 0xf9, 0x8a, 0x77, - 0x6e, 0x35, 0xaa, 0x8a, 0xf6, 0xa7, 0x15, 0xfd, 0xd0, 0x36, 0xef, 0xfd, 0x18, 0x0f, 0x80, 0x85, - 0x07, 0x10, 0xb1, 0xed, 0xaa, 0x79, 0x01, 0x15, 0xef, 0xf4, 0x8c, 0x2b, 0x25, 0x5e, 0x2d, 0xfc, - 0x91, 0xe7, 0x8b, 0x30, 0xbd, 0x4d, 0x65, 0x29, 0xa3, 0xe3, 0xc6, 0x94, 0x8e, 0x65, 0xfb, 0xa6, - 0xeb, 0xc5, 0xdc, 0xa5, 0xea, 0x76, 0x51, 0x43, 0xee, 0x40, 0xcb, 0x65, 0x47, 0xde, 0x80, 0xa9, - 0x07, 0x50, 0x17, 0x67, 0xea, 0x76, 0x83, 0x63, 0xa9, 0x92, 0xb1, 0x63, 0x68, 0x8a, 0x2a, 0x3d, - 0xa5, 0x8a, 0x31, 0xa5, 0x64, 0xd0, 0xd5, 0x19, 0x83, 0xae, 0x95, 0x0c, 0xba, 0x9e, 0x1d, 0xf4, - 0x85, 0x8f, 0x00, 0x12, 0x73, 0x23, 0x8b, 0xd0, 0xda, 0xf1, 0x0f, 0xfc, 0xe0, 0xb9, 0xbf, 0xb2, - 0x80, 0x85, 0xa7, 0x7b, 0x7b, 0xd8, 0xcb, 0x4a, 0x05, 0x0b, 0x88, 0xf3, 0xfc, 0xe1, 0x4a, 0x95, - 0x00, 0x34, 0xb1, 0xc0, 0xdc, 0x95, 0x1a, 0xfe, 0x7e, 0xc8, 0xd7, 0x6f, 0xa5, 0x7e, 0xe1, 0xd7, - 0xf0, 0xa8, 0x8a, 0x26, 0x81, 0x1f, 0xb1, 0xcf, 0xeb, 0xbf, 0xc9, 0x0b, 0xff, 0x2f, 0xfc, 0xc2, - 0xf7, 0x6b, 0xd0, 0xe0, 0x2e, 0xca, 0xfe, 0x5e, 0x4d, 0x3b, 0xd3, 0x9c, 0x84, 0x73, 0x92, 0x16, - 0x5a, 0x36, 0x1e, 0x9a, 0xa5, 0x9c, 0x9b, 0x99, 0x0e, 0xba, 0x66, 0xa6, 0x83, 0x96, 0x8d, 0xa7, - 0xe2, 0x69, 0x89, 0x54, 0x1a, 0xe8, 0x7d, 0x68, 0x4f, 0xc2, 0x60, 0x18, 0xa2, 0x17, 0xad, 0x67, - 0xfe, 0xad, 0x30, 0x2d, 0xb6, 0x2d, 0x61, 0x54, 0x0b, 0xd8, 0x4f, 0xa0, 0xad, 0x6a, 0x0b, 0x9e, - 0x92, 0x12, 0xa8, 0xbb, 0x81, 0xb4, 0x84, 0x1a, 0xe5, 0xbf, 0x51, 0x2f, 0x52, 0x83, 0xd2, 0xe0, - 0x55, 0xf1, 0xc2, 0x53, 0x19, 0x09, 0x2c, 0x41, 0x67, 0x23, 0x0c, 0x26, 0xfc, 0x61, 0xd9, 0xca, - 0x02, 0xae, 0x5b, 0x6f, 0x3c, 0x09, 0xc2, 0x78, 0xa5, 0x82, 0xbf, 0x37, 0x5f, 0xf0, 0xdf, 0x55, - 0x72, 0x0a, 0xda, 0x7d, 0xe7, 0x88, 0x21, 0x6c, 0xa5, 0x46, 0x08, 0x5e, 0x5b, 0x07, 0xc1, 0x11, - 0x0b, 0xe5, 0xfe, 0x5b, 0xa9, 0x5f, 0xb8, 0xaf, 0xf2, 0x30, 0x6d, 0xa8, 0x3f, 0x09, 0x7c, 0x26, - 0x4c, 0x85, 0x1e, 0xf2, 0x5d, 0xbf, 0x52, 0xc1, 0x6a, 0x3c, 0x4a, 0x04, 0xd7, 0xba, 0xe3, 0x0f, - 0xd8, 0x88, 0x5b, 0x4a, 0x07, 0x1a, 0x9b, 0x61, 0x18, 0x84, 0x2b, 0xf5, 0x07, 0xab, 0x7f, 0xf7, - 0xe9, 0x5a, 0xe5, 0x87, 0x9f, 0xae, 0x55, 0xfe, 0xf5, 0xd3, 0xb5, 0xca, 0x1f, 0x7c, 0xb6, 0xb6, - 0xf0, 0xc3, 0xcf, 0xd6, 0x16, 0xfe, 0xe9, 0xb3, 0xb5, 0x85, 0x6f, 0x57, 0x27, 0xbb, 0xbb, 0x4d, - 0x7e, 0x17, 0xba, 0xfe, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xaf, 0x44, 0xf9, 0x32, 0xfb, 0x40, - 0x00, 0x00, + // 4072 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x5c, 0x4d, 0x8c, 0x1c, 0x49, + 0x56, 0xee, 0xfa, 0xaf, 0x7a, 0xed, 0x6e, 0x37, 0x31, 0x5e, 0x4f, 0x6e, 0xba, 0xa7, 0xc7, 0x63, + 0x7b, 0x6c, 0xcf, 0xda, 0x53, 0xde, 0xb5, 0xc7, 0x63, 0xaf, 0x67, 0x6c, 0x4f, 0xbb, 0xbb, 0xad, + 0x2e, 0xdb, 0xd3, 0xee, 0x8d, 0x72, 0xef, 0xc2, 0x2e, 0x42, 0x64, 0x57, 0x45, 0x57, 0xe7, 0x74, + 0x55, 0x66, 0x29, 0x33, 0xbb, 0xed, 0x5e, 0x84, 0xb4, 0x82, 0x03, 0x48, 0x08, 0x09, 0x38, 0x00, + 0xb7, 0x3d, 0x70, 0xda, 0x1b, 0x12, 0x1c, 0x38, 0x71, 0x41, 0x2b, 0xf1, 0x73, 0x99, 0x1b, 0x48, + 0x70, 0x40, 0x33, 0x1c, 0x90, 0x38, 0x71, 0x41, 0x5c, 0x90, 0xd0, 0x8b, 0xbf, 0x8c, 0xcc, 0xca, + 0xac, 0xac, 0xde, 0x61, 0x58, 0xd0, 0xee, 0xc9, 0x19, 0x11, 0xdf, 0xfb, 0xe2, 0xef, 0xc5, 0x8b, + 0x78, 0xaf, 0x5e, 0x1b, 0xce, 0x8e, 0x77, 0x6f, 0x8c, 0x03, 0x3f, 0xf2, 0xc3, 0x1b, 0xec, 0x88, + 0x79, 0x51, 0xd8, 0xe6, 0x25, 0xd2, 0x70, 0xbc, 0xe3, 0xe8, 0x78, 0xcc, 0xec, 0x4b, 0xe3, 0x83, + 0xc1, 0x8d, 0xa1, 0xbb, 0x7b, 0x63, 0xbc, 0x7b, 0x63, 0xe4, 0xf7, 0xd9, 0x50, 0xc1, 0x79, 0x41, + 0xc2, 0xed, 0xe5, 0x81, 0xef, 0x0f, 0x86, 0x4c, 0xb4, 0xed, 0x1e, 0xee, 0xdd, 0x08, 0xa3, 0xe0, + 0xb0, 0x17, 0x89, 0xd6, 0x0b, 0xff, 0xf9, 0x83, 0x12, 0xd4, 0x36, 0x90, 0x9e, 0xdc, 0x84, 0xe6, + 0x88, 0x85, 0xa1, 0x33, 0x60, 0xa1, 0x55, 0x3a, 0x5f, 0xb9, 0x3a, 0x7f, 0xf3, 0x6c, 0x5b, 0x76, + 0xd5, 0xe6, 0x88, 0xf6, 0xc7, 0xa2, 0x99, 0x6a, 0x1c, 0x59, 0x86, 0x56, 0xcf, 0xf7, 0x22, 0xf6, + 0x2a, 0xea, 0xf4, 0xad, 0xf2, 0xf9, 0xd2, 0xd5, 0x16, 0x8d, 0x2b, 0xc8, 0x7b, 0xd0, 0x72, 0x3d, + 0x37, 0x72, 0x9d, 0xc8, 0x0f, 0xac, 0xca, 0xf9, 0x52, 0x82, 0x92, 0x0f, 0xb2, 0xbd, 0xda, 0xeb, + 0xf9, 0x87, 0x5e, 0x44, 0x63, 0x20, 0xb1, 0xa0, 0x11, 0x05, 0x4e, 0x8f, 0x75, 0xfa, 0x56, 0x95, + 0x33, 0xaa, 0xa2, 0xfd, 0x5b, 0x6f, 0x41, 0x43, 0x8e, 0x81, 0x3c, 0x84, 0x79, 0x47, 0xc8, 0x76, + 0xf7, 0xfd, 0x97, 0x56, 0x89, 0xb3, 0x9f, 0x4b, 0x0d, 0x58, 0xb2, 0xb7, 0x11, 0xb2, 0x39, 0x47, + 0x4d, 0x09, 0xd2, 0x81, 0x45, 0x59, 0x5c, 0x67, 0x91, 0xe3, 0x0e, 0x43, 0xeb, 0x6f, 0x04, 0xc9, + 0x4a, 0x0e, 0x89, 0x84, 0x6d, 0xce, 0xd1, 0x94, 0x20, 0xf9, 0x25, 0x78, 0x4d, 0xd6, 0xac, 0xf9, + 0xde, 0x9e, 0x3b, 0xd8, 0x19, 0xf7, 0x9d, 0x88, 0x59, 0x7f, 0x2b, 0xf8, 0x2e, 0xe5, 0xf0, 0x09, + 0x6c, 0x5b, 0x80, 0x37, 0xe7, 0x68, 0x16, 0x07, 0x79, 0x0c, 0x0b, 0xb2, 0x5a, 0x92, 0xfe, 0x9d, + 0x20, 0x7d, 0x23, 0x87, 0x54, 0xb3, 0x25, 0xc5, 0xc8, 0x73, 0x58, 0xf2, 0x77, 0x3f, 0x61, 0x3d, + 0x35, 0xe6, 0x2e, 0x8b, 0xac, 0x25, 0xce, 0xf4, 0x56, 0x8a, 0xe9, 0x39, 0x87, 0xa9, 0xd9, 0xb6, + 0xbb, 0x2c, 0xda, 0x9c, 0xa3, 0x13, 0xc2, 0x64, 0x07, 0x48, 0xa2, 0x6e, 0x75, 0xc4, 0xbc, 0xbe, + 0x75, 0x93, 0x53, 0x5e, 0x9c, 0x4e, 0xc9, 0xa1, 0x9b, 0x73, 0x34, 0x83, 0x60, 0x82, 0x76, 0xc7, + 0x0b, 0x59, 0x64, 0xdd, 0x9a, 0x85, 0x96, 0x43, 0x27, 0x68, 0x79, 0x6d, 0x4c, 0x4b, 0xd9, 0xd0, + 0x89, 0x5c, 0xdf, 0xe3, 0x0b, 0x70, 0x76, 0x1a, 0xad, 0x46, 0xca, 0x25, 0xc8, 0x20, 0x20, 0xdf, + 0x83, 0x33, 0xa9, 0x5a, 0xb1, 0x0c, 0xef, 0x71, 0xe2, 0xb7, 0x8b, 0x88, 0xd5, 0x42, 0x64, 0x92, + 0x90, 0x5f, 0x81, 0xaf, 0xa4, 0xea, 0x29, 0x1b, 0xf9, 0x47, 0xcc, 0xba, 0xcd, 0xd9, 0x2f, 0x17, + 0xb1, 0x0b, 0xf4, 0xe6, 0x1c, 0xcd, 0xa6, 0x21, 0x8f, 0xe0, 0x94, 0x6a, 0xe0, 0xb4, 0xef, 0x73, + 0xda, 0xe5, 0x3c, 0x5a, 0x49, 0x96, 0x90, 0x21, 0x1f, 0x02, 0x88, 0x32, 0x3f, 0x84, 0x2b, 0x9c, + 0xc1, 0xce, 0x66, 0x90, 0x67, 0xd0, 0xc0, 0x13, 0x0a, 0xa7, 0xc3, 0xc3, 0xdd, 0xb0, 0x17, 0xb8, + 0x63, 0x1c, 0xd8, 0x6a, 0xbf, 0x6f, 0x7d, 0x38, 0x6d, 0x6e, 0x5d, 0x03, 0xdc, 0x5e, 0xed, 0xe3, + 0xd2, 0xa5, 0x09, 0xc8, 0xf7, 0x80, 0x98, 0x55, 0x72, 0x6e, 0xf7, 0x39, 0xed, 0x3b, 0x33, 0xd0, + 0xea, 0x89, 0x66, 0xd0, 0x10, 0x07, 0xce, 0x98, 0xb5, 0xdb, 0x7e, 0xe8, 0xe2, 0xbf, 0xd6, 0x03, + 0x4e, 0x7f, 0x6d, 0x06, 0x7a, 0x25, 0x82, 0xbb, 0x9e, 0x45, 0x95, 0xee, 0x62, 0x0d, 0xcf, 0x30, + 0x0b, 0x42, 0xeb, 0xe1, 0xcc, 0x5d, 0x28, 0x91, 0x74, 0x17, 0xaa, 0x9e, 0xbc, 0x0f, 0xcd, 0xdd, + 0xa1, 0xdf, 0x3b, 0xc0, 0xf5, 0x2e, 0x73, 0x5a, 0x2b, 0x45, 0xfb, 0x08, 0x9b, 0xe5, 0x0a, 0x6b, + 0x2c, 0x9a, 0x5c, 0xfe, 0xbd, 0xce, 0x86, 0x2c, 0x62, 0xd2, 0xa0, 0x9f, 0xcb, 0x14, 0x15, 0x10, + 0x34, 0xb9, 0x86, 0x04, 0x59, 0x87, 0xf9, 0x3d, 0x77, 0xc8, 0xc2, 0x9d, 0xf1, 0xd0, 0x77, 0x84, + 0x75, 0x9f, 0xbf, 0x79, 0x3e, 0x93, 0xe0, 0x71, 0x8c, 0x43, 0x16, 0x43, 0x8c, 0x3c, 0x80, 0xd6, + 0xc8, 0x09, 0x0e, 0xc2, 0x8e, 0xb7, 0xe7, 0x5b, 0xb5, 0x4c, 0x93, 0x2d, 0x38, 0x3e, 0x56, 0xa8, + 0xcd, 0x39, 0x1a, 0x8b, 0xa0, 0xe1, 0xe7, 0x83, 0xea, 0xb2, 0xe8, 0xb1, 0xcb, 0x86, 0xfd, 0xd0, + 0xaa, 0x73, 0x92, 0x37, 0x33, 0x49, 0xba, 0x2c, 0x6a, 0x0b, 0x18, 0x1a, 0xfe, 0xa4, 0x20, 0xf9, + 0x45, 0x78, 0x4d, 0xd5, 0xac, 0xed, 0xbb, 0xc3, 0x7e, 0xc0, 0xbc, 0x4e, 0x3f, 0xb4, 0x1a, 0x99, + 0x76, 0x3f, 0xe6, 0x33, 0xb0, 0x68, 0xf7, 0x33, 0x28, 0xd0, 0xb2, 0xa8, 0x6a, 0xca, 0xc2, 0x28, + 0x70, 0x7b, 0xfc, 0xe8, 0x5a, 0xcd, 0x4c, 0xcb, 0x12, 0x53, 0x9b, 0x60, 0x54, 0x80, 0x2c, 0x12, + 0xd2, 0x87, 0xd7, 0x55, 0xfd, 0x23, 0xa7, 0x77, 0x30, 0x08, 0xfc, 0x43, 0xaf, 0xbf, 0xe6, 0x0f, + 0xfd, 0xc0, 0x6a, 0x71, 0xfe, 0xab, 0xb9, 0xfc, 0x29, 0xfc, 0xe6, 0x1c, 0xcd, 0xa3, 0x22, 0x6b, + 0x70, 0x4a, 0x35, 0xbd, 0x60, 0xaf, 0x22, 0x0b, 0x32, 0x2f, 0xae, 0x98, 0x1a, 0x41, 0x68, 0x60, + 0x4c, 0x21, 0x93, 0x04, 0x55, 0xc2, 0x9a, 0x2f, 0x20, 0x41, 0x90, 0x49, 0x82, 0x65, 0x93, 0xe4, + 0x99, 0xeb, 0x1d, 0x58, 0x0b, 0x05, 0x24, 0x08, 0x32, 0x49, 0xb0, 0x8c, 0x37, 0xa8, 0x9e, 0xa9, + 0xef, 0x1f, 0xa0, 0x3e, 0x59, 0x8b, 0x99, 0x37, 0xa8, 0xb1, 0x5a, 0x12, 0x88, 0x37, 0x68, 0x5a, + 0x18, 0xaf, 0x76, 0x55, 0xb7, 0x3a, 0x74, 0x07, 0x9e, 0x75, 0x7a, 0x8a, 0x2e, 0x23, 0x1b, 0x47, + 0xe1, 0xd5, 0x9e, 0x10, 0x23, 0x1f, 0xc9, 0x63, 0xd9, 0x65, 0xd1, 0xba, 0x7b, 0x64, 0xfd, 0x42, + 0xa6, 0x19, 0x8f, 0x59, 0xd6, 0xdd, 0x23, 0x7d, 0x2e, 0x85, 0x88, 0x39, 0x35, 0x75, 0x49, 0x58, + 0x5f, 0x29, 0x98, 0x9a, 0x02, 0x9a, 0x53, 0x53, 0x75, 0xe6, 0xd4, 0x9e, 0x39, 0x11, 0x7b, 0x65, + 0x7d, 0xb5, 0x60, 0x6a, 0x1c, 0x65, 0x4e, 0x8d, 0x57, 0x68, 0x45, 0x5d, 0x77, 0x22, 0xe7, 0xc8, + 0x65, 0x2f, 0x29, 0xeb, 0xf9, 0x41, 0x9f, 0xdf, 0xdd, 0x64, 0x8a, 0xa2, 0x2a, 0x78, 0x3b, 0xc6, + 0x6b, 0x45, 0x9d, 0xa4, 0x22, 0x23, 0xb0, 0xb3, 0x9a, 0xe4, 0x83, 0xcb, 0xce, 0x34, 0xbc, 0xd9, + 0x1d, 0xe9, 0xd7, 0xd7, 0x14, 0xc2, 0xbc, 0xee, 0x3a, 0x5e, 0xc8, 0x82, 0xc8, 0x3a, 0x77, 0x82, + 0xee, 0x84, 0x48, 0x5e, 0x77, 0xa2, 0x35, 0xaf, 0x3b, 0x69, 0xc4, 0x97, 0x4f, 0xd0, 0x9d, 0x36, + 0xea, 0x53, 0x08, 0x89, 0x03, 0x67, 0x13, 0xad, 0x5d, 0xff, 0x30, 0xe8, 0x31, 0xdc, 0xb1, 0x8b, + 0xbc, 0xab, 0x2b, 0xd3, 0xbb, 0xd2, 0xf0, 0xcd, 0x39, 0x9a, 0x43, 0xa4, 0x6d, 0xa3, 0x6a, 0xf9, + 0x36, 0xb6, 0xb2, 0xc8, 0x7a, 0x6d, 0x8a, 0x6d, 0xd4, 0x1d, 0x48, 0xb0, 0xb6, 0x8d, 0x29, 0x92, + 0x09, 0x95, 0xc3, 0x7a, 0xb9, 0x56, 0x67, 0x66, 0x51, 0xb9, 0x18, 0x3f, 0xa1, 0x72, 0x71, 0xd3, + 0xc4, 0x2a, 0x61, 0xd3, 0xf3, 0xa0, 0xcf, 0x02, 0xeb, 0x8d, 0x59, 0x56, 0x49, 0xc3, 0x27, 0x56, + 0x49, 0xb7, 0x90, 0x31, 0x9c, 0x4b, 0x6d, 0x93, 0x38, 0x9c, 0x72, 0x32, 0x16, 0xef, 0xe7, 0x7a, + 0xd1, 0xc6, 0x9b, 0x32, 0x9b, 0x73, 0x74, 0x1a, 0x25, 0x19, 0x80, 0x95, 0xd9, 0x8c, 0x7b, 0xf3, + 0x7a, 0xe6, 0x03, 0x2c, 0xa7, 0x3b, 0xb1, 0x3f, 0xb9, 0x64, 0x68, 0x5e, 0x0e, 0x43, 0x16, 0x70, + 0xe9, 0x27, 0xbe, 0xeb, 0x59, 0x6f, 0x66, 0x9a, 0x97, 0x9d, 0x90, 0x05, 0xb2, 0x0b, 0x44, 0xa1, + 0x79, 0x49, 0x88, 0x25, 0x78, 0x9e, 0xb1, 0xbd, 0xc8, 0x3a, 0x5f, 0xc4, 0x83, 0xa8, 0x04, 0x0f, + 0x56, 0xa0, 0x42, 0xea, 0x8a, 0x2e, 0x1b, 0xe2, 0xf3, 0xd8, 0xf1, 0x06, 0xcc, 0x7a, 0x2b, 0x53, + 0x21, 0x0d, 0x3a, 0x03, 0x8c, 0x0a, 0x99, 0x45, 0x82, 0xae, 0x8b, 0xae, 0xc7, 0x2b, 0x51, 0x50, + 0x5f, 0xc8, 0x74, 0x5d, 0x0c, 0x6a, 0x0d, 0xc5, 0xa7, 0xec, 0x24, 0x01, 0x79, 0x07, 0xaa, 0x63, + 0xd7, 0x1b, 0x58, 0x7d, 0x4e, 0xf4, 0x5a, 0x8a, 0x68, 0xdb, 0xf5, 0x06, 0x9b, 0x73, 0x94, 0x43, + 0xf0, 0x91, 0x3f, 0x0e, 0xfc, 0x1e, 0x0b, 0xc3, 0x2d, 0xf6, 0xd2, 0x62, 0x99, 0x8f, 0xfc, 0x6d, + 0x01, 0x68, 0x6f, 0x31, 0xfe, 0xc8, 0x8f, 0xf1, 0x64, 0x03, 0x16, 0x64, 0x49, 0x1a, 0xd4, 0xbd, + 0xcc, 0xdb, 0x57, 0x11, 0xc4, 0x0e, 0x6c, 0x42, 0x0a, 0x1f, 0x9f, 0xb2, 0x62, 0xdd, 0xf7, 0x98, + 0x35, 0xc8, 0x7c, 0x7c, 0x2a, 0x12, 0x84, 0xe0, 0x25, 0x67, 0x48, 0xa0, 0xbb, 0x13, 0xed, 0x07, + 0xcc, 0xe9, 0x77, 0x23, 0x27, 0x3a, 0x0c, 0x2d, 0x2f, 0xf3, 0x9e, 0x14, 0x8d, 0xed, 0x17, 0x1c, + 0x89, 0x6f, 0x00, 0x53, 0xe6, 0x51, 0x03, 0x6a, 0x47, 0xce, 0xf0, 0x90, 0xd9, 0x7f, 0x5a, 0x81, + 0x86, 0x74, 0xb9, 0xed, 0x2d, 0xa8, 0x72, 0x6f, 0xe6, 0x0c, 0xd4, 0x5c, 0xaf, 0xcf, 0x5e, 0xf1, + 0x58, 0x44, 0x8d, 0x8a, 0x02, 0xf9, 0x3a, 0x34, 0xa4, 0x27, 0x2e, 0xdf, 0xda, 0x79, 0x11, 0x10, + 0x05, 0xb3, 0xbf, 0x0b, 0x0d, 0x15, 0x58, 0x58, 0x86, 0xd6, 0x38, 0xf0, 0xf1, 0xf1, 0xdb, 0xe9, + 0x73, 0xda, 0x16, 0x8d, 0x2b, 0xc8, 0x37, 0xa0, 0xd1, 0x97, 0xa1, 0x0b, 0x41, 0xfd, 0x7a, 0x5b, + 0xc4, 0x7a, 0xda, 0x2a, 0xd6, 0xd3, 0xee, 0xf2, 0x58, 0x0f, 0x55, 0x38, 0xfb, 0x07, 0x25, 0xa8, + 0x8b, 0xf8, 0x82, 0x7d, 0x04, 0x75, 0xb9, 0xb4, 0xb7, 0xa1, 0xde, 0xe3, 0x75, 0x56, 0x3a, 0xb6, + 0x90, 0x18, 0xa1, 0x0c, 0x58, 0x50, 0x09, 0x46, 0xb1, 0x50, 0x2c, 0x65, 0x79, 0xaa, 0x98, 0x58, + 0x3b, 0x2a, 0xc1, 0x3f, 0xb5, 0x7e, 0xff, 0xe5, 0x14, 0xd4, 0x85, 0xbb, 0x64, 0xff, 0x47, 0x59, + 0x2f, 0xb1, 0xfd, 0x57, 0x25, 0xa8, 0x09, 0x7f, 0x7b, 0x11, 0xca, 0xae, 0x5a, 0xe5, 0xb2, 0xdb, + 0x27, 0x8f, 0xcd, 0xe5, 0xad, 0x64, 0x18, 0xcb, 0xac, 0xb0, 0x46, 0xfb, 0x29, 0x3b, 0xfe, 0x36, + 0xaa, 0x88, 0x5e, 0x73, 0x72, 0x16, 0xea, 0xe1, 0xe1, 0x2e, 0xfa, 0x05, 0x95, 0xf3, 0x95, 0xab, + 0x2d, 0x2a, 0x4b, 0xf6, 0x13, 0x68, 0x2a, 0x30, 0x59, 0x82, 0xca, 0x01, 0x3b, 0x96, 0x9d, 0xe3, + 0x27, 0xb9, 0x2e, 0x55, 0x4d, 0x6b, 0x4d, 0x7a, 0x6b, 0x45, 0x2f, 0x52, 0x1f, 0x7f, 0x15, 0x2a, + 0x68, 0x18, 0xd3, 0x53, 0x38, 0xb9, 0x86, 0xe4, 0x8e, 0x76, 0x0d, 0x6a, 0x22, 0x94, 0x92, 0xee, + 0x83, 0x40, 0xf5, 0x80, 0x1d, 0x8b, 0x35, 0x6a, 0x51, 0xfe, 0x9d, 0x4b, 0xf2, 0xe3, 0x32, 0x9c, + 0x32, 0x7d, 0x55, 0x7b, 0x03, 0x2a, 0xe8, 0x59, 0xa6, 0x39, 0x2d, 0x68, 0x38, 0x7b, 0x11, 0x0b, + 0x74, 0x50, 0x51, 0x15, 0xf1, 0x90, 0x71, 0x2e, 0xee, 0x7d, 0xb6, 0xa8, 0x28, 0xd8, 0x6d, 0xa8, + 0x4b, 0x0f, 0x3d, 0xcd, 0xa4, 0xf1, 0x65, 0x13, 0xff, 0x04, 0x9a, 0xda, 0xe1, 0xfe, 0xa2, 0x7d, + 0x07, 0xd0, 0xd4, 0x9e, 0xf5, 0x19, 0xa8, 0x45, 0x7e, 0xe4, 0x0c, 0x39, 0x5d, 0x85, 0x8a, 0x02, + 0x9e, 0x62, 0x8f, 0xbd, 0x8a, 0xd6, 0xb4, 0x11, 0xa8, 0xd0, 0xb8, 0x42, 0x9c, 0x71, 0x76, 0x24, + 0x5a, 0x2b, 0xa2, 0x55, 0x57, 0xc4, 0x7d, 0x56, 0xcd, 0x3e, 0xff, 0xbe, 0x04, 0x2d, 0x1d, 0xce, + 0xb1, 0x9f, 0x65, 0x6f, 0xfe, 0x6d, 0x68, 0x05, 0x0a, 0x23, 0x35, 0xf8, 0xf5, 0xd4, 0x51, 0x51, + 0x1c, 0x34, 0x46, 0xda, 0x5b, 0x79, 0xe7, 0xe1, 0x27, 0xe4, 0xbb, 0x9e, 0xbb, 0x37, 0x19, 0x9a, + 0x63, 0xff, 0x79, 0x09, 0x9a, 0x8a, 0xc5, 0x1e, 0x66, 0x4f, 0xec, 0x3c, 0xcc, 0x2b, 0xfa, 0xa7, + 0xec, 0x58, 0xee, 0x92, 0x59, 0x45, 0x6e, 0x41, 0x53, 0x15, 0x65, 0x98, 0x22, 0x77, 0xa4, 0x1a, + 0x68, 0xdf, 0xcb, 0x1d, 0x68, 0x61, 0x87, 0xf6, 0xbf, 0x55, 0xe4, 0x25, 0x70, 0x16, 0xea, 0x81, + 0xef, 0x47, 0xda, 0x5c, 0xcb, 0x12, 0xb9, 0x0e, 0x75, 0xfe, 0x9c, 0x51, 0x2b, 0x77, 0x26, 0x35, + 0x1e, 0x7e, 0x3b, 0x53, 0x89, 0x21, 0x1f, 0xc4, 0xe7, 0xb6, 0xc2, 0xe1, 0xc5, 0x41, 0xda, 0xf8, + 0x04, 0x7f, 0x03, 0xaa, 0x88, 0xe4, 0x1a, 0xb3, 0x38, 0x61, 0x1d, 0xbb, 0x23, 0x27, 0x88, 0xc4, + 0x5b, 0xe0, 0x78, 0xcc, 0x28, 0x87, 0x92, 0x0f, 0x60, 0x5e, 0x84, 0xe5, 0xb0, 0x2e, 0xb4, 0x6a, + 0xbc, 0xcf, 0xaf, 0xa6, 0x24, 0x9f, 0x6b, 0x04, 0x35, 0xd1, 0x49, 0xbd, 0x68, 0xcc, 0xaa, 0x17, + 0xe4, 0x21, 0x9c, 0x0a, 0x26, 0x23, 0x1b, 0xe7, 0x26, 0x24, 0x63, 0x08, 0x4d, 0x08, 0xd8, 0xaf, + 0xc0, 0x56, 0xbc, 0xdf, 0x71, 0xa3, 0x7d, 0x6e, 0x0f, 0xb7, 0x59, 0x20, 0x86, 0x49, 0x6c, 0x68, + 0x8a, 0x41, 0xea, 0xad, 0xd0, 0x65, 0xf2, 0x60, 0x52, 0x93, 0xcf, 0xe7, 0x8c, 0x58, 0x33, 0x9b, + 0x2a, 0x6d, 0x6b, 0x4d, 0x59, 0x82, 0x8a, 0xdb, 0x17, 0x3f, 0x97, 0xb4, 0x28, 0x7e, 0xda, 0x9f, + 0xae, 0x42, 0x8d, 0x2f, 0xaf, 0x7d, 0x4b, 0xd8, 0xb6, 0x78, 0xe7, 0x4b, 0xc5, 0x3b, 0x6f, 0xaf, + 0xc1, 0xbc, 0x11, 0xfa, 0x42, 0x63, 0xc4, 0x1b, 0xf4, 0x24, 0x54, 0x11, 0xe7, 0x87, 0xcf, 0x80, + 0x6d, 0x27, 0xda, 0x97, 0x07, 0x48, 0x97, 0xed, 0x4b, 0x50, 0x97, 0x4f, 0x72, 0x5b, 0x86, 0xfa, + 0x3a, 0x7a, 0x90, 0xba, 0x6c, 0xff, 0x32, 0xb4, 0x74, 0x84, 0x8c, 0x3c, 0x87, 0x53, 0x32, 0x42, + 0x26, 0xde, 0x97, 0x08, 0x5e, 0x34, 0xfc, 0x42, 0x63, 0xac, 0x78, 0x1f, 0x47, 0xa8, 0x84, 0xf8, + 0x98, 0xe4, 0x41, 0xb6, 0x36, 0x57, 0x8a, 0x04, 0x81, 0xfd, 0x3b, 0x6f, 0xf2, 0xc3, 0x6b, 0x8f, + 0xe3, 0xf3, 0x3c, 0x71, 0xae, 0xee, 0x88, 0x5b, 0xaf, 0x5c, 0x18, 0xd3, 0x12, 0xf2, 0x78, 0xb7, + 0xf2, 0xcb, 0xd1, 0x3e, 0x07, 0x15, 0x3c, 0xe6, 0x67, 0xd4, 0x1d, 0x29, 0x28, 0xe5, 0x5d, 0xd8, + 0x81, 0xba, 0x0c, 0xcf, 0xa5, 0xfb, 0xbb, 0x01, 0xf5, 0x3d, 0x11, 0xf1, 0x2b, 0xb8, 0x0d, 0x25, + 0xcc, 0x7e, 0x08, 0xf3, 0x66, 0x50, 0x2e, 0xc3, 0x2e, 0xf4, 0x8c, 0xb0, 0x9f, 0xd8, 0x06, 0xb3, + 0xca, 0x66, 0x70, 0x2a, 0x11, 0x79, 0x4b, 0x33, 0x6c, 0xa4, 0x0e, 0x41, 0x39, 0x15, 0x75, 0x31, + 0x97, 0x7d, 0xca, 0x51, 0x78, 0x0a, 0xa7, 0xd3, 0xd1, 0xb7, 0x74, 0x4f, 0x57, 0xe1, 0xf4, 0x6e, + 0x2a, 0xd6, 0x27, 0xec, 0x58, 0xba, 0xda, 0xee, 0x40, 0x4d, 0x04, 0x96, 0xd2, 0x14, 0x5f, 0x87, + 0x9a, 0xc3, 0x03, 0x55, 0x65, 0x6e, 0x59, 0xec, 0xcc, 0x51, 0x72, 0x51, 0x2a, 0x80, 0xf6, 0x6f, + 0xd4, 0xa1, 0xca, 0xc3, 0x78, 0x69, 0xaa, 0xf7, 0xa1, 0x1a, 0xb1, 0x57, 0xea, 0x49, 0x7c, 0x61, + 0x6a, 0x4c, 0x50, 0xb8, 0x32, 0x1c, 0x4f, 0xbe, 0x09, 0xb5, 0x30, 0x3a, 0x1e, 0xaa, 0xe0, 0xf3, + 0xc5, 0xe9, 0x82, 0x5d, 0x84, 0x52, 0x21, 0x81, 0xa2, 0x5c, 0x41, 0x65, 0xd8, 0xb9, 0x40, 0x94, + 0x9f, 0x0c, 0x2a, 0x24, 0xc8, 0x43, 0x68, 0xf4, 0xf6, 0x59, 0xef, 0x80, 0xf5, 0x65, 0xbc, 0xf9, + 0xed, 0xe9, 0xc2, 0x6b, 0x02, 0x4c, 0x95, 0x14, 0xf6, 0xdd, 0xe3, 0x4b, 0x5e, 0x9f, 0xa5, 0x6f, + 0xbe, 0x0d, 0x54, 0x48, 0x90, 0x0d, 0x68, 0xb9, 0x3d, 0xdf, 0xdb, 0x18, 0xf9, 0x9f, 0xb8, 0x32, + 0xb0, 0x7c, 0x65, 0xba, 0x78, 0x47, 0xc1, 0x69, 0x2c, 0xa9, 0x68, 0x3a, 0x23, 0x67, 0xc0, 0xa4, + 0xa9, 0x9d, 0x81, 0x86, 0xc3, 0x69, 0x2c, 0x69, 0x2f, 0xcb, 0xfd, 0xcc, 0x3e, 0x79, 0x8f, 0xa1, + 0xc6, 0x97, 0x9c, 0xdc, 0x37, 0x9b, 0x17, 0x8d, 0x9e, 0x72, 0xcd, 0x88, 0xdc, 0x2a, 0xcd, 0xc3, + 0xd7, 0x3f, 0xc9, 0x33, 0x3f, 0x0b, 0x8f, 0xdc, 0x37, 0xc1, 0xf3, 0x26, 0x34, 0xe4, 0x56, 0x24, + 0x07, 0xdc, 0x54, 0x80, 0x37, 0xa0, 0x26, 0x4e, 0x4b, 0xf6, 0x7c, 0xde, 0x82, 0x96, 0x5e, 0xcc, + 0xe9, 0x10, 0xbe, 0x3a, 0x39, 0x10, 0x0f, 0x6a, 0x22, 0x9a, 0x39, 0x69, 0xfe, 0xcc, 0x43, 0x70, + 0x71, 0x7a, 0x70, 0xd4, 0x38, 0x05, 0x05, 0xbb, 0xf0, 0x87, 0x25, 0xa8, 0xac, 0xbb, 0x47, 0x13, + 0xdd, 0xdd, 0x55, 0x67, 0xa7, 0xe8, 0xd0, 0xad, 0xbb, 0x47, 0x89, 0xa3, 0x63, 0x6f, 0xa8, 0x7d, + 0xfd, 0x30, 0xb9, 0xaf, 0x97, 0xa7, 0xee, 0x87, 0x41, 0x23, 0x06, 0xf6, 0xfb, 0x75, 0xa8, 0xf2, + 0x78, 0x7c, 0x96, 0x35, 0xc0, 0x17, 0x4b, 0xd1, 0xc0, 0x50, 0xb8, 0x6d, 0x3c, 0x5b, 0xb8, 0x35, + 0x70, 0xa2, 0x62, 0x6b, 0xc0, 0x05, 0xd1, 0x1f, 0xe4, 0x53, 0x42, 0xdf, 0xf3, 0x7d, 0xa8, 0x8e, + 0xdc, 0x11, 0x93, 0xc6, 0xa0, 0xa0, 0xcb, 0x8f, 0xdd, 0x11, 0xa3, 0x1c, 0x8f, 0x72, 0xfb, 0x4e, + 0xb8, 0x2f, 0xed, 0x40, 0x81, 0xdc, 0xa6, 0x13, 0xee, 0x53, 0x8e, 0x47, 0x39, 0xcf, 0x19, 0x31, + 0x69, 0x00, 0x0a, 0xe4, 0xb6, 0x1c, 0xec, 0x0f, 0xf1, 0x28, 0x17, 0xba, 0xdf, 0x67, 0xf2, 0xe4, + 0x17, 0xc8, 0x75, 0xdd, 0xef, 0x33, 0xca, 0xf1, 0xb1, 0xa1, 0x6c, 0xce, 0xb6, 0x34, 0xc6, 0x6e, + 0x2f, 0x43, 0x15, 0x07, 0x90, 0xa3, 0x5d, 0x6f, 0x40, 0xed, 0x3b, 0x6e, 0x3f, 0xda, 0x4f, 0x36, + 0xd7, 0x12, 0x26, 0x00, 0x17, 0xf8, 0x44, 0x26, 0xc0, 0xdc, 0x1f, 0xc1, 0xb3, 0x0e, 0x55, 0xdc, + 0xe8, 0x93, 0x69, 0x5c, 0xac, 0x1f, 0x5f, 0xc8, 0x20, 0x99, 0x4b, 0x22, 0x78, 0x96, 0xa1, 0x8a, + 0x7b, 0x99, 0xb3, 0x24, 0xcb, 0x50, 0x45, 0x0d, 0xc9, 0x6f, 0xc5, 0x7d, 0x49, 0xb6, 0x56, 0x54, + 0xeb, 0x5f, 0x36, 0xa0, 0xca, 0x7f, 0x5e, 0x4a, 0x9f, 0x89, 0x6f, 0xc1, 0x42, 0xe4, 0x04, 0x03, + 0x26, 0xde, 0xea, 0x1d, 0xf5, 0x4b, 0xed, 0xb5, 0xa9, 0x3f, 0x5a, 0xb5, 0x5f, 0x98, 0x22, 0x34, + 0xc9, 0x30, 0xfb, 0xe5, 0xc9, 0xa9, 0x12, 0x97, 0xe7, 0x87, 0xfa, 0xe5, 0x54, 0x2d, 0xf8, 0x6d, + 0x93, 0xcb, 0x8a, 0xf7, 0x97, 0x7a, 0x46, 0x91, 0x47, 0xd0, 0xc4, 0x2b, 0x04, 0x97, 0x41, 0x1e, + 0x9c, 0xcb, 0xd3, 0xe5, 0x3b, 0x12, 0x4d, 0xb5, 0x1c, 0x5e, 0x60, 0x3d, 0x27, 0xe8, 0xf3, 0x51, + 0xc9, 0x53, 0x74, 0x65, 0x3a, 0xc9, 0x9a, 0x82, 0xd3, 0x58, 0x92, 0x3c, 0x85, 0xf9, 0x3e, 0xd3, + 0xf1, 0x07, 0x79, 0xac, 0xde, 0x99, 0x4e, 0xb4, 0x1e, 0x0b, 0x50, 0x53, 0x1a, 0xc7, 0x14, 0xfb, + 0x11, 0xcd, 0x59, 0xc6, 0x14, 0xe7, 0x60, 0x18, 0xee, 0xc4, 0xdb, 0xb0, 0x90, 0xd8, 0xb7, 0xff, + 0xd1, 0xdb, 0xd5, 0xdc, 0x4b, 0xc1, 0x73, 0x47, 0xbf, 0x8f, 0xdf, 0x4d, 0x5e, 0xaf, 0xb9, 0xcf, + 0x61, 0x29, 0xf8, 0x0c, 0x9a, 0x6a, 0x63, 0xc8, 0x47, 0xc9, 0x31, 0x7c, 0xad, 0x78, 0x0c, 0x7a, + 0x4f, 0x25, 0xdb, 0x16, 0xb4, 0xf4, 0x0e, 0x91, 0xd5, 0x24, 0xdd, 0xb5, 0x62, 0xba, 0x78, 0x77, + 0x25, 0x1f, 0x85, 0x79, 0x63, 0xa3, 0xc8, 0x5a, 0x92, 0xf1, 0xdd, 0x62, 0x46, 0x73, 0x9b, 0xe3, + 0xdb, 0x5d, 0xef, 0x98, 0xb9, 0x2b, 0x95, 0x78, 0x57, 0xfe, 0xa4, 0x06, 0x4d, 0xfd, 0x93, 0x6e, + 0x86, 0x83, 0x73, 0x18, 0x0c, 0x0b, 0x1d, 0x1c, 0x25, 0xdf, 0xde, 0x09, 0x86, 0x14, 0x25, 0x70, + 0x8b, 0x23, 0x37, 0xd2, 0x47, 0xf5, 0x4a, 0xb1, 0xe8, 0x0b, 0x84, 0x53, 0x21, 0x45, 0x9e, 0x27, + 0xb5, 0x5c, 0x9c, 0xd9, 0x77, 0x8b, 0x49, 0x72, 0x35, 0xbd, 0x03, 0x2d, 0x17, 0x9f, 0x38, 0x9b, + 0xf1, 0xdd, 0x77, 0xad, 0x98, 0xae, 0xa3, 0x44, 0x68, 0x2c, 0x8d, 0x63, 0xdb, 0x73, 0x8e, 0xf0, + 0x5c, 0x73, 0xb2, 0xfa, 0xac, 0x63, 0x7b, 0x1c, 0x0b, 0x51, 0x93, 0x81, 0xdc, 0x93, 0xaf, 0x87, + 0x46, 0x81, 0x65, 0x89, 0x97, 0x4a, 0xbf, 0x20, 0xd0, 0x91, 0xdc, 0x09, 0x86, 0xf9, 0x57, 0x1d, + 0x5f, 0xd5, 0x9c, 0xe6, 0x8b, 0x49, 0x85, 0xcb, 0x7f, 0x1f, 0xea, 0xa9, 0xe7, 0xf2, 0x18, 0x73, + 0xcb, 0x01, 0xdd, 0x97, 0xf7, 0xe1, 0xed, 0xa4, 0x5a, 0xbf, 0x99, 0x52, 0x6b, 0x54, 0xe4, 0xed, + 0x80, 0xf1, 0x5f, 0xd3, 0xcc, 0x8b, 0xf0, 0x9f, 0x2c, 0xfe, 0xf4, 0x1a, 0xda, 0xcf, 0xe2, 0x1f, + 0x17, 0xbe, 0x78, 0xb0, 0xd8, 0x7e, 0x01, 0xa7, 0xd7, 0x9d, 0xc8, 0xd9, 0x75, 0x42, 0x26, 0x7f, + 0x05, 0xce, 0x62, 0x0d, 0x44, 0x93, 0x8e, 0x19, 0xe6, 0xb1, 0x4a, 0xdc, 0xcf, 0x1d, 0xf8, 0xff, + 0x3b, 0x0e, 0xfc, 0x9f, 0x55, 0x73, 0x1c, 0xf8, 0x59, 0x7c, 0x17, 0x54, 0xb8, 0x09, 0x0f, 0xfe, + 0x5e, 0xf2, 0x11, 0x72, 0xa9, 0x40, 0x32, 0xf1, 0x0a, 0xb9, 0x97, 0x74, 0xe1, 0x8b, 0x64, 0x13, + 0x3e, 0xfc, 0x47, 0x69, 0x1f, 0xfe, 0x72, 0x81, 0xf4, 0x84, 0x13, 0x7f, 0x2f, 0xe9, 0xc4, 0x17, + 0xf5, 0x6e, 0x7a, 0xf1, 0x3f, 0x63, 0x7e, 0xf3, 0x1f, 0xe5, 0x78, 0xa0, 0xdf, 0x4c, 0x7a, 0xa0, + 0x53, 0xb4, 0xe6, 0xcb, 0x72, 0x41, 0xff, 0x38, 0xcf, 0x05, 0xbd, 0x93, 0x70, 0x41, 0xa7, 0x8c, + 0x2c, 0xed, 0x83, 0xde, 0x4b, 0xfa, 0xa0, 0x97, 0x0a, 0x24, 0x13, 0x4e, 0xe8, 0x9d, 0x84, 0x13, + 0x5a, 0xd4, 0xa9, 0xe1, 0x85, 0xde, 0x49, 0x78, 0xa1, 0x45, 0x82, 0x86, 0x1b, 0x7a, 0x27, 0xe1, + 0x86, 0x16, 0x09, 0x1a, 0x7e, 0xe8, 0x9d, 0x84, 0x1f, 0x5a, 0x24, 0x68, 0x38, 0xa2, 0xf7, 0x92, + 0x8e, 0x68, 0xf1, 0xfa, 0xfc, 0xdc, 0x13, 0xfd, 0xe9, 0x78, 0xa2, 0xbf, 0x5b, 0xc9, 0xf1, 0x44, + 0x69, 0xb6, 0x27, 0x7a, 0x3d, 0x7f, 0x27, 0x8b, 0x5d, 0xd1, 0xd9, 0x6f, 0x81, 0x49, 0x5f, 0xf4, + 0x7e, 0xca, 0x17, 0x7d, 0xbb, 0x40, 0x38, 0xe9, 0x8c, 0xfe, 0xbf, 0xf1, 0xb6, 0x7e, 0x34, 0xcd, + 0xb1, 0xb8, 0x6b, 0x3a, 0x16, 0x53, 0x6e, 0xb2, 0x49, 0xcf, 0xe2, 0x41, 0xd2, 0xb3, 0xb8, 0x3a, + 0x83, 0x6c, 0xc2, 0xb5, 0xd8, 0xce, 0x72, 0x2d, 0xda, 0x33, 0xb0, 0xe4, 0xfa, 0x16, 0x4f, 0x26, + 0x7d, 0x8b, 0xeb, 0x33, 0xf0, 0x65, 0x3a, 0x17, 0xdb, 0x59, 0xce, 0xc5, 0x2c, 0xa3, 0xcb, 0xf5, + 0x2e, 0x3e, 0x48, 0x78, 0x17, 0x57, 0x66, 0x59, 0xae, 0x9f, 0x3d, 0xf7, 0xe2, 0x1f, 0x1b, 0xd0, + 0x54, 0x89, 0x7a, 0xf6, 0x0f, 0x4b, 0xd0, 0x50, 0xd9, 0x94, 0x69, 0xbd, 0x3d, 0x0b, 0x75, 0xc4, + 0xe8, 0xdc, 0x0a, 0x59, 0x22, 0x0f, 0xa0, 0x8a, 0x5f, 0x52, 0x29, 0xa7, 0x47, 0x13, 0x12, 0x59, + 0x90, 0x94, 0xcb, 0x21, 0xaf, 0xbf, 0xb7, 0x17, 0xb2, 0x88, 0x2b, 0xe4, 0x02, 0x95, 0x25, 0x9c, + 0xed, 0xd0, 0x1d, 0xb9, 0x11, 0xd7, 0xab, 0x05, 0x2a, 0x0a, 0xf6, 0x7b, 0x00, 0x46, 0x2e, 0xe6, + 0x8c, 0x63, 0xb4, 0x6f, 0x43, 0x2b, 0xce, 0xae, 0xcc, 0xc8, 0x1a, 0x11, 0x30, 0xe5, 0x45, 0xa8, + 0xa2, 0x7d, 0x0b, 0x5a, 0x71, 0xea, 0x6a, 0x46, 0x5f, 0x21, 0x6f, 0x94, 0x52, 0xb2, 0x64, 0x3f, + 0x82, 0xc5, 0x54, 0x72, 0xe5, 0xc9, 0x73, 0x12, 0x22, 0x98, 0x37, 0x93, 0x26, 0xff, 0x97, 0xb2, + 0x28, 0x7e, 0x1d, 0xc0, 0x48, 0xad, 0x9e, 0x75, 0xff, 0x0d, 0x2f, 0xb1, 0x32, 0x9b, 0x97, 0x18, + 0xe7, 0xda, 0x34, 0xc4, 0xd6, 0xf2, 0x82, 0xfd, 0x07, 0x25, 0x58, 0x48, 0xe6, 0x3f, 0x7f, 0x89, + 0x43, 0xb8, 0x0c, 0x8b, 0x2e, 0xef, 0x44, 0xff, 0x21, 0x90, 0x50, 0xb3, 0x54, 0xad, 0xfd, 0x89, + 0x1e, 0x93, 0xcc, 0x7c, 0xfb, 0x09, 0xc6, 0x54, 0x9d, 0xd1, 0x79, 0xfe, 0x96, 0xee, 0xeb, 0x64, + 0xea, 0x8d, 0x1a, 0x1c, 0xf0, 0xa4, 0x86, 0xbe, 0x55, 0x17, 0x1a, 0x2c, 0x8b, 0xf6, 0xbf, 0x97, + 0xa1, 0xba, 0x13, 0xb2, 0xc0, 0xfe, 0xd7, 0xb2, 0xca, 0x6d, 0xb8, 0x0b, 0x55, 0x9e, 0x41, 0x6b, + 0x64, 0x37, 0x96, 0x52, 0xd9, 0x8d, 0x89, 0xbf, 0x4b, 0x8c, 0xb3, 0x1b, 0xef, 0x42, 0x95, 0xe7, + 0xcc, 0x9e, 0x5c, 0xf2, 0x37, 0x4b, 0xd0, 0x8a, 0xf3, 0x57, 0x4f, 0x2c, 0x6f, 0xe6, 0x52, 0x94, + 0x93, 0xb9, 0x14, 0x5f, 0x83, 0x5a, 0xc0, 0xb3, 0x1e, 0x84, 0x96, 0xa7, 0x33, 0x34, 0x78, 0x87, + 0x54, 0x40, 0x6c, 0x06, 0xf3, 0x66, 0x76, 0xee, 0xc9, 0x87, 0x71, 0x49, 0xfe, 0x6d, 0x44, 0xa7, + 0x1f, 0xae, 0x06, 0x81, 0x73, 0x2c, 0x4f, 0x7e, 0xb2, 0x12, 0xdf, 0x6a, 0xdb, 0xae, 0x37, 0xc8, + 0x4e, 0x2a, 0xb5, 0xff, 0xa2, 0x04, 0x0d, 0x99, 0xeb, 0x6a, 0xdf, 0x81, 0xca, 0x16, 0x7b, 0x89, + 0x03, 0x91, 0xd9, 0xae, 0x13, 0x03, 0xf9, 0x98, 0xcf, 0x42, 0xe2, 0xa9, 0x82, 0xd9, 0xf7, 0x74, + 0x22, 0xe6, 0xc9, 0x65, 0xef, 0x42, 0x95, 0x27, 0xd5, 0x9e, 0x5c, 0xf2, 0xb7, 0x9b, 0x50, 0x17, + 0x99, 0x99, 0xf6, 0x7f, 0x35, 0xa0, 0x2e, 0x12, 0x6d, 0xc9, 0x03, 0x68, 0x84, 0x87, 0xa3, 0x91, + 0x13, 0x1c, 0x5b, 0xd9, 0x7f, 0x34, 0x9b, 0xc8, 0xcb, 0x6d, 0x77, 0x05, 0x96, 0x2a, 0x21, 0x72, + 0x1b, 0xaa, 0x3d, 0x67, 0x8f, 0x4d, 0x84, 0x5f, 0xb2, 0x84, 0xd7, 0x9c, 0x3d, 0x46, 0x39, 0x9c, + 0x7c, 0x04, 0x4d, 0xb9, 0x2d, 0xea, 0xd0, 0x4f, 0xef, 0x57, 0x6d, 0xa6, 0x96, 0xb2, 0x9f, 0x40, + 0x43, 0x0e, 0x86, 0x3c, 0xd4, 0x79, 0xa9, 0xe9, 0x97, 0x62, 0xe6, 0x14, 0x8e, 0xbd, 0x5e, 0x2a, + 0x43, 0xf5, 0xc7, 0x65, 0xa8, 0xe2, 0xe0, 0xbe, 0x30, 0x13, 0x59, 0x01, 0x18, 0x3a, 0x61, 0xb4, + 0x7d, 0x38, 0x1c, 0xb2, 0xbe, 0x4c, 0x39, 0x34, 0x6a, 0xc8, 0x55, 0x38, 0x2d, 0x4a, 0xe1, 0x7e, + 0xf7, 0xb0, 0xd7, 0x63, 0x4c, 0xe4, 0x34, 0x36, 0x69, 0xba, 0x9a, 0xac, 0x42, 0x8d, 0xff, 0xed, + 0x9d, 0x7c, 0xe8, 0x5d, 0x2b, 0x5c, 0xd9, 0xf6, 0xb6, 0xeb, 0xc9, 0xd1, 0x08, 0x49, 0xdb, 0x87, + 0x96, 0xae, 0xc3, 0x43, 0x38, 0x76, 0x3d, 0xcf, 0xf5, 0x06, 0x52, 0xa3, 0x55, 0x11, 0xed, 0x12, + 0x7e, 0xca, 0xf1, 0xd6, 0xa8, 0x2c, 0x61, 0xfd, 0x9e, 0xe3, 0x0e, 0xe5, 0x10, 0x6b, 0x54, 0x96, + 0x90, 0xe9, 0x90, 0xab, 0xaf, 0xc8, 0x8d, 0xac, 0x50, 0x55, 0xb4, 0x3f, 0x2b, 0xe9, 0xe4, 0xec, + 0xac, 0x9c, 0x43, 0xee, 0x00, 0x0b, 0x0b, 0x20, 0x7c, 0xdb, 0x65, 0xf3, 0x01, 0x2a, 0x72, 0x3b, + 0x8d, 0x27, 0x25, 0x3e, 0x2d, 0xbc, 0xa1, 0xeb, 0x09, 0x37, 0xbd, 0x49, 0x65, 0x29, 0xb5, 0xc6, + 0xb5, 0x89, 0x35, 0x96, 0xed, 0x1b, 0x7d, 0x37, 0xe2, 0x26, 0x55, 0xb7, 0x8b, 0x1a, 0x72, 0x1f, + 0x1a, 0x7d, 0x76, 0xe4, 0xf6, 0x98, 0x4a, 0x9a, 0xbb, 0x38, 0x75, 0x6d, 0xd7, 0x39, 0x96, 0x2a, + 0x19, 0x3b, 0x82, 0xba, 0xa8, 0xd2, 0x53, 0x2a, 0x19, 0x53, 0x8a, 0x07, 0x5d, 0x9e, 0x32, 0xe8, + 0x4a, 0xc1, 0xa0, 0xab, 0xe9, 0x41, 0x5f, 0x78, 0x0a, 0x10, 0xab, 0x1b, 0x99, 0x87, 0xc6, 0x8e, + 0x77, 0xe0, 0xf9, 0x2f, 0xbd, 0xa5, 0x39, 0x2c, 0x3c, 0xdf, 0xdb, 0xc3, 0x5e, 0x96, 0x4a, 0x58, + 0x40, 0x9c, 0xeb, 0x0d, 0x96, 0xca, 0x04, 0xa0, 0x8e, 0x05, 0xd6, 0x5f, 0xaa, 0xe0, 0xf7, 0x63, + 0xbe, 0x7f, 0x4b, 0xd5, 0x0b, 0xbf, 0x86, 0x57, 0x55, 0x38, 0xf6, 0xbd, 0x90, 0x7d, 0x59, 0xff, + 0x03, 0x41, 0xee, 0xff, 0x25, 0x70, 0xe1, 0x47, 0x15, 0xa8, 0x71, 0x13, 0x65, 0xff, 0xb0, 0xa2, + 0x8d, 0x69, 0x46, 0xc0, 0x39, 0x0e, 0x0b, 0x2d, 0x1a, 0xc9, 0x89, 0x09, 0xe3, 0x66, 0x86, 0x83, + 0x6e, 0x9a, 0xe1, 0xa0, 0x45, 0xe3, 0xcf, 0x0b, 0x92, 0x12, 0x89, 0x30, 0xd0, 0x07, 0xd0, 0x1c, + 0x07, 0xfe, 0x20, 0x40, 0x2b, 0x5a, 0x4d, 0xfd, 0x29, 0x6a, 0x52, 0x6c, 0x5b, 0xc2, 0xa8, 0x16, + 0xb0, 0xb7, 0xa0, 0xa9, 0x6a, 0x73, 0xd2, 0x8f, 0x09, 0x54, 0xfb, 0xbe, 0xd4, 0x84, 0x0a, 0xe5, + 0xdf, 0xb8, 0x2e, 0x72, 0x05, 0xa5, 0xc2, 0xab, 0xe2, 0x85, 0xe7, 0xd2, 0x13, 0x58, 0x80, 0xd6, + 0x7a, 0xe0, 0x8f, 0x79, 0x32, 0xe2, 0xd2, 0x1c, 0xee, 0x5b, 0x67, 0x34, 0xf6, 0x83, 0x68, 0xa9, + 0x84, 0xdf, 0x1b, 0xaf, 0xf8, 0x77, 0x99, 0x9c, 0x82, 0x66, 0xd7, 0x39, 0x62, 0x08, 0x5b, 0xaa, + 0x10, 0x82, 0xcf, 0xd6, 0x9e, 0x7f, 0xc4, 0x02, 0x79, 0xfe, 0x96, 0xaa, 0x17, 0x56, 0x55, 0x1c, + 0xa6, 0x09, 0xd5, 0x2d, 0xdf, 0x63, 0x42, 0x55, 0xe8, 0x21, 0x3f, 0xf5, 0x4b, 0x25, 0xac, 0xc6, + 0xab, 0x44, 0x70, 0xad, 0x39, 0x5e, 0x8f, 0x0d, 0xb9, 0xa6, 0xb4, 0xa0, 0xb6, 0x11, 0x04, 0x7e, + 0xb0, 0x54, 0x7d, 0xb4, 0xfc, 0xd7, 0x9f, 0xad, 0x94, 0x3e, 0xfd, 0x6c, 0xa5, 0xf4, 0xcf, 0x9f, + 0xad, 0x94, 0x7e, 0xef, 0xf3, 0x95, 0xb9, 0x4f, 0x3f, 0x5f, 0x99, 0xfb, 0x87, 0xcf, 0x57, 0xe6, + 0xbe, 0x5b, 0x1e, 0xef, 0xee, 0xd6, 0xf9, 0x5b, 0xe8, 0xd6, 0x7f, 0x07, 0x00, 0x00, 0xff, 0xff, + 0x0c, 0x96, 0xfa, 0x9a, 0x30, 0x43, 0x00, 0x00, } func (m *Event) Marshal() (dAtA []byte, err error) { @@ -12212,6 +12430,54 @@ func (m *EventBlockSetLink) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.Relations != nil { + { + size, err := m.Relations.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + if m.Description != nil { + { + size, err := m.Description.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + if m.CardStyle != nil { + { + size, err := m.CardStyle.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if m.IconSize != nil { + { + size, err := m.IconSize.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintEvents(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } if m.Fields != nil { { size, err := m.Fields.MarshalToSizedBuffer(dAtA[:i]) @@ -12351,6 +12617,122 @@ func (m *EventBlockSetLinkFields) MarshalToSizedBuffer(dAtA []byte) (int, error) return len(dAtA) - i, nil } +func (m *EventBlockSetLinkIconSize) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventBlockSetLinkIconSize) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventBlockSetLinkIconSize) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.Value)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *EventBlockSetLinkCardStyle) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventBlockSetLinkCardStyle) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventBlockSetLinkCardStyle) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.Value)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *EventBlockSetLinkDescription) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventBlockSetLinkDescription) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventBlockSetLinkDescription) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Value != 0 { + i = encodeVarintEvents(dAtA, i, uint64(m.Value)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *EventBlockSetLinkRelations) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *EventBlockSetLinkRelations) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *EventBlockSetLinkRelations) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Value) > 0 { + for iNdEx := len(m.Value) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Value[iNdEx]) + copy(dAtA[i:], m.Value[iNdEx]) + i = encodeVarintEvents(dAtA, i, uint64(len(m.Value[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + func (m *EventBlockSetBookmark) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -17086,6 +17468,22 @@ func (m *EventBlockSetLink) Size() (n int) { l = m.Fields.Size() n += 1 + l + sovEvents(uint64(l)) } + if m.IconSize != nil { + l = m.IconSize.Size() + n += 1 + l + sovEvents(uint64(l)) + } + if m.CardStyle != nil { + l = m.CardStyle.Size() + n += 1 + l + sovEvents(uint64(l)) + } + if m.Description != nil { + l = m.Description.Size() + n += 1 + l + sovEvents(uint64(l)) + } + if m.Relations != nil { + l = m.Relations.Size() + n += 1 + l + sovEvents(uint64(l)) + } return n } @@ -17127,6 +17525,57 @@ func (m *EventBlockSetLinkFields) Size() (n int) { return n } +func (m *EventBlockSetLinkIconSize) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != 0 { + n += 1 + sovEvents(uint64(m.Value)) + } + return n +} + +func (m *EventBlockSetLinkCardStyle) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != 0 { + n += 1 + sovEvents(uint64(m.Value)) + } + return n +} + +func (m *EventBlockSetLinkDescription) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Value != 0 { + n += 1 + sovEvents(uint64(m.Value)) + } + return n +} + +func (m *EventBlockSetLinkRelations) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Value) > 0 { + for _, s := range m.Value { + l = len(s) + n += 1 + l + sovEvents(uint64(l)) + } + } + return n +} + func (m *EventBlockSetBookmark) Size() (n int) { if m == nil { return 0 @@ -27066,6 +27515,150 @@ func (m *EventBlockSetLink) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field IconSize", 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.IconSize == nil { + m.IconSize = &EventBlockSetLinkIconSize{} + } + if err := m.IconSize.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CardStyle", 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.CardStyle == nil { + m.CardStyle = &EventBlockSetLinkCardStyle{} + } + if err := m.CardStyle.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", 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.Description == nil { + m.Description = &EventBlockSetLinkDescription{} + } + if err := m.Description.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Relations", 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.Relations == nil { + m.Relations = &EventBlockSetLinkRelations{} + } + if err := m.Relations.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipEvents(dAtA[iNdEx:]) @@ -27324,6 +27917,295 @@ func (m *EventBlockSetLinkFields) Unmarshal(dAtA []byte) error { } return nil } +func (m *EventBlockSetLinkIconSize) Unmarshal(dAtA []byte) 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: IconSize: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: IconSize: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + m.Value = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Value |= model.BlockContentLinkIconSize(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventBlockSetLinkCardStyle) Unmarshal(dAtA []byte) 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: CardStyle: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CardStyle: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + m.Value = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Value |= model.BlockContentLinkCardStyle(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventBlockSetLinkDescription) Unmarshal(dAtA []byte) 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: Description: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Description: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + m.Value = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowEvents + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Value |= model.BlockContentLinkDescription(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *EventBlockSetLinkRelations) Unmarshal(dAtA []byte) 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: Relations: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Relations: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", 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.Value = append(m.Value, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipEvents(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthEvents + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *EventBlockSetBookmark) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/pb/protos/commands.proto b/pb/protos/commands.proto index 1d0fe0dea..6e3b06e8c 100644 --- a/pb/protos/commands.proto +++ b/pb/protos/commands.proto @@ -15,15 +15,1447 @@ import "google/protobuf/struct.proto"; * Response – message from a middleware. */ message Rpc { - - message Metrics { - message SetParameters { + message App { + message GetVersion { message Request { - string platform = 1; + } + message Response { + Error error = 1; + string version = 2; + string details = 3; // build date, branch and commit + + 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 SetDeviceState { + message Request { + DeviceState deviceState = 1; + + enum DeviceState { + BACKGROUND = 0; + FOREGROUND = 1; + } } message Response { Error error = 1; + + message Error { + Code code = 1; + string description = 2; + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + + NODE_NOT_STARTED = 101; + } + } + + } + } + + + message Shutdown { + message Request { + } + message Response { + Error error = 1; + + message Error { + Code code = 1; + string description = 2; + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + + NODE_NOT_STARTED = 101; + } + } + + } + } + } + + 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 Convert { + message Request { + string mnemonic = 1; // Mnemonic of a wallet to convert + string entropy = 2; // entropy of a wallet to convert + + } + + 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; // mnemonic is wrong + } + } + + string entropy = 2; + string mnemonic = 3; + } + } + + } + + message Account { + message Config { + bool enableDataview = 1; + bool enableDebug = 2; + bool enableReleaseChannelSwitch = 3; + bool enableSpaces = 4; + + google.protobuf.Struct extra = 100; + } + + 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 alphaInviteCode = 20; + } + + /** + * 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 + anytype.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 + Config config = 3; // deprecated, use account + 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; + FAILED_TO_STOP_RUNNING_NODE = 104; + + BAD_INVITE_CODE = 900; + + NET_ERROR = 901; // means general network error + NET_CONNECTION_REFUSED = 902; // means we wasn't able to connect to the cafe server + NET_OFFLINE = 903; // client can additionally support this error code to notify user that device is offline + } + } + } + } + + 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; + FAILED_TO_STOP_RUNNING_NODE = 107; + ANOTHER_ANYTYPE_PROCESS_IS_RUNNING = 108; + ACCOUNT_IS_DELETED = 109; + } + } + } + } + + message Delete { + message Request { + bool revert = 1; + } + + message Response { + Error error = 1; // Error while trying to recover an account + anytype.model.Account.Status status = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; // No error; + UNKNOWN_ERROR = 1; // Any other errors + BAD_INPUT = 2; + + ACCOUNT_IS_ALREADY_DELETED = 101; + ACCOUNT_IS_ACTIVE = 102; + } + } + } + } + + 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 + anytype.model.Account account = 2; // Selected account + Config config = 3; // deprecated, use 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; + FAILED_TO_STOP_SEARCHER_NODE = 106; + FAILED_TO_RECOVER_PREDEFINED_BLOCKS = 107; + ANOTHER_ANYTYPE_PROCESS_IS_RUNNING = 108; + + } + } + } + } + + message Stop { + /** + * Front end to middleware request to stop currently running account node and optionally remove the locally stored data + */ + message Request { + bool removeData = 1; + } + + /** + * Middleware-to-front-end response for an account stop request + */ + message Response { + Error error = 1; // Error while trying to launch/select 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; // Id or root path is wrong + + ACCOUNT_IS_NOT_RUNNING = 101; + FAILED_TO_STOP_NODE = 102; + FAILED_TO_REMOVE_ACCOUNT_DATA = 103; + } + } + } + } + + message GetConfig { + message Get { + message Request { + } + + } + } + } + + message Workspace { + message GetCurrent { + message Request { + } + message Response { + Error error = 1; + string workspaceId = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + + message GetAll { + message Request { + } + + message Response { + Error error = 1; + repeated string workspaceIds = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + + message Create { + message Request { + string name = 1; + } + + message Response { + Error error = 1; + string workspaceId = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + + message SetIsHighlighted { + message Request { + string objectId = 1; + bool isHighlighted = 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 Select { + message Request { + string workspaceId = 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 Export { + message Request { + // the path where export files will place + string path = 1; + string workspaceId = 2; + } + message Response { + Error error = 1; + string path = 2; + ResponseEvent event = 3; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + + } + + message Object { + message Open { + message Request { + string contextId = 1; // id of the context blo1k + string objectId = 2; + string traceId = 3; + } + + message Response { + Error error = 1; + ResponseEvent event = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + + NOT_FOUND = 3; + ANYTYPE_NEEDS_UPGRADE = 10; // failed to read unknown data format – need to upgrade anytype + // ... + } + } + } + } + + message Close { + message Request { + string contextId = 1; // deprecated + string objectId = 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 Show { + message Request { + string contextId = 1; // deprecated + string objectId = 2; + string traceId = 3; + } + + message Response { + Error error = 1; + ResponseEvent event = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + NOT_FOUND = 3; + ANYTYPE_NEEDS_UPGRADE = 10; // failed to read unknown data format – need to upgrade anytype + // ... + } + } + } + } + + message Create { + message Request { + google.protobuf.Struct details = 1; // object details + } + + message Response { + Error error = 1; + string pageId = 3; + ResponseEvent event = 4; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + + message CreateSet { + message Request { + repeated string source = 1; + google.protobuf.Struct details = 2; // if omitted the name of page will be the same with object type + string templateId = 3; // optional template id for creating from template + } + + message Response { + Error error = 1; + string id = 3; + ResponseEvent event = 4; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + UNKNOWN_OBJECT_TYPE_URL = 3; + } + } + } + } + + message Duplicate { + message Request { + string contextId = 1; + } + + message Response { + Error error = 1; + // created template id + string id = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + + message OpenBreadcrumbs { + message Request { + string contextId = 1; // deprecated + string traceId = 2; + } + + message Response { + Error error = 1; + string objectId = 2; + ResponseEvent event = 3; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + + message SetBreadcrumbs { + message Request { + string breadcrumbsId = 1; + repeated string ids = 2; // page ids + } + + message Response { + Error error = 1; + ResponseEvent event = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + + message ImportMarkdown { + message Request { + string contextId = 1; + string importPath = 2; + } + + message Response { + Error error = 1; + repeated string rootLinkIds = 2; + ResponseEvent event = 3; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + + message ShareByLink { + message Request { + string objectId = 1; + } + + message Response { + string link = 1; + Error error = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + + message AddWithObjectId { + message Request { + string objectId = 1; + string payload = 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 Search { + message Request { + repeated anytype.model.Block.Content.Dataview.Filter filters = 1; + repeated anytype.model.Block.Content.Dataview.Sort sorts = 2; + string fullText = 3; + int32 offset = 4; + int32 limit = 5; + // additional filter by objectTypes + repeated string objectTypeFilter = 6; // deprecated, to be removed + // needed keys in details for return, when empty - will return all + repeated string keys = 7; + } + + message Response { + Error error = 1; + repeated google.protobuf.Struct records = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + + message Graph { + message Request { + repeated anytype.model.Block.Content.Dataview.Filter filters = 1; + int32 limit = 2; + // additional filter by objectTypes + repeated string objectTypeFilter = 3; + repeated string keys = 4; + } + + message Edge { + enum Type { + Link = 0; + Relation = 1; + } + string source = 1; + string target = 2; + string name = 3; + Type type = 4; + string description = 5; + string iconImage = 6; + string iconEmoji = 7; + bool hidden = 8; + } + + message Response { + Error error = 1; + repeated google.protobuf.Struct nodes = 2; + repeated Edge edges = 3; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + + message SearchSubscribe { + message Request { + // (optional) subscription identifier + // client can provide some string or middleware will generate it automatically + // if subId is already registered on middleware, the new query will replace previous subscription + string subId = 1; + // filters + repeated anytype.model.Block.Content.Dataview.Filter filters = 2; + // sorts + repeated anytype.model.Block.Content.Dataview.Sort sorts = 3; + // results limit + int64 limit = 5; + // initial offset; middleware will find afterId + int64 offset = 6; + // (required) needed keys in details for return, for object fields mw will return (and subscribe) objects as dependent + repeated string keys = 7; + + // (optional) pagination: middleware will return results after given id + string afterId = 8; + // (optional) pagination: middleware will return results before given id + string beforeId = 9; + + repeated string source = 10; + + string ignoreWorkspace = 12; + // disable dependent subscription + bool noDepSubscription = 13; + } + + message Response { + Error error = 1; + + repeated google.protobuf.Struct records = 2; + repeated google.protobuf.Struct dependencies = 3; + + string subId = 4; + + Event.Object.Subscription.Counters counters = 5; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + + message SubscribeIds { + message Request { + // (optional) subscription identifier + // client can provide some string or middleware will generate it automatically + // if subId is already registered on middleware, the new query will replace previous subscription + string subId = 1; + // ids for subscribe + repeated string ids = 2; + // sorts + // (required) needed keys in details for return, for object fields mw will return (and subscribe) objects as dependent + repeated string keys = 3; + + string ignoreWorkspace = 11; + } + + message Response { + Error error = 1; + + repeated google.protobuf.Struct records = 2; + repeated google.protobuf.Struct dependencies = 3; + + string subId = 4; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + + message SearchUnsubscribe { + message Request { + repeated string subIds = 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 SetLayout { + message Request { + string contextId = 1; + anytype.model.ObjectType.Layout layout = 3; + } + + message Response { + Error error = 1; + ResponseEvent event = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + + message SetIsFavorite { + message Request { + string contextId = 1; + bool isFavorite = 2; + } + + message Response { + Error error = 1; + ResponseEvent event = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + + message SetIsArchived { + message Request { + string contextId = 1; + bool isArchived = 2; + } + + message Response { + Error error = 1; + ResponseEvent event = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + + message SetObjectType { + message Request { + string contextId = 1; + string objectTypeUrl = 3; + } + message Response { + Error error = 1; + ResponseEvent event = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + UNKNOWN_OBJECT_TYPE_URL = 3; + } + } + } + } + + message SetDetails { + message Detail { + string key = 1; + google.protobuf.Value value = 2; // NUll - removes key + } + message Request { + string contextId = 1; + repeated Detail details = 2; + } + message Response { + Error error = 1; + ResponseEvent event = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + + message ToSet { + message Request { + string contextId = 1; + repeated string source = 2; + } + + message Response { + Error error = 1; + string setId = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + + // Available undo/redo operations + message UndoRedoCounter { + int32 undo = 1; + int32 redo = 2; + } + + message Undo { + message Request { + string contextId = 1; // id of the context object + } + message Response { + Error error = 1; + ResponseEvent event = 2; + UndoRedoCounter counters = 3; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + CAN_NOT_MOVE = 3; + // ... + } + } + } + } + + message Redo { + message Request { + string contextId = 1; // id of the context object + } + + message Response { + Error error = 1; + ResponseEvent event = 2; + UndoRedoCounter counters = 3; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + CAN_NOT_MOVE = 3; + // ... + } + } + } + } + + message ListDuplicate { + message Request { + repeated string objectIds = 1; + } + + message Response { + Error error = 1; + repeated string ids = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + + message ListDelete { + // Deletes the object, keys from the local store and unsubscribe from remote changes. Also offloads all orphan files + message Request { + repeated string objectIds = 1; // objects to remove + } + message Response { + Error error = 1; + ResponseEvent event = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + + message ListSetIsArchived { + message Request { + repeated string objectIds = 1; + bool isArchived = 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 ListSetIsFavorite { + message Request { + repeated string objectIds = 1; + bool isFavorite = 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 ApplyTemplate { + message Request { + string contextId = 1; + // id of template + string templateId = 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 ListExport { + message Request { + // the path where export files will place + string path = 1; + // ids of documents for export, when empty - will export all available docs + repeated string objectIds = 2; + // export format + Format format = 3; + // save as zip file + bool zip = 4; + // include all nested + bool includeNested = 5; + // include all files + bool includeFiles = 6; + } + + message Response { + Error error = 1; + string path = 2; + int32 succeed = 4; + ResponseEvent event = 3; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + + enum Format { + Markdown = 0; + Protobuf = 1; + JSON = 2; + DOT = 3; + SVG = 4; + GRAPH_JSON = 5; + } + } + } + + message ObjectRelation { + message Add { + message Request { + string contextId = 1; + anytype.model.Relation relation = 2; + } + + message Response { + Error error = 1; + ResponseEvent event = 2; + string relationKey = 3; // deprecated + anytype.model.Relation relation = 4; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + } + } + } + } + message Update { + message Request { + string contextId = 1; + string relationKey = 2; // key of relation to update + anytype.model.Relation relation = 3; + } + + message Response { + Error error = 1; + ResponseEvent event = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + } + } + } + } + message Delete { + message Request { + string contextId = 1; + string relationKey = 2; + } + + message Response { + Error error = 1; + ResponseEvent event = 3; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + } + } + } + } + message ListAvailable { + message Request { + string contextId = 1; + } + message Response { + Error error = 1; + repeated anytype.model.Relation relations = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + message AddFeatured { + message Request { + string contextId = 1; + repeated string relations = 2; + } + + message Response { + Error error = 1; + ResponseEvent event = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + message RemoveFeatured { + message Request { + string contextId = 1; + repeated string relations = 2; + } + + message Response { + Error error = 1; + ResponseEvent event = 2; + message Error { Code code = 1; string description = 2; @@ -39,15 +1471,424 @@ message Rpc { } } - message ExternalDrop { - message Files { + message ObjectRelationOption { + message Add { + message Request { + string contextId = 1; + string relationKey = 2; // relation key to add the option + anytype.model.Relation.Option option = 3; // id of select options will be autogenerated + } + + message Response { + Error error = 1; + ResponseEvent event = 2; + anytype.model.Relation.Option option = 3; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + } + } + } + } + message Update { + message Request { + string contextId = 1; + string relationKey = 2; // relation key to add the option + anytype.model.Relation.Option option = 3; // id of select options will be autogenerated + } + + message Response { + Error error = 1; + ResponseEvent event = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + } + } + } + } + message Delete { + message Request { + string contextId = 1; + string relationKey = 2; // relation key to add the option + string optionId = 3; // id of select options to remove + bool confirmRemoveAllValuesInRecords = 4; // confirm remove all values in records + } + + message Response { + Error error = 1; + ResponseEvent event = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + SOME_RECORDS_HAS_RELATION_VALUE_WITH_THIS_OPTION = 3; // need to confirm with confirmRemoveAllValuesInRecords=true + } + } + } + } + } + + message ObjectType { + message List { + message Request { + } + + message Response { + Error error = 1; + repeated anytype.model.ObjectType objectTypes = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + message Create { + message Request { + anytype.model.ObjectType objectType = 1; + } + + message Response { + Error error = 1; + anytype.model.ObjectType objectType = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + UNKNOWN_OBJECT_TYPE_URL = 3; + // ... + } + } + } + } + message Relation { + message Add { + message Request { + string objectTypeUrl = 1; + repeated anytype.model.Relation relations = 2; + } + + message Response { + Error error = 1; + repeated anytype.model.Relation relations = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + UNKNOWN_OBJECT_TYPE_URL = 3; + READONLY_OBJECT_TYPE = 4; + // ... + } + } + } + } + message Remove { + message Request { + string objectTypeUrl = 1; + string relationKey = 2; + } + + message Response { + Error error = 1; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + UNKNOWN_OBJECT_TYPE_URL = 3; + READONLY_OBJECT_TYPE = 4; + // ... + } + } + } + } + message Update { + message Request { + string objectTypeUrl = 1; + anytype.model.Relation relation = 2; + } + + message Response { + Error error = 1; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + UNKNOWN_OBJECT_TYPE_URL = 3; + READONLY_OBJECT_TYPE = 4; + // ... + } + } + } + } + message List { + message Request { + string objectTypeUrl = 1; + bool appendRelationsFromOtherTypes = 2; // add relations from other object types in the end + } + + message Response { + Error error = 1; + repeated anytype.model.Relation relations = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + UNKNOWN_OBJECT_TYPE_URL = 3; + // ... + } + } + } + } + } + } + + message History { + message Version { + string id = 1; + repeated string previousIds = 2; + string authorId = 3; + string authorName = 4; + int64 time = 5; + int64 groupId = 6; + } + + // returns list of versions (changes) + message GetVersions { + message Request { + string pageId = 1; + // when indicated, results will include versions before given id + string lastVersionId = 2; + // desired count of versions + int32 limit = 3; + } + + message Response { + Error error = 1; + repeated Version versions = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + + // returns blockShow event for given version + message ShowVersion { + message Request { + string pageId = 1; + string versionId = 2; + string traceId = 3; + } + + message Response { + Error error = 1; + Event.Object.Show objectShow = 2; + History.Version version = 3; + string traceId = 4; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + + message SetVersion { + message Request { + string pageId = 1; + string versionId = 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 File { + message Offload { + message Request { + string id = 1; + bool includeNotPinned = 2; + } + message Response { + Error error = 1; + uint64 bytesOffloaded = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + NODE_NOT_STARTED = 103; + FILE_NOT_YET_PINNED = 104; + + } + } + } + } + message ListOffload { + message Request { + repeated string onlyIds = 1; // empty means all + bool includeNotPinned = 2; // false mean not-yet-pinned files will be not + } + + message Response { + Error error = 1; + int32 filesOffloaded = 2; + uint64 bytesOffloaded = 3; + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + NODE_NOT_STARTED = 103; + + } + } + } + } + message Upload { + message Request { + string url = 1; + string localPath = 2; + anytype.model.Block.Content.File.Type type = 3; + bool disableEncryption = 4; // deprecated, has no affect + anytype.model.Block.Content.File.Style style = 5; + + } + + message Response { + Error error = 1; + string hash = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + } + } + } + } + message Download { + message Request { + string hash = 1; + string path = 2; // path to save file. Temp directory is used if empty + } + + 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 = 3; + } + } + } + } + message Drop { message Request { string contextId = 1; string dropTargetId = 2; // id of the simple block to insert considering position anytype.model.Block.Position position = 3; // position relatively to the dropTargetId simple block repeated string localFilePaths = 4; } - message Response { Error error = 1; ResponseEvent event = 2; @@ -64,100 +1905,26 @@ message Rpc { } } } - - message Content { - message Request { - string contextId = 1; - string focusedBlockId = 2; // can be null - bytes content = 3; // TODO - } - - message Response { - Error error = 1; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } } - message BlockList { - - message ConvertChildrenToPages { - message Request { - string contextId = 1; - repeated string blockIds = 2; - string objectType = 3; - } - - message Response { - Error error = 1; - repeated string linkIds = 2; - ResponseEvent event = 3; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } + message Navigation { + enum Context { + Navigation = 0; + MoveTo = 1; // do not show sets/archive + LinkTo = 2; // same for mention, do not show sets/archive } - message Move { + message ListObjects { message Request { - string contextId = 1; - repeated string blockIds = 2; - string targetContextId = 3; - string dropTargetId = 4; // id of the simple block to insert considering position - anytype.model.Block.Position position = 5; // position relatively to the dropTargetId simple block + Context context = 1; + string fullText = 2; + int32 limit = 3; + int32 offset = 4; } message Response { Error error = 1; - ResponseEvent event = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - - message MoveToNewPage { - message Request { - string contextId = 1; - repeated string blockIds = 2; - google.protobuf.Struct details = 3; // page details - string dropTargetId = 4; // id of the simple block to insert considering position - anytype.model.Block.Position position = 5; // position relatively to the dropTargetId simple block - } - - message Response { - Error error = 1; - string linkId = 2; - ResponseEvent event = 3; + repeated anytype.model.ObjectInfo objects = 2; message Error { Code code = 1; @@ -174,19 +1941,115 @@ message Rpc { } /* - * Makes blocks copy by given ids and paste it to shown place + * Get the info for page alongside with info for all inbound and outbound links from/to this page */ - message Duplicate { + message GetObjectInfoWithLinks { message Request { - string contextId = 1; // id of the context block - string targetId = 2; // id of the closest block - repeated string blockIds = 3; // id of block for duplicate - anytype.model.Block.Position position = 4; + string objectId = 1; + Context context = 2; } message Response { Error error = 1; - repeated string blockIds = 2; + anytype.model.ObjectInfoWithLinks object = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + } + + message Template { + message CreateFromObject { + message Request { + // id of block for making them template + string contextId = 1; + } + + message Response { + Error error = 1; + // created template id + string id = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + message CreateFromObjectType { + message Request { + // id of desired object type + string objectType = 1; + } + + message Response { + Error error = 1; + // created template id + string id = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + message Clone { + message Request { + // id of template block for cloning + string contextId = 1; + } + + message Response { + Error error = 1; + // created template id + string id = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + message ExportAll { + message Request { + // the path where export files will place + string path = 1; + } + + message Response { + Error error = 1; + string path = 2; ResponseEvent event = 3; message Error { @@ -202,224 +2065,47 @@ message Rpc { } } } + } - message Set { - // commands acceptable only for text blocks, others will be ignored - message Text { - message Style { - message Request { - string contextId = 1; - repeated string blockIds = 2; - anytype.model.Block.Content.Text.Style style = 3; - } + message LinkPreview { + message Request { + string url = 1; + } - message Response { - Error error = 1; - ResponseEvent event = 2; + message Response { + Error error = 1; + anytype.model.LinkPreview linkPreview = 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; - // ... - } - } - } - } - message Color { - message Request { - string contextId = 1; - repeated string blockIds = 2; - string color = 3; - } - - message Response { - Error error = 1; - ResponseEvent event = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - message Mark { - message Request { - string contextId = 1; - repeated string blockIds = 2; - anytype.model.Block.Content.Text.Mark mark = 3; - } - - message Response { - Error error = 1; - ResponseEvent event = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - } - - message BackgroundColor { - message Request { - string contextId = 1; - repeated string blockIds = 2; - string color = 3; - } - - message Response { - Error error = 1; - ResponseEvent event = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - message Align { - message Request { - string contextId = 1; - repeated string blockIds = 2; // when empty - align will be applied as layoutAlign - anytype.model.Block.Align align = 3; - } - - message Response { - Error error = 1; - ResponseEvent event = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - message Fields { - message Request { - string contextId = 1; - repeated BlockField blockFields = 2; - - message BlockField { - string blockId = 1; - google.protobuf.Struct fields = 2; - } - } - message Response { - Error error = 1; - ResponseEvent event = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - message Div { - message Style { - message Request { - string contextId = 1; - repeated string blockIds = 2; - anytype.model.Block.Content.Div.Style style = 3; - } - - message Response { - Error error = 1; - ResponseEvent event = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - } - message File { - message Style { - message Request { - string contextId = 1; - repeated string blockIds = 2; - model.Block.Content.File.Style style = 3; - } - - message Response { - Error error = 1; - ResponseEvent event = 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; } } } + } - message TurnInto { - + message Unsplash { + message Search { message Request { - string contextId = 1; - repeated string blockIds = 2; - anytype.model.Block.Content.Text.Style style = 3; + string query = 1; // empty means random images + int32 limit = 2; // may be omitted if the request was cached previously with another limit } message Response { Error error = 1; - ResponseEvent event = 2; + repeated Picture pictures = 2; + + message Picture { + string id = 1; + string url = 2; + string artist = 3; + string artistUrl = 4; + } message Error { Code code = 1; @@ -429,17 +2115,41 @@ message Rpc { NULL = 0; UNKNOWN_ERROR = 1; BAD_INPUT = 2; + + RATE_LIMIT_EXCEEDED = 100; // ... } } } + } + message Download { + message Request { + string pictureId = 1; + } + + message Response { + Error error = 1; + string hash = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + + RATE_LIMIT_EXCEEDED = 100; + // ... + } + } + } } } - /* - * Namespace, that agregates subtopics and actions, that relates to blocks. - */ + // Block commands message Block { message Replace { message Request { @@ -467,31 +2177,6 @@ message Rpc { } } - message UpdateContent { - message Request { - string contextId = 1; - string blockId = 2; - anytype.model.Block block = 3; - } - - message Response { - Error error = 1; - ResponseEvent event = 3; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - message Split { message Request { string contextId = 1; @@ -652,56 +2337,6 @@ message Rpc { } } - message ImportMarkdown { - message Request { - string contextId = 1; - string importPath = 2; - } - - message Response { - Error error = 1; - repeated string rootLinkIds = 2; - ResponseEvent event = 3; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - - message Export { - message Request { - string contextId = 1; - repeated anytype.model.Block blocks = 2; - } - - message Response { - Error error = 1; - string path = 2; - ResponseEvent event = 3; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - message Upload { message Request { string contextId = 1; @@ -752,986 +2387,447 @@ message Rpc { } } - message Set { - message Fields { - message Request { - string contextId = 1; - string blockId = 2; - google.protobuf.Struct fields = 3; - } + /* + * Create a Smart/Internal block. Request can contain a block with a content, or it can be an empty block with a specific block.content. + * **Example scenario** + * 1A. Create Page on a dashboard + * 1. Front -> MW: Rpc.Block.Create.Request(blockId:dashboard.id, position:bottom, block: emtpy block with page content and id = "") + * 2. Front -> MW: Rpc.Block.Close.Request(block: dashboard.id) + * 3. Front <- MW: Rpc.Block.Close.Response(err) + * 4. Front <- MW: Rpc.Block.Create.Response(page.id) + * 5. Front <- MW: Rpc.Block.Open.Response(err) + * 6. Front <- MW: Event.Block.Show(page) + * 1B. Create Page on a Page + * 1. Front -> MW: Rpc.Block.Create.Request(blockId:dashboard.id, position:bottom, block: emtpy block with page content and id = "") + * 2. Front <- MW: Rpc.Block.Create.Response(newPage.id) + * 3. Front <- MW: Event.Block.Show(newPage) + */ + message Create { + // common simple block command + message Request { + string contextId = 1; // id of the context object + string targetId = 2; // id of the closest block + anytype.model.Block block = 3; + anytype.model.Block.Position position = 4; + } - message Response { - Error error = 1; - ResponseEvent event = 2; + message Response { + Error error = 1; + string blockId = 2; + ResponseEvent event = 3; - 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; + // ... } } } + } - message Details { - message Detail { - string key = 1; - google.protobuf.Value value = 2; // NUll - removes key - } - message Request { - string contextId = 1; - repeated Detail details = 2; - } - message Response { - Error error = 1; - ResponseEvent event = 2; + /* + * Remove blocks from the childrenIds of its parents + */ + message ListDelete { + message Request { + string contextId = 1; // id of the context object + repeated string blockIds = 2; // targets to remove - message Error { - Code code = 1; - string description = 2; + } - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } + message Response { + Error error = 1; + ResponseEvent event = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... } } } + } - message Restrictions { - message Request { - string contextId = 1; - string blockId = 2; - anytype.model.Block.Restrictions restrictions = 3; - } + message SetFields { + message Request { + string contextId = 1; + string blockId = 2; + google.protobuf.Struct fields = 3; + } - message Response { - Error error = 1; - ResponseEvent event = 2; + message Response { + Error error = 1; + ResponseEvent event = 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; + // ... } } } + } - message Page { - message IsArchived { - message Request { - string contextId = 1; - string blockId = 2; - bool isArchived = 3; - } + message ListSetAlign { + message Request { + string contextId = 1; + repeated string blockIds = 2; // when empty - align will be applied as layoutAlign + anytype.model.Block.Align align = 3; + } - message Response { - Error error = 1; + message Response { + Error error = 1; + ResponseEvent event = 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; + // ... } } } + } - message Latex { + message ListSetFields { + message Request { + string contextId = 1; + repeated BlockField blockFields = 2; + + message BlockField { + string blockId = 1; + google.protobuf.Struct fields = 2; + } + } + message Response { + Error error = 1; + ResponseEvent event = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + + /* + * Makes blocks copy by given ids and paste it to shown place + */ + message ListDuplicate { + message Request { + string contextId = 1; // id of the context object + string targetId = 2; // id of the closest block + repeated string blockIds = 3; // id of block for duplicate + anytype.model.Block.Position position = 4; + } + + message Response { + Error error = 1; + repeated string blockIds = 2; + ResponseEvent event = 3; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + + message ListUpdate { + message Request { + string contextId = 1; + repeated string blockIds = 2; + oneof field { + Text text = 3; + string backgroundColor = 4; + anytype.model.Block.Align align = 5; + google.protobuf.Struct fields = 6; + anytype.model.Block.Content.Div.Style divStyle = 7; + model.Block.Content.File.Style fileStyle = 8; + } message Text { - message Request { - string contextId = 1; - string blockId = 2; - string text = 3; - } - - message Response { - Error error = 1; - ResponseEvent event = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - } - message Text { - message Text { - message Request { - string contextId = 1; - string blockId = 2; - string text = 3; - anytype.model.Block.Content.Text.Marks marks = 4; - } - - message Response { - Error error = 1; - ResponseEvent event = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - - message Color { - message Request { - string contextId = 1; - string blockId = 2; - string color = 3; - } - - message Response { - Error error = 1; - ResponseEvent event = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - - message Style { - message Request { - string contextId = 1; - string blockId = 2; - anytype.model.Block.Content.Text.Style style = 3; - } - - message Response { - Error error = 1; - ResponseEvent event = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - - message Checked { - message Request { - string contextId = 1; - string blockId = 2; - bool checked = 3; - } - - message Response { - Error error = 1; - ResponseEvent event = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - - message Icon { - message Request { - string contextId = 1; - string blockId = 2; - string iconImage = 3; // in case both image and emoji are set, image has a priority to show - string iconEmoji = 5; - } - - message Response { - Error error = 1; - ResponseEvent event = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - } - - message File { - message Name { - message Request { - string contextId = 1; - string blockId = 2; - string name = 3; - } - - message Response { - Error error = 1; - ResponseEvent event = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - - } - - message Image { - message Name { - message Request { - string contextId = 1; - string blockId = 2; - string name = 3; - } - - message Response { - Error error = 1; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - - message Width { - message Request { - string contextId = 1; - string blockId = 2; - int32 width = 3; - } - - message Response { - Error error = 1; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - } - - message Video { - message Name { - message Request { - string contextId = 1; - string blockId = 2; - string name = 3; - } - - message Response { - Error error = 1; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - - message Width { - message Request { - string contextId = 1; - string blockId = 2; - int32 width = 3; - } - - message Response { - Error error = 1; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - } - - message Link { - message TargetBlockId { - message Request { - string contextId = 1; - string blockId = 2; - string targetBlockId = 3; - } - - message Response { - Error error = 1; - ResponseEvent event = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } + oneof field { + anytype.model.Block.Content.Text.Style style = 1; + string color = 2; + anytype.model.Block.Content.Text.Mark mark = 3; } } } } - message Relation { - message SetKey { - message Request { - string contextId = 1; - string blockId = 2; - string key = 3; - } - - message Response { - Error error = 1; - ResponseEvent event = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - } - } - } + message ListConvertToObjects { + message Request { + string contextId = 1; + repeated string blockIds = 2; + string objectType = 3; } - message Add { - message Request { - string contextId = 1; - string blockId = 2; - anytype.model.Relation relation = 3; - } - message Response { - Error error = 1; - ResponseEvent event = 2; + message Response { + Error error = 1; + repeated string linkIds = 2; + ResponseEvent event = 3; - 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; + // ... } } } } - message ObjectType { - message Set { - message Request { - string contextId = 1; - string objectTypeUrl = 3; - } - message Response { - Error error = 1; - ResponseEvent event = 2; + message ListMoveToExistingObject { + message Request { + string contextId = 1; + repeated string blockIds = 2; + string targetContextId = 3; + string dropTargetId = 4; // id of the simple block to insert considering position + anytype.model.Block.Position position = 5; // position relatively to the dropTargetId simple block + } - message Error { - Code code = 1; - string description = 2; + message Response { + Error error = 1; + ResponseEvent event = 2; - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - UNKNOWN_OBJECT_TYPE_URL = 3; - } + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... } } } } - message Bookmark { - message Fetch { - message Request { - string contextId = 1; - string blockId = 2; - string url = 3; - } - - message Response { - Error error = 1; - ResponseEvent event = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - } - } - } + message ListMoveToNewObject { + message Request { + string contextId = 1; + repeated string blockIds = 2; + google.protobuf.Struct details = 3; // new object details + string dropTargetId = 4; // id of the simple block to insert considering position + anytype.model.Block.Position position = 5; // position relatively to the dropTargetId simple block } - message CreateAndFetch { - message Request { - string contextId = 1; - string targetId = 2; - anytype.model.Block.Position position = 3; - string url = 4; - } + message Response { + Error error = 1; + string linkId = 2; + ResponseEvent event = 3; - message Response { - Error error = 1; - string blockId = 2; - ResponseEvent event = 3; + 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; + // ... } } } } - message File { - message CreateAndUpload { - message Request { - string contextId = 1; - string targetId = 2; - anytype.model.Block.Position position = 3; - string url = 4; - string localPath = 5; - anytype.model.Block.Content.File.Type fileType = 6; - } + message ListTurnInto { + message Request { + string contextId = 1; + repeated string blockIds = 2; + anytype.model.Block.Content.Text.Style style = 3; + } + message Response { + Error error = 1; + ResponseEvent event = 2; - message Response { - Error error = 1; - string blockId = 2; - ResponseEvent event = 3; + 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; + // ... } } } } - message Dataview { - message ViewCreate { - message Request { - string contextId = 1; - string blockId = 2; // id of dataview block to insert the new block - anytype.model.Block.Content.Dataview.View view = 4; - } - - message Response { - Error error = 1; - ResponseEvent event = 2; - string viewId = 3; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - message ViewUpdate { - message Request { - string contextId = 1; - string blockId = 2; // id of dataview block to update - string viewId = 3; // id of view to update - anytype.model.Block.Content.Dataview.View view = 4; - } - - message Response { - Error error = 1; - ResponseEvent event = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - message ViewDelete { - message Request { - string contextId = 1; // id of the context block - string blockId = 2; // id of the dataview - string viewId = 4; // id of the view to remove - } - - message Response { - Error error = 1; - ResponseEvent event = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - message ViewSetPosition { - message Request { - string contextId = 1; // id of the context block - string blockId = 2; // id of the dataview - string viewId = 4; // id of the view to remove - uint32 position = 5; // index of view position (0 - means first) - } - - message Response { - Error error = 1; - ResponseEvent event = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } + message ListSetBackgroundColor { + message Request { + string contextId = 1; + repeated string blockIds = 2; + string color = 3; } - // set the current active view (persisted only within a session) - message ViewSetActive { - message Request { - string contextId = 1; - string blockId = 2; // id of dataview block - string viewId = 3; // id of active view - uint32 offset = 4; - uint32 limit = 5; - } + message Response { + Error error = 1; + ResponseEvent event = 2; - message Response { - Error error = 1; - ResponseEvent event = 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; - // ... - } - } - } - } - - message RecordUpdate { - message Request { - string contextId = 1; - string blockId = 2; - string recordId = 3; - google.protobuf.Struct record = 4; - } - - message Response { - Error error = 1; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - message RecordDelete { - message Request { - string contextId = 1; - string blockId = 2; - string recordId = 3; - } - - message Response { - Error error = 1; - ResponseEvent event = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - message RecordCreate { - message Request { - string contextId = 1; - string blockId = 2; - google.protobuf.Struct record = 3; - string templateId = 4; - } - - message Response { - Error error = 1; - google.protobuf.Struct record = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - - message RelationAdd { - message Request { - string contextId = 1; - string blockId = 2; // id of dataview block to add relation - anytype.model.Relation relation = 3; - } - - message Response { - Error error = 1; - ResponseEvent event = 2; - string relationKey = 3; // deprecated - anytype.model.Relation relation = 4; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - } - } - } - } - message RelationUpdate { - message Request { - string contextId = 1; - string blockId = 2; // id of dataview block to add relation - string relationKey = 3; // key of relation to update - anytype.model.Relation relation = 4; - } - - message Response { - Error error = 1; - ResponseEvent event = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - } - } - } - } - message RelationDelete { - message Request { - string contextId = 1; - string blockId = 2; // id of dataview block to add relation - string relationKey = 3; - } - - message Response { - Error error = 1; - ResponseEvent event = 3; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - } - } - } - } - - // RecordRelationOptionAdd may return existing option in case object specified with recordId already have the option with the same name or ID - message RecordRelationOptionAdd { - message Request { - string contextId = 1; - string blockId = 2; // id of dataview block to add relation - string relationKey = 3; // relation key to add the option - anytype.model.Relation.Option option = 4; // id of select options will be autogenerated - string recordId = 5; // id of record which is used to add an option - } - - message Response { - Error error = 1; - ResponseEvent event = 2; - anytype.model.Relation.Option option = 3; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - } - } - } - } - message RecordRelationOptionUpdate { - message Request { - string contextId = 1; - string blockId = 2; // id of dataview block to add relation - string relationKey = 3; // relation key to add the option - anytype.model.Relation.Option option = 4; // id of select options will be autogenerated - string recordId = 5; // id of record which is used to update an option - } - - message Response { - Error error = 1; - ResponseEvent event = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - } - } - } - } - message RecordRelationOptionDelete { - message Request { - string contextId = 1; - string blockId = 2; // id of dataview block to add relation - string relationKey = 3; // relation key to add the option - string optionId = 4; // id of select options to remove - string recordId = 5; // id of record which is used to delete an option - } - - message Response { - Error error = 1; - ResponseEvent event = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - } - } - } - } - - message RelationListAvailable { - message Request { - string contextId = 1; - string blockId = 2; - } - - message Response { - Error error = 1; - repeated anytype.model.Relation relations = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - NOT_A_DATAVIEW_BLOCK = 3; - // ... - } - } - } - } - - message SetSource { - message Request { - string contextId = 1; - string blockId = 2; - repeated string source = 3; - } - - message Response { - Error error = 1; - ResponseEvent event = 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; + // ... } } } } - message Get { + message Export { + message Request { + string contextId = 1; + repeated anytype.model.Block blocks = 2; + } + + message Response { + Error error = 1; + string path = 2; + ResponseEvent event = 3; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + } + + message BlockLatex { + message SetText { + message Request { + string contextId = 1; + string blockId = 2; + string text = 3; + } + + message Response { + Error error = 1; + ResponseEvent event = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + } + + message BlockText { + message SetText { + message Request { + string contextId = 1; + string blockId = 2; + string text = 3; + anytype.model.Block.Content.Text.Marks marks = 4; + } + + message Response { + Error error = 1; + ResponseEvent event = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + + message SetColor { + message Request { + string contextId = 1; + string blockId = 2; + string color = 3; + } + + message Response { + Error error = 1; + ResponseEvent event = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + + message SetMarks { /* - * Get marks list in the selected range in text block. - */ - message Marks { + * Get marks list in the selected range in text block. + */ + message Get { message Request { string contextId = 1; string blockId = 2; @@ -1757,84 +2853,11 @@ message Rpc { } } - // Available undo/redo operations - message UndoRedoCounter { - int32 undo = 1; - int32 redo = 2; - } - - message Undo { + message SetStyle { message Request { - string contextId = 1; // id of the context block - } - - message Response { - Error error = 1; - ResponseEvent event = 2; - UndoRedoCounter counters = 3; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - CAN_NOT_MOVE = 3; - // ... - } - } - } - } - - message Redo { - message Request { - string contextId = 1; // id of the context block - } - - message Response { - Error error = 1; - ResponseEvent event = 2; - UndoRedoCounter counters = 3; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - CAN_NOT_MOVE = 3; - // ... - } - } - } - } - - /* - * Works with a smart blocks (block-organizers, like page, dashboard etc) - * **Example scenario** - * 1A. On front-end start. - * 1. Front -> MW: Rpc.Block.Open.Request(dashboard.id) - * 2. MW -> Front: BlockShow(dashboard) - * 3. MW -> Front: Rpc.Block.Open.Response(err) - * 1B. User clicks on a page icon on the dashboard. - * 1. Front -> MW: Rpc.Block.Close.Request(dashboard.id) - * Get close response first, then open request: - * 2. MW -> Front: Rpc.Block.Close.Response(err) - * 3. Front -> MW: Rpc.Block.Open.Request(page.id) - * 4. MW -> Front: BlockShow() - * 5. MW -> Front: Rpc.Block.Open.Response(err) - * Image/Video/File blocks then: - * 6. MW -> Front: BlockShow() - */ - message Open { - message Request { - string contextId = 1; // id of the context blo1k + string contextId = 1; string blockId = 2; - string traceId = 3; + anytype.model.Block.Content.Text.Style style = 3; } message Response { @@ -1849,20 +2872,17 @@ message Rpc { NULL = 0; UNKNOWN_ERROR = 1; BAD_INPUT = 2; - - NOT_FOUND = 3; - ANYTYPE_NEEDS_UPGRADE = 10; // failed to read unknown data format – need to upgrade anytype // ... } } } } - message Show { + message SetChecked { message Request { - string contextId = 1; // id of the context blo1k + string contextId = 1; string blockId = 2; - string traceId = 3; + bool checked = 3; } message Response { @@ -1877,24 +2897,24 @@ message Rpc { NULL = 0; UNKNOWN_ERROR = 1; BAD_INPUT = 2; - NOT_FOUND = 3; - ANYTYPE_NEEDS_UPGRADE = 10; // failed to read unknown data format – need to upgrade anytype // ... } } } } - - message GetPublicWebURL { + message SetIcon { message Request { - string blockId = 1; + string contextId = 1; + string blockId = 2; + string iconImage = 3; // in case both image and emoji are set, image has a priority to show + string iconEmoji = 5; } message Response { Error error = 1; + ResponseEvent event = 2; - string url = 2; message Error { Code code = 1; string description = 2; @@ -1909,10 +2929,115 @@ message Rpc { } } - message OpenBreadcrumbs { + message ListSetStyle { message Request { - string contextId = 1; // id of the context blo1k - string traceId = 2; + string contextId = 1; + repeated string blockIds = 2; + anytype.model.Block.Content.Text.Style style = 3; + } + + message Response { + Error error = 1; + ResponseEvent event = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + + message ListSetColor { + message Request { + string contextId = 1; + repeated string blockIds = 2; + string color = 3; + } + + message Response { + Error error = 1; + ResponseEvent event = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + + message ListSetMark { + message Request { + string contextId = 1; + repeated string blockIds = 2; + anytype.model.Block.Content.Text.Mark mark = 3; + } + + message Response { + Error error = 1; + ResponseEvent event = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + } + + message BlockFile { + message SetName { + message Request { + string contextId = 1; + string blockId = 2; + string name = 3; + } + + message Response { + Error error = 1; + ResponseEvent event = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + message CreateAndUpload { + message Request { + string contextId = 1; + string targetId = 2; + anytype.model.Block.Position position = 3; + string url = 4; + string localPath = 5; + anytype.model.Block.Content.File.Type fileType = 6; } message Response { @@ -1928,16 +3053,15 @@ message Rpc { NULL = 0; UNKNOWN_ERROR = 1; BAD_INPUT = 2; - // ... } } } } - - message SetBreadcrumbs { + message ListSetStyle { message Request { - string breadcrumbsId = 1; - repeated string ids = 2; // page ids + string contextId = 1; + repeated string blockIds = 2; + model.Block.Content.File.Style style = 3; } message Response { @@ -1957,35 +3081,18 @@ message Rpc { } } } + } - /* - * Create a Smart/Internal block. Request can contain a block with a content, or it can be an empty block with a specific block.content. - * **Example scenario** - * 1A. Create Page on a dashboard - * 1. Front -> MW: Rpc.Block.Create.Request(blockId:dashboard.id, position:bottom, block: emtpy block with page content and id = "") - * 2. Front -> MW: Rpc.Block.Close.Request(block: dashboard.id) - * 3. Front <- MW: Rpc.Block.Close.Response(err) - * 4. Front <- MW: Rpc.Block.Create.Response(page.id) - * 5. Front <- MW: Rpc.Block.Open.Response(err) - * 6. Front <- MW: Event.Block.Show(page) - * 1B. Create Page on a Page - * 1. Front -> MW: Rpc.Block.Create.Request(blockId:dashboard.id, position:bottom, block: emtpy block with page content and id = "") - * 2. Front <- MW: Rpc.Block.Create.Response(newPage.id) - * 3. Front <- MW: Event.Block.Show(newPage) - */ - message Create { - // common simple block command + message BlockImage { + message SetName { message Request { - string contextId = 1; // id of the context block - string targetId = 2; // id of the closest block - anytype.model.Block block = 3; - anytype.model.Block.Position position = 4; + string contextId = 1; + string blockId = 2; + string name = 3; } message Response { Error error = 1; - string blockId = 2; - ResponseEvent event = 3; message Error { Code code = 1; @@ -2001,10 +3108,86 @@ message Rpc { } } - message CreatePage { + message SetWidth { message Request { - string contextId = 1; // id of the context block - google.protobuf.Struct details = 3; // new page details + string contextId = 1; + string blockId = 2; + int32 width = 3; + } + + message Response { + Error error = 1; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + } + + message BlockVideo { + message SetName { + message Request { + string contextId = 1; + string blockId = 2; + string name = 3; + } + + message Response { + Error error = 1; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + + message SetWidth { + message Request { + string contextId = 1; + string blockId = 2; + int32 width = 3; + } + + message Response { + Error error = 1; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + } + + message BlockLink { + message CreateWithObject { + message Request { + string contextId = 1; // id of the context object + google.protobuf.Struct details = 3; // new object details string templateId = 5; // optional template id for creating from template // link block params @@ -2032,45 +3215,14 @@ message Rpc { } } } - - message CreateSet { + message ListSetAppearance { message Request { - string contextId = 1; // id of the context block - string targetId = 2; // id of the closest block - repeated string source = 3; - google.protobuf.Struct details = 4; // details - - anytype.model.Block.Position position = 5; - } - - message Response { - Error error = 1; - string blockId = 2; // (optional) id of the link block pointing to this set - string targetId = 3; // id of the new set - ResponseEvent event = 4; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - UNKNOWN_OBJECT_TYPE_URL = 3; - // ... - } - } - } - } - /* - * Remove blocks from the childrenIds of its parents - */ - message Unlink { - message Request { - string contextId = 1; // id of the context block - repeated string blockIds = 2; // targets to remove - + string contextId = 1; + repeated string blockIds = 2; + anytype.model.Block.Content.Link.IconSize iconSize = 4; + anytype.model.Block.Content.Link.CardStyle cardStyle = 5; + anytype.model.Block.Content.Link.Description description = 6; + repeated string relations = 7; } message Response { @@ -2089,1168 +3241,20 @@ message Rpc { } } } - } + } + } - /* - * Block.Close – it means unsubscribe from a block. - * Precondition: block should be opened. - */ - message Close { + message BlockRelation { + message SetKey { message Request { - string contextId = 1; // id of the context blo1k + string contextId = 1; string blockId = 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 Workspace { - message GetCurrent { - message Request { - } - - message Response { - Error error = 1; - string workspaceId = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - - message GetAll { - message Request { - } - - message Response { - Error error = 1; - repeated string workspaceIds = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - - message Create { - message Request { - string name = 1; - } - - message Response { - Error error = 1; - string workspaceId = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - - message SetIsHighlighted { - message Request { - string objectId = 1; - bool isHighlighted = 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 Select { - message Request { - string workspaceId = 1; - } - - message Response { - Error error = 1; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - } - /* - * Namespace, that aggregates subtopics and actions, that relates to wallet. - */ - 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 Convert { - message Request { - string mnemonic = 1; // Mnemonic of a wallet to convert - string entropy = 2; // entropy of a wallet to convert - - } - - 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; // mnemonic is wrong - } - } - - string entropy = 2; - string mnemonic = 3; - } - } - - } - - /* - * Namespace, that agregates subtopics and actions, that relates to account. - */ - message Account { - // TODO: use model from models.proto - message Config { - bool enableDataview = 1; - bool enableDebug = 2; - bool enableReleaseChannelSwitch = 3; - bool enableSpaces = 4; - - google.protobuf.Struct extra = 100; - } - 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 alphaInviteCode = 20; - } - - /** - * 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 - anytype.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 - Config config = 3; // deprecated, use account - - 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; - FAILED_TO_STOP_RUNNING_NODE = 104; - - BAD_INVITE_CODE = 900; - - NET_ERROR = 901; // means general network error - NET_CONNECTION_REFUSED = 902; // means we wasn't able to connect to the cafe server - NET_OFFLINE = 903; // client can additionally support this error code to notify user that device is offline - } - } - } - } - - 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; - FAILED_TO_STOP_RUNNING_NODE = 107; - ANOTHER_ANYTYPE_PROCESS_IS_RUNNING = 108; - ACCOUNT_IS_DELETED = 109; - } - } - } - } - - message Delete { - message Request { - bool revert = 1; - } - - message Response { - Error error = 1; // Error while trying to recover an account - anytype.model.Account.Status status = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; // No error; - UNKNOWN_ERROR = 1; // Any other errors - BAD_INPUT = 2; - - ACCOUNT_IS_ALREADY_DELETED = 101; - ACCOUNT_IS_ACTIVE = 102; - } - } - } - } - - 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 - anytype.model.Account account = 2; // Selected account - Config config = 3; // deprecated, use 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; - FAILED_TO_STOP_SEARCHER_NODE = 106; - FAILED_TO_RECOVER_PREDEFINED_BLOCKS = 107; - ANOTHER_ANYTYPE_PROCESS_IS_RUNNING = 108; - - } - } - } - } - - message Stop { - /** - * Front end to middleware request to stop currently running account node and optionally remove the locally stored data - */ - message Request { - bool removeData = 1; - } - - /** - * Middleware-to-front-end response for an account stop request - */ - message Response { - Error error = 1; // Error while trying to launch/select 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; // Id or root path is wrong - - ACCOUNT_IS_NOT_RUNNING = 101; - FAILED_TO_STOP_NODE = 102; - FAILED_TO_REMOVE_ACCOUNT_DATA = 103; - } - } - } - } - } - - /* - * Namespace, that agregates log subtopics and actions. - * Usage: send request with topic (Level) and description (message) from client to middleware to log. - */ - 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; - } - } - } - } - } - - /* - * Get info about a version of a middleware. - * Info is a string, that contains: BuildDate, GitCommit, GitBranch, GitState - */ - message Version { - message Get { - message Request { - } - - message Response { - Error error = 1; - string version = 2; - string details = 3; // build date, branch and commit - - 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 File { - message Offload { - message Request { - string id = 1; - bool includeNotPinned = 2; - } - message Response { - Error error = 1; - uint64 bytesOffloaded = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - NODE_NOT_STARTED = 103; - FILE_NOT_YET_PINNED = 104; - - } - } - } - } - } - message FileList { - message Offload { - message Request { - repeated string onlyIds = 1; // empty means all - bool includeNotPinned = 2; // false mean not-yet-pinned files will be not - } - - message Response { - Error error = 1; - int32 filesOffloaded = 2; - uint64 bytesOffloaded = 3; - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - NODE_NOT_STARTED = 103; - - } - } - } - } - - } - - message Shutdown { - message Request { - } - message Response { - Error error = 1; - - message Error { - Code code = 1; - string description = 2; - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - - NODE_NOT_STARTED = 101; - } - } - - } - } - - message DeviceState { - message Request { - DeviceState deviceState = 1; - - enum DeviceState { - BACKGROUND = 0; - FOREGROUND = 1; - } - } - - message Response { - Error error = 1; - - message Error { - Code code = 1; - string description = 2; - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - - NODE_NOT_STARTED = 101; - } - } - - } - } - - message Config { - message Get { - message Request { - } - message Response { - Error error = 1; - string homeBlockId = 2; // home dashboard block id - string archiveBlockId = 3; // archive block id - string profileBlockId = 4; // profile block id - string marketplaceTypeId = 5; // marketplace type id - string marketplaceRelationId = 6; // marketplace relation id - string marketplaceTemplateId = 7; // marketplace template id - string deviceId = 8; - string gatewayUrl = 101; // gateway url for fetching static files - message Error { - Code code = 1; - string description = 2; - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - - NODE_NOT_STARTED = 101; - } - } - } - } - } - - message Ping { - message Request { - int32 index = 1; - int32 numberOfEventsToSend = 2; - } - - message Response { - Error error = 1; - int32 index = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - } - } - } - } - - message Process { - message Cancel { - message Request { - string id = 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 LinkPreview { - message Request { - string url = 1; - } - - message Response { - Error error = 1; - anytype.model.LinkPreview linkPreview = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - } - } - } - } - - message UploadFile { - message Request { - string url = 1; - string localPath = 2; - anytype.model.Block.Content.File.Type type = 3; - bool disableEncryption = 4; // deprecated, has no affect - anytype.model.Block.Content.File.Style style = 5; - - } - - message Response { - Error error = 1; - string hash = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - } - } - } - } - - message DownloadFile { - message Request { - string hash = 1; - string path = 2; // path to save file. Temp directory is used if empty - } - - 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 = 3; - } - } - } - } - - message Navigation { - enum Context { - Navigation = 0; - MoveTo = 1; // do not show sets/archive - LinkTo = 2; // same for mention, do not show sets/archive - } - - message ListObjects { - message Request { - Context context = 1; - string fullText = 2; - int32 limit = 3; - int32 offset = 4; - } - - message Response { - Error error = 1; - repeated anytype.model.ObjectInfo objects = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - - /* - * Get the info for page alongside with info for all inbound and outbound links from/to this page - */ - message GetObjectInfoWithLinks { - message Request { - string objectId = 1; - Context context = 2; - } - - message Response { - Error error = 1; - anytype.model.ObjectInfoWithLinks object = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - } - - message History { - // returns list of versions (changes) - message Versions { - message Version { - string id = 1; - repeated string previousIds = 2; - string authorId = 3; - string authorName = 4; - int64 time = 5; - int64 groupId = 6; - } - - message Request { - string pageId = 1; - // when indicated, results will include versions before given id - string lastVersionId = 2; - // desired count of versions - int32 limit = 3; - } - - message Response { - Error error = 1; - repeated Version versions = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - - // returns blockShow event for given version - message Show { - message Request { - string pageId = 1; - string versionId = 2; - string traceId = 3; - } - - message Response { - Error error = 1; - Event.Object.Show objectShow = 2; - History.Versions.Version version = 3; - string traceId = 4; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - - message SetVersion { - message Request { - string pageId = 1; - string versionId = 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 Page { - message Create { - message Request { - google.protobuf.Struct details = 1; // page details - } - - message Response { - Error error = 1; - string pageId = 3; - ResponseEvent event = 4; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - } - - message Set { - message Create { - message Request { - repeated string source = 1; - google.protobuf.Struct details = 2; // if omitted the name of page will be the same with object type - string templateId = 3; // optional template id for creating from template - } - - message Response { - Error error = 1; - string id = 3; - ResponseEvent event = 4; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - UNKNOWN_OBJECT_TYPE_URL = 3; - } - } - } - } - } - - message ObjectType { - message List { - message Request { - } - - message Response { - Error error = 1; - repeated anytype.model.ObjectType objectTypes = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - - message Create { - message Request { - anytype.model.ObjectType objectType = 1; - } - - message Response { - Error error = 1; - anytype.model.ObjectType objectType = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - UNKNOWN_OBJECT_TYPE_URL = 3; - // ... - } - } - } - } - - message Relation { - message Add { - message Request { - string objectTypeUrl = 1; - repeated anytype.model.Relation relations = 2; - } - - message Response { - Error error = 1; - repeated anytype.model.Relation relations = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - UNKNOWN_OBJECT_TYPE_URL = 3; - READONLY_OBJECT_TYPE = 4; - // ... - } - } - } - } - message Remove { - message Request { - string objectTypeUrl = 1; - string relationKey = 2; - } - - message Response { - Error error = 1; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - UNKNOWN_OBJECT_TYPE_URL = 3; - READONLY_OBJECT_TYPE = 4; - // ... - } - } - } - } - message Update { - message Request { - string objectTypeUrl = 1; - anytype.model.Relation relation = 2; - } - - message Response { - Error error = 1; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - UNKNOWN_OBJECT_TYPE_URL = 3; - READONLY_OBJECT_TYPE = 4; - // ... - } - } - } - } - message List { - message Request { - string objectTypeUrl = 1; - bool appendRelationsFromOtherTypes = 2; // add relations from other object types in the end - } - - message Response { - Error error = 1; - repeated anytype.model.Relation relations = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - UNKNOWN_OBJECT_TYPE_URL = 3; - // ... - } - } - } - } - } - } - - message Object { - message ShareByLink { - message Request { - string objectId = 1; - } - - message Response { - string link = 1; - Error error = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - - message AddWithObjectId { - message Request { - string objectId = 1; - string payload = 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 RelationAdd { - message Request { - string contextId = 1; - anytype.model.Relation relation = 2; + string key = 3; } message Response { Error error = 1; ResponseEvent event = 2; - string relationKey = 3; // deprecated - anytype.model.Relation relation = 4; message Error { Code code = 1; @@ -3260,15 +3264,14 @@ message Rpc { NULL = 0; UNKNOWN_ERROR = 1; BAD_INPUT = 2; - ALREADY_EXISTS = 10; } } } } - message RelationUpdate { + message Add { message Request { string contextId = 1; - string relationKey = 2; // key of relation to update + string blockId = 2; anytype.model.Relation relation = 3; } @@ -3288,14 +3291,44 @@ message Rpc { } } } - message RelationDelete { + } + + message BlockBookmark { + message Fetch { message Request { string contextId = 1; - string relationKey = 2; + string blockId = 2; + string url = 3; } message Response { Error error = 1; + ResponseEvent event = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + } + } + } + } + + message CreateAndFetch { + message Request { + string contextId = 1; + string targetId = 2; + anytype.model.Block.Position position = 3; + string url = 4; + } + + message Response { + Error error = 1; + string blockId = 2; ResponseEvent event = 3; message Error { @@ -3310,416 +3343,19 @@ message Rpc { } } } + } - // RelationOptionAdd may return existing option in case dataview already has one with the same text - message RelationOptionAdd { + message BlockDiv { + message ListSetStyle { message Request { string contextId = 1; - string relationKey = 2; // relation key to add the option - anytype.model.Relation.Option option = 3; // id of select options will be autogenerated + repeated string blockIds = 2; + anytype.model.Block.Content.Div.Style style = 3; } message Response { Error error = 1; ResponseEvent event = 2; - anytype.model.Relation.Option option = 3; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - } - } - } - } - message RelationOptionUpdate { - message Request { - string contextId = 1; - string relationKey = 2; // relation key to add the option - anytype.model.Relation.Option option = 3; // id of select options will be autogenerated - } - - message Response { - Error error = 1; - ResponseEvent event = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - } - } - } - } - message RelationOptionDelete { - message Request { - string contextId = 1; - string relationKey = 2; // relation key to add the option - string optionId = 3; // id of select options to remove - bool confirmRemoveAllValuesInRecords = 4; // confirm remove all values in records - } - - message Response { - Error error = 1; - ResponseEvent event = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - SOME_RECORDS_HAS_RELATION_VALUE_WITH_THIS_OPTION = 3; // need to confirm with confirmRemoveAllValuesInRecords=true - } - } - } - } - message RelationListAvailable { - message Request { - string contextId = 1; - } - message Response { - Error error = 1; - repeated anytype.model.Relation relations = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - message Search { - message Request { - repeated anytype.model.Block.Content.Dataview.Filter filters = 1; - repeated anytype.model.Block.Content.Dataview.Sort sorts = 2; - string fullText = 3; - int32 offset = 4; - int32 limit = 5; - // additional filter by objectTypes - repeated string objectTypeFilter = 6; // deprecated, to be removed - // needed keys in details for return, when empty - will return all - repeated string keys = 7; - } - - message Response { - Error error = 1; - repeated google.protobuf.Struct records = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - message Graph { - message Request { - repeated anytype.model.Block.Content.Dataview.Filter filters = 1; - int32 limit = 2; - // additional filter by objectTypes - repeated string objectTypeFilter = 3; - repeated string keys = 4; - } - - message Edge { - enum Type { - Link = 0; - Relation = 1; - } - string source = 1; - string target = 2; - string name = 3; - Type type = 4; - string description = 5; - string iconImage = 6; - string iconEmoji = 7; - bool hidden = 8; - } - - message Response { - Error error = 1; - repeated google.protobuf.Struct nodes = 2; - repeated Edge edges = 3; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - - message SearchSubscribe { - message Request { - // (optional) subscription identifier - // client can provide some string or middleware will generate it automatically - // if subId is already registered on middleware, the new query will replace previous subscription - string subId = 1; - // filters - repeated anytype.model.Block.Content.Dataview.Filter filters = 2; - // sorts - repeated anytype.model.Block.Content.Dataview.Sort sorts = 3; - // results limit - int64 limit = 5; - // initial offset; middleware will find afterId - int64 offset = 6; - // (required) needed keys in details for return, for object fields mw will return (and subscribe) objects as dependent - repeated string keys = 7; - - // (optional) pagination: middleware will return results after given id - string afterId = 8; - // (optional) pagination: middleware will return results before given id - string beforeId = 9; - - repeated string source = 10; - - string ignoreWorkspace = 12; - // disable dependent subscription - bool noDepSubscription = 13; - } - - message Response { - Error error = 1; - - repeated google.protobuf.Struct records = 2; - repeated google.protobuf.Struct dependencies = 3; - - string subId = 4; - - Event.Object.Subscription.Counters counters = 5; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - - message IdsSubscribe { - message Request { - // (optional) subscription identifier - // client can provide some string or middleware will generate it automatically - // if subId is already registered on middleware, the new query will replace previous subscription - string subId = 1; - // ids for subscribe - repeated string ids = 2; - // sorts - // (required) needed keys in details for return, for object fields mw will return (and subscribe) objects as dependent - repeated string keys = 3; - - string ignoreWorkspace = 11; - } - - message Response { - Error error = 1; - - repeated google.protobuf.Struct records = 2; - repeated google.protobuf.Struct dependencies = 3; - - string subId = 4; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - - message SearchUnsubscribe { - message Request { - repeated string subIds = 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 SetLayout { - message Request { - string contextId = 1; - anytype.model.ObjectType.Layout layout = 3; - } - - message Response { - Error error = 1; - ResponseEvent event = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - - message SetIsFavorite { - message Request { - string contextId = 1; - bool isFavorite = 2; - } - - message Response { - Error error = 1; - ResponseEvent event = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - - message SetIsArchived { - message Request { - string contextId = 1; - bool isArchived = 2; - } - - message Response { - Error error = 1; - ResponseEvent event = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - - message FeaturedRelation { - message Add { - message Request { - string contextId = 1; - repeated string relations = 2; - } - - message Response { - Error error = 1; - ResponseEvent event = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - - message Remove { - message Request { - string contextId = 1; - repeated string relations = 2; - } - - message Response { - Error error = 1; - ResponseEvent event = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - } - - message ToSet { - message Request { - string contextId = 1; - repeated string source = 2; - } - - message Response { - Error error = 1; - string setId = 2; message Error { Code code = 1; @@ -3736,15 +3372,267 @@ message Rpc { } } - message ObjectList { - message Duplicate { + message BlockDataview { + message View { + message Create { + message Request { + string contextId = 1; + string blockId = 2; // id of dataview block to insert the new block + anytype.model.Block.Content.Dataview.View view = 4; + } + + message Response { + Error error = 1; + ResponseEvent event = 2; + string viewId = 3; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + message Update { + message Request { + string contextId = 1; + string blockId = 2; // id of dataview block to update + string viewId = 3; // id of view to update + anytype.model.Block.Content.Dataview.View view = 4; + } + + message Response { + Error error = 1; + ResponseEvent event = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + message Delete { + message Request { + string contextId = 1; // id of the context object + string blockId = 2; // id of the dataview + string viewId = 4; // id of the view to remove + } + + message Response { + Error error = 1; + ResponseEvent event = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + message SetPosition { + message Request { + string contextId = 1; // id of the context object + string blockId = 2; // id of the dataview + string viewId = 4; // id of the view to remove + uint32 position = 5; // index of view position (0 - means first) + } + message Response { + Error error = 1; + ResponseEvent event = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + // set the current active view (persisted only within a session) + message SetActive { + message Request { + string contextId = 1; + string blockId = 2; // id of dataview block + string viewId = 3; // id of active view + uint32 offset = 4; + uint32 limit = 5; + } + message Response { + Error error = 1; + ResponseEvent event = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + } + message Relation { + message Add { + message Request { + string contextId = 1; + string blockId = 2; // id of dataview block to add relation + anytype.model.Relation relation = 3; + } + + message Response { + Error error = 1; + ResponseEvent event = 2; + string relationKey = 3; // deprecated + anytype.model.Relation relation = 4; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + } + } + } + } + message Update { + message Request { + string contextId = 1; + string blockId = 2; // id of dataview block to add relation + string relationKey = 3; // key of relation to update + anytype.model.Relation relation = 4; + } + + message Response { + Error error = 1; + ResponseEvent event = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + } + } + } + } + message Delete { + message Request { + string contextId = 1; + string blockId = 2; // id of dataview block to add relation + string relationKey = 3; + } + + message Response { + Error error = 1; + ResponseEvent event = 3; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + } + } + } + } + message ListAvailable { + message Request { + string contextId = 1; + string blockId = 2; + } + + message Response { + Error error = 1; + repeated anytype.model.Relation relations = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + NOT_A_DATAVIEW_BLOCK = 3; + // ... + } + } + } + } + } + message SetSource { message Request { - repeated string objectIds = 1; + string contextId = 1; + string blockId = 2; + repeated string source = 3; + } + + message Response { + Error error = 1; + ResponseEvent event = 4; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + } + } + } + } + } + + message BlockDataviewRecord { + message Update { + message Request { + string contextId = 1; + string blockId = 2; + string recordId = 3; + google.protobuf.Struct record = 4; } message Response { Error error = 1; - repeated string ids = 2; message Error { Code code = 1; @@ -3760,10 +3648,12 @@ message Rpc { } } message Delete { - // Deletes the object, keys from the local store and unsubscribe from remote changes. Also offloads all orphan files message Request { - repeated string objectIds = 1; // objects to remove + string contextId = 1; + string blockId = 2; + string recordId = 3; } + message Response { Error error = 1; ResponseEvent event = 2; @@ -3781,15 +3671,46 @@ message Rpc { } } } - message Set { - message IsArchived { + message Create { + message Request { + string contextId = 1; + string blockId = 2; + google.protobuf.Struct record = 3; + string templateId = 4; + } + + message Response { + Error error = 1; + google.protobuf.Struct record = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + message RelationOption { + // Add may return existing option in case object specified with recordId already have the option with the same name or ID + message Add { message Request { - repeated string objectIds = 1; - bool isArchived = 2; + string contextId = 1; + string blockId = 2; // id of dataview block to add relation + string relationKey = 3; // relation key to add the option + anytype.model.Relation.Option option = 4; // id of select options will be autogenerated + string recordId = 5; // id of record which is used to add an option } message Response { Error error = 1; + ResponseEvent event = 2; + anytype.model.Relation.Option option = 3; message Error { Code code = 1; @@ -3799,19 +3720,22 @@ message Rpc { NULL = 0; UNKNOWN_ERROR = 1; BAD_INPUT = 2; - // ... } } } } - message IsFavorite { + message Update { message Request { - repeated string objectIds = 1; - bool isFavorite = 2; + string contextId = 1; + string blockId = 2; // id of dataview block to add relation + string relationKey = 3; // relation key to add the option + anytype.model.Relation.Option option = 4; // id of select options will be autogenerated + string recordId = 5; // id of record which is used to update an option } message Response { Error error = 1; + ResponseEvent event = 2; message Error { Code code = 1; @@ -3821,313 +3745,33 @@ message Rpc { NULL = 0; UNKNOWN_ERROR = 1; BAD_INPUT = 2; - // ... } } } } - } - } - - message Export { - message Request { - // the path where export files will place - string path = 1; - // ids of documents for export, when empty - will export all available docs - repeated string docIds = 2; - // export format - Format format = 3; - // save as zip file - bool zip = 4; - // include all nested - bool includeNested = 5; - // include all files - bool includeFiles = 6; - } - - message Response { - Error error = 1; - string path = 2; - int32 succeed = 4; - ResponseEvent event = 3; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... + message Delete { + message Request { + string contextId = 1; + string blockId = 2; // id of dataview block to add relation + string relationKey = 3; // relation key to add the option + string optionId = 4; // id of select options to remove + string recordId = 5; // id of record which is used to delete an option } - } - } - enum Format { - Markdown = 0; - Protobuf = 1; - JSON = 2; - DOT = 3; - SVG = 4; - GRAPH_JSON = 5; - } - } + message Response { + Error error = 1; + ResponseEvent event = 2; - message ExportWorkspace { - message Request { - // the path where export files will place - string path = 1; - string workspaceId = 2; - } + message Error { + Code code = 1; + string description = 2; - message Response { - Error error = 1; - string path = 2; - ResponseEvent event = 3; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - - message ExportTemplates { - message Request { - // the path where export files will place - string path = 1; - } - - message Response { - Error error = 1; - string path = 2; - ResponseEvent event = 3; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - - message ExportLocalstore { - message Request { - // the path where export files will place - string path = 1; - // ids of documents for export, when empty - will export all available docs - repeated string docIds = 2; - } - - message Response { - Error error = 1; - string path = 2; - ResponseEvent event = 3; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - - - message MakeTemplate { - message Request { - // id of block for making them template - string contextId = 1; - } - - message Response { - Error error = 1; - // created template id - string id = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - - message MakeTemplateByObjectType { - message Request { - // id of desired object type - string objectType = 1; - } - - message Response { - Error error = 1; - // created template id - string id = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - - message CloneTemplate { - message Request { - // id of template block for cloning - string contextId = 1; - } - - message Response { - Error error = 1; - // created template id - string id = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - - message ObjectDuplicate { - message Request { - string contextId = 1; - } - - message Response { - Error error = 1; - string id = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - // ... - } - } - } - } - - message UnsplashSearch { - message Request { - string query = 1; // empty means random images - int32 limit = 2; // may be omitted if the request was cached previously with another limit - } - - message Response { - Error error = 1; - repeated Picture pictures = 2; - - message Picture { - string id = 1; - string url = 2; - string artist = 3; - string artistUrl = 4; - } - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - - RATE_LIMIT_EXCEEDED = 100; - // ... - } - } - } - } - - message UnsplashDownload { - message Request { - string pictureId = 1; - } - - message Response { - Error error = 1; - string hash = 2; - - message Error { - Code code = 1; - string description = 2; - - enum Code { - NULL = 0; - UNKNOWN_ERROR = 1; - BAD_INPUT = 2; - - RATE_LIMIT_EXCEEDED = 100; - // ... - } - } - } - } - - message ApplyTemplate { - message Request { - string contextId = 1; - // id of template - string templateId = 2; - } - - message Response { - Error error = 1; - - 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; + } + } } } } @@ -4224,9 +3868,10 @@ message Rpc { message Tree { message Request { - string blockId = 1; + string objectId = 1; string path = 2; bool unanonymized = 3; // set to true to disable mocking of the actual data inside changes + bool generateSvg = 4; // set to true to write both ZIP and SVG files } message Response { @@ -4247,7 +3892,137 @@ message Rpc { } } + message ExportLocalstore { + message Request { + // the path where export files will place + string path = 1; + // ids of documents for export, when empty - will export all available docs + repeated string docIds = 2; + } + message Response { + Error error = 1; + string path = 2; + ResponseEvent event = 3; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + // ... + } + } + } + } + + message Ping { + message Request { + int32 index = 1; + int32 numberOfEventsToSend = 2; + } + + message Response { + Error error = 1; + int32 index = 2; + + message Error { + Code code = 1; + string description = 2; + + enum Code { + NULL = 0; + UNKNOWN_ERROR = 1; + BAD_INPUT = 2; + } + } + } + } + } + + message Metrics { + message SetParameters { + message Request { + string platform = 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 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 Process { + message Cancel { + message Request { + string id = 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 GenericErrorResponse { diff --git a/pb/protos/events.proto b/pb/protos/events.proto index cde95a554..54dda6287 100644 --- a/pb/protos/events.proto +++ b/pb/protos/events.proto @@ -97,7 +97,6 @@ message Event { google.protobuf.Struct details = 2; } - // Deprecated message Config { message Update { anytype.model.Account.Config config = 1; @@ -409,6 +408,10 @@ message Event { TargetBlockId targetBlockId = 2; Style style = 3; Fields fields = 4; + IconSize iconSize = 5; + CardStyle cardStyle = 6; + Description description = 7; + Relations relations = 8; message TargetBlockId { string value = 1; @@ -422,6 +425,21 @@ message Event { google.protobuf.Struct value = 1; } + message IconSize { + anytype.model.Block.Content.Link.IconSize value = 1; + } + + message CardStyle { + anytype.model.Block.Content.Link.CardStyle value = 1; + } + + message Description { + anytype.model.Block.Content.Link.Description value = 1; + } + + message Relations { + repeated string value = 1; + } } message Bookmark { diff --git a/pb/protos/service/service.proto b/pb/protos/service/service.proto index dbb0e3c9c..9afde3a71 100644 --- a/pb/protos/service/service.proto +++ b/pb/protos/service/service.proto @@ -6,178 +6,84 @@ import "pb/protos/commands.proto"; import "pb/protos/events.proto"; service ClientCommands { - rpc ObjectAddWithObjectId (anytype.Rpc.Object.AddWithObjectId.Request) returns (anytype.Rpc.Object.AddWithObjectId.Response); - rpc ObjectShareByLink (anytype.Rpc.Object.ShareByLink.Request) returns (anytype.Rpc.Object.ShareByLink.Response); + rpc AppGetVersion (anytype.Rpc.App.GetVersion.Request) returns (anytype.Rpc.App.GetVersion.Response); + rpc AppSetDeviceState (anytype.Rpc.App.SetDeviceState.Request) returns (anytype.Rpc.App.SetDeviceState.Response); + rpc AppShutdown (anytype.Rpc.App.Shutdown.Request) returns (anytype.Rpc.App.Shutdown.Response); + // Wallet + // *** 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 WalletConvert (anytype.Rpc.Wallet.Convert.Request) returns (anytype.Rpc.Wallet.Convert.Response); + // Workspace + // *** rpc WorkspaceCreate (anytype.Rpc.Workspace.Create.Request) returns (anytype.Rpc.Workspace.Create.Response); rpc WorkspaceSelect (anytype.Rpc.Workspace.Select.Request) returns (anytype.Rpc.Workspace.Select.Response); rpc WorkspaceGetCurrent (anytype.Rpc.Workspace.GetCurrent.Request) returns (anytype.Rpc.Workspace.GetCurrent.Response); rpc WorkspaceGetAll (anytype.Rpc.Workspace.GetAll.Request) returns (anytype.Rpc.Workspace.GetAll.Response); rpc WorkspaceSetIsHighlighted (anytype.Rpc.Workspace.SetIsHighlighted.Request) returns (anytype.Rpc.Workspace.SetIsHighlighted.Response); + rpc WorkspaceExport (anytype.Rpc.Workspace.Export.Request) returns (anytype.Rpc.Workspace.Export.Response); + // Account + // *** 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 AccountDelete (anytype.Rpc.Account.Delete.Request) returns (anytype.Rpc.Account.Delete.Response); rpc AccountSelect (anytype.Rpc.Account.Select.Request) returns (anytype.Rpc.Account.Select.Response); rpc AccountStop (anytype.Rpc.Account.Stop.Request) returns (anytype.Rpc.Account.Stop.Response); - rpc FileOffload (anytype.Rpc.File.Offload.Request) returns (anytype.Rpc.File.Offload.Response); - rpc FileListOffload (anytype.Rpc.FileList.Offload.Request) returns (anytype.Rpc.FileList.Offload.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); - rpc ConfigGet (anytype.Rpc.Config.Get.Request) returns (anytype.Rpc.Config.Get.Response); - rpc Shutdown (anytype.Rpc.Shutdown.Request) returns (anytype.Rpc.Shutdown.Response); - rpc SetDeviceState (anytype.Rpc.DeviceState.Request) returns (anytype.Rpc.DeviceState.Response); - - rpc ExternalDropFiles (anytype.Rpc.ExternalDrop.Files.Request) returns (anytype.Rpc.ExternalDrop.Files.Response); - rpc ExternalDropContent (anytype.Rpc.ExternalDrop.Content.Request) returns (anytype.Rpc.ExternalDrop.Content.Response); - - rpc LinkPreview (anytype.Rpc.LinkPreview.Request) returns (anytype.Rpc.LinkPreview.Response); - - rpc UploadFile (anytype.Rpc.UploadFile.Request) returns (anytype.Rpc.UploadFile.Response); - rpc DownloadFile (anytype.Rpc.DownloadFile.Request) returns (anytype.Rpc.DownloadFile.Response); - - rpc BlockUpload (anytype.Rpc.Block.Upload.Request) returns (anytype.Rpc.Block.Upload.Response); - rpc BlockReplace (anytype.Rpc.Block.Replace.Request) returns (anytype.Rpc.Block.Replace.Response); - // BlockUpdateContent allows to update any simple block content to the new value of the same type - rpc BlockUpdateContent (anytype.Rpc.Block.UpdateContent.Request) returns (anytype.Rpc.Block.UpdateContent.Response); - rpc BlockOpen (anytype.Rpc.Block.Open.Request) returns (anytype.Rpc.Block.Open.Response); - rpc BlockShow (anytype.Rpc.Block.Show.Request) returns (anytype.Rpc.Block.Show.Response); - rpc BlockGetPublicWebURL (anytype.Rpc.Block.GetPublicWebURL.Request) returns (anytype.Rpc.Block.GetPublicWebURL.Response); - rpc BlockOpenBreadcrumbs (anytype.Rpc.Block.OpenBreadcrumbs.Request) returns (anytype.Rpc.Block.OpenBreadcrumbs.Response); - rpc BlockSetBreadcrumbs (anytype.Rpc.Block.SetBreadcrumbs.Request) returns (anytype.Rpc.Block.SetBreadcrumbs.Response); - rpc BlockCreate (anytype.Rpc.Block.Create.Request) returns (anytype.Rpc.Block.Create.Response); - rpc BlockCreatePage (anytype.Rpc.Block.CreatePage.Request) returns (anytype.Rpc.Block.CreatePage.Response); - rpc BlockCreateSet (anytype.Rpc.Block.CreateSet.Request) returns (anytype.Rpc.Block.CreateSet.Response); - - rpc BlockUnlink (anytype.Rpc.Block.Unlink.Request) returns (anytype.Rpc.Block.Unlink.Response); - rpc BlockClose (anytype.Rpc.Block.Close.Request) returns (anytype.Rpc.Block.Close.Response); - rpc BlockDownload (anytype.Rpc.Block.Download.Request) returns (anytype.Rpc.Block.Download.Response); - rpc BlockGetMarks (anytype.Rpc.Block.Get.Marks.Request) returns (anytype.Rpc.Block.Get.Marks.Response); - rpc BlockUndo (anytype.Rpc.Block.Undo.Request) returns (anytype.Rpc.Block.Undo.Response); - rpc BlockRedo (anytype.Rpc.Block.Redo.Request) returns (anytype.Rpc.Block.Redo.Response); - rpc BlockSetFields (anytype.Rpc.Block.Set.Fields.Request) returns (anytype.Rpc.Block.Set.Fields.Response); - rpc BlockSetRestrictions (anytype.Rpc.Block.Set.Restrictions.Request) returns (anytype.Rpc.Block.Set.Restrictions.Response); - - rpc BlockListMove (anytype.Rpc.BlockList.Move.Request) returns (anytype.Rpc.BlockList.Move.Response); - rpc BlockListMoveToNewPage (anytype.Rpc.BlockList.MoveToNewPage.Request) returns (anytype.Rpc.BlockList.MoveToNewPage.Response); - rpc BlockListConvertChildrenToPages (anytype.Rpc.BlockList.ConvertChildrenToPages.Request) returns (anytype.Rpc.BlockList.ConvertChildrenToPages.Response); - - rpc BlockListSetFields (anytype.Rpc.BlockList.Set.Fields.Request) returns (anytype.Rpc.BlockList.Set.Fields.Response); - rpc BlockListSetTextStyle (anytype.Rpc.BlockList.Set.Text.Style.Request) returns (anytype.Rpc.BlockList.Set.Text.Style.Response); - rpc BlockListDuplicate (anytype.Rpc.BlockList.Duplicate.Request) returns (anytype.Rpc.BlockList.Duplicate.Response); - rpc BlockListSetBackgroundColor (anytype.Rpc.BlockList.Set.BackgroundColor.Request) returns (anytype.Rpc.BlockList.Set.BackgroundColor.Response); - rpc BlockListSetAlign (anytype.Rpc.BlockList.Set.Align.Request) returns (anytype.Rpc.BlockList.Set.Align.Response); - rpc BlockListSetDivStyle (anytype.Rpc.BlockList.Set.Div.Style.Request) returns (anytype.Rpc.BlockList.Set.Div.Style.Response); - rpc BlockListSetFileStyle (anytype.Rpc.BlockList.Set.File.Style.Request) returns (anytype.Rpc.BlockList.Set.File.Style.Response); - - rpc BlockListTurnInto (anytype.Rpc.BlockList.TurnInto.Request) returns (anytype.Rpc.BlockList.TurnInto.Response); - - rpc BlockSetLatexText (anytype.Rpc.Block.Set.Latex.Text.Request) returns (anytype.Rpc.Block.Set.Latex.Text.Response); - rpc BlockSetTextText (anytype.Rpc.Block.Set.Text.Text.Request) returns (anytype.Rpc.Block.Set.Text.Text.Response); - rpc BlockSetTextColor (anytype.Rpc.Block.Set.Text.Color.Request) returns (anytype.Rpc.Block.Set.Text.Color.Response); - rpc BlockListSetTextColor (anytype.Rpc.BlockList.Set.Text.Color.Request) returns (anytype.Rpc.BlockList.Set.Text.Color.Response); - rpc BlockListSetTextMark (anytype.Rpc.BlockList.Set.Text.Mark.Request) returns (anytype.Rpc.BlockList.Set.Text.Mark.Response); - rpc BlockSetTextStyle (anytype.Rpc.Block.Set.Text.Style.Request) returns (anytype.Rpc.Block.Set.Text.Style.Response); - rpc BlockSetTextChecked (anytype.Rpc.Block.Set.Text.Checked.Request) returns (anytype.Rpc.Block.Set.Text.Checked.Response); - rpc BlockSetTextIcon (anytype.Rpc.Block.Set.Text.Icon.Request) returns (anytype.Rpc.Block.Set.Text.Icon.Response); - - rpc BlockSplit (anytype.Rpc.Block.Split.Request) returns (anytype.Rpc.Block.Split.Response); - rpc BlockMerge (anytype.Rpc.Block.Merge.Request) returns (anytype.Rpc.Block.Merge.Response); - - rpc BlockCopy (anytype.Rpc.Block.Copy.Request) returns (anytype.Rpc.Block.Copy.Response); - rpc BlockPaste (anytype.Rpc.Block.Paste.Request) returns (anytype.Rpc.Block.Paste.Response); - - rpc BlockCut (anytype.Rpc.Block.Cut.Request) returns (anytype.Rpc.Block.Cut.Response); - rpc BlockExport (anytype.Rpc.Block.Export.Request) returns (anytype.Rpc.Block.Export.Response); - rpc BlockImportMarkdown (anytype.Rpc.Block.ImportMarkdown.Request) returns (anytype.Rpc.Block.ImportMarkdown.Response); - - rpc BlockSetFileName (anytype.Rpc.Block.Set.File.Name.Request) returns (anytype.Rpc.Block.Set.File.Name.Response); - rpc BlockSetImageName (anytype.Rpc.Block.Set.Image.Name.Request) returns (anytype.Rpc.Block.Set.Image.Name.Response); - rpc BlockSetImageWidth (anytype.Rpc.Block.Set.Image.Width.Request) returns (anytype.Rpc.Block.Set.Image.Width.Response); - rpc BlockSetVideoName (anytype.Rpc.Block.Set.Video.Name.Request) returns (anytype.Rpc.Block.Set.Video.Name.Response); - rpc BlockSetVideoWidth (anytype.Rpc.Block.Set.Video.Width.Request) returns (anytype.Rpc.Block.Set.Video.Width.Response); - - rpc BlockSetLinkTargetBlockId (anytype.Rpc.Block.Set.Link.TargetBlockId.Request) returns (anytype.Rpc.Block.Set.Link.TargetBlockId.Response); - - rpc BlockBookmarkFetch (anytype.Rpc.Block.Bookmark.Fetch.Request) returns (anytype.Rpc.Block.Bookmark.Fetch.Response); - rpc BlockBookmarkCreateAndFetch (anytype.Rpc.Block.Bookmark.CreateAndFetch.Request) returns (anytype.Rpc.Block.Bookmark.CreateAndFetch.Response); - rpc BlockFileCreateAndUpload (anytype.Rpc.Block.File.CreateAndUpload.Request) returns (anytype.Rpc.Block.File.CreateAndUpload.Response); - - rpc BlockRelationSetKey (anytype.Rpc.Block.Relation.SetKey.Request) returns (anytype.Rpc.Block.Relation.SetKey.Response); - rpc BlockRelationAdd (anytype.Rpc.Block.Relation.Add.Request) returns (anytype.Rpc.Block.Relation.Add.Response); - - // ## Dataview - // # View - rpc BlockDataviewViewCreate (anytype.Rpc.Block.Dataview.ViewCreate.Request) returns (anytype.Rpc.Block.Dataview.ViewCreate.Response); - rpc BlockDataviewViewDelete (anytype.Rpc.Block.Dataview.ViewDelete.Request) returns (anytype.Rpc.Block.Dataview.ViewDelete.Response); - rpc BlockDataviewViewUpdate (anytype.Rpc.Block.Dataview.ViewUpdate.Request) returns (anytype.Rpc.Block.Dataview.ViewUpdate.Response); - rpc BlockDataviewViewSetActive (anytype.Rpc.Block.Dataview.ViewSetActive.Request) returns (anytype.Rpc.Block.Dataview.ViewSetActive.Response); - rpc BlockDataviewViewSetPosition(anytype.Rpc.Block.Dataview.ViewSetPosition.Request) returns (anytype.Rpc.Block.Dataview.ViewSetPosition.Response); - rpc BlockDataviewSetSource (anytype.Rpc.Block.Dataview.SetSource.Request) returns (anytype.Rpc.Block.Dataview.SetSource.Response); - - // # Relation - rpc BlockDataviewRelationAdd (anytype.Rpc.Block.Dataview.RelationAdd.Request) returns (anytype.Rpc.Block.Dataview.RelationAdd.Response); - rpc BlockDataviewRelationUpdate (anytype.Rpc.Block.Dataview.RelationUpdate.Request) returns (anytype.Rpc.Block.Dataview.RelationUpdate.Response); - rpc BlockDataviewRelationDelete (anytype.Rpc.Block.Dataview.RelationDelete.Request) returns (anytype.Rpc.Block.Dataview.RelationDelete.Response); - rpc BlockDataviewRelationListAvailable (anytype.Rpc.Block.Dataview.RelationListAvailable.Request) returns (anytype.Rpc.Block.Dataview.RelationListAvailable.Response); - - // # Record - rpc BlockDataviewRecordCreate (anytype.Rpc.Block.Dataview.RecordCreate.Request) returns (anytype.Rpc.Block.Dataview.RecordCreate.Response); - rpc BlockDataviewRecordUpdate (anytype.Rpc.Block.Dataview.RecordUpdate.Request) returns (anytype.Rpc.Block.Dataview.RecordUpdate.Response); - rpc BlockDataviewRecordDelete (anytype.Rpc.Block.Dataview.RecordDelete.Request) returns (anytype.Rpc.Block.Dataview.RecordDelete.Response); - rpc BlockDataviewRecordRelationOptionAdd (anytype.Rpc.Block.Dataview.RecordRelationOptionAdd.Request) returns (anytype.Rpc.Block.Dataview.RecordRelationOptionAdd.Response); - rpc BlockDataviewRecordRelationOptionUpdate (anytype.Rpc.Block.Dataview.RecordRelationOptionUpdate.Request) returns (anytype.Rpc.Block.Dataview.RecordRelationOptionUpdate.Response); - rpc BlockDataviewRecordRelationOptionDelete (anytype.Rpc.Block.Dataview.RecordRelationOptionDelete.Request) returns (anytype.Rpc.Block.Dataview.RecordRelationOptionDelete.Response); - // ## Object's relations - // set an existing object type to the object so it will appear in sets and suggests relations from this type - // TODO: rename BlockObjectTypeSet -> ObjectObjectTypeSet - rpc BlockObjectTypeSet (anytype.Rpc.Block.ObjectType.Set.Request) returns (anytype.Rpc.Block.ObjectType.Set.Response); - - rpc NavigationListObjects (anytype.Rpc.Navigation.ListObjects.Request) returns (anytype.Rpc.Navigation.ListObjects.Response); - rpc NavigationGetObjectInfoWithLinks (anytype.Rpc.Navigation.GetObjectInfoWithLinks.Request) returns (anytype.Rpc.Navigation.GetObjectInfoWithLinks.Response); - + // Object + // *** + rpc ObjectOpen (anytype.Rpc.Object.Open.Request) returns (anytype.Rpc.Object.Open.Response); + rpc ObjectClose (anytype.Rpc.Object.Close.Request) returns (anytype.Rpc.Object.Close.Response); + rpc ObjectShow (anytype.Rpc.Object.Show.Request) returns (anytype.Rpc.Object.Show.Response); + // ObjectCreate just creates the new page, without adding the link to it from some other page + rpc ObjectCreate (anytype.Rpc.Object.Create.Request) returns (anytype.Rpc.Object.Create.Response); + // ObjectCreateSet just creates the new set, without adding the link to it from some other page + rpc ObjectCreateSet (anytype.Rpc.Object.CreateSet.Request) returns (anytype.Rpc.Object.CreateSet.Response); rpc ObjectGraph (anytype.Rpc.Object.Graph.Request) returns (anytype.Rpc.Object.Graph.Response); rpc ObjectSearch (anytype.Rpc.Object.Search.Request) returns (anytype.Rpc.Object.Search.Response); rpc ObjectSearchSubscribe (anytype.Rpc.Object.SearchSubscribe.Request) returns (anytype.Rpc.Object.SearchSubscribe.Response); - rpc ObjectIdsSubscribe (anytype.Rpc.Object.IdsSubscribe.Request) returns (anytype.Rpc.Object.IdsSubscribe.Response); + rpc ObjectSubscribeIds (anytype.Rpc.Object.SubscribeIds.Request) returns (anytype.Rpc.Object.SubscribeIds.Response); rpc ObjectSearchUnsubscribe (anytype.Rpc.Object.SearchUnsubscribe.Request) returns (anytype.Rpc.Object.SearchUnsubscribe.Response); - rpc ObjectRelationAdd (anytype.Rpc.Object.RelationAdd.Request) returns (anytype.Rpc.Object.RelationAdd.Response); - rpc ObjectRelationUpdate (anytype.Rpc.Object.RelationUpdate.Request) returns (anytype.Rpc.Object.RelationUpdate.Response); - rpc ObjectRelationDelete (anytype.Rpc.Object.RelationDelete.Request) returns (anytype.Rpc.Object.RelationDelete.Response); - rpc ObjectRelationOptionAdd (anytype.Rpc.Object.RelationOptionAdd.Request) returns (anytype.Rpc.Object.RelationOptionAdd.Response); - rpc ObjectRelationOptionUpdate (anytype.Rpc.Object.RelationOptionUpdate.Request) returns (anytype.Rpc.Object.RelationOptionUpdate.Response); - rpc ObjectRelationOptionDelete (anytype.Rpc.Object.RelationOptionDelete.Request) returns (anytype.Rpc.Object.RelationOptionDelete.Response); - rpc ObjectRelationListAvailable (anytype.Rpc.Object.RelationListAvailable.Request) returns (anytype.Rpc.Object.RelationListAvailable.Response); + rpc ObjectSetDetails (anytype.Rpc.Object.SetDetails.Request) returns (anytype.Rpc.Object.SetDetails.Response); + rpc ObjectDuplicate (anytype.Rpc.Object.Duplicate.Request) returns (anytype.Rpc.Object.Duplicate.Response); + // ObjectSetObjectType sets an existing object type to the object so it will appear in sets and suggests relations from this type + rpc ObjectSetObjectType (anytype.Rpc.Object.SetObjectType.Request) returns (anytype.Rpc.Object.SetObjectType.Response); rpc ObjectSetLayout (anytype.Rpc.Object.SetLayout.Request) returns (anytype.Rpc.Object.SetLayout.Response); - rpc ObjectFeaturedRelationAdd (anytype.Rpc.Object.FeaturedRelation.Add.Request) returns (anytype.Rpc.Object.FeaturedRelation.Add.Response); - rpc ObjectFeaturedRelationRemove (anytype.Rpc.Object.FeaturedRelation.Remove.Request) returns (anytype.Rpc.Object.FeaturedRelation.Remove.Response); rpc ObjectSetIsFavorite (anytype.Rpc.Object.SetIsFavorite.Request) returns (anytype.Rpc.Object.SetIsFavorite.Response); rpc ObjectSetIsArchived (anytype.Rpc.Object.SetIsArchived.Request) returns (anytype.Rpc.Object.SetIsArchived.Response); + rpc ObjectListDuplicate (anytype.Rpc.Object.ListDuplicate.Request) returns (anytype.Rpc.Object.ListDuplicate.Response); + rpc ObjectListDelete (anytype.Rpc.Object.ListDelete.Request) returns (anytype.Rpc.Object.ListDelete.Response); + rpc ObjectListSetIsArchived (anytype.Rpc.Object.ListSetIsArchived.Request) returns (anytype.Rpc.Object.ListSetIsArchived.Response); + rpc ObjectListSetIsFavorite (anytype.Rpc.Object.ListSetIsFavorite.Request) returns (anytype.Rpc.Object.ListSetIsFavorite.Response); + rpc ObjectApplyTemplate (anytype.Rpc.Object.ApplyTemplate.Request) returns (anytype.Rpc.Object.ApplyTemplate.Response); // ObjectToSet creates new set from given object and removes object rpc ObjectToSet (anytype.Rpc.Object.ToSet.Request) returns (anytype.Rpc.Object.ToSet.Response); + rpc ObjectAddWithObjectId (anytype.Rpc.Object.AddWithObjectId.Request) returns (anytype.Rpc.Object.AddWithObjectId.Response); + rpc ObjectShareByLink (anytype.Rpc.Object.ShareByLink.Request) returns (anytype.Rpc.Object.ShareByLink.Response); + rpc ObjectOpenBreadcrumbs (anytype.Rpc.Object.OpenBreadcrumbs.Request) returns (anytype.Rpc.Object.OpenBreadcrumbs.Response); + rpc ObjectSetBreadcrumbs (anytype.Rpc.Object.SetBreadcrumbs.Request) returns (anytype.Rpc.Object.SetBreadcrumbs.Response); + rpc ObjectUndo (anytype.Rpc.Object.Undo.Request) returns (anytype.Rpc.Object.Undo.Response); + rpc ObjectRedo (anytype.Rpc.Object.Redo.Request) returns (anytype.Rpc.Object.Redo.Response); + rpc ObjectImportMarkdown (anytype.Rpc.Object.ImportMarkdown.Request) returns (anytype.Rpc.Object.ImportMarkdown.Response); + rpc ObjectListExport (anytype.Rpc.Object.ListExport.Request) returns (anytype.Rpc.Object.ListExport.Response); - rpc ObjectListDuplicate (anytype.Rpc.ObjectList.Duplicate.Request) returns (anytype.Rpc.ObjectList.Duplicate.Response); - rpc ObjectListDelete (anytype.Rpc.ObjectList.Delete.Request) returns (anytype.Rpc.ObjectList.Delete.Response); - rpc ObjectListSetIsArchived (anytype.Rpc.ObjectList.Set.IsArchived.Request) returns (anytype.Rpc.ObjectList.Set.IsArchived.Response); - rpc ObjectListSetIsFavorite (anytype.Rpc.ObjectList.Set.IsFavorite.Request) returns (anytype.Rpc.ObjectList.Set.IsFavorite.Response); + // Object Relations + // *** + rpc ObjectRelationAdd (anytype.Rpc.ObjectRelation.Add.Request) returns (anytype.Rpc.ObjectRelation.Add.Response); + rpc ObjectRelationUpdate (anytype.Rpc.ObjectRelation.Update.Request) returns (anytype.Rpc.ObjectRelation.Update.Response); + rpc ObjectRelationDelete (anytype.Rpc.ObjectRelation.Delete.Request) returns (anytype.Rpc.ObjectRelation.Delete.Response); + rpc ObjectRelationAddFeatured (anytype.Rpc.ObjectRelation.AddFeatured.Request) returns (anytype.Rpc.ObjectRelation.AddFeatured.Response); + rpc ObjectRelationRemoveFeatured (anytype.Rpc.ObjectRelation.RemoveFeatured.Request) returns (anytype.Rpc.ObjectRelation.RemoveFeatured.Response); + rpc ObjectRelationListAvailable (anytype.Rpc.ObjectRelation.ListAvailable.Request) returns (anytype.Rpc.ObjectRelation.ListAvailable.Response); + rpc ObjectRelationOptionAdd (anytype.Rpc.ObjectRelationOption.Add.Request) returns (anytype.Rpc.ObjectRelationOption.Add.Response); + rpc ObjectRelationOptionUpdate (anytype.Rpc.ObjectRelationOption.Update.Request) returns (anytype.Rpc.ObjectRelationOption.Update.Response); + rpc ObjectRelationOptionDelete (anytype.Rpc.ObjectRelationOption.Delete.Request) returns (anytype.Rpc.ObjectRelationOption.Delete.Response); - // TODO: rename BlockSetDetails -> ObjectSetDetails - rpc BlockSetDetails (anytype.Rpc.Block.Set.Details.Request) returns (anytype.Rpc.Block.Set.Details.Response); - - // PageCreate just creates the new page, without adding the link to it from some other page - // TODO: rename PageCreate -> ObjectCreate - rpc PageCreate (anytype.Rpc.Page.Create.Request) returns (anytype.Rpc.Page.Create.Response); - // SetCreate just creates the new set, without adding the link to it from some other page - rpc SetCreate (anytype.Rpc.Set.Create.Request) returns (anytype.Rpc.Set.Create.Response); - - rpc MetricsSetParameters (anytype.Rpc.Metrics.SetParameters.Request) returns (anytype.Rpc.Metrics.SetParameters.Response); - // ## ObjectType + // ObjectType commands + // *** rpc ObjectTypeCreate (anytype.Rpc.ObjectType.Create.Request) returns (anytype.Rpc.ObjectType.Create.Response); // ObjectTypeList lists all object types both bundled and created by user rpc ObjectTypeList (anytype.Rpc.ObjectType.List.Request) returns (anytype.Rpc.ObjectType.List.Response); @@ -186,34 +92,117 @@ service ClientCommands { rpc ObjectTypeRelationUpdate (anytype.Rpc.ObjectType.Relation.Update.Request) returns (anytype.Rpc.ObjectType.Relation.Update.Response); rpc ObjectTypeRelationRemove (anytype.Rpc.ObjectType.Relation.Remove.Request) returns (anytype.Rpc.ObjectType.Relation.Remove.Response); - rpc Ping (anytype.Rpc.Ping.Request) returns (anytype.Rpc.Ping.Response); + rpc HistoryShowVersion (anytype.Rpc.History.ShowVersion.Request) returns (anytype.Rpc.History.ShowVersion.Response); + rpc HistoryGetVersions (anytype.Rpc.History.GetVersions.Request) returns (anytype.Rpc.History.GetVersions.Response); + rpc HistorySetVersion (anytype.Rpc.History.SetVersion.Request) returns (anytype.Rpc.History.SetVersion.Response); + + // Files + // *** + rpc FileOffload (anytype.Rpc.File.Offload.Request) returns (anytype.Rpc.File.Offload.Response); + rpc FileListOffload (anytype.Rpc.File.ListOffload.Request) returns (anytype.Rpc.File.ListOffload.Response); + rpc FileUpload (anytype.Rpc.File.Upload.Request) returns (anytype.Rpc.File.Upload.Response); + rpc FileDownload (anytype.Rpc.File.Download.Request) returns (anytype.Rpc.File.Download.Response); + rpc FileDrop (anytype.Rpc.File.Drop.Request) returns (anytype.Rpc.File.Drop.Response); + + rpc NavigationListObjects (anytype.Rpc.Navigation.ListObjects.Request) returns (anytype.Rpc.Navigation.ListObjects.Response); + rpc NavigationGetObjectInfoWithLinks (anytype.Rpc.Navigation.GetObjectInfoWithLinks.Request) returns (anytype.Rpc.Navigation.GetObjectInfoWithLinks.Response); + + rpc TemplateCreateFromObject (anytype.Rpc.Template.CreateFromObject.Request) returns (anytype.Rpc.Template.CreateFromObject.Response); + rpc TemplateCreateFromObjectType (anytype.Rpc.Template.CreateFromObjectType.Request) returns (anytype.Rpc.Template.CreateFromObjectType.Response); + rpc TemplateClone (anytype.Rpc.Template.Clone.Request) returns (anytype.Rpc.Template.Clone.Response); + rpc TemplateExportAll (anytype.Rpc.Template.ExportAll.Request) returns (anytype.Rpc.Template.ExportAll.Response); + + rpc LinkPreview (anytype.Rpc.LinkPreview.Request) returns (anytype.Rpc.LinkPreview.Response); + + rpc UnsplashSearch (anytype.Rpc.Unsplash.Search.Request) returns (anytype.Rpc.Unsplash.Search.Response); + // UnsplashDownload downloads picture from unsplash by ID, put it to the IPFS and returns the hash. + // The artist info is available in the object details + rpc UnsplashDownload (anytype.Rpc.Unsplash.Download.Request) returns (anytype.Rpc.Unsplash.Download.Response); + + // General Block commands + // *** + rpc BlockUpload (anytype.Rpc.Block.Upload.Request) returns (anytype.Rpc.Block.Upload.Response); + rpc BlockReplace (anytype.Rpc.Block.Replace.Request) returns (anytype.Rpc.Block.Replace.Response); + rpc BlockCreate (anytype.Rpc.Block.Create.Request) returns (anytype.Rpc.Block.Create.Response); + rpc BlockSplit (anytype.Rpc.Block.Split.Request) returns (anytype.Rpc.Block.Split.Response); + rpc BlockMerge (anytype.Rpc.Block.Merge.Request) returns (anytype.Rpc.Block.Merge.Response); + rpc BlockCopy (anytype.Rpc.Block.Copy.Request) returns (anytype.Rpc.Block.Copy.Response); + rpc BlockPaste (anytype.Rpc.Block.Paste.Request) returns (anytype.Rpc.Block.Paste.Response); + rpc BlockCut (anytype.Rpc.Block.Cut.Request) returns (anytype.Rpc.Block.Cut.Response); + rpc BlockSetFields (anytype.Rpc.Block.SetFields.Request) returns (anytype.Rpc.Block.SetFields.Response); + rpc BlockExport (anytype.Rpc.Block.Export.Request) returns (anytype.Rpc.Block.Export.Response); + + rpc BlockListDelete (anytype.Rpc.Block.ListDelete.Request) returns (anytype.Rpc.Block.ListDelete.Response); + rpc BlockListMoveToExistingObject (anytype.Rpc.Block.ListMoveToExistingObject.Request) returns (anytype.Rpc.Block.ListMoveToExistingObject.Response); + rpc BlockListMoveToNewObject (anytype.Rpc.Block.ListMoveToNewObject.Request) returns (anytype.Rpc.Block.ListMoveToNewObject.Response); + rpc BlockListConvertToObjects (anytype.Rpc.Block.ListConvertToObjects.Request) returns (anytype.Rpc.Block.ListConvertToObjects.Response); + rpc BlockListSetFields (anytype.Rpc.Block.ListSetFields.Request) returns (anytype.Rpc.Block.ListSetFields.Response); + rpc BlockListDuplicate (anytype.Rpc.Block.ListDuplicate.Request) returns (anytype.Rpc.Block.ListDuplicate.Response); + rpc BlockListSetBackgroundColor (anytype.Rpc.Block.ListSetBackgroundColor.Request) returns (anytype.Rpc.Block.ListSetBackgroundColor.Response); + rpc BlockListSetAlign (anytype.Rpc.Block.ListSetAlign.Request) returns (anytype.Rpc.Block.ListSetAlign.Response); + rpc BlockListTurnInto (anytype.Rpc.Block.ListTurnInto.Request) returns (anytype.Rpc.Block.ListTurnInto.Response); + + // Text Block commands + // *** + rpc BlockTextSetText (anytype.Rpc.BlockText.SetText.Request) returns (anytype.Rpc.BlockText.SetText.Response); + rpc BlockTextSetColor (anytype.Rpc.BlockText.SetColor.Request) returns (anytype.Rpc.BlockText.SetColor.Response); + rpc BlockTextSetStyle (anytype.Rpc.BlockText.SetStyle.Request) returns (anytype.Rpc.BlockText.SetStyle.Response); + rpc BlockTextSetChecked (anytype.Rpc.BlockText.SetChecked.Request) returns (anytype.Rpc.BlockText.SetChecked.Response); + rpc BlockTextSetIcon (anytype.Rpc.BlockText.SetIcon.Request) returns (anytype.Rpc.BlockText.SetIcon.Response); + rpc BlockTextListSetColor (anytype.Rpc.BlockText.ListSetColor.Request) returns (anytype.Rpc.BlockText.ListSetColor.Response); + rpc BlockTextListSetMark (anytype.Rpc.BlockText.ListSetMark.Request) returns (anytype.Rpc.BlockText.ListSetMark.Response); + rpc BlockTextListSetStyle (anytype.Rpc.BlockText.ListSetStyle.Request) returns (anytype.Rpc.BlockText.ListSetStyle.Response); + + // File block commands + // *** + rpc BlockFileSetName (anytype.Rpc.BlockFile.SetName.Request) returns (anytype.Rpc.BlockFile.SetName.Response); + rpc BlockImageSetName (anytype.Rpc.BlockImage.SetName.Request) returns (anytype.Rpc.BlockImage.SetName.Response); + rpc BlockVideoSetName (anytype.Rpc.BlockVideo.SetName.Request) returns (anytype.Rpc.BlockVideo.SetName.Response); + rpc BlockFileCreateAndUpload (anytype.Rpc.BlockFile.CreateAndUpload.Request) returns (anytype.Rpc.BlockFile.CreateAndUpload.Response); + rpc BlockFileListSetStyle (anytype.Rpc.BlockFile.ListSetStyle.Request) returns (anytype.Rpc.BlockFile.ListSetStyle.Response); + + // Dataview block commands + // *** + rpc BlockDataviewViewCreate (anytype.Rpc.BlockDataview.View.Create.Request) returns (anytype.Rpc.BlockDataview.View.Create.Response); + rpc BlockDataviewViewDelete (anytype.Rpc.BlockDataview.View.Delete.Request) returns (anytype.Rpc.BlockDataview.View.Delete.Response); + rpc BlockDataviewViewUpdate (anytype.Rpc.BlockDataview.View.Update.Request) returns (anytype.Rpc.BlockDataview.View.Update.Response); + rpc BlockDataviewViewSetActive (anytype.Rpc.BlockDataview.View.SetActive.Request) returns (anytype.Rpc.BlockDataview.View.SetActive.Response); + rpc BlockDataviewViewSetPosition(anytype.Rpc.BlockDataview.View.SetPosition.Request) returns (anytype.Rpc.BlockDataview.View.SetPosition.Response); + rpc BlockDataviewSetSource (anytype.Rpc.BlockDataview.SetSource.Request) returns (anytype.Rpc.BlockDataview.SetSource.Response); + rpc BlockDataviewRelationAdd (anytype.Rpc.BlockDataview.Relation.Add.Request) returns (anytype.Rpc.BlockDataview.Relation.Add.Response); + rpc BlockDataviewRelationUpdate (anytype.Rpc.BlockDataview.Relation.Update.Request) returns (anytype.Rpc.BlockDataview.Relation.Update.Response); + rpc BlockDataviewRelationDelete (anytype.Rpc.BlockDataview.Relation.Delete.Request) returns (anytype.Rpc.BlockDataview.Relation.Delete.Response); + rpc BlockDataviewRelationListAvailable (anytype.Rpc.BlockDataview.Relation.ListAvailable.Request) returns (anytype.Rpc.BlockDataview.Relation.ListAvailable.Response); + + rpc BlockDataviewRecordCreate (anytype.Rpc.BlockDataviewRecord.Create.Request) returns (anytype.Rpc.BlockDataviewRecord.Create.Response); + rpc BlockDataviewRecordUpdate (anytype.Rpc.BlockDataviewRecord.Update.Request) returns (anytype.Rpc.BlockDataviewRecord.Update.Response); + rpc BlockDataviewRecordDelete (anytype.Rpc.BlockDataviewRecord.Delete.Request) returns (anytype.Rpc.BlockDataviewRecord.Delete.Response); + rpc BlockDataviewRecordRelationOptionAdd (anytype.Rpc.BlockDataviewRecord.RelationOption.Add.Request) returns (anytype.Rpc.BlockDataviewRecord.RelationOption.Add.Response); + rpc BlockDataviewRecordRelationOptionUpdate (anytype.Rpc.BlockDataviewRecord.RelationOption.Update.Request) returns (anytype.Rpc.BlockDataviewRecord.RelationOption.Update.Response); + rpc BlockDataviewRecordRelationOptionDelete (anytype.Rpc.BlockDataviewRecord.RelationOption.Delete.Request) returns (anytype.Rpc.BlockDataviewRecord.RelationOption.Delete.Response); + + // Other specific block commands + // *** + rpc BlockLinkCreateWithObject (anytype.Rpc.BlockLink.CreateWithObject.Request) returns (anytype.Rpc.BlockLink.CreateWithObject.Response); + rpc BlockLinkListSetAppearance (anytype.Rpc.BlockLink.ListSetAppearance.Request) returns (anytype.Rpc.BlockLink.ListSetAppearance.Response); + rpc BlockBookmarkFetch (anytype.Rpc.BlockBookmark.Fetch.Request) returns (anytype.Rpc.BlockBookmark.Fetch.Response); + rpc BlockBookmarkCreateAndFetch (anytype.Rpc.BlockBookmark.CreateAndFetch.Request) returns (anytype.Rpc.BlockBookmark.CreateAndFetch.Response); + rpc BlockRelationSetKey (anytype.Rpc.BlockRelation.SetKey.Request) returns (anytype.Rpc.BlockRelation.SetKey.Response); + rpc BlockRelationAdd (anytype.Rpc.BlockRelation.Add.Request) returns (anytype.Rpc.BlockRelation.Add.Response); + rpc BlockDivListSetStyle (anytype.Rpc.BlockDiv.ListSetStyle.Request) returns (anytype.Rpc.BlockDiv.ListSetStyle.Response); + rpc BlockLatexSetText (anytype.Rpc.BlockLatex.SetText.Request) returns (anytype.Rpc.BlockLatex.SetText.Response); rpc ProcessCancel (anytype.Rpc.Process.Cancel.Request) returns (anytype.Rpc.Process.Cancel.Response); - rpc HistoryShow (anytype.Rpc.History.Show.Request) returns (anytype.Rpc.History.Show.Response); - rpc HistoryVersions (anytype.Rpc.History.Versions.Request) returns (anytype.Rpc.History.Versions.Response); - rpc HistorySetVersion (anytype.Rpc.History.SetVersion.Request) returns (anytype.Rpc.History.SetVersion.Response); - - rpc Export (anytype.Rpc.Export.Request) returns (anytype.Rpc.Export.Response); - rpc ExportWorkspace (anytype.Rpc.ExportWorkspace.Request) returns (anytype.Rpc.ExportWorkspace.Response); - rpc ExportTemplates (anytype.Rpc.ExportTemplates.Request) returns (anytype.Rpc.ExportTemplates.Response); - rpc ExportLocalstore (anytype.Rpc.ExportLocalstore.Request) returns (anytype.Rpc.ExportLocalstore.Response); - - rpc MakeTemplate (anytype.Rpc.MakeTemplate.Request) returns (anytype.Rpc.MakeTemplate.Response); - rpc MakeTemplateByObjectType (anytype.Rpc.MakeTemplateByObjectType.Request) returns (anytype.Rpc.MakeTemplateByObjectType.Response); - rpc CloneTemplate (anytype.Rpc.CloneTemplate.Request) returns (anytype.Rpc.CloneTemplate.Response); - rpc ObjectDuplicate (anytype.Rpc.ObjectDuplicate.Request) returns (anytype.Rpc.ObjectDuplicate.Response); - - rpc UnsplashSearch (anytype.Rpc.UnsplashSearch.Request) returns (anytype.Rpc.UnsplashSearch.Response); - // UnsplashDownload downloads picture from unsplash by ID, put it to the IPFS and returns the hash. - // The artist info is available in the object details - rpc UnsplashDownload (anytype.Rpc.UnsplashDownload.Request) returns (anytype.Rpc.UnsplashDownload.Response); - rpc ApplyTemplate (anytype.Rpc.ApplyTemplate.Request) returns (anytype.Rpc.ApplyTemplate.Response); + rpc LogSend (anytype.Rpc.Log.Send.Request) returns (anytype.Rpc.Log.Send.Response); rpc DebugSync (anytype.Rpc.Debug.Sync.Request) returns (anytype.Rpc.Debug.Sync.Response); - rpc DebugThread (anytype.Rpc.Debug.Thread.Request) returns (anytype.Rpc.Debug.Thread.Response); rpc DebugTree (anytype.Rpc.Debug.Tree.Request) returns (anytype.Rpc.Debug.Tree.Response); + rpc DebugExportLocalstore (anytype.Rpc.Debug.ExportLocalstore.Request) returns (anytype.Rpc.Debug.ExportLocalstore.Response); + rpc DebugPing (anytype.Rpc.Debug.Ping.Request) returns (anytype.Rpc.Debug.Ping.Response); + + rpc MetricsSetParameters (anytype.Rpc.Metrics.SetParameters.Request) returns (anytype.Rpc.Metrics.SetParameters.Response); // used only for lib-server via grpc rpc ListenEvents (anytype.Empty) returns (stream anytype.Event); diff --git a/pb/service/service.pb.go b/pb/service/service.pb.go index 296510953..449f650b7 100644 --- a/pb/service/service.pb.go +++ b/pb/service/service.pb.go @@ -26,202 +26,184 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package func init() { proto.RegisterFile("pb/protos/service/service.proto", fileDescriptor_93a29dc403579097) } var fileDescriptor_93a29dc403579097 = []byte{ - // 3106 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x9c, 0x5b, 0x73, 0xdc, 0xb6, - 0x15, 0x80, 0xb3, 0x33, 0x9d, 0x38, 0x45, 0x1c, 0xc7, 0x61, 0xeb, 0xc4, 0x96, 0x53, 0xf9, 0x12, - 0xcb, 0x17, 0xd9, 0xa2, 0x6c, 0xb9, 0x4d, 0xa7, 0xd7, 0x8c, 0xb4, 0xb2, 0x65, 0x4d, 0x64, 0x5b, - 0xd5, 0x4a, 0x56, 0x27, 0xbd, 0x52, 0x24, 0xbc, 0xcb, 0x88, 0x4b, 0x30, 0x24, 0x76, 0xe5, 0xed, - 0x4c, 0xef, 0x9d, 0xce, 0xf4, 0x2d, 0x33, 0x7d, 0xec, 0x53, 0x5f, 0xfb, 0x07, 0xfa, 0x17, 0xfa, - 0x98, 0xc7, 0x3e, 0x76, 0xec, 0x3f, 0xd2, 0x01, 0x71, 0x08, 0x10, 0x20, 0x00, 0x72, 0xfd, 0xe4, - 0x11, 0xcf, 0x77, 0x2e, 0x04, 0x0f, 0x0e, 0x0e, 0x48, 0xac, 0xd1, 0xa5, 0xec, 0x68, 0x35, 0xcb, - 0x09, 0x25, 0xc5, 0x6a, 0x81, 0xf3, 0x69, 0x1c, 0xe2, 0xea, 0x5f, 0xbf, 0xbc, 0xec, 0x9d, 0x0a, - 0xd2, 0x19, 0x9d, 0x65, 0x78, 0xe1, 0xbc, 0x24, 0x43, 0x32, 0x1e, 0x07, 0x69, 0x54, 0x70, 0x64, - 0xe1, 0x7d, 0x29, 0xc1, 0x53, 0x9c, 0x52, 0xb8, 0xbe, 0xf6, 0xef, 0xdf, 0xa3, 0x33, 0xfd, 0x24, - 0xc6, 0x29, 0xed, 0x83, 0x82, 0x97, 0xa3, 0x73, 0x4f, 0x8f, 0x3e, 0xc7, 0x21, 0x5d, 0x8f, 0xa2, - 0xc3, 0x98, 0x8e, 0xf8, 0x1f, 0xdb, 0x91, 0x77, 0xdb, 0x07, 0x3f, 0xfe, 0x5e, 0x16, 0xfa, 0xfc, - 0xb2, 0xaf, 0x41, 0xfe, 0x1e, 0xfe, 0x62, 0x82, 0x0b, 0xba, 0x70, 0xa7, 0x1b, 0x5c, 0x64, 0x24, - 0x2d, 0xb0, 0xf7, 0x1c, 0xbd, 0xc7, 0x2f, 0x0e, 0x46, 0x41, 0x8e, 0x37, 0x66, 0x3b, 0x71, 0x7a, - 0xec, 0xdd, 0x30, 0x99, 0xa8, 0x01, 0xc2, 0xd7, 0xcd, 0x76, 0x10, 0xfc, 0x1c, 0xa2, 0xd3, 0x87, - 0x41, 0x92, 0x60, 0xda, 0xcf, 0x71, 0x40, 0xb1, 0x77, 0x55, 0xd1, 0xe4, 0x22, 0x9f, 0xcb, 0x84, - 0xf5, 0x8f, 0x9c, 0x0c, 0x18, 0xfe, 0x0c, 0xbd, 0xc3, 0x25, 0x7b, 0x38, 0x24, 0x53, 0x9c, 0x7b, - 0x46, 0x2d, 0x10, 0x0a, 0xd3, 0xd7, 0xdc, 0x90, 0x6e, 0xbb, 0x4f, 0xd2, 0x29, 0xce, 0xa9, 0xd9, - 0x36, 0x08, 0xdd, 0xb6, 0x25, 0x04, 0xb6, 0x7f, 0x8d, 0xde, 0x3d, 0x24, 0xf9, 0x71, 0x91, 0x05, - 0x21, 0x86, 0x31, 0x59, 0x52, 0x15, 0x2b, 0xa9, 0x3e, 0x2c, 0xd7, 0xdb, 0x30, 0x83, 0x87, 0x01, - 0x4e, 0x70, 0x48, 0xad, 0x1e, 0xb8, 0xb8, 0xd5, 0x83, 0xc0, 0xc0, 0x43, 0x82, 0xbe, 0x21, 0x84, - 0x5b, 0x98, 0xf6, 0x27, 0x79, 0x8e, 0x53, 0xea, 0xdd, 0xb2, 0xa8, 0x4b, 0x44, 0x78, 0x5a, 0xee, - 0x82, 0x1a, 0xee, 0x67, 0x0b, 0xd3, 0xf5, 0x24, 0xb1, 0xde, 0x0f, 0x17, 0xb7, 0xde, 0x8f, 0xc0, - 0xc0, 0xc3, 0xef, 0xd0, 0x85, 0xda, 0x88, 0xd1, 0xed, 0xe2, 0x51, 0x3c, 0x1c, 0x25, 0xf1, 0x70, - 0x44, 0x71, 0xe4, 0xad, 0x5a, 0x07, 0x45, 0x05, 0x85, 0xd7, 0xbb, 0xdd, 0x15, 0xc0, 0xff, 0x2f, - 0xd0, 0x99, 0xf5, 0x30, 0x24, 0x93, 0x54, 0x24, 0xb3, 0x9a, 0x4b, 0x20, 0x6c, 0x64, 0xf3, 0x52, - 0x0b, 0x25, 0xd3, 0x19, 0x64, 0x90, 0x70, 0x1f, 0x19, 0xf5, 0xb4, 0x74, 0xbb, 0xe6, 0x86, 0x1a, - 0xb6, 0x37, 0x71, 0x82, 0xad, 0xb6, 0xb9, 0xb0, 0xc5, 0xb6, 0x80, 0x1a, 0xb6, 0x21, 0x8d, 0xcd, - 0xb6, 0xb5, 0x24, 0xbe, 0xe6, 0x86, 0xc0, 0xf6, 0x3e, 0x7a, 0xbb, 0xb2, 0x4d, 0x49, 0xe6, 0x5d, - 0x31, 0x2b, 0x51, 0x92, 0x09, 0xbb, 0x57, 0x5d, 0x88, 0xb4, 0xfa, 0x30, 0x4e, 0xf0, 0xd3, 0xe7, - 0xcf, 0x13, 0x12, 0x44, 0x9a, 0x55, 0x26, 0xf1, 0x41, 0x64, 0xb1, 0xaa, 0x21, 0x72, 0x02, 0x30, - 0xc1, 0x4e, 0x5c, 0xd0, 0xca, 0xf2, 0x52, 0x43, 0x8d, 0x49, 0x1b, 0xd6, 0xaf, 0xb7, 0x61, 0xe0, - 0xe1, 0x27, 0x08, 0x3d, 0xc3, 0x79, 0x11, 0x93, 0x74, 0x0b, 0x53, 0xef, 0xb2, 0xa2, 0x05, 0x02, - 0x36, 0x69, 0x84, 0xdd, 0x2b, 0x0e, 0x02, 0x4c, 0x3e, 0x42, 0xa7, 0x76, 0xc8, 0x70, 0x80, 0xd3, - 0xc8, 0xfb, 0x96, 0x42, 0xef, 0x90, 0xa1, 0xcf, 0x2e, 0x0b, 0x63, 0x8b, 0x36, 0x31, 0x58, 0x7a, - 0x82, 0xbe, 0xde, 0x27, 0xe9, 0xf3, 0x78, 0xc8, 0x62, 0xbb, 0xa4, 0xc0, 0xfc, 0xba, 0x12, 0xda, - 0x65, 0x3b, 0x00, 0xf6, 0xb6, 0xd1, 0x5b, 0x83, 0xd1, 0x84, 0x46, 0xe4, 0x24, 0xd5, 0x42, 0xab, - 0x2e, 0x5b, 0x42, 0xab, 0x89, 0xc1, 0xd4, 0x01, 0x3a, 0x33, 0xc0, 0x74, 0x13, 0xb3, 0xd6, 0x60, - 0x40, 0xd9, 0xd4, 0x52, 0xdd, 0xd7, 0x24, 0x96, 0xb1, 0x53, 0x09, 0xb9, 0x38, 0x3f, 0x78, 0x41, - 0x71, 0x9e, 0x06, 0xc9, 0x66, 0x4e, 0x32, 0xf6, 0xdc, 0x0a, 0x6d, 0x71, 0xae, 0xcb, 0xcb, 0x07, - 0x5b, 0x58, 0x16, 0x67, 0x23, 0x28, 0xeb, 0x78, 0x5d, 0xdc, 0x27, 0x29, 0x6d, 0xd6, 0x71, 0xc5, - 0x00, 0x20, 0x96, 0x3a, 0x6e, 0x41, 0xc1, 0xdb, 0x1e, 0x7a, 0x9b, 0xf5, 0x06, 0xbb, 0x39, 0x9e, - 0xc6, 0xf8, 0x44, 0x1b, 0xa9, 0x9a, 0xc4, 0x32, 0x52, 0x2a, 0x01, 0x36, 0x9f, 0x22, 0x74, 0x90, - 0xb1, 0x5c, 0x66, 0x77, 0xa6, 0x25, 0x87, 0x14, 0x58, 0x92, 0x43, 0x01, 0xc4, 0x13, 0x3d, 0xbd, - 0x49, 0x4e, 0x52, 0x61, 0x52, 0x7b, 0x5a, 0x35, 0x91, 0x65, 0x0a, 0x6b, 0x88, 0x2c, 0x0c, 0x1b, - 0x09, 0x09, 0x8f, 0xb9, 0x4b, 0xcd, 0x6a, 0x29, 0x81, 0x68, 0x2c, 0x56, 0x35, 0x44, 0x36, 0x57, - 0xa5, 0x60, 0x0f, 0x67, 0x49, 0x10, 0xea, 0xcd, 0x15, 0xd7, 0x01, 0x99, 0xa5, 0xb9, 0xd2, 0x19, - 0x30, 0x1c, 0x23, 0x0f, 0xc2, 0x8d, 0x02, 0x8a, 0xab, 0xbc, 0xb8, 0x69, 0x0c, 0xa9, 0x46, 0x08, - 0x27, 0xb7, 0x3a, 0x90, 0x72, 0x76, 0x97, 0xf2, 0xa7, 0x19, 0x4e, 0xb5, 0x07, 0xc8, 0xf5, 0x98, - 0xc0, 0xf2, 0x00, 0x15, 0x40, 0xb3, 0x37, 0x18, 0x91, 0x13, 0xa3, 0x3d, 0x26, 0x70, 0xda, 0x03, - 0x00, 0xec, 0x11, 0xf4, 0xcd, 0xf2, 0xf2, 0x16, 0xa6, 0xbb, 0x93, 0xa3, 0x24, 0x0e, 0x0f, 0xf1, - 0xd1, 0xc1, 0xde, 0x8e, 0xb7, 0x6c, 0xd0, 0xd4, 0x18, 0xe1, 0xe5, 0x76, 0x27, 0x56, 0x73, 0xc8, - 0x6e, 0x6b, 0x23, 0xc7, 0x41, 0x14, 0xe6, 0x93, 0xf1, 0x51, 0x61, 0x74, 0xa8, 0x31, 0x4e, 0x87, - 0x4d, 0x56, 0x56, 0x01, 0x3e, 0x62, 0x98, 0xd6, 0xfd, 0x99, 0x9e, 0xa1, 0x8a, 0x58, 0xaa, 0x80, - 0x05, 0xd5, 0x66, 0x02, 0xb4, 0x22, 0xa6, 0x99, 0xa0, 0x35, 0x22, 0x57, 0x5d, 0x88, 0x5c, 0x22, - 0x6b, 0x56, 0x77, 0x83, 0xa1, 0xde, 0x55, 0xd7, 0xd5, 0x98, 0xd8, 0xb2, 0x44, 0x1a, 0x30, 0xd9, - 0xa3, 0xd5, 0x3c, 0x0c, 0x30, 0xd5, 0x7a, 0xb4, 0xba, 0xe6, 0xa0, 0xb6, 0x1e, 0x2d, 0xb5, 0x50, - 0x7a, 0x81, 0x48, 0x13, 0xb6, 0x13, 0x33, 0x16, 0x88, 0x52, 0xe4, 0x2e, 0x10, 0x15, 0x22, 0xd7, - 0x75, 0x1e, 0x74, 0x42, 0x0a, 0x7d, 0x6d, 0x82, 0x50, 0x98, 0xc4, 0x52, 0x71, 0x55, 0x42, 0x36, - 0x65, 0xe5, 0xf5, 0xaa, 0xce, 0x79, 0xa6, 0x82, 0x52, 0x09, 0x2d, 0x4d, 0x59, 0x03, 0x02, 0xdb, - 0x3f, 0x07, 0xdb, 0x5b, 0x98, 0x3e, 0x0e, 0xf2, 0xe3, 0xc2, 0x38, 0xc4, 0x6c, 0x2d, 0x2f, 0xa5, - 0xce, 0x21, 0xae, 0x53, 0x5a, 0x65, 0x38, 0x48, 0x23, 0x62, 0xac, 0x0c, 0x4c, 0xe0, 0xac, 0x0c, - 0x00, 0x68, 0xf6, 0xf6, 0xb0, 0xc5, 0x1e, 0x13, 0x38, 0xed, 0x01, 0x00, 0xf6, 0x7e, 0x05, 0x19, - 0x36, 0xc0, 0xf4, 0x61, 0x8c, 0x93, 0xa8, 0x30, 0xa6, 0x30, 0xcb, 0x1a, 0x2e, 0x76, 0xa6, 0xb0, - 0x82, 0x81, 0x83, 0x2f, 0xa0, 0xb2, 0x0c, 0xd8, 0xa6, 0xb9, 0xa0, 0x79, 0x1c, 0xd2, 0x98, 0xa4, - 0x85, 0x77, 0xdb, 0xa2, 0x5f, 0x87, 0x2c, 0xaf, 0x19, 0xac, 0xb0, 0x96, 0x2d, 0xac, 0xed, 0x7c, - 0x4c, 0xa6, 0xd8, 0x94, 0x2d, 0x65, 0x4b, 0xca, 0x84, 0xae, 0x6c, 0xa9, 0x43, 0x60, 0x7b, 0x82, - 0xde, 0x57, 0x6c, 0xef, 0x93, 0x27, 0xf8, 0xa4, 0x9c, 0xfa, 0x77, 0x1c, 0xfa, 0x82, 0x12, 0xde, - 0x56, 0x3a, 0xd2, 0xe0, 0xf6, 0xcb, 0x1e, 0xba, 0x24, 0x20, 0xd8, 0xde, 0xf7, 0x47, 0x71, 0x12, - 0xe5, 0x38, 0xdd, 0x27, 0x8c, 0x2d, 0xbc, 0xef, 0x58, 0x4c, 0x9a, 0x71, 0x11, 0xc9, 0xc7, 0xf3, - 0xaa, 0x41, 0x48, 0xc7, 0xb0, 0x5c, 0x33, 0x58, 0x66, 0xcf, 0x2d, 0x8b, 0x35, 0x43, 0x06, 0x2d, - 0x77, 0x41, 0xc1, 0xd9, 0x14, 0x9d, 0xab, 0x3b, 0xdb, 0xc7, 0x2f, 0xe8, 0x80, 0xce, 0x12, 0xec, - 0xad, 0x38, 0x8c, 0x30, 0xca, 0x2f, 0x31, 0xe1, 0xd3, 0xef, 0x8a, 0x6b, 0x3d, 0x09, 0x83, 0x36, - 0x27, 0x59, 0x12, 0x87, 0x6c, 0xfd, 0xb8, 0x69, 0xb1, 0x22, 0x08, 0x57, 0x4f, 0xd2, 0x20, 0xc1, - 0xd5, 0x5f, 0x7b, 0xe8, 0x62, 0xfd, 0x1e, 0x37, 0x82, 0xf0, 0x78, 0x98, 0x93, 0x49, 0x1a, 0xf5, - 0x49, 0x42, 0x72, 0x6f, 0xcd, 0x11, 0xba, 0xc6, 0x0a, 0xf7, 0xf7, 0xe7, 0xd2, 0x81, 0x40, 0x46, - 0xe8, 0xbd, 0x7a, 0x1c, 0xeb, 0x49, 0x3c, 0x4c, 0xad, 0xb7, 0xcc, 0x2c, 0x95, 0x44, 0xeb, 0x2d, - 0xd7, 0x49, 0xf0, 0x54, 0x40, 0x6d, 0x00, 0x4f, 0x9b, 0xf1, 0x94, 0x3f, 0xd4, 0x3b, 0x0e, 0x13, - 0x9b, 0xf1, 0x54, 0x7b, 0xa6, 0x2b, 0x1d, 0x69, 0x73, 0x2a, 0xb1, 0x96, 0xb9, 0x3d, 0x95, 0xca, - 0xc6, 0xba, 0x7b, 0x2a, 0x29, 0xb8, 0xdc, 0x5f, 0x09, 0x68, 0x7f, 0x92, 0xa7, 0xdb, 0x29, 0x25, - 0xda, 0xfe, 0x4a, 0x1a, 0xa9, 0x00, 0xcb, 0xfe, 0xca, 0x08, 0x82, 0x9f, 0xcf, 0xc1, 0xcf, 0x00, - 0xd3, 0x9d, 0x80, 0xe2, 0x17, 0x2c, 0xad, 0x6d, 0x7d, 0x95, 0x5f, 0x12, 0x3c, 0xf3, 0x5b, 0xfa, - 0x2a, 0x15, 0x05, 0x5f, 0x43, 0x74, 0xb6, 0xf2, 0xc5, 0x04, 0xa5, 0xab, 0x9b, 0x16, 0xfd, 0x52, - 0x53, 0xf1, 0x74, 0xab, 0x03, 0xd9, 0xbc, 0x29, 0x26, 0xe0, 0x33, 0xc2, 0xa9, 0xaf, 0x4e, 0x84, - 0xe5, 0x2e, 0xa8, 0xbd, 0xd6, 0x70, 0x7f, 0xad, 0xb5, 0x46, 0xf5, 0xe9, 0x77, 0xc5, 0xcd, 0xb3, - 0x81, 0x21, 0xac, 0x99, 0x70, 0xce, 0x86, 0xd2, 0x0e, 0xa3, 0x3a, 0xcd, 0x86, 0x3a, 0x6d, 0x1e, - 0x58, 0x3e, 0x13, 0x9c, 0x03, 0xab, 0xce, 0x82, 0xe5, 0x2e, 0x28, 0xf8, 0xca, 0x64, 0xcf, 0x5f, - 0x0e, 0xea, 0x08, 0x87, 0xc7, 0x38, 0xb2, 0x76, 0x02, 0x7c, 0x8c, 0x38, 0xd4, 0xda, 0x09, 0x68, - 0xb0, 0x39, 0x3f, 0xb7, 0x43, 0x92, 0xba, 0xf3, 0x93, 0x11, 0xdd, 0xf2, 0x13, 0x48, 0xad, 0xe7, - 0x1d, 0x64, 0x49, 0x4c, 0x8d, 0x3d, 0x6f, 0x29, 0x71, 0xf6, 0xbc, 0x15, 0xa1, 0x99, 0x7c, 0x8c, - 0xf3, 0xa1, 0xb9, 0x8d, 0x2e, 0x25, 0x4e, 0x93, 0x15, 0xa1, 0x35, 0x8f, 0x7d, 0x92, 0xcd, 0x8c, - 0xcd, 0x23, 0x13, 0x38, 0x9b, 0x47, 0x00, 0xb4, 0x10, 0x77, 0x83, 0x82, 0x9a, 0x43, 0x2c, 0x25, - 0xce, 0x10, 0x2b, 0x02, 0x4c, 0x7e, 0x8a, 0xde, 0xe2, 0x21, 0x4e, 0xa8, 0xb7, 0x68, 0x0a, 0x60, - 0x22, 0x07, 0xf1, 0x92, 0x55, 0xae, 0xed, 0x6f, 0x1e, 0xbc, 0xc8, 0x48, 0x4e, 0x8d, 0xfb, 0x1b, - 0x2e, 0x72, 0xee, 0x6f, 0x04, 0xa2, 0x6d, 0x5d, 0xb7, 0xc7, 0xec, 0x3a, 0x9b, 0x4e, 0xe5, 0x5b, - 0x3d, 0x53, 0xb6, 0xa8, 0x88, 0x73, 0xd2, 0x34, 0xd0, 0x66, 0x0a, 0xb3, 0x55, 0xe5, 0x49, 0x30, - 0xc6, 0xd6, 0x14, 0x2e, 0x97, 0x1d, 0x46, 0xb4, 0xa6, 0x70, 0x9d, 0x6c, 0x56, 0x82, 0xed, 0x71, - 0x30, 0xe4, 0x9e, 0x6c, 0xfa, 0x25, 0xa1, 0xba, 0x5a, 0xee, 0x82, 0x82, 0xaf, 0x31, 0xb4, 0x55, - 0x95, 0xaf, 0xc3, 0x38, 0xa2, 0x23, 0xcf, 0x6d, 0xa1, 0x64, 0x9c, 0x2f, 0x1b, 0x9a, 0x6c, 0xf3, - 0xd6, 0x9e, 0xc5, 0x11, 0x26, 0xce, 0x5b, 0x2b, 0x89, 0x6e, 0xb7, 0xa6, 0xa0, 0xcd, 0x5b, 0x2b, - 0xc5, 0xee, 0x5b, 0xe3, 0x16, 0xba, 0xdd, 0x9a, 0xca, 0x82, 0xbb, 0x3f, 0xf5, 0xd0, 0x05, 0xb1, - 0xdc, 0xc7, 0xe9, 0xf1, 0x7e, 0x90, 0x0f, 0x31, 0xe5, 0xf9, 0x19, 0x79, 0xf7, 0x6c, 0x6b, 0x39, - 0xdb, 0xb0, 0x2b, 0xa8, 0xf0, 0xbe, 0x36, 0x8f, 0x8a, 0xb6, 0x15, 0xd8, 0x20, 0xe4, 0x78, 0x1c, - 0xe4, 0xc7, 0x0f, 0x31, 0x0d, 0x47, 0xc6, 0x01, 0xae, 0x08, 0xbf, 0x44, 0x9c, 0x03, 0xdc, 0x40, - 0xf5, 0x3e, 0xb9, 0x02, 0xf8, 0x8b, 0x8d, 0xf5, 0x34, 0xe2, 0x6e, 0xd7, 0x5c, 0xb6, 0x54, 0xd6, - 0xd5, 0x27, 0x3b, 0x74, 0x20, 0x90, 0xdf, 0xa2, 0xf3, 0x25, 0xc9, 0xe6, 0x92, 0x60, 0xe0, 0x5d, - 0xeb, 0xaa, 0xc1, 0x60, 0x39, 0xe7, 0x34, 0xd0, 0xf2, 0xfd, 0xce, 0xa9, 0x00, 0xee, 0x53, 0x28, - 0x43, 0x7b, 0x38, 0x09, 0xd8, 0x06, 0x78, 0x80, 0xe9, 0xa7, 0x78, 0x66, 0xcc, 0xb4, 0x0a, 0xf1, - 0x39, 0xe3, 0xcc, 0xb4, 0x26, 0x0b, 0xfe, 0x30, 0x14, 0xa2, 0x0a, 0x58, 0x8f, 0x22, 0x53, 0xfb, - 0x2a, 0x0d, 0xac, 0x47, 0x91, 0xab, 0x7d, 0xd5, 0x41, 0x70, 0xf3, 0x1b, 0xf4, 0x01, 0x7f, 0xd5, - 0x13, 0xd0, 0x60, 0x1a, 0xe3, 0x93, 0x67, 0x31, 0x3e, 0x81, 0xd7, 0x76, 0xbe, 0xe9, 0x7d, 0x0e, - 0x60, 0xbe, 0xe4, 0x84, 0xd3, 0xd5, 0xce, 0xbc, 0xc3, 0x37, 0x7c, 0x61, 0x6c, 0xf5, 0xad, 0x7d, - 0x6c, 0x5c, 0xed, 0xcc, 0x3b, 0x7c, 0xf3, 0xb7, 0xd7, 0xed, 0xbe, 0x39, 0xd7, 0xdd, 0xb7, 0xe0, - 0xc1, 0xf7, 0x9f, 0x7b, 0x68, 0xa1, 0xe1, 0x9c, 0x6d, 0xfd, 0x42, 0x1a, 0x4f, 0xb1, 0xb1, 0x8a, - 0x28, 0xf6, 0x04, 0xea, 0xac, 0x22, 0x56, 0x15, 0x88, 0xe2, 0x6f, 0x3d, 0xf4, 0xa1, 0x29, 0x8a, - 0x5d, 0x52, 0xc4, 0x2c, 0x4f, 0xbc, 0xfb, 0x1d, 0x8c, 0x56, 0xb0, 0x88, 0xe4, 0xdb, 0xf3, 0x29, - 0x41, 0x2c, 0x27, 0xf0, 0x9a, 0xa7, 0x22, 0x07, 0x98, 0x0e, 0xc8, 0x24, 0x0f, 0x8d, 0xbb, 0x44, - 0x69, 0x4f, 0x60, 0xae, 0x4d, 0x80, 0x19, 0xd7, 0x8a, 0x4a, 0xc5, 0xd4, 0x67, 0x9b, 0xf3, 0xb9, - 0xd6, 0x40, 0x67, 0x51, 0xb1, 0x28, 0xe8, 0xc5, 0x55, 0xf7, 0x0f, 0xa9, 0xb8, 0xd6, 0xc5, 0xa2, - 0x96, 0x8e, 0xf7, 0xe7, 0xd2, 0x69, 0x0b, 0x04, 0xe6, 0x63, 0xa7, 0x40, 0xb4, 0x39, 0x79, 0x7f, - 0x2e, 0x1d, 0x08, 0xe4, 0x1f, 0x3d, 0x74, 0xd5, 0x18, 0x08, 0xdb, 0x55, 0xad, 0x4f, 0x83, 0x38, - 0x09, 0x8e, 0x12, 0xec, 0x7d, 0xaf, 0x8b, 0x6d, 0x45, 0x45, 0x84, 0xf5, 0xfd, 0xd7, 0x51, 0x85, - 0xe8, 0xfe, 0x50, 0x2d, 0xff, 0x32, 0xba, 0x90, 0xe4, 0x11, 0x14, 0xcc, 0x96, 0xe7, 0x2f, 0x49, - 0x11, 0xcb, 0xbd, 0x39, 0x34, 0xdc, 0x21, 0x40, 0xc2, 0x74, 0x08, 0x41, 0x4b, 0x97, 0x7b, 0x73, - 0x68, 0xb8, 0x43, 0x80, 0x54, 0xe9, 0x10, 0x82, 0x96, 0x28, 0xf7, 0xe6, 0xd0, 0x80, 0x10, 0xfe, - 0xd9, 0x43, 0xd7, 0x0c, 0x21, 0x54, 0x8f, 0xef, 0x69, 0x56, 0x4d, 0xe2, 0x1f, 0xb4, 0xdb, 0x6e, - 0x28, 0x89, 0xc0, 0x7e, 0xf8, 0x7a, 0xca, 0x10, 0xe3, 0xbf, 0x7a, 0xe8, 0x46, 0x6b, 0x8c, 0xf0, - 0xdc, 0x7e, 0x3c, 0xaf, 0x27, 0xed, 0x29, 0x7e, 0xf2, 0xda, 0xfa, 0xf3, 0x04, 0x0b, 0x4f, 0x78, - 0xee, 0x60, 0xb5, 0xe7, 0xfd, 0xc9, 0x6b, 0xeb, 0x6b, 0x0d, 0x30, 0x3f, 0x94, 0xb8, 0x3f, 0xcb, - 0xca, 0x6f, 0x75, 0xa6, 0x06, 0x58, 0x12, 0x7e, 0xfd, 0x83, 0xdd, 0x72, 0x17, 0x14, 0x9c, 0xe5, - 0xe8, 0xdc, 0x93, 0x60, 0x1a, 0x0f, 0x45, 0x5d, 0xe0, 0xa0, 0xfe, 0x49, 0x45, 0x32, 0x7e, 0x0d, - 0xb2, 0xbc, 0x48, 0xb1, 0xc2, 0xe0, 0xf3, 0xef, 0x3d, 0x74, 0x59, 0x32, 0x5b, 0x18, 0x88, 0xed, - 0xf4, 0x39, 0x39, 0x8c, 0xe9, 0x88, 0x6d, 0x0e, 0x0a, 0xef, 0x63, 0x9b, 0x49, 0x33, 0x2f, 0x42, - 0xf9, 0xee, 0xdc, 0x7a, 0x72, 0x7f, 0xcf, 0xe5, 0x5b, 0x79, 0x90, 0x8d, 0xb4, 0xfd, 0x3d, 0x1c, - 0x10, 0x2d, 0x45, 0x96, 0xfd, 0xbd, 0x86, 0xc8, 0x03, 0x0e, 0x70, 0x4a, 0x15, 0x07, 0x79, 0x38, - 0xf2, 0x8c, 0x3a, 0x5c, 0x66, 0x39, 0xe0, 0xa0, 0x33, 0xf2, 0xc1, 0xd5, 0x0d, 0x0f, 0x26, 0x47, - 0x45, 0x98, 0xc7, 0x47, 0xd8, 0x7c, 0xe4, 0x56, 0x83, 0xdc, 0x47, 0x6e, 0x9b, 0xb0, 0xfc, 0x80, - 0x51, 0x9d, 0xc3, 0x2d, 0xa4, 0x43, 0xe3, 0x51, 0xda, 0x3a, 0x61, 0x79, 0x81, 0x60, 0x26, 0xc1, - 0xd5, 0x0b, 0xf4, 0x41, 0xfd, 0xf6, 0x0e, 0xd2, 0x42, 0xf8, 0x5b, 0xb1, 0xc7, 0x5c, 0xc3, 0x2c, - 0x4d, 0x93, 0x03, 0xd7, 0xcf, 0x15, 0xdb, 0xf7, 0x26, 0x60, 0xc4, 0xd4, 0x25, 0xdd, 0x6c, 0x07, - 0xe5, 0x29, 0x09, 0xd5, 0x0f, 0x14, 0xcb, 0x65, 0x97, 0x05, 0xad, 0x30, 0xde, 0xee, 0xc4, 0xda, - 0x1c, 0x42, 0xc1, 0x73, 0x3a, 0xd4, 0x8a, 0xdb, 0xed, 0x4e, 0xac, 0xfe, 0x0c, 0x9b, 0x0b, 0xd7, - 0x8a, 0xcb, 0x4e, 0x73, 0xa9, 0xf2, 0xbb, 0xe2, 0xe0, 0xf9, 0x8f, 0x3d, 0xb4, 0x60, 0x72, 0x6d, - 0xec, 0x23, 0x8c, 0xe6, 0x9c, 0x7d, 0x84, 0x5b, 0xa3, 0x25, 0x06, 0x63, 0x23, 0x61, 0xb4, 0xe8, - 0x6c, 0x24, 0xdc, 0x1a, 0x10, 0xc3, 0x5f, 0x7a, 0xe8, 0xa2, 0x1a, 0x83, 0xda, 0x68, 0x3a, 0x4d, - 0x9a, 0x1b, 0xcc, 0xb5, 0x79, 0x54, 0xe4, 0xd9, 0x96, 0x6a, 0x32, 0xd3, 0x9d, 0x60, 0x46, 0x26, - 0xfa, 0x79, 0x6e, 0x31, 0x2b, 0x41, 0x6c, 0x39, 0x18, 0x60, 0xc0, 0x6a, 0x4d, 0x1b, 0x97, 0x3e, - 0xc4, 0x01, 0x9d, 0xe4, 0x38, 0xaa, 0xcf, 0x5e, 0xe3, 0x58, 0xeb, 0xa0, 0xf2, 0x8a, 0xe1, 0xde, - 0x1c, 0x1a, 0xb5, 0x1d, 0xa7, 0x39, 0x84, 0x3d, 0x3c, 0x26, 0x53, 0xac, 0xed, 0x38, 0x6d, 0x36, - 0x39, 0x6c, 0xd9, 0x71, 0xb6, 0x2a, 0xc9, 0xb7, 0xca, 0x62, 0xc0, 0xb7, 0x8b, 0x87, 0xc1, 0x94, - 0xe4, 0x31, 0xd5, 0xdf, 0x52, 0xca, 0xd1, 0x94, 0x88, 0xa5, 0x87, 0xb0, 0xa0, 0x46, 0x6f, 0xeb, - 0x79, 0x38, 0x8a, 0xa7, 0x38, 0x72, 0x78, 0xab, 0x90, 0x0e, 0xde, 0x6a, 0xa8, 0xbe, 0x4e, 0xef, - 0x13, 0xd6, 0x17, 0x19, 0xd7, 0xe9, 0x52, 0xe4, 0x5e, 0xa7, 0x2b, 0x44, 0xbf, 0x07, 0xf5, 0xe3, - 0xbc, 0xe9, 0x1e, 0x2c, 0x5f, 0xe7, 0x97, 0xbb, 0xa0, 0xe0, 0x2d, 0x44, 0x67, 0x6b, 0xde, 0x78, - 0x41, 0xb8, 0x6e, 0xd5, 0x57, 0xcb, 0xc0, 0x8d, 0x56, 0x4e, 0xbe, 0x04, 0x92, 0x52, 0xf5, 0xd1, - 0xf8, 0x36, 0x1b, 0xe5, 0x5b, 0xef, 0xe6, 0xf3, 0x59, 0xed, 0xcc, 0x5b, 0x7d, 0x8b, 0x24, 0x6c, - 0xf1, 0xdd, 0xc8, 0xc4, 0xd5, 0xce, 0x3c, 0xf8, 0x3e, 0x82, 0x93, 0x74, 0xe5, 0xb9, 0x66, 0x1a, - 0xc4, 0x49, 0xe1, 0xd9, 0xce, 0x17, 0x81, 0xdc, 0x32, 0xb6, 0x26, 0x4e, 0x7e, 0xac, 0xda, 0x0d, - 0x86, 0xd5, 0xcf, 0x5f, 0xd4, 0x8f, 0x55, 0xe5, 0x61, 0x1b, 0x6d, 0x2b, 0x7c, 0xc5, 0x41, 0xc8, - 0xef, 0x69, 0x03, 0xf1, 0x23, 0x23, 0xf5, 0x6b, 0xd4, 0xa0, 0xf9, 0x0b, 0xa3, 0xcb, 0x76, 0x40, - 0x2e, 0xf7, 0x8f, 0x31, 0xcd, 0xe3, 0xb0, 0x18, 0x60, 0xba, 0x1b, 0xe4, 0xc1, 0x18, 0x53, 0x9c, - 0xeb, 0xa7, 0x30, 0x01, 0xf1, 0x15, 0xc6, 0xb2, 0xdc, 0xdb, 0x58, 0x3d, 0xa9, 0xd9, 0x2e, 0x03, - 0xee, 0xc3, 0x94, 0xd4, 0xe5, 0x26, 0x44, 0xbb, 0x9d, 0x1b, 0xad, 0x9c, 0x3c, 0xc4, 0x28, 0xa5, - 0x2c, 0x0d, 0xb4, 0x13, 0x76, 0x35, 0xd5, 0x32, 0x49, 0xcc, 0x27, 0xec, 0x9a, 0x94, 0x7c, 0x55, - 0x27, 0x65, 0xf5, 0x55, 0xcd, 0xd8, 0xb1, 0x94, 0x06, 0x44, 0x11, 0x56, 0xfc, 0xf9, 0x5d, 0x71, - 0x70, 0x4c, 0xab, 0x76, 0xbe, 0xee, 0x98, 0xad, 0x5d, 0x77, 0x5a, 0x0d, 0xd5, 0xd7, 0xad, 0x95, - 0x8e, 0xb4, 0x7c, 0x41, 0xd8, 0xf4, 0x0a, 0x4d, 0xd2, 0x6a, 0xab, 0x29, 0xad, 0x47, 0xba, 0xdb, - 0x5d, 0xc1, 0xe5, 0x1e, 0x56, 0xcb, 0x76, 0xf7, 0xda, 0x4a, 0x79, 0xb7, 0xbb, 0x02, 0xb8, 0xff, - 0x11, 0xfa, 0xda, 0x6e, 0x9c, 0x0e, 0xbd, 0x0b, 0xea, 0xe4, 0x8c, 0xd3, 0xa1, 0x30, 0xba, 0x60, - 0x12, 0xc9, 0x93, 0x81, 0xbb, 0x39, 0x09, 0x71, 0x51, 0xf4, 0x83, 0x34, 0xc4, 0x89, 0x76, 0x32, - 0x10, 0x64, 0x3e, 0x17, 0x5a, 0x4e, 0x06, 0x36, 0x20, 0xb9, 0xc8, 0x3d, 0x8a, 0x0b, 0x4a, 0xf2, - 0x59, 0x79, 0x0a, 0x5c, 0x2d, 0x1f, 0x20, 0x51, 0xcf, 0x81, 0x5f, 0x75, 0x21, 0xb2, 0x0f, 0x03, - 0x01, 0xfc, 0xe0, 0x45, 0x3f, 0xa0, 0x59, 0xa9, 0x55, 0x62, 0x4b, 0x1f, 0x66, 0xc0, 0xe4, 0xe6, - 0xa9, 0x8a, 0x1b, 0x53, 0x10, 0x6b, 0x9b, 0x27, 0x11, 0x9a, 0x00, 0x2c, 0x9b, 0x27, 0x23, 0x08, - 0x7e, 0xfa, 0xe8, 0x4d, 0xf8, 0x0e, 0x7f, 0x51, 0xfb, 0xfd, 0x86, 0xf2, 0x05, 0xfe, 0x43, 0xb3, - 0x10, 0x8c, 0xfc, 0x12, 0xbd, 0xcb, 0x2f, 0x89, 0x5f, 0xb8, 0x69, 0xc5, 0x44, 0x93, 0x5a, 0x8a, - 0x49, 0x93, 0xd2, 0xed, 0xef, 0xe3, 0x71, 0x96, 0x04, 0x14, 0x17, 0x46, 0xfb, 0x42, 0xea, 0xb4, - 0x5f, 0xa7, 0xc0, 0x7e, 0x80, 0xce, 0x72, 0xd9, 0x0e, 0x09, 0x83, 0x84, 0x0d, 0x96, 0x7e, 0x66, - 0x5c, 0x17, 0x5b, 0x9e, 0xa7, 0x01, 0x93, 0x3f, 0x26, 0x79, 0x1c, 0x1c, 0xe3, 0xca, 0xb9, 0x96, - 0x88, 0x75, 0x91, 0x25, 0x11, 0x35, 0x04, 0xcc, 0xce, 0xd0, 0xf9, 0xba, 0x60, 0x63, 0x26, 0xa7, - 0xab, 0x56, 0x68, 0x6d, 0x98, 0xa5, 0xd0, 0x3a, 0x70, 0x70, 0xfd, 0x53, 0xf4, 0x4e, 0x3f, 0x21, - 0xa9, 0xbc, 0x25, 0x35, 0x5e, 0x45, 0x66, 0x79, 0x23, 0xa3, 0x33, 0xf2, 0x71, 0x73, 0x87, 0xb2, - 0x7d, 0x34, 0xad, 0x4d, 0xcd, 0xce, 0x71, 0xa9, 0x85, 0x02, 0xfb, 0x3f, 0x43, 0x67, 0x0e, 0xd2, - 0x22, 0x4b, 0x82, 0x62, 0x04, 0x2f, 0x93, 0xd4, 0xb0, 0x54, 0xa1, 0xa5, 0xe0, 0x34, 0x20, 0x99, - 0x4b, 0x95, 0x48, 0x9c, 0x8b, 0x5f, 0x32, 0x6a, 0x36, 0x4e, 0xc6, 0x5f, 0x6f, 0xc3, 0xe4, 0xc8, - 0xaf, 0x67, 0x59, 0x32, 0xb3, 0x8c, 0xbc, 0x22, 0xb3, 0x8c, 0xbc, 0xce, 0xc8, 0xd6, 0x69, 0x13, - 0x1f, 0x4d, 0x86, 0x83, 0x59, 0x1a, 0x6a, 0xad, 0x53, 0x79, 0xdd, 0x67, 0x02, 0x4b, 0xeb, 0xa4, - 0x00, 0xb2, 0xfa, 0x96, 0x97, 0xf7, 0x47, 0x39, 0x6e, 0xfc, 0xd6, 0x89, 0x2b, 0x70, 0x91, 0xed, - 0x17, 0x54, 0x2a, 0xa2, 0x45, 0xb9, 0x9f, 0x63, 0x6c, 0x8c, 0x92, 0x09, 0x9c, 0x51, 0x02, 0x00, - 0xf6, 0xee, 0xa2, 0xd3, 0xac, 0x87, 0xc0, 0xe9, 0x83, 0xf2, 0xd7, 0xf9, 0xde, 0x19, 0xa1, 0xf1, - 0x60, 0x9c, 0xd1, 0xd9, 0x42, 0xed, 0x6f, 0x06, 0xdc, 0xed, 0x6d, 0x5c, 0xf9, 0xcf, 0xcb, 0xc5, - 0xde, 0x57, 0x2f, 0x17, 0x7b, 0xff, 0x7b, 0xb9, 0xd8, 0xfb, 0xf2, 0xd5, 0xe2, 0x1b, 0x5f, 0xbd, - 0x5a, 0x7c, 0xe3, 0xbf, 0xaf, 0x16, 0xdf, 0xf8, 0xec, 0x14, 0xfc, 0xef, 0x00, 0x47, 0x6f, 0x96, - 0xbf, 0xf1, 0xbf, 0xff, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0xf0, 0xcb, 0x55, 0x84, 0x41, 0x40, - 0x00, 0x00, + // 2826 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x9b, 0xcd, 0x8f, 0xdc, 0x48, + 0x15, 0xc0, 0xd3, 0x17, 0x02, 0xde, 0xdd, 0x00, 0x06, 0xb2, 0x61, 0xd8, 0x9d, 0x7c, 0xcf, 0x4c, + 0xbe, 0x3c, 0x93, 0x0c, 0x02, 0xf1, 0x21, 0x56, 0x3d, 0x33, 0x99, 0x64, 0xb4, 0xf9, 0x62, 0x7a, + 0x92, 0x48, 0x91, 0x90, 0xf0, 0xd8, 0x95, 0x6e, 0x33, 0x6e, 0x97, 0xb1, 0xab, 0x7b, 0xd2, 0x20, + 0x90, 0x10, 0x08, 0x04, 0x27, 0x24, 0x8e, 0x88, 0x03, 0x57, 0xfe, 0x12, 0x8e, 0x7b, 0xe4, 0x88, + 0x92, 0x7f, 0x64, 0x55, 0xae, 0xe7, 0x2a, 0xd7, 0x73, 0x55, 0xd9, 0x9d, 0xd3, 0x6e, 0xfc, 0x7e, + 0xef, 0xa3, 0xec, 0x57, 0x1f, 0xef, 0x55, 0x8f, 0x77, 0x31, 0x3f, 0xde, 0xcc, 0x0b, 0xca, 0x68, + 0xb9, 0x59, 0x92, 0x62, 0x9e, 0x44, 0xa4, 0xfe, 0x6f, 0x50, 0x3d, 0xf6, 0xcf, 0x86, 0xd9, 0x82, + 0x2d, 0x72, 0xb2, 0x72, 0x41, 0x91, 0x11, 0x9d, 0x4e, 0xc3, 0x2c, 0x2e, 0x05, 0xb2, 0x72, 0x5e, + 0x49, 0xc8, 0x9c, 0x64, 0x0c, 0x9e, 0xdf, 0xfb, 0xd7, 0xc2, 0x3b, 0xb7, 0x9b, 0x26, 0x24, 0x63, + 0xbb, 0xa0, 0xe0, 0xbf, 0xf2, 0x3e, 0x1a, 0xe6, 0xf9, 0x03, 0xc2, 0x5e, 0x90, 0xa2, 0x4c, 0x68, + 0xe6, 0x5f, 0x0d, 0xc0, 0x7e, 0x70, 0x98, 0x47, 0xc1, 0x30, 0xcf, 0x03, 0x25, 0x0c, 0x0e, 0xc9, + 0xaf, 0x67, 0xa4, 0x64, 0x2b, 0xd7, 0xdc, 0x50, 0x99, 0xd3, 0xac, 0x24, 0xfe, 0x6b, 0xef, 0x9b, + 0xc3, 0x3c, 0x1f, 0x11, 0xb6, 0x47, 0x78, 0xfc, 0x23, 0x16, 0x32, 0xe2, 0xaf, 0xb7, 0x54, 0x75, + 0x40, 0xfa, 0xd8, 0xe8, 0x06, 0xc1, 0xcf, 0x91, 0xf7, 0x01, 0xf7, 0x33, 0x99, 0xb1, 0x98, 0x9e, + 0x66, 0xfe, 0xe5, 0xb6, 0x22, 0x88, 0xa4, 0xed, 0x2b, 0x2e, 0x04, 0xac, 0xbe, 0xf4, 0x3e, 0x7c, + 0x19, 0xa6, 0x29, 0x61, 0xbb, 0x05, 0xe1, 0x81, 0xeb, 0x3a, 0x42, 0x14, 0x08, 0x99, 0xb4, 0x7b, + 0xd5, 0xc9, 0x80, 0xe1, 0x57, 0xde, 0x47, 0x42, 0x72, 0x48, 0x22, 0x3a, 0x27, 0x85, 0x6f, 0xd4, + 0x02, 0xa1, 0xe5, 0x95, 0xb7, 0x20, 0x6c, 0x7b, 0x97, 0x66, 0x73, 0x52, 0x30, 0xb3, 0x6d, 0x10, + 0xba, 0x6d, 0x2b, 0x08, 0x6c, 0xff, 0xd2, 0xfb, 0xfa, 0x4b, 0x5a, 0x9c, 0x94, 0x79, 0x18, 0x11, + 0x78, 0x27, 0xd7, 0x75, 0xc5, 0x5a, 0x8a, 0x5f, 0xcb, 0x5a, 0x17, 0x66, 0xf0, 0x30, 0x22, 0x29, + 0x89, 0x98, 0xd5, 0x83, 0x10, 0x77, 0x7a, 0x90, 0x18, 0x78, 0x48, 0xbd, 0x6f, 0x49, 0xe1, 0x03, + 0xc2, 0x76, 0x67, 0x45, 0x41, 0x32, 0xe6, 0xdf, 0xb0, 0xa8, 0x2b, 0x44, 0x7a, 0xba, 0xd9, 0x07, + 0x35, 0x8c, 0xe7, 0x01, 0x61, 0xc3, 0x34, 0xb5, 0x8e, 0x47, 0x88, 0x3b, 0xc7, 0x23, 0x31, 0xf0, + 0xf0, 0x7b, 0xef, 0xbb, 0x8d, 0x37, 0xc6, 0x0e, 0xca, 0x87, 0xc9, 0x78, 0x92, 0x26, 0xe3, 0x09, + 0x23, 0xb1, 0xbf, 0x69, 0x7d, 0x29, 0x3a, 0x28, 0xbd, 0x6e, 0xf5, 0x57, 0x30, 0x8c, 0xf0, 0xfe, + 0x9b, 0x9c, 0x16, 0xf6, 0x2f, 0x26, 0xc4, 0x9d, 0x23, 0x94, 0x18, 0x78, 0xf8, 0x85, 0x77, 0x6e, + 0x18, 0x45, 0x74, 0x96, 0xc9, 0xe9, 0x82, 0x16, 0x1f, 0x21, 0x6c, 0xcd, 0x97, 0xeb, 0x1d, 0x94, + 0x9a, 0x30, 0x20, 0x83, 0x94, 0xbe, 0x6a, 0xd4, 0x43, 0x09, 0x7d, 0xcd, 0x0d, 0xb5, 0x6c, 0xef, + 0x91, 0x94, 0x58, 0x6d, 0x0b, 0x61, 0x87, 0x6d, 0x09, 0xb5, 0x6c, 0xc3, 0x44, 0x31, 0xdb, 0x46, + 0xd3, 0xe4, 0x9a, 0x1b, 0x6a, 0xac, 0xa7, 0x60, 0x9b, 0xd1, 0x1c, 0xaf, 0xa7, 0xb5, 0x12, 0xa3, + 0xb9, 0x6d, 0x3d, 0xd5, 0x11, 0xb0, 0xfa, 0x73, 0xcf, 0x7b, 0x7a, 0xfc, 0x2b, 0x12, 0xb1, 0xa7, + 0x39, 0xc9, 0xfc, 0x4b, 0x9a, 0x86, 0x10, 0x04, 0x5c, 0x22, 0x6d, 0x5e, 0x76, 0x10, 0x2a, 0x50, + 0xf1, 0x7c, 0x37, 0xa5, 0x25, 0xf1, 0x8d, 0x1a, 0x95, 0xc8, 0x12, 0x28, 0x42, 0x70, 0xa0, 0xa3, + 0x09, 0x3d, 0x35, 0x07, 0xca, 0x25, 0xee, 0x40, 0x81, 0x50, 0x7b, 0x09, 0x04, 0x6a, 0xda, 0x4b, + 0xea, 0x30, 0x5c, 0x7b, 0x09, 0x66, 0xd4, 0xfc, 0x6b, 0x1a, 0x1e, 0x11, 0x3c, 0xff, 0x34, 0xbd, + 0x11, 0xb1, 0xcd, 0x3f, 0x03, 0x86, 0xdf, 0xf1, 0x83, 0x22, 0xcc, 0x27, 0xe6, 0x77, 0x5c, 0x89, + 0xdc, 0xef, 0xb8, 0x46, 0xf0, 0x0b, 0x19, 0x91, 0xb0, 0x88, 0x26, 0xe6, 0x17, 0x22, 0x64, 0xee, + 0x17, 0x22, 0x19, 0x30, 0x5c, 0x78, 0xdf, 0x69, 0x1a, 0x1e, 0xcd, 0x8e, 0xcb, 0xa8, 0x48, 0x8e, + 0x89, 0x7f, 0xcb, 0xae, 0x2d, 0x21, 0xe9, 0xea, 0x76, 0x3f, 0x18, 0x7c, 0x26, 0x9e, 0x0f, 0x3e, + 0x6b, 0xd9, 0x41, 0x5c, 0xfa, 0x1b, 0x46, 0x1b, 0x0d, 0x42, 0x7a, 0xbb, 0xd1, 0x83, 0x04, 0x57, + 0x6f, 0xbc, 0x8f, 0x9b, 0xc3, 0x7b, 0x9e, 0x95, 0x72, 0x80, 0x77, 0xec, 0x31, 0x37, 0x30, 0xe9, + 0x34, 0xe8, 0x8b, 0x83, 0xe7, 0xc8, 0xfb, 0x46, 0xed, 0x99, 0xed, 0x11, 0x16, 0x26, 0x69, 0xe9, + 0xaf, 0x99, 0x6d, 0xd4, 0x72, 0xe9, 0x6b, 0xbd, 0x93, 0xc3, 0xe9, 0xbc, 0x37, 0xcb, 0xd3, 0x24, + 0x6a, 0x1f, 0x31, 0x40, 0x57, 0x8a, 0xdd, 0xe9, 0xdc, 0xc4, 0xd4, 0x01, 0x40, 0x0e, 0x43, 0xfc, + 0xcf, 0xd1, 0x22, 0x27, 0xfe, 0x0d, 0x4b, 0x84, 0x0a, 0xb1, 0x1c, 0x00, 0x2c, 0x28, 0x1e, 0xcf, + 0x88, 0xb0, 0x47, 0xe1, 0x82, 0xce, 0x2c, 0xd3, 0x53, 0x8a, 0xdd, 0xe3, 0x69, 0x62, 0x86, 0xf1, + 0x1c, 0x94, 0xfb, 0xe1, 0x9c, 0x16, 0x09, 0xb3, 0x8f, 0x47, 0x21, 0x9d, 0xe3, 0xd1, 0x50, 0xa3, + 0xb7, 0x61, 0x11, 0x4d, 0x92, 0x39, 0x89, 0x1d, 0xde, 0x6a, 0xa4, 0x87, 0xb7, 0x06, 0x8a, 0xbd, + 0x3d, 0x4a, 0xca, 0x46, 0x46, 0x18, 0xbd, 0x69, 0x88, 0xdb, 0x1b, 0x46, 0x71, 0x82, 0x57, 0x72, + 0xb1, 0x61, 0xaf, 0x59, 0xf5, 0xf5, 0x3d, 0x7b, 0xbd, 0x93, 0xc3, 0xf3, 0x97, 0x0b, 0xf5, 0x97, + 0x78, 0xc7, 0x66, 0xc3, 0xfc, 0x22, 0x83, 0xbe, 0xb8, 0xd5, 0xb3, 0x4c, 0x16, 0xb7, 0xe7, 0x56, + 0xc2, 0x04, 0x7d, 0x71, 0xfc, 0x19, 0x87, 0x79, 0x9e, 0x2e, 0x8e, 0xc8, 0x34, 0x4f, 0xad, 0x9f, + 0x51, 0x43, 0xdc, 0x9f, 0x11, 0xa3, 0x78, 0xbf, 0x3a, 0xa2, 0x7c, 0x37, 0x34, 0xee, 0x57, 0x95, + 0xc8, 0xbd, 0x5f, 0xd5, 0x08, 0xde, 0x56, 0x86, 0x71, 0xfc, 0x32, 0x61, 0x13, 0xf1, 0x8f, 0x83, + 0xd8, 0xbc, 0xad, 0x20, 0xc8, 0xbd, 0xad, 0xb4, 0x61, 0x55, 0x3e, 0xd7, 0xe7, 0x90, 0xb0, 0x20, + 0x3b, 0x8b, 0x47, 0x49, 0x76, 0xe2, 0x9b, 0x97, 0x52, 0x05, 0x58, 0xca, 0x67, 0x23, 0x88, 0xc7, + 0xc6, 0x0f, 0x57, 0x3b, 0x05, 0x09, 0xe3, 0xa8, 0x98, 0x4d, 0x8f, 0x4b, 0xf3, 0xd8, 0x10, 0xe4, + 0x1e, 0x5b, 0x1b, 0x06, 0x9f, 0xd4, 0xfb, 0xb6, 0x5c, 0x48, 0x9a, 0x2e, 0x6d, 0xcb, 0x83, 0xc9, + 0xe3, 0xad, 0x5e, 0x2c, 0x3e, 0xd4, 0x3d, 0xcf, 0x62, 0x6a, 0x3e, 0xd4, 0x71, 0x89, 0xfb, 0x50, + 0x07, 0x04, 0x36, 0x79, 0x48, 0x6c, 0x26, 0xb9, 0xc4, 0x6d, 0x12, 0x08, 0xfc, 0x5a, 0x0e, 0xa6, + 0xbc, 0x0a, 0x7a, 0x1c, 0x16, 0x27, 0x55, 0x4b, 0xc3, 0xf8, 0x5a, 0x74, 0xc6, 0xfd, 0x5a, 0x5a, + 0xac, 0x69, 0xd1, 0x83, 0x02, 0xce, 0xba, 0xe8, 0xa1, 0x0a, 0x6e, 0xbd, 0x93, 0xc3, 0x89, 0x7c, + 0x48, 0xd2, 0x90, 0x25, 0x34, 0x1b, 0xc6, 0xb1, 0x31, 0x91, 0x6b, 0x39, 0x9f, 0x13, 0xce, 0x44, + 0x46, 0x20, 0x7e, 0x7b, 0xb5, 0xf8, 0x79, 0x1e, 0xf3, 0x95, 0xe6, 0xa6, 0xcb, 0x82, 0x60, 0x9c, + 0x6f, 0xaf, 0xcd, 0xda, 0x1c, 0xc2, 0xb6, 0xe1, 0x74, 0x88, 0xb6, 0x8e, 0x5b, 0xbd, 0x58, 0x55, + 0xee, 0xb7, 0xde, 0xe4, 0x3e, 0x09, 0xd9, 0xac, 0x68, 0x95, 0xfb, 0xed, 0x17, 0x55, 0x83, 0x96, + 0x72, 0xdf, 0xa9, 0x00, 0xfe, 0xff, 0x32, 0xf0, 0x3e, 0xd1, 0xb9, 0x43, 0x32, 0xa5, 0x73, 0x22, + 0x63, 0xb8, 0xe7, 0x32, 0xa9, 0xb3, 0x32, 0x8c, 0xed, 0xa5, 0x74, 0x20, 0x92, 0x3f, 0x0d, 0xbc, + 0xef, 0xe9, 0x28, 0xcf, 0xbc, 0xe1, 0x3c, 0x4c, 0xd2, 0xf0, 0x38, 0x25, 0xfe, 0x5d, 0x97, 0x51, + 0x0d, 0x95, 0x71, 0xdc, 0x5b, 0x46, 0x05, 0xef, 0xaa, 0x35, 0xf8, 0x34, 0xaf, 0x13, 0xfc, 0x8e, + 0xc3, 0x9c, 0xa0, 0xb4, 0x34, 0x0f, 0xfa, 0xe2, 0xe0, 0xf9, 0x0f, 0x03, 0x6f, 0xc5, 0x44, 0x41, + 0xce, 0x6f, 0x75, 0x9b, 0x43, 0x99, 0x7f, 0x77, 0x09, 0x8d, 0x8e, 0x18, 0x60, 0x1a, 0xf4, 0x88, + 0x01, 0x4d, 0x86, 0xbb, 0x4b, 0x68, 0xe0, 0x15, 0x8c, 0x9f, 0xbc, 0xa1, 0xbc, 0x36, 0xad, 0x60, + 0xd5, 0xc1, 0x1c, 0x95, 0xd8, 0xeb, 0x9d, 0x9c, 0x6a, 0x42, 0x29, 0x29, 0x4f, 0x05, 0xd4, 0x84, + 0x6a, 0xa8, 0x72, 0xa9, 0xa5, 0x09, 0xd5, 0xa6, 0xc0, 0xfc, 0xa9, 0x77, 0x5e, 0xc9, 0x9a, 0xf9, + 0x6c, 0x4c, 0x22, 0x28, 0x31, 0x1a, 0x89, 0xe9, 0x4c, 0x22, 0x23, 0x0e, 0x8e, 0x59, 0xbd, 0xf5, + 0x37, 0x1d, 0xf3, 0xe4, 0xbd, 0xdd, 0x69, 0xa8, 0x99, 0xbb, 0x77, 0x7a, 0xd2, 0xe0, 0xf5, 0x77, + 0xde, 0x85, 0xb6, 0x57, 0xc8, 0xdb, 0xcd, 0x4e, 0x53, 0x28, 0x6d, 0xb7, 0xfa, 0x2b, 0xb8, 0xdc, + 0x8b, 0x75, 0xa6, 0x87, 0x7b, 0x01, 0x2e, 0xe1, 0x5e, 0x2a, 0xa8, 0x6e, 0xc1, 0xc3, 0xa4, 0x64, + 0xb4, 0x58, 0x8c, 0x26, 0xf4, 0xb4, 0xbe, 0x76, 0xd1, 0x77, 0x39, 0x00, 0x82, 0x06, 0x61, 0xe9, + 0x16, 0x98, 0xc9, 0x96, 0x2b, 0x75, 0x3d, 0x53, 0x5a, 0x5c, 0x35, 0x88, 0x0e, 0x57, 0x3a, 0xa9, + 0xf6, 0xf8, 0x7a, 0x54, 0xea, 0x2e, 0x69, 0xdd, 0x1c, 0x6a, 0xfb, 0x3e, 0x69, 0xa3, 0x1b, 0x54, + 0xc7, 0xfb, 0xfd, 0x24, 0x25, 0x4f, 0x5f, 0xbf, 0x4e, 0x69, 0x18, 0xa3, 0xe3, 0x3d, 0x97, 0x04, + 0x20, 0xb2, 0x1c, 0xef, 0x11, 0xa2, 0xea, 0x74, 0x2e, 0xe0, 0x93, 0xa3, 0xb6, 0x7c, 0xbd, 0xad, + 0xd6, 0x10, 0x5b, 0xea, 0x74, 0x03, 0xa6, 0x0e, 0x8b, 0x5c, 0xf8, 0x3c, 0xaf, 0x8c, 0x5f, 0x6a, + 0x6b, 0x09, 0x89, 0xe5, 0xb0, 0xa8, 0x13, 0xaa, 0x87, 0xc6, 0x9f, 0xef, 0xd1, 0xd3, 0xac, 0x32, + 0x6a, 0x18, 0x68, 0x2d, 0xb3, 0xf4, 0xd0, 0x30, 0x03, 0x86, 0x3f, 0xf7, 0xbe, 0x5a, 0x19, 0x2e, + 0x68, 0xee, 0xaf, 0x1a, 0x14, 0x8a, 0x46, 0xe7, 0xf7, 0xa2, 0x55, 0xae, 0xaa, 0x8b, 0x27, 0xe1, + 0x3c, 0x19, 0xcb, 0x35, 0x4d, 0xcc, 0x11, 0x5c, 0x5d, 0x28, 0x26, 0x68, 0x40, 0x96, 0xea, 0xc2, + 0x0a, 0x83, 0xcf, 0x7f, 0x0c, 0xbc, 0x4b, 0x8a, 0x79, 0x50, 0xf7, 0x66, 0x0e, 0xb2, 0xd7, 0x94, + 0x97, 0x5a, 0xbc, 0xfc, 0x29, 0xfd, 0x1f, 0xd8, 0x4c, 0x9a, 0x79, 0x19, 0xca, 0x0f, 0x97, 0xd6, + 0x83, 0xa8, 0x7e, 0xeb, 0x5d, 0xa8, 0xcb, 0x55, 0xb1, 0xbf, 0xec, 0x17, 0x74, 0x2a, 0x34, 0x7c, + 0x7d, 0xe1, 0x96, 0x55, 0x2d, 0xe6, 0x64, 0x10, 0x9b, 0xbd, 0xf9, 0xc6, 0xc9, 0xcd, 0xe6, 0xbd, + 0xea, 0x80, 0xdd, 0xeb, 0x67, 0x51, 0x6b, 0x85, 0x6d, 0x2f, 0xa5, 0xa3, 0x6e, 0x2e, 0x64, 0x20, + 0x29, 0xcd, 0xf0, 0xad, 0x88, 0xb2, 0xc2, 0x85, 0x96, 0x9b, 0x8b, 0x16, 0xa4, 0x56, 0xa1, 0x5a, + 0x24, 0x8a, 0x90, 0x61, 0x9a, 0xa2, 0x55, 0x48, 0xaa, 0x4a, 0xc0, 0xb2, 0x0a, 0x19, 0x41, 0xf0, + 0x73, 0xe8, 0x7d, 0xc0, 0x3f, 0xee, 0xb3, 0x82, 0xcc, 0x13, 0x82, 0xef, 0x08, 0x1a, 0x12, 0xcb, + 0x74, 0xd6, 0x09, 0x75, 0xc6, 0x78, 0x9e, 0x95, 0x79, 0x1a, 0x96, 0x13, 0x68, 0x8a, 0xeb, 0x63, + 0xae, 0x85, 0xb8, 0x2d, 0x7e, 0xbd, 0x83, 0x52, 0xe7, 0xa4, 0x5a, 0x26, 0x57, 0x8c, 0x35, 0xb3, + 0x6a, 0x6b, 0xd5, 0x58, 0xef, 0xe4, 0xd4, 0xea, 0xbc, 0x93, 0xd2, 0xe8, 0x04, 0x96, 0x39, 0x7d, + 0xd4, 0x95, 0x04, 0xaf, 0x73, 0x57, 0x5c, 0x88, 0x5a, 0xe8, 0x2a, 0xc1, 0x21, 0xc9, 0xd3, 0x30, + 0xc2, 0xb7, 0x27, 0x42, 0x07, 0x64, 0x96, 0x85, 0x0e, 0x33, 0x28, 0x5c, 0x38, 0x36, 0x9a, 0xc2, + 0x45, 0x27, 0xc6, 0x2b, 0x2e, 0x44, 0x2d, 0xf5, 0x95, 0x60, 0x94, 0xa7, 0x09, 0x43, 0xb9, 0x21, + 0x34, 0x2a, 0x89, 0x25, 0x37, 0x74, 0x02, 0x99, 0x7c, 0x4c, 0x8a, 0x31, 0x31, 0x9a, 0xac, 0x24, + 0x4e, 0x93, 0x35, 0x01, 0x26, 0x9f, 0x78, 0x5f, 0x13, 0x63, 0xa7, 0xf9, 0xc2, 0xbf, 0x68, 0x1a, + 0x16, 0xcd, 0x17, 0xd2, 0xe0, 0x25, 0x3b, 0x80, 0x42, 0x7c, 0x16, 0x96, 0xcc, 0x1c, 0x62, 0x25, + 0x71, 0x86, 0x58, 0x13, 0x6a, 0x1f, 0x12, 0x21, 0xce, 0x18, 0xda, 0x87, 0x20, 0x80, 0x46, 0xbf, + 0xfc, 0xa2, 0x55, 0xae, 0xa6, 0x97, 0xf8, 0x2a, 0x84, 0xed, 0x27, 0x24, 0x8d, 0x4b, 0x34, 0xbd, + 0xe0, 0xbd, 0xd7, 0x52, 0xcb, 0xf4, 0x6a, 0x53, 0x28, 0x95, 0xa0, 0x87, 0x62, 0x1a, 0x1d, 0x6a, + 0x9f, 0x5c, 0x71, 0x21, 0xea, 0x5c, 0x52, 0x09, 0x1a, 0x2d, 0x69, 0x53, 0x3c, 0x86, 0x8e, 0xf4, + 0x5a, 0x17, 0x06, 0x1e, 0xfe, 0x36, 0xf0, 0x3e, 0x95, 0x2e, 0x1e, 0xd3, 0x39, 0x39, 0xa2, 0xf7, + 0xdf, 0x24, 0x25, 0x4b, 0xb2, 0x31, 0x6c, 0x4d, 0xdb, 0x16, 0x4b, 0x26, 0x58, 0xba, 0xff, 0xfe, + 0x72, 0x4a, 0x6a, 0x87, 0x44, 0xb1, 0x3c, 0x21, 0xa7, 0xc6, 0x1d, 0x12, 0x5b, 0x94, 0x9c, 0x65, + 0x87, 0x74, 0xf1, 0xaa, 0xb7, 0x22, 0x9d, 0xc3, 0x6f, 0x5f, 0x8e, 0x68, 0x7d, 0x58, 0xb1, 0x59, + 0xc3, 0xa0, 0xa5, 0x2e, 0x70, 0x2a, 0xa8, 0xc3, 0xba, 0xf4, 0xaf, 0x92, 0x74, 0xc3, 0x62, 0xa7, + 0x9d, 0xa8, 0x37, 0x7a, 0x90, 0x06, 0x57, 0xea, 0x5e, 0xc5, 0xe6, 0xaa, 0x7d, 0xad, 0x72, 0xa3, + 0x07, 0xd9, 0xe8, 0xd3, 0x34, 0x87, 0xb5, 0x13, 0x46, 0x27, 0xe3, 0x82, 0xce, 0xb2, 0x78, 0x97, + 0xa6, 0xb4, 0x40, 0x7d, 0x1a, 0x2d, 0x6a, 0x84, 0x5a, 0xfa, 0x34, 0x1d, 0x2a, 0xea, 0x60, 0xd0, + 0x8c, 0x62, 0x98, 0x26, 0x63, 0x5c, 0x9e, 0x68, 0x86, 0x2a, 0xc0, 0x72, 0x30, 0x30, 0x82, 0x06, + 0x3f, 0x47, 0xb3, 0x22, 0x3b, 0xc8, 0x18, 0xb5, 0xfa, 0xa9, 0x81, 0x4e, 0x3f, 0x0d, 0x50, 0xed, + 0xe6, 0x95, 0xf8, 0x88, 0xbc, 0xe1, 0x51, 0xf0, 0xff, 0xf8, 0x86, 0x29, 0xcf, 0x9f, 0x07, 0x20, + 0xb7, 0xec, 0xe6, 0x26, 0x0e, 0x0d, 0x06, 0x9c, 0x88, 0x0f, 0xe6, 0xd0, 0xd6, 0x3f, 0xd3, 0x46, + 0x37, 0x68, 0xf6, 0x33, 0x62, 0x8b, 0x94, 0xb8, 0xfc, 0x54, 0x40, 0x1f, 0x3f, 0x35, 0xa8, 0x2e, + 0xa2, 0xb4, 0xf1, 0x4c, 0x48, 0x74, 0xd2, 0xba, 0xbd, 0xd4, 0x03, 0x15, 0x88, 0xe5, 0x22, 0xca, + 0x82, 0x9a, 0x3f, 0xd1, 0x41, 0x44, 0x33, 0xd7, 0x27, 0xe2, 0xf2, 0x3e, 0x9f, 0x08, 0x38, 0x55, + 0x5d, 0x49, 0x29, 0x64, 0xa4, 0xf8, 0x4c, 0xb7, 0x2c, 0x16, 0x9a, 0x90, 0xa5, 0xba, 0xb2, 0xc2, + 0xaa, 0xeb, 0x8d, 0x7d, 0x3e, 0x0e, 0x8b, 0x13, 0xff, 0xa6, 0xdb, 0x0a, 0x67, 0x2c, 0x5d, 0x6f, + 0x1b, 0x6b, 0x1f, 0xa4, 0xc8, 0x91, 0x0e, 0x2b, 0x7a, 0x9e, 0xdc, 0xee, 0x07, 0xa3, 0xaf, 0xc7, + 0x2b, 0xda, 0x11, 0x61, 0x4f, 0xc2, 0x29, 0x31, 0x7d, 0xbd, 0xaa, 0xe0, 0x05, 0xb9, 0xeb, 0xeb, + 0x21, 0x0e, 0x25, 0xfe, 0xc1, 0x34, 0x1c, 0x4b, 0x2f, 0x06, 0xed, 0x4a, 0xde, 0x72, 0xb3, 0xd1, + 0x0d, 0x22, 0x3f, 0x2f, 0x92, 0x98, 0x50, 0x87, 0x9f, 0x4a, 0xde, 0xc7, 0x0f, 0x06, 0xd1, 0xfe, + 0xcd, 0x47, 0x2b, 0x4e, 0xc5, 0xc3, 0x2c, 0x86, 0x5a, 0x20, 0xb0, 0xbc, 0x14, 0xc4, 0xb9, 0xf6, + 0x6f, 0x0b, 0x8f, 0xb2, 0xa4, 0x6e, 0xe4, 0xb8, 0xb2, 0x44, 0xf6, 0x69, 0xfa, 0x64, 0x89, 0x09, + 0x06, 0x9f, 0xbf, 0xf1, 0x3e, 0xae, 0x90, 0xbd, 0x90, 0x85, 0xbc, 0x9a, 0x7b, 0x91, 0x90, 0x53, + 0x28, 0x26, 0x0c, 0xe3, 0xad, 0xa9, 0x80, 0x63, 0xb8, 0xb2, 0xd8, 0xec, 0xcd, 0x3b, 0x7c, 0xc3, + 0x19, 0xb1, 0xd3, 0x37, 0x3a, 0x2c, 0x6e, 0xf6, 0xe6, 0x1d, 0xbe, 0xa1, 0x81, 0xdb, 0xe9, 0x1b, + 0xf5, 0x6f, 0x37, 0x7b, 0xf3, 0xe0, 0xfb, 0x8f, 0x03, 0x6f, 0xa5, 0xe5, 0x9c, 0xef, 0xc4, 0x11, + 0x4b, 0xe6, 0xc4, 0x74, 0xa0, 0xd0, 0xed, 0x49, 0xd4, 0x75, 0xa0, 0xb0, 0xab, 0x40, 0x14, 0x7f, + 0x1d, 0x78, 0x9f, 0x98, 0xa2, 0x78, 0x46, 0xcb, 0x84, 0x25, 0x34, 0x33, 0x1d, 0x9b, 0x5b, 0x46, + 0x6b, 0xd8, 0x75, 0x6c, 0x76, 0x29, 0x41, 0x2c, 0x33, 0xef, 0xbc, 0x86, 0xf2, 0x3c, 0xa5, 0xb3, + 0x22, 0x22, 0xfe, 0x6d, 0x87, 0x3d, 0x49, 0x59, 0xda, 0xf8, 0x76, 0x5a, 0xf5, 0xd1, 0x35, 0xa6, + 0x79, 0x7f, 0xe0, 0xfa, 0xaa, 0xc6, 0x2b, 0x84, 0xad, 0xfe, 0x0a, 0xe0, 0xfe, 0xcf, 0xf5, 0xc9, + 0x12, 0xfb, 0x87, 0x44, 0xbc, 0xd7, 0xc7, 0x22, 0x4a, 0xc6, 0xed, 0xa5, 0x74, 0xba, 0x02, 0x81, + 0xd9, 0xd8, 0x2b, 0x10, 0x34, 0x23, 0xb7, 0x97, 0xd2, 0x81, 0x40, 0xfe, 0x39, 0xf0, 0xae, 0x18, + 0x03, 0xd1, 0xaf, 0x46, 0x7f, 0xd4, 0xc7, 0xb6, 0xf9, 0x8a, 0xf4, 0xc7, 0xef, 0xa3, 0x8a, 0xea, + 0x2b, 0x15, 0x5c, 0x44, 0x8b, 0x18, 0x56, 0x4b, 0x47, 0xbe, 0x08, 0x0e, 0x2f, 0x97, 0x5b, 0xfd, + 0x15, 0x9c, 0xfe, 0x8d, 0xd7, 0x4e, 0x26, 0x73, 0xce, 0x6b, 0x27, 0xa7, 0x82, 0xd3, 0x3f, 0xe4, + 0x48, 0xb7, 0x7f, 0x94, 0x20, 0x5b, 0xfd, 0x15, 0xc0, 0xff, 0xbf, 0x07, 0xde, 0x35, 0x03, 0xd7, + 0xbe, 0xb8, 0xfe, 0x49, 0xa7, 0x69, 0xc7, 0x35, 0xf6, 0x4f, 0xdf, 0x4f, 0x19, 0x62, 0xfc, 0xcf, + 0xc0, 0x5b, 0xef, 0x8c, 0x11, 0x3e, 0xd9, 0xcf, 0x96, 0xf5, 0x84, 0xbe, 0xe0, 0x67, 0xef, 0xad, + 0xbf, 0x4c, 0xb0, 0xf0, 0x7d, 0x97, 0x0e, 0x16, 0x7d, 0xee, 0xcf, 0xde, 0x5b, 0xbf, 0xd5, 0xdd, + 0xc8, 0xa0, 0xdd, 0xa9, 0x7e, 0x74, 0x66, 0xca, 0xbe, 0xea, 0x27, 0x62, 0x18, 0x74, 0x65, 0x9f, + 0x4d, 0xa1, 0xf1, 0x53, 0x01, 0xc9, 0xd5, 0xb5, 0x73, 0x9e, 0x93, 0xb0, 0x08, 0xb3, 0x08, 0xff, + 0x54, 0x40, 0x19, 0x6c, 0x91, 0x96, 0x9f, 0x0a, 0xb8, 0x35, 0x50, 0xdb, 0x63, 0x87, 0xd2, 0x93, + 0x69, 0x58, 0x9c, 0xec, 0x13, 0x16, 0x4d, 0x4c, 0x6d, 0x8f, 0x1a, 0x08, 0x2a, 0xc2, 0xd5, 0xf6, + 0x68, 0x91, 0xb8, 0xed, 0x51, 0x03, 0xf2, 0xd8, 0x2a, 0x9c, 0xde, 0x75, 0x98, 0xd2, 0x51, 0xd7, + 0x29, 0xc5, 0xae, 0x82, 0x2a, 0xde, 0x3a, 0x39, 0x46, 0x84, 0x7d, 0x4e, 0x16, 0xa6, 0x8a, 0x57, + 0xae, 0xde, 0x02, 0x71, 0x55, 0xbc, 0x6d, 0x14, 0xd5, 0x4c, 0xcd, 0x83, 0xc0, 0x9a, 0x43, 0xbf, + 0xb9, 0x6e, 0xac, 0x77, 0x72, 0xa8, 0xfa, 0xdc, 0x4b, 0xe6, 0xda, 0x29, 0xdf, 0x10, 0xe8, 0x5e, + 0x32, 0x37, 0x1f, 0xf2, 0x6f, 0xf5, 0x62, 0x71, 0x4b, 0x27, 0x64, 0xe4, 0x4d, 0xdd, 0x6b, 0x31, + 0x84, 0x5b, 0xc9, 0x5b, 0xcd, 0x96, 0x8d, 0x6e, 0x50, 0xdd, 0x8b, 0x3d, 0x2b, 0x68, 0x44, 0xca, + 0x72, 0x97, 0xa7, 0x6d, 0x8a, 0xee, 0xc5, 0x40, 0x16, 0x08, 0xa1, 0xe5, 0x5e, 0xac, 0x05, 0x81, + 0xed, 0x87, 0xde, 0xd9, 0x47, 0x74, 0x3c, 0x22, 0x59, 0xec, 0x7f, 0xaa, 0xdf, 0x44, 0xd1, 0x71, + 0xc0, 0x1f, 0x4b, 0x7b, 0xab, 0x36, 0xb1, 0xba, 0x36, 0xd8, 0x23, 0xc7, 0xb3, 0xf1, 0x68, 0x91, + 0x45, 0xe8, 0xda, 0xa0, 0x7a, 0x1e, 0x70, 0x81, 0xe5, 0xda, 0x40, 0x03, 0x54, 0xdf, 0xbc, 0x7a, + 0x7c, 0x34, 0x29, 0x48, 0xeb, 0xc6, 0x48, 0x28, 0x08, 0x91, 0xa5, 0x6f, 0x8e, 0x10, 0x14, 0xe5, + 0x51, 0x41, 0x88, 0x31, 0x4a, 0x2e, 0x70, 0x46, 0x09, 0x80, 0xaa, 0x2d, 0xab, 0xc7, 0xa2, 0x3f, + 0xff, 0x88, 0x46, 0x61, 0x5a, 0x32, 0x5a, 0xe0, 0xda, 0x52, 0xa8, 0x62, 0xc8, 0x52, 0x5b, 0x5a, + 0x61, 0x34, 0x86, 0x67, 0x49, 0x36, 0x36, 0x8e, 0x81, 0x0b, 0x9c, 0x63, 0x00, 0x40, 0x4d, 0x9c, + 0xc7, 0x84, 0x15, 0x49, 0x54, 0xf2, 0x22, 0x22, 0x2c, 0xc2, 0x29, 0x61, 0xa4, 0xc0, 0x3f, 0xb9, + 0x05, 0x24, 0xd0, 0x18, 0xcb, 0xc4, 0xb1, 0xb1, 0xe0, 0x70, 0xcb, 0xfb, 0x90, 0xcf, 0x28, 0x92, + 0xdd, 0xaf, 0xfe, 0x06, 0xd9, 0x3f, 0x27, 0x95, 0xef, 0x4f, 0x73, 0xb6, 0x58, 0x69, 0xfc, 0x9b, + 0x03, 0x5b, 0x83, 0x9d, 0xcb, 0xff, 0x7d, 0xbb, 0x3a, 0xf8, 0xe2, 0xed, 0xea, 0xe0, 0xff, 0x6f, + 0x57, 0x07, 0x7f, 0x7f, 0xb7, 0x7a, 0xe6, 0x8b, 0x77, 0xab, 0x67, 0xfe, 0xf7, 0x6e, 0xf5, 0xcc, + 0xab, 0xb3, 0xf0, 0x37, 0xd0, 0xc7, 0x5f, 0xa9, 0xfe, 0x92, 0x79, 0xfb, 0xcb, 0x00, 0x00, 0x00, + 0xff, 0xff, 0x56, 0x37, 0x5d, 0xa0, 0x27, 0x3d, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -236,148 +218,78 @@ const _ = grpc.SupportPackageIsVersion4 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type ClientCommandsClient interface { - ObjectAddWithObjectId(ctx context.Context, in *pb.RpcObjectAddWithObjectIdRequest, opts ...grpc.CallOption) (*pb.RpcObjectAddWithObjectIdResponse, error) - ObjectShareByLink(ctx context.Context, in *pb.RpcObjectShareByLinkRequest, opts ...grpc.CallOption) (*pb.RpcObjectShareByLinkResponse, error) + AppGetVersion(ctx context.Context, in *pb.RpcAppGetVersionRequest, opts ...grpc.CallOption) (*pb.RpcAppGetVersionResponse, error) + AppSetDeviceState(ctx context.Context, in *pb.RpcAppSetDeviceStateRequest, opts ...grpc.CallOption) (*pb.RpcAppSetDeviceStateResponse, error) + AppShutdown(ctx context.Context, in *pb.RpcAppShutdownRequest, opts ...grpc.CallOption) (*pb.RpcAppShutdownResponse, error) + // Wallet + // *** WalletCreate(ctx context.Context, in *pb.RpcWalletCreateRequest, opts ...grpc.CallOption) (*pb.RpcWalletCreateResponse, error) WalletRecover(ctx context.Context, in *pb.RpcWalletRecoverRequest, opts ...grpc.CallOption) (*pb.RpcWalletRecoverResponse, error) WalletConvert(ctx context.Context, in *pb.RpcWalletConvertRequest, opts ...grpc.CallOption) (*pb.RpcWalletConvertResponse, error) + // Workspace + // *** WorkspaceCreate(ctx context.Context, in *pb.RpcWorkspaceCreateRequest, opts ...grpc.CallOption) (*pb.RpcWorkspaceCreateResponse, error) WorkspaceSelect(ctx context.Context, in *pb.RpcWorkspaceSelectRequest, opts ...grpc.CallOption) (*pb.RpcWorkspaceSelectResponse, error) WorkspaceGetCurrent(ctx context.Context, in *pb.RpcWorkspaceGetCurrentRequest, opts ...grpc.CallOption) (*pb.RpcWorkspaceGetCurrentResponse, error) WorkspaceGetAll(ctx context.Context, in *pb.RpcWorkspaceGetAllRequest, opts ...grpc.CallOption) (*pb.RpcWorkspaceGetAllResponse, error) WorkspaceSetIsHighlighted(ctx context.Context, in *pb.RpcWorkspaceSetIsHighlightedRequest, opts ...grpc.CallOption) (*pb.RpcWorkspaceSetIsHighlightedResponse, error) + WorkspaceExport(ctx context.Context, in *pb.RpcWorkspaceExportRequest, opts ...grpc.CallOption) (*pb.RpcWorkspaceExportResponse, error) + // Account + // *** AccountRecover(ctx context.Context, in *pb.RpcAccountRecoverRequest, opts ...grpc.CallOption) (*pb.RpcAccountRecoverResponse, error) AccountCreate(ctx context.Context, in *pb.RpcAccountCreateRequest, opts ...grpc.CallOption) (*pb.RpcAccountCreateResponse, error) AccountDelete(ctx context.Context, in *pb.RpcAccountDeleteRequest, opts ...grpc.CallOption) (*pb.RpcAccountDeleteResponse, error) AccountSelect(ctx context.Context, in *pb.RpcAccountSelectRequest, opts ...grpc.CallOption) (*pb.RpcAccountSelectResponse, error) AccountStop(ctx context.Context, in *pb.RpcAccountStopRequest, opts ...grpc.CallOption) (*pb.RpcAccountStopResponse, error) - FileOffload(ctx context.Context, in *pb.RpcFileOffloadRequest, opts ...grpc.CallOption) (*pb.RpcFileOffloadResponse, error) - FileListOffload(ctx context.Context, in *pb.RpcFileListOffloadRequest, opts ...grpc.CallOption) (*pb.RpcFileListOffloadResponse, error) - VersionGet(ctx context.Context, in *pb.RpcVersionGetRequest, opts ...grpc.CallOption) (*pb.RpcVersionGetResponse, error) - LogSend(ctx context.Context, in *pb.RpcLogSendRequest, opts ...grpc.CallOption) (*pb.RpcLogSendResponse, error) - ConfigGet(ctx context.Context, in *pb.RpcConfigGetRequest, opts ...grpc.CallOption) (*pb.RpcConfigGetResponse, error) - Shutdown(ctx context.Context, in *pb.RpcShutdownRequest, opts ...grpc.CallOption) (*pb.RpcShutdownResponse, error) - SetDeviceState(ctx context.Context, in *pb.RpcDeviceStateRequest, opts ...grpc.CallOption) (*pb.RpcDeviceStateResponse, error) - ExternalDropFiles(ctx context.Context, in *pb.RpcExternalDropFilesRequest, opts ...grpc.CallOption) (*pb.RpcExternalDropFilesResponse, error) - ExternalDropContent(ctx context.Context, in *pb.RpcExternalDropContentRequest, opts ...grpc.CallOption) (*pb.RpcExternalDropContentResponse, error) - LinkPreview(ctx context.Context, in *pb.RpcLinkPreviewRequest, opts ...grpc.CallOption) (*pb.RpcLinkPreviewResponse, error) - UploadFile(ctx context.Context, in *pb.RpcUploadFileRequest, opts ...grpc.CallOption) (*pb.RpcUploadFileResponse, error) - DownloadFile(ctx context.Context, in *pb.RpcDownloadFileRequest, opts ...grpc.CallOption) (*pb.RpcDownloadFileResponse, error) - BlockUpload(ctx context.Context, in *pb.RpcBlockUploadRequest, opts ...grpc.CallOption) (*pb.RpcBlockUploadResponse, error) - BlockReplace(ctx context.Context, in *pb.RpcBlockReplaceRequest, opts ...grpc.CallOption) (*pb.RpcBlockReplaceResponse, error) - // BlockUpdateContent allows to update any simple block content to the new value of the same type - BlockUpdateContent(ctx context.Context, in *pb.RpcBlockUpdateContentRequest, opts ...grpc.CallOption) (*pb.RpcBlockUpdateContentResponse, error) - BlockOpen(ctx context.Context, in *pb.RpcBlockOpenRequest, opts ...grpc.CallOption) (*pb.RpcBlockOpenResponse, error) - BlockShow(ctx context.Context, in *pb.RpcBlockShowRequest, opts ...grpc.CallOption) (*pb.RpcBlockShowResponse, error) - BlockGetPublicWebURL(ctx context.Context, in *pb.RpcBlockGetPublicWebURLRequest, opts ...grpc.CallOption) (*pb.RpcBlockGetPublicWebURLResponse, error) - BlockOpenBreadcrumbs(ctx context.Context, in *pb.RpcBlockOpenBreadcrumbsRequest, opts ...grpc.CallOption) (*pb.RpcBlockOpenBreadcrumbsResponse, error) - BlockSetBreadcrumbs(ctx context.Context, in *pb.RpcBlockSetBreadcrumbsRequest, opts ...grpc.CallOption) (*pb.RpcBlockSetBreadcrumbsResponse, error) - BlockCreate(ctx context.Context, in *pb.RpcBlockCreateRequest, opts ...grpc.CallOption) (*pb.RpcBlockCreateResponse, error) - BlockCreatePage(ctx context.Context, in *pb.RpcBlockCreatePageRequest, opts ...grpc.CallOption) (*pb.RpcBlockCreatePageResponse, error) - BlockCreateSet(ctx context.Context, in *pb.RpcBlockCreateSetRequest, opts ...grpc.CallOption) (*pb.RpcBlockCreateSetResponse, error) - BlockUnlink(ctx context.Context, in *pb.RpcBlockUnlinkRequest, opts ...grpc.CallOption) (*pb.RpcBlockUnlinkResponse, error) - BlockClose(ctx context.Context, in *pb.RpcBlockCloseRequest, opts ...grpc.CallOption) (*pb.RpcBlockCloseResponse, error) - BlockDownload(ctx context.Context, in *pb.RpcBlockDownloadRequest, opts ...grpc.CallOption) (*pb.RpcBlockDownloadResponse, error) - BlockGetMarks(ctx context.Context, in *pb.RpcBlockGetMarksRequest, opts ...grpc.CallOption) (*pb.RpcBlockGetMarksResponse, error) - BlockUndo(ctx context.Context, in *pb.RpcBlockUndoRequest, opts ...grpc.CallOption) (*pb.RpcBlockUndoResponse, error) - BlockRedo(ctx context.Context, in *pb.RpcBlockRedoRequest, opts ...grpc.CallOption) (*pb.RpcBlockRedoResponse, error) - BlockSetFields(ctx context.Context, in *pb.RpcBlockSetFieldsRequest, opts ...grpc.CallOption) (*pb.RpcBlockSetFieldsResponse, error) - BlockSetRestrictions(ctx context.Context, in *pb.RpcBlockSetRestrictionsRequest, opts ...grpc.CallOption) (*pb.RpcBlockSetRestrictionsResponse, error) - BlockListMove(ctx context.Context, in *pb.RpcBlockListMoveRequest, opts ...grpc.CallOption) (*pb.RpcBlockListMoveResponse, error) - BlockListMoveToNewPage(ctx context.Context, in *pb.RpcBlockListMoveToNewPageRequest, opts ...grpc.CallOption) (*pb.RpcBlockListMoveToNewPageResponse, error) - BlockListConvertChildrenToPages(ctx context.Context, in *pb.RpcBlockListConvertChildrenToPagesRequest, opts ...grpc.CallOption) (*pb.RpcBlockListConvertChildrenToPagesResponse, error) - BlockListSetFields(ctx context.Context, in *pb.RpcBlockListSetFieldsRequest, opts ...grpc.CallOption) (*pb.RpcBlockListSetFieldsResponse, error) - BlockListSetTextStyle(ctx context.Context, in *pb.RpcBlockListSetTextStyleRequest, opts ...grpc.CallOption) (*pb.RpcBlockListSetTextStyleResponse, error) - BlockListDuplicate(ctx context.Context, in *pb.RpcBlockListDuplicateRequest, opts ...grpc.CallOption) (*pb.RpcBlockListDuplicateResponse, error) - BlockListSetBackgroundColor(ctx context.Context, in *pb.RpcBlockListSetBackgroundColorRequest, opts ...grpc.CallOption) (*pb.RpcBlockListSetBackgroundColorResponse, error) - BlockListSetAlign(ctx context.Context, in *pb.RpcBlockListSetAlignRequest, opts ...grpc.CallOption) (*pb.RpcBlockListSetAlignResponse, error) - BlockListSetDivStyle(ctx context.Context, in *pb.RpcBlockListSetDivStyleRequest, opts ...grpc.CallOption) (*pb.RpcBlockListSetDivStyleResponse, error) - BlockListSetFileStyle(ctx context.Context, in *pb.RpcBlockListSetFileStyleRequest, opts ...grpc.CallOption) (*pb.RpcBlockListSetFileStyleResponse, error) - BlockListTurnInto(ctx context.Context, in *pb.RpcBlockListTurnIntoRequest, opts ...grpc.CallOption) (*pb.RpcBlockListTurnIntoResponse, error) - BlockSetLatexText(ctx context.Context, in *pb.RpcBlockSetLatexTextRequest, opts ...grpc.CallOption) (*pb.RpcBlockSetLatexTextResponse, error) - BlockSetTextText(ctx context.Context, in *pb.RpcBlockSetTextTextRequest, opts ...grpc.CallOption) (*pb.RpcBlockSetTextTextResponse, error) - BlockSetTextColor(ctx context.Context, in *pb.RpcBlockSetTextColorRequest, opts ...grpc.CallOption) (*pb.RpcBlockSetTextColorResponse, error) - BlockListSetTextColor(ctx context.Context, in *pb.RpcBlockListSetTextColorRequest, opts ...grpc.CallOption) (*pb.RpcBlockListSetTextColorResponse, error) - BlockListSetTextMark(ctx context.Context, in *pb.RpcBlockListSetTextMarkRequest, opts ...grpc.CallOption) (*pb.RpcBlockListSetTextMarkResponse, error) - BlockSetTextStyle(ctx context.Context, in *pb.RpcBlockSetTextStyleRequest, opts ...grpc.CallOption) (*pb.RpcBlockSetTextStyleResponse, error) - BlockSetTextChecked(ctx context.Context, in *pb.RpcBlockSetTextCheckedRequest, opts ...grpc.CallOption) (*pb.RpcBlockSetTextCheckedResponse, error) - BlockSetTextIcon(ctx context.Context, in *pb.RpcBlockSetTextIconRequest, opts ...grpc.CallOption) (*pb.RpcBlockSetTextIconResponse, error) - BlockSplit(ctx context.Context, in *pb.RpcBlockSplitRequest, opts ...grpc.CallOption) (*pb.RpcBlockSplitResponse, error) - BlockMerge(ctx context.Context, in *pb.RpcBlockMergeRequest, opts ...grpc.CallOption) (*pb.RpcBlockMergeResponse, error) - BlockCopy(ctx context.Context, in *pb.RpcBlockCopyRequest, opts ...grpc.CallOption) (*pb.RpcBlockCopyResponse, error) - BlockPaste(ctx context.Context, in *pb.RpcBlockPasteRequest, opts ...grpc.CallOption) (*pb.RpcBlockPasteResponse, error) - BlockCut(ctx context.Context, in *pb.RpcBlockCutRequest, opts ...grpc.CallOption) (*pb.RpcBlockCutResponse, error) - BlockExport(ctx context.Context, in *pb.RpcBlockExportRequest, opts ...grpc.CallOption) (*pb.RpcBlockExportResponse, error) - BlockImportMarkdown(ctx context.Context, in *pb.RpcBlockImportMarkdownRequest, opts ...grpc.CallOption) (*pb.RpcBlockImportMarkdownResponse, error) - BlockSetFileName(ctx context.Context, in *pb.RpcBlockSetFileNameRequest, opts ...grpc.CallOption) (*pb.RpcBlockSetFileNameResponse, error) - BlockSetImageName(ctx context.Context, in *pb.RpcBlockSetImageNameRequest, opts ...grpc.CallOption) (*pb.RpcBlockSetImageNameResponse, error) - BlockSetImageWidth(ctx context.Context, in *pb.RpcBlockSetImageWidthRequest, opts ...grpc.CallOption) (*pb.RpcBlockSetImageWidthResponse, error) - BlockSetVideoName(ctx context.Context, in *pb.RpcBlockSetVideoNameRequest, opts ...grpc.CallOption) (*pb.RpcBlockSetVideoNameResponse, error) - BlockSetVideoWidth(ctx context.Context, in *pb.RpcBlockSetVideoWidthRequest, opts ...grpc.CallOption) (*pb.RpcBlockSetVideoWidthResponse, error) - BlockSetLinkTargetBlockId(ctx context.Context, in *pb.RpcBlockSetLinkTargetBlockIdRequest, opts ...grpc.CallOption) (*pb.RpcBlockSetLinkTargetBlockIdResponse, error) - BlockBookmarkFetch(ctx context.Context, in *pb.RpcBlockBookmarkFetchRequest, opts ...grpc.CallOption) (*pb.RpcBlockBookmarkFetchResponse, error) - BlockBookmarkCreateAndFetch(ctx context.Context, in *pb.RpcBlockBookmarkCreateAndFetchRequest, opts ...grpc.CallOption) (*pb.RpcBlockBookmarkCreateAndFetchResponse, error) - BlockFileCreateAndUpload(ctx context.Context, in *pb.RpcBlockFileCreateAndUploadRequest, opts ...grpc.CallOption) (*pb.RpcBlockFileCreateAndUploadResponse, error) - BlockRelationSetKey(ctx context.Context, in *pb.RpcBlockRelationSetKeyRequest, opts ...grpc.CallOption) (*pb.RpcBlockRelationSetKeyResponse, error) - BlockRelationAdd(ctx context.Context, in *pb.RpcBlockRelationAddRequest, opts ...grpc.CallOption) (*pb.RpcBlockRelationAddResponse, error) - // ## Dataview - // # View - BlockDataviewViewCreate(ctx context.Context, in *pb.RpcBlockDataviewViewCreateRequest, opts ...grpc.CallOption) (*pb.RpcBlockDataviewViewCreateResponse, error) - BlockDataviewViewDelete(ctx context.Context, in *pb.RpcBlockDataviewViewDeleteRequest, opts ...grpc.CallOption) (*pb.RpcBlockDataviewViewDeleteResponse, error) - BlockDataviewViewUpdate(ctx context.Context, in *pb.RpcBlockDataviewViewUpdateRequest, opts ...grpc.CallOption) (*pb.RpcBlockDataviewViewUpdateResponse, error) - BlockDataviewViewSetActive(ctx context.Context, in *pb.RpcBlockDataviewViewSetActiveRequest, opts ...grpc.CallOption) (*pb.RpcBlockDataviewViewSetActiveResponse, error) - BlockDataviewViewSetPosition(ctx context.Context, in *pb.RpcBlockDataviewViewSetPositionRequest, opts ...grpc.CallOption) (*pb.RpcBlockDataviewViewSetPositionResponse, error) - BlockDataviewSetSource(ctx context.Context, in *pb.RpcBlockDataviewSetSourceRequest, opts ...grpc.CallOption) (*pb.RpcBlockDataviewSetSourceResponse, error) - // # Relation - BlockDataviewRelationAdd(ctx context.Context, in *pb.RpcBlockDataviewRelationAddRequest, opts ...grpc.CallOption) (*pb.RpcBlockDataviewRelationAddResponse, error) - BlockDataviewRelationUpdate(ctx context.Context, in *pb.RpcBlockDataviewRelationUpdateRequest, opts ...grpc.CallOption) (*pb.RpcBlockDataviewRelationUpdateResponse, error) - BlockDataviewRelationDelete(ctx context.Context, in *pb.RpcBlockDataviewRelationDeleteRequest, opts ...grpc.CallOption) (*pb.RpcBlockDataviewRelationDeleteResponse, error) - BlockDataviewRelationListAvailable(ctx context.Context, in *pb.RpcBlockDataviewRelationListAvailableRequest, opts ...grpc.CallOption) (*pb.RpcBlockDataviewRelationListAvailableResponse, error) - // # Record - BlockDataviewRecordCreate(ctx context.Context, in *pb.RpcBlockDataviewRecordCreateRequest, opts ...grpc.CallOption) (*pb.RpcBlockDataviewRecordCreateResponse, error) - BlockDataviewRecordUpdate(ctx context.Context, in *pb.RpcBlockDataviewRecordUpdateRequest, opts ...grpc.CallOption) (*pb.RpcBlockDataviewRecordUpdateResponse, error) - BlockDataviewRecordDelete(ctx context.Context, in *pb.RpcBlockDataviewRecordDeleteRequest, opts ...grpc.CallOption) (*pb.RpcBlockDataviewRecordDeleteResponse, error) - BlockDataviewRecordRelationOptionAdd(ctx context.Context, in *pb.RpcBlockDataviewRecordRelationOptionAddRequest, opts ...grpc.CallOption) (*pb.RpcBlockDataviewRecordRelationOptionAddResponse, error) - BlockDataviewRecordRelationOptionUpdate(ctx context.Context, in *pb.RpcBlockDataviewRecordRelationOptionUpdateRequest, opts ...grpc.CallOption) (*pb.RpcBlockDataviewRecordRelationOptionUpdateResponse, error) - BlockDataviewRecordRelationOptionDelete(ctx context.Context, in *pb.RpcBlockDataviewRecordRelationOptionDeleteRequest, opts ...grpc.CallOption) (*pb.RpcBlockDataviewRecordRelationOptionDeleteResponse, error) - // ## Object's relations - // set an existing object type to the object so it will appear in sets and suggests relations from this type - // TODO: rename BlockObjectTypeSet -> ObjectObjectTypeSet - BlockObjectTypeSet(ctx context.Context, in *pb.RpcBlockObjectTypeSetRequest, opts ...grpc.CallOption) (*pb.RpcBlockObjectTypeSetResponse, error) - NavigationListObjects(ctx context.Context, in *pb.RpcNavigationListObjectsRequest, opts ...grpc.CallOption) (*pb.RpcNavigationListObjectsResponse, error) - NavigationGetObjectInfoWithLinks(ctx context.Context, in *pb.RpcNavigationGetObjectInfoWithLinksRequest, opts ...grpc.CallOption) (*pb.RpcNavigationGetObjectInfoWithLinksResponse, error) + // Object + // *** + ObjectOpen(ctx context.Context, in *pb.RpcObjectOpenRequest, opts ...grpc.CallOption) (*pb.RpcObjectOpenResponse, error) + ObjectClose(ctx context.Context, in *pb.RpcObjectCloseRequest, opts ...grpc.CallOption) (*pb.RpcObjectCloseResponse, error) + ObjectShow(ctx context.Context, in *pb.RpcObjectShowRequest, opts ...grpc.CallOption) (*pb.RpcObjectShowResponse, error) + // ObjectCreate just creates the new page, without adding the link to it from some other page + ObjectCreate(ctx context.Context, in *pb.RpcObjectCreateRequest, opts ...grpc.CallOption) (*pb.RpcObjectCreateResponse, error) + // ObjectCreateSet just creates the new set, without adding the link to it from some other page + ObjectCreateSet(ctx context.Context, in *pb.RpcObjectCreateSetRequest, opts ...grpc.CallOption) (*pb.RpcObjectCreateSetResponse, error) ObjectGraph(ctx context.Context, in *pb.RpcObjectGraphRequest, opts ...grpc.CallOption) (*pb.RpcObjectGraphResponse, error) ObjectSearch(ctx context.Context, in *pb.RpcObjectSearchRequest, opts ...grpc.CallOption) (*pb.RpcObjectSearchResponse, error) ObjectSearchSubscribe(ctx context.Context, in *pb.RpcObjectSearchSubscribeRequest, opts ...grpc.CallOption) (*pb.RpcObjectSearchSubscribeResponse, error) - ObjectIdsSubscribe(ctx context.Context, in *pb.RpcObjectIdsSubscribeRequest, opts ...grpc.CallOption) (*pb.RpcObjectIdsSubscribeResponse, error) + ObjectSubscribeIds(ctx context.Context, in *pb.RpcObjectSubscribeIdsRequest, opts ...grpc.CallOption) (*pb.RpcObjectSubscribeIdsResponse, error) ObjectSearchUnsubscribe(ctx context.Context, in *pb.RpcObjectSearchUnsubscribeRequest, opts ...grpc.CallOption) (*pb.RpcObjectSearchUnsubscribeResponse, error) - ObjectRelationAdd(ctx context.Context, in *pb.RpcObjectRelationAddRequest, opts ...grpc.CallOption) (*pb.RpcObjectRelationAddResponse, error) - ObjectRelationUpdate(ctx context.Context, in *pb.RpcObjectRelationUpdateRequest, opts ...grpc.CallOption) (*pb.RpcObjectRelationUpdateResponse, error) - ObjectRelationDelete(ctx context.Context, in *pb.RpcObjectRelationDeleteRequest, opts ...grpc.CallOption) (*pb.RpcObjectRelationDeleteResponse, error) - ObjectRelationOptionAdd(ctx context.Context, in *pb.RpcObjectRelationOptionAddRequest, opts ...grpc.CallOption) (*pb.RpcObjectRelationOptionAddResponse, error) - ObjectRelationOptionUpdate(ctx context.Context, in *pb.RpcObjectRelationOptionUpdateRequest, opts ...grpc.CallOption) (*pb.RpcObjectRelationOptionUpdateResponse, error) - ObjectRelationOptionDelete(ctx context.Context, in *pb.RpcObjectRelationOptionDeleteRequest, opts ...grpc.CallOption) (*pb.RpcObjectRelationOptionDeleteResponse, error) - ObjectRelationListAvailable(ctx context.Context, in *pb.RpcObjectRelationListAvailableRequest, opts ...grpc.CallOption) (*pb.RpcObjectRelationListAvailableResponse, error) + ObjectSetDetails(ctx context.Context, in *pb.RpcObjectSetDetailsRequest, opts ...grpc.CallOption) (*pb.RpcObjectSetDetailsResponse, error) + ObjectDuplicate(ctx context.Context, in *pb.RpcObjectDuplicateRequest, opts ...grpc.CallOption) (*pb.RpcObjectDuplicateResponse, error) + // ObjectSetObjectType sets an existing object type to the object so it will appear in sets and suggests relations from this type + ObjectSetObjectType(ctx context.Context, in *pb.RpcObjectSetObjectTypeRequest, opts ...grpc.CallOption) (*pb.RpcObjectSetObjectTypeResponse, error) ObjectSetLayout(ctx context.Context, in *pb.RpcObjectSetLayoutRequest, opts ...grpc.CallOption) (*pb.RpcObjectSetLayoutResponse, error) - ObjectFeaturedRelationAdd(ctx context.Context, in *pb.RpcObjectFeaturedRelationAddRequest, opts ...grpc.CallOption) (*pb.RpcObjectFeaturedRelationAddResponse, error) - ObjectFeaturedRelationRemove(ctx context.Context, in *pb.RpcObjectFeaturedRelationRemoveRequest, opts ...grpc.CallOption) (*pb.RpcObjectFeaturedRelationRemoveResponse, error) ObjectSetIsFavorite(ctx context.Context, in *pb.RpcObjectSetIsFavoriteRequest, opts ...grpc.CallOption) (*pb.RpcObjectSetIsFavoriteResponse, error) ObjectSetIsArchived(ctx context.Context, in *pb.RpcObjectSetIsArchivedRequest, opts ...grpc.CallOption) (*pb.RpcObjectSetIsArchivedResponse, error) - // ObjectToSet creates new set from given object and removes object - ObjectToSet(ctx context.Context, in *pb.RpcObjectToSetRequest, opts ...grpc.CallOption) (*pb.RpcObjectToSetResponse, error) ObjectListDuplicate(ctx context.Context, in *pb.RpcObjectListDuplicateRequest, opts ...grpc.CallOption) (*pb.RpcObjectListDuplicateResponse, error) ObjectListDelete(ctx context.Context, in *pb.RpcObjectListDeleteRequest, opts ...grpc.CallOption) (*pb.RpcObjectListDeleteResponse, error) ObjectListSetIsArchived(ctx context.Context, in *pb.RpcObjectListSetIsArchivedRequest, opts ...grpc.CallOption) (*pb.RpcObjectListSetIsArchivedResponse, error) ObjectListSetIsFavorite(ctx context.Context, in *pb.RpcObjectListSetIsFavoriteRequest, opts ...grpc.CallOption) (*pb.RpcObjectListSetIsFavoriteResponse, error) - // TODO: rename BlockSetDetails -> ObjectSetDetails - BlockSetDetails(ctx context.Context, in *pb.RpcBlockSetDetailsRequest, opts ...grpc.CallOption) (*pb.RpcBlockSetDetailsResponse, error) - // PageCreate just creates the new page, without adding the link to it from some other page - // TODO: rename PageCreate -> ObjectCreate - PageCreate(ctx context.Context, in *pb.RpcPageCreateRequest, opts ...grpc.CallOption) (*pb.RpcPageCreateResponse, error) - // SetCreate just creates the new set, without adding the link to it from some other page - SetCreate(ctx context.Context, in *pb.RpcSetCreateRequest, opts ...grpc.CallOption) (*pb.RpcSetCreateResponse, error) - MetricsSetParameters(ctx context.Context, in *pb.RpcMetricsSetParametersRequest, opts ...grpc.CallOption) (*pb.RpcMetricsSetParametersResponse, error) - // ## ObjectType + ObjectApplyTemplate(ctx context.Context, in *pb.RpcObjectApplyTemplateRequest, opts ...grpc.CallOption) (*pb.RpcObjectApplyTemplateResponse, error) + // ObjectToSet creates new set from given object and removes object + ObjectToSet(ctx context.Context, in *pb.RpcObjectToSetRequest, opts ...grpc.CallOption) (*pb.RpcObjectToSetResponse, error) + ObjectAddWithObjectId(ctx context.Context, in *pb.RpcObjectAddWithObjectIdRequest, opts ...grpc.CallOption) (*pb.RpcObjectAddWithObjectIdResponse, error) + ObjectShareByLink(ctx context.Context, in *pb.RpcObjectShareByLinkRequest, opts ...grpc.CallOption) (*pb.RpcObjectShareByLinkResponse, error) + ObjectOpenBreadcrumbs(ctx context.Context, in *pb.RpcObjectOpenBreadcrumbsRequest, opts ...grpc.CallOption) (*pb.RpcObjectOpenBreadcrumbsResponse, error) + ObjectSetBreadcrumbs(ctx context.Context, in *pb.RpcObjectSetBreadcrumbsRequest, opts ...grpc.CallOption) (*pb.RpcObjectSetBreadcrumbsResponse, error) + ObjectUndo(ctx context.Context, in *pb.RpcObjectUndoRequest, opts ...grpc.CallOption) (*pb.RpcObjectUndoResponse, error) + ObjectRedo(ctx context.Context, in *pb.RpcObjectRedoRequest, opts ...grpc.CallOption) (*pb.RpcObjectRedoResponse, error) + ObjectImportMarkdown(ctx context.Context, in *pb.RpcObjectImportMarkdownRequest, opts ...grpc.CallOption) (*pb.RpcObjectImportMarkdownResponse, error) + ObjectListExport(ctx context.Context, in *pb.RpcObjectListExportRequest, opts ...grpc.CallOption) (*pb.RpcObjectListExportResponse, error) + // Object Relations + // *** + ObjectRelationAdd(ctx context.Context, in *pb.RpcObjectRelationAddRequest, opts ...grpc.CallOption) (*pb.RpcObjectRelationAddResponse, error) + ObjectRelationUpdate(ctx context.Context, in *pb.RpcObjectRelationUpdateRequest, opts ...grpc.CallOption) (*pb.RpcObjectRelationUpdateResponse, error) + ObjectRelationDelete(ctx context.Context, in *pb.RpcObjectRelationDeleteRequest, opts ...grpc.CallOption) (*pb.RpcObjectRelationDeleteResponse, error) + ObjectRelationAddFeatured(ctx context.Context, in *pb.RpcObjectRelationAddFeaturedRequest, opts ...grpc.CallOption) (*pb.RpcObjectRelationAddFeaturedResponse, error) + ObjectRelationRemoveFeatured(ctx context.Context, in *pb.RpcObjectRelationRemoveFeaturedRequest, opts ...grpc.CallOption) (*pb.RpcObjectRelationRemoveFeaturedResponse, error) + ObjectRelationListAvailable(ctx context.Context, in *pb.RpcObjectRelationListAvailableRequest, opts ...grpc.CallOption) (*pb.RpcObjectRelationListAvailableResponse, error) + ObjectRelationOptionAdd(ctx context.Context, in *pb.RpcObjectRelationOptionAddRequest, opts ...grpc.CallOption) (*pb.RpcObjectRelationOptionAddResponse, error) + ObjectRelationOptionUpdate(ctx context.Context, in *pb.RpcObjectRelationOptionUpdateRequest, opts ...grpc.CallOption) (*pb.RpcObjectRelationOptionUpdateResponse, error) + ObjectRelationOptionDelete(ctx context.Context, in *pb.RpcObjectRelationOptionDeleteRequest, opts ...grpc.CallOption) (*pb.RpcObjectRelationOptionDeleteResponse, error) + // ObjectType commands + // *** ObjectTypeCreate(ctx context.Context, in *pb.RpcObjectTypeCreateRequest, opts ...grpc.CallOption) (*pb.RpcObjectTypeCreateResponse, error) // ObjectTypeList lists all object types both bundled and created by user ObjectTypeList(ctx context.Context, in *pb.RpcObjectTypeListRequest, opts ...grpc.CallOption) (*pb.RpcObjectTypeListResponse, error) @@ -385,27 +297,101 @@ type ClientCommandsClient interface { ObjectTypeRelationAdd(ctx context.Context, in *pb.RpcObjectTypeRelationAddRequest, opts ...grpc.CallOption) (*pb.RpcObjectTypeRelationAddResponse, error) ObjectTypeRelationUpdate(ctx context.Context, in *pb.RpcObjectTypeRelationUpdateRequest, opts ...grpc.CallOption) (*pb.RpcObjectTypeRelationUpdateResponse, error) ObjectTypeRelationRemove(ctx context.Context, in *pb.RpcObjectTypeRelationRemoveRequest, opts ...grpc.CallOption) (*pb.RpcObjectTypeRelationRemoveResponse, error) - Ping(ctx context.Context, in *pb.RpcPingRequest, opts ...grpc.CallOption) (*pb.RpcPingResponse, error) - ProcessCancel(ctx context.Context, in *pb.RpcProcessCancelRequest, opts ...grpc.CallOption) (*pb.RpcProcessCancelResponse, error) - HistoryShow(ctx context.Context, in *pb.RpcHistoryShowRequest, opts ...grpc.CallOption) (*pb.RpcHistoryShowResponse, error) - HistoryVersions(ctx context.Context, in *pb.RpcHistoryVersionsRequest, opts ...grpc.CallOption) (*pb.RpcHistoryVersionsResponse, error) + HistoryShowVersion(ctx context.Context, in *pb.RpcHistoryShowVersionRequest, opts ...grpc.CallOption) (*pb.RpcHistoryShowVersionResponse, error) + HistoryGetVersions(ctx context.Context, in *pb.RpcHistoryGetVersionsRequest, opts ...grpc.CallOption) (*pb.RpcHistoryGetVersionsResponse, error) HistorySetVersion(ctx context.Context, in *pb.RpcHistorySetVersionRequest, opts ...grpc.CallOption) (*pb.RpcHistorySetVersionResponse, error) - Export(ctx context.Context, in *pb.RpcExportRequest, opts ...grpc.CallOption) (*pb.RpcExportResponse, error) - ExportWorkspace(ctx context.Context, in *pb.RpcExportWorkspaceRequest, opts ...grpc.CallOption) (*pb.RpcExportWorkspaceResponse, error) - ExportTemplates(ctx context.Context, in *pb.RpcExportTemplatesRequest, opts ...grpc.CallOption) (*pb.RpcExportTemplatesResponse, error) - ExportLocalstore(ctx context.Context, in *pb.RpcExportLocalstoreRequest, opts ...grpc.CallOption) (*pb.RpcExportLocalstoreResponse, error) - MakeTemplate(ctx context.Context, in *pb.RpcMakeTemplateRequest, opts ...grpc.CallOption) (*pb.RpcMakeTemplateResponse, error) - MakeTemplateByObjectType(ctx context.Context, in *pb.RpcMakeTemplateByObjectTypeRequest, opts ...grpc.CallOption) (*pb.RpcMakeTemplateByObjectTypeResponse, error) - CloneTemplate(ctx context.Context, in *pb.RpcCloneTemplateRequest, opts ...grpc.CallOption) (*pb.RpcCloneTemplateResponse, error) - ObjectDuplicate(ctx context.Context, in *pb.RpcObjectDuplicateRequest, opts ...grpc.CallOption) (*pb.RpcObjectDuplicateResponse, error) + // Files + // *** + FileOffload(ctx context.Context, in *pb.RpcFileOffloadRequest, opts ...grpc.CallOption) (*pb.RpcFileOffloadResponse, error) + FileListOffload(ctx context.Context, in *pb.RpcFileListOffloadRequest, opts ...grpc.CallOption) (*pb.RpcFileListOffloadResponse, error) + FileUpload(ctx context.Context, in *pb.RpcFileUploadRequest, opts ...grpc.CallOption) (*pb.RpcFileUploadResponse, error) + FileDownload(ctx context.Context, in *pb.RpcFileDownloadRequest, opts ...grpc.CallOption) (*pb.RpcFileDownloadResponse, error) + FileDrop(ctx context.Context, in *pb.RpcFileDropRequest, opts ...grpc.CallOption) (*pb.RpcFileDropResponse, error) + NavigationListObjects(ctx context.Context, in *pb.RpcNavigationListObjectsRequest, opts ...grpc.CallOption) (*pb.RpcNavigationListObjectsResponse, error) + NavigationGetObjectInfoWithLinks(ctx context.Context, in *pb.RpcNavigationGetObjectInfoWithLinksRequest, opts ...grpc.CallOption) (*pb.RpcNavigationGetObjectInfoWithLinksResponse, error) + TemplateCreateFromObject(ctx context.Context, in *pb.RpcTemplateCreateFromObjectRequest, opts ...grpc.CallOption) (*pb.RpcTemplateCreateFromObjectResponse, error) + TemplateCreateFromObjectType(ctx context.Context, in *pb.RpcTemplateCreateFromObjectTypeRequest, opts ...grpc.CallOption) (*pb.RpcTemplateCreateFromObjectTypeResponse, error) + TemplateClone(ctx context.Context, in *pb.RpcTemplateCloneRequest, opts ...grpc.CallOption) (*pb.RpcTemplateCloneResponse, error) + TemplateExportAll(ctx context.Context, in *pb.RpcTemplateExportAllRequest, opts ...grpc.CallOption) (*pb.RpcTemplateExportAllResponse, error) + LinkPreview(ctx context.Context, in *pb.RpcLinkPreviewRequest, opts ...grpc.CallOption) (*pb.RpcLinkPreviewResponse, error) UnsplashSearch(ctx context.Context, in *pb.RpcUnsplashSearchRequest, opts ...grpc.CallOption) (*pb.RpcUnsplashSearchResponse, error) // UnsplashDownload downloads picture from unsplash by ID, put it to the IPFS and returns the hash. // The artist info is available in the object details UnsplashDownload(ctx context.Context, in *pb.RpcUnsplashDownloadRequest, opts ...grpc.CallOption) (*pb.RpcUnsplashDownloadResponse, error) - ApplyTemplate(ctx context.Context, in *pb.RpcApplyTemplateRequest, opts ...grpc.CallOption) (*pb.RpcApplyTemplateResponse, error) + // General Block commands + // *** + BlockUpload(ctx context.Context, in *pb.RpcBlockUploadRequest, opts ...grpc.CallOption) (*pb.RpcBlockUploadResponse, error) + BlockReplace(ctx context.Context, in *pb.RpcBlockReplaceRequest, opts ...grpc.CallOption) (*pb.RpcBlockReplaceResponse, error) + BlockCreate(ctx context.Context, in *pb.RpcBlockCreateRequest, opts ...grpc.CallOption) (*pb.RpcBlockCreateResponse, error) + BlockSplit(ctx context.Context, in *pb.RpcBlockSplitRequest, opts ...grpc.CallOption) (*pb.RpcBlockSplitResponse, error) + BlockMerge(ctx context.Context, in *pb.RpcBlockMergeRequest, opts ...grpc.CallOption) (*pb.RpcBlockMergeResponse, error) + BlockCopy(ctx context.Context, in *pb.RpcBlockCopyRequest, opts ...grpc.CallOption) (*pb.RpcBlockCopyResponse, error) + BlockPaste(ctx context.Context, in *pb.RpcBlockPasteRequest, opts ...grpc.CallOption) (*pb.RpcBlockPasteResponse, error) + BlockCut(ctx context.Context, in *pb.RpcBlockCutRequest, opts ...grpc.CallOption) (*pb.RpcBlockCutResponse, error) + BlockSetFields(ctx context.Context, in *pb.RpcBlockSetFieldsRequest, opts ...grpc.CallOption) (*pb.RpcBlockSetFieldsResponse, error) + BlockExport(ctx context.Context, in *pb.RpcBlockExportRequest, opts ...grpc.CallOption) (*pb.RpcBlockExportResponse, error) + BlockListDelete(ctx context.Context, in *pb.RpcBlockListDeleteRequest, opts ...grpc.CallOption) (*pb.RpcBlockListDeleteResponse, error) + BlockListMoveToExistingObject(ctx context.Context, in *pb.RpcBlockListMoveToExistingObjectRequest, opts ...grpc.CallOption) (*pb.RpcBlockListMoveToExistingObjectResponse, error) + BlockListMoveToNewObject(ctx context.Context, in *pb.RpcBlockListMoveToNewObjectRequest, opts ...grpc.CallOption) (*pb.RpcBlockListMoveToNewObjectResponse, error) + BlockListConvertToObjects(ctx context.Context, in *pb.RpcBlockListConvertToObjectsRequest, opts ...grpc.CallOption) (*pb.RpcBlockListConvertToObjectsResponse, error) + BlockListSetFields(ctx context.Context, in *pb.RpcBlockListSetFieldsRequest, opts ...grpc.CallOption) (*pb.RpcBlockListSetFieldsResponse, error) + BlockListDuplicate(ctx context.Context, in *pb.RpcBlockListDuplicateRequest, opts ...grpc.CallOption) (*pb.RpcBlockListDuplicateResponse, error) + BlockListSetBackgroundColor(ctx context.Context, in *pb.RpcBlockListSetBackgroundColorRequest, opts ...grpc.CallOption) (*pb.RpcBlockListSetBackgroundColorResponse, error) + BlockListSetAlign(ctx context.Context, in *pb.RpcBlockListSetAlignRequest, opts ...grpc.CallOption) (*pb.RpcBlockListSetAlignResponse, error) + BlockListTurnInto(ctx context.Context, in *pb.RpcBlockListTurnIntoRequest, opts ...grpc.CallOption) (*pb.RpcBlockListTurnIntoResponse, error) + // Text Block commands + // *** + BlockTextSetText(ctx context.Context, in *pb.RpcBlockTextSetTextRequest, opts ...grpc.CallOption) (*pb.RpcBlockTextSetTextResponse, error) + BlockTextSetColor(ctx context.Context, in *pb.RpcBlockTextSetColorRequest, opts ...grpc.CallOption) (*pb.RpcBlockTextSetColorResponse, error) + BlockTextSetStyle(ctx context.Context, in *pb.RpcBlockTextSetStyleRequest, opts ...grpc.CallOption) (*pb.RpcBlockTextSetStyleResponse, error) + BlockTextSetChecked(ctx context.Context, in *pb.RpcBlockTextSetCheckedRequest, opts ...grpc.CallOption) (*pb.RpcBlockTextSetCheckedResponse, error) + BlockTextSetIcon(ctx context.Context, in *pb.RpcBlockTextSetIconRequest, opts ...grpc.CallOption) (*pb.RpcBlockTextSetIconResponse, error) + BlockTextListSetColor(ctx context.Context, in *pb.RpcBlockTextListSetColorRequest, opts ...grpc.CallOption) (*pb.RpcBlockTextListSetColorResponse, error) + BlockTextListSetMark(ctx context.Context, in *pb.RpcBlockTextListSetMarkRequest, opts ...grpc.CallOption) (*pb.RpcBlockTextListSetMarkResponse, error) + BlockTextListSetStyle(ctx context.Context, in *pb.RpcBlockTextListSetStyleRequest, opts ...grpc.CallOption) (*pb.RpcBlockTextListSetStyleResponse, error) + // File block commands + // *** + BlockFileSetName(ctx context.Context, in *pb.RpcBlockFileSetNameRequest, opts ...grpc.CallOption) (*pb.RpcBlockFileSetNameResponse, error) + BlockImageSetName(ctx context.Context, in *pb.RpcBlockImageSetNameRequest, opts ...grpc.CallOption) (*pb.RpcBlockImageSetNameResponse, error) + BlockVideoSetName(ctx context.Context, in *pb.RpcBlockVideoSetNameRequest, opts ...grpc.CallOption) (*pb.RpcBlockVideoSetNameResponse, error) + BlockFileCreateAndUpload(ctx context.Context, in *pb.RpcBlockFileCreateAndUploadRequest, opts ...grpc.CallOption) (*pb.RpcBlockFileCreateAndUploadResponse, error) + BlockFileListSetStyle(ctx context.Context, in *pb.RpcBlockFileListSetStyleRequest, opts ...grpc.CallOption) (*pb.RpcBlockFileListSetStyleResponse, error) + // Dataview block commands + // *** + BlockDataviewViewCreate(ctx context.Context, in *pb.RpcBlockDataviewViewCreateRequest, opts ...grpc.CallOption) (*pb.RpcBlockDataviewViewCreateResponse, error) + BlockDataviewViewDelete(ctx context.Context, in *pb.RpcBlockDataviewViewDeleteRequest, opts ...grpc.CallOption) (*pb.RpcBlockDataviewViewDeleteResponse, error) + BlockDataviewViewUpdate(ctx context.Context, in *pb.RpcBlockDataviewViewUpdateRequest, opts ...grpc.CallOption) (*pb.RpcBlockDataviewViewUpdateResponse, error) + BlockDataviewViewSetActive(ctx context.Context, in *pb.RpcBlockDataviewViewSetActiveRequest, opts ...grpc.CallOption) (*pb.RpcBlockDataviewViewSetActiveResponse, error) + BlockDataviewViewSetPosition(ctx context.Context, in *pb.RpcBlockDataviewViewSetPositionRequest, opts ...grpc.CallOption) (*pb.RpcBlockDataviewViewSetPositionResponse, error) + BlockDataviewSetSource(ctx context.Context, in *pb.RpcBlockDataviewSetSourceRequest, opts ...grpc.CallOption) (*pb.RpcBlockDataviewSetSourceResponse, error) + BlockDataviewRelationAdd(ctx context.Context, in *pb.RpcBlockDataviewRelationAddRequest, opts ...grpc.CallOption) (*pb.RpcBlockDataviewRelationAddResponse, error) + BlockDataviewRelationUpdate(ctx context.Context, in *pb.RpcBlockDataviewRelationUpdateRequest, opts ...grpc.CallOption) (*pb.RpcBlockDataviewRelationUpdateResponse, error) + BlockDataviewRelationDelete(ctx context.Context, in *pb.RpcBlockDataviewRelationDeleteRequest, opts ...grpc.CallOption) (*pb.RpcBlockDataviewRelationDeleteResponse, error) + BlockDataviewRelationListAvailable(ctx context.Context, in *pb.RpcBlockDataviewRelationListAvailableRequest, opts ...grpc.CallOption) (*pb.RpcBlockDataviewRelationListAvailableResponse, error) + BlockDataviewRecordCreate(ctx context.Context, in *pb.RpcBlockDataviewRecordCreateRequest, opts ...grpc.CallOption) (*pb.RpcBlockDataviewRecordCreateResponse, error) + BlockDataviewRecordUpdate(ctx context.Context, in *pb.RpcBlockDataviewRecordUpdateRequest, opts ...grpc.CallOption) (*pb.RpcBlockDataviewRecordUpdateResponse, error) + BlockDataviewRecordDelete(ctx context.Context, in *pb.RpcBlockDataviewRecordDeleteRequest, opts ...grpc.CallOption) (*pb.RpcBlockDataviewRecordDeleteResponse, error) + BlockDataviewRecordRelationOptionAdd(ctx context.Context, in *pb.RpcBlockDataviewRecordRelationOptionAddRequest, opts ...grpc.CallOption) (*pb.RpcBlockDataviewRecordRelationOptionAddResponse, error) + BlockDataviewRecordRelationOptionUpdate(ctx context.Context, in *pb.RpcBlockDataviewRecordRelationOptionUpdateRequest, opts ...grpc.CallOption) (*pb.RpcBlockDataviewRecordRelationOptionUpdateResponse, error) + BlockDataviewRecordRelationOptionDelete(ctx context.Context, in *pb.RpcBlockDataviewRecordRelationOptionDeleteRequest, opts ...grpc.CallOption) (*pb.RpcBlockDataviewRecordRelationOptionDeleteResponse, error) + // Other specific block commands + // *** + BlockLinkCreateWithObject(ctx context.Context, in *pb.RpcBlockLinkCreateWithObjectRequest, opts ...grpc.CallOption) (*pb.RpcBlockLinkCreateWithObjectResponse, error) + BlockLinkListSetAppearance(ctx context.Context, in *pb.RpcBlockLinkListSetAppearanceRequest, opts ...grpc.CallOption) (*pb.RpcBlockLinkListSetAppearanceResponse, error) + BlockBookmarkFetch(ctx context.Context, in *pb.RpcBlockBookmarkFetchRequest, opts ...grpc.CallOption) (*pb.RpcBlockBookmarkFetchResponse, error) + BlockBookmarkCreateAndFetch(ctx context.Context, in *pb.RpcBlockBookmarkCreateAndFetchRequest, opts ...grpc.CallOption) (*pb.RpcBlockBookmarkCreateAndFetchResponse, error) + BlockRelationSetKey(ctx context.Context, in *pb.RpcBlockRelationSetKeyRequest, opts ...grpc.CallOption) (*pb.RpcBlockRelationSetKeyResponse, error) + BlockRelationAdd(ctx context.Context, in *pb.RpcBlockRelationAddRequest, opts ...grpc.CallOption) (*pb.RpcBlockRelationAddResponse, error) + BlockDivListSetStyle(ctx context.Context, in *pb.RpcBlockDivListSetStyleRequest, opts ...grpc.CallOption) (*pb.RpcBlockDivListSetStyleResponse, error) + BlockLatexSetText(ctx context.Context, in *pb.RpcBlockLatexSetTextRequest, opts ...grpc.CallOption) (*pb.RpcBlockLatexSetTextResponse, error) + ProcessCancel(ctx context.Context, in *pb.RpcProcessCancelRequest, opts ...grpc.CallOption) (*pb.RpcProcessCancelResponse, error) + LogSend(ctx context.Context, in *pb.RpcLogSendRequest, opts ...grpc.CallOption) (*pb.RpcLogSendResponse, error) DebugSync(ctx context.Context, in *pb.RpcDebugSyncRequest, opts ...grpc.CallOption) (*pb.RpcDebugSyncResponse, error) DebugThread(ctx context.Context, in *pb.RpcDebugThreadRequest, opts ...grpc.CallOption) (*pb.RpcDebugThreadResponse, error) DebugTree(ctx context.Context, in *pb.RpcDebugTreeRequest, opts ...grpc.CallOption) (*pb.RpcDebugTreeResponse, error) + DebugExportLocalstore(ctx context.Context, in *pb.RpcDebugExportLocalstoreRequest, opts ...grpc.CallOption) (*pb.RpcDebugExportLocalstoreResponse, error) + DebugPing(ctx context.Context, in *pb.RpcDebugPingRequest, opts ...grpc.CallOption) (*pb.RpcDebugPingResponse, error) + MetricsSetParameters(ctx context.Context, in *pb.RpcMetricsSetParametersRequest, opts ...grpc.CallOption) (*pb.RpcMetricsSetParametersResponse, error) // used only for lib-server via grpc ListenEvents(ctx context.Context, in *pb.Empty, opts ...grpc.CallOption) (ClientCommands_ListenEventsClient, error) } @@ -418,18 +404,27 @@ func NewClientCommandsClient(cc *grpc.ClientConn) ClientCommandsClient { return &clientCommandsClient{cc} } -func (c *clientCommandsClient) ObjectAddWithObjectId(ctx context.Context, in *pb.RpcObjectAddWithObjectIdRequest, opts ...grpc.CallOption) (*pb.RpcObjectAddWithObjectIdResponse, error) { - out := new(pb.RpcObjectAddWithObjectIdResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectAddWithObjectId", in, out, opts...) +func (c *clientCommandsClient) AppGetVersion(ctx context.Context, in *pb.RpcAppGetVersionRequest, opts ...grpc.CallOption) (*pb.RpcAppGetVersionResponse, error) { + out := new(pb.RpcAppGetVersionResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/AppGetVersion", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *clientCommandsClient) ObjectShareByLink(ctx context.Context, in *pb.RpcObjectShareByLinkRequest, opts ...grpc.CallOption) (*pb.RpcObjectShareByLinkResponse, error) { - out := new(pb.RpcObjectShareByLinkResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectShareByLink", in, out, opts...) +func (c *clientCommandsClient) AppSetDeviceState(ctx context.Context, in *pb.RpcAppSetDeviceStateRequest, opts ...grpc.CallOption) (*pb.RpcAppSetDeviceStateResponse, error) { + out := new(pb.RpcAppSetDeviceStateResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/AppSetDeviceState", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) AppShutdown(ctx context.Context, in *pb.RpcAppShutdownRequest, opts ...grpc.CallOption) (*pb.RpcAppShutdownResponse, error) { + out := new(pb.RpcAppShutdownResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/AppShutdown", in, out, opts...) if err != nil { return nil, err } @@ -508,6 +503,15 @@ func (c *clientCommandsClient) WorkspaceSetIsHighlighted(ctx context.Context, in return out, nil } +func (c *clientCommandsClient) WorkspaceExport(ctx context.Context, in *pb.RpcWorkspaceExportRequest, opts ...grpc.CallOption) (*pb.RpcWorkspaceExportResponse, error) { + out := new(pb.RpcWorkspaceExportResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/WorkspaceExport", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *clientCommandsClient) AccountRecover(ctx context.Context, in *pb.RpcAccountRecoverRequest, opts ...grpc.CallOption) (*pb.RpcAccountRecoverResponse, error) { out := new(pb.RpcAccountRecoverResponse) err := c.cc.Invoke(ctx, "/anytype.ClientCommands/AccountRecover", in, out, opts...) @@ -553,6 +557,438 @@ func (c *clientCommandsClient) AccountStop(ctx context.Context, in *pb.RpcAccoun return out, nil } +func (c *clientCommandsClient) ObjectOpen(ctx context.Context, in *pb.RpcObjectOpenRequest, opts ...grpc.CallOption) (*pb.RpcObjectOpenResponse, error) { + out := new(pb.RpcObjectOpenResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectOpen", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) ObjectClose(ctx context.Context, in *pb.RpcObjectCloseRequest, opts ...grpc.CallOption) (*pb.RpcObjectCloseResponse, error) { + out := new(pb.RpcObjectCloseResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectClose", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) ObjectShow(ctx context.Context, in *pb.RpcObjectShowRequest, opts ...grpc.CallOption) (*pb.RpcObjectShowResponse, error) { + out := new(pb.RpcObjectShowResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectShow", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) ObjectCreate(ctx context.Context, in *pb.RpcObjectCreateRequest, opts ...grpc.CallOption) (*pb.RpcObjectCreateResponse, error) { + out := new(pb.RpcObjectCreateResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectCreate", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) ObjectCreateSet(ctx context.Context, in *pb.RpcObjectCreateSetRequest, opts ...grpc.CallOption) (*pb.RpcObjectCreateSetResponse, error) { + out := new(pb.RpcObjectCreateSetResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectCreateSet", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) ObjectGraph(ctx context.Context, in *pb.RpcObjectGraphRequest, opts ...grpc.CallOption) (*pb.RpcObjectGraphResponse, error) { + out := new(pb.RpcObjectGraphResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectGraph", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) ObjectSearch(ctx context.Context, in *pb.RpcObjectSearchRequest, opts ...grpc.CallOption) (*pb.RpcObjectSearchResponse, error) { + out := new(pb.RpcObjectSearchResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectSearch", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) ObjectSearchSubscribe(ctx context.Context, in *pb.RpcObjectSearchSubscribeRequest, opts ...grpc.CallOption) (*pb.RpcObjectSearchSubscribeResponse, error) { + out := new(pb.RpcObjectSearchSubscribeResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectSearchSubscribe", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) ObjectSubscribeIds(ctx context.Context, in *pb.RpcObjectSubscribeIdsRequest, opts ...grpc.CallOption) (*pb.RpcObjectSubscribeIdsResponse, error) { + out := new(pb.RpcObjectSubscribeIdsResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectSubscribeIds", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) ObjectSearchUnsubscribe(ctx context.Context, in *pb.RpcObjectSearchUnsubscribeRequest, opts ...grpc.CallOption) (*pb.RpcObjectSearchUnsubscribeResponse, error) { + out := new(pb.RpcObjectSearchUnsubscribeResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectSearchUnsubscribe", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) ObjectSetDetails(ctx context.Context, in *pb.RpcObjectSetDetailsRequest, opts ...grpc.CallOption) (*pb.RpcObjectSetDetailsResponse, error) { + out := new(pb.RpcObjectSetDetailsResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectSetDetails", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) ObjectDuplicate(ctx context.Context, in *pb.RpcObjectDuplicateRequest, opts ...grpc.CallOption) (*pb.RpcObjectDuplicateResponse, error) { + out := new(pb.RpcObjectDuplicateResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectDuplicate", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) ObjectSetObjectType(ctx context.Context, in *pb.RpcObjectSetObjectTypeRequest, opts ...grpc.CallOption) (*pb.RpcObjectSetObjectTypeResponse, error) { + out := new(pb.RpcObjectSetObjectTypeResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectSetObjectType", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) ObjectSetLayout(ctx context.Context, in *pb.RpcObjectSetLayoutRequest, opts ...grpc.CallOption) (*pb.RpcObjectSetLayoutResponse, error) { + out := new(pb.RpcObjectSetLayoutResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectSetLayout", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) ObjectSetIsFavorite(ctx context.Context, in *pb.RpcObjectSetIsFavoriteRequest, opts ...grpc.CallOption) (*pb.RpcObjectSetIsFavoriteResponse, error) { + out := new(pb.RpcObjectSetIsFavoriteResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectSetIsFavorite", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) ObjectSetIsArchived(ctx context.Context, in *pb.RpcObjectSetIsArchivedRequest, opts ...grpc.CallOption) (*pb.RpcObjectSetIsArchivedResponse, error) { + out := new(pb.RpcObjectSetIsArchivedResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectSetIsArchived", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) ObjectListDuplicate(ctx context.Context, in *pb.RpcObjectListDuplicateRequest, opts ...grpc.CallOption) (*pb.RpcObjectListDuplicateResponse, error) { + out := new(pb.RpcObjectListDuplicateResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectListDuplicate", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) ObjectListDelete(ctx context.Context, in *pb.RpcObjectListDeleteRequest, opts ...grpc.CallOption) (*pb.RpcObjectListDeleteResponse, error) { + out := new(pb.RpcObjectListDeleteResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectListDelete", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) ObjectListSetIsArchived(ctx context.Context, in *pb.RpcObjectListSetIsArchivedRequest, opts ...grpc.CallOption) (*pb.RpcObjectListSetIsArchivedResponse, error) { + out := new(pb.RpcObjectListSetIsArchivedResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectListSetIsArchived", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) ObjectListSetIsFavorite(ctx context.Context, in *pb.RpcObjectListSetIsFavoriteRequest, opts ...grpc.CallOption) (*pb.RpcObjectListSetIsFavoriteResponse, error) { + out := new(pb.RpcObjectListSetIsFavoriteResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectListSetIsFavorite", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) ObjectApplyTemplate(ctx context.Context, in *pb.RpcObjectApplyTemplateRequest, opts ...grpc.CallOption) (*pb.RpcObjectApplyTemplateResponse, error) { + out := new(pb.RpcObjectApplyTemplateResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectApplyTemplate", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) ObjectToSet(ctx context.Context, in *pb.RpcObjectToSetRequest, opts ...grpc.CallOption) (*pb.RpcObjectToSetResponse, error) { + out := new(pb.RpcObjectToSetResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectToSet", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) ObjectAddWithObjectId(ctx context.Context, in *pb.RpcObjectAddWithObjectIdRequest, opts ...grpc.CallOption) (*pb.RpcObjectAddWithObjectIdResponse, error) { + out := new(pb.RpcObjectAddWithObjectIdResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectAddWithObjectId", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) ObjectShareByLink(ctx context.Context, in *pb.RpcObjectShareByLinkRequest, opts ...grpc.CallOption) (*pb.RpcObjectShareByLinkResponse, error) { + out := new(pb.RpcObjectShareByLinkResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectShareByLink", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) ObjectOpenBreadcrumbs(ctx context.Context, in *pb.RpcObjectOpenBreadcrumbsRequest, opts ...grpc.CallOption) (*pb.RpcObjectOpenBreadcrumbsResponse, error) { + out := new(pb.RpcObjectOpenBreadcrumbsResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectOpenBreadcrumbs", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) ObjectSetBreadcrumbs(ctx context.Context, in *pb.RpcObjectSetBreadcrumbsRequest, opts ...grpc.CallOption) (*pb.RpcObjectSetBreadcrumbsResponse, error) { + out := new(pb.RpcObjectSetBreadcrumbsResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectSetBreadcrumbs", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) ObjectUndo(ctx context.Context, in *pb.RpcObjectUndoRequest, opts ...grpc.CallOption) (*pb.RpcObjectUndoResponse, error) { + out := new(pb.RpcObjectUndoResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectUndo", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) ObjectRedo(ctx context.Context, in *pb.RpcObjectRedoRequest, opts ...grpc.CallOption) (*pb.RpcObjectRedoResponse, error) { + out := new(pb.RpcObjectRedoResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectRedo", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) ObjectImportMarkdown(ctx context.Context, in *pb.RpcObjectImportMarkdownRequest, opts ...grpc.CallOption) (*pb.RpcObjectImportMarkdownResponse, error) { + out := new(pb.RpcObjectImportMarkdownResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectImportMarkdown", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) ObjectListExport(ctx context.Context, in *pb.RpcObjectListExportRequest, opts ...grpc.CallOption) (*pb.RpcObjectListExportResponse, error) { + out := new(pb.RpcObjectListExportResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectListExport", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) ObjectRelationAdd(ctx context.Context, in *pb.RpcObjectRelationAddRequest, opts ...grpc.CallOption) (*pb.RpcObjectRelationAddResponse, error) { + out := new(pb.RpcObjectRelationAddResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectRelationAdd", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) ObjectRelationUpdate(ctx context.Context, in *pb.RpcObjectRelationUpdateRequest, opts ...grpc.CallOption) (*pb.RpcObjectRelationUpdateResponse, error) { + out := new(pb.RpcObjectRelationUpdateResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectRelationUpdate", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) ObjectRelationDelete(ctx context.Context, in *pb.RpcObjectRelationDeleteRequest, opts ...grpc.CallOption) (*pb.RpcObjectRelationDeleteResponse, error) { + out := new(pb.RpcObjectRelationDeleteResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectRelationDelete", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) ObjectRelationAddFeatured(ctx context.Context, in *pb.RpcObjectRelationAddFeaturedRequest, opts ...grpc.CallOption) (*pb.RpcObjectRelationAddFeaturedResponse, error) { + out := new(pb.RpcObjectRelationAddFeaturedResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectRelationAddFeatured", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) ObjectRelationRemoveFeatured(ctx context.Context, in *pb.RpcObjectRelationRemoveFeaturedRequest, opts ...grpc.CallOption) (*pb.RpcObjectRelationRemoveFeaturedResponse, error) { + out := new(pb.RpcObjectRelationRemoveFeaturedResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectRelationRemoveFeatured", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) ObjectRelationListAvailable(ctx context.Context, in *pb.RpcObjectRelationListAvailableRequest, opts ...grpc.CallOption) (*pb.RpcObjectRelationListAvailableResponse, error) { + out := new(pb.RpcObjectRelationListAvailableResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectRelationListAvailable", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) ObjectRelationOptionAdd(ctx context.Context, in *pb.RpcObjectRelationOptionAddRequest, opts ...grpc.CallOption) (*pb.RpcObjectRelationOptionAddResponse, error) { + out := new(pb.RpcObjectRelationOptionAddResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectRelationOptionAdd", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) ObjectRelationOptionUpdate(ctx context.Context, in *pb.RpcObjectRelationOptionUpdateRequest, opts ...grpc.CallOption) (*pb.RpcObjectRelationOptionUpdateResponse, error) { + out := new(pb.RpcObjectRelationOptionUpdateResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectRelationOptionUpdate", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) ObjectRelationOptionDelete(ctx context.Context, in *pb.RpcObjectRelationOptionDeleteRequest, opts ...grpc.CallOption) (*pb.RpcObjectRelationOptionDeleteResponse, error) { + out := new(pb.RpcObjectRelationOptionDeleteResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectRelationOptionDelete", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) ObjectTypeCreate(ctx context.Context, in *pb.RpcObjectTypeCreateRequest, opts ...grpc.CallOption) (*pb.RpcObjectTypeCreateResponse, error) { + out := new(pb.RpcObjectTypeCreateResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectTypeCreate", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) ObjectTypeList(ctx context.Context, in *pb.RpcObjectTypeListRequest, opts ...grpc.CallOption) (*pb.RpcObjectTypeListResponse, error) { + out := new(pb.RpcObjectTypeListResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectTypeList", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) ObjectTypeRelationList(ctx context.Context, in *pb.RpcObjectTypeRelationListRequest, opts ...grpc.CallOption) (*pb.RpcObjectTypeRelationListResponse, error) { + out := new(pb.RpcObjectTypeRelationListResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectTypeRelationList", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) ObjectTypeRelationAdd(ctx context.Context, in *pb.RpcObjectTypeRelationAddRequest, opts ...grpc.CallOption) (*pb.RpcObjectTypeRelationAddResponse, error) { + out := new(pb.RpcObjectTypeRelationAddResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectTypeRelationAdd", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) ObjectTypeRelationUpdate(ctx context.Context, in *pb.RpcObjectTypeRelationUpdateRequest, opts ...grpc.CallOption) (*pb.RpcObjectTypeRelationUpdateResponse, error) { + out := new(pb.RpcObjectTypeRelationUpdateResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectTypeRelationUpdate", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) ObjectTypeRelationRemove(ctx context.Context, in *pb.RpcObjectTypeRelationRemoveRequest, opts ...grpc.CallOption) (*pb.RpcObjectTypeRelationRemoveResponse, error) { + out := new(pb.RpcObjectTypeRelationRemoveResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectTypeRelationRemove", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) HistoryShowVersion(ctx context.Context, in *pb.RpcHistoryShowVersionRequest, opts ...grpc.CallOption) (*pb.RpcHistoryShowVersionResponse, error) { + out := new(pb.RpcHistoryShowVersionResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/HistoryShowVersion", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) HistoryGetVersions(ctx context.Context, in *pb.RpcHistoryGetVersionsRequest, opts ...grpc.CallOption) (*pb.RpcHistoryGetVersionsResponse, error) { + out := new(pb.RpcHistoryGetVersionsResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/HistoryGetVersions", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) HistorySetVersion(ctx context.Context, in *pb.RpcHistorySetVersionRequest, opts ...grpc.CallOption) (*pb.RpcHistorySetVersionResponse, error) { + out := new(pb.RpcHistorySetVersionResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/HistorySetVersion", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *clientCommandsClient) FileOffload(ctx context.Context, in *pb.RpcFileOffloadRequest, opts ...grpc.CallOption) (*pb.RpcFileOffloadResponse, error) { out := new(pb.RpcFileOffloadResponse) err := c.cc.Invoke(ctx, "/anytype.ClientCommands/FileOffload", in, out, opts...) @@ -571,63 +1007,81 @@ func (c *clientCommandsClient) FileListOffload(ctx context.Context, in *pb.RpcFi return out, nil } -func (c *clientCommandsClient) VersionGet(ctx context.Context, in *pb.RpcVersionGetRequest, opts ...grpc.CallOption) (*pb.RpcVersionGetResponse, error) { - out := new(pb.RpcVersionGetResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/VersionGet", in, out, opts...) +func (c *clientCommandsClient) FileUpload(ctx context.Context, in *pb.RpcFileUploadRequest, opts ...grpc.CallOption) (*pb.RpcFileUploadResponse, error) { + out := new(pb.RpcFileUploadResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/FileUpload", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *clientCommandsClient) LogSend(ctx context.Context, in *pb.RpcLogSendRequest, opts ...grpc.CallOption) (*pb.RpcLogSendResponse, error) { - out := new(pb.RpcLogSendResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/LogSend", in, out, opts...) +func (c *clientCommandsClient) FileDownload(ctx context.Context, in *pb.RpcFileDownloadRequest, opts ...grpc.CallOption) (*pb.RpcFileDownloadResponse, error) { + out := new(pb.RpcFileDownloadResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/FileDownload", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *clientCommandsClient) ConfigGet(ctx context.Context, in *pb.RpcConfigGetRequest, opts ...grpc.CallOption) (*pb.RpcConfigGetResponse, error) { - out := new(pb.RpcConfigGetResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ConfigGet", in, out, opts...) +func (c *clientCommandsClient) FileDrop(ctx context.Context, in *pb.RpcFileDropRequest, opts ...grpc.CallOption) (*pb.RpcFileDropResponse, error) { + out := new(pb.RpcFileDropResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/FileDrop", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *clientCommandsClient) Shutdown(ctx context.Context, in *pb.RpcShutdownRequest, opts ...grpc.CallOption) (*pb.RpcShutdownResponse, error) { - out := new(pb.RpcShutdownResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/Shutdown", in, out, opts...) +func (c *clientCommandsClient) NavigationListObjects(ctx context.Context, in *pb.RpcNavigationListObjectsRequest, opts ...grpc.CallOption) (*pb.RpcNavigationListObjectsResponse, error) { + out := new(pb.RpcNavigationListObjectsResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/NavigationListObjects", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *clientCommandsClient) SetDeviceState(ctx context.Context, in *pb.RpcDeviceStateRequest, opts ...grpc.CallOption) (*pb.RpcDeviceStateResponse, error) { - out := new(pb.RpcDeviceStateResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/SetDeviceState", in, out, opts...) +func (c *clientCommandsClient) NavigationGetObjectInfoWithLinks(ctx context.Context, in *pb.RpcNavigationGetObjectInfoWithLinksRequest, opts ...grpc.CallOption) (*pb.RpcNavigationGetObjectInfoWithLinksResponse, error) { + out := new(pb.RpcNavigationGetObjectInfoWithLinksResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/NavigationGetObjectInfoWithLinks", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *clientCommandsClient) ExternalDropFiles(ctx context.Context, in *pb.RpcExternalDropFilesRequest, opts ...grpc.CallOption) (*pb.RpcExternalDropFilesResponse, error) { - out := new(pb.RpcExternalDropFilesResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ExternalDropFiles", in, out, opts...) +func (c *clientCommandsClient) TemplateCreateFromObject(ctx context.Context, in *pb.RpcTemplateCreateFromObjectRequest, opts ...grpc.CallOption) (*pb.RpcTemplateCreateFromObjectResponse, error) { + out := new(pb.RpcTemplateCreateFromObjectResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/TemplateCreateFromObject", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *clientCommandsClient) ExternalDropContent(ctx context.Context, in *pb.RpcExternalDropContentRequest, opts ...grpc.CallOption) (*pb.RpcExternalDropContentResponse, error) { - out := new(pb.RpcExternalDropContentResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ExternalDropContent", in, out, opts...) +func (c *clientCommandsClient) TemplateCreateFromObjectType(ctx context.Context, in *pb.RpcTemplateCreateFromObjectTypeRequest, opts ...grpc.CallOption) (*pb.RpcTemplateCreateFromObjectTypeResponse, error) { + out := new(pb.RpcTemplateCreateFromObjectTypeResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/TemplateCreateFromObjectType", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) TemplateClone(ctx context.Context, in *pb.RpcTemplateCloneRequest, opts ...grpc.CallOption) (*pb.RpcTemplateCloneResponse, error) { + out := new(pb.RpcTemplateCloneResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/TemplateClone", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) TemplateExportAll(ctx context.Context, in *pb.RpcTemplateExportAllRequest, opts ...grpc.CallOption) (*pb.RpcTemplateExportAllResponse, error) { + out := new(pb.RpcTemplateExportAllResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/TemplateExportAll", in, out, opts...) if err != nil { return nil, err } @@ -643,18 +1097,18 @@ func (c *clientCommandsClient) LinkPreview(ctx context.Context, in *pb.RpcLinkPr return out, nil } -func (c *clientCommandsClient) UploadFile(ctx context.Context, in *pb.RpcUploadFileRequest, opts ...grpc.CallOption) (*pb.RpcUploadFileResponse, error) { - out := new(pb.RpcUploadFileResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/UploadFile", in, out, opts...) +func (c *clientCommandsClient) UnsplashSearch(ctx context.Context, in *pb.RpcUnsplashSearchRequest, opts ...grpc.CallOption) (*pb.RpcUnsplashSearchResponse, error) { + out := new(pb.RpcUnsplashSearchResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/UnsplashSearch", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *clientCommandsClient) DownloadFile(ctx context.Context, in *pb.RpcDownloadFileRequest, opts ...grpc.CallOption) (*pb.RpcDownloadFileResponse, error) { - out := new(pb.RpcDownloadFileResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/DownloadFile", in, out, opts...) +func (c *clientCommandsClient) UnsplashDownload(ctx context.Context, in *pb.RpcUnsplashDownloadRequest, opts ...grpc.CallOption) (*pb.RpcUnsplashDownloadResponse, error) { + out := new(pb.RpcUnsplashDownloadResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/UnsplashDownload", in, out, opts...) if err != nil { return nil, err } @@ -679,60 +1133,6 @@ func (c *clientCommandsClient) BlockReplace(ctx context.Context, in *pb.RpcBlock return out, nil } -func (c *clientCommandsClient) BlockUpdateContent(ctx context.Context, in *pb.RpcBlockUpdateContentRequest, opts ...grpc.CallOption) (*pb.RpcBlockUpdateContentResponse, error) { - out := new(pb.RpcBlockUpdateContentResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockUpdateContent", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) BlockOpen(ctx context.Context, in *pb.RpcBlockOpenRequest, opts ...grpc.CallOption) (*pb.RpcBlockOpenResponse, error) { - out := new(pb.RpcBlockOpenResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockOpen", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) BlockShow(ctx context.Context, in *pb.RpcBlockShowRequest, opts ...grpc.CallOption) (*pb.RpcBlockShowResponse, error) { - out := new(pb.RpcBlockShowResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockShow", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) BlockGetPublicWebURL(ctx context.Context, in *pb.RpcBlockGetPublicWebURLRequest, opts ...grpc.CallOption) (*pb.RpcBlockGetPublicWebURLResponse, error) { - out := new(pb.RpcBlockGetPublicWebURLResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockGetPublicWebURL", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) BlockOpenBreadcrumbs(ctx context.Context, in *pb.RpcBlockOpenBreadcrumbsRequest, opts ...grpc.CallOption) (*pb.RpcBlockOpenBreadcrumbsResponse, error) { - out := new(pb.RpcBlockOpenBreadcrumbsResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockOpenBreadcrumbs", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) BlockSetBreadcrumbs(ctx context.Context, in *pb.RpcBlockSetBreadcrumbsRequest, opts ...grpc.CallOption) (*pb.RpcBlockSetBreadcrumbsResponse, error) { - out := new(pb.RpcBlockSetBreadcrumbsResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockSetBreadcrumbs", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *clientCommandsClient) BlockCreate(ctx context.Context, in *pb.RpcBlockCreateRequest, opts ...grpc.CallOption) (*pb.RpcBlockCreateResponse, error) { out := new(pb.RpcBlockCreateResponse) err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockCreate", in, out, opts...) @@ -742,267 +1142,6 @@ func (c *clientCommandsClient) BlockCreate(ctx context.Context, in *pb.RpcBlockC return out, nil } -func (c *clientCommandsClient) BlockCreatePage(ctx context.Context, in *pb.RpcBlockCreatePageRequest, opts ...grpc.CallOption) (*pb.RpcBlockCreatePageResponse, error) { - out := new(pb.RpcBlockCreatePageResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockCreatePage", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) BlockCreateSet(ctx context.Context, in *pb.RpcBlockCreateSetRequest, opts ...grpc.CallOption) (*pb.RpcBlockCreateSetResponse, error) { - out := new(pb.RpcBlockCreateSetResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockCreateSet", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) BlockUnlink(ctx context.Context, in *pb.RpcBlockUnlinkRequest, opts ...grpc.CallOption) (*pb.RpcBlockUnlinkResponse, error) { - out := new(pb.RpcBlockUnlinkResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockUnlink", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) BlockClose(ctx context.Context, in *pb.RpcBlockCloseRequest, opts ...grpc.CallOption) (*pb.RpcBlockCloseResponse, error) { - out := new(pb.RpcBlockCloseResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockClose", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) BlockDownload(ctx context.Context, in *pb.RpcBlockDownloadRequest, opts ...grpc.CallOption) (*pb.RpcBlockDownloadResponse, error) { - out := new(pb.RpcBlockDownloadResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockDownload", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) BlockGetMarks(ctx context.Context, in *pb.RpcBlockGetMarksRequest, opts ...grpc.CallOption) (*pb.RpcBlockGetMarksResponse, error) { - out := new(pb.RpcBlockGetMarksResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockGetMarks", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) BlockUndo(ctx context.Context, in *pb.RpcBlockUndoRequest, opts ...grpc.CallOption) (*pb.RpcBlockUndoResponse, error) { - out := new(pb.RpcBlockUndoResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockUndo", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) BlockRedo(ctx context.Context, in *pb.RpcBlockRedoRequest, opts ...grpc.CallOption) (*pb.RpcBlockRedoResponse, error) { - out := new(pb.RpcBlockRedoResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockRedo", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) BlockSetFields(ctx context.Context, in *pb.RpcBlockSetFieldsRequest, opts ...grpc.CallOption) (*pb.RpcBlockSetFieldsResponse, error) { - out := new(pb.RpcBlockSetFieldsResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockSetFields", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) BlockSetRestrictions(ctx context.Context, in *pb.RpcBlockSetRestrictionsRequest, opts ...grpc.CallOption) (*pb.RpcBlockSetRestrictionsResponse, error) { - out := new(pb.RpcBlockSetRestrictionsResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockSetRestrictions", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) BlockListMove(ctx context.Context, in *pb.RpcBlockListMoveRequest, opts ...grpc.CallOption) (*pb.RpcBlockListMoveResponse, error) { - out := new(pb.RpcBlockListMoveResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockListMove", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) BlockListMoveToNewPage(ctx context.Context, in *pb.RpcBlockListMoveToNewPageRequest, opts ...grpc.CallOption) (*pb.RpcBlockListMoveToNewPageResponse, error) { - out := new(pb.RpcBlockListMoveToNewPageResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockListMoveToNewPage", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) BlockListConvertChildrenToPages(ctx context.Context, in *pb.RpcBlockListConvertChildrenToPagesRequest, opts ...grpc.CallOption) (*pb.RpcBlockListConvertChildrenToPagesResponse, error) { - out := new(pb.RpcBlockListConvertChildrenToPagesResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockListConvertChildrenToPages", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) BlockListSetFields(ctx context.Context, in *pb.RpcBlockListSetFieldsRequest, opts ...grpc.CallOption) (*pb.RpcBlockListSetFieldsResponse, error) { - out := new(pb.RpcBlockListSetFieldsResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockListSetFields", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) BlockListSetTextStyle(ctx context.Context, in *pb.RpcBlockListSetTextStyleRequest, opts ...grpc.CallOption) (*pb.RpcBlockListSetTextStyleResponse, error) { - out := new(pb.RpcBlockListSetTextStyleResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockListSetTextStyle", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) BlockListDuplicate(ctx context.Context, in *pb.RpcBlockListDuplicateRequest, opts ...grpc.CallOption) (*pb.RpcBlockListDuplicateResponse, error) { - out := new(pb.RpcBlockListDuplicateResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockListDuplicate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) BlockListSetBackgroundColor(ctx context.Context, in *pb.RpcBlockListSetBackgroundColorRequest, opts ...grpc.CallOption) (*pb.RpcBlockListSetBackgroundColorResponse, error) { - out := new(pb.RpcBlockListSetBackgroundColorResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockListSetBackgroundColor", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) BlockListSetAlign(ctx context.Context, in *pb.RpcBlockListSetAlignRequest, opts ...grpc.CallOption) (*pb.RpcBlockListSetAlignResponse, error) { - out := new(pb.RpcBlockListSetAlignResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockListSetAlign", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) BlockListSetDivStyle(ctx context.Context, in *pb.RpcBlockListSetDivStyleRequest, opts ...grpc.CallOption) (*pb.RpcBlockListSetDivStyleResponse, error) { - out := new(pb.RpcBlockListSetDivStyleResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockListSetDivStyle", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) BlockListSetFileStyle(ctx context.Context, in *pb.RpcBlockListSetFileStyleRequest, opts ...grpc.CallOption) (*pb.RpcBlockListSetFileStyleResponse, error) { - out := new(pb.RpcBlockListSetFileStyleResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockListSetFileStyle", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) BlockListTurnInto(ctx context.Context, in *pb.RpcBlockListTurnIntoRequest, opts ...grpc.CallOption) (*pb.RpcBlockListTurnIntoResponse, error) { - out := new(pb.RpcBlockListTurnIntoResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockListTurnInto", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) BlockSetLatexText(ctx context.Context, in *pb.RpcBlockSetLatexTextRequest, opts ...grpc.CallOption) (*pb.RpcBlockSetLatexTextResponse, error) { - out := new(pb.RpcBlockSetLatexTextResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockSetLatexText", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) BlockSetTextText(ctx context.Context, in *pb.RpcBlockSetTextTextRequest, opts ...grpc.CallOption) (*pb.RpcBlockSetTextTextResponse, error) { - out := new(pb.RpcBlockSetTextTextResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockSetTextText", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) BlockSetTextColor(ctx context.Context, in *pb.RpcBlockSetTextColorRequest, opts ...grpc.CallOption) (*pb.RpcBlockSetTextColorResponse, error) { - out := new(pb.RpcBlockSetTextColorResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockSetTextColor", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) BlockListSetTextColor(ctx context.Context, in *pb.RpcBlockListSetTextColorRequest, opts ...grpc.CallOption) (*pb.RpcBlockListSetTextColorResponse, error) { - out := new(pb.RpcBlockListSetTextColorResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockListSetTextColor", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) BlockListSetTextMark(ctx context.Context, in *pb.RpcBlockListSetTextMarkRequest, opts ...grpc.CallOption) (*pb.RpcBlockListSetTextMarkResponse, error) { - out := new(pb.RpcBlockListSetTextMarkResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockListSetTextMark", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) BlockSetTextStyle(ctx context.Context, in *pb.RpcBlockSetTextStyleRequest, opts ...grpc.CallOption) (*pb.RpcBlockSetTextStyleResponse, error) { - out := new(pb.RpcBlockSetTextStyleResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockSetTextStyle", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) BlockSetTextChecked(ctx context.Context, in *pb.RpcBlockSetTextCheckedRequest, opts ...grpc.CallOption) (*pb.RpcBlockSetTextCheckedResponse, error) { - out := new(pb.RpcBlockSetTextCheckedResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockSetTextChecked", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) BlockSetTextIcon(ctx context.Context, in *pb.RpcBlockSetTextIconRequest, opts ...grpc.CallOption) (*pb.RpcBlockSetTextIconResponse, error) { - out := new(pb.RpcBlockSetTextIconResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockSetTextIcon", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *clientCommandsClient) BlockSplit(ctx context.Context, in *pb.RpcBlockSplitRequest, opts ...grpc.CallOption) (*pb.RpcBlockSplitResponse, error) { out := new(pb.RpcBlockSplitResponse) err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockSplit", in, out, opts...) @@ -1048,6 +1187,15 @@ func (c *clientCommandsClient) BlockCut(ctx context.Context, in *pb.RpcBlockCutR return out, nil } +func (c *clientCommandsClient) BlockSetFields(ctx context.Context, in *pb.RpcBlockSetFieldsRequest, opts ...grpc.CallOption) (*pb.RpcBlockSetFieldsResponse, error) { + out := new(pb.RpcBlockSetFieldsResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockSetFields", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *clientCommandsClient) BlockExport(ctx context.Context, in *pb.RpcBlockExportRequest, opts ...grpc.CallOption) (*pb.RpcBlockExportResponse, error) { out := new(pb.RpcBlockExportResponse) err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockExport", in, out, opts...) @@ -1057,81 +1205,180 @@ func (c *clientCommandsClient) BlockExport(ctx context.Context, in *pb.RpcBlockE return out, nil } -func (c *clientCommandsClient) BlockImportMarkdown(ctx context.Context, in *pb.RpcBlockImportMarkdownRequest, opts ...grpc.CallOption) (*pb.RpcBlockImportMarkdownResponse, error) { - out := new(pb.RpcBlockImportMarkdownResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockImportMarkdown", in, out, opts...) +func (c *clientCommandsClient) BlockListDelete(ctx context.Context, in *pb.RpcBlockListDeleteRequest, opts ...grpc.CallOption) (*pb.RpcBlockListDeleteResponse, error) { + out := new(pb.RpcBlockListDeleteResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockListDelete", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *clientCommandsClient) BlockSetFileName(ctx context.Context, in *pb.RpcBlockSetFileNameRequest, opts ...grpc.CallOption) (*pb.RpcBlockSetFileNameResponse, error) { - out := new(pb.RpcBlockSetFileNameResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockSetFileName", in, out, opts...) +func (c *clientCommandsClient) BlockListMoveToExistingObject(ctx context.Context, in *pb.RpcBlockListMoveToExistingObjectRequest, opts ...grpc.CallOption) (*pb.RpcBlockListMoveToExistingObjectResponse, error) { + out := new(pb.RpcBlockListMoveToExistingObjectResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockListMoveToExistingObject", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *clientCommandsClient) BlockSetImageName(ctx context.Context, in *pb.RpcBlockSetImageNameRequest, opts ...grpc.CallOption) (*pb.RpcBlockSetImageNameResponse, error) { - out := new(pb.RpcBlockSetImageNameResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockSetImageName", in, out, opts...) +func (c *clientCommandsClient) BlockListMoveToNewObject(ctx context.Context, in *pb.RpcBlockListMoveToNewObjectRequest, opts ...grpc.CallOption) (*pb.RpcBlockListMoveToNewObjectResponse, error) { + out := new(pb.RpcBlockListMoveToNewObjectResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockListMoveToNewObject", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *clientCommandsClient) BlockSetImageWidth(ctx context.Context, in *pb.RpcBlockSetImageWidthRequest, opts ...grpc.CallOption) (*pb.RpcBlockSetImageWidthResponse, error) { - out := new(pb.RpcBlockSetImageWidthResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockSetImageWidth", in, out, opts...) +func (c *clientCommandsClient) BlockListConvertToObjects(ctx context.Context, in *pb.RpcBlockListConvertToObjectsRequest, opts ...grpc.CallOption) (*pb.RpcBlockListConvertToObjectsResponse, error) { + out := new(pb.RpcBlockListConvertToObjectsResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockListConvertToObjects", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *clientCommandsClient) BlockSetVideoName(ctx context.Context, in *pb.RpcBlockSetVideoNameRequest, opts ...grpc.CallOption) (*pb.RpcBlockSetVideoNameResponse, error) { - out := new(pb.RpcBlockSetVideoNameResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockSetVideoName", in, out, opts...) +func (c *clientCommandsClient) BlockListSetFields(ctx context.Context, in *pb.RpcBlockListSetFieldsRequest, opts ...grpc.CallOption) (*pb.RpcBlockListSetFieldsResponse, error) { + out := new(pb.RpcBlockListSetFieldsResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockListSetFields", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *clientCommandsClient) BlockSetVideoWidth(ctx context.Context, in *pb.RpcBlockSetVideoWidthRequest, opts ...grpc.CallOption) (*pb.RpcBlockSetVideoWidthResponse, error) { - out := new(pb.RpcBlockSetVideoWidthResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockSetVideoWidth", in, out, opts...) +func (c *clientCommandsClient) BlockListDuplicate(ctx context.Context, in *pb.RpcBlockListDuplicateRequest, opts ...grpc.CallOption) (*pb.RpcBlockListDuplicateResponse, error) { + out := new(pb.RpcBlockListDuplicateResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockListDuplicate", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *clientCommandsClient) BlockSetLinkTargetBlockId(ctx context.Context, in *pb.RpcBlockSetLinkTargetBlockIdRequest, opts ...grpc.CallOption) (*pb.RpcBlockSetLinkTargetBlockIdResponse, error) { - out := new(pb.RpcBlockSetLinkTargetBlockIdResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockSetLinkTargetBlockId", in, out, opts...) +func (c *clientCommandsClient) BlockListSetBackgroundColor(ctx context.Context, in *pb.RpcBlockListSetBackgroundColorRequest, opts ...grpc.CallOption) (*pb.RpcBlockListSetBackgroundColorResponse, error) { + out := new(pb.RpcBlockListSetBackgroundColorResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockListSetBackgroundColor", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *clientCommandsClient) BlockBookmarkFetch(ctx context.Context, in *pb.RpcBlockBookmarkFetchRequest, opts ...grpc.CallOption) (*pb.RpcBlockBookmarkFetchResponse, error) { - out := new(pb.RpcBlockBookmarkFetchResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockBookmarkFetch", in, out, opts...) +func (c *clientCommandsClient) BlockListSetAlign(ctx context.Context, in *pb.RpcBlockListSetAlignRequest, opts ...grpc.CallOption) (*pb.RpcBlockListSetAlignResponse, error) { + out := new(pb.RpcBlockListSetAlignResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockListSetAlign", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *clientCommandsClient) BlockBookmarkCreateAndFetch(ctx context.Context, in *pb.RpcBlockBookmarkCreateAndFetchRequest, opts ...grpc.CallOption) (*pb.RpcBlockBookmarkCreateAndFetchResponse, error) { - out := new(pb.RpcBlockBookmarkCreateAndFetchResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockBookmarkCreateAndFetch", in, out, opts...) +func (c *clientCommandsClient) BlockListTurnInto(ctx context.Context, in *pb.RpcBlockListTurnIntoRequest, opts ...grpc.CallOption) (*pb.RpcBlockListTurnIntoResponse, error) { + out := new(pb.RpcBlockListTurnIntoResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockListTurnInto", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) BlockTextSetText(ctx context.Context, in *pb.RpcBlockTextSetTextRequest, opts ...grpc.CallOption) (*pb.RpcBlockTextSetTextResponse, error) { + out := new(pb.RpcBlockTextSetTextResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockTextSetText", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) BlockTextSetColor(ctx context.Context, in *pb.RpcBlockTextSetColorRequest, opts ...grpc.CallOption) (*pb.RpcBlockTextSetColorResponse, error) { + out := new(pb.RpcBlockTextSetColorResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockTextSetColor", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) BlockTextSetStyle(ctx context.Context, in *pb.RpcBlockTextSetStyleRequest, opts ...grpc.CallOption) (*pb.RpcBlockTextSetStyleResponse, error) { + out := new(pb.RpcBlockTextSetStyleResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockTextSetStyle", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) BlockTextSetChecked(ctx context.Context, in *pb.RpcBlockTextSetCheckedRequest, opts ...grpc.CallOption) (*pb.RpcBlockTextSetCheckedResponse, error) { + out := new(pb.RpcBlockTextSetCheckedResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockTextSetChecked", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) BlockTextSetIcon(ctx context.Context, in *pb.RpcBlockTextSetIconRequest, opts ...grpc.CallOption) (*pb.RpcBlockTextSetIconResponse, error) { + out := new(pb.RpcBlockTextSetIconResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockTextSetIcon", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) BlockTextListSetColor(ctx context.Context, in *pb.RpcBlockTextListSetColorRequest, opts ...grpc.CallOption) (*pb.RpcBlockTextListSetColorResponse, error) { + out := new(pb.RpcBlockTextListSetColorResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockTextListSetColor", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) BlockTextListSetMark(ctx context.Context, in *pb.RpcBlockTextListSetMarkRequest, opts ...grpc.CallOption) (*pb.RpcBlockTextListSetMarkResponse, error) { + out := new(pb.RpcBlockTextListSetMarkResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockTextListSetMark", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) BlockTextListSetStyle(ctx context.Context, in *pb.RpcBlockTextListSetStyleRequest, opts ...grpc.CallOption) (*pb.RpcBlockTextListSetStyleResponse, error) { + out := new(pb.RpcBlockTextListSetStyleResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockTextListSetStyle", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) BlockFileSetName(ctx context.Context, in *pb.RpcBlockFileSetNameRequest, opts ...grpc.CallOption) (*pb.RpcBlockFileSetNameResponse, error) { + out := new(pb.RpcBlockFileSetNameResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockFileSetName", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) BlockImageSetName(ctx context.Context, in *pb.RpcBlockImageSetNameRequest, opts ...grpc.CallOption) (*pb.RpcBlockImageSetNameResponse, error) { + out := new(pb.RpcBlockImageSetNameResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockImageSetName", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) BlockVideoSetName(ctx context.Context, in *pb.RpcBlockVideoSetNameRequest, opts ...grpc.CallOption) (*pb.RpcBlockVideoSetNameResponse, error) { + out := new(pb.RpcBlockVideoSetNameResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockVideoSetName", in, out, opts...) if err != nil { return nil, err } @@ -1147,18 +1394,9 @@ func (c *clientCommandsClient) BlockFileCreateAndUpload(ctx context.Context, in return out, nil } -func (c *clientCommandsClient) BlockRelationSetKey(ctx context.Context, in *pb.RpcBlockRelationSetKeyRequest, opts ...grpc.CallOption) (*pb.RpcBlockRelationSetKeyResponse, error) { - out := new(pb.RpcBlockRelationSetKeyResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockRelationSetKey", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) BlockRelationAdd(ctx context.Context, in *pb.RpcBlockRelationAddRequest, opts ...grpc.CallOption) (*pb.RpcBlockRelationAddResponse, error) { - out := new(pb.RpcBlockRelationAddResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockRelationAdd", in, out, opts...) +func (c *clientCommandsClient) BlockFileListSetStyle(ctx context.Context, in *pb.RpcBlockFileListSetStyleRequest, opts ...grpc.CallOption) (*pb.RpcBlockFileListSetStyleResponse, error) { + out := new(pb.RpcBlockFileListSetStyleResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockFileListSetStyle", in, out, opts...) if err != nil { return nil, err } @@ -1309,324 +1547,72 @@ func (c *clientCommandsClient) BlockDataviewRecordRelationOptionDelete(ctx conte return out, nil } -func (c *clientCommandsClient) BlockObjectTypeSet(ctx context.Context, in *pb.RpcBlockObjectTypeSetRequest, opts ...grpc.CallOption) (*pb.RpcBlockObjectTypeSetResponse, error) { - out := new(pb.RpcBlockObjectTypeSetResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockObjectTypeSet", in, out, opts...) +func (c *clientCommandsClient) BlockLinkCreateWithObject(ctx context.Context, in *pb.RpcBlockLinkCreateWithObjectRequest, opts ...grpc.CallOption) (*pb.RpcBlockLinkCreateWithObjectResponse, error) { + out := new(pb.RpcBlockLinkCreateWithObjectResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockLinkCreateWithObject", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *clientCommandsClient) NavigationListObjects(ctx context.Context, in *pb.RpcNavigationListObjectsRequest, opts ...grpc.CallOption) (*pb.RpcNavigationListObjectsResponse, error) { - out := new(pb.RpcNavigationListObjectsResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/NavigationListObjects", in, out, opts...) +func (c *clientCommandsClient) BlockLinkListSetAppearance(ctx context.Context, in *pb.RpcBlockLinkListSetAppearanceRequest, opts ...grpc.CallOption) (*pb.RpcBlockLinkListSetAppearanceResponse, error) { + out := new(pb.RpcBlockLinkListSetAppearanceResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockLinkListSetAppearance", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *clientCommandsClient) NavigationGetObjectInfoWithLinks(ctx context.Context, in *pb.RpcNavigationGetObjectInfoWithLinksRequest, opts ...grpc.CallOption) (*pb.RpcNavigationGetObjectInfoWithLinksResponse, error) { - out := new(pb.RpcNavigationGetObjectInfoWithLinksResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/NavigationGetObjectInfoWithLinks", in, out, opts...) +func (c *clientCommandsClient) BlockBookmarkFetch(ctx context.Context, in *pb.RpcBlockBookmarkFetchRequest, opts ...grpc.CallOption) (*pb.RpcBlockBookmarkFetchResponse, error) { + out := new(pb.RpcBlockBookmarkFetchResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockBookmarkFetch", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *clientCommandsClient) ObjectGraph(ctx context.Context, in *pb.RpcObjectGraphRequest, opts ...grpc.CallOption) (*pb.RpcObjectGraphResponse, error) { - out := new(pb.RpcObjectGraphResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectGraph", in, out, opts...) +func (c *clientCommandsClient) BlockBookmarkCreateAndFetch(ctx context.Context, in *pb.RpcBlockBookmarkCreateAndFetchRequest, opts ...grpc.CallOption) (*pb.RpcBlockBookmarkCreateAndFetchResponse, error) { + out := new(pb.RpcBlockBookmarkCreateAndFetchResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockBookmarkCreateAndFetch", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *clientCommandsClient) ObjectSearch(ctx context.Context, in *pb.RpcObjectSearchRequest, opts ...grpc.CallOption) (*pb.RpcObjectSearchResponse, error) { - out := new(pb.RpcObjectSearchResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectSearch", in, out, opts...) +func (c *clientCommandsClient) BlockRelationSetKey(ctx context.Context, in *pb.RpcBlockRelationSetKeyRequest, opts ...grpc.CallOption) (*pb.RpcBlockRelationSetKeyResponse, error) { + out := new(pb.RpcBlockRelationSetKeyResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockRelationSetKey", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *clientCommandsClient) ObjectSearchSubscribe(ctx context.Context, in *pb.RpcObjectSearchSubscribeRequest, opts ...grpc.CallOption) (*pb.RpcObjectSearchSubscribeResponse, error) { - out := new(pb.RpcObjectSearchSubscribeResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectSearchSubscribe", in, out, opts...) +func (c *clientCommandsClient) BlockRelationAdd(ctx context.Context, in *pb.RpcBlockRelationAddRequest, opts ...grpc.CallOption) (*pb.RpcBlockRelationAddResponse, error) { + out := new(pb.RpcBlockRelationAddResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockRelationAdd", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *clientCommandsClient) ObjectIdsSubscribe(ctx context.Context, in *pb.RpcObjectIdsSubscribeRequest, opts ...grpc.CallOption) (*pb.RpcObjectIdsSubscribeResponse, error) { - out := new(pb.RpcObjectIdsSubscribeResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectIdsSubscribe", in, out, opts...) +func (c *clientCommandsClient) BlockDivListSetStyle(ctx context.Context, in *pb.RpcBlockDivListSetStyleRequest, opts ...grpc.CallOption) (*pb.RpcBlockDivListSetStyleResponse, error) { + out := new(pb.RpcBlockDivListSetStyleResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockDivListSetStyle", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *clientCommandsClient) ObjectSearchUnsubscribe(ctx context.Context, in *pb.RpcObjectSearchUnsubscribeRequest, opts ...grpc.CallOption) (*pb.RpcObjectSearchUnsubscribeResponse, error) { - out := new(pb.RpcObjectSearchUnsubscribeResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectSearchUnsubscribe", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) ObjectRelationAdd(ctx context.Context, in *pb.RpcObjectRelationAddRequest, opts ...grpc.CallOption) (*pb.RpcObjectRelationAddResponse, error) { - out := new(pb.RpcObjectRelationAddResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectRelationAdd", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) ObjectRelationUpdate(ctx context.Context, in *pb.RpcObjectRelationUpdateRequest, opts ...grpc.CallOption) (*pb.RpcObjectRelationUpdateResponse, error) { - out := new(pb.RpcObjectRelationUpdateResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectRelationUpdate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) ObjectRelationDelete(ctx context.Context, in *pb.RpcObjectRelationDeleteRequest, opts ...grpc.CallOption) (*pb.RpcObjectRelationDeleteResponse, error) { - out := new(pb.RpcObjectRelationDeleteResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectRelationDelete", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) ObjectRelationOptionAdd(ctx context.Context, in *pb.RpcObjectRelationOptionAddRequest, opts ...grpc.CallOption) (*pb.RpcObjectRelationOptionAddResponse, error) { - out := new(pb.RpcObjectRelationOptionAddResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectRelationOptionAdd", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) ObjectRelationOptionUpdate(ctx context.Context, in *pb.RpcObjectRelationOptionUpdateRequest, opts ...grpc.CallOption) (*pb.RpcObjectRelationOptionUpdateResponse, error) { - out := new(pb.RpcObjectRelationOptionUpdateResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectRelationOptionUpdate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) ObjectRelationOptionDelete(ctx context.Context, in *pb.RpcObjectRelationOptionDeleteRequest, opts ...grpc.CallOption) (*pb.RpcObjectRelationOptionDeleteResponse, error) { - out := new(pb.RpcObjectRelationOptionDeleteResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectRelationOptionDelete", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) ObjectRelationListAvailable(ctx context.Context, in *pb.RpcObjectRelationListAvailableRequest, opts ...grpc.CallOption) (*pb.RpcObjectRelationListAvailableResponse, error) { - out := new(pb.RpcObjectRelationListAvailableResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectRelationListAvailable", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) ObjectSetLayout(ctx context.Context, in *pb.RpcObjectSetLayoutRequest, opts ...grpc.CallOption) (*pb.RpcObjectSetLayoutResponse, error) { - out := new(pb.RpcObjectSetLayoutResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectSetLayout", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) ObjectFeaturedRelationAdd(ctx context.Context, in *pb.RpcObjectFeaturedRelationAddRequest, opts ...grpc.CallOption) (*pb.RpcObjectFeaturedRelationAddResponse, error) { - out := new(pb.RpcObjectFeaturedRelationAddResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectFeaturedRelationAdd", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) ObjectFeaturedRelationRemove(ctx context.Context, in *pb.RpcObjectFeaturedRelationRemoveRequest, opts ...grpc.CallOption) (*pb.RpcObjectFeaturedRelationRemoveResponse, error) { - out := new(pb.RpcObjectFeaturedRelationRemoveResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectFeaturedRelationRemove", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) ObjectSetIsFavorite(ctx context.Context, in *pb.RpcObjectSetIsFavoriteRequest, opts ...grpc.CallOption) (*pb.RpcObjectSetIsFavoriteResponse, error) { - out := new(pb.RpcObjectSetIsFavoriteResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectSetIsFavorite", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) ObjectSetIsArchived(ctx context.Context, in *pb.RpcObjectSetIsArchivedRequest, opts ...grpc.CallOption) (*pb.RpcObjectSetIsArchivedResponse, error) { - out := new(pb.RpcObjectSetIsArchivedResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectSetIsArchived", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) ObjectToSet(ctx context.Context, in *pb.RpcObjectToSetRequest, opts ...grpc.CallOption) (*pb.RpcObjectToSetResponse, error) { - out := new(pb.RpcObjectToSetResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectToSet", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) ObjectListDuplicate(ctx context.Context, in *pb.RpcObjectListDuplicateRequest, opts ...grpc.CallOption) (*pb.RpcObjectListDuplicateResponse, error) { - out := new(pb.RpcObjectListDuplicateResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectListDuplicate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) ObjectListDelete(ctx context.Context, in *pb.RpcObjectListDeleteRequest, opts ...grpc.CallOption) (*pb.RpcObjectListDeleteResponse, error) { - out := new(pb.RpcObjectListDeleteResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectListDelete", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) ObjectListSetIsArchived(ctx context.Context, in *pb.RpcObjectListSetIsArchivedRequest, opts ...grpc.CallOption) (*pb.RpcObjectListSetIsArchivedResponse, error) { - out := new(pb.RpcObjectListSetIsArchivedResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectListSetIsArchived", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) ObjectListSetIsFavorite(ctx context.Context, in *pb.RpcObjectListSetIsFavoriteRequest, opts ...grpc.CallOption) (*pb.RpcObjectListSetIsFavoriteResponse, error) { - out := new(pb.RpcObjectListSetIsFavoriteResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectListSetIsFavorite", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) BlockSetDetails(ctx context.Context, in *pb.RpcBlockSetDetailsRequest, opts ...grpc.CallOption) (*pb.RpcBlockSetDetailsResponse, error) { - out := new(pb.RpcBlockSetDetailsResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockSetDetails", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) PageCreate(ctx context.Context, in *pb.RpcPageCreateRequest, opts ...grpc.CallOption) (*pb.RpcPageCreateResponse, error) { - out := new(pb.RpcPageCreateResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/PageCreate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) SetCreate(ctx context.Context, in *pb.RpcSetCreateRequest, opts ...grpc.CallOption) (*pb.RpcSetCreateResponse, error) { - out := new(pb.RpcSetCreateResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/SetCreate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) MetricsSetParameters(ctx context.Context, in *pb.RpcMetricsSetParametersRequest, opts ...grpc.CallOption) (*pb.RpcMetricsSetParametersResponse, error) { - out := new(pb.RpcMetricsSetParametersResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/MetricsSetParameters", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) ObjectTypeCreate(ctx context.Context, in *pb.RpcObjectTypeCreateRequest, opts ...grpc.CallOption) (*pb.RpcObjectTypeCreateResponse, error) { - out := new(pb.RpcObjectTypeCreateResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectTypeCreate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) ObjectTypeList(ctx context.Context, in *pb.RpcObjectTypeListRequest, opts ...grpc.CallOption) (*pb.RpcObjectTypeListResponse, error) { - out := new(pb.RpcObjectTypeListResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectTypeList", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) ObjectTypeRelationList(ctx context.Context, in *pb.RpcObjectTypeRelationListRequest, opts ...grpc.CallOption) (*pb.RpcObjectTypeRelationListResponse, error) { - out := new(pb.RpcObjectTypeRelationListResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectTypeRelationList", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) ObjectTypeRelationAdd(ctx context.Context, in *pb.RpcObjectTypeRelationAddRequest, opts ...grpc.CallOption) (*pb.RpcObjectTypeRelationAddResponse, error) { - out := new(pb.RpcObjectTypeRelationAddResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectTypeRelationAdd", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) ObjectTypeRelationUpdate(ctx context.Context, in *pb.RpcObjectTypeRelationUpdateRequest, opts ...grpc.CallOption) (*pb.RpcObjectTypeRelationUpdateResponse, error) { - out := new(pb.RpcObjectTypeRelationUpdateResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectTypeRelationUpdate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) ObjectTypeRelationRemove(ctx context.Context, in *pb.RpcObjectTypeRelationRemoveRequest, opts ...grpc.CallOption) (*pb.RpcObjectTypeRelationRemoveResponse, error) { - out := new(pb.RpcObjectTypeRelationRemoveResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectTypeRelationRemove", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) Ping(ctx context.Context, in *pb.RpcPingRequest, opts ...grpc.CallOption) (*pb.RpcPingResponse, error) { - out := new(pb.RpcPingResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/Ping", in, out, opts...) +func (c *clientCommandsClient) BlockLatexSetText(ctx context.Context, in *pb.RpcBlockLatexSetTextRequest, opts ...grpc.CallOption) (*pb.RpcBlockLatexSetTextResponse, error) { + out := new(pb.RpcBlockLatexSetTextResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/BlockLatexSetText", in, out, opts...) if err != nil { return nil, err } @@ -1642,126 +1628,9 @@ func (c *clientCommandsClient) ProcessCancel(ctx context.Context, in *pb.RpcProc return out, nil } -func (c *clientCommandsClient) HistoryShow(ctx context.Context, in *pb.RpcHistoryShowRequest, opts ...grpc.CallOption) (*pb.RpcHistoryShowResponse, error) { - out := new(pb.RpcHistoryShowResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/HistoryShow", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) HistoryVersions(ctx context.Context, in *pb.RpcHistoryVersionsRequest, opts ...grpc.CallOption) (*pb.RpcHistoryVersionsResponse, error) { - out := new(pb.RpcHistoryVersionsResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/HistoryVersions", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) HistorySetVersion(ctx context.Context, in *pb.RpcHistorySetVersionRequest, opts ...grpc.CallOption) (*pb.RpcHistorySetVersionResponse, error) { - out := new(pb.RpcHistorySetVersionResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/HistorySetVersion", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) Export(ctx context.Context, in *pb.RpcExportRequest, opts ...grpc.CallOption) (*pb.RpcExportResponse, error) { - out := new(pb.RpcExportResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/Export", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) ExportWorkspace(ctx context.Context, in *pb.RpcExportWorkspaceRequest, opts ...grpc.CallOption) (*pb.RpcExportWorkspaceResponse, error) { - out := new(pb.RpcExportWorkspaceResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ExportWorkspace", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) ExportTemplates(ctx context.Context, in *pb.RpcExportTemplatesRequest, opts ...grpc.CallOption) (*pb.RpcExportTemplatesResponse, error) { - out := new(pb.RpcExportTemplatesResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ExportTemplates", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) ExportLocalstore(ctx context.Context, in *pb.RpcExportLocalstoreRequest, opts ...grpc.CallOption) (*pb.RpcExportLocalstoreResponse, error) { - out := new(pb.RpcExportLocalstoreResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ExportLocalstore", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) MakeTemplate(ctx context.Context, in *pb.RpcMakeTemplateRequest, opts ...grpc.CallOption) (*pb.RpcMakeTemplateResponse, error) { - out := new(pb.RpcMakeTemplateResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/MakeTemplate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) MakeTemplateByObjectType(ctx context.Context, in *pb.RpcMakeTemplateByObjectTypeRequest, opts ...grpc.CallOption) (*pb.RpcMakeTemplateByObjectTypeResponse, error) { - out := new(pb.RpcMakeTemplateByObjectTypeResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/MakeTemplateByObjectType", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) CloneTemplate(ctx context.Context, in *pb.RpcCloneTemplateRequest, opts ...grpc.CallOption) (*pb.RpcCloneTemplateResponse, error) { - out := new(pb.RpcCloneTemplateResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/CloneTemplate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) ObjectDuplicate(ctx context.Context, in *pb.RpcObjectDuplicateRequest, opts ...grpc.CallOption) (*pb.RpcObjectDuplicateResponse, error) { - out := new(pb.RpcObjectDuplicateResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ObjectDuplicate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) UnsplashSearch(ctx context.Context, in *pb.RpcUnsplashSearchRequest, opts ...grpc.CallOption) (*pb.RpcUnsplashSearchResponse, error) { - out := new(pb.RpcUnsplashSearchResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/UnsplashSearch", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) UnsplashDownload(ctx context.Context, in *pb.RpcUnsplashDownloadRequest, opts ...grpc.CallOption) (*pb.RpcUnsplashDownloadResponse, error) { - out := new(pb.RpcUnsplashDownloadResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/UnsplashDownload", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *clientCommandsClient) ApplyTemplate(ctx context.Context, in *pb.RpcApplyTemplateRequest, opts ...grpc.CallOption) (*pb.RpcApplyTemplateResponse, error) { - out := new(pb.RpcApplyTemplateResponse) - err := c.cc.Invoke(ctx, "/anytype.ClientCommands/ApplyTemplate", in, out, opts...) +func (c *clientCommandsClient) LogSend(ctx context.Context, in *pb.RpcLogSendRequest, opts ...grpc.CallOption) (*pb.RpcLogSendResponse, error) { + out := new(pb.RpcLogSendResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/LogSend", in, out, opts...) if err != nil { return nil, err } @@ -1795,6 +1664,33 @@ func (c *clientCommandsClient) DebugTree(ctx context.Context, in *pb.RpcDebugTre return out, nil } +func (c *clientCommandsClient) DebugExportLocalstore(ctx context.Context, in *pb.RpcDebugExportLocalstoreRequest, opts ...grpc.CallOption) (*pb.RpcDebugExportLocalstoreResponse, error) { + out := new(pb.RpcDebugExportLocalstoreResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/DebugExportLocalstore", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) DebugPing(ctx context.Context, in *pb.RpcDebugPingRequest, opts ...grpc.CallOption) (*pb.RpcDebugPingResponse, error) { + out := new(pb.RpcDebugPingResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/DebugPing", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *clientCommandsClient) MetricsSetParameters(ctx context.Context, in *pb.RpcMetricsSetParametersRequest, opts ...grpc.CallOption) (*pb.RpcMetricsSetParametersResponse, error) { + out := new(pb.RpcMetricsSetParametersResponse) + err := c.cc.Invoke(ctx, "/anytype.ClientCommands/MetricsSetParameters", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *clientCommandsClient) ListenEvents(ctx context.Context, in *pb.Empty, opts ...grpc.CallOption) (ClientCommands_ListenEventsClient, error) { stream, err := c.cc.NewStream(ctx, &_ClientCommands_serviceDesc.Streams[0], "/anytype.ClientCommands/ListenEvents", opts...) if err != nil { @@ -1829,148 +1725,78 @@ func (x *clientCommandsListenEventsClient) Recv() (*pb.Event, error) { // ClientCommandsServer is the server API for ClientCommands service. type ClientCommandsServer interface { - ObjectAddWithObjectId(*pb.RpcObjectAddWithObjectIdRequest) *pb.RpcObjectAddWithObjectIdResponse - ObjectShareByLink(*pb.RpcObjectShareByLinkRequest) *pb.RpcObjectShareByLinkResponse + AppGetVersion(*pb.RpcAppGetVersionRequest) *pb.RpcAppGetVersionResponse + AppSetDeviceState(*pb.RpcAppSetDeviceStateRequest) *pb.RpcAppSetDeviceStateResponse + AppShutdown(*pb.RpcAppShutdownRequest) *pb.RpcAppShutdownResponse + // Wallet + // *** WalletCreate(*pb.RpcWalletCreateRequest) *pb.RpcWalletCreateResponse WalletRecover(*pb.RpcWalletRecoverRequest) *pb.RpcWalletRecoverResponse WalletConvert(*pb.RpcWalletConvertRequest) *pb.RpcWalletConvertResponse + // Workspace + // *** WorkspaceCreate(*pb.RpcWorkspaceCreateRequest) *pb.RpcWorkspaceCreateResponse WorkspaceSelect(*pb.RpcWorkspaceSelectRequest) *pb.RpcWorkspaceSelectResponse WorkspaceGetCurrent(*pb.RpcWorkspaceGetCurrentRequest) *pb.RpcWorkspaceGetCurrentResponse WorkspaceGetAll(*pb.RpcWorkspaceGetAllRequest) *pb.RpcWorkspaceGetAllResponse WorkspaceSetIsHighlighted(*pb.RpcWorkspaceSetIsHighlightedRequest) *pb.RpcWorkspaceSetIsHighlightedResponse + WorkspaceExport(*pb.RpcWorkspaceExportRequest) *pb.RpcWorkspaceExportResponse + // Account + // *** AccountRecover(*pb.RpcAccountRecoverRequest) *pb.RpcAccountRecoverResponse AccountCreate(*pb.RpcAccountCreateRequest) *pb.RpcAccountCreateResponse AccountDelete(*pb.RpcAccountDeleteRequest) *pb.RpcAccountDeleteResponse AccountSelect(*pb.RpcAccountSelectRequest) *pb.RpcAccountSelectResponse AccountStop(*pb.RpcAccountStopRequest) *pb.RpcAccountStopResponse - FileOffload(*pb.RpcFileOffloadRequest) *pb.RpcFileOffloadResponse - FileListOffload(*pb.RpcFileListOffloadRequest) *pb.RpcFileListOffloadResponse - VersionGet(*pb.RpcVersionGetRequest) *pb.RpcVersionGetResponse - LogSend(*pb.RpcLogSendRequest) *pb.RpcLogSendResponse - ConfigGet(*pb.RpcConfigGetRequest) *pb.RpcConfigGetResponse - Shutdown(*pb.RpcShutdownRequest) *pb.RpcShutdownResponse - SetDeviceState(*pb.RpcDeviceStateRequest) *pb.RpcDeviceStateResponse - ExternalDropFiles(*pb.RpcExternalDropFilesRequest) *pb.RpcExternalDropFilesResponse - ExternalDropContent(*pb.RpcExternalDropContentRequest) *pb.RpcExternalDropContentResponse - LinkPreview(*pb.RpcLinkPreviewRequest) *pb.RpcLinkPreviewResponse - UploadFile(*pb.RpcUploadFileRequest) *pb.RpcUploadFileResponse - DownloadFile(*pb.RpcDownloadFileRequest) *pb.RpcDownloadFileResponse - BlockUpload(*pb.RpcBlockUploadRequest) *pb.RpcBlockUploadResponse - BlockReplace(*pb.RpcBlockReplaceRequest) *pb.RpcBlockReplaceResponse - // BlockUpdateContent allows to update any simple block content to the new value of the same type - BlockUpdateContent(*pb.RpcBlockUpdateContentRequest) *pb.RpcBlockUpdateContentResponse - BlockOpen(*pb.RpcBlockOpenRequest) *pb.RpcBlockOpenResponse - BlockShow(*pb.RpcBlockShowRequest) *pb.RpcBlockShowResponse - BlockGetPublicWebURL(*pb.RpcBlockGetPublicWebURLRequest) *pb.RpcBlockGetPublicWebURLResponse - BlockOpenBreadcrumbs(*pb.RpcBlockOpenBreadcrumbsRequest) *pb.RpcBlockOpenBreadcrumbsResponse - BlockSetBreadcrumbs(*pb.RpcBlockSetBreadcrumbsRequest) *pb.RpcBlockSetBreadcrumbsResponse - BlockCreate(*pb.RpcBlockCreateRequest) *pb.RpcBlockCreateResponse - BlockCreatePage(*pb.RpcBlockCreatePageRequest) *pb.RpcBlockCreatePageResponse - BlockCreateSet(*pb.RpcBlockCreateSetRequest) *pb.RpcBlockCreateSetResponse - BlockUnlink(*pb.RpcBlockUnlinkRequest) *pb.RpcBlockUnlinkResponse - BlockClose(*pb.RpcBlockCloseRequest) *pb.RpcBlockCloseResponse - BlockDownload(*pb.RpcBlockDownloadRequest) *pb.RpcBlockDownloadResponse - BlockGetMarks(*pb.RpcBlockGetMarksRequest) *pb.RpcBlockGetMarksResponse - BlockUndo(*pb.RpcBlockUndoRequest) *pb.RpcBlockUndoResponse - BlockRedo(*pb.RpcBlockRedoRequest) *pb.RpcBlockRedoResponse - BlockSetFields(*pb.RpcBlockSetFieldsRequest) *pb.RpcBlockSetFieldsResponse - BlockSetRestrictions(*pb.RpcBlockSetRestrictionsRequest) *pb.RpcBlockSetRestrictionsResponse - BlockListMove(*pb.RpcBlockListMoveRequest) *pb.RpcBlockListMoveResponse - BlockListMoveToNewPage(*pb.RpcBlockListMoveToNewPageRequest) *pb.RpcBlockListMoveToNewPageResponse - BlockListConvertChildrenToPages(*pb.RpcBlockListConvertChildrenToPagesRequest) *pb.RpcBlockListConvertChildrenToPagesResponse - BlockListSetFields(*pb.RpcBlockListSetFieldsRequest) *pb.RpcBlockListSetFieldsResponse - BlockListSetTextStyle(*pb.RpcBlockListSetTextStyleRequest) *pb.RpcBlockListSetTextStyleResponse - BlockListDuplicate(*pb.RpcBlockListDuplicateRequest) *pb.RpcBlockListDuplicateResponse - BlockListSetBackgroundColor(*pb.RpcBlockListSetBackgroundColorRequest) *pb.RpcBlockListSetBackgroundColorResponse - BlockListSetAlign(*pb.RpcBlockListSetAlignRequest) *pb.RpcBlockListSetAlignResponse - BlockListSetDivStyle(*pb.RpcBlockListSetDivStyleRequest) *pb.RpcBlockListSetDivStyleResponse - BlockListSetFileStyle(*pb.RpcBlockListSetFileStyleRequest) *pb.RpcBlockListSetFileStyleResponse - BlockListTurnInto(*pb.RpcBlockListTurnIntoRequest) *pb.RpcBlockListTurnIntoResponse - BlockSetLatexText(*pb.RpcBlockSetLatexTextRequest) *pb.RpcBlockSetLatexTextResponse - BlockSetTextText(*pb.RpcBlockSetTextTextRequest) *pb.RpcBlockSetTextTextResponse - BlockSetTextColor(*pb.RpcBlockSetTextColorRequest) *pb.RpcBlockSetTextColorResponse - BlockListSetTextColor(*pb.RpcBlockListSetTextColorRequest) *pb.RpcBlockListSetTextColorResponse - BlockListSetTextMark(*pb.RpcBlockListSetTextMarkRequest) *pb.RpcBlockListSetTextMarkResponse - BlockSetTextStyle(*pb.RpcBlockSetTextStyleRequest) *pb.RpcBlockSetTextStyleResponse - BlockSetTextChecked(*pb.RpcBlockSetTextCheckedRequest) *pb.RpcBlockSetTextCheckedResponse - BlockSetTextIcon(*pb.RpcBlockSetTextIconRequest) *pb.RpcBlockSetTextIconResponse - BlockSplit(*pb.RpcBlockSplitRequest) *pb.RpcBlockSplitResponse - BlockMerge(*pb.RpcBlockMergeRequest) *pb.RpcBlockMergeResponse - BlockCopy(*pb.RpcBlockCopyRequest) *pb.RpcBlockCopyResponse - BlockPaste(*pb.RpcBlockPasteRequest) *pb.RpcBlockPasteResponse - BlockCut(*pb.RpcBlockCutRequest) *pb.RpcBlockCutResponse - BlockExport(*pb.RpcBlockExportRequest) *pb.RpcBlockExportResponse - BlockImportMarkdown(*pb.RpcBlockImportMarkdownRequest) *pb.RpcBlockImportMarkdownResponse - BlockSetFileName(*pb.RpcBlockSetFileNameRequest) *pb.RpcBlockSetFileNameResponse - BlockSetImageName(*pb.RpcBlockSetImageNameRequest) *pb.RpcBlockSetImageNameResponse - BlockSetImageWidth(*pb.RpcBlockSetImageWidthRequest) *pb.RpcBlockSetImageWidthResponse - BlockSetVideoName(*pb.RpcBlockSetVideoNameRequest) *pb.RpcBlockSetVideoNameResponse - BlockSetVideoWidth(*pb.RpcBlockSetVideoWidthRequest) *pb.RpcBlockSetVideoWidthResponse - BlockSetLinkTargetBlockId(*pb.RpcBlockSetLinkTargetBlockIdRequest) *pb.RpcBlockSetLinkTargetBlockIdResponse - BlockBookmarkFetch(*pb.RpcBlockBookmarkFetchRequest) *pb.RpcBlockBookmarkFetchResponse - BlockBookmarkCreateAndFetch(*pb.RpcBlockBookmarkCreateAndFetchRequest) *pb.RpcBlockBookmarkCreateAndFetchResponse - BlockFileCreateAndUpload(*pb.RpcBlockFileCreateAndUploadRequest) *pb.RpcBlockFileCreateAndUploadResponse - BlockRelationSetKey(*pb.RpcBlockRelationSetKeyRequest) *pb.RpcBlockRelationSetKeyResponse - BlockRelationAdd(*pb.RpcBlockRelationAddRequest) *pb.RpcBlockRelationAddResponse - // ## Dataview - // # View - BlockDataviewViewCreate(*pb.RpcBlockDataviewViewCreateRequest) *pb.RpcBlockDataviewViewCreateResponse - BlockDataviewViewDelete(*pb.RpcBlockDataviewViewDeleteRequest) *pb.RpcBlockDataviewViewDeleteResponse - BlockDataviewViewUpdate(*pb.RpcBlockDataviewViewUpdateRequest) *pb.RpcBlockDataviewViewUpdateResponse - BlockDataviewViewSetActive(*pb.RpcBlockDataviewViewSetActiveRequest) *pb.RpcBlockDataviewViewSetActiveResponse - BlockDataviewViewSetPosition(*pb.RpcBlockDataviewViewSetPositionRequest) *pb.RpcBlockDataviewViewSetPositionResponse - BlockDataviewSetSource(*pb.RpcBlockDataviewSetSourceRequest) *pb.RpcBlockDataviewSetSourceResponse - // # Relation - BlockDataviewRelationAdd(*pb.RpcBlockDataviewRelationAddRequest) *pb.RpcBlockDataviewRelationAddResponse - BlockDataviewRelationUpdate(*pb.RpcBlockDataviewRelationUpdateRequest) *pb.RpcBlockDataviewRelationUpdateResponse - BlockDataviewRelationDelete(*pb.RpcBlockDataviewRelationDeleteRequest) *pb.RpcBlockDataviewRelationDeleteResponse - BlockDataviewRelationListAvailable(*pb.RpcBlockDataviewRelationListAvailableRequest) *pb.RpcBlockDataviewRelationListAvailableResponse - // # Record - BlockDataviewRecordCreate(*pb.RpcBlockDataviewRecordCreateRequest) *pb.RpcBlockDataviewRecordCreateResponse - BlockDataviewRecordUpdate(*pb.RpcBlockDataviewRecordUpdateRequest) *pb.RpcBlockDataviewRecordUpdateResponse - BlockDataviewRecordDelete(*pb.RpcBlockDataviewRecordDeleteRequest) *pb.RpcBlockDataviewRecordDeleteResponse - BlockDataviewRecordRelationOptionAdd(*pb.RpcBlockDataviewRecordRelationOptionAddRequest) *pb.RpcBlockDataviewRecordRelationOptionAddResponse - BlockDataviewRecordRelationOptionUpdate(*pb.RpcBlockDataviewRecordRelationOptionUpdateRequest) *pb.RpcBlockDataviewRecordRelationOptionUpdateResponse - BlockDataviewRecordRelationOptionDelete(*pb.RpcBlockDataviewRecordRelationOptionDeleteRequest) *pb.RpcBlockDataviewRecordRelationOptionDeleteResponse - // ## Object's relations - // set an existing object type to the object so it will appear in sets and suggests relations from this type - // TODO: rename BlockObjectTypeSet -> ObjectObjectTypeSet - BlockObjectTypeSet(*pb.RpcBlockObjectTypeSetRequest) *pb.RpcBlockObjectTypeSetResponse - NavigationListObjects(*pb.RpcNavigationListObjectsRequest) *pb.RpcNavigationListObjectsResponse - NavigationGetObjectInfoWithLinks(*pb.RpcNavigationGetObjectInfoWithLinksRequest) *pb.RpcNavigationGetObjectInfoWithLinksResponse + // Object + // *** + ObjectOpen(*pb.RpcObjectOpenRequest) *pb.RpcObjectOpenResponse + ObjectClose(*pb.RpcObjectCloseRequest) *pb.RpcObjectCloseResponse + ObjectShow(*pb.RpcObjectShowRequest) *pb.RpcObjectShowResponse + // ObjectCreate just creates the new page, without adding the link to it from some other page + ObjectCreate(*pb.RpcObjectCreateRequest) *pb.RpcObjectCreateResponse + // ObjectCreateSet just creates the new set, without adding the link to it from some other page + ObjectCreateSet(*pb.RpcObjectCreateSetRequest) *pb.RpcObjectCreateSetResponse ObjectGraph(*pb.RpcObjectGraphRequest) *pb.RpcObjectGraphResponse ObjectSearch(*pb.RpcObjectSearchRequest) *pb.RpcObjectSearchResponse ObjectSearchSubscribe(*pb.RpcObjectSearchSubscribeRequest) *pb.RpcObjectSearchSubscribeResponse - ObjectIdsSubscribe(*pb.RpcObjectIdsSubscribeRequest) *pb.RpcObjectIdsSubscribeResponse + ObjectSubscribeIds(*pb.RpcObjectSubscribeIdsRequest) *pb.RpcObjectSubscribeIdsResponse ObjectSearchUnsubscribe(*pb.RpcObjectSearchUnsubscribeRequest) *pb.RpcObjectSearchUnsubscribeResponse - ObjectRelationAdd(*pb.RpcObjectRelationAddRequest) *pb.RpcObjectRelationAddResponse - ObjectRelationUpdate(*pb.RpcObjectRelationUpdateRequest) *pb.RpcObjectRelationUpdateResponse - ObjectRelationDelete(*pb.RpcObjectRelationDeleteRequest) *pb.RpcObjectRelationDeleteResponse - ObjectRelationOptionAdd(*pb.RpcObjectRelationOptionAddRequest) *pb.RpcObjectRelationOptionAddResponse - ObjectRelationOptionUpdate(*pb.RpcObjectRelationOptionUpdateRequest) *pb.RpcObjectRelationOptionUpdateResponse - ObjectRelationOptionDelete(*pb.RpcObjectRelationOptionDeleteRequest) *pb.RpcObjectRelationOptionDeleteResponse - ObjectRelationListAvailable(*pb.RpcObjectRelationListAvailableRequest) *pb.RpcObjectRelationListAvailableResponse + ObjectSetDetails(*pb.RpcObjectSetDetailsRequest) *pb.RpcObjectSetDetailsResponse + ObjectDuplicate(*pb.RpcObjectDuplicateRequest) *pb.RpcObjectDuplicateResponse + // ObjectSetObjectType sets an existing object type to the object so it will appear in sets and suggests relations from this type + ObjectSetObjectType(*pb.RpcObjectSetObjectTypeRequest) *pb.RpcObjectSetObjectTypeResponse ObjectSetLayout(*pb.RpcObjectSetLayoutRequest) *pb.RpcObjectSetLayoutResponse - ObjectFeaturedRelationAdd(*pb.RpcObjectFeaturedRelationAddRequest) *pb.RpcObjectFeaturedRelationAddResponse - ObjectFeaturedRelationRemove(*pb.RpcObjectFeaturedRelationRemoveRequest) *pb.RpcObjectFeaturedRelationRemoveResponse ObjectSetIsFavorite(*pb.RpcObjectSetIsFavoriteRequest) *pb.RpcObjectSetIsFavoriteResponse ObjectSetIsArchived(*pb.RpcObjectSetIsArchivedRequest) *pb.RpcObjectSetIsArchivedResponse - // ObjectToSet creates new set from given object and removes object - ObjectToSet(*pb.RpcObjectToSetRequest) *pb.RpcObjectToSetResponse ObjectListDuplicate(*pb.RpcObjectListDuplicateRequest) *pb.RpcObjectListDuplicateResponse ObjectListDelete(*pb.RpcObjectListDeleteRequest) *pb.RpcObjectListDeleteResponse ObjectListSetIsArchived(*pb.RpcObjectListSetIsArchivedRequest) *pb.RpcObjectListSetIsArchivedResponse ObjectListSetIsFavorite(*pb.RpcObjectListSetIsFavoriteRequest) *pb.RpcObjectListSetIsFavoriteResponse - // TODO: rename BlockSetDetails -> ObjectSetDetails - BlockSetDetails(*pb.RpcBlockSetDetailsRequest) *pb.RpcBlockSetDetailsResponse - // PageCreate just creates the new page, without adding the link to it from some other page - // TODO: rename PageCreate -> ObjectCreate - PageCreate(*pb.RpcPageCreateRequest) *pb.RpcPageCreateResponse - // SetCreate just creates the new set, without adding the link to it from some other page - SetCreate(*pb.RpcSetCreateRequest) *pb.RpcSetCreateResponse - MetricsSetParameters(*pb.RpcMetricsSetParametersRequest) *pb.RpcMetricsSetParametersResponse - // ## ObjectType + ObjectApplyTemplate(*pb.RpcObjectApplyTemplateRequest) *pb.RpcObjectApplyTemplateResponse + // ObjectToSet creates new set from given object and removes object + ObjectToSet(*pb.RpcObjectToSetRequest) *pb.RpcObjectToSetResponse + ObjectAddWithObjectId(*pb.RpcObjectAddWithObjectIdRequest) *pb.RpcObjectAddWithObjectIdResponse + ObjectShareByLink(*pb.RpcObjectShareByLinkRequest) *pb.RpcObjectShareByLinkResponse + ObjectOpenBreadcrumbs(*pb.RpcObjectOpenBreadcrumbsRequest) *pb.RpcObjectOpenBreadcrumbsResponse + ObjectSetBreadcrumbs(*pb.RpcObjectSetBreadcrumbsRequest) *pb.RpcObjectSetBreadcrumbsResponse + ObjectUndo(*pb.RpcObjectUndoRequest) *pb.RpcObjectUndoResponse + ObjectRedo(*pb.RpcObjectRedoRequest) *pb.RpcObjectRedoResponse + ObjectImportMarkdown(*pb.RpcObjectImportMarkdownRequest) *pb.RpcObjectImportMarkdownResponse + ObjectListExport(*pb.RpcObjectListExportRequest) *pb.RpcObjectListExportResponse + // Object Relations + // *** + ObjectRelationAdd(*pb.RpcObjectRelationAddRequest) *pb.RpcObjectRelationAddResponse + ObjectRelationUpdate(*pb.RpcObjectRelationUpdateRequest) *pb.RpcObjectRelationUpdateResponse + ObjectRelationDelete(*pb.RpcObjectRelationDeleteRequest) *pb.RpcObjectRelationDeleteResponse + ObjectRelationAddFeatured(*pb.RpcObjectRelationAddFeaturedRequest) *pb.RpcObjectRelationAddFeaturedResponse + ObjectRelationRemoveFeatured(*pb.RpcObjectRelationRemoveFeaturedRequest) *pb.RpcObjectRelationRemoveFeaturedResponse + ObjectRelationListAvailable(*pb.RpcObjectRelationListAvailableRequest) *pb.RpcObjectRelationListAvailableResponse + ObjectRelationOptionAdd(*pb.RpcObjectRelationOptionAddRequest) *pb.RpcObjectRelationOptionAddResponse + ObjectRelationOptionUpdate(*pb.RpcObjectRelationOptionUpdateRequest) *pb.RpcObjectRelationOptionUpdateResponse + ObjectRelationOptionDelete(*pb.RpcObjectRelationOptionDeleteRequest) *pb.RpcObjectRelationOptionDeleteResponse + // ObjectType commands + // *** ObjectTypeCreate(*pb.RpcObjectTypeCreateRequest) *pb.RpcObjectTypeCreateResponse // ObjectTypeList lists all object types both bundled and created by user ObjectTypeList(*pb.RpcObjectTypeListRequest) *pb.RpcObjectTypeListResponse @@ -1978,27 +1804,101 @@ type ClientCommandsServer interface { ObjectTypeRelationAdd(*pb.RpcObjectTypeRelationAddRequest) *pb.RpcObjectTypeRelationAddResponse ObjectTypeRelationUpdate(*pb.RpcObjectTypeRelationUpdateRequest) *pb.RpcObjectTypeRelationUpdateResponse ObjectTypeRelationRemove(*pb.RpcObjectTypeRelationRemoveRequest) *pb.RpcObjectTypeRelationRemoveResponse - Ping(*pb.RpcPingRequest) *pb.RpcPingResponse - ProcessCancel(*pb.RpcProcessCancelRequest) *pb.RpcProcessCancelResponse - HistoryShow(*pb.RpcHistoryShowRequest) *pb.RpcHistoryShowResponse - HistoryVersions(*pb.RpcHistoryVersionsRequest) *pb.RpcHistoryVersionsResponse + HistoryShowVersion(*pb.RpcHistoryShowVersionRequest) *pb.RpcHistoryShowVersionResponse + HistoryGetVersions(*pb.RpcHistoryGetVersionsRequest) *pb.RpcHistoryGetVersionsResponse HistorySetVersion(*pb.RpcHistorySetVersionRequest) *pb.RpcHistorySetVersionResponse - Export(*pb.RpcExportRequest) *pb.RpcExportResponse - ExportWorkspace(*pb.RpcExportWorkspaceRequest) *pb.RpcExportWorkspaceResponse - ExportTemplates(*pb.RpcExportTemplatesRequest) *pb.RpcExportTemplatesResponse - ExportLocalstore(*pb.RpcExportLocalstoreRequest) *pb.RpcExportLocalstoreResponse - MakeTemplate(*pb.RpcMakeTemplateRequest) *pb.RpcMakeTemplateResponse - MakeTemplateByObjectType(*pb.RpcMakeTemplateByObjectTypeRequest) *pb.RpcMakeTemplateByObjectTypeResponse - CloneTemplate(*pb.RpcCloneTemplateRequest) *pb.RpcCloneTemplateResponse - ObjectDuplicate(*pb.RpcObjectDuplicateRequest) *pb.RpcObjectDuplicateResponse + // Files + // *** + FileOffload(*pb.RpcFileOffloadRequest) *pb.RpcFileOffloadResponse + FileListOffload(*pb.RpcFileListOffloadRequest) *pb.RpcFileListOffloadResponse + FileUpload(*pb.RpcFileUploadRequest) *pb.RpcFileUploadResponse + FileDownload(*pb.RpcFileDownloadRequest) *pb.RpcFileDownloadResponse + FileDrop(*pb.RpcFileDropRequest) *pb.RpcFileDropResponse + NavigationListObjects(*pb.RpcNavigationListObjectsRequest) *pb.RpcNavigationListObjectsResponse + NavigationGetObjectInfoWithLinks(*pb.RpcNavigationGetObjectInfoWithLinksRequest) *pb.RpcNavigationGetObjectInfoWithLinksResponse + TemplateCreateFromObject(*pb.RpcTemplateCreateFromObjectRequest) *pb.RpcTemplateCreateFromObjectResponse + TemplateCreateFromObjectType(*pb.RpcTemplateCreateFromObjectTypeRequest) *pb.RpcTemplateCreateFromObjectTypeResponse + TemplateClone(*pb.RpcTemplateCloneRequest) *pb.RpcTemplateCloneResponse + TemplateExportAll(*pb.RpcTemplateExportAllRequest) *pb.RpcTemplateExportAllResponse + LinkPreview(*pb.RpcLinkPreviewRequest) *pb.RpcLinkPreviewResponse UnsplashSearch(*pb.RpcUnsplashSearchRequest) *pb.RpcUnsplashSearchResponse // UnsplashDownload downloads picture from unsplash by ID, put it to the IPFS and returns the hash. // The artist info is available in the object details UnsplashDownload(*pb.RpcUnsplashDownloadRequest) *pb.RpcUnsplashDownloadResponse - ApplyTemplate(*pb.RpcApplyTemplateRequest) *pb.RpcApplyTemplateResponse + // General Block commands + // *** + BlockUpload(*pb.RpcBlockUploadRequest) *pb.RpcBlockUploadResponse + BlockReplace(*pb.RpcBlockReplaceRequest) *pb.RpcBlockReplaceResponse + BlockCreate(*pb.RpcBlockCreateRequest) *pb.RpcBlockCreateResponse + BlockSplit(*pb.RpcBlockSplitRequest) *pb.RpcBlockSplitResponse + BlockMerge(*pb.RpcBlockMergeRequest) *pb.RpcBlockMergeResponse + BlockCopy(*pb.RpcBlockCopyRequest) *pb.RpcBlockCopyResponse + BlockPaste(*pb.RpcBlockPasteRequest) *pb.RpcBlockPasteResponse + BlockCut(*pb.RpcBlockCutRequest) *pb.RpcBlockCutResponse + BlockSetFields(*pb.RpcBlockSetFieldsRequest) *pb.RpcBlockSetFieldsResponse + BlockExport(*pb.RpcBlockExportRequest) *pb.RpcBlockExportResponse + BlockListDelete(*pb.RpcBlockListDeleteRequest) *pb.RpcBlockListDeleteResponse + BlockListMoveToExistingObject(*pb.RpcBlockListMoveToExistingObjectRequest) *pb.RpcBlockListMoveToExistingObjectResponse + BlockListMoveToNewObject(*pb.RpcBlockListMoveToNewObjectRequest) *pb.RpcBlockListMoveToNewObjectResponse + BlockListConvertToObjects(*pb.RpcBlockListConvertToObjectsRequest) *pb.RpcBlockListConvertToObjectsResponse + BlockListSetFields(*pb.RpcBlockListSetFieldsRequest) *pb.RpcBlockListSetFieldsResponse + BlockListDuplicate(*pb.RpcBlockListDuplicateRequest) *pb.RpcBlockListDuplicateResponse + BlockListSetBackgroundColor(*pb.RpcBlockListSetBackgroundColorRequest) *pb.RpcBlockListSetBackgroundColorResponse + BlockListSetAlign(*pb.RpcBlockListSetAlignRequest) *pb.RpcBlockListSetAlignResponse + BlockListTurnInto(*pb.RpcBlockListTurnIntoRequest) *pb.RpcBlockListTurnIntoResponse + // Text Block commands + // *** + BlockTextSetText(*pb.RpcBlockTextSetTextRequest) *pb.RpcBlockTextSetTextResponse + BlockTextSetColor(*pb.RpcBlockTextSetColorRequest) *pb.RpcBlockTextSetColorResponse + BlockTextSetStyle(*pb.RpcBlockTextSetStyleRequest) *pb.RpcBlockTextSetStyleResponse + BlockTextSetChecked(*pb.RpcBlockTextSetCheckedRequest) *pb.RpcBlockTextSetCheckedResponse + BlockTextSetIcon(*pb.RpcBlockTextSetIconRequest) *pb.RpcBlockTextSetIconResponse + BlockTextListSetColor(*pb.RpcBlockTextListSetColorRequest) *pb.RpcBlockTextListSetColorResponse + BlockTextListSetMark(*pb.RpcBlockTextListSetMarkRequest) *pb.RpcBlockTextListSetMarkResponse + BlockTextListSetStyle(*pb.RpcBlockTextListSetStyleRequest) *pb.RpcBlockTextListSetStyleResponse + // File block commands + // *** + BlockFileSetName(*pb.RpcBlockFileSetNameRequest) *pb.RpcBlockFileSetNameResponse + BlockImageSetName(*pb.RpcBlockImageSetNameRequest) *pb.RpcBlockImageSetNameResponse + BlockVideoSetName(*pb.RpcBlockVideoSetNameRequest) *pb.RpcBlockVideoSetNameResponse + BlockFileCreateAndUpload(*pb.RpcBlockFileCreateAndUploadRequest) *pb.RpcBlockFileCreateAndUploadResponse + BlockFileListSetStyle(*pb.RpcBlockFileListSetStyleRequest) *pb.RpcBlockFileListSetStyleResponse + // Dataview block commands + // *** + BlockDataviewViewCreate(*pb.RpcBlockDataviewViewCreateRequest) *pb.RpcBlockDataviewViewCreateResponse + BlockDataviewViewDelete(*pb.RpcBlockDataviewViewDeleteRequest) *pb.RpcBlockDataviewViewDeleteResponse + BlockDataviewViewUpdate(*pb.RpcBlockDataviewViewUpdateRequest) *pb.RpcBlockDataviewViewUpdateResponse + BlockDataviewViewSetActive(*pb.RpcBlockDataviewViewSetActiveRequest) *pb.RpcBlockDataviewViewSetActiveResponse + BlockDataviewViewSetPosition(*pb.RpcBlockDataviewViewSetPositionRequest) *pb.RpcBlockDataviewViewSetPositionResponse + BlockDataviewSetSource(*pb.RpcBlockDataviewSetSourceRequest) *pb.RpcBlockDataviewSetSourceResponse + BlockDataviewRelationAdd(*pb.RpcBlockDataviewRelationAddRequest) *pb.RpcBlockDataviewRelationAddResponse + BlockDataviewRelationUpdate(*pb.RpcBlockDataviewRelationUpdateRequest) *pb.RpcBlockDataviewRelationUpdateResponse + BlockDataviewRelationDelete(*pb.RpcBlockDataviewRelationDeleteRequest) *pb.RpcBlockDataviewRelationDeleteResponse + BlockDataviewRelationListAvailable(*pb.RpcBlockDataviewRelationListAvailableRequest) *pb.RpcBlockDataviewRelationListAvailableResponse + BlockDataviewRecordCreate(*pb.RpcBlockDataviewRecordCreateRequest) *pb.RpcBlockDataviewRecordCreateResponse + BlockDataviewRecordUpdate(*pb.RpcBlockDataviewRecordUpdateRequest) *pb.RpcBlockDataviewRecordUpdateResponse + BlockDataviewRecordDelete(*pb.RpcBlockDataviewRecordDeleteRequest) *pb.RpcBlockDataviewRecordDeleteResponse + BlockDataviewRecordRelationOptionAdd(*pb.RpcBlockDataviewRecordRelationOptionAddRequest) *pb.RpcBlockDataviewRecordRelationOptionAddResponse + BlockDataviewRecordRelationOptionUpdate(*pb.RpcBlockDataviewRecordRelationOptionUpdateRequest) *pb.RpcBlockDataviewRecordRelationOptionUpdateResponse + BlockDataviewRecordRelationOptionDelete(*pb.RpcBlockDataviewRecordRelationOptionDeleteRequest) *pb.RpcBlockDataviewRecordRelationOptionDeleteResponse + // Other specific block commands + // *** + BlockLinkCreateWithObject(*pb.RpcBlockLinkCreateWithObjectRequest) *pb.RpcBlockLinkCreateWithObjectResponse + BlockLinkListSetAppearance(*pb.RpcBlockLinkListSetAppearanceRequest) *pb.RpcBlockLinkListSetAppearanceResponse + BlockBookmarkFetch(*pb.RpcBlockBookmarkFetchRequest) *pb.RpcBlockBookmarkFetchResponse + BlockBookmarkCreateAndFetch(*pb.RpcBlockBookmarkCreateAndFetchRequest) *pb.RpcBlockBookmarkCreateAndFetchResponse + BlockRelationSetKey(*pb.RpcBlockRelationSetKeyRequest) *pb.RpcBlockRelationSetKeyResponse + BlockRelationAdd(*pb.RpcBlockRelationAddRequest) *pb.RpcBlockRelationAddResponse + BlockDivListSetStyle(*pb.RpcBlockDivListSetStyleRequest) *pb.RpcBlockDivListSetStyleResponse + BlockLatexSetText(*pb.RpcBlockLatexSetTextRequest) *pb.RpcBlockLatexSetTextResponse + ProcessCancel(*pb.RpcProcessCancelRequest) *pb.RpcProcessCancelResponse + LogSend(*pb.RpcLogSendRequest) *pb.RpcLogSendResponse DebugSync(*pb.RpcDebugSyncRequest) *pb.RpcDebugSyncResponse DebugThread(*pb.RpcDebugThreadRequest) *pb.RpcDebugThreadResponse DebugTree(*pb.RpcDebugTreeRequest) *pb.RpcDebugTreeResponse + DebugExportLocalstore(*pb.RpcDebugExportLocalstoreRequest) *pb.RpcDebugExportLocalstoreResponse + DebugPing(*pb.RpcDebugPingRequest) *pb.RpcDebugPingResponse + MetricsSetParameters(*pb.RpcMetricsSetParametersRequest) *pb.RpcMetricsSetParametersResponse // used only for lib-server via grpc ListenEvents(*pb.Empty, ClientCommands_ListenEventsServer) } @@ -2007,10 +1907,13 @@ type ClientCommandsServer interface { type UnimplementedClientCommandsServer struct { } -func (*UnimplementedClientCommandsServer) ObjectAddWithObjectId(req *pb.RpcObjectAddWithObjectIdRequest) *pb.RpcObjectAddWithObjectIdResponse { +func (*UnimplementedClientCommandsServer) AppGetVersion(req *pb.RpcAppGetVersionRequest) *pb.RpcAppGetVersionResponse { return nil } -func (*UnimplementedClientCommandsServer) ObjectShareByLink(req *pb.RpcObjectShareByLinkRequest) *pb.RpcObjectShareByLinkResponse { +func (*UnimplementedClientCommandsServer) AppSetDeviceState(req *pb.RpcAppSetDeviceStateRequest) *pb.RpcAppSetDeviceStateResponse { + return nil +} +func (*UnimplementedClientCommandsServer) AppShutdown(req *pb.RpcAppShutdownRequest) *pb.RpcAppShutdownResponse { return nil } func (*UnimplementedClientCommandsServer) WalletCreate(req *pb.RpcWalletCreateRequest) *pb.RpcWalletCreateResponse { @@ -2037,6 +1940,9 @@ func (*UnimplementedClientCommandsServer) WorkspaceGetAll(req *pb.RpcWorkspaceGe func (*UnimplementedClientCommandsServer) WorkspaceSetIsHighlighted(req *pb.RpcWorkspaceSetIsHighlightedRequest) *pb.RpcWorkspaceSetIsHighlightedResponse { return nil } +func (*UnimplementedClientCommandsServer) WorkspaceExport(req *pb.RpcWorkspaceExportRequest) *pb.RpcWorkspaceExportResponse { + return nil +} func (*UnimplementedClientCommandsServer) AccountRecover(req *pb.RpcAccountRecoverRequest) *pb.RpcAccountRecoverResponse { return nil } @@ -2052,40 +1958,190 @@ func (*UnimplementedClientCommandsServer) AccountSelect(req *pb.RpcAccountSelect func (*UnimplementedClientCommandsServer) AccountStop(req *pb.RpcAccountStopRequest) *pb.RpcAccountStopResponse { return nil } +func (*UnimplementedClientCommandsServer) ObjectOpen(req *pb.RpcObjectOpenRequest) *pb.RpcObjectOpenResponse { + return nil +} +func (*UnimplementedClientCommandsServer) ObjectClose(req *pb.RpcObjectCloseRequest) *pb.RpcObjectCloseResponse { + return nil +} +func (*UnimplementedClientCommandsServer) ObjectShow(req *pb.RpcObjectShowRequest) *pb.RpcObjectShowResponse { + return nil +} +func (*UnimplementedClientCommandsServer) ObjectCreate(req *pb.RpcObjectCreateRequest) *pb.RpcObjectCreateResponse { + return nil +} +func (*UnimplementedClientCommandsServer) ObjectCreateSet(req *pb.RpcObjectCreateSetRequest) *pb.RpcObjectCreateSetResponse { + return nil +} +func (*UnimplementedClientCommandsServer) ObjectGraph(req *pb.RpcObjectGraphRequest) *pb.RpcObjectGraphResponse { + return nil +} +func (*UnimplementedClientCommandsServer) ObjectSearch(req *pb.RpcObjectSearchRequest) *pb.RpcObjectSearchResponse { + return nil +} +func (*UnimplementedClientCommandsServer) ObjectSearchSubscribe(req *pb.RpcObjectSearchSubscribeRequest) *pb.RpcObjectSearchSubscribeResponse { + return nil +} +func (*UnimplementedClientCommandsServer) ObjectSubscribeIds(req *pb.RpcObjectSubscribeIdsRequest) *pb.RpcObjectSubscribeIdsResponse { + return nil +} +func (*UnimplementedClientCommandsServer) ObjectSearchUnsubscribe(req *pb.RpcObjectSearchUnsubscribeRequest) *pb.RpcObjectSearchUnsubscribeResponse { + return nil +} +func (*UnimplementedClientCommandsServer) ObjectSetDetails(req *pb.RpcObjectSetDetailsRequest) *pb.RpcObjectSetDetailsResponse { + return nil +} +func (*UnimplementedClientCommandsServer) ObjectDuplicate(req *pb.RpcObjectDuplicateRequest) *pb.RpcObjectDuplicateResponse { + return nil +} +func (*UnimplementedClientCommandsServer) ObjectSetObjectType(req *pb.RpcObjectSetObjectTypeRequest) *pb.RpcObjectSetObjectTypeResponse { + return nil +} +func (*UnimplementedClientCommandsServer) ObjectSetLayout(req *pb.RpcObjectSetLayoutRequest) *pb.RpcObjectSetLayoutResponse { + return nil +} +func (*UnimplementedClientCommandsServer) ObjectSetIsFavorite(req *pb.RpcObjectSetIsFavoriteRequest) *pb.RpcObjectSetIsFavoriteResponse { + return nil +} +func (*UnimplementedClientCommandsServer) ObjectSetIsArchived(req *pb.RpcObjectSetIsArchivedRequest) *pb.RpcObjectSetIsArchivedResponse { + return nil +} +func (*UnimplementedClientCommandsServer) ObjectListDuplicate(req *pb.RpcObjectListDuplicateRequest) *pb.RpcObjectListDuplicateResponse { + return nil +} +func (*UnimplementedClientCommandsServer) ObjectListDelete(req *pb.RpcObjectListDeleteRequest) *pb.RpcObjectListDeleteResponse { + return nil +} +func (*UnimplementedClientCommandsServer) ObjectListSetIsArchived(req *pb.RpcObjectListSetIsArchivedRequest) *pb.RpcObjectListSetIsArchivedResponse { + return nil +} +func (*UnimplementedClientCommandsServer) ObjectListSetIsFavorite(req *pb.RpcObjectListSetIsFavoriteRequest) *pb.RpcObjectListSetIsFavoriteResponse { + return nil +} +func (*UnimplementedClientCommandsServer) ObjectApplyTemplate(req *pb.RpcObjectApplyTemplateRequest) *pb.RpcObjectApplyTemplateResponse { + return nil +} +func (*UnimplementedClientCommandsServer) ObjectToSet(req *pb.RpcObjectToSetRequest) *pb.RpcObjectToSetResponse { + return nil +} +func (*UnimplementedClientCommandsServer) ObjectAddWithObjectId(req *pb.RpcObjectAddWithObjectIdRequest) *pb.RpcObjectAddWithObjectIdResponse { + return nil +} +func (*UnimplementedClientCommandsServer) ObjectShareByLink(req *pb.RpcObjectShareByLinkRequest) *pb.RpcObjectShareByLinkResponse { + return nil +} +func (*UnimplementedClientCommandsServer) ObjectOpenBreadcrumbs(req *pb.RpcObjectOpenBreadcrumbsRequest) *pb.RpcObjectOpenBreadcrumbsResponse { + return nil +} +func (*UnimplementedClientCommandsServer) ObjectSetBreadcrumbs(req *pb.RpcObjectSetBreadcrumbsRequest) *pb.RpcObjectSetBreadcrumbsResponse { + return nil +} +func (*UnimplementedClientCommandsServer) ObjectUndo(req *pb.RpcObjectUndoRequest) *pb.RpcObjectUndoResponse { + return nil +} +func (*UnimplementedClientCommandsServer) ObjectRedo(req *pb.RpcObjectRedoRequest) *pb.RpcObjectRedoResponse { + return nil +} +func (*UnimplementedClientCommandsServer) ObjectImportMarkdown(req *pb.RpcObjectImportMarkdownRequest) *pb.RpcObjectImportMarkdownResponse { + return nil +} +func (*UnimplementedClientCommandsServer) ObjectListExport(req *pb.RpcObjectListExportRequest) *pb.RpcObjectListExportResponse { + return nil +} +func (*UnimplementedClientCommandsServer) ObjectRelationAdd(req *pb.RpcObjectRelationAddRequest) *pb.RpcObjectRelationAddResponse { + return nil +} +func (*UnimplementedClientCommandsServer) ObjectRelationUpdate(req *pb.RpcObjectRelationUpdateRequest) *pb.RpcObjectRelationUpdateResponse { + return nil +} +func (*UnimplementedClientCommandsServer) ObjectRelationDelete(req *pb.RpcObjectRelationDeleteRequest) *pb.RpcObjectRelationDeleteResponse { + return nil +} +func (*UnimplementedClientCommandsServer) ObjectRelationAddFeatured(req *pb.RpcObjectRelationAddFeaturedRequest) *pb.RpcObjectRelationAddFeaturedResponse { + return nil +} +func (*UnimplementedClientCommandsServer) ObjectRelationRemoveFeatured(req *pb.RpcObjectRelationRemoveFeaturedRequest) *pb.RpcObjectRelationRemoveFeaturedResponse { + return nil +} +func (*UnimplementedClientCommandsServer) ObjectRelationListAvailable(req *pb.RpcObjectRelationListAvailableRequest) *pb.RpcObjectRelationListAvailableResponse { + return nil +} +func (*UnimplementedClientCommandsServer) ObjectRelationOptionAdd(req *pb.RpcObjectRelationOptionAddRequest) *pb.RpcObjectRelationOptionAddResponse { + return nil +} +func (*UnimplementedClientCommandsServer) ObjectRelationOptionUpdate(req *pb.RpcObjectRelationOptionUpdateRequest) *pb.RpcObjectRelationOptionUpdateResponse { + return nil +} +func (*UnimplementedClientCommandsServer) ObjectRelationOptionDelete(req *pb.RpcObjectRelationOptionDeleteRequest) *pb.RpcObjectRelationOptionDeleteResponse { + return nil +} +func (*UnimplementedClientCommandsServer) ObjectTypeCreate(req *pb.RpcObjectTypeCreateRequest) *pb.RpcObjectTypeCreateResponse { + return nil +} +func (*UnimplementedClientCommandsServer) ObjectTypeList(req *pb.RpcObjectTypeListRequest) *pb.RpcObjectTypeListResponse { + return nil +} +func (*UnimplementedClientCommandsServer) ObjectTypeRelationList(req *pb.RpcObjectTypeRelationListRequest) *pb.RpcObjectTypeRelationListResponse { + return nil +} +func (*UnimplementedClientCommandsServer) ObjectTypeRelationAdd(req *pb.RpcObjectTypeRelationAddRequest) *pb.RpcObjectTypeRelationAddResponse { + return nil +} +func (*UnimplementedClientCommandsServer) ObjectTypeRelationUpdate(req *pb.RpcObjectTypeRelationUpdateRequest) *pb.RpcObjectTypeRelationUpdateResponse { + return nil +} +func (*UnimplementedClientCommandsServer) ObjectTypeRelationRemove(req *pb.RpcObjectTypeRelationRemoveRequest) *pb.RpcObjectTypeRelationRemoveResponse { + return nil +} +func (*UnimplementedClientCommandsServer) HistoryShowVersion(req *pb.RpcHistoryShowVersionRequest) *pb.RpcHistoryShowVersionResponse { + return nil +} +func (*UnimplementedClientCommandsServer) HistoryGetVersions(req *pb.RpcHistoryGetVersionsRequest) *pb.RpcHistoryGetVersionsResponse { + return nil +} +func (*UnimplementedClientCommandsServer) HistorySetVersion(req *pb.RpcHistorySetVersionRequest) *pb.RpcHistorySetVersionResponse { + return nil +} func (*UnimplementedClientCommandsServer) FileOffload(req *pb.RpcFileOffloadRequest) *pb.RpcFileOffloadResponse { return nil } func (*UnimplementedClientCommandsServer) FileListOffload(req *pb.RpcFileListOffloadRequest) *pb.RpcFileListOffloadResponse { return nil } -func (*UnimplementedClientCommandsServer) VersionGet(req *pb.RpcVersionGetRequest) *pb.RpcVersionGetResponse { +func (*UnimplementedClientCommandsServer) FileUpload(req *pb.RpcFileUploadRequest) *pb.RpcFileUploadResponse { return nil } -func (*UnimplementedClientCommandsServer) LogSend(req *pb.RpcLogSendRequest) *pb.RpcLogSendResponse { +func (*UnimplementedClientCommandsServer) FileDownload(req *pb.RpcFileDownloadRequest) *pb.RpcFileDownloadResponse { return nil } -func (*UnimplementedClientCommandsServer) ConfigGet(req *pb.RpcConfigGetRequest) *pb.RpcConfigGetResponse { +func (*UnimplementedClientCommandsServer) FileDrop(req *pb.RpcFileDropRequest) *pb.RpcFileDropResponse { return nil } -func (*UnimplementedClientCommandsServer) Shutdown(req *pb.RpcShutdownRequest) *pb.RpcShutdownResponse { +func (*UnimplementedClientCommandsServer) NavigationListObjects(req *pb.RpcNavigationListObjectsRequest) *pb.RpcNavigationListObjectsResponse { return nil } -func (*UnimplementedClientCommandsServer) SetDeviceState(req *pb.RpcDeviceStateRequest) *pb.RpcDeviceStateResponse { +func (*UnimplementedClientCommandsServer) NavigationGetObjectInfoWithLinks(req *pb.RpcNavigationGetObjectInfoWithLinksRequest) *pb.RpcNavigationGetObjectInfoWithLinksResponse { return nil } -func (*UnimplementedClientCommandsServer) ExternalDropFiles(req *pb.RpcExternalDropFilesRequest) *pb.RpcExternalDropFilesResponse { +func (*UnimplementedClientCommandsServer) TemplateCreateFromObject(req *pb.RpcTemplateCreateFromObjectRequest) *pb.RpcTemplateCreateFromObjectResponse { return nil } -func (*UnimplementedClientCommandsServer) ExternalDropContent(req *pb.RpcExternalDropContentRequest) *pb.RpcExternalDropContentResponse { +func (*UnimplementedClientCommandsServer) TemplateCreateFromObjectType(req *pb.RpcTemplateCreateFromObjectTypeRequest) *pb.RpcTemplateCreateFromObjectTypeResponse { + return nil +} +func (*UnimplementedClientCommandsServer) TemplateClone(req *pb.RpcTemplateCloneRequest) *pb.RpcTemplateCloneResponse { + return nil +} +func (*UnimplementedClientCommandsServer) TemplateExportAll(req *pb.RpcTemplateExportAllRequest) *pb.RpcTemplateExportAllResponse { return nil } func (*UnimplementedClientCommandsServer) LinkPreview(req *pb.RpcLinkPreviewRequest) *pb.RpcLinkPreviewResponse { return nil } -func (*UnimplementedClientCommandsServer) UploadFile(req *pb.RpcUploadFileRequest) *pb.RpcUploadFileResponse { +func (*UnimplementedClientCommandsServer) UnsplashSearch(req *pb.RpcUnsplashSearchRequest) *pb.RpcUnsplashSearchResponse { return nil } -func (*UnimplementedClientCommandsServer) DownloadFile(req *pb.RpcDownloadFileRequest) *pb.RpcDownloadFileResponse { +func (*UnimplementedClientCommandsServer) UnsplashDownload(req *pb.RpcUnsplashDownloadRequest) *pb.RpcUnsplashDownloadResponse { return nil } func (*UnimplementedClientCommandsServer) BlockUpload(req *pb.RpcBlockUploadRequest) *pb.RpcBlockUploadResponse { @@ -2094,114 +2150,9 @@ func (*UnimplementedClientCommandsServer) BlockUpload(req *pb.RpcBlockUploadRequ func (*UnimplementedClientCommandsServer) BlockReplace(req *pb.RpcBlockReplaceRequest) *pb.RpcBlockReplaceResponse { return nil } -func (*UnimplementedClientCommandsServer) BlockUpdateContent(req *pb.RpcBlockUpdateContentRequest) *pb.RpcBlockUpdateContentResponse { - return nil -} -func (*UnimplementedClientCommandsServer) BlockOpen(req *pb.RpcBlockOpenRequest) *pb.RpcBlockOpenResponse { - return nil -} -func (*UnimplementedClientCommandsServer) BlockShow(req *pb.RpcBlockShowRequest) *pb.RpcBlockShowResponse { - return nil -} -func (*UnimplementedClientCommandsServer) BlockGetPublicWebURL(req *pb.RpcBlockGetPublicWebURLRequest) *pb.RpcBlockGetPublicWebURLResponse { - return nil -} -func (*UnimplementedClientCommandsServer) BlockOpenBreadcrumbs(req *pb.RpcBlockOpenBreadcrumbsRequest) *pb.RpcBlockOpenBreadcrumbsResponse { - return nil -} -func (*UnimplementedClientCommandsServer) BlockSetBreadcrumbs(req *pb.RpcBlockSetBreadcrumbsRequest) *pb.RpcBlockSetBreadcrumbsResponse { - return nil -} func (*UnimplementedClientCommandsServer) BlockCreate(req *pb.RpcBlockCreateRequest) *pb.RpcBlockCreateResponse { return nil } -func (*UnimplementedClientCommandsServer) BlockCreatePage(req *pb.RpcBlockCreatePageRequest) *pb.RpcBlockCreatePageResponse { - return nil -} -func (*UnimplementedClientCommandsServer) BlockCreateSet(req *pb.RpcBlockCreateSetRequest) *pb.RpcBlockCreateSetResponse { - return nil -} -func (*UnimplementedClientCommandsServer) BlockUnlink(req *pb.RpcBlockUnlinkRequest) *pb.RpcBlockUnlinkResponse { - return nil -} -func (*UnimplementedClientCommandsServer) BlockClose(req *pb.RpcBlockCloseRequest) *pb.RpcBlockCloseResponse { - return nil -} -func (*UnimplementedClientCommandsServer) BlockDownload(req *pb.RpcBlockDownloadRequest) *pb.RpcBlockDownloadResponse { - return nil -} -func (*UnimplementedClientCommandsServer) BlockGetMarks(req *pb.RpcBlockGetMarksRequest) *pb.RpcBlockGetMarksResponse { - return nil -} -func (*UnimplementedClientCommandsServer) BlockUndo(req *pb.RpcBlockUndoRequest) *pb.RpcBlockUndoResponse { - return nil -} -func (*UnimplementedClientCommandsServer) BlockRedo(req *pb.RpcBlockRedoRequest) *pb.RpcBlockRedoResponse { - return nil -} -func (*UnimplementedClientCommandsServer) BlockSetFields(req *pb.RpcBlockSetFieldsRequest) *pb.RpcBlockSetFieldsResponse { - return nil -} -func (*UnimplementedClientCommandsServer) BlockSetRestrictions(req *pb.RpcBlockSetRestrictionsRequest) *pb.RpcBlockSetRestrictionsResponse { - return nil -} -func (*UnimplementedClientCommandsServer) BlockListMove(req *pb.RpcBlockListMoveRequest) *pb.RpcBlockListMoveResponse { - return nil -} -func (*UnimplementedClientCommandsServer) BlockListMoveToNewPage(req *pb.RpcBlockListMoveToNewPageRequest) *pb.RpcBlockListMoveToNewPageResponse { - return nil -} -func (*UnimplementedClientCommandsServer) BlockListConvertChildrenToPages(req *pb.RpcBlockListConvertChildrenToPagesRequest) *pb.RpcBlockListConvertChildrenToPagesResponse { - return nil -} -func (*UnimplementedClientCommandsServer) BlockListSetFields(req *pb.RpcBlockListSetFieldsRequest) *pb.RpcBlockListSetFieldsResponse { - return nil -} -func (*UnimplementedClientCommandsServer) BlockListSetTextStyle(req *pb.RpcBlockListSetTextStyleRequest) *pb.RpcBlockListSetTextStyleResponse { - return nil -} -func (*UnimplementedClientCommandsServer) BlockListDuplicate(req *pb.RpcBlockListDuplicateRequest) *pb.RpcBlockListDuplicateResponse { - return nil -} -func (*UnimplementedClientCommandsServer) BlockListSetBackgroundColor(req *pb.RpcBlockListSetBackgroundColorRequest) *pb.RpcBlockListSetBackgroundColorResponse { - return nil -} -func (*UnimplementedClientCommandsServer) BlockListSetAlign(req *pb.RpcBlockListSetAlignRequest) *pb.RpcBlockListSetAlignResponse { - return nil -} -func (*UnimplementedClientCommandsServer) BlockListSetDivStyle(req *pb.RpcBlockListSetDivStyleRequest) *pb.RpcBlockListSetDivStyleResponse { - return nil -} -func (*UnimplementedClientCommandsServer) BlockListSetFileStyle(req *pb.RpcBlockListSetFileStyleRequest) *pb.RpcBlockListSetFileStyleResponse { - return nil -} -func (*UnimplementedClientCommandsServer) BlockListTurnInto(req *pb.RpcBlockListTurnIntoRequest) *pb.RpcBlockListTurnIntoResponse { - return nil -} -func (*UnimplementedClientCommandsServer) BlockSetLatexText(req *pb.RpcBlockSetLatexTextRequest) *pb.RpcBlockSetLatexTextResponse { - return nil -} -func (*UnimplementedClientCommandsServer) BlockSetTextText(req *pb.RpcBlockSetTextTextRequest) *pb.RpcBlockSetTextTextResponse { - return nil -} -func (*UnimplementedClientCommandsServer) BlockSetTextColor(req *pb.RpcBlockSetTextColorRequest) *pb.RpcBlockSetTextColorResponse { - return nil -} -func (*UnimplementedClientCommandsServer) BlockListSetTextColor(req *pb.RpcBlockListSetTextColorRequest) *pb.RpcBlockListSetTextColorResponse { - return nil -} -func (*UnimplementedClientCommandsServer) BlockListSetTextMark(req *pb.RpcBlockListSetTextMarkRequest) *pb.RpcBlockListSetTextMarkResponse { - return nil -} -func (*UnimplementedClientCommandsServer) BlockSetTextStyle(req *pb.RpcBlockSetTextStyleRequest) *pb.RpcBlockSetTextStyleResponse { - return nil -} -func (*UnimplementedClientCommandsServer) BlockSetTextChecked(req *pb.RpcBlockSetTextCheckedRequest) *pb.RpcBlockSetTextCheckedResponse { - return nil -} -func (*UnimplementedClientCommandsServer) BlockSetTextIcon(req *pb.RpcBlockSetTextIconRequest) *pb.RpcBlockSetTextIconResponse { - return nil -} func (*UnimplementedClientCommandsServer) BlockSplit(req *pb.RpcBlockSplitRequest) *pb.RpcBlockSplitResponse { return nil } @@ -2217,43 +2168,76 @@ func (*UnimplementedClientCommandsServer) BlockPaste(req *pb.RpcBlockPasteReques func (*UnimplementedClientCommandsServer) BlockCut(req *pb.RpcBlockCutRequest) *pb.RpcBlockCutResponse { return nil } +func (*UnimplementedClientCommandsServer) BlockSetFields(req *pb.RpcBlockSetFieldsRequest) *pb.RpcBlockSetFieldsResponse { + return nil +} func (*UnimplementedClientCommandsServer) BlockExport(req *pb.RpcBlockExportRequest) *pb.RpcBlockExportResponse { return nil } -func (*UnimplementedClientCommandsServer) BlockImportMarkdown(req *pb.RpcBlockImportMarkdownRequest) *pb.RpcBlockImportMarkdownResponse { +func (*UnimplementedClientCommandsServer) BlockListDelete(req *pb.RpcBlockListDeleteRequest) *pb.RpcBlockListDeleteResponse { return nil } -func (*UnimplementedClientCommandsServer) BlockSetFileName(req *pb.RpcBlockSetFileNameRequest) *pb.RpcBlockSetFileNameResponse { +func (*UnimplementedClientCommandsServer) BlockListMoveToExistingObject(req *pb.RpcBlockListMoveToExistingObjectRequest) *pb.RpcBlockListMoveToExistingObjectResponse { return nil } -func (*UnimplementedClientCommandsServer) BlockSetImageName(req *pb.RpcBlockSetImageNameRequest) *pb.RpcBlockSetImageNameResponse { +func (*UnimplementedClientCommandsServer) BlockListMoveToNewObject(req *pb.RpcBlockListMoveToNewObjectRequest) *pb.RpcBlockListMoveToNewObjectResponse { return nil } -func (*UnimplementedClientCommandsServer) BlockSetImageWidth(req *pb.RpcBlockSetImageWidthRequest) *pb.RpcBlockSetImageWidthResponse { +func (*UnimplementedClientCommandsServer) BlockListConvertToObjects(req *pb.RpcBlockListConvertToObjectsRequest) *pb.RpcBlockListConvertToObjectsResponse { return nil } -func (*UnimplementedClientCommandsServer) BlockSetVideoName(req *pb.RpcBlockSetVideoNameRequest) *pb.RpcBlockSetVideoNameResponse { +func (*UnimplementedClientCommandsServer) BlockListSetFields(req *pb.RpcBlockListSetFieldsRequest) *pb.RpcBlockListSetFieldsResponse { return nil } -func (*UnimplementedClientCommandsServer) BlockSetVideoWidth(req *pb.RpcBlockSetVideoWidthRequest) *pb.RpcBlockSetVideoWidthResponse { +func (*UnimplementedClientCommandsServer) BlockListDuplicate(req *pb.RpcBlockListDuplicateRequest) *pb.RpcBlockListDuplicateResponse { return nil } -func (*UnimplementedClientCommandsServer) BlockSetLinkTargetBlockId(req *pb.RpcBlockSetLinkTargetBlockIdRequest) *pb.RpcBlockSetLinkTargetBlockIdResponse { +func (*UnimplementedClientCommandsServer) BlockListSetBackgroundColor(req *pb.RpcBlockListSetBackgroundColorRequest) *pb.RpcBlockListSetBackgroundColorResponse { return nil } -func (*UnimplementedClientCommandsServer) BlockBookmarkFetch(req *pb.RpcBlockBookmarkFetchRequest) *pb.RpcBlockBookmarkFetchResponse { +func (*UnimplementedClientCommandsServer) BlockListSetAlign(req *pb.RpcBlockListSetAlignRequest) *pb.RpcBlockListSetAlignResponse { return nil } -func (*UnimplementedClientCommandsServer) BlockBookmarkCreateAndFetch(req *pb.RpcBlockBookmarkCreateAndFetchRequest) *pb.RpcBlockBookmarkCreateAndFetchResponse { +func (*UnimplementedClientCommandsServer) BlockListTurnInto(req *pb.RpcBlockListTurnIntoRequest) *pb.RpcBlockListTurnIntoResponse { + return nil +} +func (*UnimplementedClientCommandsServer) BlockTextSetText(req *pb.RpcBlockTextSetTextRequest) *pb.RpcBlockTextSetTextResponse { + return nil +} +func (*UnimplementedClientCommandsServer) BlockTextSetColor(req *pb.RpcBlockTextSetColorRequest) *pb.RpcBlockTextSetColorResponse { + return nil +} +func (*UnimplementedClientCommandsServer) BlockTextSetStyle(req *pb.RpcBlockTextSetStyleRequest) *pb.RpcBlockTextSetStyleResponse { + return nil +} +func (*UnimplementedClientCommandsServer) BlockTextSetChecked(req *pb.RpcBlockTextSetCheckedRequest) *pb.RpcBlockTextSetCheckedResponse { + return nil +} +func (*UnimplementedClientCommandsServer) BlockTextSetIcon(req *pb.RpcBlockTextSetIconRequest) *pb.RpcBlockTextSetIconResponse { + return nil +} +func (*UnimplementedClientCommandsServer) BlockTextListSetColor(req *pb.RpcBlockTextListSetColorRequest) *pb.RpcBlockTextListSetColorResponse { + return nil +} +func (*UnimplementedClientCommandsServer) BlockTextListSetMark(req *pb.RpcBlockTextListSetMarkRequest) *pb.RpcBlockTextListSetMarkResponse { + return nil +} +func (*UnimplementedClientCommandsServer) BlockTextListSetStyle(req *pb.RpcBlockTextListSetStyleRequest) *pb.RpcBlockTextListSetStyleResponse { + return nil +} +func (*UnimplementedClientCommandsServer) BlockFileSetName(req *pb.RpcBlockFileSetNameRequest) *pb.RpcBlockFileSetNameResponse { + return nil +} +func (*UnimplementedClientCommandsServer) BlockImageSetName(req *pb.RpcBlockImageSetNameRequest) *pb.RpcBlockImageSetNameResponse { + return nil +} +func (*UnimplementedClientCommandsServer) BlockVideoSetName(req *pb.RpcBlockVideoSetNameRequest) *pb.RpcBlockVideoSetNameResponse { return nil } func (*UnimplementedClientCommandsServer) BlockFileCreateAndUpload(req *pb.RpcBlockFileCreateAndUploadRequest) *pb.RpcBlockFileCreateAndUploadResponse { return nil } -func (*UnimplementedClientCommandsServer) BlockRelationSetKey(req *pb.RpcBlockRelationSetKeyRequest) *pb.RpcBlockRelationSetKeyResponse { - return nil -} -func (*UnimplementedClientCommandsServer) BlockRelationAdd(req *pb.RpcBlockRelationAddRequest) *pb.RpcBlockRelationAddResponse { +func (*UnimplementedClientCommandsServer) BlockFileListSetStyle(req *pb.RpcBlockFileListSetStyleRequest) *pb.RpcBlockFileListSetStyleResponse { return nil } func (*UnimplementedClientCommandsServer) BlockDataviewViewCreate(req *pb.RpcBlockDataviewViewCreateRequest) *pb.RpcBlockDataviewViewCreateResponse { @@ -2304,157 +2288,34 @@ func (*UnimplementedClientCommandsServer) BlockDataviewRecordRelationOptionUpdat func (*UnimplementedClientCommandsServer) BlockDataviewRecordRelationOptionDelete(req *pb.RpcBlockDataviewRecordRelationOptionDeleteRequest) *pb.RpcBlockDataviewRecordRelationOptionDeleteResponse { return nil } -func (*UnimplementedClientCommandsServer) BlockObjectTypeSet(req *pb.RpcBlockObjectTypeSetRequest) *pb.RpcBlockObjectTypeSetResponse { +func (*UnimplementedClientCommandsServer) BlockLinkCreateWithObject(req *pb.RpcBlockLinkCreateWithObjectRequest) *pb.RpcBlockLinkCreateWithObjectResponse { return nil } -func (*UnimplementedClientCommandsServer) NavigationListObjects(req *pb.RpcNavigationListObjectsRequest) *pb.RpcNavigationListObjectsResponse { +func (*UnimplementedClientCommandsServer) BlockLinkListSetAppearance(req *pb.RpcBlockLinkListSetAppearanceRequest) *pb.RpcBlockLinkListSetAppearanceResponse { return nil } -func (*UnimplementedClientCommandsServer) NavigationGetObjectInfoWithLinks(req *pb.RpcNavigationGetObjectInfoWithLinksRequest) *pb.RpcNavigationGetObjectInfoWithLinksResponse { +func (*UnimplementedClientCommandsServer) BlockBookmarkFetch(req *pb.RpcBlockBookmarkFetchRequest) *pb.RpcBlockBookmarkFetchResponse { return nil } -func (*UnimplementedClientCommandsServer) ObjectGraph(req *pb.RpcObjectGraphRequest) *pb.RpcObjectGraphResponse { +func (*UnimplementedClientCommandsServer) BlockBookmarkCreateAndFetch(req *pb.RpcBlockBookmarkCreateAndFetchRequest) *pb.RpcBlockBookmarkCreateAndFetchResponse { return nil } -func (*UnimplementedClientCommandsServer) ObjectSearch(req *pb.RpcObjectSearchRequest) *pb.RpcObjectSearchResponse { +func (*UnimplementedClientCommandsServer) BlockRelationSetKey(req *pb.RpcBlockRelationSetKeyRequest) *pb.RpcBlockRelationSetKeyResponse { return nil } -func (*UnimplementedClientCommandsServer) ObjectSearchSubscribe(req *pb.RpcObjectSearchSubscribeRequest) *pb.RpcObjectSearchSubscribeResponse { +func (*UnimplementedClientCommandsServer) BlockRelationAdd(req *pb.RpcBlockRelationAddRequest) *pb.RpcBlockRelationAddResponse { return nil } -func (*UnimplementedClientCommandsServer) ObjectIdsSubscribe(req *pb.RpcObjectIdsSubscribeRequest) *pb.RpcObjectIdsSubscribeResponse { +func (*UnimplementedClientCommandsServer) BlockDivListSetStyle(req *pb.RpcBlockDivListSetStyleRequest) *pb.RpcBlockDivListSetStyleResponse { return nil } -func (*UnimplementedClientCommandsServer) ObjectSearchUnsubscribe(req *pb.RpcObjectSearchUnsubscribeRequest) *pb.RpcObjectSearchUnsubscribeResponse { - return nil -} -func (*UnimplementedClientCommandsServer) ObjectRelationAdd(req *pb.RpcObjectRelationAddRequest) *pb.RpcObjectRelationAddResponse { - return nil -} -func (*UnimplementedClientCommandsServer) ObjectRelationUpdate(req *pb.RpcObjectRelationUpdateRequest) *pb.RpcObjectRelationUpdateResponse { - return nil -} -func (*UnimplementedClientCommandsServer) ObjectRelationDelete(req *pb.RpcObjectRelationDeleteRequest) *pb.RpcObjectRelationDeleteResponse { - return nil -} -func (*UnimplementedClientCommandsServer) ObjectRelationOptionAdd(req *pb.RpcObjectRelationOptionAddRequest) *pb.RpcObjectRelationOptionAddResponse { - return nil -} -func (*UnimplementedClientCommandsServer) ObjectRelationOptionUpdate(req *pb.RpcObjectRelationOptionUpdateRequest) *pb.RpcObjectRelationOptionUpdateResponse { - return nil -} -func (*UnimplementedClientCommandsServer) ObjectRelationOptionDelete(req *pb.RpcObjectRelationOptionDeleteRequest) *pb.RpcObjectRelationOptionDeleteResponse { - return nil -} -func (*UnimplementedClientCommandsServer) ObjectRelationListAvailable(req *pb.RpcObjectRelationListAvailableRequest) *pb.RpcObjectRelationListAvailableResponse { - return nil -} -func (*UnimplementedClientCommandsServer) ObjectSetLayout(req *pb.RpcObjectSetLayoutRequest) *pb.RpcObjectSetLayoutResponse { - return nil -} -func (*UnimplementedClientCommandsServer) ObjectFeaturedRelationAdd(req *pb.RpcObjectFeaturedRelationAddRequest) *pb.RpcObjectFeaturedRelationAddResponse { - return nil -} -func (*UnimplementedClientCommandsServer) ObjectFeaturedRelationRemove(req *pb.RpcObjectFeaturedRelationRemoveRequest) *pb.RpcObjectFeaturedRelationRemoveResponse { - return nil -} -func (*UnimplementedClientCommandsServer) ObjectSetIsFavorite(req *pb.RpcObjectSetIsFavoriteRequest) *pb.RpcObjectSetIsFavoriteResponse { - return nil -} -func (*UnimplementedClientCommandsServer) ObjectSetIsArchived(req *pb.RpcObjectSetIsArchivedRequest) *pb.RpcObjectSetIsArchivedResponse { - return nil -} -func (*UnimplementedClientCommandsServer) ObjectToSet(req *pb.RpcObjectToSetRequest) *pb.RpcObjectToSetResponse { - return nil -} -func (*UnimplementedClientCommandsServer) ObjectListDuplicate(req *pb.RpcObjectListDuplicateRequest) *pb.RpcObjectListDuplicateResponse { - return nil -} -func (*UnimplementedClientCommandsServer) ObjectListDelete(req *pb.RpcObjectListDeleteRequest) *pb.RpcObjectListDeleteResponse { - return nil -} -func (*UnimplementedClientCommandsServer) ObjectListSetIsArchived(req *pb.RpcObjectListSetIsArchivedRequest) *pb.RpcObjectListSetIsArchivedResponse { - return nil -} -func (*UnimplementedClientCommandsServer) ObjectListSetIsFavorite(req *pb.RpcObjectListSetIsFavoriteRequest) *pb.RpcObjectListSetIsFavoriteResponse { - return nil -} -func (*UnimplementedClientCommandsServer) BlockSetDetails(req *pb.RpcBlockSetDetailsRequest) *pb.RpcBlockSetDetailsResponse { - return nil -} -func (*UnimplementedClientCommandsServer) PageCreate(req *pb.RpcPageCreateRequest) *pb.RpcPageCreateResponse { - return nil -} -func (*UnimplementedClientCommandsServer) SetCreate(req *pb.RpcSetCreateRequest) *pb.RpcSetCreateResponse { - return nil -} -func (*UnimplementedClientCommandsServer) MetricsSetParameters(req *pb.RpcMetricsSetParametersRequest) *pb.RpcMetricsSetParametersResponse { - return nil -} -func (*UnimplementedClientCommandsServer) ObjectTypeCreate(req *pb.RpcObjectTypeCreateRequest) *pb.RpcObjectTypeCreateResponse { - return nil -} -func (*UnimplementedClientCommandsServer) ObjectTypeList(req *pb.RpcObjectTypeListRequest) *pb.RpcObjectTypeListResponse { - return nil -} -func (*UnimplementedClientCommandsServer) ObjectTypeRelationList(req *pb.RpcObjectTypeRelationListRequest) *pb.RpcObjectTypeRelationListResponse { - return nil -} -func (*UnimplementedClientCommandsServer) ObjectTypeRelationAdd(req *pb.RpcObjectTypeRelationAddRequest) *pb.RpcObjectTypeRelationAddResponse { - return nil -} -func (*UnimplementedClientCommandsServer) ObjectTypeRelationUpdate(req *pb.RpcObjectTypeRelationUpdateRequest) *pb.RpcObjectTypeRelationUpdateResponse { - return nil -} -func (*UnimplementedClientCommandsServer) ObjectTypeRelationRemove(req *pb.RpcObjectTypeRelationRemoveRequest) *pb.RpcObjectTypeRelationRemoveResponse { - return nil -} -func (*UnimplementedClientCommandsServer) Ping(req *pb.RpcPingRequest) *pb.RpcPingResponse { +func (*UnimplementedClientCommandsServer) BlockLatexSetText(req *pb.RpcBlockLatexSetTextRequest) *pb.RpcBlockLatexSetTextResponse { return nil } func (*UnimplementedClientCommandsServer) ProcessCancel(req *pb.RpcProcessCancelRequest) *pb.RpcProcessCancelResponse { return nil } -func (*UnimplementedClientCommandsServer) HistoryShow(req *pb.RpcHistoryShowRequest) *pb.RpcHistoryShowResponse { - return nil -} -func (*UnimplementedClientCommandsServer) HistoryVersions(req *pb.RpcHistoryVersionsRequest) *pb.RpcHistoryVersionsResponse { - return nil -} -func (*UnimplementedClientCommandsServer) HistorySetVersion(req *pb.RpcHistorySetVersionRequest) *pb.RpcHistorySetVersionResponse { - return nil -} -func (*UnimplementedClientCommandsServer) Export(req *pb.RpcExportRequest) *pb.RpcExportResponse { - return nil -} -func (*UnimplementedClientCommandsServer) ExportWorkspace(req *pb.RpcExportWorkspaceRequest) *pb.RpcExportWorkspaceResponse { - return nil -} -func (*UnimplementedClientCommandsServer) ExportTemplates(req *pb.RpcExportTemplatesRequest) *pb.RpcExportTemplatesResponse { - return nil -} -func (*UnimplementedClientCommandsServer) ExportLocalstore(req *pb.RpcExportLocalstoreRequest) *pb.RpcExportLocalstoreResponse { - return nil -} -func (*UnimplementedClientCommandsServer) MakeTemplate(req *pb.RpcMakeTemplateRequest) *pb.RpcMakeTemplateResponse { - return nil -} -func (*UnimplementedClientCommandsServer) MakeTemplateByObjectType(req *pb.RpcMakeTemplateByObjectTypeRequest) *pb.RpcMakeTemplateByObjectTypeResponse { - return nil -} -func (*UnimplementedClientCommandsServer) CloneTemplate(req *pb.RpcCloneTemplateRequest) *pb.RpcCloneTemplateResponse { - return nil -} -func (*UnimplementedClientCommandsServer) ObjectDuplicate(req *pb.RpcObjectDuplicateRequest) *pb.RpcObjectDuplicateResponse { - return nil -} -func (*UnimplementedClientCommandsServer) UnsplashSearch(req *pb.RpcUnsplashSearchRequest) *pb.RpcUnsplashSearchResponse { - return nil -} -func (*UnimplementedClientCommandsServer) UnsplashDownload(req *pb.RpcUnsplashDownloadRequest) *pb.RpcUnsplashDownloadResponse { - return nil -} -func (*UnimplementedClientCommandsServer) ApplyTemplate(req *pb.RpcApplyTemplateRequest) *pb.RpcApplyTemplateResponse { +func (*UnimplementedClientCommandsServer) LogSend(req *pb.RpcLogSendRequest) *pb.RpcLogSendResponse { return nil } func (*UnimplementedClientCommandsServer) DebugSync(req *pb.RpcDebugSyncRequest) *pb.RpcDebugSyncResponse { @@ -2466,6 +2327,15 @@ func (*UnimplementedClientCommandsServer) DebugThread(req *pb.RpcDebugThreadRequ func (*UnimplementedClientCommandsServer) DebugTree(req *pb.RpcDebugTreeRequest) *pb.RpcDebugTreeResponse { return nil } +func (*UnimplementedClientCommandsServer) DebugExportLocalstore(req *pb.RpcDebugExportLocalstoreRequest) *pb.RpcDebugExportLocalstoreResponse { + return nil +} +func (*UnimplementedClientCommandsServer) DebugPing(req *pb.RpcDebugPingRequest) *pb.RpcDebugPingResponse { + return nil +} +func (*UnimplementedClientCommandsServer) MetricsSetParameters(req *pb.RpcMetricsSetParametersRequest) *pb.RpcMetricsSetParametersResponse { + return nil +} func (*UnimplementedClientCommandsServer) ListenEvents(req *pb.Empty, srv ClientCommands_ListenEventsServer) { return } @@ -2474,38 +2344,56 @@ func RegisterClientCommandsServer(s *grpc.Server, srv ClientCommandsServer) { s.RegisterService(&_ClientCommands_serviceDesc, srv) } -func _ClientCommands_ObjectAddWithObjectId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcObjectAddWithObjectIdRequest) +func _ClientCommands_AppGetVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcAppGetVersionRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ClientCommandsServer).ObjectAddWithObjectId(in), nil + return srv.(ClientCommandsServer).AppGetVersion(in), nil } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/anytype.ClientCommands/ObjectAddWithObjectId", + FullMethod: "/anytype.ClientCommands/AppGetVersion", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).ObjectAddWithObjectId(req.(*pb.RpcObjectAddWithObjectIdRequest)), nil + return srv.(ClientCommandsServer).AppGetVersion(req.(*pb.RpcAppGetVersionRequest)), nil } return interceptor(ctx, in, info, handler) } -func _ClientCommands_ObjectShareByLink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcObjectShareByLinkRequest) +func _ClientCommands_AppSetDeviceState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcAppSetDeviceStateRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ClientCommandsServer).ObjectShareByLink(in), nil + return srv.(ClientCommandsServer).AppSetDeviceState(in), nil } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/anytype.ClientCommands/ObjectShareByLink", + FullMethod: "/anytype.ClientCommands/AppSetDeviceState", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).ObjectShareByLink(req.(*pb.RpcObjectShareByLinkRequest)), nil + return srv.(ClientCommandsServer).AppSetDeviceState(req.(*pb.RpcAppSetDeviceStateRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_AppShutdown_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcAppShutdownRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).AppShutdown(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/AppShutdown", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).AppShutdown(req.(*pb.RpcAppShutdownRequest)), nil } return interceptor(ctx, in, info, handler) } @@ -2654,6 +2542,24 @@ func _ClientCommands_WorkspaceSetIsHighlighted_Handler(srv interface{}, ctx cont return interceptor(ctx, in, info, handler) } +func _ClientCommands_WorkspaceExport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcWorkspaceExportRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).WorkspaceExport(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/WorkspaceExport", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).WorkspaceExport(req.(*pb.RpcWorkspaceExportRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + func _ClientCommands_AccountRecover_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(pb.RpcAccountRecoverRequest) if err := dec(in); err != nil { @@ -2744,6 +2650,870 @@ func _ClientCommands_AccountStop_Handler(srv interface{}, ctx context.Context, d return interceptor(ctx, in, info, handler) } +func _ClientCommands_ObjectOpen_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcObjectOpenRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).ObjectOpen(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/ObjectOpen", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).ObjectOpen(req.(*pb.RpcObjectOpenRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_ObjectClose_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcObjectCloseRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).ObjectClose(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/ObjectClose", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).ObjectClose(req.(*pb.RpcObjectCloseRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_ObjectShow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcObjectShowRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).ObjectShow(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/ObjectShow", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).ObjectShow(req.(*pb.RpcObjectShowRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_ObjectCreate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcObjectCreateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).ObjectCreate(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/ObjectCreate", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).ObjectCreate(req.(*pb.RpcObjectCreateRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_ObjectCreateSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcObjectCreateSetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).ObjectCreateSet(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/ObjectCreateSet", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).ObjectCreateSet(req.(*pb.RpcObjectCreateSetRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_ObjectGraph_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcObjectGraphRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).ObjectGraph(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/ObjectGraph", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).ObjectGraph(req.(*pb.RpcObjectGraphRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_ObjectSearch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcObjectSearchRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).ObjectSearch(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/ObjectSearch", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).ObjectSearch(req.(*pb.RpcObjectSearchRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_ObjectSearchSubscribe_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcObjectSearchSubscribeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).ObjectSearchSubscribe(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/ObjectSearchSubscribe", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).ObjectSearchSubscribe(req.(*pb.RpcObjectSearchSubscribeRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_ObjectSubscribeIds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcObjectSubscribeIdsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).ObjectSubscribeIds(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/ObjectSubscribeIds", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).ObjectSubscribeIds(req.(*pb.RpcObjectSubscribeIdsRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_ObjectSearchUnsubscribe_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcObjectSearchUnsubscribeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).ObjectSearchUnsubscribe(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/ObjectSearchUnsubscribe", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).ObjectSearchUnsubscribe(req.(*pb.RpcObjectSearchUnsubscribeRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_ObjectSetDetails_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcObjectSetDetailsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).ObjectSetDetails(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/ObjectSetDetails", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).ObjectSetDetails(req.(*pb.RpcObjectSetDetailsRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_ObjectDuplicate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcObjectDuplicateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).ObjectDuplicate(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/ObjectDuplicate", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).ObjectDuplicate(req.(*pb.RpcObjectDuplicateRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_ObjectSetObjectType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcObjectSetObjectTypeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).ObjectSetObjectType(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/ObjectSetObjectType", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).ObjectSetObjectType(req.(*pb.RpcObjectSetObjectTypeRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_ObjectSetLayout_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcObjectSetLayoutRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).ObjectSetLayout(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/ObjectSetLayout", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).ObjectSetLayout(req.(*pb.RpcObjectSetLayoutRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_ObjectSetIsFavorite_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcObjectSetIsFavoriteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).ObjectSetIsFavorite(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/ObjectSetIsFavorite", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).ObjectSetIsFavorite(req.(*pb.RpcObjectSetIsFavoriteRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_ObjectSetIsArchived_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcObjectSetIsArchivedRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).ObjectSetIsArchived(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/ObjectSetIsArchived", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).ObjectSetIsArchived(req.(*pb.RpcObjectSetIsArchivedRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_ObjectListDuplicate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcObjectListDuplicateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).ObjectListDuplicate(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/ObjectListDuplicate", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).ObjectListDuplicate(req.(*pb.RpcObjectListDuplicateRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_ObjectListDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcObjectListDeleteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).ObjectListDelete(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/ObjectListDelete", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).ObjectListDelete(req.(*pb.RpcObjectListDeleteRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_ObjectListSetIsArchived_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcObjectListSetIsArchivedRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).ObjectListSetIsArchived(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/ObjectListSetIsArchived", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).ObjectListSetIsArchived(req.(*pb.RpcObjectListSetIsArchivedRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_ObjectListSetIsFavorite_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcObjectListSetIsFavoriteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).ObjectListSetIsFavorite(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/ObjectListSetIsFavorite", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).ObjectListSetIsFavorite(req.(*pb.RpcObjectListSetIsFavoriteRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_ObjectApplyTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcObjectApplyTemplateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).ObjectApplyTemplate(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/ObjectApplyTemplate", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).ObjectApplyTemplate(req.(*pb.RpcObjectApplyTemplateRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_ObjectToSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcObjectToSetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).ObjectToSet(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/ObjectToSet", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).ObjectToSet(req.(*pb.RpcObjectToSetRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_ObjectAddWithObjectId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcObjectAddWithObjectIdRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).ObjectAddWithObjectId(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/ObjectAddWithObjectId", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).ObjectAddWithObjectId(req.(*pb.RpcObjectAddWithObjectIdRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_ObjectShareByLink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcObjectShareByLinkRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).ObjectShareByLink(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/ObjectShareByLink", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).ObjectShareByLink(req.(*pb.RpcObjectShareByLinkRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_ObjectOpenBreadcrumbs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcObjectOpenBreadcrumbsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).ObjectOpenBreadcrumbs(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/ObjectOpenBreadcrumbs", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).ObjectOpenBreadcrumbs(req.(*pb.RpcObjectOpenBreadcrumbsRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_ObjectSetBreadcrumbs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcObjectSetBreadcrumbsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).ObjectSetBreadcrumbs(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/ObjectSetBreadcrumbs", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).ObjectSetBreadcrumbs(req.(*pb.RpcObjectSetBreadcrumbsRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_ObjectUndo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcObjectUndoRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).ObjectUndo(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/ObjectUndo", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).ObjectUndo(req.(*pb.RpcObjectUndoRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_ObjectRedo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcObjectRedoRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).ObjectRedo(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/ObjectRedo", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).ObjectRedo(req.(*pb.RpcObjectRedoRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_ObjectImportMarkdown_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcObjectImportMarkdownRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).ObjectImportMarkdown(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/ObjectImportMarkdown", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).ObjectImportMarkdown(req.(*pb.RpcObjectImportMarkdownRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_ObjectListExport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcObjectListExportRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).ObjectListExport(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/ObjectListExport", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).ObjectListExport(req.(*pb.RpcObjectListExportRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_ObjectRelationAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcObjectRelationAddRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).ObjectRelationAdd(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/ObjectRelationAdd", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).ObjectRelationAdd(req.(*pb.RpcObjectRelationAddRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_ObjectRelationUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcObjectRelationUpdateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).ObjectRelationUpdate(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/ObjectRelationUpdate", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).ObjectRelationUpdate(req.(*pb.RpcObjectRelationUpdateRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_ObjectRelationDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcObjectRelationDeleteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).ObjectRelationDelete(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/ObjectRelationDelete", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).ObjectRelationDelete(req.(*pb.RpcObjectRelationDeleteRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_ObjectRelationAddFeatured_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcObjectRelationAddFeaturedRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).ObjectRelationAddFeatured(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/ObjectRelationAddFeatured", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).ObjectRelationAddFeatured(req.(*pb.RpcObjectRelationAddFeaturedRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_ObjectRelationRemoveFeatured_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcObjectRelationRemoveFeaturedRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).ObjectRelationRemoveFeatured(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/ObjectRelationRemoveFeatured", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).ObjectRelationRemoveFeatured(req.(*pb.RpcObjectRelationRemoveFeaturedRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_ObjectRelationListAvailable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcObjectRelationListAvailableRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).ObjectRelationListAvailable(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/ObjectRelationListAvailable", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).ObjectRelationListAvailable(req.(*pb.RpcObjectRelationListAvailableRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_ObjectRelationOptionAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcObjectRelationOptionAddRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).ObjectRelationOptionAdd(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/ObjectRelationOptionAdd", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).ObjectRelationOptionAdd(req.(*pb.RpcObjectRelationOptionAddRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_ObjectRelationOptionUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcObjectRelationOptionUpdateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).ObjectRelationOptionUpdate(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/ObjectRelationOptionUpdate", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).ObjectRelationOptionUpdate(req.(*pb.RpcObjectRelationOptionUpdateRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_ObjectRelationOptionDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcObjectRelationOptionDeleteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).ObjectRelationOptionDelete(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/ObjectRelationOptionDelete", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).ObjectRelationOptionDelete(req.(*pb.RpcObjectRelationOptionDeleteRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_ObjectTypeCreate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcObjectTypeCreateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).ObjectTypeCreate(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/ObjectTypeCreate", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).ObjectTypeCreate(req.(*pb.RpcObjectTypeCreateRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_ObjectTypeList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcObjectTypeListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).ObjectTypeList(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/ObjectTypeList", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).ObjectTypeList(req.(*pb.RpcObjectTypeListRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_ObjectTypeRelationList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcObjectTypeRelationListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).ObjectTypeRelationList(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/ObjectTypeRelationList", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).ObjectTypeRelationList(req.(*pb.RpcObjectTypeRelationListRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_ObjectTypeRelationAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcObjectTypeRelationAddRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).ObjectTypeRelationAdd(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/ObjectTypeRelationAdd", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).ObjectTypeRelationAdd(req.(*pb.RpcObjectTypeRelationAddRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_ObjectTypeRelationUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcObjectTypeRelationUpdateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).ObjectTypeRelationUpdate(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/ObjectTypeRelationUpdate", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).ObjectTypeRelationUpdate(req.(*pb.RpcObjectTypeRelationUpdateRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_ObjectTypeRelationRemove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcObjectTypeRelationRemoveRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).ObjectTypeRelationRemove(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/ObjectTypeRelationRemove", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).ObjectTypeRelationRemove(req.(*pb.RpcObjectTypeRelationRemoveRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_HistoryShowVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcHistoryShowVersionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).HistoryShowVersion(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/HistoryShowVersion", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).HistoryShowVersion(req.(*pb.RpcHistoryShowVersionRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_HistoryGetVersions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcHistoryGetVersionsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).HistoryGetVersions(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/HistoryGetVersions", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).HistoryGetVersions(req.(*pb.RpcHistoryGetVersionsRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_HistorySetVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcHistorySetVersionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).HistorySetVersion(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/HistorySetVersion", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).HistorySetVersion(req.(*pb.RpcHistorySetVersionRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + func _ClientCommands_FileOffload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(pb.RpcFileOffloadRequest) if err := dec(in); err != nil { @@ -2780,128 +3550,164 @@ func _ClientCommands_FileListOffload_Handler(srv interface{}, ctx context.Contex return interceptor(ctx, in, info, handler) } -func _ClientCommands_VersionGet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcVersionGetRequest) +func _ClientCommands_FileUpload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcFileUploadRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ClientCommandsServer).VersionGet(in), nil + return srv.(ClientCommandsServer).FileUpload(in), nil } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/anytype.ClientCommands/VersionGet", + FullMethod: "/anytype.ClientCommands/FileUpload", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).VersionGet(req.(*pb.RpcVersionGetRequest)), nil + return srv.(ClientCommandsServer).FileUpload(req.(*pb.RpcFileUploadRequest)), nil } return interceptor(ctx, in, info, handler) } -func _ClientCommands_LogSend_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcLogSendRequest) +func _ClientCommands_FileDownload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcFileDownloadRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ClientCommandsServer).LogSend(in), nil + return srv.(ClientCommandsServer).FileDownload(in), nil } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/anytype.ClientCommands/LogSend", + FullMethod: "/anytype.ClientCommands/FileDownload", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).LogSend(req.(*pb.RpcLogSendRequest)), nil + return srv.(ClientCommandsServer).FileDownload(req.(*pb.RpcFileDownloadRequest)), nil } return interceptor(ctx, in, info, handler) } -func _ClientCommands_ConfigGet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcConfigGetRequest) +func _ClientCommands_FileDrop_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcFileDropRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ClientCommandsServer).ConfigGet(in), nil + return srv.(ClientCommandsServer).FileDrop(in), nil } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/anytype.ClientCommands/ConfigGet", + FullMethod: "/anytype.ClientCommands/FileDrop", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).ConfigGet(req.(*pb.RpcConfigGetRequest)), nil + return srv.(ClientCommandsServer).FileDrop(req.(*pb.RpcFileDropRequest)), nil } return interceptor(ctx, in, info, handler) } -func _ClientCommands_Shutdown_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcShutdownRequest) +func _ClientCommands_NavigationListObjects_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcNavigationListObjectsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ClientCommandsServer).Shutdown(in), nil + return srv.(ClientCommandsServer).NavigationListObjects(in), nil } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/anytype.ClientCommands/Shutdown", + FullMethod: "/anytype.ClientCommands/NavigationListObjects", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).Shutdown(req.(*pb.RpcShutdownRequest)), nil + return srv.(ClientCommandsServer).NavigationListObjects(req.(*pb.RpcNavigationListObjectsRequest)), nil } return interceptor(ctx, in, info, handler) } -func _ClientCommands_SetDeviceState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcDeviceStateRequest) +func _ClientCommands_NavigationGetObjectInfoWithLinks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcNavigationGetObjectInfoWithLinksRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ClientCommandsServer).SetDeviceState(in), nil + return srv.(ClientCommandsServer).NavigationGetObjectInfoWithLinks(in), nil } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/anytype.ClientCommands/SetDeviceState", + FullMethod: "/anytype.ClientCommands/NavigationGetObjectInfoWithLinks", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).SetDeviceState(req.(*pb.RpcDeviceStateRequest)), nil + return srv.(ClientCommandsServer).NavigationGetObjectInfoWithLinks(req.(*pb.RpcNavigationGetObjectInfoWithLinksRequest)), nil } return interceptor(ctx, in, info, handler) } -func _ClientCommands_ExternalDropFiles_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcExternalDropFilesRequest) +func _ClientCommands_TemplateCreateFromObject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcTemplateCreateFromObjectRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ClientCommandsServer).ExternalDropFiles(in), nil + return srv.(ClientCommandsServer).TemplateCreateFromObject(in), nil } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/anytype.ClientCommands/ExternalDropFiles", + FullMethod: "/anytype.ClientCommands/TemplateCreateFromObject", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).ExternalDropFiles(req.(*pb.RpcExternalDropFilesRequest)), nil + return srv.(ClientCommandsServer).TemplateCreateFromObject(req.(*pb.RpcTemplateCreateFromObjectRequest)), nil } return interceptor(ctx, in, info, handler) } -func _ClientCommands_ExternalDropContent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcExternalDropContentRequest) +func _ClientCommands_TemplateCreateFromObjectType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcTemplateCreateFromObjectTypeRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ClientCommandsServer).ExternalDropContent(in), nil + return srv.(ClientCommandsServer).TemplateCreateFromObjectType(in), nil } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/anytype.ClientCommands/ExternalDropContent", + FullMethod: "/anytype.ClientCommands/TemplateCreateFromObjectType", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).ExternalDropContent(req.(*pb.RpcExternalDropContentRequest)), nil + return srv.(ClientCommandsServer).TemplateCreateFromObjectType(req.(*pb.RpcTemplateCreateFromObjectTypeRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_TemplateClone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcTemplateCloneRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).TemplateClone(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/TemplateClone", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).TemplateClone(req.(*pb.RpcTemplateCloneRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_TemplateExportAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcTemplateExportAllRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).TemplateExportAll(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/TemplateExportAll", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).TemplateExportAll(req.(*pb.RpcTemplateExportAllRequest)), nil } return interceptor(ctx, in, info, handler) } @@ -2924,38 +3730,38 @@ func _ClientCommands_LinkPreview_Handler(srv interface{}, ctx context.Context, d return interceptor(ctx, in, info, handler) } -func _ClientCommands_UploadFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcUploadFileRequest) +func _ClientCommands_UnsplashSearch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcUnsplashSearchRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ClientCommandsServer).UploadFile(in), nil + return srv.(ClientCommandsServer).UnsplashSearch(in), nil } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/anytype.ClientCommands/UploadFile", + FullMethod: "/anytype.ClientCommands/UnsplashSearch", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).UploadFile(req.(*pb.RpcUploadFileRequest)), nil + return srv.(ClientCommandsServer).UnsplashSearch(req.(*pb.RpcUnsplashSearchRequest)), nil } return interceptor(ctx, in, info, handler) } -func _ClientCommands_DownloadFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcDownloadFileRequest) +func _ClientCommands_UnsplashDownload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcUnsplashDownloadRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ClientCommandsServer).DownloadFile(in), nil + return srv.(ClientCommandsServer).UnsplashDownload(in), nil } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/anytype.ClientCommands/DownloadFile", + FullMethod: "/anytype.ClientCommands/UnsplashDownload", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).DownloadFile(req.(*pb.RpcDownloadFileRequest)), nil + return srv.(ClientCommandsServer).UnsplashDownload(req.(*pb.RpcUnsplashDownloadRequest)), nil } return interceptor(ctx, in, info, handler) } @@ -2996,114 +3802,6 @@ func _ClientCommands_BlockReplace_Handler(srv interface{}, ctx context.Context, return interceptor(ctx, in, info, handler) } -func _ClientCommands_BlockUpdateContent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockUpdateContentRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).BlockUpdateContent(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/BlockUpdateContent", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockUpdateContent(req.(*pb.RpcBlockUpdateContentRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_BlockOpen_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockOpenRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).BlockOpen(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/BlockOpen", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockOpen(req.(*pb.RpcBlockOpenRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_BlockShow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockShowRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).BlockShow(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/BlockShow", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockShow(req.(*pb.RpcBlockShowRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_BlockGetPublicWebURL_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockGetPublicWebURLRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).BlockGetPublicWebURL(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/BlockGetPublicWebURL", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockGetPublicWebURL(req.(*pb.RpcBlockGetPublicWebURLRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_BlockOpenBreadcrumbs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockOpenBreadcrumbsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).BlockOpenBreadcrumbs(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/BlockOpenBreadcrumbs", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockOpenBreadcrumbs(req.(*pb.RpcBlockOpenBreadcrumbsRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_BlockSetBreadcrumbs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockSetBreadcrumbsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).BlockSetBreadcrumbs(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/BlockSetBreadcrumbs", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockSetBreadcrumbs(req.(*pb.RpcBlockSetBreadcrumbsRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - func _ClientCommands_BlockCreate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(pb.RpcBlockCreateRequest) if err := dec(in); err != nil { @@ -3122,528 +3820,6 @@ func _ClientCommands_BlockCreate_Handler(srv interface{}, ctx context.Context, d return interceptor(ctx, in, info, handler) } -func _ClientCommands_BlockCreatePage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockCreatePageRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).BlockCreatePage(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/BlockCreatePage", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockCreatePage(req.(*pb.RpcBlockCreatePageRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_BlockCreateSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockCreateSetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).BlockCreateSet(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/BlockCreateSet", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockCreateSet(req.(*pb.RpcBlockCreateSetRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_BlockUnlink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockUnlinkRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).BlockUnlink(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/BlockUnlink", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockUnlink(req.(*pb.RpcBlockUnlinkRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_BlockClose_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockCloseRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).BlockClose(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/BlockClose", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockClose(req.(*pb.RpcBlockCloseRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_BlockDownload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockDownloadRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).BlockDownload(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/BlockDownload", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockDownload(req.(*pb.RpcBlockDownloadRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_BlockGetMarks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockGetMarksRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).BlockGetMarks(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/BlockGetMarks", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockGetMarks(req.(*pb.RpcBlockGetMarksRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_BlockUndo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockUndoRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).BlockUndo(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/BlockUndo", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockUndo(req.(*pb.RpcBlockUndoRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_BlockRedo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockRedoRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).BlockRedo(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/BlockRedo", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockRedo(req.(*pb.RpcBlockRedoRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_BlockSetFields_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockSetFieldsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).BlockSetFields(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/BlockSetFields", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockSetFields(req.(*pb.RpcBlockSetFieldsRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_BlockSetRestrictions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockSetRestrictionsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).BlockSetRestrictions(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/BlockSetRestrictions", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockSetRestrictions(req.(*pb.RpcBlockSetRestrictionsRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_BlockListMove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockListMoveRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).BlockListMove(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/BlockListMove", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockListMove(req.(*pb.RpcBlockListMoveRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_BlockListMoveToNewPage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockListMoveToNewPageRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).BlockListMoveToNewPage(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/BlockListMoveToNewPage", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockListMoveToNewPage(req.(*pb.RpcBlockListMoveToNewPageRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_BlockListConvertChildrenToPages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockListConvertChildrenToPagesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).BlockListConvertChildrenToPages(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/BlockListConvertChildrenToPages", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockListConvertChildrenToPages(req.(*pb.RpcBlockListConvertChildrenToPagesRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_BlockListSetFields_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockListSetFieldsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).BlockListSetFields(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/BlockListSetFields", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockListSetFields(req.(*pb.RpcBlockListSetFieldsRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_BlockListSetTextStyle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockListSetTextStyleRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).BlockListSetTextStyle(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/BlockListSetTextStyle", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockListSetTextStyle(req.(*pb.RpcBlockListSetTextStyleRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_BlockListDuplicate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockListDuplicateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).BlockListDuplicate(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/BlockListDuplicate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockListDuplicate(req.(*pb.RpcBlockListDuplicateRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_BlockListSetBackgroundColor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockListSetBackgroundColorRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).BlockListSetBackgroundColor(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/BlockListSetBackgroundColor", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockListSetBackgroundColor(req.(*pb.RpcBlockListSetBackgroundColorRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_BlockListSetAlign_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockListSetAlignRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).BlockListSetAlign(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/BlockListSetAlign", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockListSetAlign(req.(*pb.RpcBlockListSetAlignRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_BlockListSetDivStyle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockListSetDivStyleRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).BlockListSetDivStyle(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/BlockListSetDivStyle", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockListSetDivStyle(req.(*pb.RpcBlockListSetDivStyleRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_BlockListSetFileStyle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockListSetFileStyleRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).BlockListSetFileStyle(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/BlockListSetFileStyle", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockListSetFileStyle(req.(*pb.RpcBlockListSetFileStyleRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_BlockListTurnInto_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockListTurnIntoRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).BlockListTurnInto(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/BlockListTurnInto", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockListTurnInto(req.(*pb.RpcBlockListTurnIntoRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_BlockSetLatexText_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockSetLatexTextRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).BlockSetLatexText(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/BlockSetLatexText", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockSetLatexText(req.(*pb.RpcBlockSetLatexTextRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_BlockSetTextText_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockSetTextTextRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).BlockSetTextText(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/BlockSetTextText", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockSetTextText(req.(*pb.RpcBlockSetTextTextRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_BlockSetTextColor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockSetTextColorRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).BlockSetTextColor(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/BlockSetTextColor", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockSetTextColor(req.(*pb.RpcBlockSetTextColorRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_BlockListSetTextColor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockListSetTextColorRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).BlockListSetTextColor(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/BlockListSetTextColor", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockListSetTextColor(req.(*pb.RpcBlockListSetTextColorRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_BlockListSetTextMark_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockListSetTextMarkRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).BlockListSetTextMark(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/BlockListSetTextMark", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockListSetTextMark(req.(*pb.RpcBlockListSetTextMarkRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_BlockSetTextStyle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockSetTextStyleRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).BlockSetTextStyle(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/BlockSetTextStyle", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockSetTextStyle(req.(*pb.RpcBlockSetTextStyleRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_BlockSetTextChecked_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockSetTextCheckedRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).BlockSetTextChecked(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/BlockSetTextChecked", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockSetTextChecked(req.(*pb.RpcBlockSetTextCheckedRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_BlockSetTextIcon_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockSetTextIconRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).BlockSetTextIcon(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/BlockSetTextIcon", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockSetTextIcon(req.(*pb.RpcBlockSetTextIconRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - func _ClientCommands_BlockSplit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(pb.RpcBlockSplitRequest) if err := dec(in); err != nil { @@ -3734,6 +3910,24 @@ func _ClientCommands_BlockCut_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } +func _ClientCommands_BlockSetFields_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcBlockSetFieldsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).BlockSetFields(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/BlockSetFields", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).BlockSetFields(req.(*pb.RpcBlockSetFieldsRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + func _ClientCommands_BlockExport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(pb.RpcBlockExportRequest) if err := dec(in); err != nil { @@ -3752,164 +3946,362 @@ func _ClientCommands_BlockExport_Handler(srv interface{}, ctx context.Context, d return interceptor(ctx, in, info, handler) } -func _ClientCommands_BlockImportMarkdown_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockImportMarkdownRequest) +func _ClientCommands_BlockListDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcBlockListDeleteRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ClientCommandsServer).BlockImportMarkdown(in), nil + return srv.(ClientCommandsServer).BlockListDelete(in), nil } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/anytype.ClientCommands/BlockImportMarkdown", + FullMethod: "/anytype.ClientCommands/BlockListDelete", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockImportMarkdown(req.(*pb.RpcBlockImportMarkdownRequest)), nil + return srv.(ClientCommandsServer).BlockListDelete(req.(*pb.RpcBlockListDeleteRequest)), nil } return interceptor(ctx, in, info, handler) } -func _ClientCommands_BlockSetFileName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockSetFileNameRequest) +func _ClientCommands_BlockListMoveToExistingObject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcBlockListMoveToExistingObjectRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ClientCommandsServer).BlockSetFileName(in), nil + return srv.(ClientCommandsServer).BlockListMoveToExistingObject(in), nil } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/anytype.ClientCommands/BlockSetFileName", + FullMethod: "/anytype.ClientCommands/BlockListMoveToExistingObject", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockSetFileName(req.(*pb.RpcBlockSetFileNameRequest)), nil + return srv.(ClientCommandsServer).BlockListMoveToExistingObject(req.(*pb.RpcBlockListMoveToExistingObjectRequest)), nil } return interceptor(ctx, in, info, handler) } -func _ClientCommands_BlockSetImageName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockSetImageNameRequest) +func _ClientCommands_BlockListMoveToNewObject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcBlockListMoveToNewObjectRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ClientCommandsServer).BlockSetImageName(in), nil + return srv.(ClientCommandsServer).BlockListMoveToNewObject(in), nil } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/anytype.ClientCommands/BlockSetImageName", + FullMethod: "/anytype.ClientCommands/BlockListMoveToNewObject", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockSetImageName(req.(*pb.RpcBlockSetImageNameRequest)), nil + return srv.(ClientCommandsServer).BlockListMoveToNewObject(req.(*pb.RpcBlockListMoveToNewObjectRequest)), nil } return interceptor(ctx, in, info, handler) } -func _ClientCommands_BlockSetImageWidth_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockSetImageWidthRequest) +func _ClientCommands_BlockListConvertToObjects_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcBlockListConvertToObjectsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ClientCommandsServer).BlockSetImageWidth(in), nil + return srv.(ClientCommandsServer).BlockListConvertToObjects(in), nil } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/anytype.ClientCommands/BlockSetImageWidth", + FullMethod: "/anytype.ClientCommands/BlockListConvertToObjects", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockSetImageWidth(req.(*pb.RpcBlockSetImageWidthRequest)), nil + return srv.(ClientCommandsServer).BlockListConvertToObjects(req.(*pb.RpcBlockListConvertToObjectsRequest)), nil } return interceptor(ctx, in, info, handler) } -func _ClientCommands_BlockSetVideoName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockSetVideoNameRequest) +func _ClientCommands_BlockListSetFields_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcBlockListSetFieldsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ClientCommandsServer).BlockSetVideoName(in), nil + return srv.(ClientCommandsServer).BlockListSetFields(in), nil } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/anytype.ClientCommands/BlockSetVideoName", + FullMethod: "/anytype.ClientCommands/BlockListSetFields", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockSetVideoName(req.(*pb.RpcBlockSetVideoNameRequest)), nil + return srv.(ClientCommandsServer).BlockListSetFields(req.(*pb.RpcBlockListSetFieldsRequest)), nil } return interceptor(ctx, in, info, handler) } -func _ClientCommands_BlockSetVideoWidth_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockSetVideoWidthRequest) +func _ClientCommands_BlockListDuplicate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcBlockListDuplicateRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ClientCommandsServer).BlockSetVideoWidth(in), nil + return srv.(ClientCommandsServer).BlockListDuplicate(in), nil } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/anytype.ClientCommands/BlockSetVideoWidth", + FullMethod: "/anytype.ClientCommands/BlockListDuplicate", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockSetVideoWidth(req.(*pb.RpcBlockSetVideoWidthRequest)), nil + return srv.(ClientCommandsServer).BlockListDuplicate(req.(*pb.RpcBlockListDuplicateRequest)), nil } return interceptor(ctx, in, info, handler) } -func _ClientCommands_BlockSetLinkTargetBlockId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockSetLinkTargetBlockIdRequest) +func _ClientCommands_BlockListSetBackgroundColor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcBlockListSetBackgroundColorRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ClientCommandsServer).BlockSetLinkTargetBlockId(in), nil + return srv.(ClientCommandsServer).BlockListSetBackgroundColor(in), nil } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/anytype.ClientCommands/BlockSetLinkTargetBlockId", + FullMethod: "/anytype.ClientCommands/BlockListSetBackgroundColor", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockSetLinkTargetBlockId(req.(*pb.RpcBlockSetLinkTargetBlockIdRequest)), nil + return srv.(ClientCommandsServer).BlockListSetBackgroundColor(req.(*pb.RpcBlockListSetBackgroundColorRequest)), nil } return interceptor(ctx, in, info, handler) } -func _ClientCommands_BlockBookmarkFetch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockBookmarkFetchRequest) +func _ClientCommands_BlockListSetAlign_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcBlockListSetAlignRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ClientCommandsServer).BlockBookmarkFetch(in), nil + return srv.(ClientCommandsServer).BlockListSetAlign(in), nil } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/anytype.ClientCommands/BlockBookmarkFetch", + FullMethod: "/anytype.ClientCommands/BlockListSetAlign", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockBookmarkFetch(req.(*pb.RpcBlockBookmarkFetchRequest)), nil + return srv.(ClientCommandsServer).BlockListSetAlign(req.(*pb.RpcBlockListSetAlignRequest)), nil } return interceptor(ctx, in, info, handler) } -func _ClientCommands_BlockBookmarkCreateAndFetch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockBookmarkCreateAndFetchRequest) +func _ClientCommands_BlockListTurnInto_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcBlockListTurnIntoRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ClientCommandsServer).BlockBookmarkCreateAndFetch(in), nil + return srv.(ClientCommandsServer).BlockListTurnInto(in), nil } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/anytype.ClientCommands/BlockBookmarkCreateAndFetch", + FullMethod: "/anytype.ClientCommands/BlockListTurnInto", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockBookmarkCreateAndFetch(req.(*pb.RpcBlockBookmarkCreateAndFetchRequest)), nil + return srv.(ClientCommandsServer).BlockListTurnInto(req.(*pb.RpcBlockListTurnIntoRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_BlockTextSetText_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcBlockTextSetTextRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).BlockTextSetText(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/BlockTextSetText", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).BlockTextSetText(req.(*pb.RpcBlockTextSetTextRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_BlockTextSetColor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcBlockTextSetColorRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).BlockTextSetColor(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/BlockTextSetColor", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).BlockTextSetColor(req.(*pb.RpcBlockTextSetColorRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_BlockTextSetStyle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcBlockTextSetStyleRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).BlockTextSetStyle(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/BlockTextSetStyle", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).BlockTextSetStyle(req.(*pb.RpcBlockTextSetStyleRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_BlockTextSetChecked_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcBlockTextSetCheckedRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).BlockTextSetChecked(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/BlockTextSetChecked", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).BlockTextSetChecked(req.(*pb.RpcBlockTextSetCheckedRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_BlockTextSetIcon_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcBlockTextSetIconRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).BlockTextSetIcon(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/BlockTextSetIcon", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).BlockTextSetIcon(req.(*pb.RpcBlockTextSetIconRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_BlockTextListSetColor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcBlockTextListSetColorRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).BlockTextListSetColor(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/BlockTextListSetColor", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).BlockTextListSetColor(req.(*pb.RpcBlockTextListSetColorRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_BlockTextListSetMark_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcBlockTextListSetMarkRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).BlockTextListSetMark(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/BlockTextListSetMark", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).BlockTextListSetMark(req.(*pb.RpcBlockTextListSetMarkRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_BlockTextListSetStyle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcBlockTextListSetStyleRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).BlockTextListSetStyle(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/BlockTextListSetStyle", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).BlockTextListSetStyle(req.(*pb.RpcBlockTextListSetStyleRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_BlockFileSetName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcBlockFileSetNameRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).BlockFileSetName(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/BlockFileSetName", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).BlockFileSetName(req.(*pb.RpcBlockFileSetNameRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_BlockImageSetName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcBlockImageSetNameRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).BlockImageSetName(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/BlockImageSetName", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).BlockImageSetName(req.(*pb.RpcBlockImageSetNameRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_BlockVideoSetName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcBlockVideoSetNameRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).BlockVideoSetName(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/BlockVideoSetName", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).BlockVideoSetName(req.(*pb.RpcBlockVideoSetNameRequest)), nil } return interceptor(ctx, in, info, handler) } @@ -3932,38 +4324,20 @@ func _ClientCommands_BlockFileCreateAndUpload_Handler(srv interface{}, ctx conte return interceptor(ctx, in, info, handler) } -func _ClientCommands_BlockRelationSetKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockRelationSetKeyRequest) +func _ClientCommands_BlockFileListSetStyle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcBlockFileListSetStyleRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ClientCommandsServer).BlockRelationSetKey(in), nil + return srv.(ClientCommandsServer).BlockFileListSetStyle(in), nil } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/anytype.ClientCommands/BlockRelationSetKey", + FullMethod: "/anytype.ClientCommands/BlockFileListSetStyle", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockRelationSetKey(req.(*pb.RpcBlockRelationSetKeyRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_BlockRelationAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockRelationAddRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).BlockRelationAdd(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/BlockRelationAdd", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockRelationAdd(req.(*pb.RpcBlockRelationAddRequest)), nil + return srv.(ClientCommandsServer).BlockFileListSetStyle(req.(*pb.RpcBlockFileListSetStyleRequest)), nil } return interceptor(ctx, in, info, handler) } @@ -4256,650 +4630,146 @@ func _ClientCommands_BlockDataviewRecordRelationOptionDelete_Handler(srv interfa return interceptor(ctx, in, info, handler) } -func _ClientCommands_BlockObjectTypeSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockObjectTypeSetRequest) +func _ClientCommands_BlockLinkCreateWithObject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcBlockLinkCreateWithObjectRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ClientCommandsServer).BlockObjectTypeSet(in), nil + return srv.(ClientCommandsServer).BlockLinkCreateWithObject(in), nil } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/anytype.ClientCommands/BlockObjectTypeSet", + FullMethod: "/anytype.ClientCommands/BlockLinkCreateWithObject", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockObjectTypeSet(req.(*pb.RpcBlockObjectTypeSetRequest)), nil + return srv.(ClientCommandsServer).BlockLinkCreateWithObject(req.(*pb.RpcBlockLinkCreateWithObjectRequest)), nil } return interceptor(ctx, in, info, handler) } -func _ClientCommands_NavigationListObjects_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcNavigationListObjectsRequest) +func _ClientCommands_BlockLinkListSetAppearance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcBlockLinkListSetAppearanceRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ClientCommandsServer).NavigationListObjects(in), nil + return srv.(ClientCommandsServer).BlockLinkListSetAppearance(in), nil } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/anytype.ClientCommands/NavigationListObjects", + FullMethod: "/anytype.ClientCommands/BlockLinkListSetAppearance", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).NavigationListObjects(req.(*pb.RpcNavigationListObjectsRequest)), nil + return srv.(ClientCommandsServer).BlockLinkListSetAppearance(req.(*pb.RpcBlockLinkListSetAppearanceRequest)), nil } return interceptor(ctx, in, info, handler) } -func _ClientCommands_NavigationGetObjectInfoWithLinks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcNavigationGetObjectInfoWithLinksRequest) +func _ClientCommands_BlockBookmarkFetch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcBlockBookmarkFetchRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ClientCommandsServer).NavigationGetObjectInfoWithLinks(in), nil + return srv.(ClientCommandsServer).BlockBookmarkFetch(in), nil } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/anytype.ClientCommands/NavigationGetObjectInfoWithLinks", + FullMethod: "/anytype.ClientCommands/BlockBookmarkFetch", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).NavigationGetObjectInfoWithLinks(req.(*pb.RpcNavigationGetObjectInfoWithLinksRequest)), nil + return srv.(ClientCommandsServer).BlockBookmarkFetch(req.(*pb.RpcBlockBookmarkFetchRequest)), nil } return interceptor(ctx, in, info, handler) } -func _ClientCommands_ObjectGraph_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcObjectGraphRequest) +func _ClientCommands_BlockBookmarkCreateAndFetch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcBlockBookmarkCreateAndFetchRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ClientCommandsServer).ObjectGraph(in), nil + return srv.(ClientCommandsServer).BlockBookmarkCreateAndFetch(in), nil } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/anytype.ClientCommands/ObjectGraph", + FullMethod: "/anytype.ClientCommands/BlockBookmarkCreateAndFetch", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).ObjectGraph(req.(*pb.RpcObjectGraphRequest)), nil + return srv.(ClientCommandsServer).BlockBookmarkCreateAndFetch(req.(*pb.RpcBlockBookmarkCreateAndFetchRequest)), nil } return interceptor(ctx, in, info, handler) } -func _ClientCommands_ObjectSearch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcObjectSearchRequest) +func _ClientCommands_BlockRelationSetKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcBlockRelationSetKeyRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ClientCommandsServer).ObjectSearch(in), nil + return srv.(ClientCommandsServer).BlockRelationSetKey(in), nil } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/anytype.ClientCommands/ObjectSearch", + FullMethod: "/anytype.ClientCommands/BlockRelationSetKey", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).ObjectSearch(req.(*pb.RpcObjectSearchRequest)), nil + return srv.(ClientCommandsServer).BlockRelationSetKey(req.(*pb.RpcBlockRelationSetKeyRequest)), nil } return interceptor(ctx, in, info, handler) } -func _ClientCommands_ObjectSearchSubscribe_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcObjectSearchSubscribeRequest) +func _ClientCommands_BlockRelationAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcBlockRelationAddRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ClientCommandsServer).ObjectSearchSubscribe(in), nil + return srv.(ClientCommandsServer).BlockRelationAdd(in), nil } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/anytype.ClientCommands/ObjectSearchSubscribe", + FullMethod: "/anytype.ClientCommands/BlockRelationAdd", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).ObjectSearchSubscribe(req.(*pb.RpcObjectSearchSubscribeRequest)), nil + return srv.(ClientCommandsServer).BlockRelationAdd(req.(*pb.RpcBlockRelationAddRequest)), nil } return interceptor(ctx, in, info, handler) } -func _ClientCommands_ObjectIdsSubscribe_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcObjectIdsSubscribeRequest) +func _ClientCommands_BlockDivListSetStyle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcBlockDivListSetStyleRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ClientCommandsServer).ObjectIdsSubscribe(in), nil + return srv.(ClientCommandsServer).BlockDivListSetStyle(in), nil } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/anytype.ClientCommands/ObjectIdsSubscribe", + FullMethod: "/anytype.ClientCommands/BlockDivListSetStyle", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).ObjectIdsSubscribe(req.(*pb.RpcObjectIdsSubscribeRequest)), nil + return srv.(ClientCommandsServer).BlockDivListSetStyle(req.(*pb.RpcBlockDivListSetStyleRequest)), nil } return interceptor(ctx, in, info, handler) } -func _ClientCommands_ObjectSearchUnsubscribe_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcObjectSearchUnsubscribeRequest) +func _ClientCommands_BlockLatexSetText_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcBlockLatexSetTextRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ClientCommandsServer).ObjectSearchUnsubscribe(in), nil + return srv.(ClientCommandsServer).BlockLatexSetText(in), nil } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/anytype.ClientCommands/ObjectSearchUnsubscribe", + FullMethod: "/anytype.ClientCommands/BlockLatexSetText", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).ObjectSearchUnsubscribe(req.(*pb.RpcObjectSearchUnsubscribeRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_ObjectRelationAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcObjectRelationAddRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).ObjectRelationAdd(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/ObjectRelationAdd", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).ObjectRelationAdd(req.(*pb.RpcObjectRelationAddRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_ObjectRelationUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcObjectRelationUpdateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).ObjectRelationUpdate(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/ObjectRelationUpdate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).ObjectRelationUpdate(req.(*pb.RpcObjectRelationUpdateRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_ObjectRelationDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcObjectRelationDeleteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).ObjectRelationDelete(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/ObjectRelationDelete", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).ObjectRelationDelete(req.(*pb.RpcObjectRelationDeleteRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_ObjectRelationOptionAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcObjectRelationOptionAddRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).ObjectRelationOptionAdd(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/ObjectRelationOptionAdd", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).ObjectRelationOptionAdd(req.(*pb.RpcObjectRelationOptionAddRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_ObjectRelationOptionUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcObjectRelationOptionUpdateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).ObjectRelationOptionUpdate(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/ObjectRelationOptionUpdate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).ObjectRelationOptionUpdate(req.(*pb.RpcObjectRelationOptionUpdateRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_ObjectRelationOptionDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcObjectRelationOptionDeleteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).ObjectRelationOptionDelete(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/ObjectRelationOptionDelete", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).ObjectRelationOptionDelete(req.(*pb.RpcObjectRelationOptionDeleteRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_ObjectRelationListAvailable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcObjectRelationListAvailableRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).ObjectRelationListAvailable(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/ObjectRelationListAvailable", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).ObjectRelationListAvailable(req.(*pb.RpcObjectRelationListAvailableRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_ObjectSetLayout_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcObjectSetLayoutRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).ObjectSetLayout(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/ObjectSetLayout", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).ObjectSetLayout(req.(*pb.RpcObjectSetLayoutRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_ObjectFeaturedRelationAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcObjectFeaturedRelationAddRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).ObjectFeaturedRelationAdd(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/ObjectFeaturedRelationAdd", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).ObjectFeaturedRelationAdd(req.(*pb.RpcObjectFeaturedRelationAddRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_ObjectFeaturedRelationRemove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcObjectFeaturedRelationRemoveRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).ObjectFeaturedRelationRemove(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/ObjectFeaturedRelationRemove", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).ObjectFeaturedRelationRemove(req.(*pb.RpcObjectFeaturedRelationRemoveRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_ObjectSetIsFavorite_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcObjectSetIsFavoriteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).ObjectSetIsFavorite(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/ObjectSetIsFavorite", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).ObjectSetIsFavorite(req.(*pb.RpcObjectSetIsFavoriteRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_ObjectSetIsArchived_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcObjectSetIsArchivedRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).ObjectSetIsArchived(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/ObjectSetIsArchived", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).ObjectSetIsArchived(req.(*pb.RpcObjectSetIsArchivedRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_ObjectToSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcObjectToSetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).ObjectToSet(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/ObjectToSet", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).ObjectToSet(req.(*pb.RpcObjectToSetRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_ObjectListDuplicate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcObjectListDuplicateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).ObjectListDuplicate(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/ObjectListDuplicate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).ObjectListDuplicate(req.(*pb.RpcObjectListDuplicateRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_ObjectListDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcObjectListDeleteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).ObjectListDelete(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/ObjectListDelete", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).ObjectListDelete(req.(*pb.RpcObjectListDeleteRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_ObjectListSetIsArchived_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcObjectListSetIsArchivedRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).ObjectListSetIsArchived(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/ObjectListSetIsArchived", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).ObjectListSetIsArchived(req.(*pb.RpcObjectListSetIsArchivedRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_ObjectListSetIsFavorite_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcObjectListSetIsFavoriteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).ObjectListSetIsFavorite(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/ObjectListSetIsFavorite", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).ObjectListSetIsFavorite(req.(*pb.RpcObjectListSetIsFavoriteRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_BlockSetDetails_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcBlockSetDetailsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).BlockSetDetails(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/BlockSetDetails", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).BlockSetDetails(req.(*pb.RpcBlockSetDetailsRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_PageCreate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcPageCreateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).PageCreate(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/PageCreate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).PageCreate(req.(*pb.RpcPageCreateRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_SetCreate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcSetCreateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).SetCreate(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/SetCreate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).SetCreate(req.(*pb.RpcSetCreateRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_MetricsSetParameters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcMetricsSetParametersRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).MetricsSetParameters(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/MetricsSetParameters", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).MetricsSetParameters(req.(*pb.RpcMetricsSetParametersRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_ObjectTypeCreate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcObjectTypeCreateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).ObjectTypeCreate(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/ObjectTypeCreate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).ObjectTypeCreate(req.(*pb.RpcObjectTypeCreateRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_ObjectTypeList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcObjectTypeListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).ObjectTypeList(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/ObjectTypeList", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).ObjectTypeList(req.(*pb.RpcObjectTypeListRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_ObjectTypeRelationList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcObjectTypeRelationListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).ObjectTypeRelationList(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/ObjectTypeRelationList", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).ObjectTypeRelationList(req.(*pb.RpcObjectTypeRelationListRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_ObjectTypeRelationAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcObjectTypeRelationAddRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).ObjectTypeRelationAdd(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/ObjectTypeRelationAdd", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).ObjectTypeRelationAdd(req.(*pb.RpcObjectTypeRelationAddRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_ObjectTypeRelationUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcObjectTypeRelationUpdateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).ObjectTypeRelationUpdate(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/ObjectTypeRelationUpdate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).ObjectTypeRelationUpdate(req.(*pb.RpcObjectTypeRelationUpdateRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_ObjectTypeRelationRemove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcObjectTypeRelationRemoveRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).ObjectTypeRelationRemove(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/ObjectTypeRelationRemove", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).ObjectTypeRelationRemove(req.(*pb.RpcObjectTypeRelationRemoveRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_Ping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcPingRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).Ping(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/Ping", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).Ping(req.(*pb.RpcPingRequest)), nil + return srv.(ClientCommandsServer).BlockLatexSetText(req.(*pb.RpcBlockLatexSetTextRequest)), nil } return interceptor(ctx, in, info, handler) } @@ -4922,254 +4792,20 @@ func _ClientCommands_ProcessCancel_Handler(srv interface{}, ctx context.Context, return interceptor(ctx, in, info, handler) } -func _ClientCommands_HistoryShow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcHistoryShowRequest) +func _ClientCommands_LogSend_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcLogSendRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(ClientCommandsServer).HistoryShow(in), nil + return srv.(ClientCommandsServer).LogSend(in), nil } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/anytype.ClientCommands/HistoryShow", + FullMethod: "/anytype.ClientCommands/LogSend", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).HistoryShow(req.(*pb.RpcHistoryShowRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_HistoryVersions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcHistoryVersionsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).HistoryVersions(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/HistoryVersions", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).HistoryVersions(req.(*pb.RpcHistoryVersionsRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_HistorySetVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcHistorySetVersionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).HistorySetVersion(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/HistorySetVersion", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).HistorySetVersion(req.(*pb.RpcHistorySetVersionRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_Export_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcExportRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).Export(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/Export", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).Export(req.(*pb.RpcExportRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_ExportWorkspace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcExportWorkspaceRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).ExportWorkspace(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/ExportWorkspace", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).ExportWorkspace(req.(*pb.RpcExportWorkspaceRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_ExportTemplates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcExportTemplatesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).ExportTemplates(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/ExportTemplates", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).ExportTemplates(req.(*pb.RpcExportTemplatesRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_ExportLocalstore_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcExportLocalstoreRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).ExportLocalstore(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/ExportLocalstore", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).ExportLocalstore(req.(*pb.RpcExportLocalstoreRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_MakeTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcMakeTemplateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).MakeTemplate(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/MakeTemplate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).MakeTemplate(req.(*pb.RpcMakeTemplateRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_MakeTemplateByObjectType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcMakeTemplateByObjectTypeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).MakeTemplateByObjectType(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/MakeTemplateByObjectType", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).MakeTemplateByObjectType(req.(*pb.RpcMakeTemplateByObjectTypeRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_CloneTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcCloneTemplateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).CloneTemplate(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/CloneTemplate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).CloneTemplate(req.(*pb.RpcCloneTemplateRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_ObjectDuplicate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcObjectDuplicateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).ObjectDuplicate(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/ObjectDuplicate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).ObjectDuplicate(req.(*pb.RpcObjectDuplicateRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_UnsplashSearch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcUnsplashSearchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).UnsplashSearch(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/UnsplashSearch", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).UnsplashSearch(req.(*pb.RpcUnsplashSearchRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_UnsplashDownload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcUnsplashDownloadRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).UnsplashDownload(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/UnsplashDownload", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).UnsplashDownload(req.(*pb.RpcUnsplashDownloadRequest)), nil - } - return interceptor(ctx, in, info, handler) -} - -func _ClientCommands_ApplyTemplate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(pb.RpcApplyTemplateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ClientCommandsServer).ApplyTemplate(in), nil - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/anytype.ClientCommands/ApplyTemplate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ClientCommandsServer).ApplyTemplate(req.(*pb.RpcApplyTemplateRequest)), nil + return srv.(ClientCommandsServer).LogSend(req.(*pb.RpcLogSendRequest)), nil } return interceptor(ctx, in, info, handler) } @@ -5228,6 +4864,60 @@ func _ClientCommands_DebugTree_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } +func _ClientCommands_DebugExportLocalstore_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcDebugExportLocalstoreRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).DebugExportLocalstore(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/DebugExportLocalstore", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).DebugExportLocalstore(req.(*pb.RpcDebugExportLocalstoreRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_DebugPing_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcDebugPingRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).DebugPing(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/DebugPing", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).DebugPing(req.(*pb.RpcDebugPingRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + +func _ClientCommands_MetricsSetParameters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(pb.RpcMetricsSetParametersRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ClientCommandsServer).MetricsSetParameters(in), nil + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/anytype.ClientCommands/MetricsSetParameters", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ClientCommandsServer).MetricsSetParameters(req.(*pb.RpcMetricsSetParametersRequest)), nil + } + return interceptor(ctx, in, info, handler) +} + func _ClientCommands_ListenEvents_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(pb.Empty) if err := stream.RecvMsg(m); err != nil { @@ -5255,12 +4945,16 @@ var _ClientCommands_serviceDesc = grpc.ServiceDesc{ HandlerType: (*ClientCommandsServer)(nil), Methods: []grpc.MethodDesc{ { - MethodName: "ObjectAddWithObjectId", - Handler: _ClientCommands_ObjectAddWithObjectId_Handler, + MethodName: "AppGetVersion", + Handler: _ClientCommands_AppGetVersion_Handler, }, { - MethodName: "ObjectShareByLink", - Handler: _ClientCommands_ObjectShareByLink_Handler, + MethodName: "AppSetDeviceState", + Handler: _ClientCommands_AppSetDeviceState_Handler, + }, + { + MethodName: "AppShutdown", + Handler: _ClientCommands_AppShutdown_Handler, }, { MethodName: "WalletCreate", @@ -5294,6 +4988,10 @@ var _ClientCommands_serviceDesc = grpc.ServiceDesc{ MethodName: "WorkspaceSetIsHighlighted", Handler: _ClientCommands_WorkspaceSetIsHighlighted_Handler, }, + { + MethodName: "WorkspaceExport", + Handler: _ClientCommands_WorkspaceExport_Handler, + }, { MethodName: "AccountRecover", Handler: _ClientCommands_AccountRecover_Handler, @@ -5314,6 +5012,198 @@ var _ClientCommands_serviceDesc = grpc.ServiceDesc{ MethodName: "AccountStop", Handler: _ClientCommands_AccountStop_Handler, }, + { + MethodName: "ObjectOpen", + Handler: _ClientCommands_ObjectOpen_Handler, + }, + { + MethodName: "ObjectClose", + Handler: _ClientCommands_ObjectClose_Handler, + }, + { + MethodName: "ObjectShow", + Handler: _ClientCommands_ObjectShow_Handler, + }, + { + MethodName: "ObjectCreate", + Handler: _ClientCommands_ObjectCreate_Handler, + }, + { + MethodName: "ObjectCreateSet", + Handler: _ClientCommands_ObjectCreateSet_Handler, + }, + { + MethodName: "ObjectGraph", + Handler: _ClientCommands_ObjectGraph_Handler, + }, + { + MethodName: "ObjectSearch", + Handler: _ClientCommands_ObjectSearch_Handler, + }, + { + MethodName: "ObjectSearchSubscribe", + Handler: _ClientCommands_ObjectSearchSubscribe_Handler, + }, + { + MethodName: "ObjectSubscribeIds", + Handler: _ClientCommands_ObjectSubscribeIds_Handler, + }, + { + MethodName: "ObjectSearchUnsubscribe", + Handler: _ClientCommands_ObjectSearchUnsubscribe_Handler, + }, + { + MethodName: "ObjectSetDetails", + Handler: _ClientCommands_ObjectSetDetails_Handler, + }, + { + MethodName: "ObjectDuplicate", + Handler: _ClientCommands_ObjectDuplicate_Handler, + }, + { + MethodName: "ObjectSetObjectType", + Handler: _ClientCommands_ObjectSetObjectType_Handler, + }, + { + MethodName: "ObjectSetLayout", + Handler: _ClientCommands_ObjectSetLayout_Handler, + }, + { + MethodName: "ObjectSetIsFavorite", + Handler: _ClientCommands_ObjectSetIsFavorite_Handler, + }, + { + MethodName: "ObjectSetIsArchived", + Handler: _ClientCommands_ObjectSetIsArchived_Handler, + }, + { + MethodName: "ObjectListDuplicate", + Handler: _ClientCommands_ObjectListDuplicate_Handler, + }, + { + MethodName: "ObjectListDelete", + Handler: _ClientCommands_ObjectListDelete_Handler, + }, + { + MethodName: "ObjectListSetIsArchived", + Handler: _ClientCommands_ObjectListSetIsArchived_Handler, + }, + { + MethodName: "ObjectListSetIsFavorite", + Handler: _ClientCommands_ObjectListSetIsFavorite_Handler, + }, + { + MethodName: "ObjectApplyTemplate", + Handler: _ClientCommands_ObjectApplyTemplate_Handler, + }, + { + MethodName: "ObjectToSet", + Handler: _ClientCommands_ObjectToSet_Handler, + }, + { + MethodName: "ObjectAddWithObjectId", + Handler: _ClientCommands_ObjectAddWithObjectId_Handler, + }, + { + MethodName: "ObjectShareByLink", + Handler: _ClientCommands_ObjectShareByLink_Handler, + }, + { + MethodName: "ObjectOpenBreadcrumbs", + Handler: _ClientCommands_ObjectOpenBreadcrumbs_Handler, + }, + { + MethodName: "ObjectSetBreadcrumbs", + Handler: _ClientCommands_ObjectSetBreadcrumbs_Handler, + }, + { + MethodName: "ObjectUndo", + Handler: _ClientCommands_ObjectUndo_Handler, + }, + { + MethodName: "ObjectRedo", + Handler: _ClientCommands_ObjectRedo_Handler, + }, + { + MethodName: "ObjectImportMarkdown", + Handler: _ClientCommands_ObjectImportMarkdown_Handler, + }, + { + MethodName: "ObjectListExport", + Handler: _ClientCommands_ObjectListExport_Handler, + }, + { + MethodName: "ObjectRelationAdd", + Handler: _ClientCommands_ObjectRelationAdd_Handler, + }, + { + MethodName: "ObjectRelationUpdate", + Handler: _ClientCommands_ObjectRelationUpdate_Handler, + }, + { + MethodName: "ObjectRelationDelete", + Handler: _ClientCommands_ObjectRelationDelete_Handler, + }, + { + MethodName: "ObjectRelationAddFeatured", + Handler: _ClientCommands_ObjectRelationAddFeatured_Handler, + }, + { + MethodName: "ObjectRelationRemoveFeatured", + Handler: _ClientCommands_ObjectRelationRemoveFeatured_Handler, + }, + { + MethodName: "ObjectRelationListAvailable", + Handler: _ClientCommands_ObjectRelationListAvailable_Handler, + }, + { + MethodName: "ObjectRelationOptionAdd", + Handler: _ClientCommands_ObjectRelationOptionAdd_Handler, + }, + { + MethodName: "ObjectRelationOptionUpdate", + Handler: _ClientCommands_ObjectRelationOptionUpdate_Handler, + }, + { + MethodName: "ObjectRelationOptionDelete", + Handler: _ClientCommands_ObjectRelationOptionDelete_Handler, + }, + { + MethodName: "ObjectTypeCreate", + Handler: _ClientCommands_ObjectTypeCreate_Handler, + }, + { + MethodName: "ObjectTypeList", + Handler: _ClientCommands_ObjectTypeList_Handler, + }, + { + MethodName: "ObjectTypeRelationList", + Handler: _ClientCommands_ObjectTypeRelationList_Handler, + }, + { + MethodName: "ObjectTypeRelationAdd", + Handler: _ClientCommands_ObjectTypeRelationAdd_Handler, + }, + { + MethodName: "ObjectTypeRelationUpdate", + Handler: _ClientCommands_ObjectTypeRelationUpdate_Handler, + }, + { + MethodName: "ObjectTypeRelationRemove", + Handler: _ClientCommands_ObjectTypeRelationRemove_Handler, + }, + { + MethodName: "HistoryShowVersion", + Handler: _ClientCommands_HistoryShowVersion_Handler, + }, + { + MethodName: "HistoryGetVersions", + Handler: _ClientCommands_HistoryGetVersions_Handler, + }, + { + MethodName: "HistorySetVersion", + Handler: _ClientCommands_HistorySetVersion_Handler, + }, { MethodName: "FileOffload", Handler: _ClientCommands_FileOffload_Handler, @@ -5323,44 +5213,52 @@ var _ClientCommands_serviceDesc = grpc.ServiceDesc{ Handler: _ClientCommands_FileListOffload_Handler, }, { - MethodName: "VersionGet", - Handler: _ClientCommands_VersionGet_Handler, + MethodName: "FileUpload", + Handler: _ClientCommands_FileUpload_Handler, }, { - MethodName: "LogSend", - Handler: _ClientCommands_LogSend_Handler, + MethodName: "FileDownload", + Handler: _ClientCommands_FileDownload_Handler, }, { - MethodName: "ConfigGet", - Handler: _ClientCommands_ConfigGet_Handler, + MethodName: "FileDrop", + Handler: _ClientCommands_FileDrop_Handler, }, { - MethodName: "Shutdown", - Handler: _ClientCommands_Shutdown_Handler, + MethodName: "NavigationListObjects", + Handler: _ClientCommands_NavigationListObjects_Handler, }, { - MethodName: "SetDeviceState", - Handler: _ClientCommands_SetDeviceState_Handler, + MethodName: "NavigationGetObjectInfoWithLinks", + Handler: _ClientCommands_NavigationGetObjectInfoWithLinks_Handler, }, { - MethodName: "ExternalDropFiles", - Handler: _ClientCommands_ExternalDropFiles_Handler, + MethodName: "TemplateCreateFromObject", + Handler: _ClientCommands_TemplateCreateFromObject_Handler, }, { - MethodName: "ExternalDropContent", - Handler: _ClientCommands_ExternalDropContent_Handler, + MethodName: "TemplateCreateFromObjectType", + Handler: _ClientCommands_TemplateCreateFromObjectType_Handler, + }, + { + MethodName: "TemplateClone", + Handler: _ClientCommands_TemplateClone_Handler, + }, + { + MethodName: "TemplateExportAll", + Handler: _ClientCommands_TemplateExportAll_Handler, }, { MethodName: "LinkPreview", Handler: _ClientCommands_LinkPreview_Handler, }, { - MethodName: "UploadFile", - Handler: _ClientCommands_UploadFile_Handler, + MethodName: "UnsplashSearch", + Handler: _ClientCommands_UnsplashSearch_Handler, }, { - MethodName: "DownloadFile", - Handler: _ClientCommands_DownloadFile_Handler, + MethodName: "UnsplashDownload", + Handler: _ClientCommands_UnsplashDownload_Handler, }, { MethodName: "BlockUpload", @@ -5370,150 +5268,10 @@ var _ClientCommands_serviceDesc = grpc.ServiceDesc{ MethodName: "BlockReplace", Handler: _ClientCommands_BlockReplace_Handler, }, - { - MethodName: "BlockUpdateContent", - Handler: _ClientCommands_BlockUpdateContent_Handler, - }, - { - MethodName: "BlockOpen", - Handler: _ClientCommands_BlockOpen_Handler, - }, - { - MethodName: "BlockShow", - Handler: _ClientCommands_BlockShow_Handler, - }, - { - MethodName: "BlockGetPublicWebURL", - Handler: _ClientCommands_BlockGetPublicWebURL_Handler, - }, - { - MethodName: "BlockOpenBreadcrumbs", - Handler: _ClientCommands_BlockOpenBreadcrumbs_Handler, - }, - { - MethodName: "BlockSetBreadcrumbs", - Handler: _ClientCommands_BlockSetBreadcrumbs_Handler, - }, { MethodName: "BlockCreate", Handler: _ClientCommands_BlockCreate_Handler, }, - { - MethodName: "BlockCreatePage", - Handler: _ClientCommands_BlockCreatePage_Handler, - }, - { - MethodName: "BlockCreateSet", - Handler: _ClientCommands_BlockCreateSet_Handler, - }, - { - MethodName: "BlockUnlink", - Handler: _ClientCommands_BlockUnlink_Handler, - }, - { - MethodName: "BlockClose", - Handler: _ClientCommands_BlockClose_Handler, - }, - { - MethodName: "BlockDownload", - Handler: _ClientCommands_BlockDownload_Handler, - }, - { - MethodName: "BlockGetMarks", - Handler: _ClientCommands_BlockGetMarks_Handler, - }, - { - MethodName: "BlockUndo", - Handler: _ClientCommands_BlockUndo_Handler, - }, - { - MethodName: "BlockRedo", - Handler: _ClientCommands_BlockRedo_Handler, - }, - { - MethodName: "BlockSetFields", - Handler: _ClientCommands_BlockSetFields_Handler, - }, - { - MethodName: "BlockSetRestrictions", - Handler: _ClientCommands_BlockSetRestrictions_Handler, - }, - { - MethodName: "BlockListMove", - Handler: _ClientCommands_BlockListMove_Handler, - }, - { - MethodName: "BlockListMoveToNewPage", - Handler: _ClientCommands_BlockListMoveToNewPage_Handler, - }, - { - MethodName: "BlockListConvertChildrenToPages", - Handler: _ClientCommands_BlockListConvertChildrenToPages_Handler, - }, - { - MethodName: "BlockListSetFields", - Handler: _ClientCommands_BlockListSetFields_Handler, - }, - { - MethodName: "BlockListSetTextStyle", - Handler: _ClientCommands_BlockListSetTextStyle_Handler, - }, - { - MethodName: "BlockListDuplicate", - Handler: _ClientCommands_BlockListDuplicate_Handler, - }, - { - MethodName: "BlockListSetBackgroundColor", - Handler: _ClientCommands_BlockListSetBackgroundColor_Handler, - }, - { - MethodName: "BlockListSetAlign", - Handler: _ClientCommands_BlockListSetAlign_Handler, - }, - { - MethodName: "BlockListSetDivStyle", - Handler: _ClientCommands_BlockListSetDivStyle_Handler, - }, - { - MethodName: "BlockListSetFileStyle", - Handler: _ClientCommands_BlockListSetFileStyle_Handler, - }, - { - MethodName: "BlockListTurnInto", - Handler: _ClientCommands_BlockListTurnInto_Handler, - }, - { - MethodName: "BlockSetLatexText", - Handler: _ClientCommands_BlockSetLatexText_Handler, - }, - { - MethodName: "BlockSetTextText", - Handler: _ClientCommands_BlockSetTextText_Handler, - }, - { - MethodName: "BlockSetTextColor", - Handler: _ClientCommands_BlockSetTextColor_Handler, - }, - { - MethodName: "BlockListSetTextColor", - Handler: _ClientCommands_BlockListSetTextColor_Handler, - }, - { - MethodName: "BlockListSetTextMark", - Handler: _ClientCommands_BlockListSetTextMark_Handler, - }, - { - MethodName: "BlockSetTextStyle", - Handler: _ClientCommands_BlockSetTextStyle_Handler, - }, - { - MethodName: "BlockSetTextChecked", - Handler: _ClientCommands_BlockSetTextChecked_Handler, - }, - { - MethodName: "BlockSetTextIcon", - Handler: _ClientCommands_BlockSetTextIcon_Handler, - }, { MethodName: "BlockSplit", Handler: _ClientCommands_BlockSplit_Handler, @@ -5534,57 +5292,101 @@ var _ClientCommands_serviceDesc = grpc.ServiceDesc{ MethodName: "BlockCut", Handler: _ClientCommands_BlockCut_Handler, }, + { + MethodName: "BlockSetFields", + Handler: _ClientCommands_BlockSetFields_Handler, + }, { MethodName: "BlockExport", Handler: _ClientCommands_BlockExport_Handler, }, { - MethodName: "BlockImportMarkdown", - Handler: _ClientCommands_BlockImportMarkdown_Handler, + MethodName: "BlockListDelete", + Handler: _ClientCommands_BlockListDelete_Handler, }, { - MethodName: "BlockSetFileName", - Handler: _ClientCommands_BlockSetFileName_Handler, + MethodName: "BlockListMoveToExistingObject", + Handler: _ClientCommands_BlockListMoveToExistingObject_Handler, }, { - MethodName: "BlockSetImageName", - Handler: _ClientCommands_BlockSetImageName_Handler, + MethodName: "BlockListMoveToNewObject", + Handler: _ClientCommands_BlockListMoveToNewObject_Handler, }, { - MethodName: "BlockSetImageWidth", - Handler: _ClientCommands_BlockSetImageWidth_Handler, + MethodName: "BlockListConvertToObjects", + Handler: _ClientCommands_BlockListConvertToObjects_Handler, }, { - MethodName: "BlockSetVideoName", - Handler: _ClientCommands_BlockSetVideoName_Handler, + MethodName: "BlockListSetFields", + Handler: _ClientCommands_BlockListSetFields_Handler, }, { - MethodName: "BlockSetVideoWidth", - Handler: _ClientCommands_BlockSetVideoWidth_Handler, + MethodName: "BlockListDuplicate", + Handler: _ClientCommands_BlockListDuplicate_Handler, }, { - MethodName: "BlockSetLinkTargetBlockId", - Handler: _ClientCommands_BlockSetLinkTargetBlockId_Handler, + MethodName: "BlockListSetBackgroundColor", + Handler: _ClientCommands_BlockListSetBackgroundColor_Handler, }, { - MethodName: "BlockBookmarkFetch", - Handler: _ClientCommands_BlockBookmarkFetch_Handler, + MethodName: "BlockListSetAlign", + Handler: _ClientCommands_BlockListSetAlign_Handler, }, { - MethodName: "BlockBookmarkCreateAndFetch", - Handler: _ClientCommands_BlockBookmarkCreateAndFetch_Handler, + MethodName: "BlockListTurnInto", + Handler: _ClientCommands_BlockListTurnInto_Handler, + }, + { + MethodName: "BlockTextSetText", + Handler: _ClientCommands_BlockTextSetText_Handler, + }, + { + MethodName: "BlockTextSetColor", + Handler: _ClientCommands_BlockTextSetColor_Handler, + }, + { + MethodName: "BlockTextSetStyle", + Handler: _ClientCommands_BlockTextSetStyle_Handler, + }, + { + MethodName: "BlockTextSetChecked", + Handler: _ClientCommands_BlockTextSetChecked_Handler, + }, + { + MethodName: "BlockTextSetIcon", + Handler: _ClientCommands_BlockTextSetIcon_Handler, + }, + { + MethodName: "BlockTextListSetColor", + Handler: _ClientCommands_BlockTextListSetColor_Handler, + }, + { + MethodName: "BlockTextListSetMark", + Handler: _ClientCommands_BlockTextListSetMark_Handler, + }, + { + MethodName: "BlockTextListSetStyle", + Handler: _ClientCommands_BlockTextListSetStyle_Handler, + }, + { + MethodName: "BlockFileSetName", + Handler: _ClientCommands_BlockFileSetName_Handler, + }, + { + MethodName: "BlockImageSetName", + Handler: _ClientCommands_BlockImageSetName_Handler, + }, + { + MethodName: "BlockVideoSetName", + Handler: _ClientCommands_BlockVideoSetName_Handler, }, { MethodName: "BlockFileCreateAndUpload", Handler: _ClientCommands_BlockFileCreateAndUpload_Handler, }, { - MethodName: "BlockRelationSetKey", - Handler: _ClientCommands_BlockRelationSetKey_Handler, - }, - { - MethodName: "BlockRelationAdd", - Handler: _ClientCommands_BlockRelationAdd_Handler, + MethodName: "BlockFileListSetStyle", + Handler: _ClientCommands_BlockFileListSetStyle_Handler, }, { MethodName: "BlockDataviewViewCreate", @@ -5651,208 +5453,44 @@ var _ClientCommands_serviceDesc = grpc.ServiceDesc{ Handler: _ClientCommands_BlockDataviewRecordRelationOptionDelete_Handler, }, { - MethodName: "BlockObjectTypeSet", - Handler: _ClientCommands_BlockObjectTypeSet_Handler, + MethodName: "BlockLinkCreateWithObject", + Handler: _ClientCommands_BlockLinkCreateWithObject_Handler, }, { - MethodName: "NavigationListObjects", - Handler: _ClientCommands_NavigationListObjects_Handler, + MethodName: "BlockLinkListSetAppearance", + Handler: _ClientCommands_BlockLinkListSetAppearance_Handler, }, { - MethodName: "NavigationGetObjectInfoWithLinks", - Handler: _ClientCommands_NavigationGetObjectInfoWithLinks_Handler, + MethodName: "BlockBookmarkFetch", + Handler: _ClientCommands_BlockBookmarkFetch_Handler, }, { - MethodName: "ObjectGraph", - Handler: _ClientCommands_ObjectGraph_Handler, + MethodName: "BlockBookmarkCreateAndFetch", + Handler: _ClientCommands_BlockBookmarkCreateAndFetch_Handler, }, { - MethodName: "ObjectSearch", - Handler: _ClientCommands_ObjectSearch_Handler, + MethodName: "BlockRelationSetKey", + Handler: _ClientCommands_BlockRelationSetKey_Handler, }, { - MethodName: "ObjectSearchSubscribe", - Handler: _ClientCommands_ObjectSearchSubscribe_Handler, + MethodName: "BlockRelationAdd", + Handler: _ClientCommands_BlockRelationAdd_Handler, }, { - MethodName: "ObjectIdsSubscribe", - Handler: _ClientCommands_ObjectIdsSubscribe_Handler, + MethodName: "BlockDivListSetStyle", + Handler: _ClientCommands_BlockDivListSetStyle_Handler, }, { - MethodName: "ObjectSearchUnsubscribe", - Handler: _ClientCommands_ObjectSearchUnsubscribe_Handler, - }, - { - MethodName: "ObjectRelationAdd", - Handler: _ClientCommands_ObjectRelationAdd_Handler, - }, - { - MethodName: "ObjectRelationUpdate", - Handler: _ClientCommands_ObjectRelationUpdate_Handler, - }, - { - MethodName: "ObjectRelationDelete", - Handler: _ClientCommands_ObjectRelationDelete_Handler, - }, - { - MethodName: "ObjectRelationOptionAdd", - Handler: _ClientCommands_ObjectRelationOptionAdd_Handler, - }, - { - MethodName: "ObjectRelationOptionUpdate", - Handler: _ClientCommands_ObjectRelationOptionUpdate_Handler, - }, - { - MethodName: "ObjectRelationOptionDelete", - Handler: _ClientCommands_ObjectRelationOptionDelete_Handler, - }, - { - MethodName: "ObjectRelationListAvailable", - Handler: _ClientCommands_ObjectRelationListAvailable_Handler, - }, - { - MethodName: "ObjectSetLayout", - Handler: _ClientCommands_ObjectSetLayout_Handler, - }, - { - MethodName: "ObjectFeaturedRelationAdd", - Handler: _ClientCommands_ObjectFeaturedRelationAdd_Handler, - }, - { - MethodName: "ObjectFeaturedRelationRemove", - Handler: _ClientCommands_ObjectFeaturedRelationRemove_Handler, - }, - { - MethodName: "ObjectSetIsFavorite", - Handler: _ClientCommands_ObjectSetIsFavorite_Handler, - }, - { - MethodName: "ObjectSetIsArchived", - Handler: _ClientCommands_ObjectSetIsArchived_Handler, - }, - { - MethodName: "ObjectToSet", - Handler: _ClientCommands_ObjectToSet_Handler, - }, - { - MethodName: "ObjectListDuplicate", - Handler: _ClientCommands_ObjectListDuplicate_Handler, - }, - { - MethodName: "ObjectListDelete", - Handler: _ClientCommands_ObjectListDelete_Handler, - }, - { - MethodName: "ObjectListSetIsArchived", - Handler: _ClientCommands_ObjectListSetIsArchived_Handler, - }, - { - MethodName: "ObjectListSetIsFavorite", - Handler: _ClientCommands_ObjectListSetIsFavorite_Handler, - }, - { - MethodName: "BlockSetDetails", - Handler: _ClientCommands_BlockSetDetails_Handler, - }, - { - MethodName: "PageCreate", - Handler: _ClientCommands_PageCreate_Handler, - }, - { - MethodName: "SetCreate", - Handler: _ClientCommands_SetCreate_Handler, - }, - { - MethodName: "MetricsSetParameters", - Handler: _ClientCommands_MetricsSetParameters_Handler, - }, - { - MethodName: "ObjectTypeCreate", - Handler: _ClientCommands_ObjectTypeCreate_Handler, - }, - { - MethodName: "ObjectTypeList", - Handler: _ClientCommands_ObjectTypeList_Handler, - }, - { - MethodName: "ObjectTypeRelationList", - Handler: _ClientCommands_ObjectTypeRelationList_Handler, - }, - { - MethodName: "ObjectTypeRelationAdd", - Handler: _ClientCommands_ObjectTypeRelationAdd_Handler, - }, - { - MethodName: "ObjectTypeRelationUpdate", - Handler: _ClientCommands_ObjectTypeRelationUpdate_Handler, - }, - { - MethodName: "ObjectTypeRelationRemove", - Handler: _ClientCommands_ObjectTypeRelationRemove_Handler, - }, - { - MethodName: "Ping", - Handler: _ClientCommands_Ping_Handler, + MethodName: "BlockLatexSetText", + Handler: _ClientCommands_BlockLatexSetText_Handler, }, { MethodName: "ProcessCancel", Handler: _ClientCommands_ProcessCancel_Handler, }, { - MethodName: "HistoryShow", - Handler: _ClientCommands_HistoryShow_Handler, - }, - { - MethodName: "HistoryVersions", - Handler: _ClientCommands_HistoryVersions_Handler, - }, - { - MethodName: "HistorySetVersion", - Handler: _ClientCommands_HistorySetVersion_Handler, - }, - { - MethodName: "Export", - Handler: _ClientCommands_Export_Handler, - }, - { - MethodName: "ExportWorkspace", - Handler: _ClientCommands_ExportWorkspace_Handler, - }, - { - MethodName: "ExportTemplates", - Handler: _ClientCommands_ExportTemplates_Handler, - }, - { - MethodName: "ExportLocalstore", - Handler: _ClientCommands_ExportLocalstore_Handler, - }, - { - MethodName: "MakeTemplate", - Handler: _ClientCommands_MakeTemplate_Handler, - }, - { - MethodName: "MakeTemplateByObjectType", - Handler: _ClientCommands_MakeTemplateByObjectType_Handler, - }, - { - MethodName: "CloneTemplate", - Handler: _ClientCommands_CloneTemplate_Handler, - }, - { - MethodName: "ObjectDuplicate", - Handler: _ClientCommands_ObjectDuplicate_Handler, - }, - { - MethodName: "UnsplashSearch", - Handler: _ClientCommands_UnsplashSearch_Handler, - }, - { - MethodName: "UnsplashDownload", - Handler: _ClientCommands_UnsplashDownload_Handler, - }, - { - MethodName: "ApplyTemplate", - Handler: _ClientCommands_ApplyTemplate_Handler, + MethodName: "LogSend", + Handler: _ClientCommands_LogSend_Handler, }, { MethodName: "DebugSync", @@ -5866,6 +5504,18 @@ var _ClientCommands_serviceDesc = grpc.ServiceDesc{ MethodName: "DebugTree", Handler: _ClientCommands_DebugTree_Handler, }, + { + MethodName: "DebugExportLocalstore", + Handler: _ClientCommands_DebugExportLocalstore_Handler, + }, + { + MethodName: "DebugPing", + Handler: _ClientCommands_DebugPing_Handler, + }, + { + MethodName: "MetricsSetParameters", + Handler: _ClientCommands_MetricsSetParameters_Handler, + }, }, Streams: []grpc.StreamDesc{ { diff --git a/pkg/lib/datastore/clientds/clientds.go b/pkg/lib/datastore/clientds/clientds.go index ebc3b85a3..75febc89e 100644 --- a/pkg/lib/datastore/clientds/clientds.go +++ b/pkg/lib/datastore/clientds/clientds.go @@ -27,11 +27,12 @@ import ( ) const ( - CName = "datastore" - liteDSDir = "ipfslite" - logstoreDSDir = "logstore" - localstoreDSDir = "localstore" - threadsDbDSDir = "collection" + string(os.PathSeparator) + "eventstore" + CName = "datastore" + liteOldDSDir = "ipfslite" // used as a fallback for the existing repos + liteDSDir = "ipfslite_v3" + logstoreOldDSDir = "logstore" // used for migration to the localstoreDSDir and then removed + localstoreDSDir = "localstore" + threadsDbDSDir = "collection" + string(os.PathSeparator) + "eventstore" valueLogExtenderKey = "_extend" valueLogExtenderSize = 1024 @@ -40,28 +41,33 @@ const ( var log = logging.Logger("anytype-clientds") type clientds struct { - running bool - litestoreDS *dsbadgerv1.Datastore - logstoreDS *dsbadgerv1.Datastore - localstoreDS *dsbadgerv3.Datastore - threadsDbDS *textileBadger.Datastore - cfg Config - repoPath string - migrations []migration + running bool + litestoreOldDS *dsbadgerv1.Datastore + litestoreDS *dsbadgerv3.Datastore + + logstoreOldDS *dsbadgerv1.Datastore // logstore moved to localstoreDS + localstoreDS *dsbadgerv3.Datastore + threadsDbDS *textileBadger.Datastore + cfg Config + repoPath string + migrations []migration } type Config struct { - Litestore dsbadgerv1.Options - Logstore dsbadgerv1.Options + Litestore dsbadgerv3.Options + LitestoreOld dsbadgerv1.Options + LogstoreOld dsbadgerv1.Options + Localstore dsbadgerv3.Options TextileDb dsbadgerv1.Options } var DefaultConfig = Config{ - Litestore: dsbadgerv1.DefaultOptions, - Logstore: dsbadgerv1.DefaultOptions, - TextileDb: dsbadgerv1.DefaultOptions, - Localstore: dsbadgerv3.DefaultOptions, + Litestore: dsbadgerv3.DefaultOptions, + LitestoreOld: dsbadgerv1.DefaultOptions, + LogstoreOld: dsbadgerv1.DefaultOptions, + TextileDb: dsbadgerv1.DefaultOptions, + Localstore: dsbadgerv3.DefaultOptions, } type DSConfigGetter interface { @@ -74,26 +80,38 @@ type migration struct { } func init() { - // lets set badger options inside the init, otherwise we need to directly import the badger intp MW - DefaultConfig.Logstore.ValueLogFileSize = 64 * 1024 * 1024 // Badger will rotate value log files after 64MB. GC only works starting from the 2nd value log file - DefaultConfig.Logstore.GcDiscardRatio = 0.2 // allow up to 20% value log overhead - DefaultConfig.Logstore.GcInterval = time.Minute * 10 // run GC every 10 minutes - DefaultConfig.Logstore.GcSleep = time.Second * 5 // sleep between rounds of one GC cycle(it has multiple rounds within one cycle) - DefaultConfig.Logstore.ValueThreshold = 1024 // store up to 1KB of value within the LSM tree itself to speed-up details filter queries - DefaultConfig.Logstore.Logger = logging.Logger("badger-logstore") + // lets set badger options inside the init, otherwise we need to directly import the badger intp MW + DefaultConfig.LogstoreOld.ValueLogFileSize = 64 * 1024 * 1024 // Badger will rotate value log files after 64MB. GC only works starting from the 2nd value log file + DefaultConfig.LogstoreOld.GcDiscardRatio = 0.2 // allow up to 20% value log overhead + DefaultConfig.LogstoreOld.GcInterval = time.Minute * 10 // run GC every 10 minutes + DefaultConfig.LogstoreOld.GcSleep = time.Second * 5 // sleep between rounds of one GC cycle(it has multiple rounds within one cycle) + DefaultConfig.LogstoreOld.ValueThreshold = 1024 // store up to 1KB of value within the LSM tree itself to speed-up details filter queries + DefaultConfig.LogstoreOld.Logger = logging.Logger("badger-logstore-old") + + // used to store objects localstore + threads logs info DefaultConfig.Localstore.MemTableSize = 16 * 1024 * 1024 // Memtable saves all values below value threshold + write ahead log, actual file size is 2x the amount, the size is preallocated DefaultConfig.Localstore.ValueLogFileSize = 16 * 1024 * 1024 // Vlog has all values more than value threshold, actual file uses 2x the amount, the size is preallocated - DefaultConfig.Localstore.GcDiscardRatio = 0.2 // allow up to 20% value log overhead - DefaultConfig.Localstore.GcInterval = time.Minute * 10 // run GC every 10 minutes - DefaultConfig.Localstore.GcSleep = time.Second * 5 // sleep between rounds of one GC cycle(it has multiple rounds within one cycle) - DefaultConfig.Localstore.ValueThreshold = 1024 // store up to 1KB of value within the LSM tree itself to speed-up details filter queries + DefaultConfig.Localstore.GcInterval = 0 // we don't need to have value GC here, because all the values should fit in the ValueThreshold. So GC will be done by the live LSM compactions + DefaultConfig.Localstore.GcSleep = 0 + DefaultConfig.Localstore.ValueThreshold = 1024 * 512 // Object details should be small enough, e.g. under 10KB. 512KB here is just a precaution. DefaultConfig.Localstore.Logger = logging.Logger("badger-localstore") DefaultConfig.Localstore.SyncWrites = false + DefaultConfig.Litestore.WithCompression(0) // disable compression + DefaultConfig.Litestore.MemTableSize = 64 * 1024 * 1024 // Memtable saves all values below value threshold + write ahead log, actual file size is 2x the amount, the size is preallocated + DefaultConfig.Litestore.ValueLogFileSize = 64 * 1024 * 1024 // Vlog has all values more than value threshold, actual file uses 2x the amount, the size is preallocated + DefaultConfig.Litestore.GcInterval = 0 // disable regular GC because current use case leads only to grow of keys. If we call some methods like FileListOffload we need to call GC manually after + DefaultConfig.Litestore.GcSleep = 0 // sleep between rounds of one GC cycle(it has multiple rounds within one cycle) + DefaultConfig.Litestore.ValueThreshold = 1024 // todo: we should consider bigger value in case user has HDD DefaultConfig.Litestore.Logger = logging.Logger("badger-litestore") - DefaultConfig.Litestore.ValueLogFileSize = 64 * 1024 * 1024 - DefaultConfig.Litestore.GcDiscardRatio = 0.1 + DefaultConfig.Litestore.SyncWrites = false + DefaultConfig.Litestore.WithCompression(0) // disable compression + + DefaultConfig.LitestoreOld.Logger = logging.Logger("badger-litestore-old") + DefaultConfig.LitestoreOld.ValueLogFileSize = 64 * 1024 * 1024 + DefaultConfig.LitestoreOld.GcDiscardRatio = 0.1 + DefaultConfig.TextileDb.Logger = logging.Logger("badger-textiledb") // we don't need to tune litestore&threadsDB badger instances because they should be fine with defaults for now } @@ -120,20 +138,36 @@ func (r *clientds) Init(a *app.App) (err error) { migrationFunc: r.migrateFileStoreAndIndexesBadger, migrationKey: ds.NewKey("/migration/localstore/badgerv3/filesindexes"), }, + { + migrationFunc: r.migrateLogstore, + migrationKey: ds.NewKey("/migration/logstore/badgerv3"), + }, } return nil } func (r *clientds) Run() error { var err error - r.litestoreDS, err = dsbadgerv1.NewDatastore(filepath.Join(r.repoPath, liteDSDir), &r.cfg.Litestore) - if err != nil { - return err + + litestoreOldPath := filepath.Join(r.repoPath, liteOldDSDir) + if _, err := os.Stat(litestoreOldPath); !os.IsNotExist(err) { + r.litestoreOldDS, err = dsbadgerv1.NewDatastore(litestoreOldPath, &r.cfg.LitestoreOld) + if err != nil { + return err + } + } else { + r.litestoreDS, err = dsbadgerv3.NewDatastore(filepath.Join(r.repoPath, liteDSDir), &r.cfg.Litestore) + if err != nil { + return err + } } - r.logstoreDS, err = dsbadgerv1.NewDatastore(filepath.Join(r.repoPath, logstoreDSDir), &r.cfg.Logstore) - if err != nil { - return err + logstoreOldDSDirPath := filepath.Join(r.repoPath, logstoreOldDSDir) + if _, err := os.Stat(logstoreOldDSDirPath); !os.IsNotExist(err) { + r.logstoreOldDS, err = dsbadgerv1.NewDatastore(logstoreOldDSDirPath, &r.cfg.LogstoreOld) + if err != nil { + return err + } } r.localstoreDS, err = dsbadgerv3.NewDatastore(filepath.Join(r.repoPath, localstoreDSDir), &r.cfg.Localstore) @@ -185,11 +219,14 @@ func (r *clientds) migrateIfNeeded() error { return nil } -func (r *clientds) migrateWithKey(chooseKey func(item *dgraphbadgerv1.Item) bool) error { - s := r.logstoreDS.DB.NewStream() +func (r *clientds) migrateWithKey(from *dsbadgerv1.Datastore, to *dsbadgerv3.Datastore, chooseKey func(item *dgraphbadgerv1.Item) bool) error { + if from == nil { + return fmt.Errorf("from ds is nil") + } + s := from.DB.NewStream() s.ChooseKey = chooseKey s.Send = func(list *dgraphbadgerv1pb.KVList) error { - batch, err := r.localstoreDS.Batch() + batch, err := to.Batch() if err != nil { return err } @@ -205,7 +242,10 @@ func (r *clientds) migrateWithKey(chooseKey func(item *dgraphbadgerv1.Item) bool } func (r *clientds) migrateLocalStoreBadger() error { - return r.migrateWithKey(func(item *dgraphbadgerv1.Item) bool { + if r.logstoreOldDS == nil { + return nil + } + return r.migrateWithKey(r.logstoreOldDS, r.localstoreDS, func(item *dgraphbadgerv1.Item) bool { keyString := string(item.Key()) res := strings.HasPrefix(keyString, "/pages") || strings.HasPrefix(keyString, "/workspaces") || @@ -215,20 +255,53 @@ func (r *clientds) migrateLocalStoreBadger() error { } func (r *clientds) migrateFileStoreAndIndexesBadger() error { - return r.migrateWithKey(func(item *dgraphbadgerv1.Item) bool { + if r.logstoreOldDS == nil { + return nil + } + return r.migrateWithKey(r.logstoreOldDS, r.localstoreDS, func(item *dgraphbadgerv1.Item) bool { keyString := string(item.Key()) return strings.HasPrefix(keyString, "/files") || strings.HasPrefix(keyString, "/idx") }) } +func (r *clientds) migrateLogstore() error { + if r.logstoreOldDS == nil { + return nil + } + return r.migrateWithKey(r.logstoreOldDS, r.localstoreDS, func(item *dgraphbadgerv1.Item) bool { + keyString := string(item.Key()) + return strings.HasPrefix(keyString, "/thread") + }) +} + type ValueLogInfo struct { Index int64 Size int64 } func (r *clientds) RunBlockstoreGC() (freed int64, err error) { + if r.litestoreOldDS != nil { + freed1, err := runBlockstoreGC(filepath.Join(r.repoPath, liteOldDSDir), r.litestoreOldDS, DefaultConfig.LitestoreOld.ValueLogFileSize) + if err != nil { + return 0, err + } + freed += freed1 + } + + if r.litestoreDS != nil { + freed2, err := runBlockstoreGC(filepath.Join(r.repoPath, liteDSDir), r.litestoreDS, DefaultConfig.Litestore.ValueLogFileSize) + if err != nil { + return 0, err + } + freed += freed2 + } + + return +} + +func runBlockstoreGC(dsPath string, dsInstance ds.Datastore, valueLogSize int64) (freed int64, err error) { getValueLogsInfo := func() (totalSize int64, valLogs []*ValueLogInfo, err error) { - err = filepath.Walk(filepath.Join(r.repoPath, liteDSDir), func(_ string, info os.FileInfo, err error) error { + err = filepath.Walk(dsPath, func(_ string, info os.FileInfo, err error) error { if err != nil { return err } @@ -264,17 +337,23 @@ func (r *clientds) RunBlockstoreGC() (freed int64, err error) { return 0, nil } - if valLogs[len(valLogs)-1].Size > DefaultConfig.Litestore.ValueLogFileSize { + if valLogs[len(valLogs)-1].Size > valueLogSize { // in case we have the last value log exceeding the max value log size v := make([]byte, valueLogExtenderSize) - r.litestoreDS.Put(ds.NewKey(valueLogExtenderKey), v) + _ = dsInstance.Put(ds.NewKey(valueLogExtenderKey), v) } var total int var maxErrors = 1 for { + if v1, ok := dsInstance.(*dsbadgerv1.Datastore); ok { + err = v1.DB.RunValueLogGC(0.000000000001) + } else if v3, ok := dsInstance.(*dsbadgerv3.Datastore); ok { + err = v3.DB.RunValueLogGC(0.000000000001) + } else { + panic("badger version unsupported") + } // set the discard ratio to the lowest value means we want to rewrite value log if we have any values removed - err = r.litestoreDS.DB.RunValueLogGC(0.000000000001) if err != nil && err.Error() == "Value log GC attempt didn't result in any cleanup" { maxErrors-- if maxErrors == 0 { @@ -288,7 +367,7 @@ func (r *clientds) RunBlockstoreGC() (freed int64, err error) { totalSizeAfter, vlogsAfter, err := getValueLogsInfo() - results, err := r.litestoreDS.Query(query.Query{Limit: 0, KeysOnly: true, ReturnsSizes: true}) + results, err := dsInstance.Query(query.Query{Limit: 0, KeysOnly: true, ReturnsSizes: true}) var ( keysTotal int64 keysTotalSize int64 @@ -313,6 +392,11 @@ func (r *clientds) PeerstoreDS() (ds.Batching, error) { if !r.running { return nil, fmt.Errorf("exact ds may be requested only after Run") } + + if r.litestoreOldDS != nil { + return r.litestoreOldDS, nil + } + return r.litestoreDS, nil } @@ -320,6 +404,11 @@ func (r *clientds) BlockstoreDS() (ds.Batching, error) { if !r.running { return nil, fmt.Errorf("exact ds may be requested only after Run") } + + if r.litestoreOldDS != nil { + return r.litestoreOldDS, nil + } + return r.litestoreDS, nil } @@ -327,7 +416,7 @@ func (r *clientds) LogstoreDS() (datastore.DSTxnBatching, error) { if !r.running { return nil, fmt.Errorf("exact ds may be requested only after Run") } - return r.logstoreDS, nil + return r.localstoreDS, nil } func (r *clientds) ThreadsDbDS() (keytransform.TxnDatastoreExtended, error) { @@ -349,13 +438,6 @@ func (r *clientds) Name() (name string) { } func (r *clientds) Close() (err error) { - if r.logstoreDS != nil { - err2 := r.logstoreDS.Close() - if err2 != nil { - err = multierror.Append(err, err2) - } - } - if r.litestoreDS != nil { err2 := r.litestoreDS.Close() if err2 != nil { diff --git a/pkg/lib/gateway/gateway.go b/pkg/lib/gateway/gateway.go index 8d8753c86..e80982f3b 100644 --- a/pkg/lib/gateway/gateway.go +++ b/pkg/lib/gateway/gateway.go @@ -121,10 +121,10 @@ func (g *gateway) Addr() string { } func (g *gateway) StateChange(state int) { - switch pb.RpcDeviceStateRequestDeviceState(state) { - case pb.RpcDeviceStateRequest_FOREGROUND: + switch pb.RpcAppSetDeviceStateRequestDeviceState(state) { + case pb.RpcAppSetDeviceStateRequest_FOREGROUND: g.startServer() - case pb.RpcDeviceStateRequest_BACKGROUND: + case pb.RpcAppSetDeviceStateRequest_BACKGROUND: if err := g.stopServer(); err != nil { log.Errorf("err gateway close: %+v", err) } diff --git a/pkg/lib/pb/model/models.pb.go b/pkg/lib/pb/model/models.pb.go index 66ae37639..184aa064b 100644 --- a/pkg/lib/pb/model/models.pb.go +++ b/pkg/lib/pb/model/models.pb.go @@ -279,6 +279,31 @@ func (BlockContentLayoutStyle) EnumDescriptor() ([]byte, []int) { return fileDescriptor_98a910b73321e591, []int{1, 1, 0, 0} } +type BlockContentLinkIconSize int32 + +const ( + BlockContentLink_Small BlockContentLinkIconSize = 0 + BlockContentLink_Medium BlockContentLinkIconSize = 1 +) + +var BlockContentLinkIconSize_name = map[int32]string{ + 0: "Small", + 1: "Medium", +} + +var BlockContentLinkIconSize_value = map[string]int32{ + "Small": 0, + "Medium": 1, +} + +func (x BlockContentLinkIconSize) String() string { + return proto.EnumName(BlockContentLinkIconSize_name, int32(x)) +} + +func (BlockContentLinkIconSize) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_98a910b73321e591, []int{1, 1, 1, 0} +} + type BlockContentLinkStyle int32 const ( @@ -307,7 +332,63 @@ func (x BlockContentLinkStyle) String() string { } func (BlockContentLinkStyle) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_98a910b73321e591, []int{1, 1, 1, 0} + return fileDescriptor_98a910b73321e591, []int{1, 1, 1, 1} +} + +type BlockContentLinkDescription int32 + +const ( + BlockContentLink_None BlockContentLinkDescription = 0 + BlockContentLink_Added BlockContentLinkDescription = 1 + BlockContentLink_Content BlockContentLinkDescription = 2 +) + +var BlockContentLinkDescription_name = map[int32]string{ + 0: "None", + 1: "Added", + 2: "Content", +} + +var BlockContentLinkDescription_value = map[string]int32{ + "None": 0, + "Added": 1, + "Content": 2, +} + +func (x BlockContentLinkDescription) String() string { + return proto.EnumName(BlockContentLinkDescription_name, int32(x)) +} + +func (BlockContentLinkDescription) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_98a910b73321e591, []int{1, 1, 1, 2} +} + +type BlockContentLinkCardStyle int32 + +const ( + BlockContentLink_Text BlockContentLinkCardStyle = 0 + BlockContentLink_Card BlockContentLinkCardStyle = 1 + BlockContentLink_Inline BlockContentLinkCardStyle = 2 +) + +var BlockContentLinkCardStyle_name = map[int32]string{ + 0: "Text", + 1: "Card", + 2: "Inline", +} + +var BlockContentLinkCardStyle_value = map[string]int32{ + "Text": 0, + "Card": 1, + "Inline": 2, +} + +func (x BlockContentLinkCardStyle) String() string { + return proto.EnumName(BlockContentLinkCardStyle_name, int32(x)) +} + +func (BlockContentLinkCardStyle) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_98a910b73321e591, []int{1, 1, 1, 3} } type BlockContentDivStyle int32 @@ -1586,9 +1667,13 @@ func (m *BlockContentLayout) GetStyle() BlockContentLayoutStyle { // // Link: block to link some content from an external sources. type BlockContentLink struct { - TargetBlockId string `protobuf:"bytes,1,opt,name=targetBlockId,proto3" json:"targetBlockId,omitempty"` - Style BlockContentLinkStyle `protobuf:"varint,2,opt,name=style,proto3,enum=anytype.model.BlockContentLinkStyle" json:"style,omitempty"` - Fields *types.Struct `protobuf:"bytes,3,opt,name=fields,proto3" json:"fields,omitempty"` + TargetBlockId string `protobuf:"bytes,1,opt,name=targetBlockId,proto3" json:"targetBlockId,omitempty"` + Style BlockContentLinkStyle `protobuf:"varint,2,opt,name=style,proto3,enum=anytype.model.BlockContentLinkStyle" json:"style,omitempty"` + Fields *types.Struct `protobuf:"bytes,3,opt,name=fields,proto3" json:"fields,omitempty"` + IconSize BlockContentLinkIconSize `protobuf:"varint,4,opt,name=iconSize,proto3,enum=anytype.model.BlockContentLinkIconSize" json:"iconSize,omitempty"` + CardStyle BlockContentLinkCardStyle `protobuf:"varint,5,opt,name=cardStyle,proto3,enum=anytype.model.BlockContentLinkCardStyle" json:"cardStyle,omitempty"` + Description BlockContentLinkDescription `protobuf:"varint,6,opt,name=description,proto3,enum=anytype.model.BlockContentLinkDescription" json:"description,omitempty"` + Relations []string `protobuf:"bytes,7,rep,name=relations,proto3" json:"relations,omitempty"` } func (m *BlockContentLink) Reset() { *m = BlockContentLink{} } @@ -1645,6 +1730,34 @@ func (m *BlockContentLink) GetFields() *types.Struct { return nil } +func (m *BlockContentLink) GetIconSize() BlockContentLinkIconSize { + if m != nil { + return m.IconSize + } + return BlockContentLink_Small +} + +func (m *BlockContentLink) GetCardStyle() BlockContentLinkCardStyle { + if m != nil { + return m.CardStyle + } + return BlockContentLink_Text +} + +func (m *BlockContentLink) GetDescription() BlockContentLinkDescription { + if m != nil { + return m.Description + } + return BlockContentLink_None +} + +func (m *BlockContentLink) GetRelations() []string { + if m != nil { + return m.Relations + } + return nil +} + // // Divider: block, that contains only one horizontal thin line type BlockContentDiv struct { @@ -2826,6 +2939,7 @@ type Account struct { Avatar *AccountAvatar `protobuf:"bytes,3,opt,name=avatar,proto3" json:"avatar,omitempty"` Config *AccountConfig `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"` Status *AccountStatus `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"` + Info *AccountInfo `protobuf:"bytes,6,opt,name=info,proto3" json:"info,omitempty"` } func (m *Account) Reset() { *m = Account{} } @@ -2896,6 +3010,13 @@ func (m *Account) GetStatus() *AccountStatus { return nil } +func (m *Account) GetInfo() *AccountInfo { + if m != nil { + return m.Info + } + return nil +} + //* // Avatar of a user's account. It could be an image or color type AccountAvatar struct { @@ -3111,6 +3232,106 @@ func (m *AccountStatus) GetDeletionDate() int64 { return 0 } +type AccountInfo struct { + HomeObjectId string `protobuf:"bytes,2,opt,name=homeObjectId,proto3" json:"homeObjectId,omitempty"` + ArchiveObjectId string `protobuf:"bytes,3,opt,name=archiveObjectId,proto3" json:"archiveObjectId,omitempty"` + ProfileObjectId string `protobuf:"bytes,4,opt,name=profileObjectId,proto3" json:"profileObjectId,omitempty"` + MarketplaceTypeObjectId string `protobuf:"bytes,5,opt,name=marketplaceTypeObjectId,proto3" json:"marketplaceTypeObjectId,omitempty"` + MarketplaceRelationObjectId string `protobuf:"bytes,6,opt,name=marketplaceRelationObjectId,proto3" json:"marketplaceRelationObjectId,omitempty"` + MarketplaceTemplateObjectId string `protobuf:"bytes,7,opt,name=marketplaceTemplateObjectId,proto3" json:"marketplaceTemplateObjectId,omitempty"` + DeviceId string `protobuf:"bytes,8,opt,name=deviceId,proto3" json:"deviceId,omitempty"` + GatewayUrl string `protobuf:"bytes,101,opt,name=gatewayUrl,proto3" json:"gatewayUrl,omitempty"` +} + +func (m *AccountInfo) Reset() { *m = AccountInfo{} } +func (m *AccountInfo) String() string { return proto.CompactTextString(m) } +func (*AccountInfo) ProtoMessage() {} +func (*AccountInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_98a910b73321e591, []int{4, 3} +} +func (m *AccountInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *AccountInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_AccountInfo.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *AccountInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_AccountInfo.Merge(m, src) +} +func (m *AccountInfo) XXX_Size() int { + return m.Size() +} +func (m *AccountInfo) XXX_DiscardUnknown() { + xxx_messageInfo_AccountInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_AccountInfo proto.InternalMessageInfo + +func (m *AccountInfo) GetHomeObjectId() string { + if m != nil { + return m.HomeObjectId + } + return "" +} + +func (m *AccountInfo) GetArchiveObjectId() string { + if m != nil { + return m.ArchiveObjectId + } + return "" +} + +func (m *AccountInfo) GetProfileObjectId() string { + if m != nil { + return m.ProfileObjectId + } + return "" +} + +func (m *AccountInfo) GetMarketplaceTypeObjectId() string { + if m != nil { + return m.MarketplaceTypeObjectId + } + return "" +} + +func (m *AccountInfo) GetMarketplaceRelationObjectId() string { + if m != nil { + return m.MarketplaceRelationObjectId + } + return "" +} + +func (m *AccountInfo) GetMarketplaceTemplateObjectId() string { + if m != nil { + return m.MarketplaceTemplateObjectId + } + return "" +} + +func (m *AccountInfo) GetDeviceId() string { + if m != nil { + return m.DeviceId + } + return "" +} + +func (m *AccountInfo) GetGatewayUrl() string { + if m != nil { + return m.GatewayUrl + } + return "" +} + type LinkPreview struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` @@ -3954,7 +4175,10 @@ func init() { proto.RegisterEnum("anytype.model.BlockPosition", BlockPosition_name, BlockPosition_value) proto.RegisterEnum("anytype.model.BlockAlign", BlockAlign_name, BlockAlign_value) proto.RegisterEnum("anytype.model.BlockContentLayoutStyle", BlockContentLayoutStyle_name, BlockContentLayoutStyle_value) + proto.RegisterEnum("anytype.model.BlockContentLinkIconSize", BlockContentLinkIconSize_name, BlockContentLinkIconSize_value) proto.RegisterEnum("anytype.model.BlockContentLinkStyle", BlockContentLinkStyle_name, BlockContentLinkStyle_value) + proto.RegisterEnum("anytype.model.BlockContentLinkDescription", BlockContentLinkDescription_name, BlockContentLinkDescription_value) + proto.RegisterEnum("anytype.model.BlockContentLinkCardStyle", BlockContentLinkCardStyle_name, BlockContentLinkCardStyle_value) proto.RegisterEnum("anytype.model.BlockContentDivStyle", BlockContentDivStyle_name, BlockContentDivStyle_value) proto.RegisterEnum("anytype.model.BlockContentTextStyle", BlockContentTextStyle_name, BlockContentTextStyle_value) proto.RegisterEnum("anytype.model.BlockContentTextMarkType", BlockContentTextMarkType_name, BlockContentTextMarkType_value) @@ -4005,6 +4229,7 @@ func init() { proto.RegisterType((*AccountAvatar)(nil), "anytype.model.Account.Avatar") proto.RegisterType((*AccountConfig)(nil), "anytype.model.Account.Config") proto.RegisterType((*AccountStatus)(nil), "anytype.model.Account.Status") + proto.RegisterType((*AccountInfo)(nil), "anytype.model.Account.Info") proto.RegisterType((*LinkPreview)(nil), "anytype.model.LinkPreview") proto.RegisterType((*Restrictions)(nil), "anytype.model.Restrictions") proto.RegisterType((*RestrictionsDataviewRestrictions)(nil), "anytype.model.Restrictions.DataviewRestrictions") @@ -4024,244 +4249,259 @@ func init() { } var fileDescriptor_98a910b73321e591 = []byte{ - // 3777 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x3a, 0x4d, 0x93, 0x24, 0xc7, - 0x55, 0x53, 0xdd, 0x55, 0xfd, 0xf1, 0x66, 0xa6, 0x37, 0x27, 0x77, 0xbd, 0x6a, 0xb7, 0xe4, 0xf5, - 0xba, 0x10, 0xf2, 0xb2, 0x96, 0x7b, 0xa5, 0x59, 0xc9, 0x46, 0x02, 0x7d, 0xcc, 0xc7, 0xae, 0x67, - 0x62, 0x77, 0x35, 0xab, 0xea, 0xd9, 0x31, 0x38, 0x08, 0x42, 0xd9, 0x55, 0x39, 0xdd, 0xa5, 0xa9, - 0xae, 0x6c, 0x67, 0x65, 0xcf, 0x4e, 0x3b, 0x38, 0xd8, 0x18, 0x03, 0x17, 0x22, 0x0c, 0x04, 0x01, - 0x47, 0xc3, 0xd9, 0x57, 0x22, 0x20, 0x82, 0x1b, 0x11, 0x04, 0x44, 0x70, 0xd0, 0xd1, 0xdc, 0x08, - 0x29, 0xf8, 0x03, 0x9c, 0x39, 0x10, 0x2f, 0x33, 0xab, 0xba, 0xba, 0x67, 0x76, 0xb6, 0x57, 0x70, - 0xab, 0xf7, 0xea, 0xbd, 0x97, 0x2f, 0x5f, 0xbd, 0xcf, 0xcc, 0x82, 0x57, 0xc7, 0x27, 0x83, 0x3b, - 0x49, 0xdc, 0xbf, 0x33, 0xee, 0xdf, 0x19, 0x89, 0x88, 0x27, 0x77, 0xc6, 0x52, 0x28, 0x91, 0x19, - 0x20, 0xeb, 0x6a, 0x88, 0xae, 0xb3, 0x74, 0xaa, 0xa6, 0x63, 0xde, 0xd5, 0xd8, 0xce, 0x2b, 0x03, - 0x21, 0x06, 0x09, 0x37, 0xa4, 0xfd, 0xc9, 0xf1, 0x9d, 0x4c, 0xc9, 0x49, 0xa8, 0x0c, 0xb1, 0xff, - 0xef, 0x15, 0xb8, 0xde, 0x1b, 0x31, 0xa9, 0xb6, 0x13, 0x11, 0x9e, 0xf4, 0x52, 0x36, 0xce, 0x86, - 0x42, 0x6d, 0xb3, 0x8c, 0xd3, 0xd7, 0xa1, 0xd6, 0x47, 0x64, 0xd6, 0x76, 0x6e, 0x56, 0x6f, 0xad, - 0x6e, 0x5e, 0xeb, 0xce, 0x09, 0xee, 0x6a, 0x8e, 0xc0, 0xd2, 0xd0, 0x37, 0xa1, 0x1e, 0x71, 0xc5, - 0xe2, 0x24, 0x6b, 0x57, 0x6e, 0x3a, 0xb7, 0x56, 0x37, 0x5f, 0xea, 0x9a, 0x85, 0xbb, 0xf9, 0xc2, - 0xdd, 0x9e, 0x5e, 0x38, 0xc8, 0xe9, 0xe8, 0x5d, 0x68, 0x1c, 0xc7, 0x09, 0x7f, 0xc0, 0xa7, 0x59, - 0xbb, 0x7a, 0x39, 0x4f, 0x41, 0x48, 0x3f, 0x80, 0x16, 0x3f, 0x53, 0x92, 0x05, 0x3c, 0x61, 0x2a, - 0x16, 0x69, 0xd6, 0x76, 0xb5, 0x76, 0x2f, 0x2d, 0x68, 0x97, 0xbf, 0x0f, 0x16, 0xc8, 0xe9, 0x4d, - 0x58, 0x15, 0xfd, 0x4f, 0x79, 0xa8, 0x0e, 0xa7, 0x63, 0x9e, 0xb5, 0xbd, 0x9b, 0xd5, 0x5b, 0xcd, - 0xa0, 0x8c, 0xa2, 0xef, 0xc0, 0x6a, 0x28, 0x92, 0x84, 0x87, 0x46, 0x7e, 0xed, 0x72, 0xd5, 0xca, - 0xb4, 0xfe, 0x3f, 0xdf, 0x06, 0x4f, 0xdb, 0x85, 0xb6, 0xa0, 0x12, 0x47, 0x6d, 0xe7, 0xa6, 0x73, - 0xab, 0x19, 0x54, 0xe2, 0x88, 0xde, 0x81, 0xda, 0x71, 0xcc, 0x93, 0xe8, 0xb9, 0xe6, 0xb1, 0x64, - 0xf4, 0x1e, 0xac, 0x49, 0x9e, 0x29, 0x19, 0x5b, 0x35, 0x8c, 0x85, 0xbe, 0x71, 0xd1, 0x47, 0xe8, - 0x06, 0x25, 0xc2, 0x60, 0x8e, 0x0d, 0xb7, 0x1b, 0x0e, 0xe3, 0x24, 0x92, 0x3c, 0xdd, 0x8f, 0x8c, - 0xb1, 0x9a, 0x41, 0x19, 0x45, 0x6f, 0xc1, 0x95, 0x3e, 0x0b, 0x4f, 0x06, 0x52, 0x4c, 0xd2, 0x68, - 0x47, 0x24, 0x42, 0xb6, 0x3d, 0xad, 0xf6, 0x22, 0x9a, 0xbe, 0x01, 0x1e, 0x4b, 0xe2, 0x41, 0xaa, - 0x4d, 0xd2, 0xda, 0xec, 0x5c, 0xa8, 0xcb, 0x16, 0x52, 0x04, 0x86, 0x90, 0xee, 0x03, 0x64, 0xe8, - 0x5d, 0xda, 0x49, 0xda, 0xab, 0x7a, 0x0b, 0xdf, 0xbc, 0x90, 0x6d, 0x47, 0xa4, 0x8a, 0xa7, 0xaa, - 0xdb, 0x2b, 0xc8, 0xf7, 0x56, 0x82, 0x12, 0x33, 0xfd, 0x2e, 0xb8, 0x8a, 0x9f, 0xa9, 0x76, 0xeb, - 0x12, 0x3b, 0xe4, 0x42, 0x0e, 0xf9, 0x99, 0xda, 0x5b, 0x09, 0x34, 0x03, 0x32, 0xa2, 0xf7, 0xb4, - 0xaf, 0x2c, 0xc1, 0x78, 0x3f, 0x4e, 0x38, 0x32, 0x22, 0x03, 0x7d, 0x0f, 0x6a, 0x09, 0x9b, 0x8a, - 0x89, 0x6a, 0x13, 0xcd, 0xfa, 0x6b, 0x97, 0xb2, 0x3e, 0xd4, 0xa4, 0x7b, 0x2b, 0x81, 0x65, 0xa2, - 0x6f, 0x41, 0x35, 0x8a, 0x4f, 0xdb, 0x1b, 0x9a, 0xf7, 0xe6, 0xa5, 0xbc, 0xbb, 0xf1, 0xe9, 0xde, - 0x4a, 0x80, 0xe4, 0x74, 0x07, 0x1a, 0x7d, 0x21, 0x4e, 0x46, 0x4c, 0x9e, 0xb4, 0xa9, 0x66, 0xfd, - 0xf5, 0x4b, 0x59, 0xb7, 0x2d, 0xf1, 0xde, 0x4a, 0x50, 0x30, 0xe2, 0x96, 0xe3, 0x50, 0xa4, 0xed, - 0xab, 0x4b, 0x6c, 0x79, 0x3f, 0x14, 0x29, 0x6e, 0x19, 0x19, 0x90, 0x31, 0x89, 0xd3, 0x93, 0xf6, - 0xb5, 0x25, 0x18, 0x1f, 0xc6, 0x29, 0xae, 0xaa, 0x19, 0x50, 0xed, 0x88, 0x29, 0x76, 0x1a, 0xf3, - 0xa7, 0xed, 0xaf, 0x2c, 0xa1, 0xf6, 0xae, 0x25, 0x46, 0xb5, 0x73, 0x46, 0x14, 0x22, 0x6d, 0x9c, - 0xb6, 0xaf, 0x2f, 0x21, 0x24, 0x0f, 0x6a, 0x14, 0x92, 0x33, 0xd2, 0xdf, 0x87, 0x8d, 0x63, 0xce, - 0xd4, 0x44, 0xf2, 0x68, 0x96, 0x23, 0x5e, 0xd2, 0xd2, 0xba, 0x97, 0x7f, 0xfb, 0x45, 0xae, 0xbd, - 0x95, 0xe0, 0xbc, 0x28, 0xfa, 0x2e, 0x78, 0x09, 0x53, 0xfc, 0xac, 0xdd, 0xd6, 0x32, 0xfd, 0xe7, - 0x38, 0x85, 0xe2, 0x67, 0x7b, 0x2b, 0x81, 0x61, 0xa1, 0xbf, 0x03, 0x57, 0x14, 0xeb, 0x27, 0xfc, - 0xe0, 0xd8, 0x12, 0x64, 0xed, 0xaf, 0x6a, 0x29, 0xaf, 0x5f, 0xee, 0xce, 0xf3, 0x3c, 0x7b, 0x2b, - 0xc1, 0xa2, 0x98, 0xce, 0x8f, 0x60, 0xad, 0x9c, 0x04, 0x28, 0x05, 0x57, 0x72, 0x66, 0x12, 0x50, - 0x23, 0xd0, 0xcf, 0x88, 0xe3, 0x51, 0xac, 0x74, 0x02, 0x6a, 0x04, 0xfa, 0x99, 0x5e, 0x87, 0x9a, - 0xe4, 0x23, 0x71, 0xca, 0x75, 0x7e, 0x69, 0x04, 0x16, 0x42, 0xda, 0x48, 0xb2, 0x41, 0xdb, 0x35, - 0xb4, 0xf8, 0x8c, 0xb4, 0x91, 0x14, 0xe3, 0x83, 0x54, 0xe7, 0x87, 0x46, 0x60, 0xa1, 0xce, 0xdf, - 0x7d, 0x1d, 0xea, 0x56, 0x91, 0xce, 0x1f, 0x40, 0xcd, 0x04, 0x02, 0xfd, 0x00, 0xbc, 0x4c, 0x4d, - 0x13, 0xae, 0x55, 0x68, 0x6d, 0xfe, 0xc6, 0x12, 0xc1, 0xd3, 0xed, 0x21, 0x43, 0x60, 0xf8, 0xfc, - 0x37, 0xc1, 0xd3, 0x30, 0xad, 0x43, 0x35, 0x10, 0x4f, 0xc9, 0x0a, 0x05, 0xa8, 0xed, 0x88, 0x64, - 0x32, 0x4a, 0x89, 0x83, 0xc8, 0xdd, 0xf8, 0x94, 0x54, 0x10, 0xb9, 0xc7, 0x59, 0xc4, 0x25, 0xa9, - 0x76, 0xfe, 0xc3, 0x01, 0x17, 0xdd, 0x92, 0xbe, 0x0a, 0xeb, 0x8a, 0xc9, 0x01, 0x37, 0x65, 0x6d, - 0x3f, 0x4f, 0xc4, 0xf3, 0x48, 0xfa, 0x5e, 0xae, 0x62, 0x45, 0xab, 0xf8, 0xcd, 0xe7, 0xba, 0xfb, - 0x9c, 0x82, 0xa5, 0x94, 0x5e, 0x5d, 0x2a, 0xa5, 0xfb, 0xbf, 0x95, 0xef, 0xa8, 0x01, 0xee, 0x63, - 0x36, 0xe0, 0x64, 0x85, 0xae, 0x41, 0x23, 0x0f, 0x05, 0xe2, 0xd0, 0x75, 0x68, 0xee, 0xb2, 0x6c, - 0xd8, 0x17, 0x4c, 0x46, 0xa4, 0x42, 0x57, 0xa1, 0xbe, 0x25, 0xc3, 0x61, 0x7c, 0xca, 0x49, 0xb5, - 0xf3, 0x89, 0xde, 0x30, 0xfd, 0xed, 0x79, 0xb3, 0xbe, 0xf6, 0xbc, 0xbc, 0x32, 0x6f, 0xd3, 0x97, - 0x4b, 0x1a, 0x3c, 0x8c, 0x53, 0xd4, 0xa0, 0x01, 0xee, 0xae, 0x50, 0x19, 0x71, 0x3a, 0xff, 0xe6, - 0x40, 0x23, 0x4f, 0x27, 0x94, 0x40, 0x75, 0x22, 0x13, 0x6b, 0x37, 0x7c, 0xa4, 0xd7, 0xc0, 0x53, - 0xb1, 0xb2, 0xd6, 0x6a, 0x06, 0x06, 0xc0, 0xfa, 0x12, 0xf1, 0x2c, 0x94, 0xf1, 0x58, 0x87, 0x6d, - 0x55, 0xbf, 0x2b, 0xa3, 0xe8, 0x2b, 0xd0, 0x8c, 0x47, 0x6c, 0xc0, 0xf7, 0x58, 0x36, 0xd4, 0xfe, - 0xd4, 0x0c, 0x66, 0x08, 0xe4, 0x3f, 0x66, 0xa7, 0x98, 0x7c, 0xf4, 0x7b, 0x53, 0x79, 0xca, 0x28, - 0x7a, 0x17, 0x5c, 0xdc, 0xa0, 0x2d, 0x3a, 0x5f, 0x5f, 0xd8, 0x30, 0x7e, 0x96, 0xc7, 0x92, 0xa3, - 0x01, 0xbb, 0x58, 0xbe, 0x03, 0x4d, 0xdc, 0xe9, 0x80, 0x8b, 0x89, 0x0d, 0xfd, 0x38, 0x65, 0x23, - 0x6e, 0xf7, 0xa1, 0x9f, 0x3b, 0x57, 0x61, 0xe3, 0x5c, 0xac, 0x77, 0xfe, 0xb1, 0x06, 0x2e, 0x96, - 0x0d, 0xe4, 0xd0, 0x75, 0xc6, 0x72, 0xe8, 0x12, 0xf2, 0x42, 0x8e, 0x82, 0x52, 0xe6, 0x1d, 0xe5, - 0x3d, 0xf0, 0xd0, 0xa6, 0xb9, 0x9f, 0x2c, 0xc1, 0xfe, 0x08, 0xc9, 0x03, 0xc3, 0x45, 0xdb, 0x50, - 0x0f, 0x87, 0x3c, 0x3c, 0xe1, 0x91, 0x0d, 0xc7, 0x1c, 0xc4, 0x4f, 0x12, 0x96, 0x0a, 0xb6, 0x01, - 0xb4, 0xc1, 0x43, 0x91, 0xde, 0x1b, 0x89, 0x4f, 0x63, 0x6d, 0x35, 0x34, 0x78, 0x8e, 0xc8, 0xdf, - 0xee, 0xe3, 0x17, 0x68, 0xd7, 0x67, 0x6f, 0x35, 0xa2, 0x73, 0x0f, 0x3c, 0xbd, 0x36, 0xfa, 0x99, - 0xd1, 0xd9, 0x34, 0x7f, 0xaf, 0x2d, 0xa7, 0xb3, 0x55, 0xb9, 0xf3, 0xcb, 0x0a, 0xb8, 0x08, 0xd3, - 0xdb, 0xe0, 0x49, 0x96, 0x0e, 0xcc, 0x07, 0x38, 0xdf, 0x43, 0x06, 0xf8, 0x2e, 0x30, 0x24, 0xf4, - 0x03, 0xfb, 0xa1, 0x8d, 0x91, 0xbf, 0xb5, 0xdc, 0x8a, 0xa5, 0x8f, 0x8e, 0xe6, 0x18, 0x33, 0xc9, - 0x46, 0xd6, 0x0b, 0x0d, 0xe0, 0xff, 0xc2, 0x01, 0x17, 0x89, 0xe8, 0x06, 0xac, 0xf7, 0x94, 0x8c, - 0x4f, 0xb8, 0x1a, 0x4a, 0x31, 0x19, 0x0c, 0x4d, 0xf8, 0x3d, 0xe0, 0x53, 0x13, 0x6f, 0x0e, 0xa6, - 0x92, 0x7d, 0xc5, 0x92, 0x38, 0x24, 0x15, 0x0c, 0x8b, 0x6d, 0x91, 0x44, 0xa4, 0x4a, 0xaf, 0xc0, - 0xea, 0x93, 0x34, 0xe2, 0x32, 0x0b, 0x85, 0xe4, 0x11, 0x71, 0x6d, 0xec, 0x9c, 0x10, 0x0f, 0xe3, - 0x15, 0x15, 0xd1, 0xdd, 0x11, 0xa9, 0xd1, 0xab, 0x70, 0x65, 0x7b, 0xbe, 0x65, 0x22, 0x75, 0x0c, - 0xe2, 0x47, 0x3c, 0x45, 0x27, 0x23, 0x0d, 0xda, 0x04, 0x4f, 0x7f, 0x05, 0xd2, 0xc4, 0xc5, 0x0e, - 0x74, 0xd3, 0x49, 0xc0, 0xff, 0x27, 0x27, 0x8f, 0xcb, 0x75, 0x68, 0x3e, 0x66, 0x92, 0x0d, 0x24, - 0x1b, 0xa3, 0x7e, 0xab, 0x50, 0x37, 0xc9, 0xed, 0x4d, 0xe2, 0xcc, 0x80, 0x4d, 0x93, 0x1b, 0x0c, - 0x70, 0x97, 0x54, 0x67, 0xc0, 0x5b, 0xc4, 0xc5, 0x35, 0x3e, 0x9e, 0x08, 0xc5, 0x89, 0x87, 0x9a, - 0xee, 0x88, 0x88, 0x93, 0x1a, 0x22, 0x0f, 0x31, 0x5e, 0x49, 0x1d, 0xf7, 0xbc, 0x83, 0xfe, 0xd3, - 0x17, 0x67, 0xa4, 0x81, 0x6a, 0xa0, 0x19, 0x79, 0x44, 0x9a, 0xf8, 0xe6, 0xa3, 0xc9, 0xa8, 0xcf, - 0x71, 0x9b, 0x80, 0x6f, 0x0e, 0xc5, 0x60, 0x90, 0x70, 0xb2, 0x8a, 0x36, 0xd8, 0x9d, 0x85, 0x34, - 0x59, 0xc3, 0x15, 0x77, 0x58, 0x92, 0x88, 0x89, 0x22, 0xeb, 0x9d, 0xcf, 0xaa, 0xe0, 0x62, 0xe7, - 0x84, 0xb1, 0x33, 0xc4, 0x28, 0xb6, 0xb1, 0x83, 0xcf, 0x45, 0x04, 0x56, 0x66, 0x11, 0x48, 0xdf, - 0xb5, 0x5f, 0xba, 0xba, 0x44, 0x0e, 0x43, 0xc1, 0xe5, 0x8f, 0x4c, 0xc1, 0x1d, 0xc5, 0x23, 0x6e, - 0x33, 0x89, 0x7e, 0x46, 0x5c, 0x16, 0xff, 0x88, 0xeb, 0x30, 0xa8, 0x06, 0xfa, 0x19, 0xa3, 0x86, - 0x45, 0x11, 0x8f, 0xb6, 0x94, 0x8e, 0x81, 0x6a, 0x90, 0x83, 0x26, 0x9a, 0x99, 0x32, 0xde, 0xff, - 0xbc, 0x68, 0xd6, 0xcb, 0xf7, 0x90, 0x3c, 0x30, 0x5c, 0xb3, 0x64, 0xd0, 0x58, 0x9e, 0xbd, 0x94, - 0x82, 0x77, 0xad, 0x37, 0x36, 0xc0, 0xfd, 0x48, 0xe4, 0x19, 0x18, 0xc9, 0x88, 0x83, 0x5f, 0x49, - 0x87, 0x21, 0xa9, 0xe0, 0xe3, 0x51, 0x1c, 0x71, 0x41, 0xaa, 0xf8, 0xb8, 0x35, 0x89, 0x62, 0x41, - 0x5c, 0xac, 0x7a, 0x8f, 0x77, 0xef, 0x13, 0xcf, 0x7f, 0xad, 0x94, 0xc8, 0xb7, 0x26, 0x4a, 0x18, - 0x31, 0xda, 0x2d, 0x1d, 0xe3, 0x65, 0x7d, 0x1e, 0x91, 0x8a, 0xff, 0x1d, 0xa4, 0x43, 0xad, 0x35, - 0x6e, 0xac, 0xa6, 0x64, 0x05, 0x7d, 0xec, 0xc9, 0x38, 0x11, 0x2c, 0x8a, 0xd3, 0x01, 0x71, 0x4c, - 0x01, 0x48, 0xed, 0x9a, 0xf7, 0xa4, 0x14, 0x58, 0x49, 0xd7, 0x00, 0x66, 0x9d, 0x78, 0xe7, 0xbf, - 0x5b, 0xb3, 0x32, 0x85, 0x6d, 0x40, 0x26, 0x26, 0x32, 0xe4, 0x3a, 0x35, 0x34, 0x03, 0x0b, 0xd1, - 0x0f, 0xc1, 0xc3, 0xf7, 0x38, 0xe0, 0x60, 0xc6, 0xb8, 0xbd, 0x54, 0xff, 0xd7, 0x3d, 0x8a, 0xf9, - 0xd3, 0xc0, 0x30, 0xd2, 0xb7, 0xa1, 0x29, 0x97, 0x1d, 0xeb, 0x66, 0x94, 0xf4, 0x06, 0x00, 0x0b, - 0x55, 0x7c, 0xca, 0x51, 0x96, 0x8d, 0xfd, 0x12, 0xa6, 0xf3, 0x2b, 0x17, 0x5c, 0x7c, 0x38, 0x37, - 0x93, 0xed, 0xcc, 0x25, 0x9c, 0x3b, 0xcb, 0x2b, 0xbc, 0xe0, 0x8f, 0xda, 0xbf, 0xab, 0x25, 0xff, - 0xfe, 0x10, 0xbc, 0x4c, 0x48, 0x95, 0x6f, 0x62, 0x49, 0x53, 0xf4, 0x84, 0x54, 0x81, 0x61, 0xa4, - 0xf7, 0xa1, 0x7e, 0x1c, 0x27, 0x8a, 0x4b, 0x33, 0xa1, 0x3e, 0xaf, 0x43, 0x2c, 0x64, 0xdc, 0xd7, - 0x4c, 0x41, 0xce, 0x4c, 0x1f, 0x96, 0x4d, 0x5a, 0xd3, 0x92, 0xba, 0xcb, 0x49, 0xba, 0xc8, 0xd2, - 0xb7, 0x81, 0x84, 0xe2, 0x94, 0xcb, 0xfc, 0xdd, 0x03, 0x3e, 0xb5, 0x25, 0xe4, 0x1c, 0x9e, 0x76, - 0xa0, 0x31, 0x8c, 0x23, 0x8e, 0x55, 0x58, 0x47, 0x4a, 0x23, 0x28, 0x60, 0xfa, 0x00, 0x1a, 0x21, - 0x93, 0x51, 0x0f, 0x63, 0xb6, 0xf9, 0xc2, 0xc6, 0x47, 0xb6, 0xa0, 0x10, 0x80, 0x0b, 0xe9, 0xc5, - 0xef, 0xc7, 0xaa, 0x0d, 0x66, 0xa1, 0x1c, 0xf6, 0xdf, 0xb2, 0xc1, 0x86, 0xe9, 0x0f, 0x3b, 0xe6, - 0x3c, 0x4c, 0x32, 0x65, 0xf2, 0xe9, 0xf7, 0x58, 0x92, 0x70, 0x39, 0x35, 0x6d, 0xe4, 0x03, 0x96, - 0xf6, 0x59, 0x4a, 0xaa, 0xfe, 0x2d, 0x70, 0xb5, 0xe4, 0x26, 0x78, 0xbd, 0x11, 0x4b, 0x12, 0xd3, - 0x7a, 0x3e, 0xe2, 0x51, 0x3c, 0x19, 0x99, 0xf0, 0x7a, 0x88, 0x7d, 0x24, 0xa9, 0x74, 0xfe, 0xa1, - 0x0a, 0x8d, 0x7c, 0xd3, 0xd8, 0x32, 0x9d, 0xf0, 0x69, 0xde, 0x32, 0x9d, 0xf0, 0xa9, 0xae, 0xb5, - 0xd9, 0x51, 0x9c, 0xc5, 0x7d, 0xdb, 0x3b, 0x34, 0x82, 0x19, 0x02, 0xcb, 0xd5, 0xd3, 0x38, 0x52, - 0x43, 0xed, 0x3a, 0x5e, 0x60, 0x00, 0x1c, 0xc7, 0x23, 0xa6, 0xf8, 0x7e, 0x1a, 0x26, 0x93, 0x88, - 0x1f, 0x62, 0xaa, 0x33, 0xed, 0xf6, 0x22, 0x9a, 0xfe, 0x2e, 0x80, 0x8a, 0x47, 0xfc, 0xbe, 0x90, - 0x23, 0xa6, 0x6c, 0x7b, 0xf4, 0xce, 0x8b, 0x7d, 0xdc, 0xee, 0x61, 0x21, 0x20, 0x28, 0x09, 0x43, - 0xd1, 0xb8, 0x9a, 0x15, 0x5d, 0xff, 0x52, 0xa2, 0x77, 0x0b, 0x01, 0x41, 0x49, 0x98, 0xff, 0x7b, - 0x00, 0xb3, 0x37, 0xf4, 0x3a, 0xd0, 0x47, 0x22, 0x55, 0xc3, 0xad, 0x7e, 0x5f, 0x6e, 0xf3, 0x63, - 0x21, 0xf9, 0x2e, 0xc3, 0x1c, 0xf5, 0x15, 0xd8, 0x28, 0xf0, 0x5b, 0xc7, 0x8a, 0x4b, 0x44, 0x6b, - 0xd3, 0xf7, 0x86, 0x42, 0x2a, 0x53, 0x00, 0xf5, 0xe3, 0x93, 0x1e, 0xa9, 0x62, 0x5e, 0xdc, 0xef, - 0x1d, 0x10, 0xd7, 0xbf, 0x05, 0x30, 0xdb, 0x12, 0x16, 0x34, 0xf3, 0xf4, 0xe6, 0xa6, 0x29, 0xf6, - 0x06, 0xda, 0x7c, 0x8b, 0x38, 0x9d, 0x3f, 0x75, 0xc0, 0xc5, 0x88, 0xc3, 0x0e, 0xb4, 0xec, 0xcf, - 0xe6, 0xf3, 0x95, 0x51, 0x5f, 0x2e, 0x4f, 0xa0, 0xec, 0x52, 0x9e, 0xf0, 0xbf, 0x6a, 0x5d, 0xb1, - 0x0e, 0xd5, 0xad, 0x2c, 0xb4, 0x8d, 0x37, 0xcf, 0x42, 0xe2, 0x74, 0xfe, 0xd2, 0x85, 0x9a, 0x09, - 0x5c, 0xfa, 0x31, 0x34, 0xc4, 0x98, 0x4b, 0xa6, 0x84, 0xb4, 0x1d, 0xfe, 0xdb, 0x2f, 0x12, 0xf8, - 0xdd, 0x03, 0xcb, 0x1c, 0x14, 0x62, 0x16, 0xf7, 0x57, 0x39, 0xbf, 0xbf, 0xdb, 0x40, 0xf2, 0x18, - 0x7f, 0x2c, 0x91, 0x4f, 0x4d, 0x6d, 0x47, 0x79, 0x0e, 0x4f, 0x0f, 0xa1, 0x19, 0x8a, 0x34, 0x8a, - 0x8b, 0x6e, 0xbf, 0xb5, 0xf9, 0x9d, 0x17, 0xd2, 0x70, 0x27, 0xe7, 0x0e, 0x66, 0x82, 0xe8, 0xeb, - 0xe0, 0x9d, 0xb2, 0x64, 0x62, 0xaa, 0xfa, 0xea, 0xe6, 0xf5, 0x73, 0x93, 0xd4, 0x11, 0xbe, 0x0d, - 0x0c, 0x91, 0xff, 0x32, 0x34, 0xf2, 0x7d, 0x6a, 0x73, 0xa6, 0x11, 0x59, 0xa1, 0x35, 0xa8, 0x1c, - 0x48, 0xe2, 0xf8, 0xff, 0xe2, 0x40, 0xb3, 0x58, 0xa3, 0x54, 0x65, 0xb1, 0xb8, 0xfd, 0x70, 0xc2, - 0x12, 0xe2, 0xe8, 0x3e, 0x47, 0x28, 0x03, 0x69, 0x47, 0xfa, 0x9e, 0xe4, 0x4c, 0xe1, 0x04, 0xa9, - 0xb3, 0x03, 0xcf, 0x32, 0xe2, 0x52, 0x0a, 0x2d, 0x8b, 0x3e, 0x90, 0x86, 0xd4, 0xc3, 0x36, 0x08, - 0xdf, 0xe6, 0x88, 0x9a, 0x49, 0x26, 0x27, 0xdc, 0xb4, 0x79, 0x1f, 0x09, 0xa5, 0x81, 0x06, 0xea, - 0xb2, 0x9f, 0x92, 0x26, 0xae, 0xf9, 0x91, 0x50, 0xfb, 0x29, 0x81, 0x59, 0xfd, 0x5d, 0xcd, 0x97, - 0xd7, 0xd0, 0x9a, 0xae, 0xee, 0x49, 0xb2, 0x9f, 0x92, 0x75, 0xfb, 0xc2, 0x40, 0xad, 0xce, 0x2b, - 0x97, 0xa5, 0x96, 0xce, 0xcb, 0x98, 0x84, 0x14, 0x3f, 0xbb, 0x68, 0x5e, 0xe9, 0x6c, 0xc0, 0x95, - 0x85, 0x33, 0x03, 0xff, 0x18, 0x1a, 0x8f, 0x45, 0xb6, 0x68, 0x94, 0x3a, 0x54, 0x0f, 0xc5, 0xd8, - 0xb4, 0xbe, 0xdb, 0x42, 0x29, 0x31, 0x32, 0xad, 0xef, 0x43, 0x7e, 0xac, 0x4c, 0xe7, 0x11, 0xc4, - 0x83, 0xa1, 0x32, 0x5d, 0xe5, 0x7e, 0x9a, 0x72, 0x49, 0x3c, 0xdc, 0x6a, 0xc0, 0xc7, 0x09, 0x0b, - 0xb1, 0xb1, 0x6c, 0x01, 0x68, 0xfc, 0xfd, 0x58, 0x66, 0x8a, 0xd4, 0xfd, 0xef, 0xe2, 0x76, 0xe2, - 0x41, 0x8a, 0x5d, 0x86, 0x7e, 0xd0, 0xa2, 0x56, 0xd0, 0x74, 0x1a, 0xdc, 0xe1, 0x29, 0x5a, 0xda, - 0x41, 0x46, 0x73, 0x54, 0xa8, 0x17, 0xa8, 0x6c, 0x37, 0xa1, 0x1e, 0x1a, 0x65, 0xfd, 0xc7, 0xb0, - 0xae, 0x7d, 0xe8, 0x11, 0x57, 0xec, 0x20, 0x4d, 0xa6, 0xff, 0xe7, 0xc3, 0x54, 0xff, 0x5b, 0xe0, - 0xe9, 0x51, 0x03, 0xad, 0x75, 0x2c, 0xc5, 0x48, 0xcb, 0xf2, 0x02, 0xfd, 0x8c, 0xd2, 0x95, 0xd0, - 0x92, 0xbc, 0xa0, 0xa2, 0x84, 0xff, 0x85, 0x07, 0xf5, 0xad, 0x30, 0x14, 0x93, 0x54, 0x9d, 0x5b, - 0xf9, 0xa2, 0x6e, 0xf6, 0x6d, 0xa8, 0xb1, 0x53, 0xa6, 0x98, 0xb4, 0xf3, 0xdd, 0xd7, 0x16, 0xe2, - 0xc1, 0xca, 0xea, 0x6e, 0x69, 0xa2, 0xc0, 0x12, 0x23, 0x5b, 0x28, 0xd2, 0xe3, 0x78, 0x60, 0x9d, - 0xfe, 0x59, 0x6c, 0x3b, 0x9a, 0x28, 0xb0, 0xc4, 0xc8, 0x86, 0x7d, 0xe8, 0x24, 0xd3, 0x21, 0xfa, - 0x6c, 0xb6, 0x9e, 0x26, 0x0a, 0x2c, 0x71, 0x87, 0x43, 0xcd, 0xac, 0x4f, 0xdf, 0x01, 0x4f, 0x8f, - 0xdf, 0x76, 0x24, 0x5b, 0xea, 0x40, 0xd4, 0x70, 0xd0, 0xeb, 0xf9, 0xbc, 0xa9, 0xb7, 0x8f, 0x78, - 0x0d, 0x6e, 0x37, 0x72, 0x0b, 0x74, 0xfe, 0xcb, 0x81, 0x9a, 0x51, 0x98, 0xbe, 0x06, 0x2d, 0x9e, - 0xa2, 0x17, 0xe6, 0x19, 0xc0, 0x1e, 0x46, 0x2d, 0x60, 0x31, 0x3f, 0x59, 0x0c, 0xef, 0x4f, 0x06, - 0xb6, 0x4c, 0x96, 0x51, 0xf4, 0x7d, 0xe8, 0x18, 0x30, 0xe0, 0x09, 0x67, 0x19, 0xdf, 0x19, 0xb2, - 0x34, 0xe5, 0x49, 0xef, 0x69, 0xac, 0xc2, 0xa1, 0x3d, 0xb8, 0xba, 0x84, 0x82, 0xfa, 0xb0, 0x66, - 0xde, 0xf6, 0xc6, 0x2c, 0xe4, 0x99, 0x9d, 0xa2, 0xe7, 0x70, 0xf4, 0xdb, 0xe0, 0xe9, 0x8b, 0x82, - 0x76, 0x74, 0xb9, 0x47, 0x19, 0xaa, 0x8e, 0x80, 0x9a, 0x31, 0x30, 0xdd, 0x02, 0x30, 0x26, 0xc6, - 0xec, 0x6e, 0x73, 0xf6, 0x37, 0x2e, 0xfd, 0x26, 0xba, 0x28, 0x94, 0x98, 0x50, 0xbf, 0x88, 0x27, - 0x1c, 0x63, 0x13, 0x4b, 0xa3, 0x36, 0x41, 0x35, 0x98, 0xc3, 0xf9, 0x07, 0x00, 0x33, 0x6e, 0x0c, - 0xd7, 0x2d, 0xdd, 0xe0, 0x92, 0x15, 0x9c, 0x3a, 0x1f, 0xf3, 0x14, 0x9b, 0xf9, 0x5d, 0xcb, 0x40, - 0x1c, 0x44, 0xf6, 0x14, 0x93, 0x8a, 0x47, 0x05, 0x52, 0x67, 0x3a, 0x0d, 0xf1, 0x88, 0x54, 0xfd, - 0xff, 0x71, 0x60, 0xb5, 0x74, 0x78, 0xf2, 0xff, 0x78, 0xe0, 0xd3, 0x81, 0x86, 0x76, 0x97, 0x27, - 0x32, 0xb1, 0x53, 0x5a, 0x01, 0x63, 0xaf, 0x6e, 0xcf, 0x76, 0xf0, 0xad, 0x29, 0x32, 0x25, 0xcc, - 0x97, 0x3a, 0xec, 0xf1, 0x37, 0x6d, 0x69, 0x5d, 0x85, 0xfa, 0x93, 0xf4, 0x24, 0x15, 0x4f, 0x53, - 0x53, 0x5e, 0xf5, 0x19, 0xdb, 0xdc, 0x54, 0xd5, 0x30, 0x87, 0x3c, 0xa4, 0xea, 0xff, 0xd4, 0x5d, - 0x38, 0x31, 0xbd, 0x07, 0x35, 0x73, 0x09, 0xa4, 0xc7, 0x9a, 0xd6, 0xe6, 0xb7, 0xcf, 0x4d, 0x1e, - 0x33, 0xe2, 0xae, 0x99, 0xdc, 0x4b, 0xa8, 0xc0, 0x32, 0xd3, 0x87, 0xa5, 0x83, 0x70, 0x33, 0x08, - 0xbd, 0x71, 0x99, 0xa0, 0x3c, 0x0a, 0xe6, 0x6e, 0x70, 0x0a, 0x09, 0x9d, 0x9f, 0x39, 0x70, 0xed, - 0x22, 0x12, 0x9c, 0x6e, 0xfb, 0x73, 0x47, 0x9b, 0x39, 0x48, 0x7b, 0x0b, 0xf7, 0x46, 0x15, 0xbd, - 0x9b, 0x3b, 0x2f, 0xa8, 0xc4, 0xfc, 0x2d, 0x92, 0xff, 0x13, 0x07, 0x36, 0xce, 0xed, 0xb9, 0x54, - 0x47, 0x00, 0x6a, 0xc6, 0xb3, 0xcc, 0x21, 0x66, 0x71, 0xac, 0x66, 0x1a, 0x6b, 0x9d, 0x52, 0x32, - 0x73, 0x4e, 0xb1, 0x6b, 0x2e, 0xff, 0x88, 0x8b, 0x05, 0x00, 0xbf, 0x1a, 0x86, 0xea, 0x80, 0x13, - 0x8f, 0x12, 0x58, 0x33, 0xc7, 0xc0, 0x16, 0x53, 0xc3, 0x7a, 0x78, 0xc8, 0x47, 0xe3, 0x84, 0x29, - 0x4e, 0xea, 0x7e, 0x00, 0x57, 0x2f, 0x50, 0x54, 0x2f, 0x7d, 0x64, 0xd5, 0x68, 0x01, 0xec, 0x1e, - 0xe5, 0x8b, 0x13, 0x07, 0x6b, 0xf8, 0xee, 0xd1, 0x8e, 0xae, 0xe2, 0xf6, 0xac, 0xc5, 0x04, 0xc1, - 0x11, 0xce, 0x11, 0x19, 0xa9, 0xfa, 0x1f, 0xc0, 0x57, 0x0e, 0x87, 0x92, 0xb3, 0x68, 0x97, 0xf3, - 0x71, 0x82, 0xde, 0xc5, 0xa6, 0x38, 0x19, 0x5f, 0xd0, 0xcb, 0x5f, 0x03, 0x8f, 0x45, 0x91, 0x34, - 0x06, 0x6d, 0x06, 0x06, 0xf0, 0x3f, 0x81, 0xeb, 0x46, 0x80, 0x59, 0xe5, 0xe3, 0x09, 0x9f, 0xf0, - 0x7b, 0xa9, 0x92, 0x53, 0x33, 0x2b, 0xe5, 0x37, 0x83, 0x86, 0xc6, 0x8a, 0x3b, 0x87, 0xc7, 0x88, - 0x51, 0xfa, 0x69, 0x3f, 0xb2, 0xc1, 0x56, 0xc0, 0xfe, 0x9f, 0xb8, 0x00, 0x07, 0xc5, 0xed, 0xe4, - 0x05, 0x61, 0x7a, 0x71, 0x49, 0x2a, 0x8d, 0x7d, 0xd5, 0xa5, 0x27, 0xe9, 0xdf, 0x2c, 0x6e, 0xbc, - 0x5c, 0x1d, 0x7f, 0x8b, 0xb7, 0x56, 0x33, 0x3d, 0xec, 0x89, 0x7d, 0x71, 0xd9, 0x35, 0x77, 0xe6, - 0xe8, 0x2d, 0x9e, 0x39, 0x2e, 0xe4, 0x8c, 0xda, 0xf9, 0x9c, 0x71, 0x1d, 0x6a, 0xc3, 0x38, 0x8a, - 0x78, 0xaa, 0x87, 0x8d, 0x46, 0x60, 0x21, 0xb4, 0x0c, 0xda, 0x41, 0xa4, 0xc9, 0x34, 0x1f, 0xee, - 0x72, 0x98, 0xde, 0x05, 0x4f, 0xe9, 0x3b, 0xdc, 0x86, 0x76, 0xf1, 0xc5, 0x42, 0x38, 0xbb, 0xd6, - 0xd6, 0xa9, 0xc2, 0xd0, 0x62, 0x02, 0x8a, 0x33, 0x7b, 0xaa, 0x1e, 0xe9, 0xe1, 0xb3, 0x11, 0x94, - 0x30, 0xfe, 0xdf, 0x38, 0xc5, 0x0d, 0x46, 0x13, 0xbc, 0x3e, 0xcb, 0xe2, 0xd0, 0x9c, 0xc3, 0x8d, - 0xa5, 0x38, 0x36, 0xa7, 0x34, 0x0d, 0x70, 0x95, 0x88, 0x04, 0xa9, 0x60, 0xfb, 0x94, 0x71, 0x6c, - 0x94, 0x5a, 0x00, 0xb3, 0x1b, 0x64, 0xe2, 0xa2, 0xe7, 0xe6, 0x56, 0x35, 0xc7, 0x70, 0x9a, 0xb5, - 0x86, 0xb1, 0x11, 0x15, 0x07, 0xfc, 0x75, 0x5c, 0x41, 0x67, 0x46, 0xd2, 0x40, 0x9a, 0x54, 0x28, - 0x6e, 0x9a, 0xc6, 0x0c, 0x6b, 0x12, 0x01, 0x14, 0x83, 0xa9, 0xa0, 0xcf, 0x32, 0x4e, 0xae, 0xf9, - 0x7f, 0x35, 0x53, 0xed, 0x8d, 0xa2, 0x2d, 0x59, 0xe6, 0x23, 0x3d, 0xab, 0x71, 0xb9, 0x07, 0x1b, - 0x92, 0xff, 0x70, 0x12, 0xcf, 0x5d, 0x95, 0x3d, 0xc7, 0x5b, 0xce, 0x73, 0xf8, 0xa7, 0xb0, 0x91, - 0x03, 0xdf, 0x8f, 0xd5, 0x50, 0xb7, 0xea, 0xf4, 0x6e, 0xe9, 0x2e, 0xcf, 0xb1, 0x25, 0xf5, 0x19, - 0x22, 0x67, 0x77, 0x77, 0xc5, 0x18, 0x50, 0x59, 0x66, 0x0c, 0xf8, 0xeb, 0xfa, 0xa5, 0xc3, 0xf7, - 0xdb, 0x50, 0x3b, 0x36, 0xf3, 0xab, 0x99, 0xdb, 0xbe, 0xf6, 0x8c, 0xf5, 0xed, 0x8c, 0x6a, 0x89, - 0x2f, 0x3c, 0xcf, 0x79, 0x17, 0x0b, 0xf4, 0x31, 0x9b, 0x24, 0xea, 0x68, 0x89, 0x29, 0x65, 0x8e, - 0x96, 0x6e, 0xeb, 0x51, 0x9a, 0xf5, 0xcc, 0x91, 0x99, 0xa7, 0x55, 0xf1, 0x9f, 0xa1, 0x8a, 0xce, - 0xc4, 0x86, 0x32, 0x28, 0x71, 0x95, 0xa2, 0xa3, 0x76, 0x51, 0x74, 0x60, 0x8f, 0x6c, 0xe3, 0xa6, - 0x80, 0xcd, 0x50, 0x67, 0x9e, 0x73, 0xf1, 0xfa, 0x0a, 0xbc, 0x11, 0x9c, 0xc3, 0x63, 0x6e, 0x1b, - 0x4d, 0x12, 0x15, 0xdb, 0x83, 0x1a, 0x03, 0x2c, 0xfe, 0x29, 0xd1, 0x3c, 0xff, 0xa7, 0xc4, 0xfb, - 0x00, 0x19, 0xc7, 0x54, 0xb6, 0x1b, 0x87, 0xaa, 0xbd, 0xa6, 0x3d, 0xe7, 0xc6, 0xb3, 0xf6, 0x76, - 0xa0, 0x23, 0x3d, 0x28, 0x71, 0xa0, 0xfe, 0x23, 0x76, 0xb6, 0x83, 0xbd, 0x51, 0x7b, 0x5d, 0xf7, - 0xdf, 0x05, 0xbc, 0x98, 0x33, 0x5a, 0xe7, 0x73, 0xc6, 0x5d, 0xf0, 0xb2, 0x50, 0x8c, 0xb9, 0xbe, - 0xad, 0x7e, 0xf6, 0xf7, 0xed, 0xf6, 0x90, 0x28, 0x30, 0xb4, 0xfa, 0x32, 0x05, 0x53, 0xb5, 0x90, - 0xfa, 0x9e, 0xba, 0x19, 0xe4, 0x60, 0xe7, 0x97, 0x0e, 0xd4, 0x8c, 0x8e, 0x17, 0x75, 0xfd, 0x7a, - 0xc6, 0xaa, 0x94, 0xee, 0x84, 0x8a, 0xbb, 0x97, 0x6a, 0xf9, 0xee, 0xe5, 0xdd, 0x5c, 0x27, 0x93, - 0x40, 0x5f, 0xbd, 0xdc, 0x18, 0x73, 0xaa, 0xf9, 0xaf, 0x83, 0xa7, 0x61, 0xcc, 0x00, 0x89, 0x08, - 0x59, 0x62, 0xce, 0x2c, 0xe4, 0xac, 0x9e, 0x41, 0xee, 0xd2, 0xa4, 0xe2, 0xff, 0x20, 0xa7, 0x86, - 0xbc, 0x71, 0x31, 0x4d, 0x0f, 0xae, 0x46, 0x1c, 0x7a, 0x0d, 0x48, 0xc6, 0xd5, 0xc1, 0xf1, 0xe1, - 0x90, 0xf7, 0xd8, 0x88, 0xeb, 0xbc, 0x54, 0xa1, 0x6d, 0xb8, 0x66, 0x68, 0xb3, 0xf9, 0x37, 0xba, - 0x34, 0x27, 0x71, 0x5f, 0x32, 0x39, 0x25, 0xae, 0xff, 0xbe, 0x3e, 0xa3, 0xc9, 0xbd, 0x6f, 0xb5, - 0xf8, 0xb5, 0xc7, 0x64, 0xc2, 0x88, 0x4b, 0x4c, 0x95, 0xe6, 0x04, 0x8d, 0x99, 0xd6, 0xd6, 0x9c, - 0x1e, 0x1b, 0xad, 0xab, 0xfe, 0x76, 0xa9, 0x05, 0x98, 0xaf, 0x45, 0xce, 0xb2, 0xb5, 0xc8, 0x7f, - 0x00, 0x57, 0x72, 0xb4, 0x31, 0x16, 0x96, 0xa7, 0xba, 0x18, 0x97, 0xe5, 0x3c, 0xcf, 0xd7, 0x72, - 0xf2, 0xdb, 0x7f, 0x56, 0x85, 0xd6, 0x7c, 0x3d, 0xd0, 0xf3, 0xa7, 0xd1, 0xfd, 0x20, 0x89, 0xcc, - 0x80, 0xba, 0x8d, 0x81, 0x11, 0xca, 0xc9, 0xa8, 0x9f, 0x99, 0x34, 0xaf, 0x1b, 0x48, 0x82, 0xaf, - 0x1e, 0x9b, 0xec, 0xaf, 0x11, 0x1b, 0xf8, 0x6a, 0x4f, 0x8c, 0x38, 0xb9, 0x59, 0xbe, 0xa2, 0x7d, - 0x23, 0xbf, 0xcc, 0xd5, 0xe9, 0xfa, 0x43, 0x2c, 0x0e, 0x3d, 0xae, 0xc8, 0x16, 0x36, 0x36, 0xbd, - 0xc3, 0x59, 0x56, 0x26, 0x9f, 0xd0, 0xa6, 0x3d, 0xf1, 0xff, 0x71, 0x85, 0xae, 0x97, 0x7a, 0x9c, - 0x5f, 0x54, 0xe8, 0x35, 0xb8, 0xb2, 0x3d, 0x49, 0xa3, 0x84, 0x47, 0x05, 0xf6, 0x6f, 0x35, 0x56, - 0x5f, 0xd2, 0x28, 0x3d, 0x75, 0x6b, 0x21, 0x3f, 0xc7, 0x8f, 0x79, 0xb5, 0x84, 0x2d, 0xda, 0x9e, - 0x3f, 0x5f, 0x7c, 0x53, 0x48, 0xfa, 0x8b, 0xb2, 0xfc, 0x82, 0xfe, 0xc7, 0x2e, 0x62, 0xf7, 0xd3, - 0x88, 0x9f, 0x95, 0xb0, 0x3f, 0x71, 0xe9, 0x75, 0xd8, 0xb0, 0xb4, 0x25, 0xe5, 0xff, 0xd0, 0xa5, - 0x57, 0xa1, 0xb5, 0x65, 0xcc, 0x6e, 0xad, 0x42, 0x7e, 0xea, 0xe2, 0x96, 0x70, 0x4e, 0x21, 0x7f, - 0xe4, 0xd2, 0x0d, 0x58, 0xfb, 0xbe, 0x90, 0x27, 0xba, 0x88, 0xa1, 0x6d, 0x7f, 0x86, 0xbd, 0x5e, - 0xb3, 0x40, 0x91, 0x3f, 0x76, 0x6f, 0xff, 0xbd, 0x03, 0xad, 0xf9, 0xfc, 0x8b, 0xc6, 0x4b, 0x44, - 0x3a, 0xc0, 0xd8, 0x32, 0x77, 0x14, 0xd9, 0x50, 0x48, 0xa5, 0x41, 0xed, 0xf8, 0xa9, 0xbe, 0x99, - 0x32, 0x0d, 0xa5, 0x99, 0x9d, 0xcc, 0xb9, 0x9f, 0x62, 0x03, 0xb2, 0x8a, 0x5f, 0x24, 0xc2, 0xe5, - 0xdd, 0xa2, 0xd8, 0x7a, 0x28, 0x31, 0xcc, 0x2f, 0xba, 0x6a, 0x48, 0x3a, 0x91, 0x89, 0x29, 0xba, - 0x7c, 0xc4, 0xe2, 0xc4, 0x5c, 0xc7, 0x8d, 0x87, 0xd8, 0x3a, 0x36, 0x0d, 0x56, 0x7c, 0x1a, 0x9b, - 0x8b, 0x2f, 0x1b, 0x50, 0x11, 0xea, 0x51, 0xb8, 0x24, 0xe1, 0xdb, 0xb7, 0xff, 0xf5, 0xf3, 0x1b, - 0xce, 0x67, 0x9f, 0xdf, 0x70, 0xfe, 0xf3, 0xf3, 0x1b, 0xce, 0xcf, 0xbf, 0xb8, 0xb1, 0xf2, 0xd9, - 0x17, 0x37, 0x56, 0x7e, 0xf5, 0xc5, 0x8d, 0x95, 0x1f, 0x90, 0xc5, 0x7f, 0xf3, 0xfa, 0x35, 0x5d, - 0x16, 0xee, 0xfe, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xa5, 0x47, 0x4d, 0xc6, 0xb6, 0x27, 0x00, - 0x00, + // 4020 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x3a, 0x4d, 0x93, 0x23, 0x47, + 0x56, 0x2a, 0xa9, 0xf4, 0xf5, 0xba, 0x5b, 0x9d, 0x9d, 0x33, 0x1e, 0x6b, 0x35, 0xde, 0x61, 0x5c, + 0x18, 0xef, 0x30, 0xb6, 0xd5, 0x76, 0x8f, 0xbd, 0xbb, 0x36, 0xf8, 0xa3, 0x3f, 0x66, 0xb6, 0x15, + 0x33, 0xe3, 0x1e, 0x97, 0x7a, 0x66, 0x61, 0x83, 0x20, 0x9c, 0xaa, 0x4a, 0x49, 0xe5, 0x2e, 0x55, + 0x6a, 0xab, 0x52, 0x3d, 0xa3, 0x0d, 0x0e, 0xbb, 0x2c, 0x0b, 0x5c, 0x08, 0x16, 0x08, 0x02, 0x8e, + 0xcb, 0x81, 0xdb, 0x5e, 0x89, 0x80, 0x08, 0xce, 0x1b, 0x10, 0xc1, 0xc1, 0x47, 0x1f, 0x38, 0x10, + 0x76, 0xf0, 0x07, 0x38, 0x71, 0xe0, 0x40, 0xbc, 0xcc, 0xac, 0x52, 0x49, 0xea, 0x0f, 0x8d, 0xe1, + 0x56, 0xf9, 0xf2, 0xbd, 0x97, 0x2f, 0x33, 0xdf, 0x77, 0x16, 0xbc, 0x32, 0x3e, 0x19, 0x6c, 0x87, + 0x41, 0x6f, 0x7b, 0xdc, 0xdb, 0x1e, 0x09, 0x9f, 0x87, 0xdb, 0xe3, 0x58, 0x48, 0x91, 0xe8, 0x41, + 0xd2, 0x56, 0x23, 0xba, 0xc1, 0xa2, 0xa9, 0x9c, 0x8e, 0x79, 0x5b, 0x41, 0x5b, 0x2f, 0x0d, 0x84, + 0x18, 0x84, 0x5c, 0xa3, 0xf6, 0x26, 0xfd, 0xed, 0x44, 0xc6, 0x13, 0x4f, 0x6a, 0x64, 0xe7, 0xdf, + 0x8a, 0x70, 0xad, 0x3b, 0x62, 0xb1, 0xdc, 0x0b, 0x85, 0x77, 0xd2, 0x8d, 0xd8, 0x38, 0x19, 0x0a, + 0xb9, 0xc7, 0x12, 0x4e, 0x5f, 0x87, 0x4a, 0x0f, 0x81, 0x49, 0xd3, 0xba, 0x59, 0xba, 0xb5, 0xb6, + 0x73, 0xb5, 0x3d, 0xc7, 0xb8, 0xad, 0x28, 0x5c, 0x83, 0x43, 0xdf, 0x82, 0xaa, 0xcf, 0x25, 0x0b, + 0xc2, 0xa4, 0x59, 0xbc, 0x69, 0xdd, 0x5a, 0xdb, 0x79, 0xb1, 0xad, 0x17, 0x6e, 0xa7, 0x0b, 0xb7, + 0xbb, 0x6a, 0x61, 0x37, 0xc5, 0xa3, 0x77, 0xa0, 0xd6, 0x0f, 0x42, 0x7e, 0x9f, 0x4f, 0x93, 0x66, + 0xe9, 0x62, 0x9a, 0x0c, 0x91, 0x7e, 0x08, 0x0d, 0xfe, 0x4c, 0xc6, 0xcc, 0xe5, 0x21, 0x93, 0x81, + 0x88, 0x92, 0xa6, 0xad, 0xa4, 0x7b, 0x71, 0x41, 0xba, 0x74, 0xde, 0x5d, 0x40, 0xa7, 0x37, 0x61, + 0x4d, 0xf4, 0x3e, 0xe3, 0x9e, 0x3c, 0x9e, 0x8e, 0x79, 0xd2, 0x2c, 0xdf, 0x2c, 0xdd, 0xaa, 0xbb, + 0x79, 0x10, 0x7d, 0x17, 0xd6, 0x3c, 0x11, 0x86, 0xdc, 0xd3, 0xfc, 0x2b, 0x17, 0x8b, 0x96, 0xc7, + 0x75, 0x7e, 0xf5, 0x06, 0x94, 0xd5, 0xb9, 0xd0, 0x06, 0x14, 0x03, 0xbf, 0x69, 0xdd, 0xb4, 0x6e, + 0xd5, 0xdd, 0x62, 0xe0, 0xd3, 0x6d, 0xa8, 0xf4, 0x03, 0x1e, 0xfa, 0x97, 0x1e, 0x8f, 0x41, 0xa3, + 0x77, 0x61, 0x3d, 0xe6, 0x89, 0x8c, 0x03, 0x23, 0x86, 0x3e, 0xa1, 0x97, 0xcf, 0xba, 0x84, 0xb6, + 0x9b, 0x43, 0x74, 0xe7, 0xc8, 0x70, 0xbb, 0xde, 0x30, 0x08, 0xfd, 0x98, 0x47, 0x1d, 0x5f, 0x1f, + 0x56, 0xdd, 0xcd, 0x83, 0xe8, 0x2d, 0xd8, 0xec, 0x31, 0xef, 0x64, 0x10, 0x8b, 0x49, 0xe4, 0xef, + 0x8b, 0x50, 0xc4, 0xcd, 0xb2, 0x12, 0x7b, 0x11, 0x4c, 0xdf, 0x84, 0x32, 0x0b, 0x83, 0x41, 0xa4, + 0x8e, 0xa4, 0xb1, 0xd3, 0x3a, 0x53, 0x96, 0x5d, 0xc4, 0x70, 0x35, 0x22, 0xed, 0x00, 0x24, 0xa8, + 0x5d, 0x4a, 0x49, 0x9a, 0x6b, 0x6a, 0x0b, 0xdf, 0x3a, 0x93, 0x6c, 0x5f, 0x44, 0x92, 0x47, 0xb2, + 0xdd, 0xcd, 0xd0, 0x0f, 0x0b, 0x6e, 0x8e, 0x98, 0x7e, 0x07, 0x6c, 0xc9, 0x9f, 0xc9, 0x66, 0xe3, + 0x82, 0x73, 0x48, 0x99, 0x1c, 0xf3, 0x67, 0xf2, 0xb0, 0xe0, 0x2a, 0x02, 0x24, 0x44, 0xed, 0x69, + 0x6e, 0xae, 0x40, 0x78, 0x2f, 0x08, 0x39, 0x12, 0x22, 0x01, 0x7d, 0x1f, 0x2a, 0x21, 0x9b, 0x8a, + 0x89, 0x6c, 0x12, 0x45, 0xfa, 0xeb, 0x17, 0x92, 0x3e, 0x50, 0xa8, 0x87, 0x05, 0xd7, 0x10, 0xd1, + 0xb7, 0xa1, 0xe4, 0x07, 0xa7, 0xcd, 0x2d, 0x45, 0x7b, 0xf3, 0x42, 0xda, 0x83, 0xe0, 0xf4, 0xb0, + 0xe0, 0x22, 0x3a, 0xdd, 0x87, 0x5a, 0x4f, 0x88, 0x93, 0x11, 0x8b, 0x4f, 0x9a, 0x54, 0x91, 0xfe, + 0xc6, 0x85, 0xa4, 0x7b, 0x06, 0xf9, 0xb0, 0xe0, 0x66, 0x84, 0xb8, 0xe5, 0xc0, 0x13, 0x51, 0xf3, + 0xca, 0x0a, 0x5b, 0xee, 0x78, 0x22, 0xc2, 0x2d, 0x23, 0x01, 0x12, 0x86, 0x41, 0x74, 0xd2, 0xbc, + 0xba, 0x02, 0xe1, 0x83, 0x20, 0xc2, 0x55, 0x15, 0x01, 0x8a, 0xed, 0x33, 0xc9, 0x4e, 0x03, 0xfe, + 0xb4, 0xf9, 0xc2, 0x0a, 0x62, 0x1f, 0x18, 0x64, 0x14, 0x3b, 0x25, 0x44, 0x26, 0xb1, 0xb1, 0xd3, + 0xe6, 0xb5, 0x15, 0x98, 0xa4, 0x46, 0x8d, 0x4c, 0x52, 0x42, 0xfa, 0xfb, 0xb0, 0xd5, 0xe7, 0x4c, + 0x4e, 0x62, 0xee, 0xcf, 0x7c, 0xc4, 0x8b, 0x8a, 0x5b, 0xfb, 0xe2, 0xbb, 0x5f, 0xa4, 0x3a, 0x2c, + 0xb8, 0xcb, 0xac, 0xe8, 0x7b, 0x50, 0x0e, 0x99, 0xe4, 0xcf, 0x9a, 0x4d, 0xc5, 0xd3, 0xb9, 0x44, + 0x29, 0x24, 0x7f, 0x76, 0x58, 0x70, 0x35, 0x09, 0xfd, 0x1d, 0xd8, 0x94, 0xac, 0x17, 0xf2, 0xa3, + 0xbe, 0x41, 0x48, 0x9a, 0xdf, 0x50, 0x5c, 0x5e, 0xbf, 0x58, 0x9d, 0xe7, 0x69, 0x0e, 0x0b, 0xee, + 0x22, 0x9b, 0xd6, 0x8f, 0x60, 0x3d, 0xef, 0x04, 0x28, 0x05, 0x3b, 0xe6, 0x4c, 0x3b, 0xa0, 0x9a, + 0xab, 0xbe, 0x11, 0xc6, 0xfd, 0x40, 0x2a, 0x07, 0x54, 0x73, 0xd5, 0x37, 0xbd, 0x06, 0x95, 0x98, + 0x8f, 0xc4, 0x29, 0x57, 0xfe, 0xa5, 0xe6, 0x9a, 0x11, 0xe2, 0xfa, 0x31, 0x1b, 0x34, 0x6d, 0x8d, + 0x8b, 0xdf, 0x88, 0xeb, 0xc7, 0x62, 0x7c, 0x14, 0x29, 0xff, 0x50, 0x73, 0xcd, 0xa8, 0xf5, 0xf7, + 0x0e, 0x54, 0x8d, 0x20, 0xad, 0x3f, 0x80, 0x8a, 0x36, 0x04, 0xfa, 0x21, 0x94, 0x13, 0x39, 0x0d, + 0xb9, 0x12, 0xa1, 0xb1, 0xf3, 0x9b, 0x2b, 0x18, 0x4f, 0xbb, 0x8b, 0x04, 0xae, 0xa6, 0x73, 0xde, + 0x82, 0xb2, 0x1a, 0xd3, 0x2a, 0x94, 0x5c, 0xf1, 0x94, 0x14, 0x28, 0x40, 0x65, 0x5f, 0x84, 0x93, + 0x51, 0x44, 0x2c, 0x04, 0x1e, 0x04, 0xa7, 0xa4, 0x88, 0xc0, 0x43, 0xce, 0x7c, 0x1e, 0x93, 0x52, + 0xeb, 0xdf, 0x6d, 0xb0, 0x51, 0x2d, 0xe9, 0x2b, 0xb0, 0x21, 0x59, 0x3c, 0xe0, 0x3a, 0xac, 0x75, + 0x52, 0x47, 0x3c, 0x0f, 0xa4, 0xef, 0xa7, 0x22, 0x16, 0x95, 0x88, 0xdf, 0xba, 0x54, 0xdd, 0xe7, + 0x04, 0xcc, 0xb9, 0xf4, 0xd2, 0x6a, 0x2e, 0xfd, 0x1e, 0xd4, 0xd0, 0xca, 0xba, 0xc1, 0x8f, 0xb8, + 0x3a, 0xd8, 0xc6, 0xce, 0xed, 0xcb, 0x97, 0xec, 0x18, 0x0a, 0x37, 0xa3, 0xa5, 0x1d, 0xa8, 0x7b, + 0x2c, 0xf6, 0x95, 0x30, 0xea, 0x2e, 0x1a, 0x3b, 0xaf, 0x5d, 0xce, 0x68, 0x3f, 0x25, 0x71, 0x67, + 0xd4, 0xf4, 0x08, 0xd6, 0x7c, 0x9e, 0x78, 0x71, 0x30, 0x56, 0x56, 0xa7, 0x1d, 0xfb, 0x1b, 0x97, + 0x33, 0x3b, 0x98, 0x11, 0xb9, 0x79, 0x0e, 0xf4, 0x25, 0xa8, 0xc7, 0x99, 0xd9, 0x55, 0x55, 0xb4, + 0x99, 0x01, 0x9c, 0x97, 0xa1, 0x96, 0xee, 0x87, 0xd6, 0xa1, 0xdc, 0x1d, 0xb1, 0x30, 0xd4, 0x17, + 0xfb, 0x90, 0xfb, 0xc1, 0x64, 0x44, 0x2c, 0xe7, 0xb7, 0xd2, 0x6b, 0xaf, 0x81, 0xfd, 0x88, 0x0d, + 0x38, 0x29, 0xd0, 0x75, 0xa8, 0xa5, 0xfe, 0x82, 0x58, 0x74, 0x03, 0xea, 0x07, 0x2c, 0x19, 0xf6, + 0x04, 0x8b, 0x7d, 0x52, 0xa4, 0x6b, 0x50, 0xdd, 0x8d, 0xbd, 0x61, 0x70, 0xca, 0x49, 0xc9, 0xd9, + 0x86, 0xb5, 0x9c, 0x64, 0xc8, 0xe2, 0x63, 0x11, 0x21, 0x8b, 0x3a, 0x94, 0x77, 0x7d, 0x9f, 0xfb, + 0xc4, 0x42, 0x02, 0xb3, 0x15, 0x52, 0x74, 0x5e, 0x83, 0x7a, 0x76, 0x2e, 0x88, 0x8e, 0x91, 0x83, + 0x14, 0xf0, 0x0b, 0xc1, 0xc4, 0x42, 0xd1, 0x3a, 0x51, 0x18, 0x44, 0x9c, 0x14, 0x5b, 0x9f, 0x2a, + 0x9d, 0xa3, 0xbf, 0x3d, 0xaf, 0xd9, 0xaf, 0x5e, 0xe6, 0xda, 0xe7, 0xd5, 0xfa, 0x7a, 0x6e, 0x7f, + 0x0f, 0x02, 0x25, 0x5c, 0x0d, 0xec, 0x03, 0x21, 0x13, 0x62, 0xb5, 0xfe, 0xd5, 0x82, 0x5a, 0xea, + 0xd1, 0x29, 0x81, 0xd2, 0x24, 0x0e, 0x8d, 0xea, 0xe2, 0x27, 0xbd, 0x0a, 0x65, 0x19, 0x48, 0xa3, + 0xb0, 0x75, 0x57, 0x0f, 0x30, 0xc4, 0xe7, 0xef, 0xb0, 0xa4, 0xe6, 0x16, 0x2f, 0x25, 0x18, 0xb1, + 0x01, 0x3f, 0x64, 0xc9, 0x50, 0x69, 0x5e, 0xdd, 0x9d, 0x01, 0x90, 0xbe, 0xcf, 0x4e, 0x51, 0xbb, + 0xd4, 0xbc, 0x0e, 0xfe, 0x79, 0x10, 0xbd, 0x03, 0x36, 0x6e, 0xd0, 0xa8, 0xc7, 0xaf, 0x2d, 0x6c, + 0x18, 0x15, 0xe2, 0x51, 0xcc, 0xf1, 0x7a, 0xda, 0x98, 0x41, 0xb9, 0x0a, 0xb9, 0xd5, 0x02, 0x1b, + 0xef, 0x1a, 0x5d, 0x49, 0xc4, 0x46, 0xdc, 0xec, 0x43, 0x7d, 0xb7, 0xae, 0xc0, 0xd6, 0x92, 0xbb, + 0x6d, 0xfd, 0x53, 0x45, 0x9f, 0x3f, 0x52, 0xa8, 0x50, 0x6f, 0x28, 0x54, 0x14, 0x7f, 0x2e, 0x5b, + 0x45, 0x2e, 0xf3, 0xb6, 0xfa, 0x3e, 0x94, 0xf1, 0x4c, 0x53, 0x53, 0x5d, 0x81, 0xfc, 0x21, 0xa2, + 0xbb, 0x9a, 0x8a, 0x36, 0xa1, 0xea, 0x0d, 0xb9, 0x77, 0xc2, 0x7d, 0xe3, 0x11, 0xd3, 0x21, 0x5e, + 0x89, 0x97, 0xcb, 0x99, 0xf4, 0x40, 0x1d, 0xb8, 0x27, 0xa2, 0xbb, 0x23, 0xf1, 0x59, 0xa0, 0x4e, + 0x0d, 0x0f, 0x3c, 0x05, 0xa4, 0xb3, 0x1d, 0xbc, 0x81, 0x66, 0x75, 0x36, 0xab, 0x00, 0xad, 0xbb, + 0x50, 0x56, 0x6b, 0xa3, 0x9e, 0x69, 0x99, 0x75, 0xfe, 0xfd, 0xea, 0x6a, 0x32, 0x1b, 0x91, 0x5b, + 0xbf, 0x2c, 0x82, 0x8d, 0x63, 0x7a, 0x1b, 0xca, 0x31, 0x8b, 0x06, 0xfa, 0x02, 0x96, 0xd3, 0x78, + 0x17, 0xe7, 0x5c, 0x8d, 0x42, 0x3f, 0x34, 0x17, 0x5d, 0x5c, 0xc1, 0xa9, 0x64, 0x2b, 0xe6, 0x2e, + 0x1d, 0x8f, 0x63, 0xcc, 0x62, 0x36, 0x32, 0x5a, 0xa8, 0x07, 0xce, 0x2f, 0x2c, 0xb0, 0x11, 0x89, + 0x6e, 0xc1, 0x46, 0x57, 0xc6, 0xc1, 0x09, 0x97, 0xc3, 0x58, 0x4c, 0x06, 0x43, 0x6d, 0xdc, 0xf7, + 0xf9, 0x54, 0x5b, 0xb3, 0x36, 0x37, 0xc9, 0xc2, 0xc0, 0x23, 0x45, 0x34, 0x8b, 0x3d, 0x11, 0xfa, + 0xa4, 0x44, 0x37, 0x61, 0xed, 0x71, 0xe4, 0xf3, 0x38, 0xf1, 0x44, 0xcc, 0x7d, 0x62, 0x1b, 0xdb, + 0x39, 0x21, 0x65, 0xf4, 0x06, 0x28, 0x88, 0x4a, 0x50, 0x49, 0x85, 0x5e, 0x81, 0xcd, 0xbd, 0xf9, + 0xac, 0x95, 0x54, 0xd1, 0xe2, 0x1f, 0xf2, 0x08, 0x95, 0x8c, 0xd4, 0xd0, 0x13, 0xa8, 0x5b, 0x20, + 0x75, 0x5c, 0xec, 0x48, 0xe5, 0xfd, 0x04, 0x9c, 0x7f, 0xb6, 0x52, 0xbb, 0xdc, 0x80, 0xfa, 0x23, + 0x16, 0xb3, 0x41, 0xcc, 0xc6, 0x28, 0xdf, 0x1a, 0x54, 0x75, 0x7c, 0x79, 0x4b, 0xfb, 0x0e, 0x3d, + 0xd8, 0xd1, 0x9e, 0x47, 0x0f, 0xee, 0x90, 0xd2, 0x6c, 0xf0, 0x36, 0xb1, 0x71, 0x8d, 0x4f, 0x26, + 0x42, 0x72, 0x52, 0x56, 0x9e, 0x44, 0xf8, 0x9c, 0x54, 0x10, 0x78, 0x8c, 0xf6, 0x4a, 0xaa, 0xb8, + 0xe7, 0x7d, 0xd4, 0x9f, 0x9e, 0x78, 0x46, 0x6a, 0xca, 0xfb, 0xb1, 0xf8, 0x84, 0xfb, 0xa4, 0x8e, + 0x33, 0x1f, 0x4f, 0x46, 0x3d, 0x8e, 0xdb, 0x04, 0x9c, 0x39, 0x16, 0x83, 0x41, 0xc8, 0xc9, 0x1a, + 0x9e, 0x41, 0xce, 0xb5, 0x91, 0x75, 0xe5, 0xc7, 0x58, 0x18, 0x8a, 0x89, 0x24, 0x1b, 0xad, 0xcf, + 0x4b, 0x60, 0x63, 0xf2, 0x8a, 0xb6, 0x33, 0x44, 0x2b, 0x36, 0xb6, 0x83, 0xdf, 0x99, 0x05, 0x16, + 0x67, 0x16, 0x48, 0xdf, 0x33, 0x37, 0x5d, 0x5a, 0xc1, 0x87, 0x21, 0xe3, 0xfc, 0x25, 0x53, 0xb0, + 0x47, 0xc1, 0x88, 0x1b, 0x4f, 0xa2, 0xbe, 0x11, 0x96, 0x60, 0x5c, 0x43, 0x33, 0x28, 0xb9, 0xea, + 0x1b, 0xad, 0x86, 0xa1, 0xd3, 0xdd, 0x95, 0xca, 0x06, 0x4a, 0x6e, 0x3a, 0xd4, 0xd6, 0xcc, 0xa4, + 0xd6, 0xfe, 0xcb, 0xac, 0x59, 0x2d, 0xdf, 0x45, 0x74, 0x57, 0x53, 0xcd, 0x9c, 0x41, 0x6d, 0x75, + 0xf2, 0x9c, 0x0b, 0x3e, 0x30, 0xda, 0x38, 0x0b, 0x0f, 0x35, 0x7d, 0x7a, 0xc4, 0xc2, 0x5b, 0x52, + 0x66, 0x48, 0x8a, 0xf8, 0xf9, 0x24, 0xf0, 0xb9, 0x20, 0x25, 0x15, 0x3e, 0x26, 0x7e, 0x20, 0x88, + 0x8d, 0x89, 0xc7, 0xa3, 0x83, 0x7b, 0xa4, 0xec, 0xbc, 0x9a, 0x73, 0xe4, 0xbb, 0x13, 0x29, 0x34, + 0x1b, 0xa5, 0x96, 0x96, 0xd6, 0xb2, 0x1e, 0xf7, 0x49, 0xd1, 0xf9, 0x36, 0xe2, 0xa1, 0xd4, 0x0a, + 0x36, 0x96, 0x53, 0x52, 0x40, 0x1d, 0x7b, 0x3c, 0x0e, 0x05, 0xf3, 0x83, 0x68, 0x40, 0x2c, 0x1d, + 0x00, 0x22, 0xb3, 0xe6, 0xdd, 0x38, 0x16, 0x98, 0xcc, 0xac, 0x03, 0xcc, 0x8a, 0xa1, 0xd6, 0x7f, + 0x35, 0x66, 0x41, 0x10, 0x33, 0xb1, 0x44, 0x4c, 0x62, 0x8f, 0x2b, 0xd7, 0x50, 0x77, 0xcd, 0x88, + 0x7e, 0x04, 0x65, 0x9c, 0xc7, 0x1a, 0x13, 0x3d, 0xc6, 0xed, 0x95, 0x52, 0xf0, 0xf6, 0x93, 0x80, + 0x3f, 0x75, 0x35, 0x21, 0x7d, 0x27, 0x1f, 0xbe, 0x2f, 0xa9, 0xac, 0x67, 0x98, 0xf4, 0x06, 0x00, + 0xf3, 0x64, 0x70, 0xca, 0x91, 0x97, 0xb1, 0xfd, 0x1c, 0xa4, 0xf5, 0x85, 0x0d, 0x36, 0x7e, 0x2c, + 0x95, 0xc5, 0xfb, 0x73, 0x0e, 0x67, 0x7b, 0x75, 0x81, 0x17, 0xf4, 0x51, 0xe9, 0x77, 0x29, 0xa7, + 0xdf, 0x1f, 0x41, 0x39, 0x11, 0xb1, 0x4c, 0x37, 0xb1, 0xe2, 0x51, 0x74, 0x45, 0x2c, 0x5d, 0x4d, + 0x48, 0xef, 0x41, 0xb5, 0x1f, 0x84, 0x92, 0xc7, 0xba, 0x49, 0x70, 0x59, 0x92, 0x9e, 0xf1, 0xb8, + 0xa7, 0x88, 0xdc, 0x94, 0x98, 0x3e, 0xc8, 0x1f, 0x69, 0x45, 0x71, 0x6a, 0xaf, 0xc6, 0xe9, 0xac, + 0x93, 0xbe, 0x0d, 0xc4, 0x13, 0xa7, 0x3c, 0x4e, 0xe7, 0xee, 0xf3, 0xa9, 0x09, 0x21, 0x4b, 0x70, + 0xda, 0x82, 0xda, 0x30, 0xf0, 0x39, 0x46, 0x61, 0x65, 0x29, 0x35, 0x37, 0x1b, 0xd3, 0xfb, 0x50, + 0x53, 0x59, 0x20, 0xda, 0x6c, 0xfd, 0xb9, 0x0f, 0x5f, 0x27, 0xa4, 0x29, 0x03, 0x5c, 0x48, 0x2d, + 0x7e, 0x2f, 0x90, 0x4d, 0xd0, 0x0b, 0xa5, 0x63, 0xe7, 0x6d, 0x63, 0x6c, 0xe8, 0xfe, 0xb0, 0x68, + 0x49, 0xcd, 0x24, 0x91, 0xda, 0x9f, 0x7e, 0x8f, 0x85, 0x21, 0x8f, 0xa7, 0x3a, 0x93, 0xbf, 0xcf, + 0xa2, 0x1e, 0x8b, 0x48, 0xc9, 0xb9, 0x05, 0xf6, 0x05, 0x49, 0x22, 0x82, 0x1f, 0x60, 0x2a, 0x4f, + 0x8a, 0xad, 0x7f, 0x2c, 0x41, 0x2d, 0xdd, 0x34, 0xa6, 0x4c, 0x27, 0x7c, 0x9a, 0xa6, 0x4c, 0x27, + 0x7c, 0xaa, 0x62, 0x6d, 0xf2, 0x24, 0x48, 0x82, 0x9e, 0xc9, 0x1d, 0x6a, 0xee, 0x0c, 0x80, 0xe1, + 0xea, 0x69, 0xe0, 0xcb, 0xa1, 0x52, 0x9d, 0xb2, 0xab, 0x07, 0xf4, 0x16, 0x6c, 0xfa, 0x4c, 0xf2, + 0x4e, 0xe4, 0x85, 0x13, 0x9f, 0x1f, 0xa3, 0xab, 0xd3, 0x15, 0xcf, 0x22, 0x98, 0xfe, 0x2e, 0x80, + 0x0c, 0x46, 0xfc, 0x9e, 0x88, 0x47, 0x4c, 0x9a, 0xf4, 0xe8, 0xdd, 0xe7, 0xbb, 0xdc, 0xf6, 0x71, + 0xc6, 0xc0, 0xcd, 0x31, 0x43, 0xd6, 0xb8, 0x9a, 0x61, 0x5d, 0xfd, 0x5a, 0xac, 0x0f, 0x32, 0x06, + 0x6e, 0x8e, 0x99, 0xf3, 0x7b, 0x00, 0xb3, 0x19, 0x7a, 0x0d, 0xe8, 0x43, 0x11, 0xc9, 0xe1, 0x6e, + 0xaf, 0x17, 0xef, 0xf1, 0xbe, 0x88, 0xf9, 0x01, 0x43, 0x1f, 0xf5, 0x02, 0x6c, 0x65, 0xf0, 0xdd, + 0xbe, 0xe4, 0x31, 0x82, 0xd5, 0xd1, 0x77, 0x87, 0x22, 0x96, 0x3a, 0x00, 0xaa, 0xcf, 0xc7, 0x5d, + 0x52, 0x42, 0xbf, 0xd8, 0xe9, 0x1e, 0x11, 0xdb, 0xb9, 0x05, 0x30, 0xdb, 0x12, 0x06, 0x34, 0xfd, + 0xf5, 0xd6, 0x8e, 0x0e, 0xf6, 0x7a, 0xb4, 0xf3, 0x36, 0xb1, 0x5a, 0x7f, 0x6a, 0x81, 0x8d, 0x16, + 0x87, 0x19, 0x68, 0x5e, 0x9f, 0xf5, 0xf5, 0xe5, 0x41, 0x5f, 0xcf, 0x4f, 0x20, 0xef, 0x9c, 0x9f, + 0x70, 0xbe, 0x61, 0x54, 0xb1, 0x0a, 0xa5, 0xdd, 0xc4, 0x33, 0x89, 0x37, 0x4f, 0x3c, 0x62, 0xb5, + 0xfe, 0xca, 0x86, 0x8a, 0x36, 0x5c, 0xfa, 0x09, 0xd4, 0xc4, 0x98, 0xc7, 0x4c, 0x8a, 0xd8, 0x64, + 0xf8, 0xef, 0x3c, 0x8f, 0xe1, 0xb7, 0x8f, 0x0c, 0xb1, 0x9b, 0xb1, 0x59, 0xdc, 0x5f, 0x71, 0x79, + 0x7f, 0xb7, 0x81, 0xa4, 0x36, 0xfe, 0x28, 0x46, 0x3a, 0x39, 0x35, 0x19, 0xe5, 0x12, 0x9c, 0x1e, + 0x43, 0xdd, 0x13, 0x91, 0x1f, 0x64, 0xd9, 0x7e, 0x63, 0xe7, 0xdb, 0xcf, 0x25, 0xe1, 0x7e, 0x4a, + 0xed, 0xce, 0x18, 0xd1, 0xd7, 0xa1, 0x7c, 0xca, 0xc2, 0x89, 0x8e, 0xea, 0x6b, 0x3b, 0xd7, 0x96, + 0x8a, 0xd9, 0x27, 0x38, 0xeb, 0x6a, 0x24, 0xe7, 0x3a, 0xd4, 0xd2, 0x7d, 0xaa, 0xe3, 0x8c, 0x7c, + 0x52, 0xa0, 0x15, 0x28, 0x1e, 0xc5, 0xc4, 0x72, 0x7e, 0x65, 0x41, 0x3d, 0x5b, 0x63, 0xbe, 0x08, + 0xbb, 0xfb, 0xc3, 0x09, 0x0b, 0x89, 0xa5, 0xf2, 0x1c, 0x21, 0xf5, 0x48, 0x29, 0xd2, 0xf7, 0x62, + 0xce, 0x24, 0x16, 0xf1, 0xca, 0x3b, 0xf0, 0x24, 0x21, 0x36, 0xa5, 0xd0, 0x30, 0xe0, 0xa3, 0x58, + 0xa3, 0x96, 0x31, 0x0d, 0xc2, 0xd9, 0x14, 0x50, 0xd1, 0xce, 0xe4, 0x84, 0xeb, 0x34, 0xef, 0x63, + 0x21, 0xd5, 0xa0, 0x86, 0xb2, 0x74, 0x22, 0x52, 0xc7, 0x35, 0x3f, 0x16, 0xb2, 0x13, 0x11, 0x98, + 0xc5, 0xdf, 0xb5, 0x74, 0x79, 0x35, 0x5a, 0x57, 0xd1, 0x3d, 0x0c, 0x3b, 0x11, 0xd9, 0x30, 0x13, + 0x7a, 0xd4, 0x68, 0xbd, 0x74, 0x91, 0x6b, 0x69, 0x5d, 0x47, 0x27, 0x24, 0xf9, 0xb3, 0xb3, 0xea, + 0x95, 0xd6, 0x16, 0x6c, 0x2e, 0xb4, 0x6d, 0x9c, 0x3e, 0xd4, 0x1e, 0x89, 0x64, 0xf1, 0x50, 0xaa, + 0x50, 0x3a, 0x16, 0x63, 0x9d, 0xfa, 0xee, 0x09, 0x29, 0xc5, 0x48, 0xa7, 0xbe, 0x0f, 0x78, 0x5f, + 0xea, 0xcc, 0xc3, 0x0d, 0x06, 0x43, 0xa9, 0xb3, 0xca, 0x4e, 0x14, 0xf1, 0x98, 0x94, 0x71, 0xab, + 0x2e, 0x1f, 0x87, 0xcc, 0xc3, 0xc4, 0xb2, 0x01, 0xa0, 0xe0, 0xf7, 0x82, 0x38, 0x91, 0xa4, 0xea, + 0x7c, 0x07, 0xb7, 0x13, 0x0c, 0x22, 0xcc, 0x32, 0xd4, 0x87, 0x62, 0x55, 0xc0, 0xa3, 0x53, 0xc3, + 0x7d, 0x1e, 0xe1, 0x49, 0x5b, 0x48, 0xa8, 0xbb, 0xb5, 0x6a, 0x81, 0xe2, 0x5e, 0x1d, 0xaa, 0x9e, + 0x16, 0xd6, 0x79, 0x04, 0x1b, 0x4a, 0x87, 0x1e, 0x72, 0xc9, 0x8e, 0xa2, 0x70, 0xfa, 0x7f, 0xee, + 0x67, 0x3b, 0xaf, 0x41, 0x59, 0x95, 0x1a, 0x78, 0x5a, 0xfd, 0x58, 0x8c, 0x14, 0xaf, 0xb2, 0xab, + 0xbe, 0x91, 0xbb, 0x14, 0x8a, 0x53, 0xd9, 0x2d, 0x4a, 0xe1, 0xfc, 0x79, 0x1d, 0xaa, 0xbb, 0x9e, + 0x27, 0x26, 0x91, 0x5c, 0x5a, 0xf9, 0xac, 0x6c, 0xf6, 0x1d, 0xa8, 0xb0, 0x53, 0x26, 0x59, 0x6c, + 0xea, 0xbb, 0x6f, 0x2e, 0xd8, 0x83, 0xe1, 0xd5, 0xde, 0x55, 0x48, 0xae, 0x41, 0x46, 0x32, 0x4f, + 0x44, 0xfd, 0x60, 0x60, 0x94, 0xfe, 0x3c, 0xb2, 0x7d, 0x85, 0xe4, 0x1a, 0x64, 0x24, 0xc3, 0x3c, + 0x74, 0x92, 0x28, 0x13, 0x3d, 0x9f, 0xac, 0xab, 0x90, 0x5c, 0x83, 0x4c, 0xb7, 0xc1, 0x0e, 0xa2, + 0xbe, 0x30, 0x0f, 0x0a, 0xd7, 0xcf, 0x21, 0xea, 0x44, 0x7d, 0xe1, 0x2a, 0xc4, 0x16, 0x87, 0x8a, + 0x16, 0x98, 0xbe, 0x0b, 0x65, 0x55, 0xaf, 0x9b, 0x1a, 0x6e, 0xa5, 0x26, 0xb6, 0xa6, 0xa0, 0xd7, + 0xd2, 0x02, 0x55, 0x9d, 0x17, 0xc2, 0xd5, 0x70, 0xaf, 0x96, 0x1e, 0x59, 0xeb, 0x3f, 0x2d, 0xa8, + 0xe8, 0x1d, 0xd2, 0x57, 0xa1, 0xc1, 0x23, 0x54, 0xdb, 0xd4, 0x65, 0x98, 0x06, 0xe2, 0x02, 0x14, + 0x1d, 0x9a, 0x81, 0xf0, 0xde, 0x64, 0x60, 0xe2, 0x6a, 0x1e, 0x44, 0x3f, 0x80, 0x96, 0x1e, 0xba, + 0x3c, 0xe4, 0x2c, 0xe1, 0xfb, 0x43, 0x16, 0x45, 0x3c, 0xec, 0x3e, 0x0d, 0xa4, 0x37, 0x34, 0xcd, + 0xc6, 0x0b, 0x30, 0xa8, 0x03, 0xeb, 0x7a, 0xb6, 0x3b, 0x66, 0x1e, 0x4f, 0x4c, 0xd9, 0x3d, 0x07, + 0xa3, 0x6f, 0x40, 0x59, 0x3d, 0xee, 0x34, 0xfd, 0x8b, 0x55, 0x50, 0x63, 0xb5, 0x04, 0x54, 0xf4, + 0x8d, 0xd0, 0x5d, 0x00, 0x7d, 0x27, 0x18, 0x0e, 0x8c, 0x93, 0x7f, 0xf9, 0xc2, 0x4b, 0x54, 0x51, + 0x24, 0x47, 0x84, 0xf2, 0xf9, 0x3c, 0xe4, 0x68, 0xcc, 0x18, 0x4b, 0xd5, 0x11, 0x94, 0xdc, 0x39, + 0x58, 0xeb, 0xbf, 0x8b, 0x60, 0xe3, 0x75, 0x22, 0xf2, 0x50, 0x8c, 0xb8, 0x2e, 0x36, 0x3b, 0xbe, + 0x51, 0xdd, 0x39, 0x18, 0x26, 0x1d, 0x4c, 0xf7, 0xb1, 0x32, 0x34, 0x9d, 0xcf, 0x2e, 0x82, 0x11, + 0x73, 0x1c, 0x8b, 0x7e, 0x10, 0xce, 0x30, 0x75, 0x25, 0xb6, 0x08, 0xa6, 0xdf, 0x85, 0x17, 0x47, + 0x58, 0x59, 0x4a, 0xe5, 0x2a, 0x50, 0xee, 0x8c, 0x42, 0x07, 0x97, 0xf3, 0xa6, 0xe9, 0x47, 0x70, + 0x3d, 0x37, 0x95, 0x3a, 0xc1, 0x8c, 0x5a, 0xb7, 0x34, 0x2e, 0x42, 0x59, 0xe0, 0x70, 0xcc, 0x47, + 0xe3, 0x90, 0xc9, 0xd9, 0xfa, 0xd5, 0x25, 0x0e, 0x8b, 0x28, 0x98, 0x55, 0xfa, 0xfc, 0x34, 0xf0, + 0x78, 0xc7, 0x57, 0xe9, 0x6b, 0xdd, 0xcd, 0xc6, 0x58, 0x70, 0x0c, 0x98, 0xe4, 0x4f, 0xd9, 0xf4, + 0x71, 0x1c, 0x36, 0xb9, 0x2e, 0x38, 0x66, 0x10, 0xe7, 0x08, 0x60, 0x76, 0x71, 0xe8, 0x5a, 0x77, + 0x55, 0x31, 0x42, 0x0a, 0xf4, 0x0a, 0x6c, 0x3e, 0xe2, 0x11, 0x16, 0x5e, 0x07, 0xe6, 0xae, 0x88, + 0x85, 0xc0, 0xae, 0x64, 0xb1, 0xe4, 0x7e, 0x06, 0x54, 0x51, 0x49, 0x8d, 0xb8, 0x4f, 0x4a, 0xce, + 0xff, 0x58, 0xb0, 0x96, 0x6b, 0x74, 0xfd, 0x3f, 0x36, 0xe7, 0x5a, 0x50, 0x53, 0x96, 0x8a, 0x1b, + 0xd1, 0xf7, 0x98, 0x8d, 0x71, 0x9b, 0xa6, 0x0f, 0x87, 0xb3, 0xfa, 0xce, 0x72, 0x90, 0xaf, 0xd5, + 0x98, 0x73, 0x76, 0x4c, 0x1a, 0xb4, 0x06, 0xd5, 0xc7, 0xd1, 0x49, 0x24, 0x9e, 0x46, 0x3a, 0x15, + 0x52, 0xdd, 0xd6, 0xb9, 0x0a, 0x38, 0x6d, 0x88, 0x96, 0x9c, 0x9f, 0xda, 0x0b, 0x0f, 0x0c, 0x77, + 0xa1, 0xa2, 0xdf, 0x4c, 0x55, 0x09, 0xba, 0xdc, 0x33, 0xce, 0x23, 0xb7, 0xf5, 0x95, 0xe6, 0x40, + 0xae, 0x21, 0xa6, 0x0f, 0x72, 0xef, 0x46, 0xba, 0x68, 0x7d, 0xf3, 0x22, 0x46, 0xa9, 0x03, 0x9a, + 0x7b, 0xf0, 0xcc, 0x38, 0xb4, 0x7e, 0x66, 0xc1, 0xd5, 0xb3, 0x50, 0x68, 0x13, 0xaa, 0xbd, 0xb9, + 0x97, 0x80, 0x74, 0x48, 0xbb, 0x0b, 0xcf, 0xac, 0x45, 0xb5, 0x9b, 0xed, 0xe7, 0x14, 0x62, 0xfe, + 0xd1, 0xd5, 0xf9, 0x89, 0x05, 0x5b, 0x4b, 0x7b, 0xce, 0xc5, 0x7c, 0x80, 0x8a, 0xd6, 0x2c, 0xdd, + 0xce, 0xce, 0x5a, 0xa0, 0xba, 0x08, 0x52, 0xde, 0x3c, 0xd1, 0x3d, 0xa5, 0x03, 0xfd, 0x56, 0x4e, + 0x6c, 0x0c, 0xd6, 0x78, 0x6b, 0xe8, 0x25, 0x07, 0x9c, 0x94, 0x29, 0x81, 0x75, 0xfd, 0x6a, 0x62, + 0x20, 0x15, 0xcc, 0x5d, 0x52, 0x1b, 0x22, 0x55, 0xc7, 0x85, 0x2b, 0x67, 0x08, 0xaa, 0x96, 0x7e, + 0x62, 0xc4, 0x68, 0x00, 0x1c, 0x3c, 0x49, 0x17, 0x27, 0x16, 0xe6, 0x5b, 0x07, 0x4f, 0xf6, 0x55, + 0xc6, 0x65, 0xfa, 0x62, 0xda, 0x08, 0x9e, 0x60, 0xcd, 0x97, 0x90, 0x92, 0xf3, 0x21, 0xbc, 0x70, + 0x3c, 0x8c, 0x39, 0xf3, 0x0f, 0x38, 0x1f, 0x87, 0xa8, 0x5d, 0x6c, 0x1a, 0x0a, 0xe6, 0x9f, 0x51, + 0x77, 0x5d, 0x85, 0x32, 0xf3, 0xfd, 0x58, 0x1f, 0x68, 0xdd, 0xd5, 0x03, 0xe7, 0x53, 0xb8, 0xa6, + 0x19, 0xe8, 0x55, 0x3e, 0x99, 0xf0, 0x09, 0xbf, 0x1b, 0xc9, 0x78, 0xaa, 0xeb, 0xda, 0xf4, 0x21, + 0x5d, 0xe3, 0x18, 0x76, 0x4b, 0x70, 0xb4, 0x18, 0xa9, 0xbe, 0x32, 0x57, 0x9a, 0x8d, 0x9d, 0x3f, + 0xb1, 0x01, 0x8e, 0xb2, 0xc7, 0xfc, 0x33, 0xcc, 0xf4, 0xec, 0xf4, 0x21, 0x57, 0xa2, 0x97, 0x56, + 0xee, 0x7a, 0x7c, 0x37, 0x7b, 0x20, 0xd6, 0xaf, 0x39, 0x8b, 0x8f, 0xbc, 0x33, 0x39, 0xcc, 0x03, + 0x57, 0xf6, 0x36, 0x3c, 0xd7, 0x1f, 0x2e, 0x2f, 0xf6, 0x87, 0x6f, 0x2e, 0x3f, 0xca, 0x2c, 0xf8, + 0x8c, 0x6b, 0x50, 0x19, 0x06, 0xbe, 0xcf, 0x23, 0xe5, 0x47, 0x6b, 0xae, 0x19, 0xe1, 0xc9, 0xe0, + 0x39, 0x88, 0x28, 0x9c, 0xa6, 0x85, 0x78, 0x3a, 0xa6, 0x77, 0xa0, 0x2c, 0xd5, 0x2f, 0x0f, 0x35, + 0xa5, 0xe2, 0x8b, 0x49, 0xcb, 0xec, 0x2f, 0x10, 0xe5, 0x2a, 0x34, 0x2e, 0x3a, 0xa0, 0x20, 0x31, + 0xef, 0x2b, 0xbe, 0x6a, 0x14, 0xd4, 0xdc, 0x1c, 0xc4, 0xf9, 0x5b, 0x2b, 0x7b, 0xf0, 0xab, 0x43, + 0xb9, 0xc7, 0x92, 0xc0, 0xd3, 0x3d, 0x53, 0x13, 0x8a, 0x74, 0x73, 0x4b, 0x0a, 0x5f, 0x90, 0x22, + 0xa6, 0xba, 0x09, 0xc7, 0xa4, 0xb6, 0x01, 0x30, 0xfb, 0xe1, 0x82, 0xd8, 0xa8, 0xb9, 0xe9, 0xa9, + 0xea, 0x96, 0xa9, 0x22, 0xad, 0xa0, 0x6d, 0xf8, 0xd9, 0x53, 0x4f, 0x15, 0x57, 0x50, 0x9e, 0x91, + 0xd4, 0x10, 0x27, 0x12, 0x92, 0xeb, 0x04, 0x3f, 0xc1, 0x74, 0x80, 0x00, 0xb2, 0x41, 0x57, 0xd0, + 0x63, 0x09, 0x27, 0x57, 0x9d, 0xbf, 0x9e, 0x89, 0xf6, 0x66, 0x96, 0x42, 0xae, 0x72, 0x49, 0xe7, + 0x25, 0x99, 0x77, 0x61, 0x2b, 0xe6, 0x3f, 0x9c, 0x04, 0x73, 0x2f, 0xcb, 0x97, 0x68, 0xcb, 0x32, + 0x85, 0x73, 0x0a, 0x5b, 0xe9, 0xe0, 0xfb, 0x81, 0x1c, 0xaa, 0xb2, 0x8a, 0xde, 0xc9, 0x3d, 0x7d, + 0x5b, 0x26, 0x9b, 0x39, 0x87, 0xe5, 0xec, 0xa9, 0x3b, 0x2b, 0xd9, 0x8a, 0xab, 0x94, 0x6c, 0x7f, + 0x53, 0xbd, 0xb0, 0x51, 0xf2, 0x0e, 0x54, 0xfa, 0xba, 0xd7, 0xa0, 0x6b, 0xec, 0x6f, 0x9e, 0xb3, + 0xbe, 0xe9, 0x27, 0x18, 0xe4, 0x33, 0x7b, 0x6f, 0xef, 0x61, 0x6e, 0xd4, 0x67, 0x93, 0x50, 0x3e, + 0x59, 0xa1, 0xa2, 0x9c, 0xc3, 0xa5, 0x7b, 0xaa, 0xed, 0xc1, 0xba, 0xba, 0xbd, 0xa9, 0x1f, 0x37, + 0x9d, 0x73, 0x44, 0x51, 0x9e, 0x58, 0x63, 0xba, 0x39, 0xaa, 0x9c, 0x75, 0x54, 0xce, 0xb2, 0x0e, + 0xac, 0x67, 0x8c, 0xdd, 0x64, 0x63, 0x5d, 0x80, 0xeb, 0xef, 0x94, 0xbd, 0xfa, 0x63, 0xa4, 0xe6, + 0x2e, 0xc1, 0xd1, 0xb7, 0x8d, 0x26, 0xa1, 0x0c, 0x4c, 0x53, 0x4d, 0x0f, 0x16, 0x7f, 0x2c, 0xaa, + 0x2f, 0xff, 0x58, 0xf4, 0x01, 0x40, 0xc2, 0xd1, 0x95, 0x1d, 0x04, 0x9e, 0x6c, 0xae, 0x2b, 0xcd, + 0xb9, 0x71, 0xde, 0xde, 0x8e, 0xf4, 0xe3, 0x6a, 0x8e, 0x02, 0xe5, 0x1f, 0xb1, 0x67, 0xfb, 0x98, + 0x96, 0x36, 0x37, 0x54, 0xad, 0x94, 0x8d, 0x17, 0x7d, 0x46, 0x63, 0xd9, 0x67, 0xdc, 0x81, 0x72, + 0xe2, 0x89, 0x31, 0x57, 0x3f, 0x77, 0x9c, 0x7f, 0xbf, 0xed, 0x2e, 0x22, 0xb9, 0x1a, 0x57, 0x3d, + 0x7c, 0xa1, 0xab, 0x16, 0xb1, 0xfa, 0xad, 0xa3, 0xee, 0xa6, 0xc3, 0xd6, 0x2f, 0x2d, 0xa8, 0x68, + 0x19, 0xcf, 0xaa, 0xd0, 0x54, 0x3d, 0x5c, 0xcc, 0xbd, 0xdf, 0x65, 0xef, 0x64, 0xa5, 0xfc, 0x3b, + 0xd9, 0x7b, 0xa9, 0x4c, 0xda, 0x81, 0xbe, 0x72, 0xf1, 0x61, 0xcc, 0x89, 0xe6, 0xbc, 0x0e, 0x65, + 0x35, 0x46, 0x0f, 0x10, 0x0a, 0x8f, 0x85, 0xba, 0xbf, 0x14, 0xcf, 0xe2, 0x19, 0xa4, 0x2a, 0x4d, + 0x8a, 0xce, 0x0f, 0x52, 0x6c, 0x48, 0x13, 0x17, 0x9d, 0xf4, 0xe0, 0x6a, 0xc4, 0xa2, 0x57, 0x81, + 0x24, 0x5c, 0x1e, 0xf5, 0x8f, 0x87, 0xbc, 0xcb, 0x46, 0x2a, 0x17, 0x26, 0x45, 0xda, 0x84, 0xab, + 0x1a, 0x37, 0x99, 0x9f, 0x51, 0xa1, 0x39, 0x0c, 0x7a, 0x31, 0x8b, 0xa7, 0xc4, 0x76, 0x3e, 0x50, + 0xfd, 0xb4, 0x54, 0xfb, 0xd6, 0xb2, 0x3f, 0xe1, 0xb4, 0x27, 0xf4, 0x79, 0x8c, 0xae, 0x52, 0x77, + 0x3b, 0x99, 0xae, 0x2a, 0x74, 0xa7, 0x5f, 0x4b, 0x5d, 0x72, 0xf6, 0x72, 0x29, 0xc0, 0x7c, 0x2c, + 0xb2, 0x56, 0x8d, 0x45, 0xce, 0x7d, 0xd8, 0xcc, 0x52, 0xf0, 0x71, 0x1a, 0x9e, 0xaa, 0x62, 0x9c, + 0xe7, 0x73, 0x99, 0xae, 0xa5, 0xe8, 0xb7, 0xff, 0xac, 0x04, 0x8d, 0xf9, 0x78, 0xa0, 0x7a, 0x05, + 0x5a, 0xf6, 0xa3, 0xd0, 0xd7, 0xcd, 0x84, 0x3d, 0x34, 0x0c, 0x2f, 0x9e, 0x8c, 0x7a, 0x89, 0x76, + 0xf3, 0x2a, 0x81, 0x24, 0x38, 0xf5, 0x48, 0x7b, 0x7f, 0x05, 0xd8, 0xc2, 0xa9, 0x43, 0x31, 0xe2, + 0xe4, 0x66, 0xfe, 0xb1, 0xfe, 0xcd, 0xf4, 0x59, 0x5f, 0xb9, 0xeb, 0x8f, 0x30, 0x38, 0x74, 0xb9, + 0x24, 0xbb, 0x98, 0xd8, 0x74, 0x8f, 0x67, 0x5e, 0x99, 0x7c, 0x4a, 0xeb, 0xe6, 0x75, 0xe6, 0xc7, + 0x45, 0xba, 0x91, 0xcb, 0x71, 0x7e, 0x51, 0xa4, 0x57, 0x61, 0x73, 0x6f, 0x12, 0xf9, 0x21, 0xf7, + 0x33, 0xe8, 0xdf, 0x29, 0xe8, 0xc3, 0xf9, 0xba, 0x86, 0xfc, 0x1c, 0x2f, 0xf3, 0xca, 0xc3, 0xe5, + 0x7a, 0x85, 0xfc, 0xc5, 0xe2, 0x4c, 0xc6, 0xe9, 0x2f, 0xf3, 0xfc, 0x33, 0xfc, 0x1f, 0xdb, 0x08, + 0xed, 0x44, 0x3e, 0x7f, 0x96, 0x83, 0xfe, 0xc4, 0xa6, 0xd7, 0x60, 0xcb, 0xe0, 0xe6, 0x84, 0xff, + 0x43, 0x9b, 0x5e, 0x81, 0xc6, 0xae, 0x3e, 0x76, 0x73, 0x2a, 0xe4, 0xa7, 0x36, 0x6e, 0x09, 0x4b, + 0x44, 0xf2, 0x47, 0x36, 0xdd, 0x82, 0xf5, 0xef, 0x8b, 0xf8, 0x44, 0x05, 0x31, 0x3c, 0xdb, 0x9f, + 0x61, 0xae, 0x57, 0xcf, 0x40, 0xe4, 0x8f, 0xed, 0xdb, 0xff, 0x60, 0x41, 0x63, 0xde, 0xff, 0xe2, + 0xe1, 0x85, 0x22, 0x1a, 0x48, 0xfd, 0xbf, 0xc2, 0x06, 0xd4, 0x93, 0xa1, 0x88, 0xa5, 0x1a, 0x2a, + 0xc5, 0x8f, 0xd4, 0x2b, 0xa2, 0x4e, 0x28, 0x75, 0xd9, 0xaa, 0x7b, 0xb4, 0x92, 0x0d, 0xc8, 0x1a, + 0xde, 0x88, 0x8f, 0xcb, 0xdb, 0x59, 0xb0, 0x2d, 0x23, 0x47, 0x2f, 0x7d, 0x94, 0xac, 0x20, 0xea, + 0x24, 0x0e, 0x75, 0xd0, 0xe5, 0x23, 0x16, 0x84, 0xfa, 0xe9, 0x74, 0x3c, 0xc4, 0xd4, 0xb1, 0xae, + 0xa1, 0xe2, 0xb3, 0x40, 0x3f, 0x52, 0x1a, 0x83, 0xf2, 0x51, 0x8e, 0x4c, 0x25, 0x09, 0xdf, 0xbb, + 0xfd, 0x2f, 0x5f, 0xde, 0xb0, 0x3e, 0xff, 0xf2, 0x86, 0xf5, 0x1f, 0x5f, 0xde, 0xb0, 0x7e, 0xfe, + 0xd5, 0x8d, 0xc2, 0xe7, 0x5f, 0xdd, 0x28, 0x7c, 0xf1, 0xd5, 0x8d, 0xc2, 0x0f, 0xc8, 0xe2, 0xaf, + 0xac, 0xbd, 0x8a, 0x0a, 0x0b, 0x77, 0xfe, 0x37, 0x00, 0x00, 0xff, 0xff, 0xa3, 0x47, 0x1b, 0x1b, + 0xe5, 0x2a, 0x00, 0x00, } func (m *SmartBlockSnapshotBase) Marshal() (dAtA []byte, err error) { @@ -4881,6 +5121,30 @@ func (m *BlockContentLink) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.Relations) > 0 { + for iNdEx := len(m.Relations) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Relations[iNdEx]) + copy(dAtA[i:], m.Relations[iNdEx]) + i = encodeVarintModels(dAtA, i, uint64(len(m.Relations[iNdEx]))) + i-- + dAtA[i] = 0x3a + } + } + if m.Description != 0 { + i = encodeVarintModels(dAtA, i, uint64(m.Description)) + i-- + dAtA[i] = 0x30 + } + if m.CardStyle != 0 { + i = encodeVarintModels(dAtA, i, uint64(m.CardStyle)) + i-- + dAtA[i] = 0x28 + } + if m.IconSize != 0 { + i = encodeVarintModels(dAtA, i, uint64(m.IconSize)) + i-- + dAtA[i] = 0x20 + } if m.Fields != nil { { size, err := m.Fields.MarshalToSizedBuffer(dAtA[:i]) @@ -5826,6 +6090,18 @@ func (m *Account) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.Info != nil { + { + size, err := m.Info.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintModels(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } if m.Status != nil { { size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) @@ -6056,6 +6332,87 @@ func (m *AccountStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *AccountInfo) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *AccountInfo) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *AccountInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.GatewayUrl) > 0 { + i -= len(m.GatewayUrl) + copy(dAtA[i:], m.GatewayUrl) + i = encodeVarintModels(dAtA, i, uint64(len(m.GatewayUrl))) + i-- + dAtA[i] = 0x6 + i-- + dAtA[i] = 0xaa + } + if len(m.DeviceId) > 0 { + i -= len(m.DeviceId) + copy(dAtA[i:], m.DeviceId) + i = encodeVarintModels(dAtA, i, uint64(len(m.DeviceId))) + i-- + dAtA[i] = 0x42 + } + if len(m.MarketplaceTemplateObjectId) > 0 { + i -= len(m.MarketplaceTemplateObjectId) + copy(dAtA[i:], m.MarketplaceTemplateObjectId) + i = encodeVarintModels(dAtA, i, uint64(len(m.MarketplaceTemplateObjectId))) + i-- + dAtA[i] = 0x3a + } + if len(m.MarketplaceRelationObjectId) > 0 { + i -= len(m.MarketplaceRelationObjectId) + copy(dAtA[i:], m.MarketplaceRelationObjectId) + i = encodeVarintModels(dAtA, i, uint64(len(m.MarketplaceRelationObjectId))) + i-- + dAtA[i] = 0x32 + } + if len(m.MarketplaceTypeObjectId) > 0 { + i -= len(m.MarketplaceTypeObjectId) + copy(dAtA[i:], m.MarketplaceTypeObjectId) + i = encodeVarintModels(dAtA, i, uint64(len(m.MarketplaceTypeObjectId))) + i-- + dAtA[i] = 0x2a + } + if len(m.ProfileObjectId) > 0 { + i -= len(m.ProfileObjectId) + copy(dAtA[i:], m.ProfileObjectId) + i = encodeVarintModels(dAtA, i, uint64(len(m.ProfileObjectId))) + i-- + dAtA[i] = 0x22 + } + if len(m.ArchiveObjectId) > 0 { + i -= len(m.ArchiveObjectId) + copy(dAtA[i:], m.ArchiveObjectId) + i = encodeVarintModels(dAtA, i, uint64(len(m.ArchiveObjectId))) + i-- + dAtA[i] = 0x1a + } + if len(m.HomeObjectId) > 0 { + i -= len(m.HomeObjectId) + copy(dAtA[i:], m.HomeObjectId) + i = encodeVarintModels(dAtA, i, uint64(len(m.HomeObjectId))) + i-- + dAtA[i] = 0x12 + } + return len(dAtA) - i, nil +} + func (m *LinkPreview) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -6154,20 +6511,20 @@ func (m *Restrictions) MarshalToSizedBuffer(dAtA []byte) (int, error) { } } if len(m.Object) > 0 { - dAtA30 := make([]byte, len(m.Object)*10) - var j29 int + dAtA31 := make([]byte, len(m.Object)*10) + var j30 int for _, num := range m.Object { for num >= 1<<7 { - dAtA30[j29] = uint8(uint64(num)&0x7f | 0x80) + dAtA31[j30] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j29++ + j30++ } - dAtA30[j29] = uint8(num) - j29++ + dAtA31[j30] = uint8(num) + j30++ } - i -= j29 - copy(dAtA[i:], dAtA30[:j29]) - i = encodeVarintModels(dAtA, i, uint64(j29)) + i -= j30 + copy(dAtA[i:], dAtA31[:j30]) + i = encodeVarintModels(dAtA, i, uint64(j30)) i-- dAtA[i] = 0xa } @@ -6195,20 +6552,20 @@ func (m *RestrictionsDataviewRestrictions) MarshalToSizedBuffer(dAtA []byte) (in var l int _ = l if len(m.Restrictions) > 0 { - dAtA32 := make([]byte, len(m.Restrictions)*10) - var j31 int + dAtA33 := make([]byte, len(m.Restrictions)*10) + var j32 int for _, num := range m.Restrictions { for num >= 1<<7 { - dAtA32[j31] = uint8(uint64(num)&0x7f | 0x80) + dAtA33[j32] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j31++ + j32++ } - dAtA32[j31] = uint8(num) - j31++ + dAtA33[j32] = uint8(num) + j32++ } - i -= j31 - copy(dAtA[i:], dAtA32[:j31]) - i = encodeVarintModels(dAtA, i, uint64(j31)) + i -= j32 + copy(dAtA[i:], dAtA33[:j32]) + i = encodeVarintModels(dAtA, i, uint64(j32)) i-- dAtA[i] = 0x12 } @@ -6339,20 +6696,20 @@ func (m *ObjectType) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x48 } if len(m.Types) > 0 { - dAtA34 := make([]byte, len(m.Types)*10) - var j33 int + dAtA35 := make([]byte, len(m.Types)*10) + var j34 int for _, num := range m.Types { for num >= 1<<7 { - dAtA34[j33] = uint8(uint64(num)&0x7f | 0x80) + dAtA35[j34] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j33++ + j34++ } - dAtA34[j33] = uint8(num) - j33++ + dAtA35[j34] = uint8(num) + j34++ } - i -= j33 - copy(dAtA[i:], dAtA34[:j33]) - i = encodeVarintModels(dAtA, i, uint64(j33)) + i -= j34 + copy(dAtA[i:], dAtA35[:j34]) + i = encodeVarintModels(dAtA, i, uint64(j34)) i-- dAtA[i] = 0x42 } @@ -7090,6 +7447,21 @@ func (m *BlockContentLink) Size() (n int) { l = m.Fields.Size() n += 1 + l + sovModels(uint64(l)) } + if m.IconSize != 0 { + n += 1 + sovModels(uint64(m.IconSize)) + } + if m.CardStyle != 0 { + n += 1 + sovModels(uint64(m.CardStyle)) + } + if m.Description != 0 { + n += 1 + sovModels(uint64(m.Description)) + } + if len(m.Relations) > 0 { + for _, s := range m.Relations { + l = len(s) + n += 1 + l + sovModels(uint64(l)) + } + } return n } @@ -7520,6 +7892,10 @@ func (m *Account) Size() (n int) { l = m.Status.Size() n += 1 + l + sovModels(uint64(l)) } + if m.Info != nil { + l = m.Info.Size() + n += 1 + l + sovModels(uint64(l)) + } return n } @@ -7597,6 +7973,47 @@ func (m *AccountStatus) Size() (n int) { return n } +func (m *AccountInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.HomeObjectId) + if l > 0 { + n += 1 + l + sovModels(uint64(l)) + } + l = len(m.ArchiveObjectId) + if l > 0 { + n += 1 + l + sovModels(uint64(l)) + } + l = len(m.ProfileObjectId) + if l > 0 { + n += 1 + l + sovModels(uint64(l)) + } + l = len(m.MarketplaceTypeObjectId) + if l > 0 { + n += 1 + l + sovModels(uint64(l)) + } + l = len(m.MarketplaceRelationObjectId) + if l > 0 { + n += 1 + l + sovModels(uint64(l)) + } + l = len(m.MarketplaceTemplateObjectId) + if l > 0 { + n += 1 + l + sovModels(uint64(l)) + } + l = len(m.DeviceId) + if l > 0 { + n += 1 + l + sovModels(uint64(l)) + } + l = len(m.GatewayUrl) + if l > 0 { + n += 2 + l + sovModels(uint64(l)) + } + return n +} + func (m *LinkPreview) Size() (n int) { if m == nil { return 0 @@ -9256,6 +9673,95 @@ func (m *BlockContentLink) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IconSize", wireType) + } + m.IconSize = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.IconSize |= BlockContentLinkIconSize(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CardStyle", wireType) + } + m.CardStyle = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CardStyle |= BlockContentLinkCardStyle(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType) + } + m.Description = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModels + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Description |= BlockContentLinkDescription(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Relations", 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.Relations = append(m.Relations, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipModels(dAtA[iNdEx:]) @@ -12069,6 +12575,42 @@ func (m *Account) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Info", 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.Info == nil { + m.Info = &AccountInfo{} + } + if err := m.Info.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipModels(dAtA[iNdEx:]) @@ -12461,6 +13003,312 @@ func (m *AccountStatus) Unmarshal(dAtA []byte) error { } return nil } +func (m *AccountInfo) Unmarshal(dAtA []byte) 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: Info: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Info: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HomeObjectId", 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.HomeObjectId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ArchiveObjectId", 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.ArchiveObjectId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ProfileObjectId", 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.ProfileObjectId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MarketplaceTypeObjectId", 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.MarketplaceTypeObjectId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MarketplaceRelationObjectId", 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.MarketplaceRelationObjectId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MarketplaceTemplateObjectId", 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.MarketplaceTemplateObjectId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DeviceId", 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.DeviceId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 101: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GatewayUrl", 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.GatewayUrl = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipModels(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthModels + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *LinkPreview) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/pkg/lib/pb/model/protos/models.proto b/pkg/lib/pb/model/protos/models.proto index 0864ef1ce..5aa4498db 100644 --- a/pkg/lib/pb/model/protos/models.proto +++ b/pkg/lib/pb/model/protos/models.proto @@ -124,6 +124,15 @@ message Block { string targetBlockId = 1; // id of the target block Style style = 2; // deprecated google.protobuf.Struct fields = 3; + IconSize iconSize = 4; + CardStyle cardStyle = 5; + Description description = 6; + repeated string relations = 7; + + enum IconSize { + Small = 0; + Medium = 1; + } enum Style { Page = 0; @@ -132,6 +141,18 @@ message Block { Archive = 3; // ... } + + enum Description { + None = 0; + Added = 1; + Content = 2; + } + + enum CardStyle { + Text = 0; + Card = 1; + Inline = 2; + } } /* @@ -391,6 +412,7 @@ message Account { Avatar avatar = 3; // Avatar of a user's account Config config = 4; Status status = 5; + Info info = 6; /** * Avatar of a user's account. It could be an image or color @@ -401,7 +423,6 @@ message Account { string color = 2; // Color of the avatar, used if image not set. } } - message Config { bool enableDataview = 1; bool enableDebug = 2; @@ -422,6 +443,18 @@ message Account { StartedDeletion = 2; Deleted = 3; } + + message Info { + string homeObjectId = 2; // home dashboard block id + string archiveObjectId = 3; // archive block id + string profileObjectId = 4; // profile block id + string marketplaceTypeObjectId = 5; // marketplace type id + string marketplaceRelationObjectId = 6; // marketplace relation id + string marketplaceTemplateObjectId = 7; // marketplace template id + string deviceId = 8; + string gatewayUrl = 101; // gateway url for fetching static files + } + } message LinkPreview { diff --git a/pkg/lib/wallet/wallet.go b/pkg/lib/wallet/wallet.go index 728d793b1..0cad93403 100644 --- a/pkg/lib/wallet/wallet.go +++ b/pkg/lib/wallet/wallet.go @@ -112,7 +112,7 @@ func (w *Wallet) AccountAt(index int, passphrase string) (Keypair, error) { seed, err := bip39.NewSeedWithErrorChecking(w.RecoveryPhrase, passphrase) if err != nil { if err == bip39.ErrInvalidMnemonic { - return nil, fmt.Errorf("invalid mnemonic phrase") + return nil, fmt.Errorf("invalid recovery phrase") } return nil, err }