github.com/git-amp/amp-sdk-go@v0.7.5/amp/amp.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: amp/amp.proto 3 4 // package amp is an implementation-independent API for a pluggable client-server UI/UX system, 5 // featuring support and integration for files, media, and communication. 6 7 package amp 8 9 import ( 10 bytes "bytes" 11 encoding_binary "encoding/binary" 12 fmt "fmt" 13 proto "github.com/gogo/protobuf/proto" 14 io "io" 15 math "math" 16 math_bits "math/bits" 17 reflect "reflect" 18 strconv "strconv" 19 strings "strings" 20 ) 21 22 // Reference imports to suppress errors if they are not otherwise used. 23 var _ = proto.Marshal 24 var _ = fmt.Errorf 25 var _ = math.Inf 26 27 // This is a compile-time assertion to ensure that this generated file 28 // is compatible with the proto package it is being compiled against. 29 // A compilation error at this line likely means your copy of the 30 // proto package needs to be updated. 31 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 32 33 type Const int32 34 35 const ( 36 Const_Defs Const = 0 37 // TIDBinaryLen is the byte size of a Tx ID ("TID"), a hash with a leading big endian binary time index. 38 // 39 // This allows TIDs to be naturally sorted chronologically naturally. 40 // This facilitates Tx storage and Tx syndication (time-ordered Tx playback). 41 // Importantly, a TxID (32 bytes) is has a UTC16 prefix, allowing efficient LSM storage to scale to billions of Txs. 42 // 43 // Byte layout is designed so that TIDs are sortable by their embedded timestamp: 44 // 0:6 - Standard UTC timestamp in unix seconds (big endian) 45 // 6:8 - Timestamp fraction (big endian) 46 // 8:32 - Signature/hash suffix. 47 Const_TIDBinaryLen Const = 32 48 // TIDStringLen is the ASCII-compatible string length of a (binary) TID encoded into its base32 form. 49 // The encoding used is the geo-hash base32 alphabet, so that even ascii ordinal string comparisons will correctly sort encoded TIDs by time. 50 Const_TIDStringLen Const = 52 51 // DefaultServicePort is the default TCP port used to expose amp.Host service. 52 Const_DefaultServicePort Const = 5192 53 ) 54 55 var Const_name = map[int32]string{ 56 0: "Const_Defs", 57 32: "Const_TIDBinaryLen", 58 52: "Const_TIDStringLen", 59 5192: "Const_DefaultServicePort", 60 } 61 62 var Const_value = map[string]int32{ 63 "Const_Defs": 0, 64 "Const_TIDBinaryLen": 32, 65 "Const_TIDStringLen": 52, 66 "Const_DefaultServicePort": 5192, 67 } 68 69 func (Const) EnumDescriptor() ([]byte, []int) { 70 return fileDescriptor_7e479d288f92766f, []int{0} 71 } 72 73 type TxHeader int32 74 75 const ( 76 TxHeader_0 TxHeader = 0 77 // TxHeader heads a MsgTx serialized data store 78 // Bytes 00:03 -- Reserved (3 bytes) 79 // Bytes 03:07 -- big endian total byte size, including header (4 bytes) 80 // Bytes 07:08 -- TxMsg op code (1 byte) 81 TxHeader_Size TxHeader = 8 82 TxHeader_OpOfs TxHeader = 7 83 TxHeader_OpRecvTx TxHeader = 20 84 TxHeader_OpEOS TxHeader = 24 85 ) 86 87 var TxHeader_name = map[int32]string{ 88 0: "TxHeader_0", 89 8: "TxHeader_Size", 90 7: "TxHeader_OpOfs", 91 20: "TxHeader_OpRecvTx", 92 24: "TxHeader_OpEOS", 93 } 94 95 var TxHeader_value = map[string]int32{ 96 "TxHeader_0": 0, 97 "TxHeader_Size": 8, 98 "TxHeader_OpOfs": 7, 99 "TxHeader_OpRecvTx": 20, 100 "TxHeader_OpEOS": 24, 101 } 102 103 func (TxHeader) EnumDescriptor() ([]byte, []int) { 104 return fileDescriptor_7e479d288f92766f, []int{1} 105 } 106 107 // These are hard-wired symbol IDs are required to bootstrap a new connection. 108 // After bootstrapping, the client uses RegisterDefs to register its symbols. 109 type ConstSymbol int32 110 111 const ( 112 ConstSymbol_nil ConstSymbol = 0 113 ConstSymbol_Err ConstSymbol = 10 114 ConstSymbol_RegisterDefs ConstSymbol = 11 115 ConstSymbol_HandleURI ConstSymbol = 12 116 ConstSymbol_PinRequest ConstSymbol = 13 117 ConstSymbol_Login ConstSymbol = 20 118 ConstSymbol_LoginChallenge ConstSymbol = 21 119 ConstSymbol_LoginResponse ConstSymbol = 22 120 // Minimum symbol ID that a client is allowed to issue 121 // This value sets a ceiling for the above hard-wired symbol IDs. 122 ConstSymbol_IssuerInitsAt ConstSymbol = 256 123 ) 124 125 var ConstSymbol_name = map[int32]string{ 126 0: "ConstSymbol_nil", 127 10: "ConstSymbol_Err", 128 11: "ConstSymbol_RegisterDefs", 129 12: "ConstSymbol_HandleURI", 130 13: "ConstSymbol_PinRequest", 131 20: "ConstSymbol_Login", 132 21: "ConstSymbol_LoginChallenge", 133 22: "ConstSymbol_LoginResponse", 134 256: "ConstSymbol_IssuerInitsAt", 135 } 136 137 var ConstSymbol_value = map[string]int32{ 138 "ConstSymbol_nil": 0, 139 "ConstSymbol_Err": 10, 140 "ConstSymbol_RegisterDefs": 11, 141 "ConstSymbol_HandleURI": 12, 142 "ConstSymbol_PinRequest": 13, 143 "ConstSymbol_Login": 20, 144 "ConstSymbol_LoginChallenge": 21, 145 "ConstSymbol_LoginResponse": 22, 146 "ConstSymbol_IssuerInitsAt": 256, 147 } 148 149 func (ConstSymbol) EnumDescriptor() ([]byte, []int) { 150 return fileDescriptor_7e479d288f92766f, []int{2} 151 } 152 153 // ReqStatus allows a sender to express the status of a request. 154 type ReqStatus int32 155 156 const ( 157 // The request is in the process of being formed 158 ReqStatus_NotStarted ReqStatus = 0 159 // Denotes that the request is in progress. 160 ReqStatus_Syncing ReqStatus = 1 161 // Sent by the host to signal that this ReqID up to date and the client state is stable / synchronized. 162 // This generally drives UI updates or other aggregate cell dependencies. 163 ReqStatus_Synced ReqStatus = 2 164 // From the client to host, this signals to close / cancel the op associated with ReqID. 165 // From the host to client, this signals that the given request ID has been closed / discarded. 166 ReqStatus_Closed ReqStatus = 3 167 ) 168 169 var ReqStatus_name = map[int32]string{ 170 0: "ReqStatus_NotStarted", 171 1: "ReqStatus_Syncing", 172 2: "ReqStatus_Synced", 173 3: "ReqStatus_Closed", 174 } 175 176 var ReqStatus_value = map[string]int32{ 177 "ReqStatus_NotStarted": 0, 178 "ReqStatus_Syncing": 1, 179 "ReqStatus_Synced": 2, 180 "ReqStatus_Closed": 3, 181 } 182 183 func (ReqStatus) EnumDescriptor() ([]byte, []int) { 184 return fileDescriptor_7e479d288f92766f, []int{3} 185 } 186 187 // CellTxOp specifies a cell transaction operation. 188 type CellTxOp int32 189 190 const ( 191 CellTxOp_MetaAttr CellTxOp = 0 192 CellTxOp_UpsertCell CellTxOp = 1 193 CellTxOp_RemoveCell CellTxOp = 3 194 ) 195 196 var CellTxOp_name = map[int32]string{ 197 0: "CellTxOp_MetaAttr", 198 1: "CellTxOp_UpsertCell", 199 3: "CellTxOp_RemoveCell", 200 } 201 202 var CellTxOp_value = map[string]int32{ 203 "CellTxOp_MetaAttr": 0, 204 "CellTxOp_UpsertCell": 1, 205 "CellTxOp_RemoveCell": 3, 206 } 207 208 func (CellTxOp) EnumDescriptor() ([]byte, []int) { 209 return fileDescriptor_7e479d288f92766f, []int{4} 210 } 211 212 type SeriesIndexType int32 213 214 const ( 215 SeriesIndexType_Literal SeriesIndexType = 0 216 SeriesIndexType_Name SeriesIndexType = 1 217 ) 218 219 var SeriesIndexType_name = map[int32]string{ 220 0: "SeriesIndexType_Literal", 221 1: "SeriesIndexType_Name", 222 } 223 224 var SeriesIndexType_value = map[string]int32{ 225 "SeriesIndexType_Literal": 0, 226 "SeriesIndexType_Name": 1, 227 } 228 229 func (SeriesIndexType) EnumDescriptor() ([]byte, []int) { 230 return fileDescriptor_7e479d288f92766f, []int{5} 231 } 232 233 type PinFlags int32 234 235 const ( 236 PinFlags_None PinFlags = 0 237 // If set, all symbol / attr ID are native symbol IDs. 238 // This is used for apps pinning cells and so are using native (not client) IDs. 239 PinFlags_UseNativeSymbols PinFlags = 1 240 // If set, PinnedCell.ServeState() causes this request (PinContext) to automatically close once state is pushed and synchronized. 241 // Otherwise, the request remains open and the client will receive any state updates until closed. 242 // This is useful when only a snapshot of the cell is needed. 243 PinFlags_CloseOnSync PinFlags = 4 244 // If set, a pinned cell will not send any state updates to the client. 245 // This is useful when only writing to a cell and no state updates are needed. 246 PinFlags_NoSync PinFlags = 8 247 ) 248 249 var PinFlags_name = map[int32]string{ 250 0: "PinFlags_None", 251 1: "PinFlags_UseNativeSymbols", 252 4: "PinFlags_CloseOnSync", 253 8: "PinFlags_NoSync", 254 } 255 256 var PinFlags_value = map[string]int32{ 257 "PinFlags_None": 0, 258 "PinFlags_UseNativeSymbols": 1, 259 "PinFlags_CloseOnSync": 4, 260 "PinFlags_NoSync": 8, 261 } 262 263 func (PinFlags) EnumDescriptor() ([]byte, []int) { 264 return fileDescriptor_7e479d288f92766f, []int{6} 265 } 266 267 // CordType describes how to interpret coordinates contained in a Position. 268 type CordType int32 269 270 const ( 271 CordType_Unspecified CordType = 0 272 CordType_Ordered CordType = 1 273 CordType_Plane_Cartesian CordType = 5 274 CordType_Plane_HexEvenR CordType = 6 275 CordType_Geoid_Sphere CordType = 10 276 CordType_Geoid_WGS84 CordType = 11 277 ) 278 279 var CordType_name = map[int32]string{ 280 0: "CordType_Unspecified", 281 1: "CordType_Ordered", 282 5: "CordType_Plane_Cartesian", 283 6: "CordType_Plane_HexEvenR", 284 10: "CordType_Geoid_Sphere", 285 11: "CordType_Geoid_WGS84", 286 } 287 288 var CordType_value = map[string]int32{ 289 "CordType_Unspecified": 0, 290 "CordType_Ordered": 1, 291 "CordType_Plane_Cartesian": 5, 292 "CordType_Plane_HexEvenR": 6, 293 "CordType_Geoid_Sphere": 10, 294 "CordType_Geoid_WGS84": 11, 295 } 296 297 func (CordType) EnumDescriptor() ([]byte, []int) { 298 return fileDescriptor_7e479d288f92766f, []int{7} 299 } 300 301 type QuadState int32 302 303 const ( 304 QuadState_LatentOff QuadState = 0 305 QuadState_LatentOn QuadState = 1 306 QuadState_ActiveOff QuadState = 16 307 QuadState_ActiveOn QuadState = 17 308 ) 309 310 var QuadState_name = map[int32]string{ 311 0: "QuadState_LatentOff", 312 1: "QuadState_LatentOn", 313 16: "QuadState_ActiveOff", 314 17: "QuadState_ActiveOn", 315 } 316 317 var QuadState_value = map[string]int32{ 318 "QuadState_LatentOff": 0, 319 "QuadState_LatentOn": 1, 320 "QuadState_ActiveOff": 16, 321 "QuadState_ActiveOn": 17, 322 } 323 324 func (QuadState) EnumDescriptor() ([]byte, []int) { 325 return fileDescriptor_7e479d288f92766f, []int{8} 326 } 327 328 type UrlScheme int32 329 330 const ( 331 UrlScheme_Nil UrlScheme = 0 332 UrlScheme_Data UrlScheme = 1 333 UrlScheme_Amp UrlScheme = 2 334 UrlScheme_File UrlScheme = 3 335 UrlScheme_Http UrlScheme = 4 336 ) 337 338 var UrlScheme_name = map[int32]string{ 339 0: "UrlScheme_Nil", 340 1: "UrlScheme_Data", 341 2: "UrlScheme_Amp", 342 3: "UrlScheme_File", 343 4: "UrlScheme_Http", 344 } 345 346 var UrlScheme_value = map[string]int32{ 347 "UrlScheme_Nil": 0, 348 "UrlScheme_Data": 1, 349 "UrlScheme_Amp": 2, 350 "UrlScheme_File": 3, 351 "UrlScheme_Http": 4, 352 } 353 354 func (UrlScheme) EnumDescriptor() ([]byte, []int) { 355 return fileDescriptor_7e479d288f92766f, []int{9} 356 } 357 358 // CryptoKitID identifies an encryption suite that implements ski.CryptoKit 359 type CryptoKitID int32 360 361 const ( 362 CryptoKit_Nil CryptoKitID = 0 363 CryptoKit_SecretBox_NaCl CryptoKitID = 100 364 CryptoKit_AsymMsg_NaCl CryptoKitID = 101 365 CryptoKit_Signing_NaCl CryptoKitID = 102 366 CryptoKit_Signing_ED25519 CryptoKitID = 202 367 ) 368 369 var CryptoKitID_name = map[int32]string{ 370 0: "CryptoKit_Nil", 371 100: "CryptoKit_SecretBox_NaCl", 372 101: "CryptoKit_AsymMsg_NaCl", 373 102: "CryptoKit_Signing_NaCl", 374 202: "CryptoKit_Signing_ED25519", 375 } 376 377 var CryptoKitID_value = map[string]int32{ 378 "CryptoKit_Nil": 0, 379 "CryptoKit_SecretBox_NaCl": 100, 380 "CryptoKit_AsymMsg_NaCl": 101, 381 "CryptoKit_Signing_NaCl": 102, 382 "CryptoKit_Signing_ED25519": 202, 383 } 384 385 func (CryptoKitID) EnumDescriptor() ([]byte, []int) { 386 return fileDescriptor_7e479d288f92766f, []int{10} 387 } 388 389 // ErrCode expresses status and error codes. 390 type ErrCode int32 391 392 const ( 393 ErrCode_NoErr ErrCode = 0 394 ErrCode_UnnamedErr ErrCode = 5000 395 ErrCode_InternalErr ErrCode = 5001 396 ErrCode_UnsupportedOp ErrCode = 5002 397 ErrCode_Unimplemented ErrCode = 5003 398 ErrCode_Timeout ErrCode = 5004 399 ErrCode_ShuttingDown ErrCode = 5005 400 ErrCode_NotConnected ErrCode = 5006 401 ErrCode_AuthFailed ErrCode = 5007 402 ErrCode_LoginFailed ErrCode = 5008 403 ErrCode_SessionExpired ErrCode = 5009 404 ErrCode_ReqNotFound ErrCode = 5010 405 ErrCode_InvalidReq ErrCode = 5020 406 ErrCode_InvalidURI ErrCode = 5021 407 ErrCode_BadValue ErrCode = 5022 408 ErrCode_NothingToCommit ErrCode = 5030 409 ErrCode_CommitFailed ErrCode = 5031 410 ErrCode_PlanetNotFound ErrCode = 5032 411 ErrCode_PlanetFailure ErrCode = 5033 412 ErrCode_AppNotFound ErrCode = 5034 413 ErrCode_DefNotFound ErrCode = 5036 414 ErrCode_MalformedTx ErrCode = 5040 415 ErrCode_TypeNotFound ErrCode = 5050 416 ErrCode_TypeNotRegistered ErrCode = 5051 417 ErrCode_BadSchema ErrCode = 5052 418 ErrCode_DataFailure ErrCode = 5053 419 ErrCode_ExportErr ErrCode = 5054 420 ErrCode_PinFailed ErrCode = 5055 421 ErrCode_PinContextClosed ErrCode = 5056 422 ErrCode_CellNotFound ErrCode = 5058 423 ErrCode_ProviderErr ErrCode = 5059 424 ErrCode_ViolatesAppendOnly ErrCode = 5100 425 ErrCode_InsufficientPermissions ErrCode = 5101 426 ) 427 428 var ErrCode_name = map[int32]string{ 429 0: "ErrCode_NoErr", 430 5000: "ErrCode_UnnamedErr", 431 5001: "ErrCode_InternalErr", 432 5002: "ErrCode_UnsupportedOp", 433 5003: "ErrCode_Unimplemented", 434 5004: "ErrCode_Timeout", 435 5005: "ErrCode_ShuttingDown", 436 5006: "ErrCode_NotConnected", 437 5007: "ErrCode_AuthFailed", 438 5008: "ErrCode_LoginFailed", 439 5009: "ErrCode_SessionExpired", 440 5010: "ErrCode_ReqNotFound", 441 5020: "ErrCode_InvalidReq", 442 5021: "ErrCode_InvalidURI", 443 5022: "ErrCode_BadValue", 444 5030: "ErrCode_NothingToCommit", 445 5031: "ErrCode_CommitFailed", 446 5032: "ErrCode_PlanetNotFound", 447 5033: "ErrCode_PlanetFailure", 448 5034: "ErrCode_AppNotFound", 449 5036: "ErrCode_DefNotFound", 450 5040: "ErrCode_MalformedTx", 451 5050: "ErrCode_TypeNotFound", 452 5051: "ErrCode_TypeNotRegistered", 453 5052: "ErrCode_BadSchema", 454 5053: "ErrCode_DataFailure", 455 5054: "ErrCode_ExportErr", 456 5055: "ErrCode_PinFailed", 457 5056: "ErrCode_PinContextClosed", 458 5058: "ErrCode_CellNotFound", 459 5059: "ErrCode_ProviderErr", 460 5100: "ErrCode_ViolatesAppendOnly", 461 5101: "ErrCode_InsufficientPermissions", 462 } 463 464 var ErrCode_value = map[string]int32{ 465 "ErrCode_NoErr": 0, 466 "ErrCode_UnnamedErr": 5000, 467 "ErrCode_InternalErr": 5001, 468 "ErrCode_UnsupportedOp": 5002, 469 "ErrCode_Unimplemented": 5003, 470 "ErrCode_Timeout": 5004, 471 "ErrCode_ShuttingDown": 5005, 472 "ErrCode_NotConnected": 5006, 473 "ErrCode_AuthFailed": 5007, 474 "ErrCode_LoginFailed": 5008, 475 "ErrCode_SessionExpired": 5009, 476 "ErrCode_ReqNotFound": 5010, 477 "ErrCode_InvalidReq": 5020, 478 "ErrCode_InvalidURI": 5021, 479 "ErrCode_BadValue": 5022, 480 "ErrCode_NothingToCommit": 5030, 481 "ErrCode_CommitFailed": 5031, 482 "ErrCode_PlanetNotFound": 5032, 483 "ErrCode_PlanetFailure": 5033, 484 "ErrCode_AppNotFound": 5034, 485 "ErrCode_DefNotFound": 5036, 486 "ErrCode_MalformedTx": 5040, 487 "ErrCode_TypeNotFound": 5050, 488 "ErrCode_TypeNotRegistered": 5051, 489 "ErrCode_BadSchema": 5052, 490 "ErrCode_DataFailure": 5053, 491 "ErrCode_ExportErr": 5054, 492 "ErrCode_PinFailed": 5055, 493 "ErrCode_PinContextClosed": 5056, 494 "ErrCode_CellNotFound": 5058, 495 "ErrCode_ProviderErr": 5059, 496 "ErrCode_ViolatesAppendOnly": 5100, 497 "ErrCode_InsufficientPermissions": 5101, 498 } 499 500 func (ErrCode) EnumDescriptor() ([]byte, []int) { 501 return fileDescriptor_7e479d288f92766f, []int{11} 502 } 503 504 type LogLevel int32 505 506 const ( 507 LogLevel_Error LogLevel = 0 508 LogLevel_Warn LogLevel = 2 509 LogLevel_Info LogLevel = 4 510 ) 511 512 var LogLevel_name = map[int32]string{ 513 0: "LogLevel_Error", 514 2: "LogLevel_Warn", 515 4: "LogLevel_Info", 516 } 517 518 var LogLevel_value = map[string]int32{ 519 "LogLevel_Error": 0, 520 "LogLevel_Warn": 2, 521 "LogLevel_Info": 4, 522 } 523 524 func (LogLevel) EnumDescriptor() ([]byte, []int) { 525 return fileDescriptor_7e479d288f92766f, []int{12} 526 } 527 528 type TRS_VisualScaleMode int32 529 530 const ( 531 AutoScale TRS_VisualScaleMode = 0 532 FixedScale TRS_VisualScaleMode = 1 533 ) 534 535 var TRS_VisualScaleMode_name = map[int32]string{ 536 0: "AutoScale", 537 1: "FixedScale", 538 } 539 540 var TRS_VisualScaleMode_value = map[string]int32{ 541 "AutoScale": 0, 542 "FixedScale": 1, 543 } 544 545 func (TRS_VisualScaleMode) EnumDescriptor() ([]byte, []int) { 546 return fileDescriptor_7e479d288f92766f, []int{19, 0} 547 } 548 549 // Msg is thw workhorse generic transport serialization sent between client and host. 550 type Msg struct { 551 // ReqID names an originating request ID, issued by client using an atomic counter. 552 // 553 // For example, if a Msg is a reply to some request, ReqID identifies the originating request\. 554 ReqID uint64 `protobuf:"varint,1,opt,name=ReqID,proto3" json:"ReqID,omitempty"` 555 // Status communicates request status / completion. 556 Status ReqStatus `protobuf:"varint,2,opt,name=Status,proto3,enum=amp.ReqStatus" json:"Status,omitempty"` 557 // CellTxs is a Cell state update as well as session meta-messaging mechanism. 558 CellTxs []*CellTxPb `protobuf:"bytes,5,rep,name=CellTxs,proto3" json:"CellTxs,omitempty"` 559 } 560 561 func (m *Msg) Reset() { *m = Msg{} } 562 func (*Msg) ProtoMessage() {} 563 func (*Msg) Descriptor() ([]byte, []int) { 564 return fileDescriptor_7e479d288f92766f, []int{0} 565 } 566 func (m *Msg) XXX_Unmarshal(b []byte) error { 567 return m.Unmarshal(b) 568 } 569 func (m *Msg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 570 if deterministic { 571 return xxx_messageInfo_Msg.Marshal(b, m, deterministic) 572 } else { 573 b = b[:cap(b)] 574 n, err := m.MarshalToSizedBuffer(b) 575 if err != nil { 576 return nil, err 577 } 578 return b[:n], nil 579 } 580 } 581 func (m *Msg) XXX_Merge(src proto.Message) { 582 xxx_messageInfo_Msg.Merge(m, src) 583 } 584 func (m *Msg) XXX_Size() int { 585 return m.Size() 586 } 587 func (m *Msg) XXX_DiscardUnknown() { 588 xxx_messageInfo_Msg.DiscardUnknown(m) 589 } 590 591 var xxx_messageInfo_Msg proto.InternalMessageInfo 592 593 func (m *Msg) GetReqID() uint64 { 594 if m != nil { 595 return m.ReqID 596 } 597 return 0 598 } 599 600 func (m *Msg) GetStatus() ReqStatus { 601 if m != nil { 602 return m.Status 603 } 604 return ReqStatus_NotStarted 605 } 606 607 func (m *Msg) GetCellTxs() []*CellTxPb { 608 if m != nil { 609 return m.CellTxs 610 } 611 return nil 612 } 613 614 // CellTxPb is a cell transaction, a unit of change (or meta message) for a cell. 615 type CellTxPb struct { 616 Op CellTxOp `protobuf:"varint,1,opt,name=Op,proto3,enum=amp.CellTxOp" json:"Op,omitempty"` 617 // Target CellID 618 // If CellID_1 == 0, then this cell is ephemeral (vs persistent). 619 CellID_0 uint64 `protobuf:"fixed64,3,opt,name=CellID_0,json=CellID0,proto3" json:"CellID_0,omitempty"` 620 CellID_1 uint64 `protobuf:"fixed64,4,opt,name=CellID_1,json=CellID1,proto3" json:"CellID_1,omitempty"` 621 Elems []*AttrElemPb `protobuf:"bytes,8,rep,name=Elems,proto3" json:"Elems,omitempty"` 622 } 623 624 func (m *CellTxPb) Reset() { *m = CellTxPb{} } 625 func (*CellTxPb) ProtoMessage() {} 626 func (*CellTxPb) Descriptor() ([]byte, []int) { 627 return fileDescriptor_7e479d288f92766f, []int{1} 628 } 629 func (m *CellTxPb) XXX_Unmarshal(b []byte) error { 630 return m.Unmarshal(b) 631 } 632 func (m *CellTxPb) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 633 if deterministic { 634 return xxx_messageInfo_CellTxPb.Marshal(b, m, deterministic) 635 } else { 636 b = b[:cap(b)] 637 n, err := m.MarshalToSizedBuffer(b) 638 if err != nil { 639 return nil, err 640 } 641 return b[:n], nil 642 } 643 } 644 func (m *CellTxPb) XXX_Merge(src proto.Message) { 645 xxx_messageInfo_CellTxPb.Merge(m, src) 646 } 647 func (m *CellTxPb) XXX_Size() int { 648 return m.Size() 649 } 650 func (m *CellTxPb) XXX_DiscardUnknown() { 651 xxx_messageInfo_CellTxPb.DiscardUnknown(m) 652 } 653 654 var xxx_messageInfo_CellTxPb proto.InternalMessageInfo 655 656 func (m *CellTxPb) GetOp() CellTxOp { 657 if m != nil { 658 return m.Op 659 } 660 return CellTxOp_MetaAttr 661 } 662 663 func (m *CellTxPb) GetCellID_0() uint64 { 664 if m != nil { 665 return m.CellID_0 666 } 667 return 0 668 } 669 670 func (m *CellTxPb) GetCellID_1() uint64 { 671 if m != nil { 672 return m.CellID_1 673 } 674 return 0 675 } 676 677 func (m *CellTxPb) GetElems() []*AttrElemPb { 678 if m != nil { 679 return m.Elems 680 } 681 return nil 682 } 683 684 // Serialization helper for AttrElem 685 type AttrElemPb struct { 686 // AttrID of the attr being updated (64 bits for future proofing) 687 AttrID uint64 `protobuf:"varint,1,opt,name=AttrID,proto3" json:"AttrID,omitempty"` 688 // Serialized value of the attr element -- IAW AttrID 689 ValBuf []byte `protobuf:"bytes,2,opt,name=ValBuf,proto3" json:"ValBuf,omitempty"` 690 // Series index (if applicable) 691 SI int64 `protobuf:"varint,3,opt,name=SI,proto3" json:"SI,omitempty"` 692 } 693 694 func (m *AttrElemPb) Reset() { *m = AttrElemPb{} } 695 func (*AttrElemPb) ProtoMessage() {} 696 func (*AttrElemPb) Descriptor() ([]byte, []int) { 697 return fileDescriptor_7e479d288f92766f, []int{2} 698 } 699 func (m *AttrElemPb) XXX_Unmarshal(b []byte) error { 700 return m.Unmarshal(b) 701 } 702 func (m *AttrElemPb) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 703 if deterministic { 704 return xxx_messageInfo_AttrElemPb.Marshal(b, m, deterministic) 705 } else { 706 b = b[:cap(b)] 707 n, err := m.MarshalToSizedBuffer(b) 708 if err != nil { 709 return nil, err 710 } 711 return b[:n], nil 712 } 713 } 714 func (m *AttrElemPb) XXX_Merge(src proto.Message) { 715 xxx_messageInfo_AttrElemPb.Merge(m, src) 716 } 717 func (m *AttrElemPb) XXX_Size() int { 718 return m.Size() 719 } 720 func (m *AttrElemPb) XXX_DiscardUnknown() { 721 xxx_messageInfo_AttrElemPb.DiscardUnknown(m) 722 } 723 724 var xxx_messageInfo_AttrElemPb proto.InternalMessageInfo 725 726 func (m *AttrElemPb) GetAttrID() uint64 { 727 if m != nil { 728 return m.AttrID 729 } 730 return 0 731 } 732 733 func (m *AttrElemPb) GetValBuf() []byte { 734 if m != nil { 735 return m.ValBuf 736 } 737 return nil 738 } 739 740 func (m *AttrElemPb) GetSI() int64 { 741 if m != nil { 742 return m.SI 743 } 744 return 0 745 } 746 747 type Login struct { 748 // A byte string identifying user who is logging in (lot limited to UTF8) 749 // This is typically a username or a persistent UID issued by the device OS when the app is (re)installed. 750 UserUID string `protobuf:"bytes,1,opt,name=UserUID,proto3" json:"UserUID,omitempty"` 751 // HostAddr is network address of the server known to the client (e.g. IP address, localhost, domain name, etc) 752 // archost uses this to as the host name when serving URLs for the client to consume. 753 HostAddr string `protobuf:"bytes,2,opt,name=HostAddr,proto3" json:"HostAddr,omitempty"` 754 DeviceLabel string `protobuf:"bytes,8,opt,name=DeviceLabel,proto3" json:"DeviceLabel,omitempty"` 755 DeviceUID string `protobuf:"bytes,9,opt,name=DeviceUID,proto3" json:"DeviceUID,omitempty"` 756 } 757 758 func (m *Login) Reset() { *m = Login{} } 759 func (*Login) ProtoMessage() {} 760 func (*Login) Descriptor() ([]byte, []int) { 761 return fileDescriptor_7e479d288f92766f, []int{3} 762 } 763 func (m *Login) XXX_Unmarshal(b []byte) error { 764 return m.Unmarshal(b) 765 } 766 func (m *Login) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 767 if deterministic { 768 return xxx_messageInfo_Login.Marshal(b, m, deterministic) 769 } else { 770 b = b[:cap(b)] 771 n, err := m.MarshalToSizedBuffer(b) 772 if err != nil { 773 return nil, err 774 } 775 return b[:n], nil 776 } 777 } 778 func (m *Login) XXX_Merge(src proto.Message) { 779 xxx_messageInfo_Login.Merge(m, src) 780 } 781 func (m *Login) XXX_Size() int { 782 return m.Size() 783 } 784 func (m *Login) XXX_DiscardUnknown() { 785 xxx_messageInfo_Login.DiscardUnknown(m) 786 } 787 788 var xxx_messageInfo_Login proto.InternalMessageInfo 789 790 func (m *Login) GetUserUID() string { 791 if m != nil { 792 return m.UserUID 793 } 794 return "" 795 } 796 797 func (m *Login) GetHostAddr() string { 798 if m != nil { 799 return m.HostAddr 800 } 801 return "" 802 } 803 804 func (m *Login) GetDeviceLabel() string { 805 if m != nil { 806 return m.DeviceLabel 807 } 808 return "" 809 } 810 811 func (m *Login) GetDeviceUID() string { 812 if m != nil { 813 return m.DeviceUID 814 } 815 return "" 816 } 817 818 // LoginChallenge is sent from host to client in response to a Login message 819 type LoginChallenge struct { 820 Hash []byte `protobuf:"bytes,1,opt,name=Hash,proto3" json:"Hash,omitempty"` 821 } 822 823 func (m *LoginChallenge) Reset() { *m = LoginChallenge{} } 824 func (*LoginChallenge) ProtoMessage() {} 825 func (*LoginChallenge) Descriptor() ([]byte, []int) { 826 return fileDescriptor_7e479d288f92766f, []int{4} 827 } 828 func (m *LoginChallenge) XXX_Unmarshal(b []byte) error { 829 return m.Unmarshal(b) 830 } 831 func (m *LoginChallenge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 832 if deterministic { 833 return xxx_messageInfo_LoginChallenge.Marshal(b, m, deterministic) 834 } else { 835 b = b[:cap(b)] 836 n, err := m.MarshalToSizedBuffer(b) 837 if err != nil { 838 return nil, err 839 } 840 return b[:n], nil 841 } 842 } 843 func (m *LoginChallenge) XXX_Merge(src proto.Message) { 844 xxx_messageInfo_LoginChallenge.Merge(m, src) 845 } 846 func (m *LoginChallenge) XXX_Size() int { 847 return m.Size() 848 } 849 func (m *LoginChallenge) XXX_DiscardUnknown() { 850 xxx_messageInfo_LoginChallenge.DiscardUnknown(m) 851 } 852 853 var xxx_messageInfo_LoginChallenge proto.InternalMessageInfo 854 855 func (m *LoginChallenge) GetHash() []byte { 856 if m != nil { 857 return m.Hash 858 } 859 return nil 860 } 861 862 // LoginChallenge is sent from client to host in response to a LoginChallenge message 863 type LoginResponse struct { 864 HashResp []byte `protobuf:"bytes,1,opt,name=HashResp,proto3" json:"HashResp,omitempty"` 865 } 866 867 func (m *LoginResponse) Reset() { *m = LoginResponse{} } 868 func (*LoginResponse) ProtoMessage() {} 869 func (*LoginResponse) Descriptor() ([]byte, []int) { 870 return fileDescriptor_7e479d288f92766f, []int{5} 871 } 872 func (m *LoginResponse) XXX_Unmarshal(b []byte) error { 873 return m.Unmarshal(b) 874 } 875 func (m *LoginResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 876 if deterministic { 877 return xxx_messageInfo_LoginResponse.Marshal(b, m, deterministic) 878 } else { 879 b = b[:cap(b)] 880 n, err := m.MarshalToSizedBuffer(b) 881 if err != nil { 882 return nil, err 883 } 884 return b[:n], nil 885 } 886 } 887 func (m *LoginResponse) XXX_Merge(src proto.Message) { 888 xxx_messageInfo_LoginResponse.Merge(m, src) 889 } 890 func (m *LoginResponse) XXX_Size() int { 891 return m.Size() 892 } 893 func (m *LoginResponse) XXX_DiscardUnknown() { 894 xxx_messageInfo_LoginResponse.DiscardUnknown(m) 895 } 896 897 var xxx_messageInfo_LoginResponse proto.InternalMessageInfo 898 899 func (m *LoginResponse) GetHashResp() []byte { 900 if m != nil { 901 return m.HashResp 902 } 903 return nil 904 } 905 906 type Symbol struct { 907 // A symbol ID is 32 bits and corresponds to a real-world const byte strings. 908 // FUTURE: IDs are int64, where client symbols IDs are < 0 and native symbols are > 0. 909 ID uint32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` 910 Name []byte `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` 911 } 912 913 func (m *Symbol) Reset() { *m = Symbol{} } 914 func (*Symbol) ProtoMessage() {} 915 func (*Symbol) Descriptor() ([]byte, []int) { 916 return fileDescriptor_7e479d288f92766f, []int{6} 917 } 918 func (m *Symbol) XXX_Unmarshal(b []byte) error { 919 return m.Unmarshal(b) 920 } 921 func (m *Symbol) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 922 if deterministic { 923 return xxx_messageInfo_Symbol.Marshal(b, m, deterministic) 924 } else { 925 b = b[:cap(b)] 926 n, err := m.MarshalToSizedBuffer(b) 927 if err != nil { 928 return nil, err 929 } 930 return b[:n], nil 931 } 932 } 933 func (m *Symbol) XXX_Merge(src proto.Message) { 934 xxx_messageInfo_Symbol.Merge(m, src) 935 } 936 func (m *Symbol) XXX_Size() int { 937 return m.Size() 938 } 939 func (m *Symbol) XXX_DiscardUnknown() { 940 xxx_messageInfo_Symbol.DiscardUnknown(m) 941 } 942 943 var xxx_messageInfo_Symbol proto.InternalMessageInfo 944 945 func (m *Symbol) GetID() uint32 { 946 if m != nil { 947 return m.ID 948 } 949 return 0 950 } 951 952 func (m *Symbol) GetName() []byte { 953 if m != nil { 954 return m.Name 955 } 956 return nil 957 } 958 959 // RegisterDefs is sent by a client to register its symbols and schemas during a session. 960 type RegisterDefs struct { 961 Symbols []*Symbol `protobuf:"bytes,1,rep,name=Symbols,proto3" json:"Symbols,omitempty"` 962 Attrs []*AttrSpec `protobuf:"bytes,2,rep,name=Attrs,proto3" json:"Attrs,omitempty"` 963 Selectors []*ItemSelector `protobuf:"bytes,4,rep,name=Selectors,proto3" json:"Selectors,omitempty"` 964 } 965 966 func (m *RegisterDefs) Reset() { *m = RegisterDefs{} } 967 func (*RegisterDefs) ProtoMessage() {} 968 func (*RegisterDefs) Descriptor() ([]byte, []int) { 969 return fileDescriptor_7e479d288f92766f, []int{7} 970 } 971 func (m *RegisterDefs) XXX_Unmarshal(b []byte) error { 972 return m.Unmarshal(b) 973 } 974 func (m *RegisterDefs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 975 if deterministic { 976 return xxx_messageInfo_RegisterDefs.Marshal(b, m, deterministic) 977 } else { 978 b = b[:cap(b)] 979 n, err := m.MarshalToSizedBuffer(b) 980 if err != nil { 981 return nil, err 982 } 983 return b[:n], nil 984 } 985 } 986 func (m *RegisterDefs) XXX_Merge(src proto.Message) { 987 xxx_messageInfo_RegisterDefs.Merge(m, src) 988 } 989 func (m *RegisterDefs) XXX_Size() int { 990 return m.Size() 991 } 992 func (m *RegisterDefs) XXX_DiscardUnknown() { 993 xxx_messageInfo_RegisterDefs.DiscardUnknown(m) 994 } 995 996 var xxx_messageInfo_RegisterDefs proto.InternalMessageInfo 997 998 func (m *RegisterDefs) GetSymbols() []*Symbol { 999 if m != nil { 1000 return m.Symbols 1001 } 1002 return nil 1003 } 1004 1005 func (m *RegisterDefs) GetAttrs() []*AttrSpec { 1006 if m != nil { 1007 return m.Attrs 1008 } 1009 return nil 1010 } 1011 1012 func (m *RegisterDefs) GetSelectors() []*ItemSelector { 1013 if m != nil { 1014 return m.Selectors 1015 } 1016 return nil 1017 } 1018 1019 // AttrSpec fully describes a cell attribute, specifying a name, element type, and series element type. 1020 type AttrSpec struct { 1021 // Composite expression / invocation of this AttrSpec in the form: 1022 // "[{SeriesSpec}]{ElemType}:{AttrName}" 1023 // 1024 // This the value is used for Msg.AttrID -- it references an AttrSpec. 1025 // e.g. "AssetTag", "AssetTag:promo", "[UTC16]Position:past-promo-shoots", 1026 DefID uint32 `protobuf:"varint,1,opt,name=DefID,proto3" json:"DefID,omitempty"` 1027 // ElemType identifies this attr's element type and has a form like a subdomain: 1028 // "({subTypeName}.)*<typeName>" 1029 // 1030 // A particular ElemType corresponds to a serializable data type (typically a protobuf or capnp message) 1031 // Valid chars are [A-Za-z0-9_-] in addition to '.' that separates identifiers.. 1032 // 1033 // e.g. 1034 // "AssetTag", 1035 // "GreetingAttr.tutorial_06.hello-world.learn.arcspace.systems", 1036 ElemType uint32 `protobuf:"varint,3,opt,name=ElemType,proto3" json:"ElemType,omitempty"` 1037 // SeriesSpec specifies how to interpret an attr's SeriesIndex int64 value ("SI") and has the form: 1038 // "{SeriesName}[.{SeriesIndexType}]" 1039 // 1040 // A SeriesSpec includes its underlying SeriesType as a suffix, telling the host to perform necessary handling. 1041 // If SeriesSpec is omitted, this attr is a scalar value (and SI is 0 assumed). 1042 // 1043 // UTC16 and Secs16 are 48.16 fixed signed fractional seconds (one second == 0x10000 ticks), naming a time duration or timestamp. 1044 // When naming an absolute timestamp, unix UTC is assumed (0x10000 corresponds to 00:00:01, Jan 1 1970 GMT) 1045 // 1046 // e.g. "", "UTC16", "Secs16", "Int64", "Locale.Name" -- FUTURE "GeoHash", "NodeID", "TID" 1047 SeriesSpec uint32 `protobuf:"varint,4,opt,name=SeriesSpec,proto3" json:"SeriesSpec,omitempty"` 1048 // SeriesIndexType tells the host how to handle and process attr series index values. 1049 // If SeriesSpec is omitted (SeriesSpec = 0), SI index values are considered literals (SeriesIndexType_Literal). 1050 SeriesIndexType SeriesIndexType `protobuf:"varint,5,opt,name=SeriesIndexType,proto3,enum=amp.SeriesIndexType" json:"SeriesIndexType,omitempty"` 1051 // AttrName differentiates an attribute from others having the same ElemType and SeriesSpec 1052 // - Unnamed attrs are common and typically are used to denote a characterizing cell attribute. 1053 // - By convention, attr names of series are plural, and reflects that the attr is intended to contain multiple entries (e.g. "[Locale.Name]Labels") 1054 // - Valid chars consist of [A-Za-z0-9_-] ('.' is not allowed) 1055 // 1056 // e.g. "", "playable", "mini", "1440p" 1057 AttrName uint32 `protobuf:"varint,6,opt,name=AttrName,proto3" json:"AttrName,omitempty"` 1058 } 1059 1060 func (m *AttrSpec) Reset() { *m = AttrSpec{} } 1061 func (*AttrSpec) ProtoMessage() {} 1062 func (*AttrSpec) Descriptor() ([]byte, []int) { 1063 return fileDescriptor_7e479d288f92766f, []int{8} 1064 } 1065 func (m *AttrSpec) XXX_Unmarshal(b []byte) error { 1066 return m.Unmarshal(b) 1067 } 1068 func (m *AttrSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1069 if deterministic { 1070 return xxx_messageInfo_AttrSpec.Marshal(b, m, deterministic) 1071 } else { 1072 b = b[:cap(b)] 1073 n, err := m.MarshalToSizedBuffer(b) 1074 if err != nil { 1075 return nil, err 1076 } 1077 return b[:n], nil 1078 } 1079 } 1080 func (m *AttrSpec) XXX_Merge(src proto.Message) { 1081 xxx_messageInfo_AttrSpec.Merge(m, src) 1082 } 1083 func (m *AttrSpec) XXX_Size() int { 1084 return m.Size() 1085 } 1086 func (m *AttrSpec) XXX_DiscardUnknown() { 1087 xxx_messageInfo_AttrSpec.DiscardUnknown(m) 1088 } 1089 1090 var xxx_messageInfo_AttrSpec proto.InternalMessageInfo 1091 1092 func (m *AttrSpec) GetDefID() uint32 { 1093 if m != nil { 1094 return m.DefID 1095 } 1096 return 0 1097 } 1098 1099 func (m *AttrSpec) GetElemType() uint32 { 1100 if m != nil { 1101 return m.ElemType 1102 } 1103 return 0 1104 } 1105 1106 func (m *AttrSpec) GetSeriesSpec() uint32 { 1107 if m != nil { 1108 return m.SeriesSpec 1109 } 1110 return 0 1111 } 1112 1113 func (m *AttrSpec) GetSeriesIndexType() SeriesIndexType { 1114 if m != nil { 1115 return m.SeriesIndexType 1116 } 1117 return SeriesIndexType_Literal 1118 } 1119 1120 func (m *AttrSpec) GetAttrName() uint32 { 1121 if m != nil { 1122 return m.AttrName 1123 } 1124 return 0 1125 } 1126 1127 // ItemSelector selects / filters a srt of items (AttrSpec descriptors) 1128 type ItemSelector struct { 1129 // Composite expression of this ItemSelector in the form: 1130 // "(Include[0],Include[1],..)~(Exclude[0],Exclude[1],..)" 1131 // 1132 DefID uint32 `protobuf:"varint,1,opt,name=DefID,proto3" json:"DefID,omitempty"` 1133 // A set of descriptor IDs explicitly included 1134 Include []uint32 `protobuf:"varint,4,rep,packed,name=Include,proto3" json:"Include,omitempty"` 1135 // A set of descriptor IDs explicitly excluded 1136 Exclude []uint32 `protobuf:"varint,5,rep,packed,name=Exclude,proto3" json:"Exclude,omitempty"` 1137 } 1138 1139 func (m *ItemSelector) Reset() { *m = ItemSelector{} } 1140 func (*ItemSelector) ProtoMessage() {} 1141 func (*ItemSelector) Descriptor() ([]byte, []int) { 1142 return fileDescriptor_7e479d288f92766f, []int{9} 1143 } 1144 func (m *ItemSelector) XXX_Unmarshal(b []byte) error { 1145 return m.Unmarshal(b) 1146 } 1147 func (m *ItemSelector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1148 if deterministic { 1149 return xxx_messageInfo_ItemSelector.Marshal(b, m, deterministic) 1150 } else { 1151 b = b[:cap(b)] 1152 n, err := m.MarshalToSizedBuffer(b) 1153 if err != nil { 1154 return nil, err 1155 } 1156 return b[:n], nil 1157 } 1158 } 1159 func (m *ItemSelector) XXX_Merge(src proto.Message) { 1160 xxx_messageInfo_ItemSelector.Merge(m, src) 1161 } 1162 func (m *ItemSelector) XXX_Size() int { 1163 return m.Size() 1164 } 1165 func (m *ItemSelector) XXX_DiscardUnknown() { 1166 xxx_messageInfo_ItemSelector.DiscardUnknown(m) 1167 } 1168 1169 var xxx_messageInfo_ItemSelector proto.InternalMessageInfo 1170 1171 func (m *ItemSelector) GetDefID() uint32 { 1172 if m != nil { 1173 return m.DefID 1174 } 1175 return 0 1176 } 1177 1178 func (m *ItemSelector) GetInclude() []uint32 { 1179 if m != nil { 1180 return m.Include 1181 } 1182 return nil 1183 } 1184 1185 func (m *ItemSelector) GetExclude() []uint32 { 1186 if m != nil { 1187 return m.Exclude 1188 } 1189 return nil 1190 } 1191 1192 // HandleURI is used as a meta attribute to request a URI is handled, such as an oauth request (host to client) or an oauth response (client to host). 1193 type HandleURI struct { 1194 URI string `protobuf:"bytes,1,opt,name=URI,proto3" json:"URI,omitempty"` 1195 } 1196 1197 func (m *HandleURI) Reset() { *m = HandleURI{} } 1198 func (*HandleURI) ProtoMessage() {} 1199 func (*HandleURI) Descriptor() ([]byte, []int) { 1200 return fileDescriptor_7e479d288f92766f, []int{10} 1201 } 1202 func (m *HandleURI) XXX_Unmarshal(b []byte) error { 1203 return m.Unmarshal(b) 1204 } 1205 func (m *HandleURI) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1206 if deterministic { 1207 return xxx_messageInfo_HandleURI.Marshal(b, m, deterministic) 1208 } else { 1209 b = b[:cap(b)] 1210 n, err := m.MarshalToSizedBuffer(b) 1211 if err != nil { 1212 return nil, err 1213 } 1214 return b[:n], nil 1215 } 1216 } 1217 func (m *HandleURI) XXX_Merge(src proto.Message) { 1218 xxx_messageInfo_HandleURI.Merge(m, src) 1219 } 1220 func (m *HandleURI) XXX_Size() int { 1221 return m.Size() 1222 } 1223 func (m *HandleURI) XXX_DiscardUnknown() { 1224 xxx_messageInfo_HandleURI.DiscardUnknown(m) 1225 } 1226 1227 var xxx_messageInfo_HandleURI proto.InternalMessageInfo 1228 1229 func (m *HandleURI) GetURI() string { 1230 if m != nil { 1231 return m.URI 1232 } 1233 return "" 1234 } 1235 1236 // PinRequest is a client request to "pin" a cell, meaning selected attrs and child cells will be pushed to the client. 1237 type PinRequest struct { 1238 // ParentReqID, if set, provides context for this request and is typically needed when pinning a cell by ID alone. 1239 // Not set if PinURL and/or PinCellID implies that no parent req exists. 1240 ParentReqID uint64 `protobuf:"varint,1,opt,name=ParentReqID,proto3" json:"ParentReqID,omitempty"` 1241 // URL specifying the cell to be pinned and whose child cells are to be pushed. 1242 // Typically: [[amp://]amp-app-uri/]cell-uri.. 1243 PinURL string `protobuf:"bytes,2,opt,name=PinURL,proto3" json:"PinURL,omitempty"` 1244 // Pins a cell specified by its 16 byte ID and is typically a child cell of a pinned cell implied by ParentReqID. 1245 // These values are 0 if PinURL is nil or does not require a CellID. 1246 PinCellIDx0 uint64 `protobuf:"varint,3,opt,name=PinCellIDx0,proto3" json:"PinCellIDx0,omitempty"` 1247 PinCellIDx1 uint64 `protobuf:"varint,4,opt,name=PinCellIDx1,proto3" json:"PinCellIDx1,omitempty"` 1248 // If set, specifies an ItemSelector that filters which attrs of the pinned cell are pushed to the client. 1249 ParentAttrSelector uint32 `protobuf:"varint,5,opt,name=ParentAttrSelector,proto3" json:"ParentAttrSelector,omitempty"` 1250 // If set, specifies an ItemSelector that filters which child cells are pushed to the client. 1251 ChildCellSelector uint32 `protobuf:"varint,6,opt,name=ChildCellSelector,proto3" json:"ChildCellSelector,omitempty"` 1252 // Flags specifies options. 1253 Flags PinFlags `protobuf:"varint,7,opt,name=Flags,proto3,enum=amp.PinFlags" json:"Flags,omitempty"` 1254 } 1255 1256 func (m *PinRequest) Reset() { *m = PinRequest{} } 1257 func (*PinRequest) ProtoMessage() {} 1258 func (*PinRequest) Descriptor() ([]byte, []int) { 1259 return fileDescriptor_7e479d288f92766f, []int{11} 1260 } 1261 func (m *PinRequest) XXX_Unmarshal(b []byte) error { 1262 return m.Unmarshal(b) 1263 } 1264 func (m *PinRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1265 if deterministic { 1266 return xxx_messageInfo_PinRequest.Marshal(b, m, deterministic) 1267 } else { 1268 b = b[:cap(b)] 1269 n, err := m.MarshalToSizedBuffer(b) 1270 if err != nil { 1271 return nil, err 1272 } 1273 return b[:n], nil 1274 } 1275 } 1276 func (m *PinRequest) XXX_Merge(src proto.Message) { 1277 xxx_messageInfo_PinRequest.Merge(m, src) 1278 } 1279 func (m *PinRequest) XXX_Size() int { 1280 return m.Size() 1281 } 1282 func (m *PinRequest) XXX_DiscardUnknown() { 1283 xxx_messageInfo_PinRequest.DiscardUnknown(m) 1284 } 1285 1286 var xxx_messageInfo_PinRequest proto.InternalMessageInfo 1287 1288 func (m *PinRequest) GetParentReqID() uint64 { 1289 if m != nil { 1290 return m.ParentReqID 1291 } 1292 return 0 1293 } 1294 1295 func (m *PinRequest) GetPinURL() string { 1296 if m != nil { 1297 return m.PinURL 1298 } 1299 return "" 1300 } 1301 1302 func (m *PinRequest) GetPinCellIDx0() uint64 { 1303 if m != nil { 1304 return m.PinCellIDx0 1305 } 1306 return 0 1307 } 1308 1309 func (m *PinRequest) GetPinCellIDx1() uint64 { 1310 if m != nil { 1311 return m.PinCellIDx1 1312 } 1313 return 0 1314 } 1315 1316 func (m *PinRequest) GetParentAttrSelector() uint32 { 1317 if m != nil { 1318 return m.ParentAttrSelector 1319 } 1320 return 0 1321 } 1322 1323 func (m *PinRequest) GetChildCellSelector() uint32 { 1324 if m != nil { 1325 return m.ChildCellSelector 1326 } 1327 return 0 1328 } 1329 1330 func (m *PinRequest) GetFlags() PinFlags { 1331 if m != nil { 1332 return m.Flags 1333 } 1334 return PinFlags_None 1335 } 1336 1337 // Position describes a position in space and/or time using a given coordinate system. 1338 type Position struct { 1339 CordType CordType `protobuf:"varint,1,opt,name=CordType,proto3,enum=amp.CordType" json:"CordType,omitempty"` 1340 U float64 `protobuf:"fixed64,3,opt,name=U,proto3" json:"U,omitempty"` 1341 V float64 `protobuf:"fixed64,4,opt,name=V,proto3" json:"V,omitempty"` 1342 W float64 `protobuf:"fixed64,5,opt,name=W,proto3" json:"W,omitempty"` 1343 ROU float32 `protobuf:"fixed32,6,opt,name=ROU,proto3" json:"ROU,omitempty"` 1344 } 1345 1346 func (m *Position) Reset() { *m = Position{} } 1347 func (*Position) ProtoMessage() {} 1348 func (*Position) Descriptor() ([]byte, []int) { 1349 return fileDescriptor_7e479d288f92766f, []int{12} 1350 } 1351 func (m *Position) XXX_Unmarshal(b []byte) error { 1352 return m.Unmarshal(b) 1353 } 1354 func (m *Position) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1355 if deterministic { 1356 return xxx_messageInfo_Position.Marshal(b, m, deterministic) 1357 } else { 1358 b = b[:cap(b)] 1359 n, err := m.MarshalToSizedBuffer(b) 1360 if err != nil { 1361 return nil, err 1362 } 1363 return b[:n], nil 1364 } 1365 } 1366 func (m *Position) XXX_Merge(src proto.Message) { 1367 xxx_messageInfo_Position.Merge(m, src) 1368 } 1369 func (m *Position) XXX_Size() int { 1370 return m.Size() 1371 } 1372 func (m *Position) XXX_DiscardUnknown() { 1373 xxx_messageInfo_Position.DiscardUnknown(m) 1374 } 1375 1376 var xxx_messageInfo_Position proto.InternalMessageInfo 1377 1378 func (m *Position) GetCordType() CordType { 1379 if m != nil { 1380 return m.CordType 1381 } 1382 return CordType_Unspecified 1383 } 1384 1385 func (m *Position) GetU() float64 { 1386 if m != nil { 1387 return m.U 1388 } 1389 return 0 1390 } 1391 1392 func (m *Position) GetV() float64 { 1393 if m != nil { 1394 return m.V 1395 } 1396 return 0 1397 } 1398 1399 func (m *Position) GetW() float64 { 1400 if m != nil { 1401 return m.W 1402 } 1403 return 0 1404 } 1405 1406 func (m *Position) GetROU() float32 { 1407 if m != nil { 1408 return m.ROU 1409 } 1410 return 0 1411 } 1412 1413 type AssetTag struct { 1414 State QuadState `protobuf:"varint,3,opt,name=State,proto3,enum=amp.QuadState" json:"State,omitempty"` 1415 ContentType string `protobuf:"bytes,5,opt,name=ContentType,proto3" json:"ContentType,omitempty"` 1416 URI string `protobuf:"bytes,7,opt,name=URI,proto3" json:"URI,omitempty"` 1417 UIDx0 uint64 `protobuf:"fixed64,16,opt,name=UIDx0,proto3" json:"UIDx0,omitempty"` 1418 UIDx1 uint64 `protobuf:"fixed64,17,opt,name=UIDx1,proto3" json:"UIDx1,omitempty"` 1419 UIDx2 uint64 `protobuf:"fixed64,18,opt,name=UIDx2,proto3" json:"UIDx2,omitempty"` 1420 Rx0 float32 `protobuf:"fixed32,20,opt,name=Rx0,proto3" json:"Rx0,omitempty"` 1421 Rx1 float32 `protobuf:"fixed32,21,opt,name=Rx1,proto3" json:"Rx1,omitempty"` 1422 Rx2 float32 `protobuf:"fixed32,22,opt,name=Rx2,proto3" json:"Rx2,omitempty"` 1423 PixelWidth int32 `protobuf:"varint,28,opt,name=PixelWidth,proto3" json:"PixelWidth,omitempty"` 1424 PixelHeight int32 `protobuf:"varint,29,opt,name=PixelHeight,proto3" json:"PixelHeight,omitempty"` 1425 MeterScale float32 `protobuf:"fixed32,30,opt,name=MeterScale,proto3" json:"MeterScale,omitempty"` 1426 SubTags []*AssetTag `protobuf:"bytes,2,rep,name=SubTags,proto3" json:"SubTags,omitempty"` 1427 } 1428 1429 func (m *AssetTag) Reset() { *m = AssetTag{} } 1430 func (*AssetTag) ProtoMessage() {} 1431 func (*AssetTag) Descriptor() ([]byte, []int) { 1432 return fileDescriptor_7e479d288f92766f, []int{13} 1433 } 1434 func (m *AssetTag) XXX_Unmarshal(b []byte) error { 1435 return m.Unmarshal(b) 1436 } 1437 func (m *AssetTag) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1438 if deterministic { 1439 return xxx_messageInfo_AssetTag.Marshal(b, m, deterministic) 1440 } else { 1441 b = b[:cap(b)] 1442 n, err := m.MarshalToSizedBuffer(b) 1443 if err != nil { 1444 return nil, err 1445 } 1446 return b[:n], nil 1447 } 1448 } 1449 func (m *AssetTag) XXX_Merge(src proto.Message) { 1450 xxx_messageInfo_AssetTag.Merge(m, src) 1451 } 1452 func (m *AssetTag) XXX_Size() int { 1453 return m.Size() 1454 } 1455 func (m *AssetTag) XXX_DiscardUnknown() { 1456 xxx_messageInfo_AssetTag.DiscardUnknown(m) 1457 } 1458 1459 var xxx_messageInfo_AssetTag proto.InternalMessageInfo 1460 1461 func (m *AssetTag) GetState() QuadState { 1462 if m != nil { 1463 return m.State 1464 } 1465 return QuadState_LatentOff 1466 } 1467 1468 func (m *AssetTag) GetContentType() string { 1469 if m != nil { 1470 return m.ContentType 1471 } 1472 return "" 1473 } 1474 1475 func (m *AssetTag) GetURI() string { 1476 if m != nil { 1477 return m.URI 1478 } 1479 return "" 1480 } 1481 1482 func (m *AssetTag) GetUIDx0() uint64 { 1483 if m != nil { 1484 return m.UIDx0 1485 } 1486 return 0 1487 } 1488 1489 func (m *AssetTag) GetUIDx1() uint64 { 1490 if m != nil { 1491 return m.UIDx1 1492 } 1493 return 0 1494 } 1495 1496 func (m *AssetTag) GetUIDx2() uint64 { 1497 if m != nil { 1498 return m.UIDx2 1499 } 1500 return 0 1501 } 1502 1503 func (m *AssetTag) GetRx0() float32 { 1504 if m != nil { 1505 return m.Rx0 1506 } 1507 return 0 1508 } 1509 1510 func (m *AssetTag) GetRx1() float32 { 1511 if m != nil { 1512 return m.Rx1 1513 } 1514 return 0 1515 } 1516 1517 func (m *AssetTag) GetRx2() float32 { 1518 if m != nil { 1519 return m.Rx2 1520 } 1521 return 0 1522 } 1523 1524 func (m *AssetTag) GetPixelWidth() int32 { 1525 if m != nil { 1526 return m.PixelWidth 1527 } 1528 return 0 1529 } 1530 1531 func (m *AssetTag) GetPixelHeight() int32 { 1532 if m != nil { 1533 return m.PixelHeight 1534 } 1535 return 0 1536 } 1537 1538 func (m *AssetTag) GetMeterScale() float32 { 1539 if m != nil { 1540 return m.MeterScale 1541 } 1542 return 0 1543 } 1544 1545 func (m *AssetTag) GetSubTags() []*AssetTag { 1546 if m != nil { 1547 return m.SubTags 1548 } 1549 return nil 1550 } 1551 1552 type SheetInfo struct { 1553 // Sheet.Series.AVPlaylist 1554 // Sheet.Series.AttrTuple -- expects series with ElemType: .AttrSet 1555 // Sheet.Series.Spreadsheet -- expects series with Addr.desc: .xy, ElemType. ?? 1556 // Sheet.Series.Surface.Geo -- expects series with Addr.desc: .wsg84 1557 // Sheet.Series.Surface.Grid.Ortho -- expects series with Addr.desc: .xy 1558 // Sheet.Series.Surface.Grid.Hex -- expects series with Addr.desc: .qr 1559 // Sheet.WebBrowser -- expects series whose elements are URLs 1560 AppSheetURI string `protobuf:"bytes,1,opt,name=AppSheetURI,proto3" json:"AppSheetURI,omitempty"` 1561 // Bound attr series (e.g. a spreadsheet's columns) 1562 BoundSeries []*AttrSpec `protobuf:"bytes,3,rep,name=BoundSeries,proto3" json:"BoundSeries,omitempty"` 1563 } 1564 1565 func (m *SheetInfo) Reset() { *m = SheetInfo{} } 1566 func (*SheetInfo) ProtoMessage() {} 1567 func (*SheetInfo) Descriptor() ([]byte, []int) { 1568 return fileDescriptor_7e479d288f92766f, []int{14} 1569 } 1570 func (m *SheetInfo) XXX_Unmarshal(b []byte) error { 1571 return m.Unmarshal(b) 1572 } 1573 func (m *SheetInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1574 if deterministic { 1575 return xxx_messageInfo_SheetInfo.Marshal(b, m, deterministic) 1576 } else { 1577 b = b[:cap(b)] 1578 n, err := m.MarshalToSizedBuffer(b) 1579 if err != nil { 1580 return nil, err 1581 } 1582 return b[:n], nil 1583 } 1584 } 1585 func (m *SheetInfo) XXX_Merge(src proto.Message) { 1586 xxx_messageInfo_SheetInfo.Merge(m, src) 1587 } 1588 func (m *SheetInfo) XXX_Size() int { 1589 return m.Size() 1590 } 1591 func (m *SheetInfo) XXX_DiscardUnknown() { 1592 xxx_messageInfo_SheetInfo.DiscardUnknown(m) 1593 } 1594 1595 var xxx_messageInfo_SheetInfo proto.InternalMessageInfo 1596 1597 func (m *SheetInfo) GetAppSheetURI() string { 1598 if m != nil { 1599 return m.AppSheetURI 1600 } 1601 return "" 1602 } 1603 1604 func (m *SheetInfo) GetBoundSeries() []*AttrSpec { 1605 if m != nil { 1606 return m.BoundSeries 1607 } 1608 return nil 1609 } 1610 1611 type SheetGroup struct { 1612 SheetCatalog []*SheetInfo `protobuf:"bytes,1,rep,name=SheetCatalog,proto3" json:"SheetCatalog,omitempty"` 1613 } 1614 1615 func (m *SheetGroup) Reset() { *m = SheetGroup{} } 1616 func (*SheetGroup) ProtoMessage() {} 1617 func (*SheetGroup) Descriptor() ([]byte, []int) { 1618 return fileDescriptor_7e479d288f92766f, []int{15} 1619 } 1620 func (m *SheetGroup) XXX_Unmarshal(b []byte) error { 1621 return m.Unmarshal(b) 1622 } 1623 func (m *SheetGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1624 if deterministic { 1625 return xxx_messageInfo_SheetGroup.Marshal(b, m, deterministic) 1626 } else { 1627 b = b[:cap(b)] 1628 n, err := m.MarshalToSizedBuffer(b) 1629 if err != nil { 1630 return nil, err 1631 } 1632 return b[:n], nil 1633 } 1634 } 1635 func (m *SheetGroup) XXX_Merge(src proto.Message) { 1636 xxx_messageInfo_SheetGroup.Merge(m, src) 1637 } 1638 func (m *SheetGroup) XXX_Size() int { 1639 return m.Size() 1640 } 1641 func (m *SheetGroup) XXX_DiscardUnknown() { 1642 xxx_messageInfo_SheetGroup.DiscardUnknown(m) 1643 } 1644 1645 var xxx_messageInfo_SheetGroup proto.InternalMessageInfo 1646 1647 func (m *SheetGroup) GetSheetCatalog() []*SheetInfo { 1648 if m != nil { 1649 return m.SheetCatalog 1650 } 1651 return nil 1652 } 1653 1654 type CryptoKey struct { 1655 CryptoKitID CryptoKitID `protobuf:"varint,1,opt,name=CryptoKitID,proto3,enum=amp.CryptoKitID" json:"CryptoKitID,omitempty"` 1656 KeyBytes []byte `protobuf:"bytes,4,opt,name=KeyBytes,proto3" json:"KeyBytes,omitempty"` 1657 } 1658 1659 func (m *CryptoKey) Reset() { *m = CryptoKey{} } 1660 func (*CryptoKey) ProtoMessage() {} 1661 func (*CryptoKey) Descriptor() ([]byte, []int) { 1662 return fileDescriptor_7e479d288f92766f, []int{16} 1663 } 1664 func (m *CryptoKey) XXX_Unmarshal(b []byte) error { 1665 return m.Unmarshal(b) 1666 } 1667 func (m *CryptoKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1668 if deterministic { 1669 return xxx_messageInfo_CryptoKey.Marshal(b, m, deterministic) 1670 } else { 1671 b = b[:cap(b)] 1672 n, err := m.MarshalToSizedBuffer(b) 1673 if err != nil { 1674 return nil, err 1675 } 1676 return b[:n], nil 1677 } 1678 } 1679 func (m *CryptoKey) XXX_Merge(src proto.Message) { 1680 xxx_messageInfo_CryptoKey.Merge(m, src) 1681 } 1682 func (m *CryptoKey) XXX_Size() int { 1683 return m.Size() 1684 } 1685 func (m *CryptoKey) XXX_DiscardUnknown() { 1686 xxx_messageInfo_CryptoKey.DiscardUnknown(m) 1687 } 1688 1689 var xxx_messageInfo_CryptoKey proto.InternalMessageInfo 1690 1691 func (m *CryptoKey) GetCryptoKitID() CryptoKitID { 1692 if m != nil { 1693 return m.CryptoKitID 1694 } 1695 return CryptoKit_Nil 1696 } 1697 1698 func (m *CryptoKey) GetKeyBytes() []byte { 1699 if m != nil { 1700 return m.KeyBytes 1701 } 1702 return nil 1703 } 1704 1705 // CellHeader is a standard attribute for a cell that is presented . 1706 // An amp.App fills in what is appropriate and leaves the rest blank. 1707 type CellHeader struct { 1708 Title string `protobuf:"bytes,2,opt,name=Title,proto3" json:"Title,omitempty"` 1709 Subtitle string `protobuf:"bytes,3,opt,name=Subtitle,proto3" json:"Subtitle,omitempty"` 1710 About string `protobuf:"bytes,4,opt,name=About,proto3" json:"About,omitempty"` 1711 // A Glyph is a representative image or 3D graphic similar to an icon in function. 1712 Glyphs []*AssetTag `protobuf:"bytes,6,rep,name=Glyphs,proto3" json:"Glyphs,omitempty"` 1713 Created int64 `protobuf:"varint,8,opt,name=Created,proto3" json:"Created,omitempty"` 1714 Modified int64 `protobuf:"varint,9,opt,name=Modified,proto3" json:"Modified,omitempty"` 1715 // If set, this (typically https:// or amp://) to reproduce this cell (with given archost session) 1716 CellURL string `protobuf:"bytes,20,opt,name=CellURL,proto3" json:"CellURL,omitempty"` 1717 // Extensible and persistent link, can be any URL -- typically passed to another application or shared with a another human. 1718 // E.g. if 'arc://...', this denotes a pinnable URI -- but could be any pinnable URL: ipfs://, https://, ... 1719 // But also UI button or settings URI. 1720 ExternalLink *AssetTag `protobuf:"bytes,22,opt,name=ExternalLink,proto3" json:"ExternalLink,omitempty"` 1721 } 1722 1723 func (m *CellHeader) Reset() { *m = CellHeader{} } 1724 func (*CellHeader) ProtoMessage() {} 1725 func (*CellHeader) Descriptor() ([]byte, []int) { 1726 return fileDescriptor_7e479d288f92766f, []int{17} 1727 } 1728 func (m *CellHeader) XXX_Unmarshal(b []byte) error { 1729 return m.Unmarshal(b) 1730 } 1731 func (m *CellHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1732 if deterministic { 1733 return xxx_messageInfo_CellHeader.Marshal(b, m, deterministic) 1734 } else { 1735 b = b[:cap(b)] 1736 n, err := m.MarshalToSizedBuffer(b) 1737 if err != nil { 1738 return nil, err 1739 } 1740 return b[:n], nil 1741 } 1742 } 1743 func (m *CellHeader) XXX_Merge(src proto.Message) { 1744 xxx_messageInfo_CellHeader.Merge(m, src) 1745 } 1746 func (m *CellHeader) XXX_Size() int { 1747 return m.Size() 1748 } 1749 func (m *CellHeader) XXX_DiscardUnknown() { 1750 xxx_messageInfo_CellHeader.DiscardUnknown(m) 1751 } 1752 1753 var xxx_messageInfo_CellHeader proto.InternalMessageInfo 1754 1755 func (m *CellHeader) GetTitle() string { 1756 if m != nil { 1757 return m.Title 1758 } 1759 return "" 1760 } 1761 1762 func (m *CellHeader) GetSubtitle() string { 1763 if m != nil { 1764 return m.Subtitle 1765 } 1766 return "" 1767 } 1768 1769 func (m *CellHeader) GetAbout() string { 1770 if m != nil { 1771 return m.About 1772 } 1773 return "" 1774 } 1775 1776 func (m *CellHeader) GetGlyphs() []*AssetTag { 1777 if m != nil { 1778 return m.Glyphs 1779 } 1780 return nil 1781 } 1782 1783 func (m *CellHeader) GetCreated() int64 { 1784 if m != nil { 1785 return m.Created 1786 } 1787 return 0 1788 } 1789 1790 func (m *CellHeader) GetModified() int64 { 1791 if m != nil { 1792 return m.Modified 1793 } 1794 return 0 1795 } 1796 1797 func (m *CellHeader) GetCellURL() string { 1798 if m != nil { 1799 return m.CellURL 1800 } 1801 return "" 1802 } 1803 1804 func (m *CellHeader) GetExternalLink() *AssetTag { 1805 if m != nil { 1806 return m.ExternalLink 1807 } 1808 return nil 1809 } 1810 1811 // AuthToken is an oauth token -- see oauth2.Token 1812 type AuthToken struct { 1813 AccessToken string `protobuf:"bytes,1,opt,name=AccessToken,proto3" json:"AccessToken,omitempty"` 1814 TokenType string `protobuf:"bytes,2,opt,name=TokenType,proto3" json:"TokenType,omitempty"` 1815 RefreshToken string `protobuf:"bytes,3,opt,name=RefreshToken,proto3" json:"RefreshToken,omitempty"` 1816 Expiry int64 `protobuf:"varint,4,opt,name=Expiry,proto3" json:"Expiry,omitempty"` 1817 } 1818 1819 func (m *AuthToken) Reset() { *m = AuthToken{} } 1820 func (*AuthToken) ProtoMessage() {} 1821 func (*AuthToken) Descriptor() ([]byte, []int) { 1822 return fileDescriptor_7e479d288f92766f, []int{18} 1823 } 1824 func (m *AuthToken) XXX_Unmarshal(b []byte) error { 1825 return m.Unmarshal(b) 1826 } 1827 func (m *AuthToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1828 if deterministic { 1829 return xxx_messageInfo_AuthToken.Marshal(b, m, deterministic) 1830 } else { 1831 b = b[:cap(b)] 1832 n, err := m.MarshalToSizedBuffer(b) 1833 if err != nil { 1834 return nil, err 1835 } 1836 return b[:n], nil 1837 } 1838 } 1839 func (m *AuthToken) XXX_Merge(src proto.Message) { 1840 xxx_messageInfo_AuthToken.Merge(m, src) 1841 } 1842 func (m *AuthToken) XXX_Size() int { 1843 return m.Size() 1844 } 1845 func (m *AuthToken) XXX_DiscardUnknown() { 1846 xxx_messageInfo_AuthToken.DiscardUnknown(m) 1847 } 1848 1849 var xxx_messageInfo_AuthToken proto.InternalMessageInfo 1850 1851 func (m *AuthToken) GetAccessToken() string { 1852 if m != nil { 1853 return m.AccessToken 1854 } 1855 return "" 1856 } 1857 1858 func (m *AuthToken) GetTokenType() string { 1859 if m != nil { 1860 return m.TokenType 1861 } 1862 return "" 1863 } 1864 1865 func (m *AuthToken) GetRefreshToken() string { 1866 if m != nil { 1867 return m.RefreshToken 1868 } 1869 return "" 1870 } 1871 1872 func (m *AuthToken) GetExpiry() int64 { 1873 if m != nil { 1874 return m.Expiry 1875 } 1876 return 0 1877 } 1878 1879 type TRS struct { 1880 // X1, X2, and X3 are coordinates or values expressed in any unit. 1881 // A channel client can later declare how to interpret these coordinates so that a channel server and provide indexed services. 1882 // Shoutout to the 3 domains that reflect all theoretical completeness: alpha (finite), omega (unending), and the inaccessible cardinal(s). 1883 // Special thanks to Michael at Vsauce: https://www.youtube.com/watch?v=SrU9YDoXE88 1884 X1 float64 `protobuf:"fixed64,41,opt,name=X1,proto3" json:"X1,omitempty"` 1885 X2 float64 `protobuf:"fixed64,42,opt,name=X2,proto3" json:"X2,omitempty"` 1886 X3 float64 `protobuf:"fixed64,43,opt,name=X3,proto3" json:"X3,omitempty"` 1887 // Specifies how scale dynamically changes based on observer position. 1888 ScaleMode TRS_VisualScaleMode `protobuf:"varint,50,opt,name=ScaleMode,proto3,enum=amp.TRS_VisualScaleMode" json:"ScaleMode,omitempty"` 1889 // Scale1..3 express the scale of this placement. 1890 // If all three values are 0, they are all implicitly 1. 1891 // If Scale2 or Scale3 == 0, then it is implicitly Scale1. 1892 Scale1 float32 `protobuf:"fixed32,51,opt,name=Scale1,proto3" json:"Scale1,omitempty"` 1893 Scale2 float32 `protobuf:"fixed32,52,opt,name=Scale2,proto3" json:"Scale2,omitempty"` 1894 Scale3 float32 `protobuf:"fixed32,53,opt,name=Scale3,proto3" json:"Scale3,omitempty"` 1895 // Rotate1 - Rotate3 the orientation of this placement using Euler angles. 1896 Rotate1 float32 `protobuf:"fixed32,61,opt,name=Rotate1,proto3" json:"Rotate1,omitempty"` 1897 Rotate2 float32 `protobuf:"fixed32,62,opt,name=Rotate2,proto3" json:"Rotate2,omitempty"` 1898 Rotate3 float32 `protobuf:"fixed32,63,opt,name=Rotate3,proto3" json:"Rotate3,omitempty"` 1899 } 1900 1901 func (m *TRS) Reset() { *m = TRS{} } 1902 func (*TRS) ProtoMessage() {} 1903 func (*TRS) Descriptor() ([]byte, []int) { 1904 return fileDescriptor_7e479d288f92766f, []int{19} 1905 } 1906 func (m *TRS) XXX_Unmarshal(b []byte) error { 1907 return m.Unmarshal(b) 1908 } 1909 func (m *TRS) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1910 if deterministic { 1911 return xxx_messageInfo_TRS.Marshal(b, m, deterministic) 1912 } else { 1913 b = b[:cap(b)] 1914 n, err := m.MarshalToSizedBuffer(b) 1915 if err != nil { 1916 return nil, err 1917 } 1918 return b[:n], nil 1919 } 1920 } 1921 func (m *TRS) XXX_Merge(src proto.Message) { 1922 xxx_messageInfo_TRS.Merge(m, src) 1923 } 1924 func (m *TRS) XXX_Size() int { 1925 return m.Size() 1926 } 1927 func (m *TRS) XXX_DiscardUnknown() { 1928 xxx_messageInfo_TRS.DiscardUnknown(m) 1929 } 1930 1931 var xxx_messageInfo_TRS proto.InternalMessageInfo 1932 1933 func (m *TRS) GetX1() float64 { 1934 if m != nil { 1935 return m.X1 1936 } 1937 return 0 1938 } 1939 1940 func (m *TRS) GetX2() float64 { 1941 if m != nil { 1942 return m.X2 1943 } 1944 return 0 1945 } 1946 1947 func (m *TRS) GetX3() float64 { 1948 if m != nil { 1949 return m.X3 1950 } 1951 return 0 1952 } 1953 1954 func (m *TRS) GetScaleMode() TRS_VisualScaleMode { 1955 if m != nil { 1956 return m.ScaleMode 1957 } 1958 return AutoScale 1959 } 1960 1961 func (m *TRS) GetScale1() float32 { 1962 if m != nil { 1963 return m.Scale1 1964 } 1965 return 0 1966 } 1967 1968 func (m *TRS) GetScale2() float32 { 1969 if m != nil { 1970 return m.Scale2 1971 } 1972 return 0 1973 } 1974 1975 func (m *TRS) GetScale3() float32 { 1976 if m != nil { 1977 return m.Scale3 1978 } 1979 return 0 1980 } 1981 1982 func (m *TRS) GetRotate1() float32 { 1983 if m != nil { 1984 return m.Rotate1 1985 } 1986 return 0 1987 } 1988 1989 func (m *TRS) GetRotate2() float32 { 1990 if m != nil { 1991 return m.Rotate2 1992 } 1993 return 0 1994 } 1995 1996 func (m *TRS) GetRotate3() float32 { 1997 if m != nil { 1998 return m.Rotate3 1999 } 2000 return 0 2001 } 2002 2003 type FeedParams struct { 2004 UpdateIntervalMin float32 `protobuf:"fixed32,2,opt,name=UpdateIntervalMin,proto3" json:"UpdateIntervalMin,omitempty"` 2005 UpdateIntervalMax float32 `protobuf:"fixed32,3,opt,name=UpdateIntervalMax,proto3" json:"UpdateIntervalMax,omitempty"` 2006 } 2007 2008 func (m *FeedParams) Reset() { *m = FeedParams{} } 2009 func (*FeedParams) ProtoMessage() {} 2010 func (*FeedParams) Descriptor() ([]byte, []int) { 2011 return fileDescriptor_7e479d288f92766f, []int{20} 2012 } 2013 func (m *FeedParams) XXX_Unmarshal(b []byte) error { 2014 return m.Unmarshal(b) 2015 } 2016 func (m *FeedParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2017 if deterministic { 2018 return xxx_messageInfo_FeedParams.Marshal(b, m, deterministic) 2019 } else { 2020 b = b[:cap(b)] 2021 n, err := m.MarshalToSizedBuffer(b) 2022 if err != nil { 2023 return nil, err 2024 } 2025 return b[:n], nil 2026 } 2027 } 2028 func (m *FeedParams) XXX_Merge(src proto.Message) { 2029 xxx_messageInfo_FeedParams.Merge(m, src) 2030 } 2031 func (m *FeedParams) XXX_Size() int { 2032 return m.Size() 2033 } 2034 func (m *FeedParams) XXX_DiscardUnknown() { 2035 xxx_messageInfo_FeedParams.DiscardUnknown(m) 2036 } 2037 2038 var xxx_messageInfo_FeedParams proto.InternalMessageInfo 2039 2040 func (m *FeedParams) GetUpdateIntervalMin() float32 { 2041 if m != nil { 2042 return m.UpdateIntervalMin 2043 } 2044 return 0 2045 } 2046 2047 func (m *FeedParams) GetUpdateIntervalMax() float32 { 2048 if m != nil { 2049 return m.UpdateIntervalMax 2050 } 2051 return 0 2052 } 2053 2054 type DataSegment struct { 2055 ByteOfs uint64 `protobuf:"varint,5,opt,name=ByteOfs,proto3" json:"ByteOfs,omitempty"` 2056 ByteSz uint64 `protobuf:"varint,6,opt,name=ByteSz,proto3" json:"ByteSz,omitempty"` 2057 InlineData []byte `protobuf:"bytes,7,opt,name=InlineData,proto3" json:"InlineData,omitempty"` 2058 StreamURI string `protobuf:"bytes,9,opt,name=StreamURI,proto3" json:"StreamURI,omitempty"` 2059 BlobID int64 `protobuf:"varint,10,opt,name=BlobID,proto3" json:"BlobID,omitempty"` 2060 } 2061 2062 func (m *DataSegment) Reset() { *m = DataSegment{} } 2063 func (*DataSegment) ProtoMessage() {} 2064 func (*DataSegment) Descriptor() ([]byte, []int) { 2065 return fileDescriptor_7e479d288f92766f, []int{21} 2066 } 2067 func (m *DataSegment) XXX_Unmarshal(b []byte) error { 2068 return m.Unmarshal(b) 2069 } 2070 func (m *DataSegment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2071 if deterministic { 2072 return xxx_messageInfo_DataSegment.Marshal(b, m, deterministic) 2073 } else { 2074 b = b[:cap(b)] 2075 n, err := m.MarshalToSizedBuffer(b) 2076 if err != nil { 2077 return nil, err 2078 } 2079 return b[:n], nil 2080 } 2081 } 2082 func (m *DataSegment) XXX_Merge(src proto.Message) { 2083 xxx_messageInfo_DataSegment.Merge(m, src) 2084 } 2085 func (m *DataSegment) XXX_Size() int { 2086 return m.Size() 2087 } 2088 func (m *DataSegment) XXX_DiscardUnknown() { 2089 xxx_messageInfo_DataSegment.DiscardUnknown(m) 2090 } 2091 2092 var xxx_messageInfo_DataSegment proto.InternalMessageInfo 2093 2094 func (m *DataSegment) GetByteOfs() uint64 { 2095 if m != nil { 2096 return m.ByteOfs 2097 } 2098 return 0 2099 } 2100 2101 func (m *DataSegment) GetByteSz() uint64 { 2102 if m != nil { 2103 return m.ByteSz 2104 } 2105 return 0 2106 } 2107 2108 func (m *DataSegment) GetInlineData() []byte { 2109 if m != nil { 2110 return m.InlineData 2111 } 2112 return nil 2113 } 2114 2115 func (m *DataSegment) GetStreamURI() string { 2116 if m != nil { 2117 return m.StreamURI 2118 } 2119 return "" 2120 } 2121 2122 func (m *DataSegment) GetBlobID() int64 { 2123 if m != nil { 2124 return m.BlobID 2125 } 2126 return 0 2127 } 2128 2129 // Err is a general purpose error / warning / log message. 2130 type Err struct { 2131 // Identifies the type of error. 2132 Code ErrCode `protobuf:"varint,1,opt,name=Code,proto3,enum=amp.ErrCode" json:"Code,omitempty"` 2133 // Severity level 2134 Level LogLevel `protobuf:"varint,2,opt,name=Level,proto3,enum=amp.LogLevel" json:"Level,omitempty"` 2135 // human-readable info 2136 Msg string `protobuf:"bytes,4,opt,name=Msg,proto3" json:"Msg,omitempty"` 2137 } 2138 2139 func (m *Err) Reset() { *m = Err{} } 2140 func (*Err) ProtoMessage() {} 2141 func (*Err) Descriptor() ([]byte, []int) { 2142 return fileDescriptor_7e479d288f92766f, []int{22} 2143 } 2144 func (m *Err) XXX_Unmarshal(b []byte) error { 2145 return m.Unmarshal(b) 2146 } 2147 func (m *Err) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2148 if deterministic { 2149 return xxx_messageInfo_Err.Marshal(b, m, deterministic) 2150 } else { 2151 b = b[:cap(b)] 2152 n, err := m.MarshalToSizedBuffer(b) 2153 if err != nil { 2154 return nil, err 2155 } 2156 return b[:n], nil 2157 } 2158 } 2159 func (m *Err) XXX_Merge(src proto.Message) { 2160 xxx_messageInfo_Err.Merge(m, src) 2161 } 2162 func (m *Err) XXX_Size() int { 2163 return m.Size() 2164 } 2165 func (m *Err) XXX_DiscardUnknown() { 2166 xxx_messageInfo_Err.DiscardUnknown(m) 2167 } 2168 2169 var xxx_messageInfo_Err proto.InternalMessageInfo 2170 2171 func (m *Err) GetCode() ErrCode { 2172 if m != nil { 2173 return m.Code 2174 } 2175 return ErrCode_NoErr 2176 } 2177 2178 func (m *Err) GetLevel() LogLevel { 2179 if m != nil { 2180 return m.Level 2181 } 2182 return LogLevel_Error 2183 } 2184 2185 func (m *Err) GetMsg() string { 2186 if m != nil { 2187 return m.Msg 2188 } 2189 return "" 2190 } 2191 2192 func init() { 2193 proto.RegisterEnum("amp.Const", Const_name, Const_value) 2194 proto.RegisterEnum("amp.TxHeader", TxHeader_name, TxHeader_value) 2195 proto.RegisterEnum("amp.ConstSymbol", ConstSymbol_name, ConstSymbol_value) 2196 proto.RegisterEnum("amp.ReqStatus", ReqStatus_name, ReqStatus_value) 2197 proto.RegisterEnum("amp.CellTxOp", CellTxOp_name, CellTxOp_value) 2198 proto.RegisterEnum("amp.SeriesIndexType", SeriesIndexType_name, SeriesIndexType_value) 2199 proto.RegisterEnum("amp.PinFlags", PinFlags_name, PinFlags_value) 2200 proto.RegisterEnum("amp.CordType", CordType_name, CordType_value) 2201 proto.RegisterEnum("amp.QuadState", QuadState_name, QuadState_value) 2202 proto.RegisterEnum("amp.UrlScheme", UrlScheme_name, UrlScheme_value) 2203 proto.RegisterEnum("amp.CryptoKitID", CryptoKitID_name, CryptoKitID_value) 2204 proto.RegisterEnum("amp.ErrCode", ErrCode_name, ErrCode_value) 2205 proto.RegisterEnum("amp.LogLevel", LogLevel_name, LogLevel_value) 2206 proto.RegisterEnum("amp.TRS_VisualScaleMode", TRS_VisualScaleMode_name, TRS_VisualScaleMode_value) 2207 proto.RegisterType((*Msg)(nil), "amp.Msg") 2208 proto.RegisterType((*CellTxPb)(nil), "amp.CellTxPb") 2209 proto.RegisterType((*AttrElemPb)(nil), "amp.AttrElemPb") 2210 proto.RegisterType((*Login)(nil), "amp.Login") 2211 proto.RegisterType((*LoginChallenge)(nil), "amp.LoginChallenge") 2212 proto.RegisterType((*LoginResponse)(nil), "amp.LoginResponse") 2213 proto.RegisterType((*Symbol)(nil), "amp.Symbol") 2214 proto.RegisterType((*RegisterDefs)(nil), "amp.RegisterDefs") 2215 proto.RegisterType((*AttrSpec)(nil), "amp.AttrSpec") 2216 proto.RegisterType((*ItemSelector)(nil), "amp.ItemSelector") 2217 proto.RegisterType((*HandleURI)(nil), "amp.HandleURI") 2218 proto.RegisterType((*PinRequest)(nil), "amp.PinRequest") 2219 proto.RegisterType((*Position)(nil), "amp.Position") 2220 proto.RegisterType((*AssetTag)(nil), "amp.AssetTag") 2221 proto.RegisterType((*SheetInfo)(nil), "amp.SheetInfo") 2222 proto.RegisterType((*SheetGroup)(nil), "amp.SheetGroup") 2223 proto.RegisterType((*CryptoKey)(nil), "amp.CryptoKey") 2224 proto.RegisterType((*CellHeader)(nil), "amp.CellHeader") 2225 proto.RegisterType((*AuthToken)(nil), "amp.AuthToken") 2226 proto.RegisterType((*TRS)(nil), "amp.TRS") 2227 proto.RegisterType((*FeedParams)(nil), "amp.FeedParams") 2228 proto.RegisterType((*DataSegment)(nil), "amp.DataSegment") 2229 proto.RegisterType((*Err)(nil), "amp.Err") 2230 } 2231 2232 func init() { proto.RegisterFile("amp/amp.proto", fileDescriptor_7e479d288f92766f) } 2233 2234 var fileDescriptor_7e479d288f92766f = []byte{ 2235 // 2597 bytes of a gzipped FileDescriptorProto 2236 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x58, 0xcd, 0x8f, 0x23, 0x47, 2237 0xf9, 0x9e, 0xb6, 0xe7, 0xcb, 0x35, 0x1f, 0x5b, 0x53, 0x99, 0x9d, 0xf4, 0x6e, 0x76, 0x9d, 0xf9, 2238 0xf9, 0x97, 0xe0, 0xcd, 0x24, 0xd9, 0xdd, 0xf1, 0x24, 0x08, 0x0e, 0x04, 0x3c, 0xf6, 0xec, 0x8e, 2239 0x95, 0x99, 0xb1, 0xa9, 0xb6, 0x77, 0x23, 0x10, 0xb1, 0x7a, 0xdc, 0xaf, 0xed, 0xd6, 0xb6, 0xab, 2240 0x7b, 0xbb, 0xcb, 0x83, 0x27, 0x12, 0x52, 0xc4, 0x81, 0xaf, 0x10, 0x08, 0x48, 0x70, 0x02, 0x8e, 2241 0x10, 0x22, 0x0e, 0x5c, 0x90, 0x10, 0xdf, 0x82, 0x4b, 0xc4, 0x29, 0xc7, 0x1c, 0xc9, 0xec, 0x01, 2242 0x0e, 0x20, 0xe5, 0x2f, 0x88, 0xd0, 0x5b, 0xfd, 0xe1, 0xee, 0x99, 0xe5, 0x56, 0xcf, 0xf3, 0x54, 2243 0x55, 0xbf, 0x55, 0xef, 0x47, 0xbd, 0x36, 0x59, 0x31, 0x47, 0xde, 0x2d, 0x73, 0xe4, 0xdd, 0xf4, 2244 0x7c, 0x57, 0xba, 0x2c, 0x6f, 0x8e, 0xbc, 0x92, 0x43, 0xf2, 0x87, 0xc1, 0x80, 0xad, 0x93, 0x39, 2245 0x0e, 0x0f, 0x1b, 0x75, 0x5d, 0xdb, 0xd4, 0x6e, 0xcc, 0xf2, 0x10, 0xb0, 0x4f, 0x91, 0x79, 0x43, 2246 0x9a, 0x72, 0x1c, 0xe8, 0xb9, 0x4d, 0xed, 0xc6, 0x6a, 0x65, 0xf5, 0x26, 0xae, 0xe6, 0xf0, 0x30, 2247 0x64, 0x79, 0xa4, 0xb2, 0x32, 0x59, 0xa8, 0x81, 0xe3, 0xb4, 0x27, 0x81, 0x3e, 0xb7, 0x99, 0xbf, 2248 0xb1, 0x54, 0x59, 0x51, 0x13, 0x43, 0xae, 0x75, 0xcc, 0x63, 0xb5, 0xf4, 0x0d, 0x8d, 0x2c, 0xc6, 2249 0x2c, 0xbb, 0x4e, 0x72, 0x4d, 0x4f, 0x7d, 0x70, 0x35, 0xb3, 0xa0, 0xe9, 0xf1, 0x5c, 0xd3, 0x63, 2250 0x57, 0xc2, 0xa9, 0x8d, 0x7a, 0xf7, 0xb6, 0x9e, 0xdf, 0xd4, 0x6e, 0xcc, 0x87, 0xdb, 0x34, 0xea, 2251 0xb7, 0x53, 0xd2, 0xb6, 0x3e, 0x9b, 0x96, 0xb6, 0xd9, 0xb3, 0x64, 0x6e, 0xcf, 0x81, 0x51, 0xa0, 2252 0x2f, 0x2a, 0x43, 0x2e, 0xa9, 0x7d, 0xab, 0x52, 0xfa, 0xc8, 0xb6, 0x8e, 0x79, 0xa8, 0x96, 0x0e, 2253 0x08, 0x99, 0x92, 0x6c, 0x83, 0xcc, 0x23, 0x4a, 0x8e, 0x1f, 0x21, 0xe4, 0xef, 0x99, 0xce, 0xee, 2254 0xb8, 0xaf, 0xce, 0xbf, 0xcc, 0x23, 0xc4, 0x56, 0x49, 0xce, 0x68, 0x28, 0xa3, 0xf2, 0x3c, 0x67, 2255 0x34, 0x4a, 0x5f, 0x23, 0x73, 0x07, 0xee, 0xc0, 0x16, 0x4c, 0x27, 0x0b, 0x9d, 0x00, 0xfc, 0x4e, 2256 0xb4, 0x53, 0x81, 0xc7, 0x90, 0x5d, 0x25, 0x8b, 0xfb, 0x6e, 0x20, 0xab, 0x96, 0xe5, 0xab, 0xcd, 2257 0x0a, 0x3c, 0xc1, 0x6c, 0x93, 0x2c, 0xd5, 0xe1, 0xc4, 0xee, 0xc1, 0x81, 0x79, 0x0c, 0x8e, 0xbe, 2258 0xa8, 0xe4, 0x34, 0xc5, 0xae, 0x91, 0x42, 0x08, 0x71, 0xe7, 0x82, 0xd2, 0xa7, 0x44, 0xe9, 0x19, 2259 0xb2, 0xaa, 0x3e, 0x5f, 0x1b, 0x9a, 0x8e, 0x03, 0x62, 0x00, 0x8c, 0x91, 0xd9, 0x7d, 0x33, 0x18, 2260 0x2a, 0x23, 0x96, 0xb9, 0x1a, 0x97, 0x9e, 0x27, 0x2b, 0x6a, 0x16, 0x87, 0xc0, 0x73, 0x45, 0x00, 2261 0xca, 0x24, 0x33, 0x18, 0x22, 0x8e, 0x26, 0x26, 0xb8, 0xf4, 0x02, 0x99, 0x37, 0x4e, 0x47, 0xc7, 2262 0xae, 0x83, 0x67, 0x8d, 0x4e, 0xb3, 0xc2, 0x73, 0x8d, 0x3a, 0x6e, 0x7d, 0x64, 0x8e, 0x20, 0xba, 2263 0x11, 0x35, 0x2e, 0xbd, 0xa5, 0x91, 0x65, 0x0e, 0x03, 0x3b, 0x90, 0xe0, 0xd7, 0xa1, 0x1f, 0xb0, 2264 0x67, 0xc9, 0x42, 0xb8, 0x3c, 0xd0, 0x35, 0xe5, 0x87, 0x25, 0xe5, 0x87, 0x90, 0xe3, 0xb1, 0xc6, 2265 0xfe, 0x9f, 0xcc, 0xe1, 0x4d, 0x63, 0x78, 0x4d, 0xa3, 0x06, 0x19, 0xc3, 0x83, 0x1e, 0x0f, 0x35, 2266 0x76, 0x8b, 0x14, 0x0c, 0x70, 0xa0, 0x27, 0x5d, 0x3f, 0xd0, 0x67, 0xd5, 0xc4, 0x35, 0x35, 0xb1, 2267 0x21, 0x61, 0x14, 0x2b, 0x7c, 0x3a, 0xa7, 0xf4, 0x5b, 0x8d, 0x2c, 0xc6, 0x9b, 0x60, 0x60, 0xd7, 2268 0xa1, 0x9f, 0x9c, 0x20, 0x04, 0x78, 0x74, 0x74, 0x7d, 0xfb, 0xd4, 0x03, 0xe5, 0xc6, 0x15, 0x9e, 2269 0x60, 0x56, 0x24, 0xc4, 0x00, 0xdf, 0x86, 0x00, 0xd7, 0xab, 0xf0, 0x5a, 0xe1, 0x29, 0x86, 0xbd, 2270 0x42, 0x2e, 0x85, 0xa8, 0x21, 0x2c, 0x98, 0xa8, 0x2d, 0xe6, 0x54, 0x0c, 0xaf, 0x87, 0x67, 0xcc, 2271 0x6a, 0xfc, 0xfc, 0x64, 0xfc, 0x36, 0x5a, 0xa7, 0x2e, 0x71, 0x3e, 0xfc, 0x76, 0x8c, 0x4b, 0xaf, 2272 0x91, 0xe5, 0xf4, 0xa9, 0xfe, 0x87, 0xf5, 0x3a, 0x59, 0x68, 0x88, 0x9e, 0x33, 0xb6, 0x40, 0xdd, 2273 0xc7, 0x0a, 0x8f, 0x21, 0x2a, 0x7b, 0x93, 0x50, 0x99, 0x0b, 0x95, 0x08, 0x96, 0xae, 0x93, 0xc2, 2274 0xbe, 0x29, 0x2c, 0x07, 0x3a, 0xbc, 0xc1, 0x28, 0xc9, 0x77, 0x78, 0x23, 0x0a, 0x51, 0x1c, 0x96, 2275 0xde, 0xce, 0x11, 0xd2, 0xc2, 0xd8, 0x78, 0x38, 0x86, 0x40, 0x62, 0x44, 0xb6, 0x4c, 0x1f, 0x84, 2276 0x4c, 0x17, 0x85, 0x34, 0x85, 0xa9, 0xd1, 0xb2, 0x45, 0x87, 0x1f, 0x44, 0xd1, 0x1c, 0x21, 0xb5, 2277 0xd2, 0x16, 0x61, 0x36, 0x4e, 0xc2, 0xc4, 0xc5, 0x95, 0x53, 0x2a, 0x3b, 0x23, 0xcc, 0xdf, 0xcc, 2278 0x8c, 0x6d, 0x76, 0x93, 0xb0, 0xf0, 0x53, 0xca, 0x8b, 0xd1, 0x5d, 0xa8, 0x4b, 0x5e, 0xe1, 0x8f, 2279 0x51, 0xd8, 0x0b, 0x64, 0xad, 0x36, 0xb4, 0x1d, 0x0b, 0x37, 0x48, 0xa6, 0x87, 0x57, 0x7b, 0x51, 2280 0xc0, 0xa0, 0xbb, 0xe3, 0x98, 0x83, 0x40, 0x5f, 0x48, 0x55, 0x9e, 0x96, 0x2d, 0x14, 0xc9, 0x43, 2281 0xad, 0xf4, 0x90, 0x2c, 0xb6, 0xdc, 0xc0, 0x96, 0xb6, 0x2b, 0xd8, 0x73, 0x64, 0xb1, 0xe6, 0xfa, 2282 0x96, 0xf2, 0x74, 0xa6, 0x5a, 0x45, 0x24, 0x4f, 0x64, 0xb6, 0x4c, 0xb4, 0x8e, 0x3a, 0xb3, 0xc6, 2283 0xb5, 0x0e, 0xa2, 0x7b, 0xea, 0x7c, 0x1a, 0xd7, 0xee, 0x21, 0xba, 0xaf, 0x0e, 0xa1, 0x71, 0xed, 2284 0x3e, 0xba, 0x80, 0x37, 0x3b, 0xca, 0xca, 0x1c, 0xc7, 0x61, 0xe9, 0x9f, 0x39, 0xb2, 0x58, 0x0d, 2285 0x02, 0x90, 0x6d, 0x73, 0xc0, 0x9e, 0x21, 0x73, 0x58, 0x5b, 0xc3, 0xe8, 0x8c, 0x0b, 0xef, 0x17, 2286 0xc7, 0xa6, 0xa5, 0x58, 0x1e, 0x8a, 0x78, 0x95, 0x35, 0x57, 0x48, 0x10, 0x32, 0x09, 0xc3, 0x02, 2287 0x4f, 0x53, 0xb1, 0xa7, 0x17, 0x12, 0x4f, 0x63, 0x48, 0x75, 0x94, 0x6b, 0xa8, 0x2a, 0x9c, 0x21, 2288 0x88, 0xd9, 0x6d, 0x7d, 0x6d, 0xca, 0x6e, 0xc7, 0x6c, 0x45, 0x67, 0x53, 0xb6, 0xa2, 0x4c, 0x9f, 2289 0xdc, 0xd6, 0xd7, 0x23, 0xd3, 0x27, 0xb7, 0x43, 0x66, 0x5b, 0xbf, 0x1c, 0x33, 0xdb, 0x21, 0x53, 2290 0xd1, 0x37, 0x62, 0xa6, 0x82, 0x69, 0xd5, 0xb2, 0x27, 0xe0, 0xdc, 0xb7, 0x2d, 0x39, 0xd4, 0xaf, 2291 0x6d, 0x6a, 0x37, 0xe6, 0x78, 0x8a, 0x09, 0xc3, 0x62, 0x02, 0xce, 0x3e, 0xd8, 0x83, 0xa1, 0xd4, 2292 0xaf, 0xab, 0x09, 0x69, 0x0a, 0x77, 0x38, 0x04, 0x09, 0xbe, 0xd1, 0x33, 0x1d, 0xd0, 0x8b, 0x6a, 2293 0xeb, 0x14, 0x83, 0xaf, 0x90, 0x31, 0x3e, 0x6e, 0xa3, 0x6b, 0x33, 0xf5, 0x24, 0xba, 0x53, 0x1e, 2294 0xab, 0xa5, 0xd7, 0x49, 0xc1, 0x18, 0x02, 0xc8, 0x86, 0xe8, 0xbb, 0xf8, 0xdd, 0xaa, 0xe7, 0x29, 2295 0x3c, 0xcd, 0x89, 0x34, 0xc5, 0x6e, 0x91, 0xa5, 0x5d, 0x77, 0x2c, 0xac, 0x30, 0x91, 0xf5, 0xfc, 2296 0xe3, 0x6a, 0x55, 0x7a, 0x46, 0xe9, 0x0b, 0x84, 0xa8, 0xc5, 0x77, 0x7d, 0x77, 0xec, 0xb1, 0x0a, 2297 0x59, 0x56, 0xa8, 0x66, 0x4a, 0xd3, 0x71, 0x07, 0x51, 0x41, 0x0c, 0x3d, 0x9a, 0x98, 0xc1, 0x33, 2298 0x73, 0x4a, 0x5f, 0x26, 0x85, 0x9a, 0x7f, 0xea, 0x49, 0xf7, 0x55, 0x38, 0x65, 0x15, 0xb2, 0x14, 2299 0x01, 0x5b, 0x46, 0xc9, 0xb8, 0x5a, 0xa1, 0x61, 0x08, 0x4e, 0x79, 0x9e, 0x9e, 0x84, 0x45, 0xe6, 2300 0x55, 0x38, 0xdd, 0x3d, 0x95, 0x10, 0xa8, 0x08, 0x5c, 0xe6, 0x09, 0x2e, 0x7d, 0xa2, 0x11, 0x82, 2301 0x19, 0xb1, 0x0f, 0xa6, 0x05, 0xaa, 0xc6, 0xb4, 0x6d, 0xe9, 0x40, 0x94, 0xc8, 0x21, 0xc0, 0x0d, 2302 0x8c, 0xf1, 0xb1, 0x54, 0x42, 0x3e, 0x7c, 0xaf, 0x62, 0x8c, 0x2b, 0xaa, 0xc7, 0xee, 0x58, 0xaa, 2303 0x9d, 0x0b, 0x3c, 0x04, 0xec, 0x59, 0x32, 0x7f, 0xd7, 0x39, 0xf5, 0x86, 0x81, 0x3e, 0xff, 0xb8, 2304 0xdb, 0x8f, 0x44, 0x2c, 0x51, 0x35, 0x1f, 0x4c, 0x09, 0x96, 0x7a, 0xe8, 0xf2, 0x3c, 0x86, 0xf8, 2305 0xc9, 0x43, 0xd7, 0xb2, 0xfb, 0x36, 0x58, 0xea, 0x8d, 0xcb, 0xf3, 0x04, 0xab, 0x55, 0xe0, 0x38, 2306 0x58, 0x6f, 0xd6, 0xc3, 0x87, 0x35, 0x82, 0x6c, 0x9b, 0x2c, 0xef, 0x4d, 0x24, 0xf8, 0xc2, 0x74, 2307 0x0e, 0x6c, 0xf1, 0x40, 0x85, 0xdc, 0x85, 0x8f, 0x67, 0xa6, 0x94, 0xbe, 0xa9, 0x91, 0x42, 0x75, 2308 0x2c, 0x87, 0x6d, 0xf7, 0x01, 0x08, 0x15, 0x00, 0xbd, 0x1e, 0x04, 0x81, 0x82, 0x49, 0x00, 0x4c, 2309 0x29, 0x7c, 0x7d, 0xd5, 0x40, 0x25, 0x59, 0x78, 0x4b, 0x53, 0x82, 0x95, 0xf0, 0xed, 0xeb, 0xfb, 2310 0x10, 0x84, 0xfb, 0x45, 0xb7, 0x95, 0xe1, 0xb0, 0x5a, 0xee, 0x4d, 0x3c, 0xdb, 0x3f, 0x55, 0x57, 2311 0x96, 0xe7, 0x11, 0x2a, 0xfd, 0x26, 0x47, 0xf2, 0x6d, 0x6e, 0xe0, 0x23, 0xfb, 0xda, 0xb6, 0xfe, 2312 0x9c, 0x2a, 0x0e, 0xb9, 0xd7, 0xb6, 0x15, 0xae, 0xe8, 0x5b, 0x11, 0xae, 0x28, 0xbc, 0xa3, 0x3f, 2313 0x1f, 0xe1, 0x1d, 0xf6, 0x69, 0x52, 0x50, 0x31, 0x7f, 0xe8, 0x5a, 0xa0, 0x57, 0x54, 0x40, 0xe8, 2314 0xea, 0xc4, 0x6d, 0x6e, 0xdc, 0xbc, 0x67, 0x07, 0x63, 0xd3, 0x49, 0x74, 0x3e, 0x9d, 0x8a, 0x76, 2315 0x28, 0xb0, 0xad, 0xef, 0xa8, 0xf4, 0x89, 0x50, 0xc2, 0x57, 0xf4, 0x97, 0x52, 0x7c, 0x25, 0xe1, 2316 0x77, 0xf4, 0x97, 0x53, 0xfc, 0x0e, 0xba, 0x83, 0xbb, 0x58, 0x82, 0xb6, 0xf5, 0xcf, 0x29, 0x21, 2317 0x86, 0x53, 0xa5, 0xa2, 0xbf, 0x92, 0x56, 0x2a, 0x53, 0x65, 0x47, 0xff, 0x7c, 0x5a, 0xd9, 0x29, 2318 0xdd, 0x26, 0x97, 0xce, 0xd9, 0xcc, 0x56, 0x94, 0x87, 0x5c, 0x45, 0xd0, 0x19, 0xb6, 0x4a, 0xc8, 2319 0x1d, 0x7b, 0x02, 0x56, 0x88, 0xb5, 0xd2, 0x90, 0x90, 0x3b, 0x00, 0x56, 0xcb, 0xf4, 0xcd, 0x51, 2320 0x80, 0xf5, 0xbf, 0xe3, 0x59, 0xa6, 0x84, 0x86, 0x90, 0xe0, 0x9f, 0x98, 0xce, 0xa1, 0x2d, 0x94, 2321 0x9f, 0x72, 0xfc, 0xa2, 0xf0, 0x98, 0xd9, 0xe6, 0x44, 0x39, 0xed, 0xe2, 0x6c, 0x73, 0x52, 0xfa, 2322 0x91, 0x46, 0x96, 0xea, 0xa6, 0x34, 0x0d, 0x18, 0x8c, 0x40, 0x48, 0x3c, 0x05, 0x66, 0x51, 0xb3, 2323 0x1f, 0xa8, 0x72, 0x3b, 0xcb, 0x63, 0x88, 0x77, 0x85, 0x43, 0xe3, 0x0d, 0x55, 0xd4, 0x67, 0x79, 2324 0x84, 0xb0, 0x6c, 0x35, 0x84, 0x63, 0x0b, 0xc0, 0x6d, 0x54, 0x25, 0x5e, 0xe6, 0x29, 0x06, 0xa3, 2325 0xcb, 0x90, 0x3e, 0x98, 0x23, 0x2c, 0x3f, 0x51, 0x6f, 0x97, 0x10, 0x6a, 0x57, 0xc7, 0x3d, 0x6e, 2326 0xd4, 0x75, 0x12, 0x46, 0x4e, 0x88, 0x4a, 0xaf, 0x93, 0xfc, 0x9e, 0x8f, 0xad, 0xe3, 0x6c, 0x0d, 2327 0x63, 0x20, 0x2c, 0x0a, 0xcb, 0x2a, 0x06, 0xf6, 0x7c, 0x1f, 0x39, 0xae, 0x14, 0x7c, 0xee, 0x0e, 2328 0xe0, 0x04, 0x9c, 0xa8, 0x85, 0x0f, 0x13, 0xe3, 0xc0, 0x1d, 0x28, 0x92, 0x87, 0x1a, 0x96, 0xeb, 2329 0xc3, 0x60, 0x10, 0xe5, 0x33, 0x0e, 0xb7, 0xfa, 0x64, 0xae, 0xe6, 0x8a, 0x40, 0xe2, 0xd5, 0xab, 2330 0x41, 0x17, 0x1b, 0x3b, 0x3a, 0xc3, 0x36, 0x08, 0x0b, 0x71, 0xbb, 0x51, 0xdf, 0xb5, 0x85, 0xe9, 2331 0x9f, 0x1e, 0x80, 0xa0, 0x9b, 0x19, 0xde, 0x90, 0xbe, 0x2d, 0x06, 0xc8, 0xbf, 0xc4, 0xae, 0x13, 2332 0x3d, 0x59, 0x6f, 0x8e, 0x1d, 0x69, 0x80, 0x8f, 0x7d, 0x6b, 0xcb, 0xf5, 0x25, 0x7d, 0xff, 0xc6, 2333 0x96, 0x43, 0x16, 0xdb, 0x93, 0xa8, 0x12, 0xad, 0x12, 0x12, 0x8f, 0xbb, 0xb7, 0xe9, 0x0c, 0x5b, 2334 0x23, 0x2b, 0x09, 0x36, 0xec, 0x37, 0x80, 0x2e, 0x32, 0x46, 0x56, 0x13, 0xaa, 0xe9, 0x35, 0xfb, 2335 0x01, 0x5d, 0x60, 0x97, 0xc9, 0x5a, 0x8a, 0xe3, 0xd0, 0x3b, 0x69, 0x4f, 0xe8, 0xfa, 0xb9, 0xa9, 2336 0x7b, 0x4d, 0x83, 0xea, 0x5b, 0x5f, 0xcf, 0xa9, 0x17, 0x33, 0x90, 0x51, 0x73, 0xfb, 0x04, 0xb9, 2337 0x94, 0x82, 0x5d, 0x61, 0x3b, 0x74, 0xe6, 0x3c, 0xb9, 0xe7, 0xfb, 0x94, 0xb0, 0x6b, 0xd1, 0x31, 2338 0x22, 0x32, 0xdd, 0xed, 0xd2, 0x25, 0x76, 0x85, 0x5c, 0x4e, 0xab, 0x49, 0xa7, 0x45, 0x97, 0xd9, 2339 0x55, 0xb2, 0x91, 0x96, 0xa6, 0x4d, 0x16, 0x5d, 0x41, 0xcb, 0xd3, 0x9a, 0x6a, 0xcf, 0xe9, 0x3a, 2340 0x2b, 0x92, 0xab, 0x17, 0xe8, 0xa4, 0xb7, 0xa7, 0x97, 0xd9, 0x75, 0x72, 0xe5, 0x82, 0x1e, 0x77, 2341 0xf5, 0x74, 0x83, 0x15, 0xb3, 0x72, 0x23, 0x08, 0xc6, 0xe0, 0x37, 0x84, 0x2d, 0x83, 0xaa, 0xa4, 2342 0x6f, 0xe6, 0xb6, 0x86, 0xa4, 0x90, 0xfc, 0x84, 0x63, 0x3a, 0x59, 0x4f, 0x40, 0xf7, 0xc8, 0x95, 2343 0x86, 0x34, 0x7d, 0x09, 0x16, 0x9d, 0x41, 0xe3, 0xa6, 0x8a, 0x71, 0x2a, 0x7a, 0xb6, 0x18, 0x50, 2344 0x8d, 0xad, 0x13, 0x9a, 0xa5, 0xc1, 0xa2, 0xb9, 0x2c, 0x5b, 0x73, 0xdc, 0x00, 0x2c, 0x9a, 0xdf, 2345 0x32, 0xe2, 0x5f, 0x7b, 0x4d, 0x4f, 0x9d, 0x35, 0x1a, 0x77, 0x0f, 0x41, 0x9a, 0xf8, 0x74, 0xd2, 2346 0x19, 0xf6, 0x24, 0x79, 0x22, 0xa1, 0x3b, 0x5e, 0x00, 0xbe, 0x44, 0x48, 0xb5, 0x8c, 0xc0, 0x61, 2347 0xe4, 0x9e, 0x80, 0x12, 0xf2, 0x5b, 0xfb, 0x17, 0xfa, 0x6f, 0xf6, 0x14, 0x79, 0xf2, 0x1c, 0xd5, 2348 0x3d, 0xb0, 0x25, 0xf8, 0x26, 0xba, 0x53, 0x27, 0xeb, 0xe7, 0x45, 0xec, 0xb5, 0xa9, 0xb6, 0xf5, 2349 0x80, 0x2c, 0xc6, 0x7d, 0x1f, 0xc6, 0x5a, 0x3c, 0xee, 0x1e, 0xb9, 0x02, 0x8b, 0xce, 0x75, 0x72, 2350 0x25, 0xa1, 0x3a, 0x01, 0x1c, 0x99, 0xd2, 0x3e, 0x81, 0xe8, 0xa7, 0x0b, 0xd5, 0x70, 0xdf, 0x44, 2351 0x56, 0x27, 0x6e, 0x0a, 0xbc, 0x0e, 0x3a, 0x8b, 0x01, 0x94, 0xda, 0x4b, 0x91, 0x8b, 0x5b, 0xef, 2352 0x69, 0xd3, 0x36, 0x12, 0xd7, 0xc6, 0xe3, 0x6e, 0x47, 0x04, 0x1e, 0xf4, 0xd4, 0x33, 0x47, 0x67, 2353 0xf0, 0x22, 0x13, 0xa5, 0xe9, 0x5b, 0xe0, 0x83, 0x45, 0xb5, 0x30, 0xfa, 0x22, 0xb6, 0xe5, 0x98, 2354 0x02, 0xba, 0x35, 0x74, 0x53, 0x60, 0x9b, 0x82, 0xce, 0xe1, 0xf1, 0xcf, 0xa9, 0xfb, 0x30, 0xd9, 2355 0x3b, 0x01, 0xc1, 0xe9, 0x7c, 0x18, 0x9a, 0x91, 0x78, 0x17, 0x5c, 0xdb, 0xea, 0x1a, 0xde, 0x10, 2356 0x7c, 0xa0, 0x24, 0x63, 0x45, 0x28, 0xdd, 0xbf, 0x6b, 0x7c, 0xe6, 0x25, 0xba, 0xb4, 0x35, 0x22, 2357 0x85, 0xa4, 0xd9, 0x44, 0x4f, 0x24, 0xa0, 0x7b, 0x60, 0x62, 0x6f, 0xd9, 0xec, 0xf7, 0xc3, 0x52, 2358 0x70, 0x41, 0x10, 0xa1, 0xeb, 0xa6, 0x7c, 0xb5, 0x87, 0xd7, 0x86, 0x0b, 0x68, 0x76, 0x41, 0x24, 2359 0x08, 0xba, 0x86, 0x9f, 0xeb, 0xf8, 0x8e, 0xd1, 0x1b, 0xc2, 0x08, 0xd0, 0x13, 0x09, 0xe8, 0x1e, 2360 0xa9, 0x8c, 0x64, 0x64, 0x75, 0x4a, 0x61, 0xd1, 0xa4, 0x5a, 0x76, 0x5a, 0x75, 0xe4, 0xd1, 0x5c, 2361 0x76, 0xda, 0x1d, 0xdb, 0x01, 0x9a, 0xcf, 0x72, 0xfb, 0x52, 0x7a, 0x74, 0x76, 0xeb, 0xc7, 0x5a, 2362 0xa6, 0xa3, 0xc2, 0xad, 0x12, 0x18, 0x7d, 0x11, 0x2f, 0x3c, 0xa1, 0x0c, 0xe8, 0xf9, 0x20, 0x77, 2363 0xdd, 0x49, 0xf7, 0xc8, 0xac, 0x39, 0xd4, 0x52, 0x39, 0x9d, 0xa8, 0xd5, 0xe0, 0x74, 0x74, 0x18, 2364 0x0c, 0x42, 0x0d, 0xb2, 0x9a, 0x61, 0x0f, 0x84, 0x2d, 0x22, 0xad, 0xaf, 0x32, 0xf3, 0x82, 0xb6, 2365 0x57, 0xaf, 0xbc, 0xfc, 0xf2, 0xf6, 0x67, 0xe9, 0xdf, 0xb5, 0xad, 0x4f, 0xe6, 0xc9, 0x42, 0x54, 2366 0xbd, 0xd1, 0xa8, 0x68, 0xd8, 0x3d, 0x72, 0xb1, 0x06, 0x61, 0xae, 0xb0, 0x98, 0xea, 0x08, 0x61, 2367 0x8e, 0xc0, 0x42, 0xfe, 0x5b, 0x65, 0xa6, 0x93, 0x27, 0x62, 0x41, 0xbd, 0x5d, 0xc2, 0x74, 0x50, 2368 0xf9, 0x76, 0x99, 0x5d, 0x25, 0x97, 0xa7, 0x4b, 0x82, 0xb1, 0xe7, 0xb9, 0x98, 0xdd, 0x4d, 0x8f, 2369 0x7e, 0xe7, 0x9c, 0x66, 0x8f, 0x3c, 0x07, 0xf0, 0x85, 0x03, 0x8b, 0xbe, 0x55, 0x66, 0xeb, 0xe4, 2370 0x52, 0xac, 0xb5, 0xed, 0x11, 0xb8, 0x63, 0x49, 0xbf, 0x5b, 0x66, 0x57, 0xc8, 0x7a, 0xcc, 0x1a, 2371 0xc3, 0xb1, 0x94, 0xb6, 0x18, 0xd4, 0xdd, 0xaf, 0x0a, 0xfa, 0x76, 0x46, 0x3a, 0x72, 0x65, 0xcd, 2372 0x15, 0x02, 0x7a, 0xb8, 0xd7, 0xf7, 0xca, 0x69, 0xb3, 0xb1, 0xeb, 0xba, 0x63, 0xda, 0x0e, 0x58, 2373 0xf4, 0xfb, 0x19, 0xb3, 0x55, 0x0d, 0x8b, 0x94, 0x77, 0xca, 0xec, 0x29, 0xb2, 0x91, 0x7c, 0x08, 2374 0x82, 0xc0, 0x76, 0x85, 0x6a, 0x98, 0xc0, 0xa2, 0x3f, 0xc8, 0x2c, 0xe3, 0xf0, 0xf0, 0xc8, 0x95, 2375 0x77, 0xb0, 0xf7, 0xa6, 0x3f, 0xcc, 0x7c, 0xa9, 0x21, 0x4e, 0x4c, 0xc7, 0xb6, 0x38, 0x3c, 0xa4, 2376 0x3f, 0x79, 0x9c, 0x80, 0xc5, 0xf9, 0xa7, 0x65, 0x76, 0x99, 0xd0, 0x58, 0xd8, 0x35, 0xad, 0x7b, 2377 0xa6, 0x33, 0x06, 0xfa, 0xb3, 0x32, 0xbb, 0x46, 0x9e, 0x4c, 0x9d, 0x66, 0x68, 0x8b, 0x41, 0xdb, 2378 0xad, 0xb9, 0xa3, 0x91, 0x2d, 0xe9, 0xcf, 0x33, 0x67, 0x0d, 0xc9, 0xc8, 0xf0, 0x5f, 0x64, 0x0c, 2379 0x57, 0x99, 0x28, 0x13, 0xf3, 0xde, 0xcd, 0x5c, 0x78, 0x28, 0xe2, 0xba, 0xb1, 0x0f, 0xf4, 0x97, 2380 0x99, 0x43, 0x55, 0x3d, 0x2f, 0x59, 0xf5, 0x5e, 0x46, 0xa9, 0x43, 0x3f, 0x51, 0x7e, 0x95, 0x51, 2381 0x0e, 0x4d, 0xa7, 0xef, 0xfa, 0x23, 0xb0, 0xda, 0x13, 0xfa, 0xeb, 0x8c, 0x85, 0x98, 0xdd, 0xc9, 2382 0xa2, 0xdf, 0x95, 0x31, 0x06, 0xcf, 0x49, 0xf1, 0x5b, 0x06, 0x16, 0xfd, 0x7d, 0x99, 0x6d, 0x90, 2383 0xb5, 0xd4, 0x8d, 0xa8, 0xc4, 0x31, 0xe9, 0x1f, 0xb2, 0x66, 0x98, 0xd2, 0x8c, 0x4d, 0xff, 0x63, 2384 0x66, 0xc5, 0xde, 0x04, 0x03, 0x0c, 0x63, 0xef, 0x4f, 0x19, 0xbe, 0x95, 0x38, 0xf7, 0xcf, 0x65, 2385 0xec, 0x08, 0x52, 0xbc, 0xfa, 0xb5, 0x3a, 0x91, 0xd1, 0x9b, 0xf1, 0x97, 0xec, 0xed, 0x82, 0xe3, 2386 0x24, 0xb6, 0xff, 0x35, 0x63, 0x43, 0xcb, 0x77, 0x4f, 0x6c, 0x0b, 0x7c, 0xfc, 0xd6, 0xdf, 0xca, 2387 0xec, 0x69, 0x72, 0x35, 0x56, 0xee, 0xd9, 0xae, 0x63, 0x4a, 0x08, 0xaa, 0x9e, 0x07, 0xc2, 0x6a, 2388 0x0a, 0xe7, 0x94, 0xfe, 0xbb, 0xcc, 0x9e, 0x21, 0x4f, 0x4f, 0x23, 0x20, 0x18, 0xf7, 0xfb, 0x76, 2389 0xcf, 0x06, 0x21, 0x5b, 0xe0, 0x8f, 0x6c, 0x15, 0x60, 0x01, 0xfd, 0x4f, 0x79, 0xab, 0x4e, 0x16, 2390 0xe3, 0xd6, 0x08, 0x2b, 0x47, 0x3c, 0xc6, 0x1e, 0xc0, 0xf5, 0xc3, 0x8e, 0x24, 0xe1, 0xee, 0x9b, 2391 0xbe, 0xa0, 0xb9, 0x0c, 0x85, 0xbf, 0xe4, 0xe8, 0xec, 0xee, 0x57, 0x3e, 0xf8, 0xa8, 0x38, 0xf3, 2392 0xe1, 0x47, 0xc5, 0x99, 0x8f, 0x3f, 0x2a, 0x6a, 0x6f, 0x9e, 0x15, 0xb5, 0x77, 0xcf, 0x8a, 0xda, 2393 0xfb, 0x67, 0x45, 0xed, 0x83, 0xb3, 0xa2, 0xf6, 0x8f, 0xb3, 0xa2, 0xf6, 0xaf, 0xb3, 0xe2, 0xcc, 2394 0xc7, 0x67, 0x45, 0xed, 0x9d, 0x47, 0xc5, 0x99, 0x0f, 0x1e, 0x15, 0x67, 0x3e, 0x7c, 0x54, 0x9c, 2395 0xf9, 0xd2, 0xff, 0x0d, 0x6c, 0x39, 0x1c, 0x1f, 0xdf, 0xec, 0xb9, 0xa3, 0x5b, 0x03, 0x5b, 0xbe, 2396 0x18, 0xfd, 0x59, 0xfb, 0x62, 0x60, 0x3d, 0x78, 0x71, 0xe0, 0xe2, 0xf0, 0xbd, 0x5c, 0xbe, 0x7a, 2397 0xd8, 0x3a, 0x9e, 0x57, 0x7f, 0xdf, 0xee, 0xfc, 0x37, 0x00, 0x00, 0xff, 0xff, 0x52, 0x9c, 0x23, 2398 0x7f, 0xcf, 0x15, 0x00, 0x00, 2399 } 2400 2401 func (x Const) String() string { 2402 s, ok := Const_name[int32(x)] 2403 if ok { 2404 return s 2405 } 2406 return strconv.Itoa(int(x)) 2407 } 2408 func (x TxHeader) String() string { 2409 s, ok := TxHeader_name[int32(x)] 2410 if ok { 2411 return s 2412 } 2413 return strconv.Itoa(int(x)) 2414 } 2415 func (x ConstSymbol) String() string { 2416 s, ok := ConstSymbol_name[int32(x)] 2417 if ok { 2418 return s 2419 } 2420 return strconv.Itoa(int(x)) 2421 } 2422 func (x ReqStatus) String() string { 2423 s, ok := ReqStatus_name[int32(x)] 2424 if ok { 2425 return s 2426 } 2427 return strconv.Itoa(int(x)) 2428 } 2429 func (x CellTxOp) String() string { 2430 s, ok := CellTxOp_name[int32(x)] 2431 if ok { 2432 return s 2433 } 2434 return strconv.Itoa(int(x)) 2435 } 2436 func (x SeriesIndexType) String() string { 2437 s, ok := SeriesIndexType_name[int32(x)] 2438 if ok { 2439 return s 2440 } 2441 return strconv.Itoa(int(x)) 2442 } 2443 func (x PinFlags) String() string { 2444 s, ok := PinFlags_name[int32(x)] 2445 if ok { 2446 return s 2447 } 2448 return strconv.Itoa(int(x)) 2449 } 2450 func (x CordType) String() string { 2451 s, ok := CordType_name[int32(x)] 2452 if ok { 2453 return s 2454 } 2455 return strconv.Itoa(int(x)) 2456 } 2457 func (x QuadState) String() string { 2458 s, ok := QuadState_name[int32(x)] 2459 if ok { 2460 return s 2461 } 2462 return strconv.Itoa(int(x)) 2463 } 2464 func (x UrlScheme) String() string { 2465 s, ok := UrlScheme_name[int32(x)] 2466 if ok { 2467 return s 2468 } 2469 return strconv.Itoa(int(x)) 2470 } 2471 func (x CryptoKitID) String() string { 2472 s, ok := CryptoKitID_name[int32(x)] 2473 if ok { 2474 return s 2475 } 2476 return strconv.Itoa(int(x)) 2477 } 2478 func (x ErrCode) String() string { 2479 s, ok := ErrCode_name[int32(x)] 2480 if ok { 2481 return s 2482 } 2483 return strconv.Itoa(int(x)) 2484 } 2485 func (x LogLevel) String() string { 2486 s, ok := LogLevel_name[int32(x)] 2487 if ok { 2488 return s 2489 } 2490 return strconv.Itoa(int(x)) 2491 } 2492 func (x TRS_VisualScaleMode) String() string { 2493 s, ok := TRS_VisualScaleMode_name[int32(x)] 2494 if ok { 2495 return s 2496 } 2497 return strconv.Itoa(int(x)) 2498 } 2499 func (this *Msg) Equal(that interface{}) bool { 2500 if that == nil { 2501 return this == nil 2502 } 2503 2504 that1, ok := that.(*Msg) 2505 if !ok { 2506 that2, ok := that.(Msg) 2507 if ok { 2508 that1 = &that2 2509 } else { 2510 return false 2511 } 2512 } 2513 if that1 == nil { 2514 return this == nil 2515 } else if this == nil { 2516 return false 2517 } 2518 if this.ReqID != that1.ReqID { 2519 return false 2520 } 2521 if this.Status != that1.Status { 2522 return false 2523 } 2524 if len(this.CellTxs) != len(that1.CellTxs) { 2525 return false 2526 } 2527 for i := range this.CellTxs { 2528 if !this.CellTxs[i].Equal(that1.CellTxs[i]) { 2529 return false 2530 } 2531 } 2532 return true 2533 } 2534 func (this *CellTxPb) Equal(that interface{}) bool { 2535 if that == nil { 2536 return this == nil 2537 } 2538 2539 that1, ok := that.(*CellTxPb) 2540 if !ok { 2541 that2, ok := that.(CellTxPb) 2542 if ok { 2543 that1 = &that2 2544 } else { 2545 return false 2546 } 2547 } 2548 if that1 == nil { 2549 return this == nil 2550 } else if this == nil { 2551 return false 2552 } 2553 if this.Op != that1.Op { 2554 return false 2555 } 2556 if this.CellID_0 != that1.CellID_0 { 2557 return false 2558 } 2559 if this.CellID_1 != that1.CellID_1 { 2560 return false 2561 } 2562 if len(this.Elems) != len(that1.Elems) { 2563 return false 2564 } 2565 for i := range this.Elems { 2566 if !this.Elems[i].Equal(that1.Elems[i]) { 2567 return false 2568 } 2569 } 2570 return true 2571 } 2572 func (this *AttrElemPb) Equal(that interface{}) bool { 2573 if that == nil { 2574 return this == nil 2575 } 2576 2577 that1, ok := that.(*AttrElemPb) 2578 if !ok { 2579 that2, ok := that.(AttrElemPb) 2580 if ok { 2581 that1 = &that2 2582 } else { 2583 return false 2584 } 2585 } 2586 if that1 == nil { 2587 return this == nil 2588 } else if this == nil { 2589 return false 2590 } 2591 if this.AttrID != that1.AttrID { 2592 return false 2593 } 2594 if !bytes.Equal(this.ValBuf, that1.ValBuf) { 2595 return false 2596 } 2597 if this.SI != that1.SI { 2598 return false 2599 } 2600 return true 2601 } 2602 func (this *Login) Equal(that interface{}) bool { 2603 if that == nil { 2604 return this == nil 2605 } 2606 2607 that1, ok := that.(*Login) 2608 if !ok { 2609 that2, ok := that.(Login) 2610 if ok { 2611 that1 = &that2 2612 } else { 2613 return false 2614 } 2615 } 2616 if that1 == nil { 2617 return this == nil 2618 } else if this == nil { 2619 return false 2620 } 2621 if this.UserUID != that1.UserUID { 2622 return false 2623 } 2624 if this.HostAddr != that1.HostAddr { 2625 return false 2626 } 2627 if this.DeviceLabel != that1.DeviceLabel { 2628 return false 2629 } 2630 if this.DeviceUID != that1.DeviceUID { 2631 return false 2632 } 2633 return true 2634 } 2635 func (this *LoginChallenge) Equal(that interface{}) bool { 2636 if that == nil { 2637 return this == nil 2638 } 2639 2640 that1, ok := that.(*LoginChallenge) 2641 if !ok { 2642 that2, ok := that.(LoginChallenge) 2643 if ok { 2644 that1 = &that2 2645 } else { 2646 return false 2647 } 2648 } 2649 if that1 == nil { 2650 return this == nil 2651 } else if this == nil { 2652 return false 2653 } 2654 if !bytes.Equal(this.Hash, that1.Hash) { 2655 return false 2656 } 2657 return true 2658 } 2659 func (this *LoginResponse) Equal(that interface{}) bool { 2660 if that == nil { 2661 return this == nil 2662 } 2663 2664 that1, ok := that.(*LoginResponse) 2665 if !ok { 2666 that2, ok := that.(LoginResponse) 2667 if ok { 2668 that1 = &that2 2669 } else { 2670 return false 2671 } 2672 } 2673 if that1 == nil { 2674 return this == nil 2675 } else if this == nil { 2676 return false 2677 } 2678 if !bytes.Equal(this.HashResp, that1.HashResp) { 2679 return false 2680 } 2681 return true 2682 } 2683 func (this *Symbol) Equal(that interface{}) bool { 2684 if that == nil { 2685 return this == nil 2686 } 2687 2688 that1, ok := that.(*Symbol) 2689 if !ok { 2690 that2, ok := that.(Symbol) 2691 if ok { 2692 that1 = &that2 2693 } else { 2694 return false 2695 } 2696 } 2697 if that1 == nil { 2698 return this == nil 2699 } else if this == nil { 2700 return false 2701 } 2702 if this.ID != that1.ID { 2703 return false 2704 } 2705 if !bytes.Equal(this.Name, that1.Name) { 2706 return false 2707 } 2708 return true 2709 } 2710 func (this *RegisterDefs) Equal(that interface{}) bool { 2711 if that == nil { 2712 return this == nil 2713 } 2714 2715 that1, ok := that.(*RegisterDefs) 2716 if !ok { 2717 that2, ok := that.(RegisterDefs) 2718 if ok { 2719 that1 = &that2 2720 } else { 2721 return false 2722 } 2723 } 2724 if that1 == nil { 2725 return this == nil 2726 } else if this == nil { 2727 return false 2728 } 2729 if len(this.Symbols) != len(that1.Symbols) { 2730 return false 2731 } 2732 for i := range this.Symbols { 2733 if !this.Symbols[i].Equal(that1.Symbols[i]) { 2734 return false 2735 } 2736 } 2737 if len(this.Attrs) != len(that1.Attrs) { 2738 return false 2739 } 2740 for i := range this.Attrs { 2741 if !this.Attrs[i].Equal(that1.Attrs[i]) { 2742 return false 2743 } 2744 } 2745 if len(this.Selectors) != len(that1.Selectors) { 2746 return false 2747 } 2748 for i := range this.Selectors { 2749 if !this.Selectors[i].Equal(that1.Selectors[i]) { 2750 return false 2751 } 2752 } 2753 return true 2754 } 2755 func (this *AttrSpec) Equal(that interface{}) bool { 2756 if that == nil { 2757 return this == nil 2758 } 2759 2760 that1, ok := that.(*AttrSpec) 2761 if !ok { 2762 that2, ok := that.(AttrSpec) 2763 if ok { 2764 that1 = &that2 2765 } else { 2766 return false 2767 } 2768 } 2769 if that1 == nil { 2770 return this == nil 2771 } else if this == nil { 2772 return false 2773 } 2774 if this.DefID != that1.DefID { 2775 return false 2776 } 2777 if this.ElemType != that1.ElemType { 2778 return false 2779 } 2780 if this.SeriesSpec != that1.SeriesSpec { 2781 return false 2782 } 2783 if this.SeriesIndexType != that1.SeriesIndexType { 2784 return false 2785 } 2786 if this.AttrName != that1.AttrName { 2787 return false 2788 } 2789 return true 2790 } 2791 func (this *ItemSelector) Equal(that interface{}) bool { 2792 if that == nil { 2793 return this == nil 2794 } 2795 2796 that1, ok := that.(*ItemSelector) 2797 if !ok { 2798 that2, ok := that.(ItemSelector) 2799 if ok { 2800 that1 = &that2 2801 } else { 2802 return false 2803 } 2804 } 2805 if that1 == nil { 2806 return this == nil 2807 } else if this == nil { 2808 return false 2809 } 2810 if this.DefID != that1.DefID { 2811 return false 2812 } 2813 if len(this.Include) != len(that1.Include) { 2814 return false 2815 } 2816 for i := range this.Include { 2817 if this.Include[i] != that1.Include[i] { 2818 return false 2819 } 2820 } 2821 if len(this.Exclude) != len(that1.Exclude) { 2822 return false 2823 } 2824 for i := range this.Exclude { 2825 if this.Exclude[i] != that1.Exclude[i] { 2826 return false 2827 } 2828 } 2829 return true 2830 } 2831 func (this *HandleURI) Equal(that interface{}) bool { 2832 if that == nil { 2833 return this == nil 2834 } 2835 2836 that1, ok := that.(*HandleURI) 2837 if !ok { 2838 that2, ok := that.(HandleURI) 2839 if ok { 2840 that1 = &that2 2841 } else { 2842 return false 2843 } 2844 } 2845 if that1 == nil { 2846 return this == nil 2847 } else if this == nil { 2848 return false 2849 } 2850 if this.URI != that1.URI { 2851 return false 2852 } 2853 return true 2854 } 2855 func (this *PinRequest) Equal(that interface{}) bool { 2856 if that == nil { 2857 return this == nil 2858 } 2859 2860 that1, ok := that.(*PinRequest) 2861 if !ok { 2862 that2, ok := that.(PinRequest) 2863 if ok { 2864 that1 = &that2 2865 } else { 2866 return false 2867 } 2868 } 2869 if that1 == nil { 2870 return this == nil 2871 } else if this == nil { 2872 return false 2873 } 2874 if this.ParentReqID != that1.ParentReqID { 2875 return false 2876 } 2877 if this.PinURL != that1.PinURL { 2878 return false 2879 } 2880 if this.PinCellIDx0 != that1.PinCellIDx0 { 2881 return false 2882 } 2883 if this.PinCellIDx1 != that1.PinCellIDx1 { 2884 return false 2885 } 2886 if this.ParentAttrSelector != that1.ParentAttrSelector { 2887 return false 2888 } 2889 if this.ChildCellSelector != that1.ChildCellSelector { 2890 return false 2891 } 2892 if this.Flags != that1.Flags { 2893 return false 2894 } 2895 return true 2896 } 2897 func (this *Position) Equal(that interface{}) bool { 2898 if that == nil { 2899 return this == nil 2900 } 2901 2902 that1, ok := that.(*Position) 2903 if !ok { 2904 that2, ok := that.(Position) 2905 if ok { 2906 that1 = &that2 2907 } else { 2908 return false 2909 } 2910 } 2911 if that1 == nil { 2912 return this == nil 2913 } else if this == nil { 2914 return false 2915 } 2916 if this.CordType != that1.CordType { 2917 return false 2918 } 2919 if this.U != that1.U { 2920 return false 2921 } 2922 if this.V != that1.V { 2923 return false 2924 } 2925 if this.W != that1.W { 2926 return false 2927 } 2928 if this.ROU != that1.ROU { 2929 return false 2930 } 2931 return true 2932 } 2933 func (this *AssetTag) Equal(that interface{}) bool { 2934 if that == nil { 2935 return this == nil 2936 } 2937 2938 that1, ok := that.(*AssetTag) 2939 if !ok { 2940 that2, ok := that.(AssetTag) 2941 if ok { 2942 that1 = &that2 2943 } else { 2944 return false 2945 } 2946 } 2947 if that1 == nil { 2948 return this == nil 2949 } else if this == nil { 2950 return false 2951 } 2952 if this.State != that1.State { 2953 return false 2954 } 2955 if this.ContentType != that1.ContentType { 2956 return false 2957 } 2958 if this.URI != that1.URI { 2959 return false 2960 } 2961 if this.UIDx0 != that1.UIDx0 { 2962 return false 2963 } 2964 if this.UIDx1 != that1.UIDx1 { 2965 return false 2966 } 2967 if this.UIDx2 != that1.UIDx2 { 2968 return false 2969 } 2970 if this.Rx0 != that1.Rx0 { 2971 return false 2972 } 2973 if this.Rx1 != that1.Rx1 { 2974 return false 2975 } 2976 if this.Rx2 != that1.Rx2 { 2977 return false 2978 } 2979 if this.PixelWidth != that1.PixelWidth { 2980 return false 2981 } 2982 if this.PixelHeight != that1.PixelHeight { 2983 return false 2984 } 2985 if this.MeterScale != that1.MeterScale { 2986 return false 2987 } 2988 if len(this.SubTags) != len(that1.SubTags) { 2989 return false 2990 } 2991 for i := range this.SubTags { 2992 if !this.SubTags[i].Equal(that1.SubTags[i]) { 2993 return false 2994 } 2995 } 2996 return true 2997 } 2998 func (this *SheetInfo) Equal(that interface{}) bool { 2999 if that == nil { 3000 return this == nil 3001 } 3002 3003 that1, ok := that.(*SheetInfo) 3004 if !ok { 3005 that2, ok := that.(SheetInfo) 3006 if ok { 3007 that1 = &that2 3008 } else { 3009 return false 3010 } 3011 } 3012 if that1 == nil { 3013 return this == nil 3014 } else if this == nil { 3015 return false 3016 } 3017 if this.AppSheetURI != that1.AppSheetURI { 3018 return false 3019 } 3020 if len(this.BoundSeries) != len(that1.BoundSeries) { 3021 return false 3022 } 3023 for i := range this.BoundSeries { 3024 if !this.BoundSeries[i].Equal(that1.BoundSeries[i]) { 3025 return false 3026 } 3027 } 3028 return true 3029 } 3030 func (this *SheetGroup) Equal(that interface{}) bool { 3031 if that == nil { 3032 return this == nil 3033 } 3034 3035 that1, ok := that.(*SheetGroup) 3036 if !ok { 3037 that2, ok := that.(SheetGroup) 3038 if ok { 3039 that1 = &that2 3040 } else { 3041 return false 3042 } 3043 } 3044 if that1 == nil { 3045 return this == nil 3046 } else if this == nil { 3047 return false 3048 } 3049 if len(this.SheetCatalog) != len(that1.SheetCatalog) { 3050 return false 3051 } 3052 for i := range this.SheetCatalog { 3053 if !this.SheetCatalog[i].Equal(that1.SheetCatalog[i]) { 3054 return false 3055 } 3056 } 3057 return true 3058 } 3059 func (this *CryptoKey) Equal(that interface{}) bool { 3060 if that == nil { 3061 return this == nil 3062 } 3063 3064 that1, ok := that.(*CryptoKey) 3065 if !ok { 3066 that2, ok := that.(CryptoKey) 3067 if ok { 3068 that1 = &that2 3069 } else { 3070 return false 3071 } 3072 } 3073 if that1 == nil { 3074 return this == nil 3075 } else if this == nil { 3076 return false 3077 } 3078 if this.CryptoKitID != that1.CryptoKitID { 3079 return false 3080 } 3081 if !bytes.Equal(this.KeyBytes, that1.KeyBytes) { 3082 return false 3083 } 3084 return true 3085 } 3086 func (this *CellHeader) Equal(that interface{}) bool { 3087 if that == nil { 3088 return this == nil 3089 } 3090 3091 that1, ok := that.(*CellHeader) 3092 if !ok { 3093 that2, ok := that.(CellHeader) 3094 if ok { 3095 that1 = &that2 3096 } else { 3097 return false 3098 } 3099 } 3100 if that1 == nil { 3101 return this == nil 3102 } else if this == nil { 3103 return false 3104 } 3105 if this.Title != that1.Title { 3106 return false 3107 } 3108 if this.Subtitle != that1.Subtitle { 3109 return false 3110 } 3111 if this.About != that1.About { 3112 return false 3113 } 3114 if len(this.Glyphs) != len(that1.Glyphs) { 3115 return false 3116 } 3117 for i := range this.Glyphs { 3118 if !this.Glyphs[i].Equal(that1.Glyphs[i]) { 3119 return false 3120 } 3121 } 3122 if this.Created != that1.Created { 3123 return false 3124 } 3125 if this.Modified != that1.Modified { 3126 return false 3127 } 3128 if this.CellURL != that1.CellURL { 3129 return false 3130 } 3131 if !this.ExternalLink.Equal(that1.ExternalLink) { 3132 return false 3133 } 3134 return true 3135 } 3136 func (this *AuthToken) Equal(that interface{}) bool { 3137 if that == nil { 3138 return this == nil 3139 } 3140 3141 that1, ok := that.(*AuthToken) 3142 if !ok { 3143 that2, ok := that.(AuthToken) 3144 if ok { 3145 that1 = &that2 3146 } else { 3147 return false 3148 } 3149 } 3150 if that1 == nil { 3151 return this == nil 3152 } else if this == nil { 3153 return false 3154 } 3155 if this.AccessToken != that1.AccessToken { 3156 return false 3157 } 3158 if this.TokenType != that1.TokenType { 3159 return false 3160 } 3161 if this.RefreshToken != that1.RefreshToken { 3162 return false 3163 } 3164 if this.Expiry != that1.Expiry { 3165 return false 3166 } 3167 return true 3168 } 3169 func (this *TRS) Equal(that interface{}) bool { 3170 if that == nil { 3171 return this == nil 3172 } 3173 3174 that1, ok := that.(*TRS) 3175 if !ok { 3176 that2, ok := that.(TRS) 3177 if ok { 3178 that1 = &that2 3179 } else { 3180 return false 3181 } 3182 } 3183 if that1 == nil { 3184 return this == nil 3185 } else if this == nil { 3186 return false 3187 } 3188 if this.X1 != that1.X1 { 3189 return false 3190 } 3191 if this.X2 != that1.X2 { 3192 return false 3193 } 3194 if this.X3 != that1.X3 { 3195 return false 3196 } 3197 if this.ScaleMode != that1.ScaleMode { 3198 return false 3199 } 3200 if this.Scale1 != that1.Scale1 { 3201 return false 3202 } 3203 if this.Scale2 != that1.Scale2 { 3204 return false 3205 } 3206 if this.Scale3 != that1.Scale3 { 3207 return false 3208 } 3209 if this.Rotate1 != that1.Rotate1 { 3210 return false 3211 } 3212 if this.Rotate2 != that1.Rotate2 { 3213 return false 3214 } 3215 if this.Rotate3 != that1.Rotate3 { 3216 return false 3217 } 3218 return true 3219 } 3220 func (this *FeedParams) Equal(that interface{}) bool { 3221 if that == nil { 3222 return this == nil 3223 } 3224 3225 that1, ok := that.(*FeedParams) 3226 if !ok { 3227 that2, ok := that.(FeedParams) 3228 if ok { 3229 that1 = &that2 3230 } else { 3231 return false 3232 } 3233 } 3234 if that1 == nil { 3235 return this == nil 3236 } else if this == nil { 3237 return false 3238 } 3239 if this.UpdateIntervalMin != that1.UpdateIntervalMin { 3240 return false 3241 } 3242 if this.UpdateIntervalMax != that1.UpdateIntervalMax { 3243 return false 3244 } 3245 return true 3246 } 3247 func (this *DataSegment) Equal(that interface{}) bool { 3248 if that == nil { 3249 return this == nil 3250 } 3251 3252 that1, ok := that.(*DataSegment) 3253 if !ok { 3254 that2, ok := that.(DataSegment) 3255 if ok { 3256 that1 = &that2 3257 } else { 3258 return false 3259 } 3260 } 3261 if that1 == nil { 3262 return this == nil 3263 } else if this == nil { 3264 return false 3265 } 3266 if this.ByteOfs != that1.ByteOfs { 3267 return false 3268 } 3269 if this.ByteSz != that1.ByteSz { 3270 return false 3271 } 3272 if !bytes.Equal(this.InlineData, that1.InlineData) { 3273 return false 3274 } 3275 if this.StreamURI != that1.StreamURI { 3276 return false 3277 } 3278 if this.BlobID != that1.BlobID { 3279 return false 3280 } 3281 return true 3282 } 3283 func (this *Err) Equal(that interface{}) bool { 3284 if that == nil { 3285 return this == nil 3286 } 3287 3288 that1, ok := that.(*Err) 3289 if !ok { 3290 that2, ok := that.(Err) 3291 if ok { 3292 that1 = &that2 3293 } else { 3294 return false 3295 } 3296 } 3297 if that1 == nil { 3298 return this == nil 3299 } else if this == nil { 3300 return false 3301 } 3302 if this.Code != that1.Code { 3303 return false 3304 } 3305 if this.Level != that1.Level { 3306 return false 3307 } 3308 if this.Msg != that1.Msg { 3309 return false 3310 } 3311 return true 3312 } 3313 func (this *Msg) GoString() string { 3314 if this == nil { 3315 return "nil" 3316 } 3317 s := make([]string, 0, 7) 3318 s = append(s, "&.Msg{") 3319 s = append(s, "ReqID: "+fmt.Sprintf("%#v", this.ReqID)+",\n") 3320 s = append(s, "Status: "+fmt.Sprintf("%#v", this.Status)+",\n") 3321 if this.CellTxs != nil { 3322 s = append(s, "CellTxs: "+fmt.Sprintf("%#v", this.CellTxs)+",\n") 3323 } 3324 s = append(s, "}") 3325 return strings.Join(s, "") 3326 } 3327 func (this *CellTxPb) GoString() string { 3328 if this == nil { 3329 return "nil" 3330 } 3331 s := make([]string, 0, 8) 3332 s = append(s, "&.CellTxPb{") 3333 s = append(s, "Op: "+fmt.Sprintf("%#v", this.Op)+",\n") 3334 s = append(s, "CellID_0: "+fmt.Sprintf("%#v", this.CellID_0)+",\n") 3335 s = append(s, "CellID_1: "+fmt.Sprintf("%#v", this.CellID_1)+",\n") 3336 if this.Elems != nil { 3337 s = append(s, "Elems: "+fmt.Sprintf("%#v", this.Elems)+",\n") 3338 } 3339 s = append(s, "}") 3340 return strings.Join(s, "") 3341 } 3342 func (this *AttrElemPb) GoString() string { 3343 if this == nil { 3344 return "nil" 3345 } 3346 s := make([]string, 0, 7) 3347 s = append(s, "&.AttrElemPb{") 3348 s = append(s, "AttrID: "+fmt.Sprintf("%#v", this.AttrID)+",\n") 3349 s = append(s, "ValBuf: "+fmt.Sprintf("%#v", this.ValBuf)+",\n") 3350 s = append(s, "SI: "+fmt.Sprintf("%#v", this.SI)+",\n") 3351 s = append(s, "}") 3352 return strings.Join(s, "") 3353 } 3354 func (this *Login) GoString() string { 3355 if this == nil { 3356 return "nil" 3357 } 3358 s := make([]string, 0, 8) 3359 s = append(s, "&.Login{") 3360 s = append(s, "UserUID: "+fmt.Sprintf("%#v", this.UserUID)+",\n") 3361 s = append(s, "HostAddr: "+fmt.Sprintf("%#v", this.HostAddr)+",\n") 3362 s = append(s, "DeviceLabel: "+fmt.Sprintf("%#v", this.DeviceLabel)+",\n") 3363 s = append(s, "DeviceUID: "+fmt.Sprintf("%#v", this.DeviceUID)+",\n") 3364 s = append(s, "}") 3365 return strings.Join(s, "") 3366 } 3367 func (this *LoginChallenge) GoString() string { 3368 if this == nil { 3369 return "nil" 3370 } 3371 s := make([]string, 0, 5) 3372 s = append(s, "&.LoginChallenge{") 3373 s = append(s, "Hash: "+fmt.Sprintf("%#v", this.Hash)+",\n") 3374 s = append(s, "}") 3375 return strings.Join(s, "") 3376 } 3377 func (this *LoginResponse) GoString() string { 3378 if this == nil { 3379 return "nil" 3380 } 3381 s := make([]string, 0, 5) 3382 s = append(s, "&.LoginResponse{") 3383 s = append(s, "HashResp: "+fmt.Sprintf("%#v", this.HashResp)+",\n") 3384 s = append(s, "}") 3385 return strings.Join(s, "") 3386 } 3387 func (this *Symbol) GoString() string { 3388 if this == nil { 3389 return "nil" 3390 } 3391 s := make([]string, 0, 6) 3392 s = append(s, "&.Symbol{") 3393 s = append(s, "ID: "+fmt.Sprintf("%#v", this.ID)+",\n") 3394 s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n") 3395 s = append(s, "}") 3396 return strings.Join(s, "") 3397 } 3398 func (this *RegisterDefs) GoString() string { 3399 if this == nil { 3400 return "nil" 3401 } 3402 s := make([]string, 0, 7) 3403 s = append(s, "&.RegisterDefs{") 3404 if this.Symbols != nil { 3405 s = append(s, "Symbols: "+fmt.Sprintf("%#v", this.Symbols)+",\n") 3406 } 3407 if this.Attrs != nil { 3408 s = append(s, "Attrs: "+fmt.Sprintf("%#v", this.Attrs)+",\n") 3409 } 3410 if this.Selectors != nil { 3411 s = append(s, "Selectors: "+fmt.Sprintf("%#v", this.Selectors)+",\n") 3412 } 3413 s = append(s, "}") 3414 return strings.Join(s, "") 3415 } 3416 func (this *AttrSpec) GoString() string { 3417 if this == nil { 3418 return "nil" 3419 } 3420 s := make([]string, 0, 9) 3421 s = append(s, "&.AttrSpec{") 3422 s = append(s, "DefID: "+fmt.Sprintf("%#v", this.DefID)+",\n") 3423 s = append(s, "ElemType: "+fmt.Sprintf("%#v", this.ElemType)+",\n") 3424 s = append(s, "SeriesSpec: "+fmt.Sprintf("%#v", this.SeriesSpec)+",\n") 3425 s = append(s, "SeriesIndexType: "+fmt.Sprintf("%#v", this.SeriesIndexType)+",\n") 3426 s = append(s, "AttrName: "+fmt.Sprintf("%#v", this.AttrName)+",\n") 3427 s = append(s, "}") 3428 return strings.Join(s, "") 3429 } 3430 func (this *ItemSelector) GoString() string { 3431 if this == nil { 3432 return "nil" 3433 } 3434 s := make([]string, 0, 7) 3435 s = append(s, "&.ItemSelector{") 3436 s = append(s, "DefID: "+fmt.Sprintf("%#v", this.DefID)+",\n") 3437 s = append(s, "Include: "+fmt.Sprintf("%#v", this.Include)+",\n") 3438 s = append(s, "Exclude: "+fmt.Sprintf("%#v", this.Exclude)+",\n") 3439 s = append(s, "}") 3440 return strings.Join(s, "") 3441 } 3442 func (this *HandleURI) GoString() string { 3443 if this == nil { 3444 return "nil" 3445 } 3446 s := make([]string, 0, 5) 3447 s = append(s, "&.HandleURI{") 3448 s = append(s, "URI: "+fmt.Sprintf("%#v", this.URI)+",\n") 3449 s = append(s, "}") 3450 return strings.Join(s, "") 3451 } 3452 func (this *PinRequest) GoString() string { 3453 if this == nil { 3454 return "nil" 3455 } 3456 s := make([]string, 0, 11) 3457 s = append(s, "&.PinRequest{") 3458 s = append(s, "ParentReqID: "+fmt.Sprintf("%#v", this.ParentReqID)+",\n") 3459 s = append(s, "PinURL: "+fmt.Sprintf("%#v", this.PinURL)+",\n") 3460 s = append(s, "PinCellIDx0: "+fmt.Sprintf("%#v", this.PinCellIDx0)+",\n") 3461 s = append(s, "PinCellIDx1: "+fmt.Sprintf("%#v", this.PinCellIDx1)+",\n") 3462 s = append(s, "ParentAttrSelector: "+fmt.Sprintf("%#v", this.ParentAttrSelector)+",\n") 3463 s = append(s, "ChildCellSelector: "+fmt.Sprintf("%#v", this.ChildCellSelector)+",\n") 3464 s = append(s, "Flags: "+fmt.Sprintf("%#v", this.Flags)+",\n") 3465 s = append(s, "}") 3466 return strings.Join(s, "") 3467 } 3468 func (this *Position) GoString() string { 3469 if this == nil { 3470 return "nil" 3471 } 3472 s := make([]string, 0, 9) 3473 s = append(s, "&.Position{") 3474 s = append(s, "CordType: "+fmt.Sprintf("%#v", this.CordType)+",\n") 3475 s = append(s, "U: "+fmt.Sprintf("%#v", this.U)+",\n") 3476 s = append(s, "V: "+fmt.Sprintf("%#v", this.V)+",\n") 3477 s = append(s, "W: "+fmt.Sprintf("%#v", this.W)+",\n") 3478 s = append(s, "ROU: "+fmt.Sprintf("%#v", this.ROU)+",\n") 3479 s = append(s, "}") 3480 return strings.Join(s, "") 3481 } 3482 func (this *AssetTag) GoString() string { 3483 if this == nil { 3484 return "nil" 3485 } 3486 s := make([]string, 0, 17) 3487 s = append(s, "&.AssetTag{") 3488 s = append(s, "State: "+fmt.Sprintf("%#v", this.State)+",\n") 3489 s = append(s, "ContentType: "+fmt.Sprintf("%#v", this.ContentType)+",\n") 3490 s = append(s, "URI: "+fmt.Sprintf("%#v", this.URI)+",\n") 3491 s = append(s, "UIDx0: "+fmt.Sprintf("%#v", this.UIDx0)+",\n") 3492 s = append(s, "UIDx1: "+fmt.Sprintf("%#v", this.UIDx1)+",\n") 3493 s = append(s, "UIDx2: "+fmt.Sprintf("%#v", this.UIDx2)+",\n") 3494 s = append(s, "Rx0: "+fmt.Sprintf("%#v", this.Rx0)+",\n") 3495 s = append(s, "Rx1: "+fmt.Sprintf("%#v", this.Rx1)+",\n") 3496 s = append(s, "Rx2: "+fmt.Sprintf("%#v", this.Rx2)+",\n") 3497 s = append(s, "PixelWidth: "+fmt.Sprintf("%#v", this.PixelWidth)+",\n") 3498 s = append(s, "PixelHeight: "+fmt.Sprintf("%#v", this.PixelHeight)+",\n") 3499 s = append(s, "MeterScale: "+fmt.Sprintf("%#v", this.MeterScale)+",\n") 3500 if this.SubTags != nil { 3501 s = append(s, "SubTags: "+fmt.Sprintf("%#v", this.SubTags)+",\n") 3502 } 3503 s = append(s, "}") 3504 return strings.Join(s, "") 3505 } 3506 func (this *SheetInfo) GoString() string { 3507 if this == nil { 3508 return "nil" 3509 } 3510 s := make([]string, 0, 6) 3511 s = append(s, "&.SheetInfo{") 3512 s = append(s, "AppSheetURI: "+fmt.Sprintf("%#v", this.AppSheetURI)+",\n") 3513 if this.BoundSeries != nil { 3514 s = append(s, "BoundSeries: "+fmt.Sprintf("%#v", this.BoundSeries)+",\n") 3515 } 3516 s = append(s, "}") 3517 return strings.Join(s, "") 3518 } 3519 func (this *SheetGroup) GoString() string { 3520 if this == nil { 3521 return "nil" 3522 } 3523 s := make([]string, 0, 5) 3524 s = append(s, "&.SheetGroup{") 3525 if this.SheetCatalog != nil { 3526 s = append(s, "SheetCatalog: "+fmt.Sprintf("%#v", this.SheetCatalog)+",\n") 3527 } 3528 s = append(s, "}") 3529 return strings.Join(s, "") 3530 } 3531 func (this *CryptoKey) GoString() string { 3532 if this == nil { 3533 return "nil" 3534 } 3535 s := make([]string, 0, 6) 3536 s = append(s, "&.CryptoKey{") 3537 s = append(s, "CryptoKitID: "+fmt.Sprintf("%#v", this.CryptoKitID)+",\n") 3538 s = append(s, "KeyBytes: "+fmt.Sprintf("%#v", this.KeyBytes)+",\n") 3539 s = append(s, "}") 3540 return strings.Join(s, "") 3541 } 3542 func (this *CellHeader) GoString() string { 3543 if this == nil { 3544 return "nil" 3545 } 3546 s := make([]string, 0, 12) 3547 s = append(s, "&.CellHeader{") 3548 s = append(s, "Title: "+fmt.Sprintf("%#v", this.Title)+",\n") 3549 s = append(s, "Subtitle: "+fmt.Sprintf("%#v", this.Subtitle)+",\n") 3550 s = append(s, "About: "+fmt.Sprintf("%#v", this.About)+",\n") 3551 if this.Glyphs != nil { 3552 s = append(s, "Glyphs: "+fmt.Sprintf("%#v", this.Glyphs)+",\n") 3553 } 3554 s = append(s, "Created: "+fmt.Sprintf("%#v", this.Created)+",\n") 3555 s = append(s, "Modified: "+fmt.Sprintf("%#v", this.Modified)+",\n") 3556 s = append(s, "CellURL: "+fmt.Sprintf("%#v", this.CellURL)+",\n") 3557 if this.ExternalLink != nil { 3558 s = append(s, "ExternalLink: "+fmt.Sprintf("%#v", this.ExternalLink)+",\n") 3559 } 3560 s = append(s, "}") 3561 return strings.Join(s, "") 3562 } 3563 func (this *AuthToken) GoString() string { 3564 if this == nil { 3565 return "nil" 3566 } 3567 s := make([]string, 0, 8) 3568 s = append(s, "&.AuthToken{") 3569 s = append(s, "AccessToken: "+fmt.Sprintf("%#v", this.AccessToken)+",\n") 3570 s = append(s, "TokenType: "+fmt.Sprintf("%#v", this.TokenType)+",\n") 3571 s = append(s, "RefreshToken: "+fmt.Sprintf("%#v", this.RefreshToken)+",\n") 3572 s = append(s, "Expiry: "+fmt.Sprintf("%#v", this.Expiry)+",\n") 3573 s = append(s, "}") 3574 return strings.Join(s, "") 3575 } 3576 func (this *TRS) GoString() string { 3577 if this == nil { 3578 return "nil" 3579 } 3580 s := make([]string, 0, 14) 3581 s = append(s, "&.TRS{") 3582 s = append(s, "X1: "+fmt.Sprintf("%#v", this.X1)+",\n") 3583 s = append(s, "X2: "+fmt.Sprintf("%#v", this.X2)+",\n") 3584 s = append(s, "X3: "+fmt.Sprintf("%#v", this.X3)+",\n") 3585 s = append(s, "ScaleMode: "+fmt.Sprintf("%#v", this.ScaleMode)+",\n") 3586 s = append(s, "Scale1: "+fmt.Sprintf("%#v", this.Scale1)+",\n") 3587 s = append(s, "Scale2: "+fmt.Sprintf("%#v", this.Scale2)+",\n") 3588 s = append(s, "Scale3: "+fmt.Sprintf("%#v", this.Scale3)+",\n") 3589 s = append(s, "Rotate1: "+fmt.Sprintf("%#v", this.Rotate1)+",\n") 3590 s = append(s, "Rotate2: "+fmt.Sprintf("%#v", this.Rotate2)+",\n") 3591 s = append(s, "Rotate3: "+fmt.Sprintf("%#v", this.Rotate3)+",\n") 3592 s = append(s, "}") 3593 return strings.Join(s, "") 3594 } 3595 func (this *FeedParams) GoString() string { 3596 if this == nil { 3597 return "nil" 3598 } 3599 s := make([]string, 0, 6) 3600 s = append(s, "&.FeedParams{") 3601 s = append(s, "UpdateIntervalMin: "+fmt.Sprintf("%#v", this.UpdateIntervalMin)+",\n") 3602 s = append(s, "UpdateIntervalMax: "+fmt.Sprintf("%#v", this.UpdateIntervalMax)+",\n") 3603 s = append(s, "}") 3604 return strings.Join(s, "") 3605 } 3606 func (this *DataSegment) GoString() string { 3607 if this == nil { 3608 return "nil" 3609 } 3610 s := make([]string, 0, 9) 3611 s = append(s, "&.DataSegment{") 3612 s = append(s, "ByteOfs: "+fmt.Sprintf("%#v", this.ByteOfs)+",\n") 3613 s = append(s, "ByteSz: "+fmt.Sprintf("%#v", this.ByteSz)+",\n") 3614 s = append(s, "InlineData: "+fmt.Sprintf("%#v", this.InlineData)+",\n") 3615 s = append(s, "StreamURI: "+fmt.Sprintf("%#v", this.StreamURI)+",\n") 3616 s = append(s, "BlobID: "+fmt.Sprintf("%#v", this.BlobID)+",\n") 3617 s = append(s, "}") 3618 return strings.Join(s, "") 3619 } 3620 func (this *Err) GoString() string { 3621 if this == nil { 3622 return "nil" 3623 } 3624 s := make([]string, 0, 7) 3625 s = append(s, "&.Err{") 3626 s = append(s, "Code: "+fmt.Sprintf("%#v", this.Code)+",\n") 3627 s = append(s, "Level: "+fmt.Sprintf("%#v", this.Level)+",\n") 3628 s = append(s, "Msg: "+fmt.Sprintf("%#v", this.Msg)+",\n") 3629 s = append(s, "}") 3630 return strings.Join(s, "") 3631 } 3632 func valueToGoStringAmp(v interface{}, typ string) string { 3633 rv := reflect.ValueOf(v) 3634 if rv.IsNil() { 3635 return "nil" 3636 } 3637 pv := reflect.Indirect(rv).Interface() 3638 return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) 3639 } 3640 func (m *Msg) Marshal() (dAtA []byte, err error) { 3641 size := m.Size() 3642 dAtA = make([]byte, size) 3643 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3644 if err != nil { 3645 return nil, err 3646 } 3647 return dAtA[:n], nil 3648 } 3649 3650 func (m *Msg) MarshalTo(dAtA []byte) (int, error) { 3651 size := m.Size() 3652 return m.MarshalToSizedBuffer(dAtA[:size]) 3653 } 3654 3655 func (m *Msg) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3656 i := len(dAtA) 3657 _ = i 3658 var l int 3659 _ = l 3660 if len(m.CellTxs) > 0 { 3661 for iNdEx := len(m.CellTxs) - 1; iNdEx >= 0; iNdEx-- { 3662 { 3663 size, err := m.CellTxs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 3664 if err != nil { 3665 return 0, err 3666 } 3667 i -= size 3668 i = encodeVarintAmp(dAtA, i, uint64(size)) 3669 } 3670 i-- 3671 dAtA[i] = 0x2a 3672 } 3673 } 3674 if m.Status != 0 { 3675 i = encodeVarintAmp(dAtA, i, uint64(m.Status)) 3676 i-- 3677 dAtA[i] = 0x10 3678 } 3679 if m.ReqID != 0 { 3680 i = encodeVarintAmp(dAtA, i, uint64(m.ReqID)) 3681 i-- 3682 dAtA[i] = 0x8 3683 } 3684 return len(dAtA) - i, nil 3685 } 3686 3687 func (m *CellTxPb) Marshal() (dAtA []byte, err error) { 3688 size := m.Size() 3689 dAtA = make([]byte, size) 3690 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3691 if err != nil { 3692 return nil, err 3693 } 3694 return dAtA[:n], nil 3695 } 3696 3697 func (m *CellTxPb) MarshalTo(dAtA []byte) (int, error) { 3698 size := m.Size() 3699 return m.MarshalToSizedBuffer(dAtA[:size]) 3700 } 3701 3702 func (m *CellTxPb) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3703 i := len(dAtA) 3704 _ = i 3705 var l int 3706 _ = l 3707 if len(m.Elems) > 0 { 3708 for iNdEx := len(m.Elems) - 1; iNdEx >= 0; iNdEx-- { 3709 { 3710 size, err := m.Elems[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 3711 if err != nil { 3712 return 0, err 3713 } 3714 i -= size 3715 i = encodeVarintAmp(dAtA, i, uint64(size)) 3716 } 3717 i-- 3718 dAtA[i] = 0x42 3719 } 3720 } 3721 if m.CellID_1 != 0 { 3722 i -= 8 3723 encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(m.CellID_1)) 3724 i-- 3725 dAtA[i] = 0x21 3726 } 3727 if m.CellID_0 != 0 { 3728 i -= 8 3729 encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(m.CellID_0)) 3730 i-- 3731 dAtA[i] = 0x19 3732 } 3733 if m.Op != 0 { 3734 i = encodeVarintAmp(dAtA, i, uint64(m.Op)) 3735 i-- 3736 dAtA[i] = 0x8 3737 } 3738 return len(dAtA) - i, nil 3739 } 3740 3741 func (m *AttrElemPb) Marshal() (dAtA []byte, err error) { 3742 size := m.Size() 3743 dAtA = make([]byte, size) 3744 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3745 if err != nil { 3746 return nil, err 3747 } 3748 return dAtA[:n], nil 3749 } 3750 3751 func (m *AttrElemPb) MarshalTo(dAtA []byte) (int, error) { 3752 size := m.Size() 3753 return m.MarshalToSizedBuffer(dAtA[:size]) 3754 } 3755 3756 func (m *AttrElemPb) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3757 i := len(dAtA) 3758 _ = i 3759 var l int 3760 _ = l 3761 if m.SI != 0 { 3762 i = encodeVarintAmp(dAtA, i, uint64(m.SI)) 3763 i-- 3764 dAtA[i] = 0x18 3765 } 3766 if len(m.ValBuf) > 0 { 3767 i -= len(m.ValBuf) 3768 copy(dAtA[i:], m.ValBuf) 3769 i = encodeVarintAmp(dAtA, i, uint64(len(m.ValBuf))) 3770 i-- 3771 dAtA[i] = 0x12 3772 } 3773 if m.AttrID != 0 { 3774 i = encodeVarintAmp(dAtA, i, uint64(m.AttrID)) 3775 i-- 3776 dAtA[i] = 0x8 3777 } 3778 return len(dAtA) - i, nil 3779 } 3780 3781 func (m *Login) Marshal() (dAtA []byte, err error) { 3782 size := m.Size() 3783 dAtA = make([]byte, size) 3784 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3785 if err != nil { 3786 return nil, err 3787 } 3788 return dAtA[:n], nil 3789 } 3790 3791 func (m *Login) MarshalTo(dAtA []byte) (int, error) { 3792 size := m.Size() 3793 return m.MarshalToSizedBuffer(dAtA[:size]) 3794 } 3795 3796 func (m *Login) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3797 i := len(dAtA) 3798 _ = i 3799 var l int 3800 _ = l 3801 if len(m.DeviceUID) > 0 { 3802 i -= len(m.DeviceUID) 3803 copy(dAtA[i:], m.DeviceUID) 3804 i = encodeVarintAmp(dAtA, i, uint64(len(m.DeviceUID))) 3805 i-- 3806 dAtA[i] = 0x4a 3807 } 3808 if len(m.DeviceLabel) > 0 { 3809 i -= len(m.DeviceLabel) 3810 copy(dAtA[i:], m.DeviceLabel) 3811 i = encodeVarintAmp(dAtA, i, uint64(len(m.DeviceLabel))) 3812 i-- 3813 dAtA[i] = 0x42 3814 } 3815 if len(m.HostAddr) > 0 { 3816 i -= len(m.HostAddr) 3817 copy(dAtA[i:], m.HostAddr) 3818 i = encodeVarintAmp(dAtA, i, uint64(len(m.HostAddr))) 3819 i-- 3820 dAtA[i] = 0x12 3821 } 3822 if len(m.UserUID) > 0 { 3823 i -= len(m.UserUID) 3824 copy(dAtA[i:], m.UserUID) 3825 i = encodeVarintAmp(dAtA, i, uint64(len(m.UserUID))) 3826 i-- 3827 dAtA[i] = 0xa 3828 } 3829 return len(dAtA) - i, nil 3830 } 3831 3832 func (m *LoginChallenge) Marshal() (dAtA []byte, err error) { 3833 size := m.Size() 3834 dAtA = make([]byte, size) 3835 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3836 if err != nil { 3837 return nil, err 3838 } 3839 return dAtA[:n], nil 3840 } 3841 3842 func (m *LoginChallenge) MarshalTo(dAtA []byte) (int, error) { 3843 size := m.Size() 3844 return m.MarshalToSizedBuffer(dAtA[:size]) 3845 } 3846 3847 func (m *LoginChallenge) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3848 i := len(dAtA) 3849 _ = i 3850 var l int 3851 _ = l 3852 if len(m.Hash) > 0 { 3853 i -= len(m.Hash) 3854 copy(dAtA[i:], m.Hash) 3855 i = encodeVarintAmp(dAtA, i, uint64(len(m.Hash))) 3856 i-- 3857 dAtA[i] = 0xa 3858 } 3859 return len(dAtA) - i, nil 3860 } 3861 3862 func (m *LoginResponse) Marshal() (dAtA []byte, err error) { 3863 size := m.Size() 3864 dAtA = make([]byte, size) 3865 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3866 if err != nil { 3867 return nil, err 3868 } 3869 return dAtA[:n], nil 3870 } 3871 3872 func (m *LoginResponse) MarshalTo(dAtA []byte) (int, error) { 3873 size := m.Size() 3874 return m.MarshalToSizedBuffer(dAtA[:size]) 3875 } 3876 3877 func (m *LoginResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3878 i := len(dAtA) 3879 _ = i 3880 var l int 3881 _ = l 3882 if len(m.HashResp) > 0 { 3883 i -= len(m.HashResp) 3884 copy(dAtA[i:], m.HashResp) 3885 i = encodeVarintAmp(dAtA, i, uint64(len(m.HashResp))) 3886 i-- 3887 dAtA[i] = 0xa 3888 } 3889 return len(dAtA) - i, nil 3890 } 3891 3892 func (m *Symbol) Marshal() (dAtA []byte, err error) { 3893 size := m.Size() 3894 dAtA = make([]byte, size) 3895 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3896 if err != nil { 3897 return nil, err 3898 } 3899 return dAtA[:n], nil 3900 } 3901 3902 func (m *Symbol) MarshalTo(dAtA []byte) (int, error) { 3903 size := m.Size() 3904 return m.MarshalToSizedBuffer(dAtA[:size]) 3905 } 3906 3907 func (m *Symbol) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3908 i := len(dAtA) 3909 _ = i 3910 var l int 3911 _ = l 3912 if len(m.Name) > 0 { 3913 i -= len(m.Name) 3914 copy(dAtA[i:], m.Name) 3915 i = encodeVarintAmp(dAtA, i, uint64(len(m.Name))) 3916 i-- 3917 dAtA[i] = 0x12 3918 } 3919 if m.ID != 0 { 3920 i = encodeVarintAmp(dAtA, i, uint64(m.ID)) 3921 i-- 3922 dAtA[i] = 0x8 3923 } 3924 return len(dAtA) - i, nil 3925 } 3926 3927 func (m *RegisterDefs) Marshal() (dAtA []byte, err error) { 3928 size := m.Size() 3929 dAtA = make([]byte, size) 3930 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3931 if err != nil { 3932 return nil, err 3933 } 3934 return dAtA[:n], nil 3935 } 3936 3937 func (m *RegisterDefs) MarshalTo(dAtA []byte) (int, error) { 3938 size := m.Size() 3939 return m.MarshalToSizedBuffer(dAtA[:size]) 3940 } 3941 3942 func (m *RegisterDefs) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3943 i := len(dAtA) 3944 _ = i 3945 var l int 3946 _ = l 3947 if len(m.Selectors) > 0 { 3948 for iNdEx := len(m.Selectors) - 1; iNdEx >= 0; iNdEx-- { 3949 { 3950 size, err := m.Selectors[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 3951 if err != nil { 3952 return 0, err 3953 } 3954 i -= size 3955 i = encodeVarintAmp(dAtA, i, uint64(size)) 3956 } 3957 i-- 3958 dAtA[i] = 0x22 3959 } 3960 } 3961 if len(m.Attrs) > 0 { 3962 for iNdEx := len(m.Attrs) - 1; iNdEx >= 0; iNdEx-- { 3963 { 3964 size, err := m.Attrs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 3965 if err != nil { 3966 return 0, err 3967 } 3968 i -= size 3969 i = encodeVarintAmp(dAtA, i, uint64(size)) 3970 } 3971 i-- 3972 dAtA[i] = 0x12 3973 } 3974 } 3975 if len(m.Symbols) > 0 { 3976 for iNdEx := len(m.Symbols) - 1; iNdEx >= 0; iNdEx-- { 3977 { 3978 size, err := m.Symbols[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 3979 if err != nil { 3980 return 0, err 3981 } 3982 i -= size 3983 i = encodeVarintAmp(dAtA, i, uint64(size)) 3984 } 3985 i-- 3986 dAtA[i] = 0xa 3987 } 3988 } 3989 return len(dAtA) - i, nil 3990 } 3991 3992 func (m *AttrSpec) Marshal() (dAtA []byte, err error) { 3993 size := m.Size() 3994 dAtA = make([]byte, size) 3995 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3996 if err != nil { 3997 return nil, err 3998 } 3999 return dAtA[:n], nil 4000 } 4001 4002 func (m *AttrSpec) MarshalTo(dAtA []byte) (int, error) { 4003 size := m.Size() 4004 return m.MarshalToSizedBuffer(dAtA[:size]) 4005 } 4006 4007 func (m *AttrSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4008 i := len(dAtA) 4009 _ = i 4010 var l int 4011 _ = l 4012 if m.AttrName != 0 { 4013 i = encodeVarintAmp(dAtA, i, uint64(m.AttrName)) 4014 i-- 4015 dAtA[i] = 0x30 4016 } 4017 if m.SeriesIndexType != 0 { 4018 i = encodeVarintAmp(dAtA, i, uint64(m.SeriesIndexType)) 4019 i-- 4020 dAtA[i] = 0x28 4021 } 4022 if m.SeriesSpec != 0 { 4023 i = encodeVarintAmp(dAtA, i, uint64(m.SeriesSpec)) 4024 i-- 4025 dAtA[i] = 0x20 4026 } 4027 if m.ElemType != 0 { 4028 i = encodeVarintAmp(dAtA, i, uint64(m.ElemType)) 4029 i-- 4030 dAtA[i] = 0x18 4031 } 4032 if m.DefID != 0 { 4033 i = encodeVarintAmp(dAtA, i, uint64(m.DefID)) 4034 i-- 4035 dAtA[i] = 0x8 4036 } 4037 return len(dAtA) - i, nil 4038 } 4039 4040 func (m *ItemSelector) Marshal() (dAtA []byte, err error) { 4041 size := m.Size() 4042 dAtA = make([]byte, size) 4043 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4044 if err != nil { 4045 return nil, err 4046 } 4047 return dAtA[:n], nil 4048 } 4049 4050 func (m *ItemSelector) MarshalTo(dAtA []byte) (int, error) { 4051 size := m.Size() 4052 return m.MarshalToSizedBuffer(dAtA[:size]) 4053 } 4054 4055 func (m *ItemSelector) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4056 i := len(dAtA) 4057 _ = i 4058 var l int 4059 _ = l 4060 if len(m.Exclude) > 0 { 4061 dAtA2 := make([]byte, len(m.Exclude)*10) 4062 var j1 int 4063 for _, num := range m.Exclude { 4064 for num >= 1<<7 { 4065 dAtA2[j1] = uint8(uint64(num)&0x7f | 0x80) 4066 num >>= 7 4067 j1++ 4068 } 4069 dAtA2[j1] = uint8(num) 4070 j1++ 4071 } 4072 i -= j1 4073 copy(dAtA[i:], dAtA2[:j1]) 4074 i = encodeVarintAmp(dAtA, i, uint64(j1)) 4075 i-- 4076 dAtA[i] = 0x2a 4077 } 4078 if len(m.Include) > 0 { 4079 dAtA4 := make([]byte, len(m.Include)*10) 4080 var j3 int 4081 for _, num := range m.Include { 4082 for num >= 1<<7 { 4083 dAtA4[j3] = uint8(uint64(num)&0x7f | 0x80) 4084 num >>= 7 4085 j3++ 4086 } 4087 dAtA4[j3] = uint8(num) 4088 j3++ 4089 } 4090 i -= j3 4091 copy(dAtA[i:], dAtA4[:j3]) 4092 i = encodeVarintAmp(dAtA, i, uint64(j3)) 4093 i-- 4094 dAtA[i] = 0x22 4095 } 4096 if m.DefID != 0 { 4097 i = encodeVarintAmp(dAtA, i, uint64(m.DefID)) 4098 i-- 4099 dAtA[i] = 0x8 4100 } 4101 return len(dAtA) - i, nil 4102 } 4103 4104 func (m *HandleURI) Marshal() (dAtA []byte, err error) { 4105 size := m.Size() 4106 dAtA = make([]byte, size) 4107 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4108 if err != nil { 4109 return nil, err 4110 } 4111 return dAtA[:n], nil 4112 } 4113 4114 func (m *HandleURI) MarshalTo(dAtA []byte) (int, error) { 4115 size := m.Size() 4116 return m.MarshalToSizedBuffer(dAtA[:size]) 4117 } 4118 4119 func (m *HandleURI) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4120 i := len(dAtA) 4121 _ = i 4122 var l int 4123 _ = l 4124 if len(m.URI) > 0 { 4125 i -= len(m.URI) 4126 copy(dAtA[i:], m.URI) 4127 i = encodeVarintAmp(dAtA, i, uint64(len(m.URI))) 4128 i-- 4129 dAtA[i] = 0xa 4130 } 4131 return len(dAtA) - i, nil 4132 } 4133 4134 func (m *PinRequest) Marshal() (dAtA []byte, err error) { 4135 size := m.Size() 4136 dAtA = make([]byte, size) 4137 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4138 if err != nil { 4139 return nil, err 4140 } 4141 return dAtA[:n], nil 4142 } 4143 4144 func (m *PinRequest) MarshalTo(dAtA []byte) (int, error) { 4145 size := m.Size() 4146 return m.MarshalToSizedBuffer(dAtA[:size]) 4147 } 4148 4149 func (m *PinRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4150 i := len(dAtA) 4151 _ = i 4152 var l int 4153 _ = l 4154 if m.Flags != 0 { 4155 i = encodeVarintAmp(dAtA, i, uint64(m.Flags)) 4156 i-- 4157 dAtA[i] = 0x38 4158 } 4159 if m.ChildCellSelector != 0 { 4160 i = encodeVarintAmp(dAtA, i, uint64(m.ChildCellSelector)) 4161 i-- 4162 dAtA[i] = 0x30 4163 } 4164 if m.ParentAttrSelector != 0 { 4165 i = encodeVarintAmp(dAtA, i, uint64(m.ParentAttrSelector)) 4166 i-- 4167 dAtA[i] = 0x28 4168 } 4169 if m.PinCellIDx1 != 0 { 4170 i = encodeVarintAmp(dAtA, i, uint64(m.PinCellIDx1)) 4171 i-- 4172 dAtA[i] = 0x20 4173 } 4174 if m.PinCellIDx0 != 0 { 4175 i = encodeVarintAmp(dAtA, i, uint64(m.PinCellIDx0)) 4176 i-- 4177 dAtA[i] = 0x18 4178 } 4179 if len(m.PinURL) > 0 { 4180 i -= len(m.PinURL) 4181 copy(dAtA[i:], m.PinURL) 4182 i = encodeVarintAmp(dAtA, i, uint64(len(m.PinURL))) 4183 i-- 4184 dAtA[i] = 0x12 4185 } 4186 if m.ParentReqID != 0 { 4187 i = encodeVarintAmp(dAtA, i, uint64(m.ParentReqID)) 4188 i-- 4189 dAtA[i] = 0x8 4190 } 4191 return len(dAtA) - i, nil 4192 } 4193 4194 func (m *Position) Marshal() (dAtA []byte, err error) { 4195 size := m.Size() 4196 dAtA = make([]byte, size) 4197 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4198 if err != nil { 4199 return nil, err 4200 } 4201 return dAtA[:n], nil 4202 } 4203 4204 func (m *Position) MarshalTo(dAtA []byte) (int, error) { 4205 size := m.Size() 4206 return m.MarshalToSizedBuffer(dAtA[:size]) 4207 } 4208 4209 func (m *Position) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4210 i := len(dAtA) 4211 _ = i 4212 var l int 4213 _ = l 4214 if m.ROU != 0 { 4215 i -= 4 4216 encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.ROU)))) 4217 i-- 4218 dAtA[i] = 0x35 4219 } 4220 if m.W != 0 { 4221 i -= 8 4222 encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.W)))) 4223 i-- 4224 dAtA[i] = 0x29 4225 } 4226 if m.V != 0 { 4227 i -= 8 4228 encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.V)))) 4229 i-- 4230 dAtA[i] = 0x21 4231 } 4232 if m.U != 0 { 4233 i -= 8 4234 encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.U)))) 4235 i-- 4236 dAtA[i] = 0x19 4237 } 4238 if m.CordType != 0 { 4239 i = encodeVarintAmp(dAtA, i, uint64(m.CordType)) 4240 i-- 4241 dAtA[i] = 0x8 4242 } 4243 return len(dAtA) - i, nil 4244 } 4245 4246 func (m *AssetTag) Marshal() (dAtA []byte, err error) { 4247 size := m.Size() 4248 dAtA = make([]byte, size) 4249 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4250 if err != nil { 4251 return nil, err 4252 } 4253 return dAtA[:n], nil 4254 } 4255 4256 func (m *AssetTag) MarshalTo(dAtA []byte) (int, error) { 4257 size := m.Size() 4258 return m.MarshalToSizedBuffer(dAtA[:size]) 4259 } 4260 4261 func (m *AssetTag) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4262 i := len(dAtA) 4263 _ = i 4264 var l int 4265 _ = l 4266 if m.MeterScale != 0 { 4267 i -= 4 4268 encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.MeterScale)))) 4269 i-- 4270 dAtA[i] = 0x1 4271 i-- 4272 dAtA[i] = 0xf5 4273 } 4274 if m.PixelHeight != 0 { 4275 i = encodeVarintAmp(dAtA, i, uint64(m.PixelHeight)) 4276 i-- 4277 dAtA[i] = 0x1 4278 i-- 4279 dAtA[i] = 0xe8 4280 } 4281 if m.PixelWidth != 0 { 4282 i = encodeVarintAmp(dAtA, i, uint64(m.PixelWidth)) 4283 i-- 4284 dAtA[i] = 0x1 4285 i-- 4286 dAtA[i] = 0xe0 4287 } 4288 if m.Rx2 != 0 { 4289 i -= 4 4290 encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Rx2)))) 4291 i-- 4292 dAtA[i] = 0x1 4293 i-- 4294 dAtA[i] = 0xb5 4295 } 4296 if m.Rx1 != 0 { 4297 i -= 4 4298 encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Rx1)))) 4299 i-- 4300 dAtA[i] = 0x1 4301 i-- 4302 dAtA[i] = 0xad 4303 } 4304 if m.Rx0 != 0 { 4305 i -= 4 4306 encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Rx0)))) 4307 i-- 4308 dAtA[i] = 0x1 4309 i-- 4310 dAtA[i] = 0xa5 4311 } 4312 if m.UIDx2 != 0 { 4313 i -= 8 4314 encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(m.UIDx2)) 4315 i-- 4316 dAtA[i] = 0x1 4317 i-- 4318 dAtA[i] = 0x91 4319 } 4320 if m.UIDx1 != 0 { 4321 i -= 8 4322 encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(m.UIDx1)) 4323 i-- 4324 dAtA[i] = 0x1 4325 i-- 4326 dAtA[i] = 0x89 4327 } 4328 if m.UIDx0 != 0 { 4329 i -= 8 4330 encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(m.UIDx0)) 4331 i-- 4332 dAtA[i] = 0x1 4333 i-- 4334 dAtA[i] = 0x81 4335 } 4336 if len(m.URI) > 0 { 4337 i -= len(m.URI) 4338 copy(dAtA[i:], m.URI) 4339 i = encodeVarintAmp(dAtA, i, uint64(len(m.URI))) 4340 i-- 4341 dAtA[i] = 0x3a 4342 } 4343 if len(m.ContentType) > 0 { 4344 i -= len(m.ContentType) 4345 copy(dAtA[i:], m.ContentType) 4346 i = encodeVarintAmp(dAtA, i, uint64(len(m.ContentType))) 4347 i-- 4348 dAtA[i] = 0x2a 4349 } 4350 if m.State != 0 { 4351 i = encodeVarintAmp(dAtA, i, uint64(m.State)) 4352 i-- 4353 dAtA[i] = 0x18 4354 } 4355 if len(m.SubTags) > 0 { 4356 for iNdEx := len(m.SubTags) - 1; iNdEx >= 0; iNdEx-- { 4357 { 4358 size, err := m.SubTags[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 4359 if err != nil { 4360 return 0, err 4361 } 4362 i -= size 4363 i = encodeVarintAmp(dAtA, i, uint64(size)) 4364 } 4365 i-- 4366 dAtA[i] = 0x12 4367 } 4368 } 4369 return len(dAtA) - i, nil 4370 } 4371 4372 func (m *SheetInfo) Marshal() (dAtA []byte, err error) { 4373 size := m.Size() 4374 dAtA = make([]byte, size) 4375 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4376 if err != nil { 4377 return nil, err 4378 } 4379 return dAtA[:n], nil 4380 } 4381 4382 func (m *SheetInfo) MarshalTo(dAtA []byte) (int, error) { 4383 size := m.Size() 4384 return m.MarshalToSizedBuffer(dAtA[:size]) 4385 } 4386 4387 func (m *SheetInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4388 i := len(dAtA) 4389 _ = i 4390 var l int 4391 _ = l 4392 if len(m.BoundSeries) > 0 { 4393 for iNdEx := len(m.BoundSeries) - 1; iNdEx >= 0; iNdEx-- { 4394 { 4395 size, err := m.BoundSeries[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 4396 if err != nil { 4397 return 0, err 4398 } 4399 i -= size 4400 i = encodeVarintAmp(dAtA, i, uint64(size)) 4401 } 4402 i-- 4403 dAtA[i] = 0x1a 4404 } 4405 } 4406 if len(m.AppSheetURI) > 0 { 4407 i -= len(m.AppSheetURI) 4408 copy(dAtA[i:], m.AppSheetURI) 4409 i = encodeVarintAmp(dAtA, i, uint64(len(m.AppSheetURI))) 4410 i-- 4411 dAtA[i] = 0xa 4412 } 4413 return len(dAtA) - i, nil 4414 } 4415 4416 func (m *SheetGroup) Marshal() (dAtA []byte, err error) { 4417 size := m.Size() 4418 dAtA = make([]byte, size) 4419 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4420 if err != nil { 4421 return nil, err 4422 } 4423 return dAtA[:n], nil 4424 } 4425 4426 func (m *SheetGroup) MarshalTo(dAtA []byte) (int, error) { 4427 size := m.Size() 4428 return m.MarshalToSizedBuffer(dAtA[:size]) 4429 } 4430 4431 func (m *SheetGroup) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4432 i := len(dAtA) 4433 _ = i 4434 var l int 4435 _ = l 4436 if len(m.SheetCatalog) > 0 { 4437 for iNdEx := len(m.SheetCatalog) - 1; iNdEx >= 0; iNdEx-- { 4438 { 4439 size, err := m.SheetCatalog[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 4440 if err != nil { 4441 return 0, err 4442 } 4443 i -= size 4444 i = encodeVarintAmp(dAtA, i, uint64(size)) 4445 } 4446 i-- 4447 dAtA[i] = 0xa 4448 } 4449 } 4450 return len(dAtA) - i, nil 4451 } 4452 4453 func (m *CryptoKey) Marshal() (dAtA []byte, err error) { 4454 size := m.Size() 4455 dAtA = make([]byte, size) 4456 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4457 if err != nil { 4458 return nil, err 4459 } 4460 return dAtA[:n], nil 4461 } 4462 4463 func (m *CryptoKey) MarshalTo(dAtA []byte) (int, error) { 4464 size := m.Size() 4465 return m.MarshalToSizedBuffer(dAtA[:size]) 4466 } 4467 4468 func (m *CryptoKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4469 i := len(dAtA) 4470 _ = i 4471 var l int 4472 _ = l 4473 if len(m.KeyBytes) > 0 { 4474 i -= len(m.KeyBytes) 4475 copy(dAtA[i:], m.KeyBytes) 4476 i = encodeVarintAmp(dAtA, i, uint64(len(m.KeyBytes))) 4477 i-- 4478 dAtA[i] = 0x22 4479 } 4480 if m.CryptoKitID != 0 { 4481 i = encodeVarintAmp(dAtA, i, uint64(m.CryptoKitID)) 4482 i-- 4483 dAtA[i] = 0x8 4484 } 4485 return len(dAtA) - i, nil 4486 } 4487 4488 func (m *CellHeader) Marshal() (dAtA []byte, err error) { 4489 size := m.Size() 4490 dAtA = make([]byte, size) 4491 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4492 if err != nil { 4493 return nil, err 4494 } 4495 return dAtA[:n], nil 4496 } 4497 4498 func (m *CellHeader) MarshalTo(dAtA []byte) (int, error) { 4499 size := m.Size() 4500 return m.MarshalToSizedBuffer(dAtA[:size]) 4501 } 4502 4503 func (m *CellHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4504 i := len(dAtA) 4505 _ = i 4506 var l int 4507 _ = l 4508 if m.ExternalLink != nil { 4509 { 4510 size, err := m.ExternalLink.MarshalToSizedBuffer(dAtA[:i]) 4511 if err != nil { 4512 return 0, err 4513 } 4514 i -= size 4515 i = encodeVarintAmp(dAtA, i, uint64(size)) 4516 } 4517 i-- 4518 dAtA[i] = 0x1 4519 i-- 4520 dAtA[i] = 0xb2 4521 } 4522 if len(m.CellURL) > 0 { 4523 i -= len(m.CellURL) 4524 copy(dAtA[i:], m.CellURL) 4525 i = encodeVarintAmp(dAtA, i, uint64(len(m.CellURL))) 4526 i-- 4527 dAtA[i] = 0x1 4528 i-- 4529 dAtA[i] = 0xa2 4530 } 4531 if m.Modified != 0 { 4532 i = encodeVarintAmp(dAtA, i, uint64(m.Modified)) 4533 i-- 4534 dAtA[i] = 0x48 4535 } 4536 if m.Created != 0 { 4537 i = encodeVarintAmp(dAtA, i, uint64(m.Created)) 4538 i-- 4539 dAtA[i] = 0x40 4540 } 4541 if len(m.Glyphs) > 0 { 4542 for iNdEx := len(m.Glyphs) - 1; iNdEx >= 0; iNdEx-- { 4543 { 4544 size, err := m.Glyphs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 4545 if err != nil { 4546 return 0, err 4547 } 4548 i -= size 4549 i = encodeVarintAmp(dAtA, i, uint64(size)) 4550 } 4551 i-- 4552 dAtA[i] = 0x32 4553 } 4554 } 4555 if len(m.About) > 0 { 4556 i -= len(m.About) 4557 copy(dAtA[i:], m.About) 4558 i = encodeVarintAmp(dAtA, i, uint64(len(m.About))) 4559 i-- 4560 dAtA[i] = 0x22 4561 } 4562 if len(m.Subtitle) > 0 { 4563 i -= len(m.Subtitle) 4564 copy(dAtA[i:], m.Subtitle) 4565 i = encodeVarintAmp(dAtA, i, uint64(len(m.Subtitle))) 4566 i-- 4567 dAtA[i] = 0x1a 4568 } 4569 if len(m.Title) > 0 { 4570 i -= len(m.Title) 4571 copy(dAtA[i:], m.Title) 4572 i = encodeVarintAmp(dAtA, i, uint64(len(m.Title))) 4573 i-- 4574 dAtA[i] = 0x12 4575 } 4576 return len(dAtA) - i, nil 4577 } 4578 4579 func (m *AuthToken) Marshal() (dAtA []byte, err error) { 4580 size := m.Size() 4581 dAtA = make([]byte, size) 4582 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4583 if err != nil { 4584 return nil, err 4585 } 4586 return dAtA[:n], nil 4587 } 4588 4589 func (m *AuthToken) MarshalTo(dAtA []byte) (int, error) { 4590 size := m.Size() 4591 return m.MarshalToSizedBuffer(dAtA[:size]) 4592 } 4593 4594 func (m *AuthToken) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4595 i := len(dAtA) 4596 _ = i 4597 var l int 4598 _ = l 4599 if m.Expiry != 0 { 4600 i = encodeVarintAmp(dAtA, i, uint64(m.Expiry)) 4601 i-- 4602 dAtA[i] = 0x20 4603 } 4604 if len(m.RefreshToken) > 0 { 4605 i -= len(m.RefreshToken) 4606 copy(dAtA[i:], m.RefreshToken) 4607 i = encodeVarintAmp(dAtA, i, uint64(len(m.RefreshToken))) 4608 i-- 4609 dAtA[i] = 0x1a 4610 } 4611 if len(m.TokenType) > 0 { 4612 i -= len(m.TokenType) 4613 copy(dAtA[i:], m.TokenType) 4614 i = encodeVarintAmp(dAtA, i, uint64(len(m.TokenType))) 4615 i-- 4616 dAtA[i] = 0x12 4617 } 4618 if len(m.AccessToken) > 0 { 4619 i -= len(m.AccessToken) 4620 copy(dAtA[i:], m.AccessToken) 4621 i = encodeVarintAmp(dAtA, i, uint64(len(m.AccessToken))) 4622 i-- 4623 dAtA[i] = 0xa 4624 } 4625 return len(dAtA) - i, nil 4626 } 4627 4628 func (m *TRS) Marshal() (dAtA []byte, err error) { 4629 size := m.Size() 4630 dAtA = make([]byte, size) 4631 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4632 if err != nil { 4633 return nil, err 4634 } 4635 return dAtA[:n], nil 4636 } 4637 4638 func (m *TRS) MarshalTo(dAtA []byte) (int, error) { 4639 size := m.Size() 4640 return m.MarshalToSizedBuffer(dAtA[:size]) 4641 } 4642 4643 func (m *TRS) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4644 i := len(dAtA) 4645 _ = i 4646 var l int 4647 _ = l 4648 if m.Rotate3 != 0 { 4649 i -= 4 4650 encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Rotate3)))) 4651 i-- 4652 dAtA[i] = 0x3 4653 i-- 4654 dAtA[i] = 0xfd 4655 } 4656 if m.Rotate2 != 0 { 4657 i -= 4 4658 encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Rotate2)))) 4659 i-- 4660 dAtA[i] = 0x3 4661 i-- 4662 dAtA[i] = 0xf5 4663 } 4664 if m.Rotate1 != 0 { 4665 i -= 4 4666 encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Rotate1)))) 4667 i-- 4668 dAtA[i] = 0x3 4669 i-- 4670 dAtA[i] = 0xed 4671 } 4672 if m.Scale3 != 0 { 4673 i -= 4 4674 encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Scale3)))) 4675 i-- 4676 dAtA[i] = 0x3 4677 i-- 4678 dAtA[i] = 0xad 4679 } 4680 if m.Scale2 != 0 { 4681 i -= 4 4682 encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Scale2)))) 4683 i-- 4684 dAtA[i] = 0x3 4685 i-- 4686 dAtA[i] = 0xa5 4687 } 4688 if m.Scale1 != 0 { 4689 i -= 4 4690 encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Scale1)))) 4691 i-- 4692 dAtA[i] = 0x3 4693 i-- 4694 dAtA[i] = 0x9d 4695 } 4696 if m.ScaleMode != 0 { 4697 i = encodeVarintAmp(dAtA, i, uint64(m.ScaleMode)) 4698 i-- 4699 dAtA[i] = 0x3 4700 i-- 4701 dAtA[i] = 0x90 4702 } 4703 if m.X3 != 0 { 4704 i -= 8 4705 encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.X3)))) 4706 i-- 4707 dAtA[i] = 0x2 4708 i-- 4709 dAtA[i] = 0xd9 4710 } 4711 if m.X2 != 0 { 4712 i -= 8 4713 encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.X2)))) 4714 i-- 4715 dAtA[i] = 0x2 4716 i-- 4717 dAtA[i] = 0xd1 4718 } 4719 if m.X1 != 0 { 4720 i -= 8 4721 encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.X1)))) 4722 i-- 4723 dAtA[i] = 0x2 4724 i-- 4725 dAtA[i] = 0xc9 4726 } 4727 return len(dAtA) - i, nil 4728 } 4729 4730 func (m *FeedParams) Marshal() (dAtA []byte, err error) { 4731 size := m.Size() 4732 dAtA = make([]byte, size) 4733 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4734 if err != nil { 4735 return nil, err 4736 } 4737 return dAtA[:n], nil 4738 } 4739 4740 func (m *FeedParams) MarshalTo(dAtA []byte) (int, error) { 4741 size := m.Size() 4742 return m.MarshalToSizedBuffer(dAtA[:size]) 4743 } 4744 4745 func (m *FeedParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4746 i := len(dAtA) 4747 _ = i 4748 var l int 4749 _ = l 4750 if m.UpdateIntervalMax != 0 { 4751 i -= 4 4752 encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.UpdateIntervalMax)))) 4753 i-- 4754 dAtA[i] = 0x1d 4755 } 4756 if m.UpdateIntervalMin != 0 { 4757 i -= 4 4758 encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.UpdateIntervalMin)))) 4759 i-- 4760 dAtA[i] = 0x15 4761 } 4762 return len(dAtA) - i, nil 4763 } 4764 4765 func (m *DataSegment) Marshal() (dAtA []byte, err error) { 4766 size := m.Size() 4767 dAtA = make([]byte, size) 4768 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4769 if err != nil { 4770 return nil, err 4771 } 4772 return dAtA[:n], nil 4773 } 4774 4775 func (m *DataSegment) MarshalTo(dAtA []byte) (int, error) { 4776 size := m.Size() 4777 return m.MarshalToSizedBuffer(dAtA[:size]) 4778 } 4779 4780 func (m *DataSegment) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4781 i := len(dAtA) 4782 _ = i 4783 var l int 4784 _ = l 4785 if m.BlobID != 0 { 4786 i = encodeVarintAmp(dAtA, i, uint64(m.BlobID)) 4787 i-- 4788 dAtA[i] = 0x50 4789 } 4790 if len(m.StreamURI) > 0 { 4791 i -= len(m.StreamURI) 4792 copy(dAtA[i:], m.StreamURI) 4793 i = encodeVarintAmp(dAtA, i, uint64(len(m.StreamURI))) 4794 i-- 4795 dAtA[i] = 0x4a 4796 } 4797 if len(m.InlineData) > 0 { 4798 i -= len(m.InlineData) 4799 copy(dAtA[i:], m.InlineData) 4800 i = encodeVarintAmp(dAtA, i, uint64(len(m.InlineData))) 4801 i-- 4802 dAtA[i] = 0x3a 4803 } 4804 if m.ByteSz != 0 { 4805 i = encodeVarintAmp(dAtA, i, uint64(m.ByteSz)) 4806 i-- 4807 dAtA[i] = 0x30 4808 } 4809 if m.ByteOfs != 0 { 4810 i = encodeVarintAmp(dAtA, i, uint64(m.ByteOfs)) 4811 i-- 4812 dAtA[i] = 0x28 4813 } 4814 return len(dAtA) - i, nil 4815 } 4816 4817 func (m *Err) Marshal() (dAtA []byte, err error) { 4818 size := m.Size() 4819 dAtA = make([]byte, size) 4820 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4821 if err != nil { 4822 return nil, err 4823 } 4824 return dAtA[:n], nil 4825 } 4826 4827 func (m *Err) MarshalTo(dAtA []byte) (int, error) { 4828 size := m.Size() 4829 return m.MarshalToSizedBuffer(dAtA[:size]) 4830 } 4831 4832 func (m *Err) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4833 i := len(dAtA) 4834 _ = i 4835 var l int 4836 _ = l 4837 if len(m.Msg) > 0 { 4838 i -= len(m.Msg) 4839 copy(dAtA[i:], m.Msg) 4840 i = encodeVarintAmp(dAtA, i, uint64(len(m.Msg))) 4841 i-- 4842 dAtA[i] = 0x22 4843 } 4844 if m.Level != 0 { 4845 i = encodeVarintAmp(dAtA, i, uint64(m.Level)) 4846 i-- 4847 dAtA[i] = 0x10 4848 } 4849 if m.Code != 0 { 4850 i = encodeVarintAmp(dAtA, i, uint64(m.Code)) 4851 i-- 4852 dAtA[i] = 0x8 4853 } 4854 return len(dAtA) - i, nil 4855 } 4856 4857 func encodeVarintAmp(dAtA []byte, offset int, v uint64) int { 4858 offset -= sovAmp(v) 4859 base := offset 4860 for v >= 1<<7 { 4861 dAtA[offset] = uint8(v&0x7f | 0x80) 4862 v >>= 7 4863 offset++ 4864 } 4865 dAtA[offset] = uint8(v) 4866 return base 4867 } 4868 func (m *Msg) Size() (n int) { 4869 if m == nil { 4870 return 0 4871 } 4872 var l int 4873 _ = l 4874 if m.ReqID != 0 { 4875 n += 1 + sovAmp(uint64(m.ReqID)) 4876 } 4877 if m.Status != 0 { 4878 n += 1 + sovAmp(uint64(m.Status)) 4879 } 4880 if len(m.CellTxs) > 0 { 4881 for _, e := range m.CellTxs { 4882 l = e.Size() 4883 n += 1 + l + sovAmp(uint64(l)) 4884 } 4885 } 4886 return n 4887 } 4888 4889 func (m *CellTxPb) Size() (n int) { 4890 if m == nil { 4891 return 0 4892 } 4893 var l int 4894 _ = l 4895 if m.Op != 0 { 4896 n += 1 + sovAmp(uint64(m.Op)) 4897 } 4898 if m.CellID_0 != 0 { 4899 n += 9 4900 } 4901 if m.CellID_1 != 0 { 4902 n += 9 4903 } 4904 if len(m.Elems) > 0 { 4905 for _, e := range m.Elems { 4906 l = e.Size() 4907 n += 1 + l + sovAmp(uint64(l)) 4908 } 4909 } 4910 return n 4911 } 4912 4913 func (m *AttrElemPb) Size() (n int) { 4914 if m == nil { 4915 return 0 4916 } 4917 var l int 4918 _ = l 4919 if m.AttrID != 0 { 4920 n += 1 + sovAmp(uint64(m.AttrID)) 4921 } 4922 l = len(m.ValBuf) 4923 if l > 0 { 4924 n += 1 + l + sovAmp(uint64(l)) 4925 } 4926 if m.SI != 0 { 4927 n += 1 + sovAmp(uint64(m.SI)) 4928 } 4929 return n 4930 } 4931 4932 func (m *Login) Size() (n int) { 4933 if m == nil { 4934 return 0 4935 } 4936 var l int 4937 _ = l 4938 l = len(m.UserUID) 4939 if l > 0 { 4940 n += 1 + l + sovAmp(uint64(l)) 4941 } 4942 l = len(m.HostAddr) 4943 if l > 0 { 4944 n += 1 + l + sovAmp(uint64(l)) 4945 } 4946 l = len(m.DeviceLabel) 4947 if l > 0 { 4948 n += 1 + l + sovAmp(uint64(l)) 4949 } 4950 l = len(m.DeviceUID) 4951 if l > 0 { 4952 n += 1 + l + sovAmp(uint64(l)) 4953 } 4954 return n 4955 } 4956 4957 func (m *LoginChallenge) Size() (n int) { 4958 if m == nil { 4959 return 0 4960 } 4961 var l int 4962 _ = l 4963 l = len(m.Hash) 4964 if l > 0 { 4965 n += 1 + l + sovAmp(uint64(l)) 4966 } 4967 return n 4968 } 4969 4970 func (m *LoginResponse) Size() (n int) { 4971 if m == nil { 4972 return 0 4973 } 4974 var l int 4975 _ = l 4976 l = len(m.HashResp) 4977 if l > 0 { 4978 n += 1 + l + sovAmp(uint64(l)) 4979 } 4980 return n 4981 } 4982 4983 func (m *Symbol) Size() (n int) { 4984 if m == nil { 4985 return 0 4986 } 4987 var l int 4988 _ = l 4989 if m.ID != 0 { 4990 n += 1 + sovAmp(uint64(m.ID)) 4991 } 4992 l = len(m.Name) 4993 if l > 0 { 4994 n += 1 + l + sovAmp(uint64(l)) 4995 } 4996 return n 4997 } 4998 4999 func (m *RegisterDefs) Size() (n int) { 5000 if m == nil { 5001 return 0 5002 } 5003 var l int 5004 _ = l 5005 if len(m.Symbols) > 0 { 5006 for _, e := range m.Symbols { 5007 l = e.Size() 5008 n += 1 + l + sovAmp(uint64(l)) 5009 } 5010 } 5011 if len(m.Attrs) > 0 { 5012 for _, e := range m.Attrs { 5013 l = e.Size() 5014 n += 1 + l + sovAmp(uint64(l)) 5015 } 5016 } 5017 if len(m.Selectors) > 0 { 5018 for _, e := range m.Selectors { 5019 l = e.Size() 5020 n += 1 + l + sovAmp(uint64(l)) 5021 } 5022 } 5023 return n 5024 } 5025 5026 func (m *AttrSpec) Size() (n int) { 5027 if m == nil { 5028 return 0 5029 } 5030 var l int 5031 _ = l 5032 if m.DefID != 0 { 5033 n += 1 + sovAmp(uint64(m.DefID)) 5034 } 5035 if m.ElemType != 0 { 5036 n += 1 + sovAmp(uint64(m.ElemType)) 5037 } 5038 if m.SeriesSpec != 0 { 5039 n += 1 + sovAmp(uint64(m.SeriesSpec)) 5040 } 5041 if m.SeriesIndexType != 0 { 5042 n += 1 + sovAmp(uint64(m.SeriesIndexType)) 5043 } 5044 if m.AttrName != 0 { 5045 n += 1 + sovAmp(uint64(m.AttrName)) 5046 } 5047 return n 5048 } 5049 5050 func (m *ItemSelector) Size() (n int) { 5051 if m == nil { 5052 return 0 5053 } 5054 var l int 5055 _ = l 5056 if m.DefID != 0 { 5057 n += 1 + sovAmp(uint64(m.DefID)) 5058 } 5059 if len(m.Include) > 0 { 5060 l = 0 5061 for _, e := range m.Include { 5062 l += sovAmp(uint64(e)) 5063 } 5064 n += 1 + sovAmp(uint64(l)) + l 5065 } 5066 if len(m.Exclude) > 0 { 5067 l = 0 5068 for _, e := range m.Exclude { 5069 l += sovAmp(uint64(e)) 5070 } 5071 n += 1 + sovAmp(uint64(l)) + l 5072 } 5073 return n 5074 } 5075 5076 func (m *HandleURI) Size() (n int) { 5077 if m == nil { 5078 return 0 5079 } 5080 var l int 5081 _ = l 5082 l = len(m.URI) 5083 if l > 0 { 5084 n += 1 + l + sovAmp(uint64(l)) 5085 } 5086 return n 5087 } 5088 5089 func (m *PinRequest) Size() (n int) { 5090 if m == nil { 5091 return 0 5092 } 5093 var l int 5094 _ = l 5095 if m.ParentReqID != 0 { 5096 n += 1 + sovAmp(uint64(m.ParentReqID)) 5097 } 5098 l = len(m.PinURL) 5099 if l > 0 { 5100 n += 1 + l + sovAmp(uint64(l)) 5101 } 5102 if m.PinCellIDx0 != 0 { 5103 n += 1 + sovAmp(uint64(m.PinCellIDx0)) 5104 } 5105 if m.PinCellIDx1 != 0 { 5106 n += 1 + sovAmp(uint64(m.PinCellIDx1)) 5107 } 5108 if m.ParentAttrSelector != 0 { 5109 n += 1 + sovAmp(uint64(m.ParentAttrSelector)) 5110 } 5111 if m.ChildCellSelector != 0 { 5112 n += 1 + sovAmp(uint64(m.ChildCellSelector)) 5113 } 5114 if m.Flags != 0 { 5115 n += 1 + sovAmp(uint64(m.Flags)) 5116 } 5117 return n 5118 } 5119 5120 func (m *Position) Size() (n int) { 5121 if m == nil { 5122 return 0 5123 } 5124 var l int 5125 _ = l 5126 if m.CordType != 0 { 5127 n += 1 + sovAmp(uint64(m.CordType)) 5128 } 5129 if m.U != 0 { 5130 n += 9 5131 } 5132 if m.V != 0 { 5133 n += 9 5134 } 5135 if m.W != 0 { 5136 n += 9 5137 } 5138 if m.ROU != 0 { 5139 n += 5 5140 } 5141 return n 5142 } 5143 5144 func (m *AssetTag) Size() (n int) { 5145 if m == nil { 5146 return 0 5147 } 5148 var l int 5149 _ = l 5150 if len(m.SubTags) > 0 { 5151 for _, e := range m.SubTags { 5152 l = e.Size() 5153 n += 1 + l + sovAmp(uint64(l)) 5154 } 5155 } 5156 if m.State != 0 { 5157 n += 1 + sovAmp(uint64(m.State)) 5158 } 5159 l = len(m.ContentType) 5160 if l > 0 { 5161 n += 1 + l + sovAmp(uint64(l)) 5162 } 5163 l = len(m.URI) 5164 if l > 0 { 5165 n += 1 + l + sovAmp(uint64(l)) 5166 } 5167 if m.UIDx0 != 0 { 5168 n += 10 5169 } 5170 if m.UIDx1 != 0 { 5171 n += 10 5172 } 5173 if m.UIDx2 != 0 { 5174 n += 10 5175 } 5176 if m.Rx0 != 0 { 5177 n += 6 5178 } 5179 if m.Rx1 != 0 { 5180 n += 6 5181 } 5182 if m.Rx2 != 0 { 5183 n += 6 5184 } 5185 if m.PixelWidth != 0 { 5186 n += 2 + sovAmp(uint64(m.PixelWidth)) 5187 } 5188 if m.PixelHeight != 0 { 5189 n += 2 + sovAmp(uint64(m.PixelHeight)) 5190 } 5191 if m.MeterScale != 0 { 5192 n += 6 5193 } 5194 return n 5195 } 5196 5197 func (m *SheetInfo) Size() (n int) { 5198 if m == nil { 5199 return 0 5200 } 5201 var l int 5202 _ = l 5203 l = len(m.AppSheetURI) 5204 if l > 0 { 5205 n += 1 + l + sovAmp(uint64(l)) 5206 } 5207 if len(m.BoundSeries) > 0 { 5208 for _, e := range m.BoundSeries { 5209 l = e.Size() 5210 n += 1 + l + sovAmp(uint64(l)) 5211 } 5212 } 5213 return n 5214 } 5215 5216 func (m *SheetGroup) Size() (n int) { 5217 if m == nil { 5218 return 0 5219 } 5220 var l int 5221 _ = l 5222 if len(m.SheetCatalog) > 0 { 5223 for _, e := range m.SheetCatalog { 5224 l = e.Size() 5225 n += 1 + l + sovAmp(uint64(l)) 5226 } 5227 } 5228 return n 5229 } 5230 5231 func (m *CryptoKey) Size() (n int) { 5232 if m == nil { 5233 return 0 5234 } 5235 var l int 5236 _ = l 5237 if m.CryptoKitID != 0 { 5238 n += 1 + sovAmp(uint64(m.CryptoKitID)) 5239 } 5240 l = len(m.KeyBytes) 5241 if l > 0 { 5242 n += 1 + l + sovAmp(uint64(l)) 5243 } 5244 return n 5245 } 5246 5247 func (m *CellHeader) Size() (n int) { 5248 if m == nil { 5249 return 0 5250 } 5251 var l int 5252 _ = l 5253 l = len(m.Title) 5254 if l > 0 { 5255 n += 1 + l + sovAmp(uint64(l)) 5256 } 5257 l = len(m.Subtitle) 5258 if l > 0 { 5259 n += 1 + l + sovAmp(uint64(l)) 5260 } 5261 l = len(m.About) 5262 if l > 0 { 5263 n += 1 + l + sovAmp(uint64(l)) 5264 } 5265 if len(m.Glyphs) > 0 { 5266 for _, e := range m.Glyphs { 5267 l = e.Size() 5268 n += 1 + l + sovAmp(uint64(l)) 5269 } 5270 } 5271 if m.Created != 0 { 5272 n += 1 + sovAmp(uint64(m.Created)) 5273 } 5274 if m.Modified != 0 { 5275 n += 1 + sovAmp(uint64(m.Modified)) 5276 } 5277 l = len(m.CellURL) 5278 if l > 0 { 5279 n += 2 + l + sovAmp(uint64(l)) 5280 } 5281 if m.ExternalLink != nil { 5282 l = m.ExternalLink.Size() 5283 n += 2 + l + sovAmp(uint64(l)) 5284 } 5285 return n 5286 } 5287 5288 func (m *AuthToken) Size() (n int) { 5289 if m == nil { 5290 return 0 5291 } 5292 var l int 5293 _ = l 5294 l = len(m.AccessToken) 5295 if l > 0 { 5296 n += 1 + l + sovAmp(uint64(l)) 5297 } 5298 l = len(m.TokenType) 5299 if l > 0 { 5300 n += 1 + l + sovAmp(uint64(l)) 5301 } 5302 l = len(m.RefreshToken) 5303 if l > 0 { 5304 n += 1 + l + sovAmp(uint64(l)) 5305 } 5306 if m.Expiry != 0 { 5307 n += 1 + sovAmp(uint64(m.Expiry)) 5308 } 5309 return n 5310 } 5311 5312 func (m *TRS) Size() (n int) { 5313 if m == nil { 5314 return 0 5315 } 5316 var l int 5317 _ = l 5318 if m.X1 != 0 { 5319 n += 10 5320 } 5321 if m.X2 != 0 { 5322 n += 10 5323 } 5324 if m.X3 != 0 { 5325 n += 10 5326 } 5327 if m.ScaleMode != 0 { 5328 n += 2 + sovAmp(uint64(m.ScaleMode)) 5329 } 5330 if m.Scale1 != 0 { 5331 n += 6 5332 } 5333 if m.Scale2 != 0 { 5334 n += 6 5335 } 5336 if m.Scale3 != 0 { 5337 n += 6 5338 } 5339 if m.Rotate1 != 0 { 5340 n += 6 5341 } 5342 if m.Rotate2 != 0 { 5343 n += 6 5344 } 5345 if m.Rotate3 != 0 { 5346 n += 6 5347 } 5348 return n 5349 } 5350 5351 func (m *FeedParams) Size() (n int) { 5352 if m == nil { 5353 return 0 5354 } 5355 var l int 5356 _ = l 5357 if m.UpdateIntervalMin != 0 { 5358 n += 5 5359 } 5360 if m.UpdateIntervalMax != 0 { 5361 n += 5 5362 } 5363 return n 5364 } 5365 5366 func (m *DataSegment) Size() (n int) { 5367 if m == nil { 5368 return 0 5369 } 5370 var l int 5371 _ = l 5372 if m.ByteOfs != 0 { 5373 n += 1 + sovAmp(uint64(m.ByteOfs)) 5374 } 5375 if m.ByteSz != 0 { 5376 n += 1 + sovAmp(uint64(m.ByteSz)) 5377 } 5378 l = len(m.InlineData) 5379 if l > 0 { 5380 n += 1 + l + sovAmp(uint64(l)) 5381 } 5382 l = len(m.StreamURI) 5383 if l > 0 { 5384 n += 1 + l + sovAmp(uint64(l)) 5385 } 5386 if m.BlobID != 0 { 5387 n += 1 + sovAmp(uint64(m.BlobID)) 5388 } 5389 return n 5390 } 5391 5392 func (m *Err) Size() (n int) { 5393 if m == nil { 5394 return 0 5395 } 5396 var l int 5397 _ = l 5398 if m.Code != 0 { 5399 n += 1 + sovAmp(uint64(m.Code)) 5400 } 5401 if m.Level != 0 { 5402 n += 1 + sovAmp(uint64(m.Level)) 5403 } 5404 l = len(m.Msg) 5405 if l > 0 { 5406 n += 1 + l + sovAmp(uint64(l)) 5407 } 5408 return n 5409 } 5410 5411 func sovAmp(x uint64) (n int) { 5412 return (math_bits.Len64(x|1) + 6) / 7 5413 } 5414 func sozAmp(x uint64) (n int) { 5415 return sovAmp(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 5416 } 5417 func (this *Msg) String() string { 5418 if this == nil { 5419 return "nil" 5420 } 5421 repeatedStringForCellTxs := "[]*CellTxPb{" 5422 for _, f := range this.CellTxs { 5423 repeatedStringForCellTxs += strings.Replace(f.String(), "CellTxPb", "CellTxPb", 1) + "," 5424 } 5425 repeatedStringForCellTxs += "}" 5426 s := strings.Join([]string{`&Msg{`, 5427 `ReqID:` + fmt.Sprintf("%v", this.ReqID) + `,`, 5428 `Status:` + fmt.Sprintf("%v", this.Status) + `,`, 5429 `CellTxs:` + repeatedStringForCellTxs + `,`, 5430 `}`, 5431 }, "") 5432 return s 5433 } 5434 func (this *CellTxPb) String() string { 5435 if this == nil { 5436 return "nil" 5437 } 5438 repeatedStringForElems := "[]*AttrElemPb{" 5439 for _, f := range this.Elems { 5440 repeatedStringForElems += strings.Replace(f.String(), "AttrElemPb", "AttrElemPb", 1) + "," 5441 } 5442 repeatedStringForElems += "}" 5443 s := strings.Join([]string{`&CellTxPb{`, 5444 `Op:` + fmt.Sprintf("%v", this.Op) + `,`, 5445 `CellID_0:` + fmt.Sprintf("%v", this.CellID_0) + `,`, 5446 `CellID_1:` + fmt.Sprintf("%v", this.CellID_1) + `,`, 5447 `Elems:` + repeatedStringForElems + `,`, 5448 `}`, 5449 }, "") 5450 return s 5451 } 5452 func (this *AttrElemPb) String() string { 5453 if this == nil { 5454 return "nil" 5455 } 5456 s := strings.Join([]string{`&AttrElemPb{`, 5457 `AttrID:` + fmt.Sprintf("%v", this.AttrID) + `,`, 5458 `ValBuf:` + fmt.Sprintf("%v", this.ValBuf) + `,`, 5459 `SI:` + fmt.Sprintf("%v", this.SI) + `,`, 5460 `}`, 5461 }, "") 5462 return s 5463 } 5464 func (this *Login) String() string { 5465 if this == nil { 5466 return "nil" 5467 } 5468 s := strings.Join([]string{`&Login{`, 5469 `UserUID:` + fmt.Sprintf("%v", this.UserUID) + `,`, 5470 `HostAddr:` + fmt.Sprintf("%v", this.HostAddr) + `,`, 5471 `DeviceLabel:` + fmt.Sprintf("%v", this.DeviceLabel) + `,`, 5472 `DeviceUID:` + fmt.Sprintf("%v", this.DeviceUID) + `,`, 5473 `}`, 5474 }, "") 5475 return s 5476 } 5477 func (this *LoginChallenge) String() string { 5478 if this == nil { 5479 return "nil" 5480 } 5481 s := strings.Join([]string{`&LoginChallenge{`, 5482 `Hash:` + fmt.Sprintf("%v", this.Hash) + `,`, 5483 `}`, 5484 }, "") 5485 return s 5486 } 5487 func (this *LoginResponse) String() string { 5488 if this == nil { 5489 return "nil" 5490 } 5491 s := strings.Join([]string{`&LoginResponse{`, 5492 `HashResp:` + fmt.Sprintf("%v", this.HashResp) + `,`, 5493 `}`, 5494 }, "") 5495 return s 5496 } 5497 func (this *Symbol) String() string { 5498 if this == nil { 5499 return "nil" 5500 } 5501 s := strings.Join([]string{`&Symbol{`, 5502 `ID:` + fmt.Sprintf("%v", this.ID) + `,`, 5503 `Name:` + fmt.Sprintf("%v", this.Name) + `,`, 5504 `}`, 5505 }, "") 5506 return s 5507 } 5508 func (this *RegisterDefs) String() string { 5509 if this == nil { 5510 return "nil" 5511 } 5512 repeatedStringForSymbols := "[]*Symbol{" 5513 for _, f := range this.Symbols { 5514 repeatedStringForSymbols += strings.Replace(f.String(), "Symbol", "Symbol", 1) + "," 5515 } 5516 repeatedStringForSymbols += "}" 5517 repeatedStringForAttrs := "[]*AttrSpec{" 5518 for _, f := range this.Attrs { 5519 repeatedStringForAttrs += strings.Replace(f.String(), "AttrSpec", "AttrSpec", 1) + "," 5520 } 5521 repeatedStringForAttrs += "}" 5522 repeatedStringForSelectors := "[]*ItemSelector{" 5523 for _, f := range this.Selectors { 5524 repeatedStringForSelectors += strings.Replace(f.String(), "ItemSelector", "ItemSelector", 1) + "," 5525 } 5526 repeatedStringForSelectors += "}" 5527 s := strings.Join([]string{`&RegisterDefs{`, 5528 `Symbols:` + repeatedStringForSymbols + `,`, 5529 `Attrs:` + repeatedStringForAttrs + `,`, 5530 `Selectors:` + repeatedStringForSelectors + `,`, 5531 `}`, 5532 }, "") 5533 return s 5534 } 5535 func (this *AttrSpec) String() string { 5536 if this == nil { 5537 return "nil" 5538 } 5539 s := strings.Join([]string{`&AttrSpec{`, 5540 `DefID:` + fmt.Sprintf("%v", this.DefID) + `,`, 5541 `ElemType:` + fmt.Sprintf("%v", this.ElemType) + `,`, 5542 `SeriesSpec:` + fmt.Sprintf("%v", this.SeriesSpec) + `,`, 5543 `SeriesIndexType:` + fmt.Sprintf("%v", this.SeriesIndexType) + `,`, 5544 `AttrName:` + fmt.Sprintf("%v", this.AttrName) + `,`, 5545 `}`, 5546 }, "") 5547 return s 5548 } 5549 func (this *ItemSelector) String() string { 5550 if this == nil { 5551 return "nil" 5552 } 5553 s := strings.Join([]string{`&ItemSelector{`, 5554 `DefID:` + fmt.Sprintf("%v", this.DefID) + `,`, 5555 `Include:` + fmt.Sprintf("%v", this.Include) + `,`, 5556 `Exclude:` + fmt.Sprintf("%v", this.Exclude) + `,`, 5557 `}`, 5558 }, "") 5559 return s 5560 } 5561 func (this *HandleURI) String() string { 5562 if this == nil { 5563 return "nil" 5564 } 5565 s := strings.Join([]string{`&HandleURI{`, 5566 `URI:` + fmt.Sprintf("%v", this.URI) + `,`, 5567 `}`, 5568 }, "") 5569 return s 5570 } 5571 func (this *PinRequest) String() string { 5572 if this == nil { 5573 return "nil" 5574 } 5575 s := strings.Join([]string{`&PinRequest{`, 5576 `ParentReqID:` + fmt.Sprintf("%v", this.ParentReqID) + `,`, 5577 `PinURL:` + fmt.Sprintf("%v", this.PinURL) + `,`, 5578 `PinCellIDx0:` + fmt.Sprintf("%v", this.PinCellIDx0) + `,`, 5579 `PinCellIDx1:` + fmt.Sprintf("%v", this.PinCellIDx1) + `,`, 5580 `ParentAttrSelector:` + fmt.Sprintf("%v", this.ParentAttrSelector) + `,`, 5581 `ChildCellSelector:` + fmt.Sprintf("%v", this.ChildCellSelector) + `,`, 5582 `Flags:` + fmt.Sprintf("%v", this.Flags) + `,`, 5583 `}`, 5584 }, "") 5585 return s 5586 } 5587 func (this *Position) String() string { 5588 if this == nil { 5589 return "nil" 5590 } 5591 s := strings.Join([]string{`&Position{`, 5592 `CordType:` + fmt.Sprintf("%v", this.CordType) + `,`, 5593 `U:` + fmt.Sprintf("%v", this.U) + `,`, 5594 `V:` + fmt.Sprintf("%v", this.V) + `,`, 5595 `W:` + fmt.Sprintf("%v", this.W) + `,`, 5596 `ROU:` + fmt.Sprintf("%v", this.ROU) + `,`, 5597 `}`, 5598 }, "") 5599 return s 5600 } 5601 func (this *AssetTag) String() string { 5602 if this == nil { 5603 return "nil" 5604 } 5605 repeatedStringForSubTags := "[]*AssetTag{" 5606 for _, f := range this.SubTags { 5607 repeatedStringForSubTags += strings.Replace(f.String(), "AssetTag", "AssetTag", 1) + "," 5608 } 5609 repeatedStringForSubTags += "}" 5610 s := strings.Join([]string{`&AssetTag{`, 5611 `SubTags:` + repeatedStringForSubTags + `,`, 5612 `State:` + fmt.Sprintf("%v", this.State) + `,`, 5613 `ContentType:` + fmt.Sprintf("%v", this.ContentType) + `,`, 5614 `URI:` + fmt.Sprintf("%v", this.URI) + `,`, 5615 `UIDx0:` + fmt.Sprintf("%v", this.UIDx0) + `,`, 5616 `UIDx1:` + fmt.Sprintf("%v", this.UIDx1) + `,`, 5617 `UIDx2:` + fmt.Sprintf("%v", this.UIDx2) + `,`, 5618 `Rx0:` + fmt.Sprintf("%v", this.Rx0) + `,`, 5619 `Rx1:` + fmt.Sprintf("%v", this.Rx1) + `,`, 5620 `Rx2:` + fmt.Sprintf("%v", this.Rx2) + `,`, 5621 `PixelWidth:` + fmt.Sprintf("%v", this.PixelWidth) + `,`, 5622 `PixelHeight:` + fmt.Sprintf("%v", this.PixelHeight) + `,`, 5623 `MeterScale:` + fmt.Sprintf("%v", this.MeterScale) + `,`, 5624 `}`, 5625 }, "") 5626 return s 5627 } 5628 func (this *SheetInfo) String() string { 5629 if this == nil { 5630 return "nil" 5631 } 5632 repeatedStringForBoundSeries := "[]*AttrSpec{" 5633 for _, f := range this.BoundSeries { 5634 repeatedStringForBoundSeries += strings.Replace(f.String(), "AttrSpec", "AttrSpec", 1) + "," 5635 } 5636 repeatedStringForBoundSeries += "}" 5637 s := strings.Join([]string{`&SheetInfo{`, 5638 `AppSheetURI:` + fmt.Sprintf("%v", this.AppSheetURI) + `,`, 5639 `BoundSeries:` + repeatedStringForBoundSeries + `,`, 5640 `}`, 5641 }, "") 5642 return s 5643 } 5644 func (this *SheetGroup) String() string { 5645 if this == nil { 5646 return "nil" 5647 } 5648 repeatedStringForSheetCatalog := "[]*SheetInfo{" 5649 for _, f := range this.SheetCatalog { 5650 repeatedStringForSheetCatalog += strings.Replace(f.String(), "SheetInfo", "SheetInfo", 1) + "," 5651 } 5652 repeatedStringForSheetCatalog += "}" 5653 s := strings.Join([]string{`&SheetGroup{`, 5654 `SheetCatalog:` + repeatedStringForSheetCatalog + `,`, 5655 `}`, 5656 }, "") 5657 return s 5658 } 5659 func (this *CryptoKey) String() string { 5660 if this == nil { 5661 return "nil" 5662 } 5663 s := strings.Join([]string{`&CryptoKey{`, 5664 `CryptoKitID:` + fmt.Sprintf("%v", this.CryptoKitID) + `,`, 5665 `KeyBytes:` + fmt.Sprintf("%v", this.KeyBytes) + `,`, 5666 `}`, 5667 }, "") 5668 return s 5669 } 5670 func (this *CellHeader) String() string { 5671 if this == nil { 5672 return "nil" 5673 } 5674 repeatedStringForGlyphs := "[]*AssetTag{" 5675 for _, f := range this.Glyphs { 5676 repeatedStringForGlyphs += strings.Replace(f.String(), "AssetTag", "AssetTag", 1) + "," 5677 } 5678 repeatedStringForGlyphs += "}" 5679 s := strings.Join([]string{`&CellHeader{`, 5680 `Title:` + fmt.Sprintf("%v", this.Title) + `,`, 5681 `Subtitle:` + fmt.Sprintf("%v", this.Subtitle) + `,`, 5682 `About:` + fmt.Sprintf("%v", this.About) + `,`, 5683 `Glyphs:` + repeatedStringForGlyphs + `,`, 5684 `Created:` + fmt.Sprintf("%v", this.Created) + `,`, 5685 `Modified:` + fmt.Sprintf("%v", this.Modified) + `,`, 5686 `CellURL:` + fmt.Sprintf("%v", this.CellURL) + `,`, 5687 `ExternalLink:` + strings.Replace(this.ExternalLink.String(), "AssetTag", "AssetTag", 1) + `,`, 5688 `}`, 5689 }, "") 5690 return s 5691 } 5692 func (this *AuthToken) String() string { 5693 if this == nil { 5694 return "nil" 5695 } 5696 s := strings.Join([]string{`&AuthToken{`, 5697 `AccessToken:` + fmt.Sprintf("%v", this.AccessToken) + `,`, 5698 `TokenType:` + fmt.Sprintf("%v", this.TokenType) + `,`, 5699 `RefreshToken:` + fmt.Sprintf("%v", this.RefreshToken) + `,`, 5700 `Expiry:` + fmt.Sprintf("%v", this.Expiry) + `,`, 5701 `}`, 5702 }, "") 5703 return s 5704 } 5705 func (this *TRS) String() string { 5706 if this == nil { 5707 return "nil" 5708 } 5709 s := strings.Join([]string{`&TRS{`, 5710 `X1:` + fmt.Sprintf("%v", this.X1) + `,`, 5711 `X2:` + fmt.Sprintf("%v", this.X2) + `,`, 5712 `X3:` + fmt.Sprintf("%v", this.X3) + `,`, 5713 `ScaleMode:` + fmt.Sprintf("%v", this.ScaleMode) + `,`, 5714 `Scale1:` + fmt.Sprintf("%v", this.Scale1) + `,`, 5715 `Scale2:` + fmt.Sprintf("%v", this.Scale2) + `,`, 5716 `Scale3:` + fmt.Sprintf("%v", this.Scale3) + `,`, 5717 `Rotate1:` + fmt.Sprintf("%v", this.Rotate1) + `,`, 5718 `Rotate2:` + fmt.Sprintf("%v", this.Rotate2) + `,`, 5719 `Rotate3:` + fmt.Sprintf("%v", this.Rotate3) + `,`, 5720 `}`, 5721 }, "") 5722 return s 5723 } 5724 func (this *FeedParams) String() string { 5725 if this == nil { 5726 return "nil" 5727 } 5728 s := strings.Join([]string{`&FeedParams{`, 5729 `UpdateIntervalMin:` + fmt.Sprintf("%v", this.UpdateIntervalMin) + `,`, 5730 `UpdateIntervalMax:` + fmt.Sprintf("%v", this.UpdateIntervalMax) + `,`, 5731 `}`, 5732 }, "") 5733 return s 5734 } 5735 func (this *DataSegment) String() string { 5736 if this == nil { 5737 return "nil" 5738 } 5739 s := strings.Join([]string{`&DataSegment{`, 5740 `ByteOfs:` + fmt.Sprintf("%v", this.ByteOfs) + `,`, 5741 `ByteSz:` + fmt.Sprintf("%v", this.ByteSz) + `,`, 5742 `InlineData:` + fmt.Sprintf("%v", this.InlineData) + `,`, 5743 `StreamURI:` + fmt.Sprintf("%v", this.StreamURI) + `,`, 5744 `BlobID:` + fmt.Sprintf("%v", this.BlobID) + `,`, 5745 `}`, 5746 }, "") 5747 return s 5748 } 5749 func (this *Err) String() string { 5750 if this == nil { 5751 return "nil" 5752 } 5753 s := strings.Join([]string{`&Err{`, 5754 `Code:` + fmt.Sprintf("%v", this.Code) + `,`, 5755 `Level:` + fmt.Sprintf("%v", this.Level) + `,`, 5756 `Msg:` + fmt.Sprintf("%v", this.Msg) + `,`, 5757 `}`, 5758 }, "") 5759 return s 5760 } 5761 func valueToStringAmp(v interface{}) string { 5762 rv := reflect.ValueOf(v) 5763 if rv.IsNil() { 5764 return "nil" 5765 } 5766 pv := reflect.Indirect(rv).Interface() 5767 return fmt.Sprintf("*%v", pv) 5768 } 5769 func (m *Msg) Unmarshal(dAtA []byte) error { 5770 l := len(dAtA) 5771 iNdEx := 0 5772 for iNdEx < l { 5773 preIndex := iNdEx 5774 var wire uint64 5775 for shift := uint(0); ; shift += 7 { 5776 if shift >= 64 { 5777 return ErrIntOverflowAmp 5778 } 5779 if iNdEx >= l { 5780 return io.ErrUnexpectedEOF 5781 } 5782 b := dAtA[iNdEx] 5783 iNdEx++ 5784 wire |= uint64(b&0x7F) << shift 5785 if b < 0x80 { 5786 break 5787 } 5788 } 5789 fieldNum := int32(wire >> 3) 5790 wireType := int(wire & 0x7) 5791 if wireType == 4 { 5792 return fmt.Errorf("proto: Msg: wiretype end group for non-group") 5793 } 5794 if fieldNum <= 0 { 5795 return fmt.Errorf("proto: Msg: illegal tag %d (wire type %d)", fieldNum, wire) 5796 } 5797 switch fieldNum { 5798 case 1: 5799 if wireType != 0 { 5800 return fmt.Errorf("proto: wrong wireType = %d for field ReqID", wireType) 5801 } 5802 m.ReqID = 0 5803 for shift := uint(0); ; shift += 7 { 5804 if shift >= 64 { 5805 return ErrIntOverflowAmp 5806 } 5807 if iNdEx >= l { 5808 return io.ErrUnexpectedEOF 5809 } 5810 b := dAtA[iNdEx] 5811 iNdEx++ 5812 m.ReqID |= uint64(b&0x7F) << shift 5813 if b < 0x80 { 5814 break 5815 } 5816 } 5817 case 2: 5818 if wireType != 0 { 5819 return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) 5820 } 5821 m.Status = 0 5822 for shift := uint(0); ; shift += 7 { 5823 if shift >= 64 { 5824 return ErrIntOverflowAmp 5825 } 5826 if iNdEx >= l { 5827 return io.ErrUnexpectedEOF 5828 } 5829 b := dAtA[iNdEx] 5830 iNdEx++ 5831 m.Status |= ReqStatus(b&0x7F) << shift 5832 if b < 0x80 { 5833 break 5834 } 5835 } 5836 case 5: 5837 if wireType != 2 { 5838 return fmt.Errorf("proto: wrong wireType = %d for field CellTxs", wireType) 5839 } 5840 var msglen int 5841 for shift := uint(0); ; shift += 7 { 5842 if shift >= 64 { 5843 return ErrIntOverflowAmp 5844 } 5845 if iNdEx >= l { 5846 return io.ErrUnexpectedEOF 5847 } 5848 b := dAtA[iNdEx] 5849 iNdEx++ 5850 msglen |= int(b&0x7F) << shift 5851 if b < 0x80 { 5852 break 5853 } 5854 } 5855 if msglen < 0 { 5856 return ErrInvalidLengthAmp 5857 } 5858 postIndex := iNdEx + msglen 5859 if postIndex < 0 { 5860 return ErrInvalidLengthAmp 5861 } 5862 if postIndex > l { 5863 return io.ErrUnexpectedEOF 5864 } 5865 m.CellTxs = append(m.CellTxs, &CellTxPb{}) 5866 if err := m.CellTxs[len(m.CellTxs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5867 return err 5868 } 5869 iNdEx = postIndex 5870 default: 5871 iNdEx = preIndex 5872 skippy, err := skipAmp(dAtA[iNdEx:]) 5873 if err != nil { 5874 return err 5875 } 5876 if (skippy < 0) || (iNdEx+skippy) < 0 { 5877 return ErrInvalidLengthAmp 5878 } 5879 if (iNdEx + skippy) > l { 5880 return io.ErrUnexpectedEOF 5881 } 5882 iNdEx += skippy 5883 } 5884 } 5885 5886 if iNdEx > l { 5887 return io.ErrUnexpectedEOF 5888 } 5889 return nil 5890 } 5891 func (m *CellTxPb) Unmarshal(dAtA []byte) error { 5892 l := len(dAtA) 5893 iNdEx := 0 5894 for iNdEx < l { 5895 preIndex := iNdEx 5896 var wire uint64 5897 for shift := uint(0); ; shift += 7 { 5898 if shift >= 64 { 5899 return ErrIntOverflowAmp 5900 } 5901 if iNdEx >= l { 5902 return io.ErrUnexpectedEOF 5903 } 5904 b := dAtA[iNdEx] 5905 iNdEx++ 5906 wire |= uint64(b&0x7F) << shift 5907 if b < 0x80 { 5908 break 5909 } 5910 } 5911 fieldNum := int32(wire >> 3) 5912 wireType := int(wire & 0x7) 5913 if wireType == 4 { 5914 return fmt.Errorf("proto: CellTxPb: wiretype end group for non-group") 5915 } 5916 if fieldNum <= 0 { 5917 return fmt.Errorf("proto: CellTxPb: illegal tag %d (wire type %d)", fieldNum, wire) 5918 } 5919 switch fieldNum { 5920 case 1: 5921 if wireType != 0 { 5922 return fmt.Errorf("proto: wrong wireType = %d for field Op", wireType) 5923 } 5924 m.Op = 0 5925 for shift := uint(0); ; shift += 7 { 5926 if shift >= 64 { 5927 return ErrIntOverflowAmp 5928 } 5929 if iNdEx >= l { 5930 return io.ErrUnexpectedEOF 5931 } 5932 b := dAtA[iNdEx] 5933 iNdEx++ 5934 m.Op |= CellTxOp(b&0x7F) << shift 5935 if b < 0x80 { 5936 break 5937 } 5938 } 5939 case 3: 5940 if wireType != 1 { 5941 return fmt.Errorf("proto: wrong wireType = %d for field CellID_0", wireType) 5942 } 5943 m.CellID_0 = 0 5944 if (iNdEx + 8) > l { 5945 return io.ErrUnexpectedEOF 5946 } 5947 m.CellID_0 = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) 5948 iNdEx += 8 5949 case 4: 5950 if wireType != 1 { 5951 return fmt.Errorf("proto: wrong wireType = %d for field CellID_1", wireType) 5952 } 5953 m.CellID_1 = 0 5954 if (iNdEx + 8) > l { 5955 return io.ErrUnexpectedEOF 5956 } 5957 m.CellID_1 = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) 5958 iNdEx += 8 5959 case 8: 5960 if wireType != 2 { 5961 return fmt.Errorf("proto: wrong wireType = %d for field Elems", wireType) 5962 } 5963 var msglen int 5964 for shift := uint(0); ; shift += 7 { 5965 if shift >= 64 { 5966 return ErrIntOverflowAmp 5967 } 5968 if iNdEx >= l { 5969 return io.ErrUnexpectedEOF 5970 } 5971 b := dAtA[iNdEx] 5972 iNdEx++ 5973 msglen |= int(b&0x7F) << shift 5974 if b < 0x80 { 5975 break 5976 } 5977 } 5978 if msglen < 0 { 5979 return ErrInvalidLengthAmp 5980 } 5981 postIndex := iNdEx + msglen 5982 if postIndex < 0 { 5983 return ErrInvalidLengthAmp 5984 } 5985 if postIndex > l { 5986 return io.ErrUnexpectedEOF 5987 } 5988 m.Elems = append(m.Elems, &AttrElemPb{}) 5989 if err := m.Elems[len(m.Elems)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5990 return err 5991 } 5992 iNdEx = postIndex 5993 default: 5994 iNdEx = preIndex 5995 skippy, err := skipAmp(dAtA[iNdEx:]) 5996 if err != nil { 5997 return err 5998 } 5999 if (skippy < 0) || (iNdEx+skippy) < 0 { 6000 return ErrInvalidLengthAmp 6001 } 6002 if (iNdEx + skippy) > l { 6003 return io.ErrUnexpectedEOF 6004 } 6005 iNdEx += skippy 6006 } 6007 } 6008 6009 if iNdEx > l { 6010 return io.ErrUnexpectedEOF 6011 } 6012 return nil 6013 } 6014 func (m *AttrElemPb) Unmarshal(dAtA []byte) error { 6015 l := len(dAtA) 6016 iNdEx := 0 6017 for iNdEx < l { 6018 preIndex := iNdEx 6019 var wire uint64 6020 for shift := uint(0); ; shift += 7 { 6021 if shift >= 64 { 6022 return ErrIntOverflowAmp 6023 } 6024 if iNdEx >= l { 6025 return io.ErrUnexpectedEOF 6026 } 6027 b := dAtA[iNdEx] 6028 iNdEx++ 6029 wire |= uint64(b&0x7F) << shift 6030 if b < 0x80 { 6031 break 6032 } 6033 } 6034 fieldNum := int32(wire >> 3) 6035 wireType := int(wire & 0x7) 6036 if wireType == 4 { 6037 return fmt.Errorf("proto: AttrElemPb: wiretype end group for non-group") 6038 } 6039 if fieldNum <= 0 { 6040 return fmt.Errorf("proto: AttrElemPb: illegal tag %d (wire type %d)", fieldNum, wire) 6041 } 6042 switch fieldNum { 6043 case 1: 6044 if wireType != 0 { 6045 return fmt.Errorf("proto: wrong wireType = %d for field AttrID", wireType) 6046 } 6047 m.AttrID = 0 6048 for shift := uint(0); ; shift += 7 { 6049 if shift >= 64 { 6050 return ErrIntOverflowAmp 6051 } 6052 if iNdEx >= l { 6053 return io.ErrUnexpectedEOF 6054 } 6055 b := dAtA[iNdEx] 6056 iNdEx++ 6057 m.AttrID |= uint64(b&0x7F) << shift 6058 if b < 0x80 { 6059 break 6060 } 6061 } 6062 case 2: 6063 if wireType != 2 { 6064 return fmt.Errorf("proto: wrong wireType = %d for field ValBuf", wireType) 6065 } 6066 var byteLen int 6067 for shift := uint(0); ; shift += 7 { 6068 if shift >= 64 { 6069 return ErrIntOverflowAmp 6070 } 6071 if iNdEx >= l { 6072 return io.ErrUnexpectedEOF 6073 } 6074 b := dAtA[iNdEx] 6075 iNdEx++ 6076 byteLen |= int(b&0x7F) << shift 6077 if b < 0x80 { 6078 break 6079 } 6080 } 6081 if byteLen < 0 { 6082 return ErrInvalidLengthAmp 6083 } 6084 postIndex := iNdEx + byteLen 6085 if postIndex < 0 { 6086 return ErrInvalidLengthAmp 6087 } 6088 if postIndex > l { 6089 return io.ErrUnexpectedEOF 6090 } 6091 m.ValBuf = append(m.ValBuf[:0], dAtA[iNdEx:postIndex]...) 6092 if m.ValBuf == nil { 6093 m.ValBuf = []byte{} 6094 } 6095 iNdEx = postIndex 6096 case 3: 6097 if wireType != 0 { 6098 return fmt.Errorf("proto: wrong wireType = %d for field SI", wireType) 6099 } 6100 m.SI = 0 6101 for shift := uint(0); ; shift += 7 { 6102 if shift >= 64 { 6103 return ErrIntOverflowAmp 6104 } 6105 if iNdEx >= l { 6106 return io.ErrUnexpectedEOF 6107 } 6108 b := dAtA[iNdEx] 6109 iNdEx++ 6110 m.SI |= int64(b&0x7F) << shift 6111 if b < 0x80 { 6112 break 6113 } 6114 } 6115 default: 6116 iNdEx = preIndex 6117 skippy, err := skipAmp(dAtA[iNdEx:]) 6118 if err != nil { 6119 return err 6120 } 6121 if (skippy < 0) || (iNdEx+skippy) < 0 { 6122 return ErrInvalidLengthAmp 6123 } 6124 if (iNdEx + skippy) > l { 6125 return io.ErrUnexpectedEOF 6126 } 6127 iNdEx += skippy 6128 } 6129 } 6130 6131 if iNdEx > l { 6132 return io.ErrUnexpectedEOF 6133 } 6134 return nil 6135 } 6136 func (m *Login) Unmarshal(dAtA []byte) error { 6137 l := len(dAtA) 6138 iNdEx := 0 6139 for iNdEx < l { 6140 preIndex := iNdEx 6141 var wire uint64 6142 for shift := uint(0); ; shift += 7 { 6143 if shift >= 64 { 6144 return ErrIntOverflowAmp 6145 } 6146 if iNdEx >= l { 6147 return io.ErrUnexpectedEOF 6148 } 6149 b := dAtA[iNdEx] 6150 iNdEx++ 6151 wire |= uint64(b&0x7F) << shift 6152 if b < 0x80 { 6153 break 6154 } 6155 } 6156 fieldNum := int32(wire >> 3) 6157 wireType := int(wire & 0x7) 6158 if wireType == 4 { 6159 return fmt.Errorf("proto: Login: wiretype end group for non-group") 6160 } 6161 if fieldNum <= 0 { 6162 return fmt.Errorf("proto: Login: illegal tag %d (wire type %d)", fieldNum, wire) 6163 } 6164 switch fieldNum { 6165 case 1: 6166 if wireType != 2 { 6167 return fmt.Errorf("proto: wrong wireType = %d for field UserUID", wireType) 6168 } 6169 var stringLen uint64 6170 for shift := uint(0); ; shift += 7 { 6171 if shift >= 64 { 6172 return ErrIntOverflowAmp 6173 } 6174 if iNdEx >= l { 6175 return io.ErrUnexpectedEOF 6176 } 6177 b := dAtA[iNdEx] 6178 iNdEx++ 6179 stringLen |= uint64(b&0x7F) << shift 6180 if b < 0x80 { 6181 break 6182 } 6183 } 6184 intStringLen := int(stringLen) 6185 if intStringLen < 0 { 6186 return ErrInvalidLengthAmp 6187 } 6188 postIndex := iNdEx + intStringLen 6189 if postIndex < 0 { 6190 return ErrInvalidLengthAmp 6191 } 6192 if postIndex > l { 6193 return io.ErrUnexpectedEOF 6194 } 6195 m.UserUID = string(dAtA[iNdEx:postIndex]) 6196 iNdEx = postIndex 6197 case 2: 6198 if wireType != 2 { 6199 return fmt.Errorf("proto: wrong wireType = %d for field HostAddr", wireType) 6200 } 6201 var stringLen uint64 6202 for shift := uint(0); ; shift += 7 { 6203 if shift >= 64 { 6204 return ErrIntOverflowAmp 6205 } 6206 if iNdEx >= l { 6207 return io.ErrUnexpectedEOF 6208 } 6209 b := dAtA[iNdEx] 6210 iNdEx++ 6211 stringLen |= uint64(b&0x7F) << shift 6212 if b < 0x80 { 6213 break 6214 } 6215 } 6216 intStringLen := int(stringLen) 6217 if intStringLen < 0 { 6218 return ErrInvalidLengthAmp 6219 } 6220 postIndex := iNdEx + intStringLen 6221 if postIndex < 0 { 6222 return ErrInvalidLengthAmp 6223 } 6224 if postIndex > l { 6225 return io.ErrUnexpectedEOF 6226 } 6227 m.HostAddr = string(dAtA[iNdEx:postIndex]) 6228 iNdEx = postIndex 6229 case 8: 6230 if wireType != 2 { 6231 return fmt.Errorf("proto: wrong wireType = %d for field DeviceLabel", wireType) 6232 } 6233 var stringLen uint64 6234 for shift := uint(0); ; shift += 7 { 6235 if shift >= 64 { 6236 return ErrIntOverflowAmp 6237 } 6238 if iNdEx >= l { 6239 return io.ErrUnexpectedEOF 6240 } 6241 b := dAtA[iNdEx] 6242 iNdEx++ 6243 stringLen |= uint64(b&0x7F) << shift 6244 if b < 0x80 { 6245 break 6246 } 6247 } 6248 intStringLen := int(stringLen) 6249 if intStringLen < 0 { 6250 return ErrInvalidLengthAmp 6251 } 6252 postIndex := iNdEx + intStringLen 6253 if postIndex < 0 { 6254 return ErrInvalidLengthAmp 6255 } 6256 if postIndex > l { 6257 return io.ErrUnexpectedEOF 6258 } 6259 m.DeviceLabel = string(dAtA[iNdEx:postIndex]) 6260 iNdEx = postIndex 6261 case 9: 6262 if wireType != 2 { 6263 return fmt.Errorf("proto: wrong wireType = %d for field DeviceUID", wireType) 6264 } 6265 var stringLen uint64 6266 for shift := uint(0); ; shift += 7 { 6267 if shift >= 64 { 6268 return ErrIntOverflowAmp 6269 } 6270 if iNdEx >= l { 6271 return io.ErrUnexpectedEOF 6272 } 6273 b := dAtA[iNdEx] 6274 iNdEx++ 6275 stringLen |= uint64(b&0x7F) << shift 6276 if b < 0x80 { 6277 break 6278 } 6279 } 6280 intStringLen := int(stringLen) 6281 if intStringLen < 0 { 6282 return ErrInvalidLengthAmp 6283 } 6284 postIndex := iNdEx + intStringLen 6285 if postIndex < 0 { 6286 return ErrInvalidLengthAmp 6287 } 6288 if postIndex > l { 6289 return io.ErrUnexpectedEOF 6290 } 6291 m.DeviceUID = string(dAtA[iNdEx:postIndex]) 6292 iNdEx = postIndex 6293 default: 6294 iNdEx = preIndex 6295 skippy, err := skipAmp(dAtA[iNdEx:]) 6296 if err != nil { 6297 return err 6298 } 6299 if (skippy < 0) || (iNdEx+skippy) < 0 { 6300 return ErrInvalidLengthAmp 6301 } 6302 if (iNdEx + skippy) > l { 6303 return io.ErrUnexpectedEOF 6304 } 6305 iNdEx += skippy 6306 } 6307 } 6308 6309 if iNdEx > l { 6310 return io.ErrUnexpectedEOF 6311 } 6312 return nil 6313 } 6314 func (m *LoginChallenge) Unmarshal(dAtA []byte) error { 6315 l := len(dAtA) 6316 iNdEx := 0 6317 for iNdEx < l { 6318 preIndex := iNdEx 6319 var wire uint64 6320 for shift := uint(0); ; shift += 7 { 6321 if shift >= 64 { 6322 return ErrIntOverflowAmp 6323 } 6324 if iNdEx >= l { 6325 return io.ErrUnexpectedEOF 6326 } 6327 b := dAtA[iNdEx] 6328 iNdEx++ 6329 wire |= uint64(b&0x7F) << shift 6330 if b < 0x80 { 6331 break 6332 } 6333 } 6334 fieldNum := int32(wire >> 3) 6335 wireType := int(wire & 0x7) 6336 if wireType == 4 { 6337 return fmt.Errorf("proto: LoginChallenge: wiretype end group for non-group") 6338 } 6339 if fieldNum <= 0 { 6340 return fmt.Errorf("proto: LoginChallenge: illegal tag %d (wire type %d)", fieldNum, wire) 6341 } 6342 switch fieldNum { 6343 case 1: 6344 if wireType != 2 { 6345 return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) 6346 } 6347 var byteLen int 6348 for shift := uint(0); ; shift += 7 { 6349 if shift >= 64 { 6350 return ErrIntOverflowAmp 6351 } 6352 if iNdEx >= l { 6353 return io.ErrUnexpectedEOF 6354 } 6355 b := dAtA[iNdEx] 6356 iNdEx++ 6357 byteLen |= int(b&0x7F) << shift 6358 if b < 0x80 { 6359 break 6360 } 6361 } 6362 if byteLen < 0 { 6363 return ErrInvalidLengthAmp 6364 } 6365 postIndex := iNdEx + byteLen 6366 if postIndex < 0 { 6367 return ErrInvalidLengthAmp 6368 } 6369 if postIndex > l { 6370 return io.ErrUnexpectedEOF 6371 } 6372 m.Hash = append(m.Hash[:0], dAtA[iNdEx:postIndex]...) 6373 if m.Hash == nil { 6374 m.Hash = []byte{} 6375 } 6376 iNdEx = postIndex 6377 default: 6378 iNdEx = preIndex 6379 skippy, err := skipAmp(dAtA[iNdEx:]) 6380 if err != nil { 6381 return err 6382 } 6383 if (skippy < 0) || (iNdEx+skippy) < 0 { 6384 return ErrInvalidLengthAmp 6385 } 6386 if (iNdEx + skippy) > l { 6387 return io.ErrUnexpectedEOF 6388 } 6389 iNdEx += skippy 6390 } 6391 } 6392 6393 if iNdEx > l { 6394 return io.ErrUnexpectedEOF 6395 } 6396 return nil 6397 } 6398 func (m *LoginResponse) Unmarshal(dAtA []byte) error { 6399 l := len(dAtA) 6400 iNdEx := 0 6401 for iNdEx < l { 6402 preIndex := iNdEx 6403 var wire uint64 6404 for shift := uint(0); ; shift += 7 { 6405 if shift >= 64 { 6406 return ErrIntOverflowAmp 6407 } 6408 if iNdEx >= l { 6409 return io.ErrUnexpectedEOF 6410 } 6411 b := dAtA[iNdEx] 6412 iNdEx++ 6413 wire |= uint64(b&0x7F) << shift 6414 if b < 0x80 { 6415 break 6416 } 6417 } 6418 fieldNum := int32(wire >> 3) 6419 wireType := int(wire & 0x7) 6420 if wireType == 4 { 6421 return fmt.Errorf("proto: LoginResponse: wiretype end group for non-group") 6422 } 6423 if fieldNum <= 0 { 6424 return fmt.Errorf("proto: LoginResponse: illegal tag %d (wire type %d)", fieldNum, wire) 6425 } 6426 switch fieldNum { 6427 case 1: 6428 if wireType != 2 { 6429 return fmt.Errorf("proto: wrong wireType = %d for field HashResp", wireType) 6430 } 6431 var byteLen int 6432 for shift := uint(0); ; shift += 7 { 6433 if shift >= 64 { 6434 return ErrIntOverflowAmp 6435 } 6436 if iNdEx >= l { 6437 return io.ErrUnexpectedEOF 6438 } 6439 b := dAtA[iNdEx] 6440 iNdEx++ 6441 byteLen |= int(b&0x7F) << shift 6442 if b < 0x80 { 6443 break 6444 } 6445 } 6446 if byteLen < 0 { 6447 return ErrInvalidLengthAmp 6448 } 6449 postIndex := iNdEx + byteLen 6450 if postIndex < 0 { 6451 return ErrInvalidLengthAmp 6452 } 6453 if postIndex > l { 6454 return io.ErrUnexpectedEOF 6455 } 6456 m.HashResp = append(m.HashResp[:0], dAtA[iNdEx:postIndex]...) 6457 if m.HashResp == nil { 6458 m.HashResp = []byte{} 6459 } 6460 iNdEx = postIndex 6461 default: 6462 iNdEx = preIndex 6463 skippy, err := skipAmp(dAtA[iNdEx:]) 6464 if err != nil { 6465 return err 6466 } 6467 if (skippy < 0) || (iNdEx+skippy) < 0 { 6468 return ErrInvalidLengthAmp 6469 } 6470 if (iNdEx + skippy) > l { 6471 return io.ErrUnexpectedEOF 6472 } 6473 iNdEx += skippy 6474 } 6475 } 6476 6477 if iNdEx > l { 6478 return io.ErrUnexpectedEOF 6479 } 6480 return nil 6481 } 6482 func (m *Symbol) Unmarshal(dAtA []byte) error { 6483 l := len(dAtA) 6484 iNdEx := 0 6485 for iNdEx < l { 6486 preIndex := iNdEx 6487 var wire uint64 6488 for shift := uint(0); ; shift += 7 { 6489 if shift >= 64 { 6490 return ErrIntOverflowAmp 6491 } 6492 if iNdEx >= l { 6493 return io.ErrUnexpectedEOF 6494 } 6495 b := dAtA[iNdEx] 6496 iNdEx++ 6497 wire |= uint64(b&0x7F) << shift 6498 if b < 0x80 { 6499 break 6500 } 6501 } 6502 fieldNum := int32(wire >> 3) 6503 wireType := int(wire & 0x7) 6504 if wireType == 4 { 6505 return fmt.Errorf("proto: Symbol: wiretype end group for non-group") 6506 } 6507 if fieldNum <= 0 { 6508 return fmt.Errorf("proto: Symbol: illegal tag %d (wire type %d)", fieldNum, wire) 6509 } 6510 switch fieldNum { 6511 case 1: 6512 if wireType != 0 { 6513 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 6514 } 6515 m.ID = 0 6516 for shift := uint(0); ; shift += 7 { 6517 if shift >= 64 { 6518 return ErrIntOverflowAmp 6519 } 6520 if iNdEx >= l { 6521 return io.ErrUnexpectedEOF 6522 } 6523 b := dAtA[iNdEx] 6524 iNdEx++ 6525 m.ID |= uint32(b&0x7F) << shift 6526 if b < 0x80 { 6527 break 6528 } 6529 } 6530 case 2: 6531 if wireType != 2 { 6532 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 6533 } 6534 var byteLen int 6535 for shift := uint(0); ; shift += 7 { 6536 if shift >= 64 { 6537 return ErrIntOverflowAmp 6538 } 6539 if iNdEx >= l { 6540 return io.ErrUnexpectedEOF 6541 } 6542 b := dAtA[iNdEx] 6543 iNdEx++ 6544 byteLen |= int(b&0x7F) << shift 6545 if b < 0x80 { 6546 break 6547 } 6548 } 6549 if byteLen < 0 { 6550 return ErrInvalidLengthAmp 6551 } 6552 postIndex := iNdEx + byteLen 6553 if postIndex < 0 { 6554 return ErrInvalidLengthAmp 6555 } 6556 if postIndex > l { 6557 return io.ErrUnexpectedEOF 6558 } 6559 m.Name = append(m.Name[:0], dAtA[iNdEx:postIndex]...) 6560 if m.Name == nil { 6561 m.Name = []byte{} 6562 } 6563 iNdEx = postIndex 6564 default: 6565 iNdEx = preIndex 6566 skippy, err := skipAmp(dAtA[iNdEx:]) 6567 if err != nil { 6568 return err 6569 } 6570 if (skippy < 0) || (iNdEx+skippy) < 0 { 6571 return ErrInvalidLengthAmp 6572 } 6573 if (iNdEx + skippy) > l { 6574 return io.ErrUnexpectedEOF 6575 } 6576 iNdEx += skippy 6577 } 6578 } 6579 6580 if iNdEx > l { 6581 return io.ErrUnexpectedEOF 6582 } 6583 return nil 6584 } 6585 func (m *RegisterDefs) Unmarshal(dAtA []byte) error { 6586 l := len(dAtA) 6587 iNdEx := 0 6588 for iNdEx < l { 6589 preIndex := iNdEx 6590 var wire uint64 6591 for shift := uint(0); ; shift += 7 { 6592 if shift >= 64 { 6593 return ErrIntOverflowAmp 6594 } 6595 if iNdEx >= l { 6596 return io.ErrUnexpectedEOF 6597 } 6598 b := dAtA[iNdEx] 6599 iNdEx++ 6600 wire |= uint64(b&0x7F) << shift 6601 if b < 0x80 { 6602 break 6603 } 6604 } 6605 fieldNum := int32(wire >> 3) 6606 wireType := int(wire & 0x7) 6607 if wireType == 4 { 6608 return fmt.Errorf("proto: RegisterDefs: wiretype end group for non-group") 6609 } 6610 if fieldNum <= 0 { 6611 return fmt.Errorf("proto: RegisterDefs: illegal tag %d (wire type %d)", fieldNum, wire) 6612 } 6613 switch fieldNum { 6614 case 1: 6615 if wireType != 2 { 6616 return fmt.Errorf("proto: wrong wireType = %d for field Symbols", wireType) 6617 } 6618 var msglen int 6619 for shift := uint(0); ; shift += 7 { 6620 if shift >= 64 { 6621 return ErrIntOverflowAmp 6622 } 6623 if iNdEx >= l { 6624 return io.ErrUnexpectedEOF 6625 } 6626 b := dAtA[iNdEx] 6627 iNdEx++ 6628 msglen |= int(b&0x7F) << shift 6629 if b < 0x80 { 6630 break 6631 } 6632 } 6633 if msglen < 0 { 6634 return ErrInvalidLengthAmp 6635 } 6636 postIndex := iNdEx + msglen 6637 if postIndex < 0 { 6638 return ErrInvalidLengthAmp 6639 } 6640 if postIndex > l { 6641 return io.ErrUnexpectedEOF 6642 } 6643 m.Symbols = append(m.Symbols, &Symbol{}) 6644 if err := m.Symbols[len(m.Symbols)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6645 return err 6646 } 6647 iNdEx = postIndex 6648 case 2: 6649 if wireType != 2 { 6650 return fmt.Errorf("proto: wrong wireType = %d for field Attrs", wireType) 6651 } 6652 var msglen int 6653 for shift := uint(0); ; shift += 7 { 6654 if shift >= 64 { 6655 return ErrIntOverflowAmp 6656 } 6657 if iNdEx >= l { 6658 return io.ErrUnexpectedEOF 6659 } 6660 b := dAtA[iNdEx] 6661 iNdEx++ 6662 msglen |= int(b&0x7F) << shift 6663 if b < 0x80 { 6664 break 6665 } 6666 } 6667 if msglen < 0 { 6668 return ErrInvalidLengthAmp 6669 } 6670 postIndex := iNdEx + msglen 6671 if postIndex < 0 { 6672 return ErrInvalidLengthAmp 6673 } 6674 if postIndex > l { 6675 return io.ErrUnexpectedEOF 6676 } 6677 m.Attrs = append(m.Attrs, &AttrSpec{}) 6678 if err := m.Attrs[len(m.Attrs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6679 return err 6680 } 6681 iNdEx = postIndex 6682 case 4: 6683 if wireType != 2 { 6684 return fmt.Errorf("proto: wrong wireType = %d for field Selectors", wireType) 6685 } 6686 var msglen int 6687 for shift := uint(0); ; shift += 7 { 6688 if shift >= 64 { 6689 return ErrIntOverflowAmp 6690 } 6691 if iNdEx >= l { 6692 return io.ErrUnexpectedEOF 6693 } 6694 b := dAtA[iNdEx] 6695 iNdEx++ 6696 msglen |= int(b&0x7F) << shift 6697 if b < 0x80 { 6698 break 6699 } 6700 } 6701 if msglen < 0 { 6702 return ErrInvalidLengthAmp 6703 } 6704 postIndex := iNdEx + msglen 6705 if postIndex < 0 { 6706 return ErrInvalidLengthAmp 6707 } 6708 if postIndex > l { 6709 return io.ErrUnexpectedEOF 6710 } 6711 m.Selectors = append(m.Selectors, &ItemSelector{}) 6712 if err := m.Selectors[len(m.Selectors)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6713 return err 6714 } 6715 iNdEx = postIndex 6716 default: 6717 iNdEx = preIndex 6718 skippy, err := skipAmp(dAtA[iNdEx:]) 6719 if err != nil { 6720 return err 6721 } 6722 if (skippy < 0) || (iNdEx+skippy) < 0 { 6723 return ErrInvalidLengthAmp 6724 } 6725 if (iNdEx + skippy) > l { 6726 return io.ErrUnexpectedEOF 6727 } 6728 iNdEx += skippy 6729 } 6730 } 6731 6732 if iNdEx > l { 6733 return io.ErrUnexpectedEOF 6734 } 6735 return nil 6736 } 6737 func (m *AttrSpec) Unmarshal(dAtA []byte) error { 6738 l := len(dAtA) 6739 iNdEx := 0 6740 for iNdEx < l { 6741 preIndex := iNdEx 6742 var wire uint64 6743 for shift := uint(0); ; shift += 7 { 6744 if shift >= 64 { 6745 return ErrIntOverflowAmp 6746 } 6747 if iNdEx >= l { 6748 return io.ErrUnexpectedEOF 6749 } 6750 b := dAtA[iNdEx] 6751 iNdEx++ 6752 wire |= uint64(b&0x7F) << shift 6753 if b < 0x80 { 6754 break 6755 } 6756 } 6757 fieldNum := int32(wire >> 3) 6758 wireType := int(wire & 0x7) 6759 if wireType == 4 { 6760 return fmt.Errorf("proto: AttrSpec: wiretype end group for non-group") 6761 } 6762 if fieldNum <= 0 { 6763 return fmt.Errorf("proto: AttrSpec: illegal tag %d (wire type %d)", fieldNum, wire) 6764 } 6765 switch fieldNum { 6766 case 1: 6767 if wireType != 0 { 6768 return fmt.Errorf("proto: wrong wireType = %d for field DefID", wireType) 6769 } 6770 m.DefID = 0 6771 for shift := uint(0); ; shift += 7 { 6772 if shift >= 64 { 6773 return ErrIntOverflowAmp 6774 } 6775 if iNdEx >= l { 6776 return io.ErrUnexpectedEOF 6777 } 6778 b := dAtA[iNdEx] 6779 iNdEx++ 6780 m.DefID |= uint32(b&0x7F) << shift 6781 if b < 0x80 { 6782 break 6783 } 6784 } 6785 case 3: 6786 if wireType != 0 { 6787 return fmt.Errorf("proto: wrong wireType = %d for field ElemType", wireType) 6788 } 6789 m.ElemType = 0 6790 for shift := uint(0); ; shift += 7 { 6791 if shift >= 64 { 6792 return ErrIntOverflowAmp 6793 } 6794 if iNdEx >= l { 6795 return io.ErrUnexpectedEOF 6796 } 6797 b := dAtA[iNdEx] 6798 iNdEx++ 6799 m.ElemType |= uint32(b&0x7F) << shift 6800 if b < 0x80 { 6801 break 6802 } 6803 } 6804 case 4: 6805 if wireType != 0 { 6806 return fmt.Errorf("proto: wrong wireType = %d for field SeriesSpec", wireType) 6807 } 6808 m.SeriesSpec = 0 6809 for shift := uint(0); ; shift += 7 { 6810 if shift >= 64 { 6811 return ErrIntOverflowAmp 6812 } 6813 if iNdEx >= l { 6814 return io.ErrUnexpectedEOF 6815 } 6816 b := dAtA[iNdEx] 6817 iNdEx++ 6818 m.SeriesSpec |= uint32(b&0x7F) << shift 6819 if b < 0x80 { 6820 break 6821 } 6822 } 6823 case 5: 6824 if wireType != 0 { 6825 return fmt.Errorf("proto: wrong wireType = %d for field SeriesIndexType", wireType) 6826 } 6827 m.SeriesIndexType = 0 6828 for shift := uint(0); ; shift += 7 { 6829 if shift >= 64 { 6830 return ErrIntOverflowAmp 6831 } 6832 if iNdEx >= l { 6833 return io.ErrUnexpectedEOF 6834 } 6835 b := dAtA[iNdEx] 6836 iNdEx++ 6837 m.SeriesIndexType |= SeriesIndexType(b&0x7F) << shift 6838 if b < 0x80 { 6839 break 6840 } 6841 } 6842 case 6: 6843 if wireType != 0 { 6844 return fmt.Errorf("proto: wrong wireType = %d for field AttrName", wireType) 6845 } 6846 m.AttrName = 0 6847 for shift := uint(0); ; shift += 7 { 6848 if shift >= 64 { 6849 return ErrIntOverflowAmp 6850 } 6851 if iNdEx >= l { 6852 return io.ErrUnexpectedEOF 6853 } 6854 b := dAtA[iNdEx] 6855 iNdEx++ 6856 m.AttrName |= uint32(b&0x7F) << shift 6857 if b < 0x80 { 6858 break 6859 } 6860 } 6861 default: 6862 iNdEx = preIndex 6863 skippy, err := skipAmp(dAtA[iNdEx:]) 6864 if err != nil { 6865 return err 6866 } 6867 if (skippy < 0) || (iNdEx+skippy) < 0 { 6868 return ErrInvalidLengthAmp 6869 } 6870 if (iNdEx + skippy) > l { 6871 return io.ErrUnexpectedEOF 6872 } 6873 iNdEx += skippy 6874 } 6875 } 6876 6877 if iNdEx > l { 6878 return io.ErrUnexpectedEOF 6879 } 6880 return nil 6881 } 6882 func (m *ItemSelector) Unmarshal(dAtA []byte) error { 6883 l := len(dAtA) 6884 iNdEx := 0 6885 for iNdEx < l { 6886 preIndex := iNdEx 6887 var wire uint64 6888 for shift := uint(0); ; shift += 7 { 6889 if shift >= 64 { 6890 return ErrIntOverflowAmp 6891 } 6892 if iNdEx >= l { 6893 return io.ErrUnexpectedEOF 6894 } 6895 b := dAtA[iNdEx] 6896 iNdEx++ 6897 wire |= uint64(b&0x7F) << shift 6898 if b < 0x80 { 6899 break 6900 } 6901 } 6902 fieldNum := int32(wire >> 3) 6903 wireType := int(wire & 0x7) 6904 if wireType == 4 { 6905 return fmt.Errorf("proto: ItemSelector: wiretype end group for non-group") 6906 } 6907 if fieldNum <= 0 { 6908 return fmt.Errorf("proto: ItemSelector: illegal tag %d (wire type %d)", fieldNum, wire) 6909 } 6910 switch fieldNum { 6911 case 1: 6912 if wireType != 0 { 6913 return fmt.Errorf("proto: wrong wireType = %d for field DefID", wireType) 6914 } 6915 m.DefID = 0 6916 for shift := uint(0); ; shift += 7 { 6917 if shift >= 64 { 6918 return ErrIntOverflowAmp 6919 } 6920 if iNdEx >= l { 6921 return io.ErrUnexpectedEOF 6922 } 6923 b := dAtA[iNdEx] 6924 iNdEx++ 6925 m.DefID |= uint32(b&0x7F) << shift 6926 if b < 0x80 { 6927 break 6928 } 6929 } 6930 case 4: 6931 if wireType == 0 { 6932 var v uint32 6933 for shift := uint(0); ; shift += 7 { 6934 if shift >= 64 { 6935 return ErrIntOverflowAmp 6936 } 6937 if iNdEx >= l { 6938 return io.ErrUnexpectedEOF 6939 } 6940 b := dAtA[iNdEx] 6941 iNdEx++ 6942 v |= uint32(b&0x7F) << shift 6943 if b < 0x80 { 6944 break 6945 } 6946 } 6947 m.Include = append(m.Include, v) 6948 } else if wireType == 2 { 6949 var packedLen int 6950 for shift := uint(0); ; shift += 7 { 6951 if shift >= 64 { 6952 return ErrIntOverflowAmp 6953 } 6954 if iNdEx >= l { 6955 return io.ErrUnexpectedEOF 6956 } 6957 b := dAtA[iNdEx] 6958 iNdEx++ 6959 packedLen |= int(b&0x7F) << shift 6960 if b < 0x80 { 6961 break 6962 } 6963 } 6964 if packedLen < 0 { 6965 return ErrInvalidLengthAmp 6966 } 6967 postIndex := iNdEx + packedLen 6968 if postIndex < 0 { 6969 return ErrInvalidLengthAmp 6970 } 6971 if postIndex > l { 6972 return io.ErrUnexpectedEOF 6973 } 6974 var elementCount int 6975 var count int 6976 for _, integer := range dAtA[iNdEx:postIndex] { 6977 if integer < 128 { 6978 count++ 6979 } 6980 } 6981 elementCount = count 6982 if elementCount != 0 && len(m.Include) == 0 { 6983 m.Include = make([]uint32, 0, elementCount) 6984 } 6985 for iNdEx < postIndex { 6986 var v uint32 6987 for shift := uint(0); ; shift += 7 { 6988 if shift >= 64 { 6989 return ErrIntOverflowAmp 6990 } 6991 if iNdEx >= l { 6992 return io.ErrUnexpectedEOF 6993 } 6994 b := dAtA[iNdEx] 6995 iNdEx++ 6996 v |= uint32(b&0x7F) << shift 6997 if b < 0x80 { 6998 break 6999 } 7000 } 7001 m.Include = append(m.Include, v) 7002 } 7003 } else { 7004 return fmt.Errorf("proto: wrong wireType = %d for field Include", wireType) 7005 } 7006 case 5: 7007 if wireType == 0 { 7008 var v uint32 7009 for shift := uint(0); ; shift += 7 { 7010 if shift >= 64 { 7011 return ErrIntOverflowAmp 7012 } 7013 if iNdEx >= l { 7014 return io.ErrUnexpectedEOF 7015 } 7016 b := dAtA[iNdEx] 7017 iNdEx++ 7018 v |= uint32(b&0x7F) << shift 7019 if b < 0x80 { 7020 break 7021 } 7022 } 7023 m.Exclude = append(m.Exclude, v) 7024 } else if wireType == 2 { 7025 var packedLen int 7026 for shift := uint(0); ; shift += 7 { 7027 if shift >= 64 { 7028 return ErrIntOverflowAmp 7029 } 7030 if iNdEx >= l { 7031 return io.ErrUnexpectedEOF 7032 } 7033 b := dAtA[iNdEx] 7034 iNdEx++ 7035 packedLen |= int(b&0x7F) << shift 7036 if b < 0x80 { 7037 break 7038 } 7039 } 7040 if packedLen < 0 { 7041 return ErrInvalidLengthAmp 7042 } 7043 postIndex := iNdEx + packedLen 7044 if postIndex < 0 { 7045 return ErrInvalidLengthAmp 7046 } 7047 if postIndex > l { 7048 return io.ErrUnexpectedEOF 7049 } 7050 var elementCount int 7051 var count int 7052 for _, integer := range dAtA[iNdEx:postIndex] { 7053 if integer < 128 { 7054 count++ 7055 } 7056 } 7057 elementCount = count 7058 if elementCount != 0 && len(m.Exclude) == 0 { 7059 m.Exclude = make([]uint32, 0, elementCount) 7060 } 7061 for iNdEx < postIndex { 7062 var v uint32 7063 for shift := uint(0); ; shift += 7 { 7064 if shift >= 64 { 7065 return ErrIntOverflowAmp 7066 } 7067 if iNdEx >= l { 7068 return io.ErrUnexpectedEOF 7069 } 7070 b := dAtA[iNdEx] 7071 iNdEx++ 7072 v |= uint32(b&0x7F) << shift 7073 if b < 0x80 { 7074 break 7075 } 7076 } 7077 m.Exclude = append(m.Exclude, v) 7078 } 7079 } else { 7080 return fmt.Errorf("proto: wrong wireType = %d for field Exclude", wireType) 7081 } 7082 default: 7083 iNdEx = preIndex 7084 skippy, err := skipAmp(dAtA[iNdEx:]) 7085 if err != nil { 7086 return err 7087 } 7088 if (skippy < 0) || (iNdEx+skippy) < 0 { 7089 return ErrInvalidLengthAmp 7090 } 7091 if (iNdEx + skippy) > l { 7092 return io.ErrUnexpectedEOF 7093 } 7094 iNdEx += skippy 7095 } 7096 } 7097 7098 if iNdEx > l { 7099 return io.ErrUnexpectedEOF 7100 } 7101 return nil 7102 } 7103 func (m *HandleURI) Unmarshal(dAtA []byte) error { 7104 l := len(dAtA) 7105 iNdEx := 0 7106 for iNdEx < l { 7107 preIndex := iNdEx 7108 var wire uint64 7109 for shift := uint(0); ; shift += 7 { 7110 if shift >= 64 { 7111 return ErrIntOverflowAmp 7112 } 7113 if iNdEx >= l { 7114 return io.ErrUnexpectedEOF 7115 } 7116 b := dAtA[iNdEx] 7117 iNdEx++ 7118 wire |= uint64(b&0x7F) << shift 7119 if b < 0x80 { 7120 break 7121 } 7122 } 7123 fieldNum := int32(wire >> 3) 7124 wireType := int(wire & 0x7) 7125 if wireType == 4 { 7126 return fmt.Errorf("proto: HandleURI: wiretype end group for non-group") 7127 } 7128 if fieldNum <= 0 { 7129 return fmt.Errorf("proto: HandleURI: illegal tag %d (wire type %d)", fieldNum, wire) 7130 } 7131 switch fieldNum { 7132 case 1: 7133 if wireType != 2 { 7134 return fmt.Errorf("proto: wrong wireType = %d for field URI", wireType) 7135 } 7136 var stringLen uint64 7137 for shift := uint(0); ; shift += 7 { 7138 if shift >= 64 { 7139 return ErrIntOverflowAmp 7140 } 7141 if iNdEx >= l { 7142 return io.ErrUnexpectedEOF 7143 } 7144 b := dAtA[iNdEx] 7145 iNdEx++ 7146 stringLen |= uint64(b&0x7F) << shift 7147 if b < 0x80 { 7148 break 7149 } 7150 } 7151 intStringLen := int(stringLen) 7152 if intStringLen < 0 { 7153 return ErrInvalidLengthAmp 7154 } 7155 postIndex := iNdEx + intStringLen 7156 if postIndex < 0 { 7157 return ErrInvalidLengthAmp 7158 } 7159 if postIndex > l { 7160 return io.ErrUnexpectedEOF 7161 } 7162 m.URI = string(dAtA[iNdEx:postIndex]) 7163 iNdEx = postIndex 7164 default: 7165 iNdEx = preIndex 7166 skippy, err := skipAmp(dAtA[iNdEx:]) 7167 if err != nil { 7168 return err 7169 } 7170 if (skippy < 0) || (iNdEx+skippy) < 0 { 7171 return ErrInvalidLengthAmp 7172 } 7173 if (iNdEx + skippy) > l { 7174 return io.ErrUnexpectedEOF 7175 } 7176 iNdEx += skippy 7177 } 7178 } 7179 7180 if iNdEx > l { 7181 return io.ErrUnexpectedEOF 7182 } 7183 return nil 7184 } 7185 func (m *PinRequest) Unmarshal(dAtA []byte) error { 7186 l := len(dAtA) 7187 iNdEx := 0 7188 for iNdEx < l { 7189 preIndex := iNdEx 7190 var wire uint64 7191 for shift := uint(0); ; shift += 7 { 7192 if shift >= 64 { 7193 return ErrIntOverflowAmp 7194 } 7195 if iNdEx >= l { 7196 return io.ErrUnexpectedEOF 7197 } 7198 b := dAtA[iNdEx] 7199 iNdEx++ 7200 wire |= uint64(b&0x7F) << shift 7201 if b < 0x80 { 7202 break 7203 } 7204 } 7205 fieldNum := int32(wire >> 3) 7206 wireType := int(wire & 0x7) 7207 if wireType == 4 { 7208 return fmt.Errorf("proto: PinRequest: wiretype end group for non-group") 7209 } 7210 if fieldNum <= 0 { 7211 return fmt.Errorf("proto: PinRequest: illegal tag %d (wire type %d)", fieldNum, wire) 7212 } 7213 switch fieldNum { 7214 case 1: 7215 if wireType != 0 { 7216 return fmt.Errorf("proto: wrong wireType = %d for field ParentReqID", wireType) 7217 } 7218 m.ParentReqID = 0 7219 for shift := uint(0); ; shift += 7 { 7220 if shift >= 64 { 7221 return ErrIntOverflowAmp 7222 } 7223 if iNdEx >= l { 7224 return io.ErrUnexpectedEOF 7225 } 7226 b := dAtA[iNdEx] 7227 iNdEx++ 7228 m.ParentReqID |= uint64(b&0x7F) << shift 7229 if b < 0x80 { 7230 break 7231 } 7232 } 7233 case 2: 7234 if wireType != 2 { 7235 return fmt.Errorf("proto: wrong wireType = %d for field PinURL", wireType) 7236 } 7237 var stringLen uint64 7238 for shift := uint(0); ; shift += 7 { 7239 if shift >= 64 { 7240 return ErrIntOverflowAmp 7241 } 7242 if iNdEx >= l { 7243 return io.ErrUnexpectedEOF 7244 } 7245 b := dAtA[iNdEx] 7246 iNdEx++ 7247 stringLen |= uint64(b&0x7F) << shift 7248 if b < 0x80 { 7249 break 7250 } 7251 } 7252 intStringLen := int(stringLen) 7253 if intStringLen < 0 { 7254 return ErrInvalidLengthAmp 7255 } 7256 postIndex := iNdEx + intStringLen 7257 if postIndex < 0 { 7258 return ErrInvalidLengthAmp 7259 } 7260 if postIndex > l { 7261 return io.ErrUnexpectedEOF 7262 } 7263 m.PinURL = string(dAtA[iNdEx:postIndex]) 7264 iNdEx = postIndex 7265 case 3: 7266 if wireType != 0 { 7267 return fmt.Errorf("proto: wrong wireType = %d for field PinCellIDx0", wireType) 7268 } 7269 m.PinCellIDx0 = 0 7270 for shift := uint(0); ; shift += 7 { 7271 if shift >= 64 { 7272 return ErrIntOverflowAmp 7273 } 7274 if iNdEx >= l { 7275 return io.ErrUnexpectedEOF 7276 } 7277 b := dAtA[iNdEx] 7278 iNdEx++ 7279 m.PinCellIDx0 |= uint64(b&0x7F) << shift 7280 if b < 0x80 { 7281 break 7282 } 7283 } 7284 case 4: 7285 if wireType != 0 { 7286 return fmt.Errorf("proto: wrong wireType = %d for field PinCellIDx1", wireType) 7287 } 7288 m.PinCellIDx1 = 0 7289 for shift := uint(0); ; shift += 7 { 7290 if shift >= 64 { 7291 return ErrIntOverflowAmp 7292 } 7293 if iNdEx >= l { 7294 return io.ErrUnexpectedEOF 7295 } 7296 b := dAtA[iNdEx] 7297 iNdEx++ 7298 m.PinCellIDx1 |= uint64(b&0x7F) << shift 7299 if b < 0x80 { 7300 break 7301 } 7302 } 7303 case 5: 7304 if wireType != 0 { 7305 return fmt.Errorf("proto: wrong wireType = %d for field ParentAttrSelector", wireType) 7306 } 7307 m.ParentAttrSelector = 0 7308 for shift := uint(0); ; shift += 7 { 7309 if shift >= 64 { 7310 return ErrIntOverflowAmp 7311 } 7312 if iNdEx >= l { 7313 return io.ErrUnexpectedEOF 7314 } 7315 b := dAtA[iNdEx] 7316 iNdEx++ 7317 m.ParentAttrSelector |= uint32(b&0x7F) << shift 7318 if b < 0x80 { 7319 break 7320 } 7321 } 7322 case 6: 7323 if wireType != 0 { 7324 return fmt.Errorf("proto: wrong wireType = %d for field ChildCellSelector", wireType) 7325 } 7326 m.ChildCellSelector = 0 7327 for shift := uint(0); ; shift += 7 { 7328 if shift >= 64 { 7329 return ErrIntOverflowAmp 7330 } 7331 if iNdEx >= l { 7332 return io.ErrUnexpectedEOF 7333 } 7334 b := dAtA[iNdEx] 7335 iNdEx++ 7336 m.ChildCellSelector |= uint32(b&0x7F) << shift 7337 if b < 0x80 { 7338 break 7339 } 7340 } 7341 case 7: 7342 if wireType != 0 { 7343 return fmt.Errorf("proto: wrong wireType = %d for field Flags", wireType) 7344 } 7345 m.Flags = 0 7346 for shift := uint(0); ; shift += 7 { 7347 if shift >= 64 { 7348 return ErrIntOverflowAmp 7349 } 7350 if iNdEx >= l { 7351 return io.ErrUnexpectedEOF 7352 } 7353 b := dAtA[iNdEx] 7354 iNdEx++ 7355 m.Flags |= PinFlags(b&0x7F) << shift 7356 if b < 0x80 { 7357 break 7358 } 7359 } 7360 default: 7361 iNdEx = preIndex 7362 skippy, err := skipAmp(dAtA[iNdEx:]) 7363 if err != nil { 7364 return err 7365 } 7366 if (skippy < 0) || (iNdEx+skippy) < 0 { 7367 return ErrInvalidLengthAmp 7368 } 7369 if (iNdEx + skippy) > l { 7370 return io.ErrUnexpectedEOF 7371 } 7372 iNdEx += skippy 7373 } 7374 } 7375 7376 if iNdEx > l { 7377 return io.ErrUnexpectedEOF 7378 } 7379 return nil 7380 } 7381 func (m *Position) Unmarshal(dAtA []byte) error { 7382 l := len(dAtA) 7383 iNdEx := 0 7384 for iNdEx < l { 7385 preIndex := iNdEx 7386 var wire uint64 7387 for shift := uint(0); ; shift += 7 { 7388 if shift >= 64 { 7389 return ErrIntOverflowAmp 7390 } 7391 if iNdEx >= l { 7392 return io.ErrUnexpectedEOF 7393 } 7394 b := dAtA[iNdEx] 7395 iNdEx++ 7396 wire |= uint64(b&0x7F) << shift 7397 if b < 0x80 { 7398 break 7399 } 7400 } 7401 fieldNum := int32(wire >> 3) 7402 wireType := int(wire & 0x7) 7403 if wireType == 4 { 7404 return fmt.Errorf("proto: Position: wiretype end group for non-group") 7405 } 7406 if fieldNum <= 0 { 7407 return fmt.Errorf("proto: Position: illegal tag %d (wire type %d)", fieldNum, wire) 7408 } 7409 switch fieldNum { 7410 case 1: 7411 if wireType != 0 { 7412 return fmt.Errorf("proto: wrong wireType = %d for field CordType", wireType) 7413 } 7414 m.CordType = 0 7415 for shift := uint(0); ; shift += 7 { 7416 if shift >= 64 { 7417 return ErrIntOverflowAmp 7418 } 7419 if iNdEx >= l { 7420 return io.ErrUnexpectedEOF 7421 } 7422 b := dAtA[iNdEx] 7423 iNdEx++ 7424 m.CordType |= CordType(b&0x7F) << shift 7425 if b < 0x80 { 7426 break 7427 } 7428 } 7429 case 3: 7430 if wireType != 1 { 7431 return fmt.Errorf("proto: wrong wireType = %d for field U", wireType) 7432 } 7433 var v uint64 7434 if (iNdEx + 8) > l { 7435 return io.ErrUnexpectedEOF 7436 } 7437 v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) 7438 iNdEx += 8 7439 m.U = float64(math.Float64frombits(v)) 7440 case 4: 7441 if wireType != 1 { 7442 return fmt.Errorf("proto: wrong wireType = %d for field V", wireType) 7443 } 7444 var v uint64 7445 if (iNdEx + 8) > l { 7446 return io.ErrUnexpectedEOF 7447 } 7448 v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) 7449 iNdEx += 8 7450 m.V = float64(math.Float64frombits(v)) 7451 case 5: 7452 if wireType != 1 { 7453 return fmt.Errorf("proto: wrong wireType = %d for field W", wireType) 7454 } 7455 var v uint64 7456 if (iNdEx + 8) > l { 7457 return io.ErrUnexpectedEOF 7458 } 7459 v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) 7460 iNdEx += 8 7461 m.W = float64(math.Float64frombits(v)) 7462 case 6: 7463 if wireType != 5 { 7464 return fmt.Errorf("proto: wrong wireType = %d for field ROU", wireType) 7465 } 7466 var v uint32 7467 if (iNdEx + 4) > l { 7468 return io.ErrUnexpectedEOF 7469 } 7470 v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) 7471 iNdEx += 4 7472 m.ROU = float32(math.Float32frombits(v)) 7473 default: 7474 iNdEx = preIndex 7475 skippy, err := skipAmp(dAtA[iNdEx:]) 7476 if err != nil { 7477 return err 7478 } 7479 if (skippy < 0) || (iNdEx+skippy) < 0 { 7480 return ErrInvalidLengthAmp 7481 } 7482 if (iNdEx + skippy) > l { 7483 return io.ErrUnexpectedEOF 7484 } 7485 iNdEx += skippy 7486 } 7487 } 7488 7489 if iNdEx > l { 7490 return io.ErrUnexpectedEOF 7491 } 7492 return nil 7493 } 7494 func (m *AssetTag) Unmarshal(dAtA []byte) error { 7495 l := len(dAtA) 7496 iNdEx := 0 7497 for iNdEx < l { 7498 preIndex := iNdEx 7499 var wire uint64 7500 for shift := uint(0); ; shift += 7 { 7501 if shift >= 64 { 7502 return ErrIntOverflowAmp 7503 } 7504 if iNdEx >= l { 7505 return io.ErrUnexpectedEOF 7506 } 7507 b := dAtA[iNdEx] 7508 iNdEx++ 7509 wire |= uint64(b&0x7F) << shift 7510 if b < 0x80 { 7511 break 7512 } 7513 } 7514 fieldNum := int32(wire >> 3) 7515 wireType := int(wire & 0x7) 7516 if wireType == 4 { 7517 return fmt.Errorf("proto: AssetTag: wiretype end group for non-group") 7518 } 7519 if fieldNum <= 0 { 7520 return fmt.Errorf("proto: AssetTag: illegal tag %d (wire type %d)", fieldNum, wire) 7521 } 7522 switch fieldNum { 7523 case 2: 7524 if wireType != 2 { 7525 return fmt.Errorf("proto: wrong wireType = %d for field SubTags", wireType) 7526 } 7527 var msglen int 7528 for shift := uint(0); ; shift += 7 { 7529 if shift >= 64 { 7530 return ErrIntOverflowAmp 7531 } 7532 if iNdEx >= l { 7533 return io.ErrUnexpectedEOF 7534 } 7535 b := dAtA[iNdEx] 7536 iNdEx++ 7537 msglen |= int(b&0x7F) << shift 7538 if b < 0x80 { 7539 break 7540 } 7541 } 7542 if msglen < 0 { 7543 return ErrInvalidLengthAmp 7544 } 7545 postIndex := iNdEx + msglen 7546 if postIndex < 0 { 7547 return ErrInvalidLengthAmp 7548 } 7549 if postIndex > l { 7550 return io.ErrUnexpectedEOF 7551 } 7552 m.SubTags = append(m.SubTags, &AssetTag{}) 7553 if err := m.SubTags[len(m.SubTags)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 7554 return err 7555 } 7556 iNdEx = postIndex 7557 case 3: 7558 if wireType != 0 { 7559 return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) 7560 } 7561 m.State = 0 7562 for shift := uint(0); ; shift += 7 { 7563 if shift >= 64 { 7564 return ErrIntOverflowAmp 7565 } 7566 if iNdEx >= l { 7567 return io.ErrUnexpectedEOF 7568 } 7569 b := dAtA[iNdEx] 7570 iNdEx++ 7571 m.State |= QuadState(b&0x7F) << shift 7572 if b < 0x80 { 7573 break 7574 } 7575 } 7576 case 5: 7577 if wireType != 2 { 7578 return fmt.Errorf("proto: wrong wireType = %d for field ContentType", wireType) 7579 } 7580 var stringLen uint64 7581 for shift := uint(0); ; shift += 7 { 7582 if shift >= 64 { 7583 return ErrIntOverflowAmp 7584 } 7585 if iNdEx >= l { 7586 return io.ErrUnexpectedEOF 7587 } 7588 b := dAtA[iNdEx] 7589 iNdEx++ 7590 stringLen |= uint64(b&0x7F) << shift 7591 if b < 0x80 { 7592 break 7593 } 7594 } 7595 intStringLen := int(stringLen) 7596 if intStringLen < 0 { 7597 return ErrInvalidLengthAmp 7598 } 7599 postIndex := iNdEx + intStringLen 7600 if postIndex < 0 { 7601 return ErrInvalidLengthAmp 7602 } 7603 if postIndex > l { 7604 return io.ErrUnexpectedEOF 7605 } 7606 m.ContentType = string(dAtA[iNdEx:postIndex]) 7607 iNdEx = postIndex 7608 case 7: 7609 if wireType != 2 { 7610 return fmt.Errorf("proto: wrong wireType = %d for field URI", wireType) 7611 } 7612 var stringLen uint64 7613 for shift := uint(0); ; shift += 7 { 7614 if shift >= 64 { 7615 return ErrIntOverflowAmp 7616 } 7617 if iNdEx >= l { 7618 return io.ErrUnexpectedEOF 7619 } 7620 b := dAtA[iNdEx] 7621 iNdEx++ 7622 stringLen |= uint64(b&0x7F) << shift 7623 if b < 0x80 { 7624 break 7625 } 7626 } 7627 intStringLen := int(stringLen) 7628 if intStringLen < 0 { 7629 return ErrInvalidLengthAmp 7630 } 7631 postIndex := iNdEx + intStringLen 7632 if postIndex < 0 { 7633 return ErrInvalidLengthAmp 7634 } 7635 if postIndex > l { 7636 return io.ErrUnexpectedEOF 7637 } 7638 m.URI = string(dAtA[iNdEx:postIndex]) 7639 iNdEx = postIndex 7640 case 16: 7641 if wireType != 1 { 7642 return fmt.Errorf("proto: wrong wireType = %d for field UIDx0", wireType) 7643 } 7644 m.UIDx0 = 0 7645 if (iNdEx + 8) > l { 7646 return io.ErrUnexpectedEOF 7647 } 7648 m.UIDx0 = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) 7649 iNdEx += 8 7650 case 17: 7651 if wireType != 1 { 7652 return fmt.Errorf("proto: wrong wireType = %d for field UIDx1", wireType) 7653 } 7654 m.UIDx1 = 0 7655 if (iNdEx + 8) > l { 7656 return io.ErrUnexpectedEOF 7657 } 7658 m.UIDx1 = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) 7659 iNdEx += 8 7660 case 18: 7661 if wireType != 1 { 7662 return fmt.Errorf("proto: wrong wireType = %d for field UIDx2", wireType) 7663 } 7664 m.UIDx2 = 0 7665 if (iNdEx + 8) > l { 7666 return io.ErrUnexpectedEOF 7667 } 7668 m.UIDx2 = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) 7669 iNdEx += 8 7670 case 20: 7671 if wireType != 5 { 7672 return fmt.Errorf("proto: wrong wireType = %d for field Rx0", wireType) 7673 } 7674 var v uint32 7675 if (iNdEx + 4) > l { 7676 return io.ErrUnexpectedEOF 7677 } 7678 v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) 7679 iNdEx += 4 7680 m.Rx0 = float32(math.Float32frombits(v)) 7681 case 21: 7682 if wireType != 5 { 7683 return fmt.Errorf("proto: wrong wireType = %d for field Rx1", wireType) 7684 } 7685 var v uint32 7686 if (iNdEx + 4) > l { 7687 return io.ErrUnexpectedEOF 7688 } 7689 v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) 7690 iNdEx += 4 7691 m.Rx1 = float32(math.Float32frombits(v)) 7692 case 22: 7693 if wireType != 5 { 7694 return fmt.Errorf("proto: wrong wireType = %d for field Rx2", wireType) 7695 } 7696 var v uint32 7697 if (iNdEx + 4) > l { 7698 return io.ErrUnexpectedEOF 7699 } 7700 v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) 7701 iNdEx += 4 7702 m.Rx2 = float32(math.Float32frombits(v)) 7703 case 28: 7704 if wireType != 0 { 7705 return fmt.Errorf("proto: wrong wireType = %d for field PixelWidth", wireType) 7706 } 7707 m.PixelWidth = 0 7708 for shift := uint(0); ; shift += 7 { 7709 if shift >= 64 { 7710 return ErrIntOverflowAmp 7711 } 7712 if iNdEx >= l { 7713 return io.ErrUnexpectedEOF 7714 } 7715 b := dAtA[iNdEx] 7716 iNdEx++ 7717 m.PixelWidth |= int32(b&0x7F) << shift 7718 if b < 0x80 { 7719 break 7720 } 7721 } 7722 case 29: 7723 if wireType != 0 { 7724 return fmt.Errorf("proto: wrong wireType = %d for field PixelHeight", wireType) 7725 } 7726 m.PixelHeight = 0 7727 for shift := uint(0); ; shift += 7 { 7728 if shift >= 64 { 7729 return ErrIntOverflowAmp 7730 } 7731 if iNdEx >= l { 7732 return io.ErrUnexpectedEOF 7733 } 7734 b := dAtA[iNdEx] 7735 iNdEx++ 7736 m.PixelHeight |= int32(b&0x7F) << shift 7737 if b < 0x80 { 7738 break 7739 } 7740 } 7741 case 30: 7742 if wireType != 5 { 7743 return fmt.Errorf("proto: wrong wireType = %d for field MeterScale", wireType) 7744 } 7745 var v uint32 7746 if (iNdEx + 4) > l { 7747 return io.ErrUnexpectedEOF 7748 } 7749 v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) 7750 iNdEx += 4 7751 m.MeterScale = float32(math.Float32frombits(v)) 7752 default: 7753 iNdEx = preIndex 7754 skippy, err := skipAmp(dAtA[iNdEx:]) 7755 if err != nil { 7756 return err 7757 } 7758 if (skippy < 0) || (iNdEx+skippy) < 0 { 7759 return ErrInvalidLengthAmp 7760 } 7761 if (iNdEx + skippy) > l { 7762 return io.ErrUnexpectedEOF 7763 } 7764 iNdEx += skippy 7765 } 7766 } 7767 7768 if iNdEx > l { 7769 return io.ErrUnexpectedEOF 7770 } 7771 return nil 7772 } 7773 func (m *SheetInfo) Unmarshal(dAtA []byte) error { 7774 l := len(dAtA) 7775 iNdEx := 0 7776 for iNdEx < l { 7777 preIndex := iNdEx 7778 var wire uint64 7779 for shift := uint(0); ; shift += 7 { 7780 if shift >= 64 { 7781 return ErrIntOverflowAmp 7782 } 7783 if iNdEx >= l { 7784 return io.ErrUnexpectedEOF 7785 } 7786 b := dAtA[iNdEx] 7787 iNdEx++ 7788 wire |= uint64(b&0x7F) << shift 7789 if b < 0x80 { 7790 break 7791 } 7792 } 7793 fieldNum := int32(wire >> 3) 7794 wireType := int(wire & 0x7) 7795 if wireType == 4 { 7796 return fmt.Errorf("proto: SheetInfo: wiretype end group for non-group") 7797 } 7798 if fieldNum <= 0 { 7799 return fmt.Errorf("proto: SheetInfo: illegal tag %d (wire type %d)", fieldNum, wire) 7800 } 7801 switch fieldNum { 7802 case 1: 7803 if wireType != 2 { 7804 return fmt.Errorf("proto: wrong wireType = %d for field AppSheetURI", wireType) 7805 } 7806 var stringLen uint64 7807 for shift := uint(0); ; shift += 7 { 7808 if shift >= 64 { 7809 return ErrIntOverflowAmp 7810 } 7811 if iNdEx >= l { 7812 return io.ErrUnexpectedEOF 7813 } 7814 b := dAtA[iNdEx] 7815 iNdEx++ 7816 stringLen |= uint64(b&0x7F) << shift 7817 if b < 0x80 { 7818 break 7819 } 7820 } 7821 intStringLen := int(stringLen) 7822 if intStringLen < 0 { 7823 return ErrInvalidLengthAmp 7824 } 7825 postIndex := iNdEx + intStringLen 7826 if postIndex < 0 { 7827 return ErrInvalidLengthAmp 7828 } 7829 if postIndex > l { 7830 return io.ErrUnexpectedEOF 7831 } 7832 m.AppSheetURI = string(dAtA[iNdEx:postIndex]) 7833 iNdEx = postIndex 7834 case 3: 7835 if wireType != 2 { 7836 return fmt.Errorf("proto: wrong wireType = %d for field BoundSeries", wireType) 7837 } 7838 var msglen int 7839 for shift := uint(0); ; shift += 7 { 7840 if shift >= 64 { 7841 return ErrIntOverflowAmp 7842 } 7843 if iNdEx >= l { 7844 return io.ErrUnexpectedEOF 7845 } 7846 b := dAtA[iNdEx] 7847 iNdEx++ 7848 msglen |= int(b&0x7F) << shift 7849 if b < 0x80 { 7850 break 7851 } 7852 } 7853 if msglen < 0 { 7854 return ErrInvalidLengthAmp 7855 } 7856 postIndex := iNdEx + msglen 7857 if postIndex < 0 { 7858 return ErrInvalidLengthAmp 7859 } 7860 if postIndex > l { 7861 return io.ErrUnexpectedEOF 7862 } 7863 m.BoundSeries = append(m.BoundSeries, &AttrSpec{}) 7864 if err := m.BoundSeries[len(m.BoundSeries)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 7865 return err 7866 } 7867 iNdEx = postIndex 7868 default: 7869 iNdEx = preIndex 7870 skippy, err := skipAmp(dAtA[iNdEx:]) 7871 if err != nil { 7872 return err 7873 } 7874 if (skippy < 0) || (iNdEx+skippy) < 0 { 7875 return ErrInvalidLengthAmp 7876 } 7877 if (iNdEx + skippy) > l { 7878 return io.ErrUnexpectedEOF 7879 } 7880 iNdEx += skippy 7881 } 7882 } 7883 7884 if iNdEx > l { 7885 return io.ErrUnexpectedEOF 7886 } 7887 return nil 7888 } 7889 func (m *SheetGroup) Unmarshal(dAtA []byte) error { 7890 l := len(dAtA) 7891 iNdEx := 0 7892 for iNdEx < l { 7893 preIndex := iNdEx 7894 var wire uint64 7895 for shift := uint(0); ; shift += 7 { 7896 if shift >= 64 { 7897 return ErrIntOverflowAmp 7898 } 7899 if iNdEx >= l { 7900 return io.ErrUnexpectedEOF 7901 } 7902 b := dAtA[iNdEx] 7903 iNdEx++ 7904 wire |= uint64(b&0x7F) << shift 7905 if b < 0x80 { 7906 break 7907 } 7908 } 7909 fieldNum := int32(wire >> 3) 7910 wireType := int(wire & 0x7) 7911 if wireType == 4 { 7912 return fmt.Errorf("proto: SheetGroup: wiretype end group for non-group") 7913 } 7914 if fieldNum <= 0 { 7915 return fmt.Errorf("proto: SheetGroup: illegal tag %d (wire type %d)", fieldNum, wire) 7916 } 7917 switch fieldNum { 7918 case 1: 7919 if wireType != 2 { 7920 return fmt.Errorf("proto: wrong wireType = %d for field SheetCatalog", wireType) 7921 } 7922 var msglen int 7923 for shift := uint(0); ; shift += 7 { 7924 if shift >= 64 { 7925 return ErrIntOverflowAmp 7926 } 7927 if iNdEx >= l { 7928 return io.ErrUnexpectedEOF 7929 } 7930 b := dAtA[iNdEx] 7931 iNdEx++ 7932 msglen |= int(b&0x7F) << shift 7933 if b < 0x80 { 7934 break 7935 } 7936 } 7937 if msglen < 0 { 7938 return ErrInvalidLengthAmp 7939 } 7940 postIndex := iNdEx + msglen 7941 if postIndex < 0 { 7942 return ErrInvalidLengthAmp 7943 } 7944 if postIndex > l { 7945 return io.ErrUnexpectedEOF 7946 } 7947 m.SheetCatalog = append(m.SheetCatalog, &SheetInfo{}) 7948 if err := m.SheetCatalog[len(m.SheetCatalog)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 7949 return err 7950 } 7951 iNdEx = postIndex 7952 default: 7953 iNdEx = preIndex 7954 skippy, err := skipAmp(dAtA[iNdEx:]) 7955 if err != nil { 7956 return err 7957 } 7958 if (skippy < 0) || (iNdEx+skippy) < 0 { 7959 return ErrInvalidLengthAmp 7960 } 7961 if (iNdEx + skippy) > l { 7962 return io.ErrUnexpectedEOF 7963 } 7964 iNdEx += skippy 7965 } 7966 } 7967 7968 if iNdEx > l { 7969 return io.ErrUnexpectedEOF 7970 } 7971 return nil 7972 } 7973 func (m *CryptoKey) Unmarshal(dAtA []byte) error { 7974 l := len(dAtA) 7975 iNdEx := 0 7976 for iNdEx < l { 7977 preIndex := iNdEx 7978 var wire uint64 7979 for shift := uint(0); ; shift += 7 { 7980 if shift >= 64 { 7981 return ErrIntOverflowAmp 7982 } 7983 if iNdEx >= l { 7984 return io.ErrUnexpectedEOF 7985 } 7986 b := dAtA[iNdEx] 7987 iNdEx++ 7988 wire |= uint64(b&0x7F) << shift 7989 if b < 0x80 { 7990 break 7991 } 7992 } 7993 fieldNum := int32(wire >> 3) 7994 wireType := int(wire & 0x7) 7995 if wireType == 4 { 7996 return fmt.Errorf("proto: CryptoKey: wiretype end group for non-group") 7997 } 7998 if fieldNum <= 0 { 7999 return fmt.Errorf("proto: CryptoKey: illegal tag %d (wire type %d)", fieldNum, wire) 8000 } 8001 switch fieldNum { 8002 case 1: 8003 if wireType != 0 { 8004 return fmt.Errorf("proto: wrong wireType = %d for field CryptoKitID", wireType) 8005 } 8006 m.CryptoKitID = 0 8007 for shift := uint(0); ; shift += 7 { 8008 if shift >= 64 { 8009 return ErrIntOverflowAmp 8010 } 8011 if iNdEx >= l { 8012 return io.ErrUnexpectedEOF 8013 } 8014 b := dAtA[iNdEx] 8015 iNdEx++ 8016 m.CryptoKitID |= CryptoKitID(b&0x7F) << shift 8017 if b < 0x80 { 8018 break 8019 } 8020 } 8021 case 4: 8022 if wireType != 2 { 8023 return fmt.Errorf("proto: wrong wireType = %d for field KeyBytes", wireType) 8024 } 8025 var byteLen int 8026 for shift := uint(0); ; shift += 7 { 8027 if shift >= 64 { 8028 return ErrIntOverflowAmp 8029 } 8030 if iNdEx >= l { 8031 return io.ErrUnexpectedEOF 8032 } 8033 b := dAtA[iNdEx] 8034 iNdEx++ 8035 byteLen |= int(b&0x7F) << shift 8036 if b < 0x80 { 8037 break 8038 } 8039 } 8040 if byteLen < 0 { 8041 return ErrInvalidLengthAmp 8042 } 8043 postIndex := iNdEx + byteLen 8044 if postIndex < 0 { 8045 return ErrInvalidLengthAmp 8046 } 8047 if postIndex > l { 8048 return io.ErrUnexpectedEOF 8049 } 8050 m.KeyBytes = append(m.KeyBytes[:0], dAtA[iNdEx:postIndex]...) 8051 if m.KeyBytes == nil { 8052 m.KeyBytes = []byte{} 8053 } 8054 iNdEx = postIndex 8055 default: 8056 iNdEx = preIndex 8057 skippy, err := skipAmp(dAtA[iNdEx:]) 8058 if err != nil { 8059 return err 8060 } 8061 if (skippy < 0) || (iNdEx+skippy) < 0 { 8062 return ErrInvalidLengthAmp 8063 } 8064 if (iNdEx + skippy) > l { 8065 return io.ErrUnexpectedEOF 8066 } 8067 iNdEx += skippy 8068 } 8069 } 8070 8071 if iNdEx > l { 8072 return io.ErrUnexpectedEOF 8073 } 8074 return nil 8075 } 8076 func (m *CellHeader) Unmarshal(dAtA []byte) error { 8077 l := len(dAtA) 8078 iNdEx := 0 8079 for iNdEx < l { 8080 preIndex := iNdEx 8081 var wire uint64 8082 for shift := uint(0); ; shift += 7 { 8083 if shift >= 64 { 8084 return ErrIntOverflowAmp 8085 } 8086 if iNdEx >= l { 8087 return io.ErrUnexpectedEOF 8088 } 8089 b := dAtA[iNdEx] 8090 iNdEx++ 8091 wire |= uint64(b&0x7F) << shift 8092 if b < 0x80 { 8093 break 8094 } 8095 } 8096 fieldNum := int32(wire >> 3) 8097 wireType := int(wire & 0x7) 8098 if wireType == 4 { 8099 return fmt.Errorf("proto: CellHeader: wiretype end group for non-group") 8100 } 8101 if fieldNum <= 0 { 8102 return fmt.Errorf("proto: CellHeader: illegal tag %d (wire type %d)", fieldNum, wire) 8103 } 8104 switch fieldNum { 8105 case 2: 8106 if wireType != 2 { 8107 return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType) 8108 } 8109 var stringLen uint64 8110 for shift := uint(0); ; shift += 7 { 8111 if shift >= 64 { 8112 return ErrIntOverflowAmp 8113 } 8114 if iNdEx >= l { 8115 return io.ErrUnexpectedEOF 8116 } 8117 b := dAtA[iNdEx] 8118 iNdEx++ 8119 stringLen |= uint64(b&0x7F) << shift 8120 if b < 0x80 { 8121 break 8122 } 8123 } 8124 intStringLen := int(stringLen) 8125 if intStringLen < 0 { 8126 return ErrInvalidLengthAmp 8127 } 8128 postIndex := iNdEx + intStringLen 8129 if postIndex < 0 { 8130 return ErrInvalidLengthAmp 8131 } 8132 if postIndex > l { 8133 return io.ErrUnexpectedEOF 8134 } 8135 m.Title = string(dAtA[iNdEx:postIndex]) 8136 iNdEx = postIndex 8137 case 3: 8138 if wireType != 2 { 8139 return fmt.Errorf("proto: wrong wireType = %d for field Subtitle", wireType) 8140 } 8141 var stringLen uint64 8142 for shift := uint(0); ; shift += 7 { 8143 if shift >= 64 { 8144 return ErrIntOverflowAmp 8145 } 8146 if iNdEx >= l { 8147 return io.ErrUnexpectedEOF 8148 } 8149 b := dAtA[iNdEx] 8150 iNdEx++ 8151 stringLen |= uint64(b&0x7F) << shift 8152 if b < 0x80 { 8153 break 8154 } 8155 } 8156 intStringLen := int(stringLen) 8157 if intStringLen < 0 { 8158 return ErrInvalidLengthAmp 8159 } 8160 postIndex := iNdEx + intStringLen 8161 if postIndex < 0 { 8162 return ErrInvalidLengthAmp 8163 } 8164 if postIndex > l { 8165 return io.ErrUnexpectedEOF 8166 } 8167 m.Subtitle = string(dAtA[iNdEx:postIndex]) 8168 iNdEx = postIndex 8169 case 4: 8170 if wireType != 2 { 8171 return fmt.Errorf("proto: wrong wireType = %d for field About", wireType) 8172 } 8173 var stringLen uint64 8174 for shift := uint(0); ; shift += 7 { 8175 if shift >= 64 { 8176 return ErrIntOverflowAmp 8177 } 8178 if iNdEx >= l { 8179 return io.ErrUnexpectedEOF 8180 } 8181 b := dAtA[iNdEx] 8182 iNdEx++ 8183 stringLen |= uint64(b&0x7F) << shift 8184 if b < 0x80 { 8185 break 8186 } 8187 } 8188 intStringLen := int(stringLen) 8189 if intStringLen < 0 { 8190 return ErrInvalidLengthAmp 8191 } 8192 postIndex := iNdEx + intStringLen 8193 if postIndex < 0 { 8194 return ErrInvalidLengthAmp 8195 } 8196 if postIndex > l { 8197 return io.ErrUnexpectedEOF 8198 } 8199 m.About = string(dAtA[iNdEx:postIndex]) 8200 iNdEx = postIndex 8201 case 6: 8202 if wireType != 2 { 8203 return fmt.Errorf("proto: wrong wireType = %d for field Glyphs", wireType) 8204 } 8205 var msglen int 8206 for shift := uint(0); ; shift += 7 { 8207 if shift >= 64 { 8208 return ErrIntOverflowAmp 8209 } 8210 if iNdEx >= l { 8211 return io.ErrUnexpectedEOF 8212 } 8213 b := dAtA[iNdEx] 8214 iNdEx++ 8215 msglen |= int(b&0x7F) << shift 8216 if b < 0x80 { 8217 break 8218 } 8219 } 8220 if msglen < 0 { 8221 return ErrInvalidLengthAmp 8222 } 8223 postIndex := iNdEx + msglen 8224 if postIndex < 0 { 8225 return ErrInvalidLengthAmp 8226 } 8227 if postIndex > l { 8228 return io.ErrUnexpectedEOF 8229 } 8230 m.Glyphs = append(m.Glyphs, &AssetTag{}) 8231 if err := m.Glyphs[len(m.Glyphs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 8232 return err 8233 } 8234 iNdEx = postIndex 8235 case 8: 8236 if wireType != 0 { 8237 return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType) 8238 } 8239 m.Created = 0 8240 for shift := uint(0); ; shift += 7 { 8241 if shift >= 64 { 8242 return ErrIntOverflowAmp 8243 } 8244 if iNdEx >= l { 8245 return io.ErrUnexpectedEOF 8246 } 8247 b := dAtA[iNdEx] 8248 iNdEx++ 8249 m.Created |= int64(b&0x7F) << shift 8250 if b < 0x80 { 8251 break 8252 } 8253 } 8254 case 9: 8255 if wireType != 0 { 8256 return fmt.Errorf("proto: wrong wireType = %d for field Modified", wireType) 8257 } 8258 m.Modified = 0 8259 for shift := uint(0); ; shift += 7 { 8260 if shift >= 64 { 8261 return ErrIntOverflowAmp 8262 } 8263 if iNdEx >= l { 8264 return io.ErrUnexpectedEOF 8265 } 8266 b := dAtA[iNdEx] 8267 iNdEx++ 8268 m.Modified |= int64(b&0x7F) << shift 8269 if b < 0x80 { 8270 break 8271 } 8272 } 8273 case 20: 8274 if wireType != 2 { 8275 return fmt.Errorf("proto: wrong wireType = %d for field CellURL", wireType) 8276 } 8277 var stringLen uint64 8278 for shift := uint(0); ; shift += 7 { 8279 if shift >= 64 { 8280 return ErrIntOverflowAmp 8281 } 8282 if iNdEx >= l { 8283 return io.ErrUnexpectedEOF 8284 } 8285 b := dAtA[iNdEx] 8286 iNdEx++ 8287 stringLen |= uint64(b&0x7F) << shift 8288 if b < 0x80 { 8289 break 8290 } 8291 } 8292 intStringLen := int(stringLen) 8293 if intStringLen < 0 { 8294 return ErrInvalidLengthAmp 8295 } 8296 postIndex := iNdEx + intStringLen 8297 if postIndex < 0 { 8298 return ErrInvalidLengthAmp 8299 } 8300 if postIndex > l { 8301 return io.ErrUnexpectedEOF 8302 } 8303 m.CellURL = string(dAtA[iNdEx:postIndex]) 8304 iNdEx = postIndex 8305 case 22: 8306 if wireType != 2 { 8307 return fmt.Errorf("proto: wrong wireType = %d for field ExternalLink", wireType) 8308 } 8309 var msglen int 8310 for shift := uint(0); ; shift += 7 { 8311 if shift >= 64 { 8312 return ErrIntOverflowAmp 8313 } 8314 if iNdEx >= l { 8315 return io.ErrUnexpectedEOF 8316 } 8317 b := dAtA[iNdEx] 8318 iNdEx++ 8319 msglen |= int(b&0x7F) << shift 8320 if b < 0x80 { 8321 break 8322 } 8323 } 8324 if msglen < 0 { 8325 return ErrInvalidLengthAmp 8326 } 8327 postIndex := iNdEx + msglen 8328 if postIndex < 0 { 8329 return ErrInvalidLengthAmp 8330 } 8331 if postIndex > l { 8332 return io.ErrUnexpectedEOF 8333 } 8334 if m.ExternalLink == nil { 8335 m.ExternalLink = &AssetTag{} 8336 } 8337 if err := m.ExternalLink.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 8338 return err 8339 } 8340 iNdEx = postIndex 8341 default: 8342 iNdEx = preIndex 8343 skippy, err := skipAmp(dAtA[iNdEx:]) 8344 if err != nil { 8345 return err 8346 } 8347 if (skippy < 0) || (iNdEx+skippy) < 0 { 8348 return ErrInvalidLengthAmp 8349 } 8350 if (iNdEx + skippy) > l { 8351 return io.ErrUnexpectedEOF 8352 } 8353 iNdEx += skippy 8354 } 8355 } 8356 8357 if iNdEx > l { 8358 return io.ErrUnexpectedEOF 8359 } 8360 return nil 8361 } 8362 func (m *AuthToken) Unmarshal(dAtA []byte) error { 8363 l := len(dAtA) 8364 iNdEx := 0 8365 for iNdEx < l { 8366 preIndex := iNdEx 8367 var wire uint64 8368 for shift := uint(0); ; shift += 7 { 8369 if shift >= 64 { 8370 return ErrIntOverflowAmp 8371 } 8372 if iNdEx >= l { 8373 return io.ErrUnexpectedEOF 8374 } 8375 b := dAtA[iNdEx] 8376 iNdEx++ 8377 wire |= uint64(b&0x7F) << shift 8378 if b < 0x80 { 8379 break 8380 } 8381 } 8382 fieldNum := int32(wire >> 3) 8383 wireType := int(wire & 0x7) 8384 if wireType == 4 { 8385 return fmt.Errorf("proto: AuthToken: wiretype end group for non-group") 8386 } 8387 if fieldNum <= 0 { 8388 return fmt.Errorf("proto: AuthToken: illegal tag %d (wire type %d)", fieldNum, wire) 8389 } 8390 switch fieldNum { 8391 case 1: 8392 if wireType != 2 { 8393 return fmt.Errorf("proto: wrong wireType = %d for field AccessToken", wireType) 8394 } 8395 var stringLen uint64 8396 for shift := uint(0); ; shift += 7 { 8397 if shift >= 64 { 8398 return ErrIntOverflowAmp 8399 } 8400 if iNdEx >= l { 8401 return io.ErrUnexpectedEOF 8402 } 8403 b := dAtA[iNdEx] 8404 iNdEx++ 8405 stringLen |= uint64(b&0x7F) << shift 8406 if b < 0x80 { 8407 break 8408 } 8409 } 8410 intStringLen := int(stringLen) 8411 if intStringLen < 0 { 8412 return ErrInvalidLengthAmp 8413 } 8414 postIndex := iNdEx + intStringLen 8415 if postIndex < 0 { 8416 return ErrInvalidLengthAmp 8417 } 8418 if postIndex > l { 8419 return io.ErrUnexpectedEOF 8420 } 8421 m.AccessToken = string(dAtA[iNdEx:postIndex]) 8422 iNdEx = postIndex 8423 case 2: 8424 if wireType != 2 { 8425 return fmt.Errorf("proto: wrong wireType = %d for field TokenType", wireType) 8426 } 8427 var stringLen uint64 8428 for shift := uint(0); ; shift += 7 { 8429 if shift >= 64 { 8430 return ErrIntOverflowAmp 8431 } 8432 if iNdEx >= l { 8433 return io.ErrUnexpectedEOF 8434 } 8435 b := dAtA[iNdEx] 8436 iNdEx++ 8437 stringLen |= uint64(b&0x7F) << shift 8438 if b < 0x80 { 8439 break 8440 } 8441 } 8442 intStringLen := int(stringLen) 8443 if intStringLen < 0 { 8444 return ErrInvalidLengthAmp 8445 } 8446 postIndex := iNdEx + intStringLen 8447 if postIndex < 0 { 8448 return ErrInvalidLengthAmp 8449 } 8450 if postIndex > l { 8451 return io.ErrUnexpectedEOF 8452 } 8453 m.TokenType = string(dAtA[iNdEx:postIndex]) 8454 iNdEx = postIndex 8455 case 3: 8456 if wireType != 2 { 8457 return fmt.Errorf("proto: wrong wireType = %d for field RefreshToken", wireType) 8458 } 8459 var stringLen uint64 8460 for shift := uint(0); ; shift += 7 { 8461 if shift >= 64 { 8462 return ErrIntOverflowAmp 8463 } 8464 if iNdEx >= l { 8465 return io.ErrUnexpectedEOF 8466 } 8467 b := dAtA[iNdEx] 8468 iNdEx++ 8469 stringLen |= uint64(b&0x7F) << shift 8470 if b < 0x80 { 8471 break 8472 } 8473 } 8474 intStringLen := int(stringLen) 8475 if intStringLen < 0 { 8476 return ErrInvalidLengthAmp 8477 } 8478 postIndex := iNdEx + intStringLen 8479 if postIndex < 0 { 8480 return ErrInvalidLengthAmp 8481 } 8482 if postIndex > l { 8483 return io.ErrUnexpectedEOF 8484 } 8485 m.RefreshToken = string(dAtA[iNdEx:postIndex]) 8486 iNdEx = postIndex 8487 case 4: 8488 if wireType != 0 { 8489 return fmt.Errorf("proto: wrong wireType = %d for field Expiry", wireType) 8490 } 8491 m.Expiry = 0 8492 for shift := uint(0); ; shift += 7 { 8493 if shift >= 64 { 8494 return ErrIntOverflowAmp 8495 } 8496 if iNdEx >= l { 8497 return io.ErrUnexpectedEOF 8498 } 8499 b := dAtA[iNdEx] 8500 iNdEx++ 8501 m.Expiry |= int64(b&0x7F) << shift 8502 if b < 0x80 { 8503 break 8504 } 8505 } 8506 default: 8507 iNdEx = preIndex 8508 skippy, err := skipAmp(dAtA[iNdEx:]) 8509 if err != nil { 8510 return err 8511 } 8512 if (skippy < 0) || (iNdEx+skippy) < 0 { 8513 return ErrInvalidLengthAmp 8514 } 8515 if (iNdEx + skippy) > l { 8516 return io.ErrUnexpectedEOF 8517 } 8518 iNdEx += skippy 8519 } 8520 } 8521 8522 if iNdEx > l { 8523 return io.ErrUnexpectedEOF 8524 } 8525 return nil 8526 } 8527 func (m *TRS) Unmarshal(dAtA []byte) error { 8528 l := len(dAtA) 8529 iNdEx := 0 8530 for iNdEx < l { 8531 preIndex := iNdEx 8532 var wire uint64 8533 for shift := uint(0); ; shift += 7 { 8534 if shift >= 64 { 8535 return ErrIntOverflowAmp 8536 } 8537 if iNdEx >= l { 8538 return io.ErrUnexpectedEOF 8539 } 8540 b := dAtA[iNdEx] 8541 iNdEx++ 8542 wire |= uint64(b&0x7F) << shift 8543 if b < 0x80 { 8544 break 8545 } 8546 } 8547 fieldNum := int32(wire >> 3) 8548 wireType := int(wire & 0x7) 8549 if wireType == 4 { 8550 return fmt.Errorf("proto: TRS: wiretype end group for non-group") 8551 } 8552 if fieldNum <= 0 { 8553 return fmt.Errorf("proto: TRS: illegal tag %d (wire type %d)", fieldNum, wire) 8554 } 8555 switch fieldNum { 8556 case 41: 8557 if wireType != 1 { 8558 return fmt.Errorf("proto: wrong wireType = %d for field X1", wireType) 8559 } 8560 var v uint64 8561 if (iNdEx + 8) > l { 8562 return io.ErrUnexpectedEOF 8563 } 8564 v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) 8565 iNdEx += 8 8566 m.X1 = float64(math.Float64frombits(v)) 8567 case 42: 8568 if wireType != 1 { 8569 return fmt.Errorf("proto: wrong wireType = %d for field X2", wireType) 8570 } 8571 var v uint64 8572 if (iNdEx + 8) > l { 8573 return io.ErrUnexpectedEOF 8574 } 8575 v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) 8576 iNdEx += 8 8577 m.X2 = float64(math.Float64frombits(v)) 8578 case 43: 8579 if wireType != 1 { 8580 return fmt.Errorf("proto: wrong wireType = %d for field X3", wireType) 8581 } 8582 var v uint64 8583 if (iNdEx + 8) > l { 8584 return io.ErrUnexpectedEOF 8585 } 8586 v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) 8587 iNdEx += 8 8588 m.X3 = float64(math.Float64frombits(v)) 8589 case 50: 8590 if wireType != 0 { 8591 return fmt.Errorf("proto: wrong wireType = %d for field ScaleMode", wireType) 8592 } 8593 m.ScaleMode = 0 8594 for shift := uint(0); ; shift += 7 { 8595 if shift >= 64 { 8596 return ErrIntOverflowAmp 8597 } 8598 if iNdEx >= l { 8599 return io.ErrUnexpectedEOF 8600 } 8601 b := dAtA[iNdEx] 8602 iNdEx++ 8603 m.ScaleMode |= TRS_VisualScaleMode(b&0x7F) << shift 8604 if b < 0x80 { 8605 break 8606 } 8607 } 8608 case 51: 8609 if wireType != 5 { 8610 return fmt.Errorf("proto: wrong wireType = %d for field Scale1", wireType) 8611 } 8612 var v uint32 8613 if (iNdEx + 4) > l { 8614 return io.ErrUnexpectedEOF 8615 } 8616 v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) 8617 iNdEx += 4 8618 m.Scale1 = float32(math.Float32frombits(v)) 8619 case 52: 8620 if wireType != 5 { 8621 return fmt.Errorf("proto: wrong wireType = %d for field Scale2", wireType) 8622 } 8623 var v uint32 8624 if (iNdEx + 4) > l { 8625 return io.ErrUnexpectedEOF 8626 } 8627 v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) 8628 iNdEx += 4 8629 m.Scale2 = float32(math.Float32frombits(v)) 8630 case 53: 8631 if wireType != 5 { 8632 return fmt.Errorf("proto: wrong wireType = %d for field Scale3", wireType) 8633 } 8634 var v uint32 8635 if (iNdEx + 4) > l { 8636 return io.ErrUnexpectedEOF 8637 } 8638 v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) 8639 iNdEx += 4 8640 m.Scale3 = float32(math.Float32frombits(v)) 8641 case 61: 8642 if wireType != 5 { 8643 return fmt.Errorf("proto: wrong wireType = %d for field Rotate1", wireType) 8644 } 8645 var v uint32 8646 if (iNdEx + 4) > l { 8647 return io.ErrUnexpectedEOF 8648 } 8649 v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) 8650 iNdEx += 4 8651 m.Rotate1 = float32(math.Float32frombits(v)) 8652 case 62: 8653 if wireType != 5 { 8654 return fmt.Errorf("proto: wrong wireType = %d for field Rotate2", wireType) 8655 } 8656 var v uint32 8657 if (iNdEx + 4) > l { 8658 return io.ErrUnexpectedEOF 8659 } 8660 v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) 8661 iNdEx += 4 8662 m.Rotate2 = float32(math.Float32frombits(v)) 8663 case 63: 8664 if wireType != 5 { 8665 return fmt.Errorf("proto: wrong wireType = %d for field Rotate3", wireType) 8666 } 8667 var v uint32 8668 if (iNdEx + 4) > l { 8669 return io.ErrUnexpectedEOF 8670 } 8671 v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) 8672 iNdEx += 4 8673 m.Rotate3 = float32(math.Float32frombits(v)) 8674 default: 8675 iNdEx = preIndex 8676 skippy, err := skipAmp(dAtA[iNdEx:]) 8677 if err != nil { 8678 return err 8679 } 8680 if (skippy < 0) || (iNdEx+skippy) < 0 { 8681 return ErrInvalidLengthAmp 8682 } 8683 if (iNdEx + skippy) > l { 8684 return io.ErrUnexpectedEOF 8685 } 8686 iNdEx += skippy 8687 } 8688 } 8689 8690 if iNdEx > l { 8691 return io.ErrUnexpectedEOF 8692 } 8693 return nil 8694 } 8695 func (m *FeedParams) Unmarshal(dAtA []byte) error { 8696 l := len(dAtA) 8697 iNdEx := 0 8698 for iNdEx < l { 8699 preIndex := iNdEx 8700 var wire uint64 8701 for shift := uint(0); ; shift += 7 { 8702 if shift >= 64 { 8703 return ErrIntOverflowAmp 8704 } 8705 if iNdEx >= l { 8706 return io.ErrUnexpectedEOF 8707 } 8708 b := dAtA[iNdEx] 8709 iNdEx++ 8710 wire |= uint64(b&0x7F) << shift 8711 if b < 0x80 { 8712 break 8713 } 8714 } 8715 fieldNum := int32(wire >> 3) 8716 wireType := int(wire & 0x7) 8717 if wireType == 4 { 8718 return fmt.Errorf("proto: FeedParams: wiretype end group for non-group") 8719 } 8720 if fieldNum <= 0 { 8721 return fmt.Errorf("proto: FeedParams: illegal tag %d (wire type %d)", fieldNum, wire) 8722 } 8723 switch fieldNum { 8724 case 2: 8725 if wireType != 5 { 8726 return fmt.Errorf("proto: wrong wireType = %d for field UpdateIntervalMin", wireType) 8727 } 8728 var v uint32 8729 if (iNdEx + 4) > l { 8730 return io.ErrUnexpectedEOF 8731 } 8732 v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) 8733 iNdEx += 4 8734 m.UpdateIntervalMin = float32(math.Float32frombits(v)) 8735 case 3: 8736 if wireType != 5 { 8737 return fmt.Errorf("proto: wrong wireType = %d for field UpdateIntervalMax", wireType) 8738 } 8739 var v uint32 8740 if (iNdEx + 4) > l { 8741 return io.ErrUnexpectedEOF 8742 } 8743 v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) 8744 iNdEx += 4 8745 m.UpdateIntervalMax = float32(math.Float32frombits(v)) 8746 default: 8747 iNdEx = preIndex 8748 skippy, err := skipAmp(dAtA[iNdEx:]) 8749 if err != nil { 8750 return err 8751 } 8752 if (skippy < 0) || (iNdEx+skippy) < 0 { 8753 return ErrInvalidLengthAmp 8754 } 8755 if (iNdEx + skippy) > l { 8756 return io.ErrUnexpectedEOF 8757 } 8758 iNdEx += skippy 8759 } 8760 } 8761 8762 if iNdEx > l { 8763 return io.ErrUnexpectedEOF 8764 } 8765 return nil 8766 } 8767 func (m *DataSegment) Unmarshal(dAtA []byte) error { 8768 l := len(dAtA) 8769 iNdEx := 0 8770 for iNdEx < l { 8771 preIndex := iNdEx 8772 var wire uint64 8773 for shift := uint(0); ; shift += 7 { 8774 if shift >= 64 { 8775 return ErrIntOverflowAmp 8776 } 8777 if iNdEx >= l { 8778 return io.ErrUnexpectedEOF 8779 } 8780 b := dAtA[iNdEx] 8781 iNdEx++ 8782 wire |= uint64(b&0x7F) << shift 8783 if b < 0x80 { 8784 break 8785 } 8786 } 8787 fieldNum := int32(wire >> 3) 8788 wireType := int(wire & 0x7) 8789 if wireType == 4 { 8790 return fmt.Errorf("proto: DataSegment: wiretype end group for non-group") 8791 } 8792 if fieldNum <= 0 { 8793 return fmt.Errorf("proto: DataSegment: illegal tag %d (wire type %d)", fieldNum, wire) 8794 } 8795 switch fieldNum { 8796 case 5: 8797 if wireType != 0 { 8798 return fmt.Errorf("proto: wrong wireType = %d for field ByteOfs", wireType) 8799 } 8800 m.ByteOfs = 0 8801 for shift := uint(0); ; shift += 7 { 8802 if shift >= 64 { 8803 return ErrIntOverflowAmp 8804 } 8805 if iNdEx >= l { 8806 return io.ErrUnexpectedEOF 8807 } 8808 b := dAtA[iNdEx] 8809 iNdEx++ 8810 m.ByteOfs |= uint64(b&0x7F) << shift 8811 if b < 0x80 { 8812 break 8813 } 8814 } 8815 case 6: 8816 if wireType != 0 { 8817 return fmt.Errorf("proto: wrong wireType = %d for field ByteSz", wireType) 8818 } 8819 m.ByteSz = 0 8820 for shift := uint(0); ; shift += 7 { 8821 if shift >= 64 { 8822 return ErrIntOverflowAmp 8823 } 8824 if iNdEx >= l { 8825 return io.ErrUnexpectedEOF 8826 } 8827 b := dAtA[iNdEx] 8828 iNdEx++ 8829 m.ByteSz |= uint64(b&0x7F) << shift 8830 if b < 0x80 { 8831 break 8832 } 8833 } 8834 case 7: 8835 if wireType != 2 { 8836 return fmt.Errorf("proto: wrong wireType = %d for field InlineData", wireType) 8837 } 8838 var byteLen int 8839 for shift := uint(0); ; shift += 7 { 8840 if shift >= 64 { 8841 return ErrIntOverflowAmp 8842 } 8843 if iNdEx >= l { 8844 return io.ErrUnexpectedEOF 8845 } 8846 b := dAtA[iNdEx] 8847 iNdEx++ 8848 byteLen |= int(b&0x7F) << shift 8849 if b < 0x80 { 8850 break 8851 } 8852 } 8853 if byteLen < 0 { 8854 return ErrInvalidLengthAmp 8855 } 8856 postIndex := iNdEx + byteLen 8857 if postIndex < 0 { 8858 return ErrInvalidLengthAmp 8859 } 8860 if postIndex > l { 8861 return io.ErrUnexpectedEOF 8862 } 8863 m.InlineData = append(m.InlineData[:0], dAtA[iNdEx:postIndex]...) 8864 if m.InlineData == nil { 8865 m.InlineData = []byte{} 8866 } 8867 iNdEx = postIndex 8868 case 9: 8869 if wireType != 2 { 8870 return fmt.Errorf("proto: wrong wireType = %d for field StreamURI", wireType) 8871 } 8872 var stringLen uint64 8873 for shift := uint(0); ; shift += 7 { 8874 if shift >= 64 { 8875 return ErrIntOverflowAmp 8876 } 8877 if iNdEx >= l { 8878 return io.ErrUnexpectedEOF 8879 } 8880 b := dAtA[iNdEx] 8881 iNdEx++ 8882 stringLen |= uint64(b&0x7F) << shift 8883 if b < 0x80 { 8884 break 8885 } 8886 } 8887 intStringLen := int(stringLen) 8888 if intStringLen < 0 { 8889 return ErrInvalidLengthAmp 8890 } 8891 postIndex := iNdEx + intStringLen 8892 if postIndex < 0 { 8893 return ErrInvalidLengthAmp 8894 } 8895 if postIndex > l { 8896 return io.ErrUnexpectedEOF 8897 } 8898 m.StreamURI = string(dAtA[iNdEx:postIndex]) 8899 iNdEx = postIndex 8900 case 10: 8901 if wireType != 0 { 8902 return fmt.Errorf("proto: wrong wireType = %d for field BlobID", wireType) 8903 } 8904 m.BlobID = 0 8905 for shift := uint(0); ; shift += 7 { 8906 if shift >= 64 { 8907 return ErrIntOverflowAmp 8908 } 8909 if iNdEx >= l { 8910 return io.ErrUnexpectedEOF 8911 } 8912 b := dAtA[iNdEx] 8913 iNdEx++ 8914 m.BlobID |= int64(b&0x7F) << shift 8915 if b < 0x80 { 8916 break 8917 } 8918 } 8919 default: 8920 iNdEx = preIndex 8921 skippy, err := skipAmp(dAtA[iNdEx:]) 8922 if err != nil { 8923 return err 8924 } 8925 if (skippy < 0) || (iNdEx+skippy) < 0 { 8926 return ErrInvalidLengthAmp 8927 } 8928 if (iNdEx + skippy) > l { 8929 return io.ErrUnexpectedEOF 8930 } 8931 iNdEx += skippy 8932 } 8933 } 8934 8935 if iNdEx > l { 8936 return io.ErrUnexpectedEOF 8937 } 8938 return nil 8939 } 8940 func (m *Err) Unmarshal(dAtA []byte) error { 8941 l := len(dAtA) 8942 iNdEx := 0 8943 for iNdEx < l { 8944 preIndex := iNdEx 8945 var wire uint64 8946 for shift := uint(0); ; shift += 7 { 8947 if shift >= 64 { 8948 return ErrIntOverflowAmp 8949 } 8950 if iNdEx >= l { 8951 return io.ErrUnexpectedEOF 8952 } 8953 b := dAtA[iNdEx] 8954 iNdEx++ 8955 wire |= uint64(b&0x7F) << shift 8956 if b < 0x80 { 8957 break 8958 } 8959 } 8960 fieldNum := int32(wire >> 3) 8961 wireType := int(wire & 0x7) 8962 if wireType == 4 { 8963 return fmt.Errorf("proto: Err: wiretype end group for non-group") 8964 } 8965 if fieldNum <= 0 { 8966 return fmt.Errorf("proto: Err: illegal tag %d (wire type %d)", fieldNum, wire) 8967 } 8968 switch fieldNum { 8969 case 1: 8970 if wireType != 0 { 8971 return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) 8972 } 8973 m.Code = 0 8974 for shift := uint(0); ; shift += 7 { 8975 if shift >= 64 { 8976 return ErrIntOverflowAmp 8977 } 8978 if iNdEx >= l { 8979 return io.ErrUnexpectedEOF 8980 } 8981 b := dAtA[iNdEx] 8982 iNdEx++ 8983 m.Code |= ErrCode(b&0x7F) << shift 8984 if b < 0x80 { 8985 break 8986 } 8987 } 8988 case 2: 8989 if wireType != 0 { 8990 return fmt.Errorf("proto: wrong wireType = %d for field Level", wireType) 8991 } 8992 m.Level = 0 8993 for shift := uint(0); ; shift += 7 { 8994 if shift >= 64 { 8995 return ErrIntOverflowAmp 8996 } 8997 if iNdEx >= l { 8998 return io.ErrUnexpectedEOF 8999 } 9000 b := dAtA[iNdEx] 9001 iNdEx++ 9002 m.Level |= LogLevel(b&0x7F) << shift 9003 if b < 0x80 { 9004 break 9005 } 9006 } 9007 case 4: 9008 if wireType != 2 { 9009 return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType) 9010 } 9011 var stringLen uint64 9012 for shift := uint(0); ; shift += 7 { 9013 if shift >= 64 { 9014 return ErrIntOverflowAmp 9015 } 9016 if iNdEx >= l { 9017 return io.ErrUnexpectedEOF 9018 } 9019 b := dAtA[iNdEx] 9020 iNdEx++ 9021 stringLen |= uint64(b&0x7F) << shift 9022 if b < 0x80 { 9023 break 9024 } 9025 } 9026 intStringLen := int(stringLen) 9027 if intStringLen < 0 { 9028 return ErrInvalidLengthAmp 9029 } 9030 postIndex := iNdEx + intStringLen 9031 if postIndex < 0 { 9032 return ErrInvalidLengthAmp 9033 } 9034 if postIndex > l { 9035 return io.ErrUnexpectedEOF 9036 } 9037 m.Msg = string(dAtA[iNdEx:postIndex]) 9038 iNdEx = postIndex 9039 default: 9040 iNdEx = preIndex 9041 skippy, err := skipAmp(dAtA[iNdEx:]) 9042 if err != nil { 9043 return err 9044 } 9045 if (skippy < 0) || (iNdEx+skippy) < 0 { 9046 return ErrInvalidLengthAmp 9047 } 9048 if (iNdEx + skippy) > l { 9049 return io.ErrUnexpectedEOF 9050 } 9051 iNdEx += skippy 9052 } 9053 } 9054 9055 if iNdEx > l { 9056 return io.ErrUnexpectedEOF 9057 } 9058 return nil 9059 } 9060 func skipAmp(dAtA []byte) (n int, err error) { 9061 l := len(dAtA) 9062 iNdEx := 0 9063 depth := 0 9064 for iNdEx < l { 9065 var wire uint64 9066 for shift := uint(0); ; shift += 7 { 9067 if shift >= 64 { 9068 return 0, ErrIntOverflowAmp 9069 } 9070 if iNdEx >= l { 9071 return 0, io.ErrUnexpectedEOF 9072 } 9073 b := dAtA[iNdEx] 9074 iNdEx++ 9075 wire |= (uint64(b) & 0x7F) << shift 9076 if b < 0x80 { 9077 break 9078 } 9079 } 9080 wireType := int(wire & 0x7) 9081 switch wireType { 9082 case 0: 9083 for shift := uint(0); ; shift += 7 { 9084 if shift >= 64 { 9085 return 0, ErrIntOverflowAmp 9086 } 9087 if iNdEx >= l { 9088 return 0, io.ErrUnexpectedEOF 9089 } 9090 iNdEx++ 9091 if dAtA[iNdEx-1] < 0x80 { 9092 break 9093 } 9094 } 9095 case 1: 9096 iNdEx += 8 9097 case 2: 9098 var length int 9099 for shift := uint(0); ; shift += 7 { 9100 if shift >= 64 { 9101 return 0, ErrIntOverflowAmp 9102 } 9103 if iNdEx >= l { 9104 return 0, io.ErrUnexpectedEOF 9105 } 9106 b := dAtA[iNdEx] 9107 iNdEx++ 9108 length |= (int(b) & 0x7F) << shift 9109 if b < 0x80 { 9110 break 9111 } 9112 } 9113 if length < 0 { 9114 return 0, ErrInvalidLengthAmp 9115 } 9116 iNdEx += length 9117 case 3: 9118 depth++ 9119 case 4: 9120 if depth == 0 { 9121 return 0, ErrUnexpectedEndOfGroupAmp 9122 } 9123 depth-- 9124 case 5: 9125 iNdEx += 4 9126 default: 9127 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 9128 } 9129 if iNdEx < 0 { 9130 return 0, ErrInvalidLengthAmp 9131 } 9132 if depth == 0 { 9133 return iNdEx, nil 9134 } 9135 } 9136 return 0, io.ErrUnexpectedEOF 9137 } 9138 9139 var ( 9140 ErrInvalidLengthAmp = fmt.Errorf("proto: negative length found during unmarshaling") 9141 ErrIntOverflowAmp = fmt.Errorf("proto: integer overflow") 9142 ErrUnexpectedEndOfGroupAmp = fmt.Errorf("proto: unexpected end of group") 9143 )