From 4baf5ceae36d08f064001c86e44c5548b0d20f26 Mon Sep 17 00:00:00 2001 From: D4ryl00 Date: Mon, 11 Dec 2023 11:46:28 +0100 Subject: [PATCH 01/20] fix: error tests Signed-off-by: D4ryl00 --- pkg/errcode/error.go | 46 +++++++++++++++++----------------- pkg/errcode/error_test.go | 52 +++++++++++++++++++-------------------- 2 files changed, 48 insertions(+), 50 deletions(-) diff --git a/pkg/errcode/error.go b/pkg/errcode/error.go index f0ce17de..963636d4 100644 --- a/pkg/errcode/error.go +++ b/pkg/errcode/error.go @@ -27,7 +27,7 @@ func Codes(err error) []ErrCode { return codesFromGRPCStatus(st) } - if code := Code(err); code != -1 { + if code := currentCode(err); code != -1 { codes = []ErrCode{code} } if cause := genericCause(err); cause != nil { @@ -51,13 +51,13 @@ func Has(err error, code WithCode) bool { return false } -// Is returns true if the top-level error (not the FirstCode) is actually an ErrCode of the same value +// Is returns true if the top-level error (it doesn't unwrap it) is actually an ErrCode of the same value func Is(err error, code WithCode) bool { - return Code(err) == code.Code() + return currentCode(err) == code.Code() } -// Code returns the code of the actual error without trying to unwrap it, or -1. -func Code(err error) ErrCode { +// currentCode returns the code of the actual error without trying to unwrap it, or -1. +func currentCode(err error) ErrCode { if err == nil { return -1 } @@ -77,6 +77,23 @@ func Code(err error) ErrCode { return -1 } +// Code walks the passed error and returns the code of the first ErrCode met, or -1. +func Code(err error) ErrCode { + if err == nil { + return -1 + } + + if code := currentCode(err); code != -1 { + return code + } + + if cause := genericCause(err); cause != nil { + return Code(cause) + } + + return -1 +} + // LastCode walks the passed error and returns the code of the latest ErrCode, or -1. func LastCode(err error) ErrCode { if err == nil { @@ -97,24 +114,7 @@ func LastCode(err error) ErrCode { return -1 } - return Code(err) -} - -// FirstCode walks the passed error and returns the code of the first ErrCode met, or -1. -func FirstCode(err error) ErrCode { - if err == nil { - return -1 - } - - if code := Code(err); code != -1 { - return code - } - - if cause := genericCause(err); cause != nil { - return FirstCode(cause) - } - - return -1 + return currentCode(err) } func genericCause(err error) error { diff --git a/pkg/errcode/error_test.go b/pkg/errcode/error_test.go index 62d6b785..98a7f6d2 100644 --- a/pkg/errcode/error_test.go +++ b/pkg/errcode/error_test.go @@ -25,37 +25,35 @@ func TestError(t *testing.T) { // table-driven tests tests := []struct { - name string - input error - expectedString string - expectedCause error - expectedCode ErrCode - expectedFirstCode ErrCode - expectedLastCode ErrCode - expectedCodes []ErrCode - has777 bool - has888 bool - is777 bool - is888 bool + name string + input error + expectedString string + expectedCause error + expectedCode ErrCode + expectedLastCode ErrCode + expectedCodes []ErrCode + has777 bool + has888 bool + is777 bool + is888 bool }{ - {"ErrInternal", ErrInternal, "ErrInternal(#888)", ErrInternal, 888, 888, 888, []ErrCode{888}, false, true, false, true}, - {"ErrNotImplemented", ErrNotImplemented, "ErrNotImplemented(#777)", ErrNotImplemented, 777, 777, 777, []ErrCode{777}, true, false, true, false}, - {"ErrNotImplemented.Wrap(ErrInternal)", ErrNotImplemented.Wrap(ErrInternal), "ErrNotImplemented(#777): ErrInternal(#888)", ErrInternal, 777, 777, 888, []ErrCode{777, 888}, true, true, true, false}, - {"ErrNotImplemented.Wrap(ErrInternal.Wrap(TODO))", ErrNotImplemented.Wrap(ErrInternal.Wrap(TODO)), "ErrNotImplemented(#777): ErrInternal(#888): TODO(#666)", TODO, 777, 777, 666, []ErrCode{777, 888, 666}, true, true, true, false}, - {"ErrNotImplemented.Wrap(ErrInternal.Wrap(errStdHello))", ErrNotImplemented.Wrap(ErrInternal.Wrap(errStdHello)), "ErrNotImplemented(#777): ErrInternal(#888): hello", errStdHello, 777, 777, 888, []ErrCode{777, 888}, true, true, true, false}, - {"ErrNotImplemented.Wrap(errStdHello)", ErrNotImplemented.Wrap(errStdHello), "ErrNotImplemented(#777): hello", errStdHello, 777, 777, 777, []ErrCode{777}, true, false, true, false}, - {"errCodeUndef", errCodeUndef, "UNKNOWN_ERRCODE(#65530)", errCodeUndef, 65530, 65530, 65530, []ErrCode{65530}, false, false, false, false}, - {"errStdHello", errStdHello, "hello", errStdHello, -1, -1, -1, []ErrCode{}, false, false, false, false}, - {"nil", nil, "", nil, -1, -1, -1, nil, false, false, false, false}, - {`errors.Wrap(ErrNotImplemented,blah)`, errors.Wrap(ErrNotImplemented, "blah"), "blah: ErrNotImplemented(#777)", ErrNotImplemented, -1, 777, 777, []ErrCode{777}, true, false, false, false}, - {`errors.Wrap(ErrNotImplemented.Wrap(ErrInternal),blah)`, errors.Wrap(ErrNotImplemented.Wrap(ErrInternal), "blah"), "blah: ErrNotImplemented(#777): ErrInternal(#888)", ErrInternal, -1, 777, 888, []ErrCode{777, 888}, true, true, false, false}, + {"ErrInternal", ErrInternal, "ErrInternal(#888)", ErrInternal, 888, 888, []ErrCode{888}, false, true, false, true}, + {"ErrNotImplemented", ErrNotImplemented, "ErrNotImplemented(#777)", ErrNotImplemented, 777, 777, []ErrCode{777}, true, false, true, false}, + {"ErrNotImplemented.Wrap(ErrInternal)", ErrNotImplemented.Wrap(ErrInternal), "ErrNotImplemented(#777): ErrInternal(#888)", ErrInternal, 777, 888, []ErrCode{777, 888}, true, true, true, false}, + {"ErrNotImplemented.Wrap(ErrInternal.Wrap(TODO))", ErrNotImplemented.Wrap(ErrInternal.Wrap(TODO)), "ErrNotImplemented(#777): ErrInternal(#888): TODO(#666)", TODO, 777, 666, []ErrCode{777, 888, 666}, true, true, true, false}, + {"ErrNotImplemented.Wrap(ErrInternal.Wrap(errStdHello))", ErrNotImplemented.Wrap(ErrInternal.Wrap(errStdHello)), "ErrNotImplemented(#777): ErrInternal(#888): hello", errStdHello, 777, 888, []ErrCode{777, 888}, true, true, true, false}, + {"ErrNotImplemented.Wrap(errStdHello)", ErrNotImplemented.Wrap(errStdHello), "ErrNotImplemented(#777): hello", errStdHello, 777, 777, []ErrCode{777}, true, false, true, false}, + {"errCodeUndef", errCodeUndef, "UNKNOWN_ERRCODE(#65530)", errCodeUndef, 65530, 65530, []ErrCode{65530}, false, false, false, false}, + {"errStdHello", errStdHello, "hello", errStdHello, -1, -1, []ErrCode{}, false, false, false, false}, + {"nil", nil, "", nil, -1, -1, nil, false, false, false, false}, + {`errors.Wrap(ErrNotImplemented,blah)`, errors.Wrap(ErrNotImplemented, "blah"), "blah: ErrNotImplemented(#777)", ErrNotImplemented, 777, 777, []ErrCode{777}, true, false, false, false}, + {`errors.Wrap(ErrNotImplemented.Wrap(ErrInternal),blah)`, errors.Wrap(ErrNotImplemented.Wrap(ErrInternal), "blah"), "blah: ErrNotImplemented(#777): ErrInternal(#888)", ErrInternal, 777, 888, []ErrCode{777, 888}, true, true, false, false}, } for _, test := range tests { t.Run(test.name, func(t *testing.T) { assert.Equal(t, test.expectedString, fmt.Sprint(test.input)) assert.Equal(t, test.expectedCode, Code(test.input)) - assert.Equal(t, test.expectedFirstCode, FirstCode(test.input)) assert.Equal(t, test.expectedLastCode, LastCode(test.input)) assert.Equal(t, test.expectedCause, errors.Cause(test.input)) assert.Equal(t, test.expectedCodes, Codes(test.input)) @@ -86,8 +84,8 @@ func TestStatus(t *testing.T) { {"errCodeUndef", errCodeUndef, false, false, codes.Unavailable, true}, {"errStdHello", errStdHello, false, false, codes.Unknown, false}, {"nil", nil, false, false, codes.OK, true}, - {`errors.Wrap(ErrNotImplemented,blah)`, errors.Wrap(ErrNotImplemented, "blah"), true, false, codes.Unknown, false}, - {`errors.Wrap(ErrNotImplemented.Wrap(ErrInternal},blah)`, errors.Wrap(ErrNotImplemented.Wrap(ErrInternal), "blah"), true, true, codes.Unknown, false}, + {`errors.Wrap(ErrNotImplemented,blah)`, errors.Wrap(ErrNotImplemented, "blah"), true, false, codes.Unavailable, true}, + {`errors.Wrap(ErrNotImplemented.Wrap(ErrInternal},blah)`, errors.Wrap(ErrNotImplemented.Wrap(ErrInternal), "blah"), true, true, codes.Unavailable, true}, } for _, test := range tests { @@ -104,9 +102,9 @@ func TestStatus(t *testing.T) { assert.NotNil(t, st) assert.Error(t, stErr) } + fmt.Println("remi: ", stErr) assert.Equal(t, st.Code().String(), test.expectedGrpcCode.String()) assert.Equal(t, Code(test.input), Code(stErr)) - assert.Equal(t, FirstCode(test.input), FirstCode(stErr)) assert.Equal(t, LastCode(test.input), LastCode(stErr)) assert.Equal(t, LastCode(test.input), LastCode(stErr)) assert.Equal(t, Codes(test.input), Codes(stErr)) From 71507d00f0d744b81ffcc40200241754a0124e0f Mon Sep 17 00:00:00 2001 From: D4ryl00 Date: Tue, 23 Jul 2024 17:02:19 +0200 Subject: [PATCH 02/20] chore: update kubo v0.29.0 Signed-off-by: D4ryl00 --- .tool-versions | 2 +- account_export.go | 6 +- api_client.go | 2 +- api_contact.go | 2 +- api_debug.go | 4 +- api_group.go | 6 +- go.mod | 280 +++--- go.sum | 1276 ++++++++------------------- orbitdb.go | 4 +- pkg/ipfsutil/conn_logger.go | 8 +- pkg/ipfsutil/extended_core_api.go | 8 +- pkg/ipfsutil/localrecord.go | 4 +- pkg/ipfsutil/mobile.go | 28 +- pkg/ipfsutil/mobile/node.go | 8 +- pkg/ipfsutil/mobile/routing.go | 16 +- pkg/ipfsutil/pubsub_adaptater.go | 16 +- pkg/ipfsutil/pubsub_api.go | 14 +- pkg/ipfsutil/repo.go | 2 +- pkg/ipfsutil/testing.go | 5 +- pkg/proximitytransport/listener.go | 2 +- pkg/proximitytransport/transport.go | 4 +- service.go | 17 +- service_outofstoremessage.go | 4 +- store_message.go | 4 +- store_metadata.go | 4 +- tool/bench-cellular/client.go | 2 +- tool/bench-cellular/server.go | 6 +- 27 files changed, 595 insertions(+), 1139 deletions(-) diff --git a/.tool-versions b/.tool-versions index 5df0ec7c..9887ac49 100644 --- a/.tool-versions +++ b/.tool-versions @@ -6,7 +6,7 @@ # major version of Go which is allowed by kubo. # There is no contraindication for updating it. #----- -golang 1.19.7 +golang 1.22.5 #----- # This is simply the most recent golangci-lint version available to date. diff --git a/account_export.go b/account_export.go index 434b2c99..a1ed9679 100644 --- a/account_export.go +++ b/account_export.go @@ -11,7 +11,7 @@ import ( "github.com/ipfs/go-cid" cbornode "github.com/ipfs/go-ipld-cbor" - ipfs_interface "github.com/ipfs/interface-go-ipfs-core" + coreiface "github.com/ipfs/kubo/core/coreiface" mh "github.com/multiformats/go-multihash" "go.uber.org/multierr" "go.uber.org/zap" @@ -372,7 +372,7 @@ func (state *restoreAccountState) restoreKeys(odb *WeshOrbitDB) RestoreAccountHa } } -func restoreOrbitDBEntry(ctx context.Context, coreAPI ipfs_interface.CoreAPI) RestoreAccountHandler { +func restoreOrbitDBEntry(ctx context.Context, coreAPI coreiface.CoreAPI) RestoreAccountHandler { return RestoreAccountHandler{ Handler: func(header *tar.Header, reader *tar.Reader) (bool, error) { if !strings.HasPrefix(header.Name, exportOrbitDBEntriesPrefix) { @@ -420,7 +420,7 @@ func restoreOrbitDBHeads(ctx context.Context, odb *WeshOrbitDB) RestoreAccountHa } } -func RestoreAccountExport(ctx context.Context, reader io.Reader, coreAPI ipfs_interface.CoreAPI, odb *WeshOrbitDB, logger *zap.Logger, handlers ...RestoreAccountHandler) error { +func RestoreAccountExport(ctx context.Context, reader io.Reader, coreAPI coreiface.CoreAPI, odb *WeshOrbitDB, logger *zap.Logger, handlers ...RestoreAccountHandler) error { tr := tar.NewReader(reader) state := restoreAccountState{ keys: map[string][]byte{}, diff --git a/api_client.go b/api_client.go index 48d93ecd..0c200283 100644 --- a/api_client.go +++ b/api_client.go @@ -91,7 +91,7 @@ func (s *service) ServiceGetConfiguration(ctx context.Context, req *protocoltype AccountPK: member, DevicePK: device, AccountGroupPK: accountGroup.Group().PublicKey, - PeerID: key.ID().Pretty(), + PeerID: key.ID().String(), Listeners: listeners, }, nil } diff --git a/api_contact.go b/api_contact.go index 1bc7f9ba..8a0f72ca 100644 --- a/api_contact.go +++ b/api_contact.go @@ -101,7 +101,7 @@ func (s *service) RefreshContactRequest(ctx context.Context, req *protocoltypes. } res.PeersFound = append(res.PeersFound, &protocoltypes.RefreshContactRequest_Peer{ - ID: p.ID.Pretty(), + ID: p.ID.String(), Addrs: addrs, }) } diff --git a/api_debug.go b/api_debug.go index ae002ffb..02bbe1e5 100644 --- a/api_debug.go +++ b/api_debug.go @@ -248,7 +248,7 @@ func (s *service) PeerList(ctx context.Context, request *protocoltypes.PeerList_ // each peer in the swarm should be visible for _, swarmPeer := range swarmPeers { peers[swarmPeer.ID()] = &protocoltypes.PeerList_Peer{ - ID: swarmPeer.ID().Pretty(), + ID: swarmPeer.ID().String(), Errors: []string{}, Routes: []*protocoltypes.PeerList_Route{}, } @@ -270,7 +270,7 @@ func (s *service) PeerList(ctx context.Context, request *protocoltypes.PeerList_ peer, ok := peers[swarmPeer.ID()] if !ok { peer = &protocoltypes.PeerList_Peer{ - ID: swarmPeer.ID().Pretty(), + ID: swarmPeer.ID().String(), Errors: []string{}, Routes: []*protocoltypes.PeerList_Route{}, } diff --git a/api_group.go b/api_group.go index d4fd77be..1aab77e2 100644 --- a/api_group.go +++ b/api_group.go @@ -172,7 +172,7 @@ func (s *service) craftPeerConnectedMessage(peer peer.ID) (*protocoltypes.GroupD } connected := protocoltypes.GroupDeviceStatus_Reply_PeerConnected{ - PeerID: peer.Pretty(), + PeerID: peer.String(), DevicePK: devicePKRaw, } @@ -207,12 +207,12 @@ CONN_LOOP: func (s *service) craftDeviceDisconnectedMessage(peer peer.ID) *protocoltypes.GroupDeviceStatus_Reply_PeerDisconnected { return &protocoltypes.GroupDeviceStatus_Reply_PeerDisconnected{ - PeerID: peer.Pretty(), + PeerID: peer.String(), } } func (s *service) craftDeviceReconnectedMessage(peer peer.ID) *protocoltypes.GroupDeviceStatus_Reply_PeerReconnecting { return &protocoltypes.GroupDeviceStatus_Reply_PeerReconnecting{ - PeerID: peer.Pretty(), + PeerID: peer.String(), } } diff --git a/go.mod b/go.mod index ec526b17..3ae4227a 100644 --- a/go.mod +++ b/go.mod @@ -1,23 +1,24 @@ module berty.tech/weshnet -go 1.19 +go 1.22 + +toolchain go1.22.5 require ( - berty.tech/go-ipfs-log v1.10.0 - berty.tech/go-ipfs-repo-encrypted v1.3.0 - berty.tech/go-orbit-db v1.22.0 + berty.tech/go-ipfs-log v1.10.3-0.20240719141234-29e2d26e2aeb + berty.tech/go-ipfs-repo-encrypted v1.3.1-0.20240722095251-c6b363b38785 + berty.tech/go-orbit-db v1.22.2-0.20240719144258-ec7d1faaca68 filippo.io/edwards25519 v1.0.0 github.com/aead/ecdh v0.2.0 github.com/berty/emitter-go v0.0.0-20221031144724-5dae963c3622 - github.com/berty/go-libp2p-mock v1.0.1 - github.com/berty/go-libp2p-pubsub v0.9.4-0.20230706070911-6e35c0f470b8 - github.com/berty/go-libp2p-rendezvous v0.5.0 + github.com/berty/go-libp2p-mock v1.0.2-0.20240719150538-d7088679a8a7 + github.com/berty/go-libp2p-rendezvous v0.5.1-0.20240719154654-269ed907d248 github.com/buicongtan1997/protoc-gen-swagger-config v0.0.0-20200705084907-1342b78c1a7e github.com/daixiang0/gci v0.8.2 github.com/dgraph-io/badger/v2 v2.2007.3 github.com/gofrs/uuid v4.3.1+incompatible github.com/gogo/protobuf v1.3.2 - github.com/golang/protobuf v1.5.3 + github.com/golang/protobuf v1.5.4 github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 github.com/grpc-ecosystem/grpc-gateway v1.16.0 github.com/hyperledger/aries-framework-go v0.1.9-0.20221202141134-083803ecf0a3 @@ -25,37 +26,37 @@ require ( github.com/ipfs/go-datastore v0.6.0 github.com/ipfs/go-ds-badger2 v0.1.3 github.com/ipfs/go-ipfs-keystore v0.1.0 - github.com/ipfs/go-ipld-cbor v0.0.6 + github.com/ipfs/go-ipld-cbor v0.1.0 github.com/ipfs/go-log/v2 v2.5.1 github.com/ipfs/interface-go-ipfs-core v0.11.1 - github.com/ipfs/kubo v0.19.0 + github.com/ipfs/kubo v0.29.0 github.com/juju/fslock v0.0.0-20160525022230-4d5c94c67b4b - github.com/libp2p/go-libp2p v0.27.8 - github.com/libp2p/go-libp2p-kad-dht v0.21.1 - github.com/libp2p/go-libp2p-pubsub v0.9.3 + github.com/libp2p/go-libp2p v0.34.1 + github.com/libp2p/go-libp2p-kad-dht v0.25.2 + github.com/libp2p/go-libp2p-pubsub v0.11.1-0.20240711152552-e508d8643ddb github.com/libp2p/go-libp2p-record v0.2.0 github.com/libp2p/go-libp2p-testing v0.12.0 github.com/mdomke/git-semver/v5 v5.0.0 - github.com/multiformats/go-multiaddr v0.9.0 + github.com/multiformats/go-multiaddr v0.12.4 github.com/multiformats/go-multiaddr-dns v0.3.1 github.com/multiformats/go-multiaddr-fmt v0.1.0 github.com/multiformats/go-multibase v0.2.0 - github.com/multiformats/go-multihash v0.2.1 + github.com/multiformats/go-multihash v0.2.3 github.com/piprate/json-gold v0.4.2 github.com/pkg/errors v0.9.1 - github.com/prometheus/client_golang v1.14.0 + github.com/prometheus/client_golang v1.19.1 github.com/pseudomuto/protoc-gen-doc v1.5.1 - github.com/stretchr/testify v1.8.2 - go.uber.org/goleak v1.1.12 + github.com/stretchr/testify v1.9.0 + go.uber.org/goleak v1.3.0 go.uber.org/multierr v1.11.0 - go.uber.org/zap v1.24.0 - golang.org/x/crypto v0.7.0 - golang.org/x/tools v0.7.0 - golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 - google.golang.org/grpc v1.50.1 + go.uber.org/zap v1.27.0 + golang.org/x/crypto v0.23.0 + golang.org/x/tools v0.21.0 + golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 + google.golang.org/grpc v1.64.0 google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.3.0 google.golang.org/grpc/examples v0.0.0-20200922230038-4e932bbcb079 - google.golang.org/protobuf v1.30.0 + google.golang.org/protobuf v1.34.1 moul.io/openfiles v1.2.0 moul.io/srand v1.6.1 moul.io/testman v1.5.0 @@ -67,201 +68,199 @@ require ( require ( bazil.org/fuse v0.0.0-20200117225306-7b5117fecadc // indirect - cloud.google.com/go/compute/metadata v0.2.1 // indirect - contrib.go.opencensus.io/exporter/prometheus v0.4.0 // indirect + contrib.go.opencensus.io/exporter/prometheus v0.4.2 // indirect github.com/AndreasBriese/bbloom v0.0.0-20190825152654-46b345b51c96 // indirect github.com/DataDog/zstd v1.4.1 // indirect + github.com/Jorropo/jsync v1.0.1 // indirect github.com/Masterminds/goutils v1.1.0 // indirect github.com/Masterminds/semver v1.5.0 // indirect github.com/Masterminds/sprig v2.22.0+incompatible // indirect github.com/VictoriaMetrics/fastcache v1.5.7 // indirect - github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137 // indirect + github.com/alecthomas/units v0.0.0-20231202071711-9a357b53e9c9 // indirect github.com/alexbrainman/goissue34681 v0.0.0-20191006012335-3fc7a47baff5 // indirect - github.com/benbjohnson/clock v1.3.0 // indirect + github.com/benbjohnson/clock v1.3.5 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/blang/semver/v4 v4.0.0 // indirect github.com/btcsuite/btcd v0.22.1 // indirect github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce // indirect - github.com/cenkalti/backoff v2.2.1+incompatible // indirect - github.com/cenkalti/backoff/v4 v4.1.3 // indirect + github.com/cenkalti/backoff/v4 v4.3.0 // indirect github.com/ceramicnetwork/go-dag-jose v0.1.0 // indirect github.com/cespare/xxhash v1.1.0 // indirect - github.com/cespare/xxhash/v2 v2.2.0 // indirect + github.com/cespare/xxhash/v2 v2.3.0 // indirect github.com/cheggaaa/pb v1.0.29 // indirect github.com/containerd/cgroups v1.1.0 // indirect github.com/coreos/go-systemd/v22 v22.5.0 // indirect - github.com/crackcomm/go-gitignore v0.0.0-20170627025303-887ab5e44cc3 // indirect + github.com/crackcomm/go-gitignore v0.0.0-20231225121904-e25f5bc08668 // indirect github.com/cskr/pubsub v1.0.2 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/davidlazar/go-crypto v0.0.0-20200604182044-b73af7476f6c // indirect - github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0 // indirect + github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 // indirect github.com/dgraph-io/badger v1.6.2 // indirect github.com/dgraph-io/ristretto v0.0.3 // indirect github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2 // indirect github.com/docker/go-units v0.5.0 // indirect - github.com/dustin/go-humanize v1.0.0 // indirect + github.com/dustin/go-humanize v1.0.1 // indirect github.com/eclipse/paho.mqtt.golang v1.4.2 // indirect github.com/elastic/gosigar v0.14.2 // indirect github.com/elgris/jsondiff v0.0.0-20160530203242-765b5c24c302 // indirect github.com/emicklei/proto v1.6.13 // indirect - github.com/envoyproxy/protoc-gen-validate v0.6.2 // indirect + github.com/envoyproxy/protoc-gen-validate v1.0.4 // indirect github.com/facebookgo/atomicfile v0.0.0-20151019160806-2de1f203e7d5 // indirect github.com/fatih/color v1.13.0 // indirect - github.com/felixge/httpsnoop v1.0.3 // indirect - github.com/flynn/noise v1.0.0 // indirect + github.com/felixge/httpsnoop v1.0.4 // indirect + github.com/flynn/noise v1.1.0 // indirect github.com/francoispqt/gojay v1.2.13 // indirect - github.com/gabriel-vasile/mimetype v1.4.1 // indirect + github.com/fsnotify/fsnotify v1.6.0 // indirect + github.com/gabriel-vasile/mimetype v1.4.3 // indirect github.com/ghodss/yaml v1.0.0 // indirect github.com/go-kit/log v0.2.1 // indirect github.com/go-logfmt/logfmt v0.5.1 // indirect - github.com/go-logr/logr v1.2.3 // indirect + github.com/go-logr/logr v1.4.1 // indirect github.com/go-logr/stdr v1.2.2 // indirect - github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 // indirect + github.com/go-task/slim-sprig/v3 v3.0.0 // indirect github.com/godbus/dbus/v5 v5.1.0 // indirect - github.com/golang/glog v1.0.0 // indirect + github.com/golang/glog v1.2.0 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect - github.com/golang/mock v1.6.0 // indirect github.com/golang/snappy v0.0.4 // indirect - github.com/google/go-cmp v0.5.9 // indirect + github.com/google/go-cmp v0.6.0 // indirect github.com/google/gopacket v1.1.19 // indirect - github.com/google/pprof v0.0.0-20230405160723-4a4c7d95572b // indirect + github.com/google/pprof v0.0.0-20240509144519-723abb6459b7 // indirect github.com/google/tink/go v1.7.0 // indirect - github.com/google/uuid v1.3.0 // indirect - github.com/gorilla/mux v1.8.0 // indirect - github.com/gorilla/websocket v1.5.0 // indirect - github.com/grpc-ecosystem/grpc-gateway/v2 v2.7.0 // indirect - github.com/hannahhoward/go-pubsub v0.0.0-20200423002714-8d62886cc36e // indirect + github.com/google/uuid v1.6.0 // indirect + github.com/gorilla/mux v1.8.1 // indirect + github.com/gorilla/websocket v1.5.1 // indirect + github.com/grpc-ecosystem/grpc-gateway/v2 v2.20.0 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect - github.com/hashicorp/golang-lru v0.5.4 // indirect - github.com/hashicorp/golang-lru/v2 v2.0.2 // indirect + github.com/hashicorp/golang-lru v1.0.2 // indirect + github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect github.com/hexops/gotextdiff v1.0.3 // indirect github.com/huandu/xstrings v1.3.2 // indirect - github.com/huin/goupnp v1.1.0 // indirect + github.com/huin/goupnp v1.3.0 // indirect github.com/hyperledger/aries-framework-go/spi v0.0.0-20221025204933-b807371b6f1e // indirect github.com/hyperledger/ursa-wrapper-go v0.3.1 // indirect github.com/imdario/mergo v0.3.11 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect + github.com/ipfs-shipyard/nopfs v0.0.12 // indirect + github.com/ipfs-shipyard/nopfs/ipfs v0.13.2-0.20231027223058-cde3b5ba964c // indirect github.com/ipfs/bbloom v0.0.4 // indirect + github.com/ipfs/boxo v0.20.0 // indirect github.com/ipfs/go-bitfield v1.1.0 // indirect - github.com/ipfs/go-block-format v0.1.1 // indirect - github.com/ipfs/go-blockservice v0.5.0 // indirect + github.com/ipfs/go-block-format v0.2.0 // indirect + github.com/ipfs/go-blockservice v0.5.2 // indirect github.com/ipfs/go-cidutil v0.1.0 // indirect - github.com/ipfs/go-delegated-routing v0.7.0 // indirect github.com/ipfs/go-ds-badger v0.3.0 // indirect github.com/ipfs/go-ds-flatfs v0.5.1 // indirect github.com/ipfs/go-ds-leveldb v0.5.0 // indirect github.com/ipfs/go-ds-measure v0.2.0 // indirect github.com/ipfs/go-ds-sql v0.3.0 // indirect - github.com/ipfs/go-fetcher v1.6.1 // indirect - github.com/ipfs/go-filestore v1.2.0 // indirect github.com/ipfs/go-fs-lock v0.0.7 // indirect - github.com/ipfs/go-graphsync v0.14.1 // indirect - github.com/ipfs/go-ipfs-blockstore v1.2.0 // indirect - github.com/ipfs/go-ipfs-chunker v0.0.5 // indirect - github.com/ipfs/go-ipfs-cmds v0.8.2 // indirect + github.com/ipfs/go-ipfs-blockstore v1.3.1 // indirect + github.com/ipfs/go-ipfs-cmds v0.11.0 // indirect github.com/ipfs/go-ipfs-delay v0.0.1 // indirect - github.com/ipfs/go-ipfs-ds-help v1.1.0 // indirect - github.com/ipfs/go-ipfs-exchange-interface v0.2.0 // indirect - github.com/ipfs/go-ipfs-exchange-offline v0.3.0 // indirect - github.com/ipfs/go-ipfs-pinner v0.3.0 // indirect - github.com/ipfs/go-ipfs-posinfo v0.0.1 // indirect + github.com/ipfs/go-ipfs-ds-help v1.1.1 // indirect + github.com/ipfs/go-ipfs-exchange-interface v0.2.1 // indirect github.com/ipfs/go-ipfs-pq v0.0.3 // indirect - github.com/ipfs/go-ipfs-provider v0.8.1 // indirect github.com/ipfs/go-ipfs-redirects-file v0.1.1 // indirect - github.com/ipfs/go-ipfs-routing v0.3.0 // indirect - github.com/ipfs/go-ipfs-util v0.0.2 // indirect - github.com/ipfs/go-ipld-format v0.4.0 // indirect + github.com/ipfs/go-ipfs-util v0.0.3 // indirect + github.com/ipfs/go-ipld-format v0.6.0 // indirect github.com/ipfs/go-ipld-git v0.1.1 // indirect - github.com/ipfs/go-ipld-legacy v0.1.1 // indirect - github.com/ipfs/go-ipns v0.3.0 // indirect + github.com/ipfs/go-ipld-legacy v0.2.1 // indirect github.com/ipfs/go-libipfs v0.6.2 // indirect github.com/ipfs/go-log v1.0.5 // indirect - github.com/ipfs/go-merkledag v0.10.0 // indirect + github.com/ipfs/go-merkledag v0.11.0 // indirect github.com/ipfs/go-metrics-interface v0.0.1 // indirect - github.com/ipfs/go-mfs v0.2.1 // indirect - github.com/ipfs/go-namesys v0.7.0 // indirect github.com/ipfs/go-path v0.3.1 // indirect github.com/ipfs/go-peertaskqueue v0.8.1 // indirect - github.com/ipfs/go-pinning-service-http-client v0.1.2 // indirect - github.com/ipfs/go-unixfs v0.4.4 // indirect - github.com/ipfs/go-unixfsnode v1.5.2 // indirect - github.com/ipfs/go-verifcid v0.0.2 // indirect - github.com/ipld/edelweiss v0.2.0 // indirect - github.com/ipld/go-car v0.5.0 // indirect - github.com/ipld/go-car/v2 v2.5.1 // indirect + github.com/ipfs/go-unixfsnode v1.9.0 // indirect + github.com/ipfs/go-verifcid v0.0.3 // indirect + github.com/ipld/go-car v0.6.2 // indirect + github.com/ipld/go-car/v2 v2.13.1 // indirect github.com/ipld/go-codec-dagpb v1.6.0 // indirect - github.com/ipld/go-ipld-prime v0.20.0 // indirect + github.com/ipld/go-ipld-prime v0.21.0 // indirect github.com/jackpal/go-nat-pmp v1.0.2 // indirect github.com/jbenet/go-temp-err-catcher v0.1.0 // indirect github.com/jbenet/goprocess v0.1.4 // indirect github.com/kilic/bls12-381 v0.1.1-0.20210503002446-7b7597926c69 // indirect - github.com/klauspost/compress v1.16.4 // indirect - github.com/klauspost/cpuid/v2 v2.2.4 // indirect + github.com/klauspost/compress v1.17.8 // indirect + github.com/klauspost/cpuid/v2 v2.2.7 // indirect github.com/koron/go-ssdp v0.0.4 // indirect github.com/libp2p/go-buffer-pool v0.1.0 // indirect github.com/libp2p/go-cidranger v1.1.0 // indirect github.com/libp2p/go-doh-resolver v0.4.0 // indirect github.com/libp2p/go-flow-metrics v0.1.0 // indirect - github.com/libp2p/go-libp2p-asn-util v0.3.0 // indirect - github.com/libp2p/go-libp2p-gostream v0.5.0 // indirect - github.com/libp2p/go-libp2p-http v0.4.0 // indirect - github.com/libp2p/go-libp2p-kbucket v0.5.0 // indirect + github.com/libp2p/go-libp2p-asn-util v0.4.1 // indirect + github.com/libp2p/go-libp2p-gostream v0.6.0 // indirect + github.com/libp2p/go-libp2p-http v0.5.0 // indirect + github.com/libp2p/go-libp2p-kbucket v0.6.3 // indirect github.com/libp2p/go-libp2p-pubsub-router v0.6.0 // indirect - github.com/libp2p/go-libp2p-routing-helpers v0.6.1 // indirect + github.com/libp2p/go-libp2p-routing-helpers v0.7.3 // indirect github.com/libp2p/go-libp2p-xor v0.1.0 // indirect - github.com/libp2p/go-mplex v0.7.0 // indirect github.com/libp2p/go-msgio v0.3.0 // indirect - github.com/libp2p/go-nat v0.1.0 // indirect + github.com/libp2p/go-nat v0.2.0 // indirect github.com/libp2p/go-netroute v0.2.1 // indirect - github.com/libp2p/go-reuseport v0.2.0 // indirect - github.com/libp2p/go-yamux/v4 v4.0.0 // indirect + github.com/libp2p/go-reuseport v0.4.0 // indirect + github.com/libp2p/go-yamux/v4 v4.0.1 // indirect github.com/libp2p/zeroconf/v2 v2.2.0 // indirect github.com/marten-seemann/tcp v0.0.0-20210406111302-dfbc87cc63fd // indirect github.com/maruel/circular v0.0.0-20200815005550-36e533b830e9 // indirect github.com/mattn/go-colorable v0.1.12 // indirect - github.com/mattn/go-isatty v0.0.18 // indirect + github.com/mattn/go-isatty v0.0.20 // indirect github.com/mattn/go-runewidth v0.0.8 // indirect github.com/mattn/go-sqlite3 v1.14.16 // indirect - github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d // indirect - github.com/miekg/dns v1.1.53 // indirect + github.com/miekg/dns v1.1.59 // indirect github.com/mikioh/tcpinfo v0.0.0-20190314235526-30a79bb1804b // indirect github.com/mikioh/tcpopt v0.0.0-20190314235656-172688c1accc // indirect - github.com/minio/sha256-simd v1.0.0 // indirect + github.com/minio/sha256-simd v1.0.1 // indirect github.com/mitchellh/copystructure v1.0.0 // indirect github.com/mitchellh/go-homedir v1.1.0 // indirect github.com/mitchellh/reflectwalk v1.0.1 // indirect github.com/mr-tron/base58 v1.2.0 // indirect github.com/multiformats/go-base32 v0.1.0 // indirect github.com/multiformats/go-base36 v0.2.0 // indirect - github.com/multiformats/go-multicodec v0.8.1 // indirect - github.com/multiformats/go-multistream v0.4.1 // indirect + github.com/multiformats/go-multicodec v0.9.0 // indirect + github.com/multiformats/go-multistream v0.5.0 // indirect github.com/multiformats/go-varint v0.0.7 // indirect github.com/mutecomm/go-sqlcipher/v4 v4.4.2 // indirect github.com/mwitkow/go-proto-validators v0.0.0-20180403085117-0950a7990007 // indirect - github.com/onsi/ginkgo/v2 v2.9.2 // indirect - github.com/opencontainers/runtime-spec v1.0.2 // indirect + github.com/onsi/ginkgo/v2 v2.17.3 // indirect + github.com/opencontainers/runtime-spec v1.2.0 // indirect github.com/opentracing/opentracing-go v1.2.0 // indirect - github.com/openzipkin/zipkin-go v0.4.0 // indirect + github.com/openzipkin/zipkin-go v0.4.3 // indirect github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58 // indirect + github.com/petar/GoLLRB v0.0.0-20210522233825-ae3b015fd3e9 // indirect github.com/peterbourgon/ff/v3 v3.0.0 // indirect + github.com/pion/datachannel v1.5.6 // indirect + github.com/pion/dtls/v2 v2.2.11 // indirect + github.com/pion/ice/v2 v2.3.24 // indirect + github.com/pion/interceptor v0.1.29 // indirect + github.com/pion/logging v0.2.2 // indirect + github.com/pion/mdns v0.0.12 // indirect + github.com/pion/randutil v0.1.0 // indirect + github.com/pion/rtcp v1.2.14 // indirect + github.com/pion/rtp v1.8.6 // indirect + github.com/pion/sctp v1.8.16 // indirect + github.com/pion/sdp/v3 v3.0.9 // indirect + github.com/pion/srtp/v2 v2.0.18 // indirect + github.com/pion/stun v0.6.1 // indirect + github.com/pion/transport/v2 v2.2.5 // indirect + github.com/pion/turn/v2 v2.1.6 // indirect + github.com/pion/webrtc/v3 v3.2.40 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/polydawn/refmt v0.89.0 // indirect github.com/pquerna/cachecontrol v0.1.0 // indirect - github.com/prometheus/client_model v0.3.0 // indirect - github.com/prometheus/common v0.42.0 // indirect - github.com/prometheus/procfs v0.9.0 // indirect - github.com/prometheus/statsd_exporter v0.21.0 // indirect + github.com/prometheus/client_model v0.6.1 // indirect + github.com/prometheus/common v0.53.0 // indirect + github.com/prometheus/procfs v0.15.0 // indirect + github.com/prometheus/statsd_exporter v0.22.7 // indirect github.com/pseudomuto/protokit v0.2.0 // indirect github.com/quic-go/qpack v0.4.0 // indirect - github.com/quic-go/qtls-go1-19 v0.3.3 // indirect - github.com/quic-go/qtls-go1-20 v0.2.3 // indirect - github.com/quic-go/quic-go v0.33.0 // indirect - github.com/quic-go/webtransport-go v0.5.2 // indirect + github.com/quic-go/quic-go v0.44.0 // indirect + github.com/quic-go/webtransport-go v0.8.0 // indirect github.com/raulk/go-watchdog v1.3.0 // indirect - github.com/rs/cors v1.8.3 // indirect - github.com/samber/lo v1.36.0 // indirect + github.com/rs/cors v1.10.1 // indirect + github.com/samber/lo v1.39.0 // indirect github.com/spaolacci/murmur3 v1.1.0 // indirect github.com/spf13/cobra v1.6.1 // indirect github.com/spf13/pflag v1.0.5 // indirect @@ -270,7 +269,8 @@ require ( github.com/teserakt-io/golang-ed25519 v0.0.0-20210104091850-3888c087a4c8 // indirect github.com/ucarion/urlpath v0.0.0-20200424170820-7ccc79b76bbb // indirect github.com/whyrusleeping/base32 v0.0.0-20170828182744-c30ac30633cc // indirect - github.com/whyrusleeping/cbor-gen v0.0.0-20230126041949-52956bd4c9aa // indirect + github.com/whyrusleeping/cbor v0.0.0-20171005072247-63513f603b11 // indirect + github.com/whyrusleeping/cbor-gen v0.1.1 // indirect github.com/whyrusleeping/chunker v0.0.0-20181014151217-fe64bd25879f // indirect github.com/whyrusleeping/go-keyspace v0.0.0-20160322163242-5b898ac5add1 // indirect github.com/whyrusleeping/go-sysinfo v0.0.0-20190219211824-4a357d4b90b1 // indirect @@ -279,37 +279,35 @@ require ( github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect github.com/xeipuuv/gojsonschema v1.2.0 // indirect go.opencensus.io v0.24.0 // indirect - go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.32.0 // indirect - go.opentelemetry.io/otel v1.11.1 // indirect - go.opentelemetry.io/otel/exporters/jaeger v1.7.0 // indirect - go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.7.0 // indirect - go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.7.0 // indirect - go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.7.0 // indirect - go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.7.0 // indirect - go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.7.0 // indirect - go.opentelemetry.io/otel/exporters/zipkin v1.7.0 // indirect - go.opentelemetry.io/otel/metric v0.30.0 // indirect - go.opentelemetry.io/otel/sdk v1.11.1 // indirect - go.opentelemetry.io/otel/trace v1.11.1 // indirect - go.opentelemetry.io/proto/otlp v0.16.0 // indirect - go.uber.org/atomic v1.10.0 // indirect - go.uber.org/dig v1.16.1 // indirect - go.uber.org/fx v1.19.2 // indirect - go4.org v0.0.0-20200411211856-f5505b9728dd // indirect - golang.org/x/exp v0.0.0-20230321023759-10a507213a29 // indirect - golang.org/x/mod v0.10.0 // indirect - golang.org/x/net v0.8.0 // indirect - golang.org/x/oauth2 v0.5.0 // indirect - golang.org/x/sync v0.1.0 // indirect - golang.org/x/sys v0.7.0 // indirect - golang.org/x/text v0.8.0 // indirect - google.golang.org/appengine v1.6.7 // indirect + go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.51.0 // indirect + go.opentelemetry.io/otel v1.26.0 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.26.0 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.26.0 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.26.0 // indirect + go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.26.0 // indirect + go.opentelemetry.io/otel/exporters/zipkin v1.26.0 // indirect + go.opentelemetry.io/otel/metric v1.26.0 // indirect + go.opentelemetry.io/otel/sdk v1.26.0 // indirect + go.opentelemetry.io/otel/trace v1.26.0 // indirect + go.opentelemetry.io/proto/otlp v1.2.0 // indirect + go.uber.org/atomic v1.11.0 // indirect + go.uber.org/dig v1.17.1 // indirect + go.uber.org/fx v1.21.1 // indirect + go.uber.org/mock v0.4.0 // indirect + go4.org v0.0.0-20230225012048-214862532bf5 // indirect + golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842 // indirect + golang.org/x/mod v0.17.0 // indirect + golang.org/x/net v0.25.0 // indirect + golang.org/x/oauth2 v0.20.0 // indirect + golang.org/x/sync v0.7.0 // indirect + golang.org/x/sys v0.20.0 // indirect + golang.org/x/text v0.15.0 // indirect + gonum.org/v1/gonum v0.15.0 // indirect google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd // indirect gopkg.in/square/go-jose.v2 v2.6.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect - lukechampine.com/blake3 v1.1.7 // indirect + lukechampine.com/blake3 v1.3.0 // indirect moul.io/banner v1.0.1 // indirect moul.io/motd v1.0.0 // indirect - nhooyr.io/websocket v1.8.7 // indirect ) diff --git a/go.sum b/go.sum index 82293a22..252d6d5a 100644 --- a/go.sum +++ b/go.sum @@ -1,11 +1,11 @@ bazil.org/fuse v0.0.0-20200117225306-7b5117fecadc h1:utDghgcjE8u+EBjHOgYT+dJPcnDF05KqWMBcjuJy510= bazil.org/fuse v0.0.0-20200117225306-7b5117fecadc/go.mod h1:FbcW6z/2VytnFDhZfumh8Ss8zxHE6qpMP5sHTRe0EaM= -berty.tech/go-ipfs-log v1.10.0 h1:IqCCIuo/gw+N4akdx1zDfXlwi8B4JtljF+xxY9zodUg= -berty.tech/go-ipfs-log v1.10.0/go.mod h1:TBEa6g2nkn21VtkVd6Gkk3xR9c8BfH/E8eH7tjjwhec= -berty.tech/go-ipfs-repo-encrypted v1.3.0 h1:k7whfA58pFaFF1AGtqCmT878QpvQXkLSAlZQPvqoeo8= -berty.tech/go-ipfs-repo-encrypted v1.3.0/go.mod h1:lbWggsc67nM48IPP5K9vDLNPT3yYELP7Q6Sni9cufQs= -berty.tech/go-orbit-db v1.22.0 h1:BiUGk9ukOKJMQ2YlQV/e9gjR9TOedIa9LUDfjp9CVHA= -berty.tech/go-orbit-db v1.22.0/go.mod h1:RC3/C/igfM7b2RuT7WIloOHbFz9zZTJxB3jOEqC6UWA= +berty.tech/go-ipfs-log v1.10.3-0.20240719141234-29e2d26e2aeb h1:FogPdtHCS/jQMX0iC9r/iQxVyYIFEpcoQvQrf6gxf0w= +berty.tech/go-ipfs-log v1.10.3-0.20240719141234-29e2d26e2aeb/go.mod h1:9iZx/jWL+Su7j5ALhljjKZN/QScM4ONGs7yqqlcb/Qg= +berty.tech/go-ipfs-repo-encrypted v1.3.1-0.20240722095251-c6b363b38785 h1:71O7eF4Hr22KKOk5y9Uzvt372siWoA55/DBj2DSbafA= +berty.tech/go-ipfs-repo-encrypted v1.3.1-0.20240722095251-c6b363b38785/go.mod h1:JjEWS7xkbCQAm2NFt2JKFg3wx2Qkgr2jBMHRAgkfU10= +berty.tech/go-orbit-db v1.22.2-0.20240719144258-ec7d1faaca68 h1:Y0TmVC11z+CQpQFoqyeOcrh/wgEIhbI/ZppfJOjuvDk= +berty.tech/go-orbit-db v1.22.2-0.20240719144258-ec7d1faaca68/go.mod h1:UoKTs3bAL3Q1eCwj2VKA/LFspSFbacNeZsUkxDh3S3Q= cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.31.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= @@ -31,9 +31,9 @@ cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvf cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= -cloud.google.com/go/compute v1.13.0 h1:AYrLkB8NPdDRslNp4Jxmzrhdr03fUAIDbiGFjLWowoU= -cloud.google.com/go/compute/metadata v0.2.1 h1:efOwf5ymceDhK6PKMnnrTHP4pppY5L22mle96M1yP48= -cloud.google.com/go/compute/metadata v0.2.1/go.mod h1:jgHgmJd2RKBGzXqF5LR2EZMGxBkeanZ9wwa75XHJgOM= +cloud.google.com/go/compute v1.25.1 h1:ZRpHJedLtTpKgr3RV1Fx23NuaAEN1Zfx9hw1u4aJdjU= +cloud.google.com/go/compute/metadata v0.3.0 h1:Tz+eQXMEqDIKRsmY3cHTL6FVaynIjX2QxYC4trgAKZc= +cloud.google.com/go/compute/metadata v0.3.0/go.mod h1:zFmK7XCadkQkj6TtorcaGlCW1hT1fIilQDwofLpJ20k= cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= @@ -45,8 +45,8 @@ cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0Zeo cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= -contrib.go.opencensus.io/exporter/prometheus v0.4.0 h1:0QfIkj9z/iVZgK31D9H9ohjjIDApI2GOPScCKwxedbs= -contrib.go.opencensus.io/exporter/prometheus v0.4.0/go.mod h1:o7cosnyfuPVK0tB8q0QmaQNhGnptITnPQB+z1+qeFB0= +contrib.go.opencensus.io/exporter/prometheus v0.4.2 h1:sqfsYl5GIY/L570iT+l93ehxaWJs2/OwXtiWwew3oAg= +contrib.go.opencensus.io/exporter/prometheus v0.4.2/go.mod h1:dvEHbiKmgvbr5pjaF9fpw1KeYcjrnC1J8B+JKjsZyRQ= dmitri.shuralyov.com/app/changes v0.0.0-20180602232624-0a106ad413e3/go.mod h1:Yl+fi1br7+Rr3LqpNJf1/uxUdtRUV+Tnj0o93V2B9MU= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= dmitri.shuralyov.com/html/belt v0.0.0-20180602232347-f7d459c86be0/go.mod h1:JLBrvjyP0v+ecvNYvCpyZgu5/xkfAUhi6wJj28eUfSU= @@ -55,7 +55,6 @@ dmitri.shuralyov.com/state v0.0.0-20180228185332-28bcc343414c/go.mod h1:0PRwlb0D filippo.io/edwards25519 v1.0.0 h1:0wAIcmJUqRdI8IJ/3eGi5/HwXZWPujYXXlkrQogz0Ek= filippo.io/edwards25519 v1.0.0/go.mod h1:N1IkdkCkiLB6tki+MYJoSx2JTY9NUlxZE7eHn5EwJns= git.apache.org/thrift.git v0.0.0-20180902110319-2566ecd5d999/go.mod h1:fPE2ZNJGynbRyZ4dJvy6G277gSllfV2HJqblrnkyeyg= -github.com/AndreasBriese/bbloom v0.0.0-20180913140656-343706a395b7/go.mod h1:bOvUY6CB00SOBii9/FifXqc0awNKxLFCL/+pkDPuyl8= github.com/AndreasBriese/bbloom v0.0.0-20190306092124-e2d15f34fcf9/go.mod h1:bOvUY6CB00SOBii9/FifXqc0awNKxLFCL/+pkDPuyl8= github.com/AndreasBriese/bbloom v0.0.0-20190825152654-46b345b51c96 h1:cTp8I5+VIoKjsnZuH8vjyaysT/ses3EvZeaV/1UkF2M= github.com/AndreasBriese/bbloom v0.0.0-20190825152654-46b345b51c96/go.mod h1:bOvUY6CB00SOBii9/FifXqc0awNKxLFCL/+pkDPuyl8= @@ -63,8 +62,8 @@ github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03 github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= github.com/DataDog/zstd v1.4.1 h1:3oxKN3wbHibqx897utPC2LTQU4J+IHWWJO+glkAkpFM= github.com/DataDog/zstd v1.4.1/go.mod h1:1jcaCB/ufaK+sKp1NBhlGmpz41jOoPQ35bpF36t7BBo= -github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0= -github.com/Kubuxu/go-os-helper v0.0.1/go.mod h1:N8B+I7vPCT80IcP58r50u4+gEEcsZETFUpAzWW2ep1Y= +github.com/Jorropo/jsync v1.0.1 h1:6HgRolFZnsdfzRUj+ImB9og1JYOxQoReSywkHOGSaUU= +github.com/Jorropo/jsync v1.0.1/go.mod h1:jCOZj3vrBCri3bSU3ErUYvevKlnbssrXeCivybS5ABQ= github.com/Masterminds/goutils v1.1.0 h1:zukEsf/1JZwCMgHiK3GZftabmxiCw4apj3a28RPBiVg= github.com/Masterminds/goutils v1.1.0/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= github.com/Masterminds/semver v1.5.0 h1:H65muMkzWKEuNDnfl9d70GUjFniHKHRbFPGBuZ3QEww= @@ -73,118 +72,80 @@ github.com/Masterminds/sprig v2.22.0+incompatible h1:z4yfnGrZ7netVz+0EDJ0Wi+5VZC github.com/Masterminds/sprig v2.22.0+incompatible/go.mod h1:y6hNFY5UBTIWBxnzTeuNhlNS5hqE0NB0E6fgfo2Br3o= github.com/OneOfOne/xxhash v1.2.2 h1:KMrpdQIwFcEqXDklaen+P1axHaj9BSKzvpUUfnHldSE= github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= -github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= -github.com/Shopify/sarama v1.30.0/go.mod h1:zujlQQx1kzHsh4jfV1USnptCQrHAEZ2Hk8fTKCulPVs= -github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= -github.com/Shopify/toxiproxy/v2 v2.1.6-0.20210914104332-15ea381dcdae/go.mod h1:/cvHQkZ1fst0EmZnA5dFtiQdWCNCFYzb+uE2vqVgvx0= -github.com/Stebalien/go-bitfield v0.0.1/go.mod h1:GNjFpasyUVkHMsfEOk8EFLJ9syQ6SI+XWrX9Wf2XH0s= github.com/VictoriaMetrics/fastcache v1.5.7 h1:4y6y0G8PRzszQUYIQHHssv/jgPHAb5qQuuDNdCbyAgw= github.com/VictoriaMetrics/fastcache v1.5.7/go.mod h1:ptDBkNMQI4RtmVo8VS/XwRY6RoTu1dAWCbrk+6WsEM8= -github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g= github.com/aead/ecdh v0.2.0 h1:pYop54xVaq/CEREFEcukHRZfTdjiWvYIsZDXXrBapQQ= github.com/aead/ecdh v0.2.0/go.mod h1:a9HHtXuSo8J1Js1MwLQx2mBhkXMT6YwUmVVEY4tTB8U= github.com/aead/siphash v1.0.1/go.mod h1:Nywa3cDsYNNK3gaciGTWPwHt0wlpNV15vwmswBAUSII= -github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5/go.mod h1:SkGFH1ia65gfNATL8TAiHDNxPzPdmEL5uirI2Uyuz6c= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= -github.com/alecthomas/units v0.0.0-20210927113745-59d0afb8317a/go.mod h1:OMCwj8VM1Kc9e19TLln2VL61YJF0x1XFtfdL4JdbSyE= -github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137 h1:s6gZFSlWYmbqAuRjVTiNNhvNRfY2Wxp9nhfyel4rklc= github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137/go.mod h1:OMCwj8VM1Kc9e19TLln2VL61YJF0x1XFtfdL4JdbSyE= +github.com/alecthomas/units v0.0.0-20231202071711-9a357b53e9c9 h1:ez/4by2iGztzR4L0zgAOR8lTQK9VlyBVVd7G4omaOQs= +github.com/alecthomas/units v0.0.0-20231202071711-9a357b53e9c9/go.mod h1:OMCwj8VM1Kc9e19TLln2VL61YJF0x1XFtfdL4JdbSyE= github.com/alexbrainman/goissue34681 v0.0.0-20191006012335-3fc7a47baff5 h1:iW0a5ljuFxkLGPNem5Ui+KBjFJzKg4Fv2fnxe4dvzpM= github.com/alexbrainman/goissue34681 v0.0.0-20191006012335-3fc7a47baff5/go.mod h1:Y2QMoi1vgtOIfc+6DhrMOGkLoGzqSV2rKp4Sm+opsyA= github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156 h1:eMwmnE/GDgah4HI848JfFxHt+iPb26b4zyfspmqY0/8= github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156/go.mod h1:Cb/ax3seSYIx7SuZdm2G2xzfwmv3TPSk2ucNfQESPXM= github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYUyUczH0OGQWaF5ceTx0UBShxjsH6f8oGKYe2c= github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= -github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= -github.com/apache/thrift v0.13.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= -github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= -github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= -github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= -github.com/aryann/difflib v0.0.0-20170710044230-e206f873d14a/go.mod h1:DAHtR1m6lCRdSC2Tm3DSWRPvIPr6xNKyeHdqDQSQT+A= -github.com/aws/aws-lambda-go v1.13.3/go.mod h1:4UKl9IzQMoD+QF79YdCuzCwp8VbmG4VAQwij/eHl5CU= -github.com/aws/aws-sdk-go v1.27.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= -github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g= github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= -github.com/benbjohnson/clock v1.3.0 h1:ip6w0uFQkncKQ979AypyG0ER7mqUSBdKLOgAle/AT8A= github.com/benbjohnson/clock v1.3.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= +github.com/benbjohnson/clock v1.3.5 h1:VvXlSJBzZpA/zum6Sj74hxwYI2DIxRWuNIoXAzHZz5o= +github.com/benbjohnson/clock v1.3.5/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= github.com/berty/emitter-go v0.0.0-20221031144724-5dae963c3622 h1:kJqfCXKR5EJdh9HYh4rjYL3QvxjP5cnCssIU141m79c= github.com/berty/emitter-go v0.0.0-20221031144724-5dae963c3622/go.mod h1:G66sIy+q6BKIoKoKNqFU7sxSnrS5d8Z8meQ3Iu0ZJ4o= -github.com/berty/go-libp2p-mock v1.0.1 h1:2lsXlZOQvELcvrkHTlK2t2965sg7pkr1sWrucH6S2zg= -github.com/berty/go-libp2p-mock v1.0.1/go.mod h1:PsUBOq6zSAjXKLlSKRzhkIpjm7ZxGgjLn/FZY+3CoKs= -github.com/berty/go-libp2p-pubsub v0.9.4-0.20230706070911-6e35c0f470b8 h1:04xF+6wtZhEIHv+1ghqd7hhCePdKmPykJWSjEyy0uT4= -github.com/berty/go-libp2p-pubsub v0.9.4-0.20230706070911-6e35c0f470b8/go.mod h1:d/76O2W9ZLphGN2Q7Q1QSolJGV3zaO8D+da3Bdpk5d0= -github.com/berty/go-libp2p-rendezvous v0.5.0 h1:eT8fBh+OewfTB6uAA47rzdgAVo/aevW4TA7PvZq75T4= -github.com/berty/go-libp2p-rendezvous v0.5.0/go.mod h1:gkDEobp0lV+DHfNzO7+kCJxApO0vmpOEV+Z5uttZYGM= -github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= +github.com/berty/go-libp2p-mock v1.0.2-0.20240719150538-d7088679a8a7 h1:PDDJoHz7nIpeLhoNNRCO1pKqtwl8q4dEJAT0f+fEqH0= +github.com/berty/go-libp2p-mock v1.0.2-0.20240719150538-d7088679a8a7/go.mod h1:EFApuF26i3EW00yju+Gu0+yM3ozxrZQmnWi5R5AdsNM= +github.com/berty/go-libp2p-rendezvous v0.5.1-0.20240719154654-269ed907d248 h1:mTb8iAIh/QLLb2sCAxkJ1k/DIk/EzA6jwb1/4DpTbBc= +github.com/berty/go-libp2p-rendezvous v0.5.1-0.20240719154654-269ed907d248/go.mod h1:CpFr4YLnSK4ZOqPzTm5lfAxJb4pD/LtvcE9AAQmjuHM= github.com/blang/semver/v4 v4.0.0 h1:1PFHFE6yCCTv8C1TeyNNarDzntLi7wMI5i/pzqYIsAM= github.com/blang/semver/v4 v4.0.0/go.mod h1:IbckMUScFkM3pff0VJDNKRiT6TG/YpiHIM2yvyW5YoQ= github.com/bradfitz/go-smtpd v0.0.0-20170404230938-deb6d6237625/go.mod h1:HYsPBTaaSFSlLx/70C2HPIMNZpVV8+vt/A+FMnYP11g= -github.com/btcsuite/btcd v0.0.0-20190213025234-306aecffea32/go.mod h1:DrZx5ec/dmnfpw9KyYoQyYo7d0KEvTkk/5M/vbZjAr8= -github.com/btcsuite/btcd v0.0.0-20190523000118-16327141da8c/go.mod h1:3J08xEfcugPacsc34/LKRU2yO7YmuT8yt28J8k2+rrI= -github.com/btcsuite/btcd v0.0.0-20190605094302-a0d1e3e36d50/go.mod h1:3J08xEfcugPacsc34/LKRU2yO7YmuT8yt28J8k2+rrI= github.com/btcsuite/btcd v0.0.0-20190824003749-130ea5bddde3/go.mod h1:3J08xEfcugPacsc34/LKRU2yO7YmuT8yt28J8k2+rrI= github.com/btcsuite/btcd v0.20.1-beta/go.mod h1:wVuoA8VJLEcwgqHBwHmzLRazpKxTv13Px/pDuV7OomQ= -github.com/btcsuite/btcd v0.21.0-beta/go.mod h1:ZSWyehm27aAuS9bvkATT+Xte3hjHZ+MRgMY/8NJ7K94= github.com/btcsuite/btcd v0.22.1 h1:CnwP9LM/M9xuRrGSCGeMVs9iv09uMqwsVX7EeIpgV2c= github.com/btcsuite/btcd v0.22.1/go.mod h1:wqgTSL29+50LRkmOVknEdmt8ZojIzhuWvgu/iptuN7Y= github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 h1:q0rUy8C/TYNBQS1+CGKw68tLOFYSNEs0TFnxxnS9+4U= +github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc= github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f/go.mod h1:TdznJufoqS23FtqVCzL0ZqgP5MqXbb4fg/WgDys70nA= -github.com/btcsuite/btcutil v0.0.0-20190207003914-4c204d697803/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg= github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg= -github.com/btcsuite/btcutil v1.0.2/go.mod h1:j9HUFwoQRsZL3V4n+qG+CUnEGHOarIxfC3Le2Yhbcts= github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce h1:YtWJF7RHm2pYCvA5t0RPmAaLUhREsKuKd+SLhxFbFeQ= github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce/go.mod h1:0DVlHczLPewLcPGEIeUEzfOJhqGPQ0mJJRDBtD307+o= github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd/go.mod h1:HHNXQzUsZCxOoE+CPiyCTO6x34Zs86zZUiwtpXoGdtg= github.com/btcsuite/goleveldb v0.0.0-20160330041536-7834afc9e8cd/go.mod h1:F+uVaaLLH7j4eDXPRvw78tMflu7Ie2bzYOH4Y8rRKBY= -github.com/btcsuite/goleveldb v1.0.0/go.mod h1:QiK9vBlgftBg6rWQIj6wFzbPfRjiykIEhBH4obrXJ/I= github.com/btcsuite/snappy-go v0.0.0-20151229074030-0bdef8d06723/go.mod h1:8woku9dyThutzjeg+3xrA5iCpBRH8XEEg3lh6TiUghc= -github.com/btcsuite/snappy-go v1.0.0/go.mod h1:8woku9dyThutzjeg+3xrA5iCpBRH8XEEg3lh6TiUghc= github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792/go.mod h1:ghJtEyQwv5/p4Mg4C0fgbePVuGr935/5ddU9Z3TmDRY= github.com/btcsuite/winsvc v1.0.0/go.mod h1:jsenWakMcC0zFBFurPLEAyrnc/teJEM1O46fmI40EZs= github.com/buger/jsonparser v0.0.0-20181115193947-bf1c66bbce23/go.mod h1:bbYlZJ7hK1yFx9hf58LP0zeX7UjIGs20ufpu3evjr+s= github.com/buicongtan1997/protoc-gen-swagger-config v0.0.0-20200705084907-1342b78c1a7e h1:SHEegopzGCu0vkoUK98733r9TfviEO57VVPkYQ0G+WU= github.com/buicongtan1997/protoc-gen-swagger-config v0.0.0-20200705084907-1342b78c1a7e/go.mod h1:NQIP/fdybt3yyAPo2/ew6pJYzUb1EWizEblXkQOu+TE= -github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n9yuLkIJQ= -github.com/cenkalti/backoff v2.2.1+incompatible h1:tNowT99t7UNflLxfYYSlKYsBpXdEet03Pg2g16Swow4= -github.com/cenkalti/backoff v2.2.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM= -github.com/cenkalti/backoff/v4 v4.1.3 h1:cFAlzYUlVYDysBEH2T5hyJZMh3+5+WCBvSnK6Q8UtC4= -github.com/cenkalti/backoff/v4 v4.1.3/go.mod h1:scbssz8iZGpm3xbr14ovlUdkxfGXNInqkPWOWmG2CLw= +github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= +github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/ceramicnetwork/go-dag-jose v0.1.0 h1:yJ/HVlfKpnD3LdYP03AHyTvbm3BpPiz2oZiOeReJRdU= github.com/ceramicnetwork/go-dag-jose v0.1.0/go.mod h1:qYA1nYt0X8u4XoMAVoOV3upUVKtrxy/I670Dg5F0wjI= github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= -github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/cheekybits/genny v1.0.0/go.mod h1:+tQajlRqAUrPI7DOSpB0XAqZYtQakVtB7wXkRAgjxjQ= +github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= +github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/cheggaaa/pb v1.0.29 h1:FckUN5ngEk2LpvuG0fw1GEFx6LtyY2pWI/Z2QgCnEYo= github.com/cheggaaa/pb v1.0.29/go.mod h1:W40334L7FMC5JKWldsTWbdGjLo0RxUKK73K+TuPxX30= github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= github.com/cilium/ebpf v0.2.0/go.mod h1:To2CFviqOWL/M0gIMsvSMlqe7em/l1ALkX1PyjrX2Qs= -github.com/clbanning/x2j v0.0.0-20191024224557-825249438eec/go.mod h1:jMjuTZXRI4dUb/I5gc9Hdhagfvm9+RyrPryS/auMzxE= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= -github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= -github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI= -github.com/cncf/xds/go v0.0.0-20210312221358-fbca930ec8ed/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20211001041855-01bcc9b48dfe/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8= -github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI= github.com/containerd/cgroups v0.0.0-20201119153540-4cbc285b3327/go.mod h1:ZJeTFisyysqgcCdecO57Dj79RfL0LNeGiFUqLYQRYLE= github.com/containerd/cgroups v1.1.0 h1:v8rEWFl6EoqHB+swVNjVoCJE8o3jX7e8nqBGPLaDFBM= github.com/containerd/cgroups v1.1.0/go.mod h1:6ppBcbh/NOOUU+dMKrykgaBnK9lCIBxHqJDGwsa1mIw= @@ -192,19 +153,16 @@ github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk= github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= -github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= github.com/coreos/go-systemd v0.0.0-20181012123002-c6f51f82210d/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= github.com/coreos/go-systemd/v22 v22.1.0/go.mod h1:xO0FLkIi5MaZafQlIrOotqXZ90ih+1atmu1JpKERPPk= github.com/coreos/go-systemd/v22 v22.5.0 h1:RrqgGjYQKalulkV8NGVIfkXQf6YYmOyiJKk8iXXhfZs= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= -github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE= github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= -github.com/crackcomm/go-gitignore v0.0.0-20170627025303-887ab5e44cc3 h1:HVTnpeuvF6Owjd5mniCL8DEXo7uYXdQEmOP4FJbV5tg= -github.com/crackcomm/go-gitignore v0.0.0-20170627025303-887ab5e44cc3/go.mod h1:p1d6YEZWvFzEh4KLyvBcVSnrfNDDvK2zfK/4x2v/4pE= -github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= +github.com/crackcomm/go-gitignore v0.0.0-20231225121904-e25f5bc08668 h1:ZFUue+PNxmHlu7pYv+IYMtqlaO/0VwaGEqKepZf9JpA= +github.com/crackcomm/go-gitignore v0.0.0-20231225121904-e25f5bc08668/go.mod h1:p1d6YEZWvFzEh4KLyvBcVSnrfNDDvK2zfK/4x2v/4pE= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/cskr/pubsub v1.0.2 h1:vlOzMhl6PFn60gRlTQQsIfVwaPB/B/8MziK8FhEPt/0= github.com/cskr/pubsub v1.0.2/go.mod h1:/8MzYXk/NJAz782G8RPkFzXTZVu63VotefPnR9TIRis= @@ -214,17 +172,13 @@ github.com/davecgh/go-spew v0.0.0-20171005155431-ecdeabc65495/go.mod h1:J7Y8YcW2 github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davidlazar/go-crypto v0.0.0-20170701192655-dcfb0a7ac018/go.mod h1:rQYf4tfk5sSwFsnDg3qYaBxSjsD9S8+59vW0dKUgme4= github.com/davidlazar/go-crypto v0.0.0-20200604182044-b73af7476f6c h1:pFUpOrbxDR6AkioZ1ySsx5yxlDQZ8stG2b88gTPxgJU= github.com/davidlazar/go-crypto v0.0.0-20200604182044-b73af7476f6c/go.mod h1:6UhI8N9EjYm1c2odKpFpAYeR8dsBeM7PtzQhRgxRr9U= -github.com/decred/dcrd/crypto/blake256 v1.0.0 h1:/8DMNYp9SGi5f0w7uCm6d6M4OU2rGFK09Y2A4Xv7EE0= -github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0 h1:HbphB4TFFXpv7MNrT52FGrrgVXF1owhMVTHFZIlnvd4= -github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0/go.mod h1:DZGJHZMqrU4JJqFAWUS2UO1+lbSKsdiOoYi9Zzey7Fc= -github.com/decred/dcrd/lru v1.0.0/go.mod h1:mxKOwFd7lFjN2GZYsiz/ecgqR6kkYAl+0pz0tEMk218= -github.com/dgraph-io/badger v1.5.5-0.20190226225317-8115aed38f8f/go.mod h1:VZxzAIRPHRVNRKRo6AXrX9BJegn6il06VMTZVJYCIjQ= -github.com/dgraph-io/badger v1.6.0-rc1/go.mod h1:zwt7syl517jmP8s94KqSxTlM6IMsdhYy6psNgSztDR4= +github.com/decred/dcrd/crypto/blake256 v1.0.1 h1:7PltbUIQB7u/FfZ39+DGa/ShuMyJ5ilcvdfma9wOH6Y= +github.com/decred/dcrd/crypto/blake256 v1.0.1/go.mod h1:2OfgNZ5wDpcsFmHmCK5gZTPcCXqlm2ArzUIkw9czNJo= +github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 h1:rpfIENRNNilwHwZeG5+P150SMrnNEcHYvcCuK6dPZSg= +github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0/go.mod h1:v57UDF4pDQJcEfFUCRop3lJL149eHGSe9Jvczhzjo/0= github.com/dgraph-io/badger v1.6.0/go.mod h1:zwt7syl517jmP8s94KqSxTlM6IMsdhYy6psNgSztDR4= -github.com/dgraph-io/badger v1.6.1/go.mod h1:FRmFw3uxvcpa8zG3Rxs0th+hCLIuaQg8HlNV5bjgnuU= github.com/dgraph-io/badger v1.6.2 h1:mNw0qs90GVgGGWylh0umH5iag1j6n/PeJtNvL6KY/x8= github.com/dgraph-io/badger v1.6.2/go.mod h1:JW2yswe3V058sS0kZ2h/AXeDSqFjxnZcRrVH//y2UQE= github.com/dgraph-io/badger/v2 v2.2007.3 h1:Sl9tQWz92WCbVSe8pj04Tkqlm2boW+KAxd+XSs58SQI= @@ -233,23 +187,16 @@ github.com/dgraph-io/ristretto v0.0.2/go.mod h1:KPxhHT9ZxKefz+PCeOGsrHpl1qZ7i70d github.com/dgraph-io/ristretto v0.0.3-0.20200630154024-f66de99634de/go.mod h1:KPxhHT9ZxKefz+PCeOGsrHpl1qZ7i70dGTu2u+Ahh6E= github.com/dgraph-io/ristretto v0.0.3 h1:jh22xisGBjrEVnRZ1DVTpBVQm0Xndu8sMl0CWDzSIBI= github.com/dgraph-io/ristretto v0.0.3/go.mod h1:KPxhHT9ZxKefz+PCeOGsrHpl1qZ7i70dGTu2u+Ahh6E= -github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= -github.com/dgryski/go-farm v0.0.0-20190104051053-3adb47b1fb0f/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2 h1:tdlZCpZ/P9DhczCTSixgIKmwPv6+wP5DGjqLYw5SUiA= github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4= github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= -github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= -github.com/dustin/go-humanize v1.0.0 h1:VSnTsYCnlFHaM2/igO1h6X3HA71jcobQuxemgkq4zYo= github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= -github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= -github.com/eapache/go-resiliency v1.2.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= -github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= -github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= +github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY= +github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto= github.com/eclipse/paho.mqtt.golang v1.4.2 h1:66wOzfUHSSI1zamx7jR6yMEI5EuHnT1G6rNA5PM12m4= github.com/eclipse/paho.mqtt.golang v1.4.2/go.mod h1:JGt0RsEwEX+Xa/agj90YJ9d9DH2b7upDZMK9HRbFvCA= -github.com/edsrzf/mmap-go v1.0.0/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M= github.com/elastic/gosigar v0.12.0/go.mod h1:iXRIGg2tLnu7LBdpqzyQfGDEidKCfWcCMS0WKyPWoMs= github.com/elastic/gosigar v0.14.2 h1:Dg80n8cr90OZ7x+bAax/QjoW/XqTI11RmA79ZwIm9/4= github.com/elastic/gosigar v0.14.2/go.mod h1:iXRIGg2tLnu7LBdpqzyQfGDEidKCfWcCMS0WKyPWoMs= @@ -257,48 +204,36 @@ github.com/elgris/jsondiff v0.0.0-20160530203242-765b5c24c302 h1:QV0ZrfBLpFc2KDk github.com/elgris/jsondiff v0.0.0-20160530203242-765b5c24c302/go.mod h1:qBlWZqWeVx9BjvqBsnC/8RUlAYpIFmPvgROcw0n1scE= github.com/emicklei/proto v1.6.13 h1:8iuAuKbFmFhkmstObb0EV/Hrn9W+x6EuV1y5Da8Ye9E= github.com/emicklei/proto v1.6.13/go.mod h1:rn1FgRS/FANiZdD2djyH7TMA9jdRDcYQ9IEN9yvjX0A= -github.com/envoyproxy/go-control-plane v0.6.9/go.mod h1:SBwIajubJHhxtWwsL9s8ss4safvEdbitLhGGK48rN6g= github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= -github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= -github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.mod h1:hliV/p42l8fGbc6Y9bQ70uLwIvmJyVE5k4iMKlh8wCQ= -github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0= -github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/envoyproxy/protoc-gen-validate v0.6.2 h1:JiO+kJTpmYGjEodY7O1Zk8oZcNz1+f30UtwtXoFUPzE= -github.com/envoyproxy/protoc-gen-validate v0.6.2/go.mod h1:2t7qjJNvHPx8IjnBOzl9E9/baC+qXE/TeeyBRzgJDws= +github.com/envoyproxy/protoc-gen-validate v1.0.4 h1:gVPz/FMfvh57HdSJQyvBtF00j8JU4zdyUgIUNhlgg0A= +github.com/envoyproxy/protoc-gen-validate v1.0.4/go.mod h1:qys6tmnRsYrQqIhm2bvKZH4Blx/1gTIZ2UKVY1M+Yew= github.com/facebookgo/atomicfile v0.0.0-20151019160806-2de1f203e7d5 h1:BBso6MBKW8ncyZLv37o+KNyy0HrrHgfnOaGQC2qvN+A= github.com/facebookgo/atomicfile v0.0.0-20151019160806-2de1f203e7d5/go.mod h1:JpoxHjuQauoxiFMl1ie8Xc/7TfLuMZ5eOCONd1sUBHg= -github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU= github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= -github.com/felixge/httpsnoop v1.0.2/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= -github.com/felixge/httpsnoop v1.0.3 h1:s/nj+GCswXYzN5v2DpNMuMQYe+0DDwt5WVCU6CWBdXk= -github.com/felixge/httpsnoop v1.0.3/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= +github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= +github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= -github.com/flynn/noise v1.0.0 h1:DlTHqmzmvcEiKj+4RYo/imoswx/4r6iBlCMfVtrMXpQ= -github.com/flynn/noise v1.0.0/go.mod h1:xbMo+0i6+IGbYdJhF31t2eR1BIU0CYc12+BNAKwUTag= -github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= +github.com/flynn/noise v1.1.0 h1:KjPQoQCEFdZDiP03phOvGi11+SVVhBG2wOWAorLsstg= +github.com/flynn/noise v1.1.0/go.mod h1:xbMo+0i6+IGbYdJhF31t2eR1BIU0CYc12+BNAKwUTag= github.com/francoispqt/gojay v1.2.13 h1:d2m3sFjloqoIUQU3TsHBgj6qg/BVGlTBeHDUmyJnXKk= github.com/francoispqt/gojay v1.2.13/go.mod h1:ehT5mTG4ua4581f1++1WLG0vPdaA9HaiDsoyrBGkyDY= -github.com/franela/goblin v0.0.0-20200105215937-c9ffbefa60db/go.mod h1:7dvUGVsVBjqR7JHJk0brhHOZYGmfBYOrK0ZhYMEtBr4= -github.com/franela/goreq v0.0.0-20171204163338-bcd34c9993f8/go.mod h1:ZhphrRTfi2rbfLwlschooIH4+wKKDR4Pdxhh+TRoA20= github.com/frankban/quicktest v1.11.3/go.mod h1:wRf/ReqHper53s+kmmSZizM8NamnL3IM0I9ntUbOk+k= github.com/frankban/quicktest v1.14.0/go.mod h1:NeW+ay9A/U67EYXNFA1nPE8e/tnQv/09mUdL/ijj8og= -github.com/frankban/quicktest v1.14.4 h1:g2rn0vABPOOXmZUj+vbmUp0lPoXEMuhTpIluN0XL9UY= +github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8= +github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY= -github.com/gabriel-vasile/mimetype v1.4.1 h1:TRWk7se+TOjCYgRth7+1/OYLNiRNIotknkFtf/dnN7Q= -github.com/gabriel-vasile/mimetype v1.4.1/go.mod h1:05Vi0w3Y9c/lNvJOdmIwvrrAhX3rYhfQQCaf9VJcv7M= +github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw= +github.com/gabriel-vasile/mimetype v1.4.3 h1:in2uUcidCuFcDKtdcBxlR0rJ1+fsokWf+uqxgUFjbI0= +github.com/gabriel-vasile/mimetype v1.4.3/go.mod h1:d8uq/6HKRL6CGdk+aubisF/M5GcPfT7nKyLpA0lbSSk= github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= -github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE= -github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= -github.com/gin-gonic/gin v1.6.3 h1:ahKqKTFpO5KTPHxWZjEdPScmYaGtLo8Y4DMHoEsnp14= -github.com/gin-gonic/gin v1.6.3/go.mod h1:75u5sXoLsGZoRN5Sgbi1eraJ4GU3++wFwWzhwvtwp4M= github.com/gliderlabs/ssh v0.1.1/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0= github.com/go-check/check v0.0.0-20180628173108-788fd7840127/go.mod h1:9ES+weclKsC9YodN5RgxqK/VD9HM9JsCSh7rNhMZE98= github.com/go-errors/errors v1.0.1/go.mod h1:f4zRHt4oKfwPJE5k8C9vpYG+aDHdBFUsgrm6/TyX73Q= @@ -307,8 +242,8 @@ github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2 github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= -github.com/go-kit/kit v0.10.0/go.mod h1:xUsJbQ/Fp4kEt7AFgCuvyX4a71u8h9jB8tj/ORgOZ7o= github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= +github.com/go-kit/log v0.2.0/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= github.com/go-kit/log v0.2.1 h1:MRVx0/zhvdseW+Gza6N9rVzU/IVzaeE1SFI4raAhmBU= github.com/go-kit/log v0.2.1/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= @@ -317,49 +252,30 @@ github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG github.com/go-logfmt/logfmt v0.5.1 h1:otpy5pqBCBZ1ng9RQ0dPu4PN7ba75Y/aA+UpowDyNVA= github.com/go-logfmt/logfmt v0.5.1/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= -github.com/go-logr/logr v1.2.3 h1:2DntVwHkVopvECVRSlL5PSo9eG+cAkDCuckLubN+rq0= -github.com/go-logr/logr v1.2.3/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= +github.com/go-logr/logr v1.4.1 h1:pKouT5E8xu9zeFC39JXRDukb6JFQPXM5p5I91188VAQ= +github.com/go-logr/logr v1.4.1/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= -github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= -github.com/go-playground/locales v0.13.0 h1:HyWk6mgj5qFqCT5fjGBuRArbVDfE4hi8+e8ceBS/t7Q= -github.com/go-playground/locales v0.13.0/go.mod h1:taPMhCMXrRLJO55olJkUXHZBHCxTMfnGwq/HNwmWNS8= -github.com/go-playground/universal-translator v0.17.0 h1:icxd5fm+REJzpZx7ZfpaD876Lmtgy7VtROAbHHXk8no= -github.com/go-playground/universal-translator v0.17.0/go.mod h1:UkSxE5sNxxRwHyU+Scu5vgOQjsIJAF8j9muTVoKLVtA= -github.com/go-playground/validator/v10 v10.2.0 h1:KgJ0snyC2R9VXYN2rneOtQcw5aHQB1Vv0sFl1UcHBOY= -github.com/go-playground/validator/v10 v10.2.0/go.mod h1:uOYAAleCW8F/7oMFd6aG0GOhaH6EGOAJShg8Id5JGkI= -github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= -github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= -github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 h1:tfuBGBXKqDEevZMzYi5KSi8KkcZtzBcTgAUUtapy0OI= -github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572/go.mod h1:9Pwr4B2jHnOSGXyyzV8ROjYa2ojvAY6HCGYYfMoC3Ls= +github.com/go-task/slim-sprig/v3 v3.0.0 h1:sUs3vkvUymDpBKi3qH1YSqBQk9+9D/8M2mN1vB6EwHI= +github.com/go-task/slim-sprig/v3 v3.0.0/go.mod h1:W848ghGpv3Qj3dhTPRyJypKRiqCdHZiAzKg9hl15HA8= github.com/go-yaml/yaml v2.1.0+incompatible/go.mod h1:w2MrLa16VYP0jy6N7M5kHaCkaLENm+P+Tv+MfurjSw0= -github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee h1:s+21KNqlpePfkah2I+gwHF8xmJWRjooY+5248k6m4A0= -github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee/go.mod h1:L0fX3K22YWvt/FAX9NnzrNzcI4wNYi9Yku4O0LKYflo= -github.com/gobwas/pool v0.2.0 h1:QEmUOlnSjWtnpRGHF3SauEiOsy82Cup83Vf2LcMlnc8= -github.com/gobwas/pool v0.2.0/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw= -github.com/gobwas/ws v1.0.2 h1:CoAavW/wd/kulfZmSIBt6p24n4j7tHgNVCjsfHVNUbo= -github.com/gobwas/ws v1.0.2/go.mod h1:szmBTxLgaFppYjEmNtny/v3w89xOydFnnZMcgRRu/EM= github.com/godbus/dbus/v5 v5.0.3/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= github.com/godbus/dbus/v5 v5.1.0 h1:4KLkAxT3aOY8Li4FRJe/KvhoNFFxo0m6fNuFUO8QJUk= github.com/godbus/dbus/v5 v5.1.0/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= github.com/gofrs/uuid v4.3.1+incompatible h1:0/KbAdpx3UXAx1kEOWHJeOkpbgRFGHVgv+CFIY7dBJI= github.com/gofrs/uuid v4.3.1+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= -github.com/gogo/googleapis v1.1.0/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFGgqEef3s= github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= -github.com/gogo/protobuf v1.2.0/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4= github.com/gogo/protobuf v1.3.0/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/glog v1.0.0 h1:nfP3RFugxnNRyKgeWd4oI1nYvXpxrx8ck8ZrcizshdQ= -github.com/golang/glog v1.0.0/go.mod h1:EWib/APOK0SL3dFbYqvxE3UYd8E6s1ouQ7iEp/0LWV4= -github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= +github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20191027212112-611e8accdfc9/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE= @@ -372,10 +288,7 @@ github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= -github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= -github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.0/go.mod h1:Qd/q+1AKNOZr9uGQzbzCmRO6sUih6GTPZv6a1/R87v0= github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= @@ -391,8 +304,8 @@ github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= -github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= -github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= +github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= @@ -411,13 +324,12 @@ github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE= -github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= -github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= +github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-github v17.0.0+incompatible/go.mod h1:zLgOLi98H3fifZn+44m+umXrS52loVEgC2AApnigrVQ= github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/gopacket v1.1.17/go.mod h1:UdDNZ1OO62aGYVnPhxT1U6aI7ukYtA/kB8vaU0diBUM= github.com/google/gopacket v1.1.19 h1:ves8RnFZPGiFnTS0uPQStjwru6uO6h+nlr9j6fL7kF8= github.com/google/gopacket v1.1.19/go.mod h1:iJ8V8n6KS+z2U1A8pUwu8bW5SyEMkXJB8Yo/Vo+TKTo= github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= @@ -429,99 +341,63 @@ github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hf github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20230405160723-4a4c7d95572b h1:Qcx5LM0fSiks9uCyFZwDBUasd3lxd1RM0GYpL+Li5o4= -github.com/google/pprof v0.0.0-20230405160723-4a4c7d95572b/go.mod h1:79YE0hCXdHag9sBkw2o+N/YnZtTkXi0UT9Nnixa5eYk= +github.com/google/pprof v0.0.0-20240509144519-723abb6459b7 h1:velgFPYr1X9TDwLIfkV7fWqsFlf7TeP11M/7kPd/dVI= +github.com/google/pprof v0.0.0-20240509144519-723abb6459b7/go.mod h1:kf6iHlnVGwgKolg33glAes7Yg/8iWP8ukqeldJSO7jw= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/tink/go v1.7.0 h1:6Eox8zONGebBFcCBqkVmt60LaWZa6xg1cl/DwAh/J1w= github.com/google/tink/go v1.7.0/go.mod h1:GAUOd+QE3pgj9q8VKIGTCP33c/B7eb4NhxLcgTJZStM= -github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.2.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= -github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/googleapis/gax-go v2.0.0+incompatible/go.mod h1:SFVmujtThgffbyetf+mdk2eWhX2bMyUtNHzFKcPA9HY= github.com/googleapis/gax-go/v2 v2.0.3/go.mod h1:LLvjysVCY1JZeum8Z6l8qUty8fiNwE08qbEPm1M08qg= github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= -github.com/gopherjs/gopherjs v0.0.0-20190430165422-3e4dfb77656c/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= github.com/gopherjs/gopherjs v0.0.0-20190812055157-5d271430af9f h1:KMlcu9X58lhTA/KrfX8Bi1LQSO4pzoVjTiL3h4Jk+Zk= -github.com/gorilla/context v1.1.1/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg= -github.com/gorilla/mux v1.6.2/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= -github.com/gorilla/mux v1.7.3/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= -github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI= -github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= -github.com/gorilla/securecookie v1.1.1/go.mod h1:ra0sb63/xPlUeL+yeDciTfxMRAA+MP+HVt/4epWDjd4= -github.com/gorilla/sessions v1.2.1/go.mod h1:dk2InVEVJ0sfLlnXv9EAgkf6ecYs/i80K/zI+bUmuGM= -github.com/gorilla/websocket v0.0.0-20170926233335-4201258b820c/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= -github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= -github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/gopherjs/gopherjs v0.0.0-20190812055157-5d271430af9f/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= +github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY= +github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ= github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= -github.com/gorilla/websocket v1.5.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc= -github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/QY= +github.com/gorilla/websocket v1.5.1/go.mod h1:x3kM2JMyaluk02fnUJpQuwD2dCS5NDG2ZHL0uE0tcaY= github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= -github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 h1:+9834+KizmvFV7pXQGSXQTsaWhq2GjuNUt0aUU0YBYw= github.com/grpc-ecosystem/go-grpc-middleware v1.3.0/go.mod h1:z0ButlSOZa5vEBq9m2m2hlwIgKw+rp3sdCBRoJY+30Y= -github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= github.com/grpc-ecosystem/grpc-gateway v1.5.0/go.mod h1:RSKVYQBd5MCa4OVpNdGskqpgL2+G+NZTnrVHpWWfpdw= -github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= github.com/grpc-ecosystem/grpc-gateway v1.16.0 h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= -github.com/grpc-ecosystem/grpc-gateway/v2 v2.7.0 h1:BZHcxBETFHIdVyhyEfOvn/RdU/QGdLI4y34qQGjGWO0= -github.com/grpc-ecosystem/grpc-gateway/v2 v2.7.0/go.mod h1:hgWBS7lorOAVIJEQMi4ZsPv9hVvWI6+ch50m39Pf2Ks= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.20.0 h1:bkypFPDjIYGfCYD5mRBvpqxfYX1YCS1PXdKYWi8FsN0= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.20.0/go.mod h1:P+Lt/0by1T8bfcF3z737NnSbmxQAppXMRziHUxPOC8k= github.com/gxed/hashland/keccakpg v0.0.1/go.mod h1:kRzw3HkwxFU1mpmPP8v1WyQzwdGfmKFJ6tItnhQ67kU= github.com/gxed/hashland/murmur3 v0.0.1/go.mod h1:KjXop02n4/ckmZSnY2+HKcLud/tcmvhST0bie/0lS48= -github.com/hannahhoward/go-pubsub v0.0.0-20200423002714-8d62886cc36e h1:3YKHER4nmd7b5qy5t0GWDTwSn4OyRgfAXSmo6VnryBY= -github.com/hannahhoward/go-pubsub v0.0.0-20200423002714-8d62886cc36e/go.mod h1:I8h3MITA53gN9OnWGCgaMa0JWVRdXthWw4M3CPM54OY= -github.com/hashicorp/consul/api v1.3.0/go.mod h1:MmDNSzIMUjNpY/mQ398R4bk2FnqQLoPndWW5VkKPlCE= -github.com/hashicorp/consul/sdk v0.3.0/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I= github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= -github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= -github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= -github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= -github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= -github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU= -github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= -github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= -github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= -github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= -github.com/hashicorp/golang-lru v0.5.4 h1:YDjusn29QI/Das2iO9M0BHnIbxPeyuCHsjMW+lJfyTc= -github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= -github.com/hashicorp/golang-lru/v2 v2.0.2 h1:Dwmkdr5Nc/oBiXgJS3CDHNhJtIHkuZ3DZF5twqnfBdU= -github.com/hashicorp/golang-lru/v2 v2.0.2/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM= +github.com/hashicorp/golang-lru v1.0.2 h1:dV3g9Z/unq5DpblPpw+Oqcv4dU/1omnb4Ok8iPY6p1c= +github.com/hashicorp/golang-lru v1.0.2/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= +github.com/hashicorp/golang-lru/v2 v2.0.7 h1:a+bsQ5rvGLjzHuww6tVxozPZFVghXaHOwFs4luLUK2k= +github.com/hashicorp/golang-lru/v2 v2.0.7/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= -github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= -github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ= -github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I= -github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM= github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= github.com/huandu/xstrings v1.3.2 h1:L18LIDzqlW6xN2rEkpdV8+oL/IXWJ1APd+vsdYy4Wdw= github.com/huandu/xstrings v1.3.2/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= -github.com/hudl/fargo v1.3.0/go.mod h1:y3CKSmjA+wD2gak7sUSXTAoopbhU08POFhmITJgmKTg= -github.com/huin/goupnp v1.0.0/go.mod h1:n9v9KO1tAxYH82qOn+UTIFQDmx5n1Zxd/ClZDMX7Bnc= -github.com/huin/goupnp v1.1.0 h1:gEe0Dp/lZmPZiDFzJJaOfUpOvv2MKUkoBX8lDrn9vKU= -github.com/huin/goupnp v1.1.0/go.mod h1:gnGPsThkYa7bFi/KWmEysQRf48l2dvR5bxr2OFckNX8= -github.com/huin/goutil v0.0.0-20170803182201-1ca381bf3150/go.mod h1:PpLOETDnJ0o3iZrZfqZzyLl6l7F3c6L1oWn7OICBi6o= +github.com/huin/goupnp v1.3.0 h1:UvLUlWDNpoUdYzb2TCn+MuTWtcjXKSza2n6CBdQ0xXc= +github.com/huin/goupnp v1.3.0/go.mod h1:gnGPsThkYa7bFi/KWmEysQRf48l2dvR5bxr2OFckNX8= github.com/hyperledger/aries-framework-go v0.1.9-0.20221202141134-083803ecf0a3 h1:r/jf1DTXG72uO5xK1VgZGywcjBlXh1E8kKnAt67bXJA= github.com/hyperledger/aries-framework-go v0.1.9-0.20221202141134-083803ecf0a3/go.mod h1:5lp5+NPjRngsjFLYYGg5mtkvw6I4Mr7CKz+wHYxROk0= github.com/hyperledger/aries-framework-go/spi v0.0.0-20221025204933-b807371b6f1e h1:SxbXlF39661T9w/L9PhVdtbJfJ51Pm4JYEEW6XfZHEQ= github.com/hyperledger/aries-framework-go/spi v0.0.0-20221025204933-b807371b6f1e/go.mod h1:oryUyWb23l/a3tAP9KW+GBbfcfqp9tZD4y5hSkFrkqI= github.com/hyperledger/ursa-wrapper-go v0.3.1 h1:Do+QrVNniY77YK2jTIcyWqj9rm/Yb5SScN0bqCjiibA= github.com/hyperledger/ursa-wrapper-go v0.3.1/go.mod h1:nPSAuMasIzSVciQo22PedBk4Opph6bJ6ia3ms7BH/mk= -github.com/iancoleman/strcase v0.2.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho= github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/imdario/mergo v0.3.11 h1:3tnifQM4i+fbajXKBHXWEH+KvNHqojZ778UH75j3bGA= github.com/imdario/mergo v0.3.11/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= @@ -529,260 +405,157 @@ github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANyt github.com/inconshreveable/mousetrap v1.0.1/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= -github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo= -github.com/ipfs/bbloom v0.0.1/go.mod h1:oqo8CVWsJFMOZqTglBG4wydCE4IQA/G2/SEofB0rjUI= +github.com/ipfs-shipyard/nopfs v0.0.12 h1:mvwaoefDF5VI9jyvgWCmaoTJIJFAfrbyQV5fJz35hlk= +github.com/ipfs-shipyard/nopfs v0.0.12/go.mod h1:mQyd0BElYI2gB/kq/Oue97obP4B3os4eBmgfPZ+hnrE= +github.com/ipfs-shipyard/nopfs/ipfs v0.13.2-0.20231027223058-cde3b5ba964c h1:7UynTbtdlt+w08ggb1UGLGaGjp1mMaZhoTZSctpn5Ak= +github.com/ipfs-shipyard/nopfs/ipfs v0.13.2-0.20231027223058-cde3b5ba964c/go.mod h1:6EekK/jo+TynwSE/ZOiOJd4eEvRXoavEC3vquKtv4yI= github.com/ipfs/bbloom v0.0.4 h1:Gi+8EGJ2y5qiD5FbsbpX/TMNcJw8gSqr7eyjHa4Fhvs= github.com/ipfs/bbloom v0.0.4/go.mod h1:cS9YprKXpoZ9lT0n/Mw/a6/aFV6DTjTLYHeA+gyqMG0= -github.com/ipfs/go-bitfield v1.0.0/go.mod h1:N/UiujQy+K+ceU1EF5EkVd1TNqevLrCQMIcAEPrdtus= +github.com/ipfs/boxo v0.20.0 h1:umUl7q1v5g5AX8FPLTnZBvvagLmT+V0Tt61EigP81ec= +github.com/ipfs/boxo v0.20.0/go.mod h1:mwttn53Eibgska2DhVIj7ln3UViq7MVHRxOMb+ehSDM= github.com/ipfs/go-bitfield v1.1.0 h1:fh7FIo8bSwaJEh6DdTWbCeZ1eqOaOkKFI74SCnsWbGA= github.com/ipfs/go-bitfield v1.1.0/go.mod h1:paqf1wjq/D2BBmzfTVFlJQ9IlFOZpg422HL0HqsGWHU= -github.com/ipfs/go-bitswap v0.1.0/go.mod h1:FFJEf18E9izuCqUtHxbWEvq+reg7o4CW5wSAE1wsxj0= -github.com/ipfs/go-bitswap v0.1.2/go.mod h1:qxSWS4NXGs7jQ6zQvoPY3+NmOfHHG47mhkiLzBpJQIs= -github.com/ipfs/go-bitswap v0.5.1/go.mod h1:P+ckC87ri1xFLvk74NlXdP0Kj9RmWAh4+H78sC6Qopo= -github.com/ipfs/go-bitswap v0.6.0/go.mod h1:Hj3ZXdOC5wBJvENtdqsixmzzRukqd8EHLxZLZc3mzRA= github.com/ipfs/go-bitswap v0.11.0 h1:j1WVvhDX1yhG32NTC9xfxnqycqYIlhzEzLXG/cU1HyQ= -github.com/ipfs/go-block-format v0.0.1/go.mod h1:DK/YYcsSUIVAFNwo/KZCdIIbpN0ROH/baNLgayt4pFc= -github.com/ipfs/go-block-format v0.0.2/go.mod h1:AWR46JfpcObNfg3ok2JHDUfdiHRgWhJgCQF+KIgOPJY= +github.com/ipfs/go-bitswap v0.11.0/go.mod h1:05aE8H3XOU+LXpTedeAS0OZpcO1WFsj5niYQH9a1Tmk= github.com/ipfs/go-block-format v0.0.3/go.mod h1:4LmD4ZUw0mhO+JSKdpWwrzATiEfM7WWgQ8H5l6P8MVk= -github.com/ipfs/go-block-format v0.1.1 h1:129vSO3zwbsYADcyQWcOYiuCpAqt462SFfqFHdFJhhI= -github.com/ipfs/go-block-format v0.1.1/go.mod h1:+McEIT+g52p+zz5xGAABGSOKrzmrdX97bc0USBdWPUs= -github.com/ipfs/go-blockservice v0.1.0/go.mod h1:hzmMScl1kXHg3M2BjTymbVPjv627N7sYcvYaKbop39M= -github.com/ipfs/go-blockservice v0.2.1/go.mod h1:k6SiwmgyYgs4M/qt+ww6amPeUH9EISLRBnvUurKJhi8= -github.com/ipfs/go-blockservice v0.3.0/go.mod h1:P5ppi8IHDC7O+pA0AlGTF09jruB2h+oP3wVVaZl8sfk= -github.com/ipfs/go-blockservice v0.5.0 h1:B2mwhhhVQl2ntW2EIpaWPwSCxSuqr5fFA93Ms4bYLEY= -github.com/ipfs/go-blockservice v0.5.0/go.mod h1:W6brZ5k20AehbmERplmERn8o2Ni3ZZubvAxaIUeaT6w= -github.com/ipfs/go-cid v0.0.1/go.mod h1:GHWU/WuQdMPmIosc4Yn1bcCT7dSeX4lBafM7iqUPQvM= -github.com/ipfs/go-cid v0.0.2/go.mod h1:GHWU/WuQdMPmIosc4Yn1bcCT7dSeX4lBafM7iqUPQvM= +github.com/ipfs/go-block-format v0.2.0 h1:ZqrkxBA2ICbDRbK8KJs/u0O3dlp6gmAuuXUJNiW1Ycs= +github.com/ipfs/go-block-format v0.2.0/go.mod h1:+jpL11nFx5A/SPpsoBn6Bzkra/zaArfSmsknbPMYgzM= +github.com/ipfs/go-blockservice v0.5.2 h1:in9Bc+QcXwd1apOVM7Un9t8tixPKdaHQFdLSUM1Xgk8= +github.com/ipfs/go-blockservice v0.5.2/go.mod h1:VpMblFEqG67A/H2sHKAemeH9vlURVavlysbdUI632yk= github.com/ipfs/go-cid v0.0.3/go.mod h1:GHWU/WuQdMPmIosc4Yn1bcCT7dSeX4lBafM7iqUPQvM= github.com/ipfs/go-cid v0.0.4/go.mod h1:4LLaPOQwmk5z9LBgQnpkivrx8BJjUyGwTXCd5Xfj6+M= -github.com/ipfs/go-cid v0.0.5/go.mod h1:plgt+Y5MnOey4vO4UlUazGqdbEXuFYitED67FexhXog= -github.com/ipfs/go-cid v0.0.6/go.mod h1:6Ux9z5e+HpkQdckYoX1PG/6xqKspzlEIR5SDmgqgC/I= github.com/ipfs/go-cid v0.0.7/go.mod h1:6Ux9z5e+HpkQdckYoX1PG/6xqKspzlEIR5SDmgqgC/I= -github.com/ipfs/go-cid v0.1.0/go.mod h1:rH5/Xv83Rfy8Rw6xG+id3DYAMUVmem1MowoKwdXmN2o= github.com/ipfs/go-cid v0.4.1 h1:A/T3qGvxi4kpKWWcPC/PgbvDA2bjVLO7n4UeVwnbs/s= github.com/ipfs/go-cid v0.4.1/go.mod h1:uQHwDeX4c6CtyrFwdqyhpNcxVewur1M7l7fNU7LKwZk= github.com/ipfs/go-cidutil v0.1.0 h1:RW5hO7Vcf16dplUU60Hs0AKDkQAVPVplr7lk97CFL+Q= github.com/ipfs/go-cidutil v0.1.0/go.mod h1:e7OEVBMIv9JaOxt9zaGEmAoSlXW9jdFZ5lP/0PwcfpA= -github.com/ipfs/go-datastore v0.0.1/go.mod h1:d4KVXhMt913cLBEI/PXAy6ko+W7e9AhyAKBGh803qeE= -github.com/ipfs/go-datastore v0.0.5/go.mod h1:d4KVXhMt913cLBEI/PXAy6ko+W7e9AhyAKBGh803qeE= github.com/ipfs/go-datastore v0.1.0/go.mod h1:d4KVXhMt913cLBEI/PXAy6ko+W7e9AhyAKBGh803qeE= github.com/ipfs/go-datastore v0.1.1/go.mod h1:w38XXW9kVFNp57Zj5knbKWM2T+KOZCGDRVNdgPHtbHw= -github.com/ipfs/go-datastore v0.3.1/go.mod h1:w38XXW9kVFNp57Zj5knbKWM2T+KOZCGDRVNdgPHtbHw= -github.com/ipfs/go-datastore v0.4.0/go.mod h1:SX/xMIKoCszPqp+z9JhPYCmoOoXTvaa13XEbGtsFUhA= -github.com/ipfs/go-datastore v0.4.1/go.mod h1:SX/xMIKoCszPqp+z9JhPYCmoOoXTvaa13XEbGtsFUhA= -github.com/ipfs/go-datastore v0.4.4/go.mod h1:SX/xMIKoCszPqp+z9JhPYCmoOoXTvaa13XEbGtsFUhA= -github.com/ipfs/go-datastore v0.4.5/go.mod h1:eXTcaaiN6uOlVCLS9GjJUJtlvJfM3xk23w3fyfrmmJs= github.com/ipfs/go-datastore v0.5.0/go.mod h1:9zhEApYMTl17C8YDp7JmU7sQZi2/wqiYh73hakZ90Bk= github.com/ipfs/go-datastore v0.5.1/go.mod h1:9zhEApYMTl17C8YDp7JmU7sQZi2/wqiYh73hakZ90Bk= github.com/ipfs/go-datastore v0.6.0 h1:JKyz+Gvz1QEZw0LsX1IBn+JFCJQH4SJVFtM4uWU0Myk= github.com/ipfs/go-datastore v0.6.0/go.mod h1:rt5M3nNbSO/8q1t4LNkLyUwRs8HupMeN/8O4Vn9YAT8= -github.com/ipfs/go-delegated-routing v0.7.0 h1:43FyMnKA+8XnyX68Fwg6aoGkqrf8NS5aG7p644s26PU= -github.com/ipfs/go-delegated-routing v0.7.0/go.mod h1:u4zxjUWIe7APUW5ds9CfD0tJX3vM9JhIeNqA8kE4vHE= github.com/ipfs/go-detect-race v0.0.1 h1:qX/xay2W3E4Q1U7d9lNs1sU9nvguX0a7319XbyQ6cOk= github.com/ipfs/go-detect-race v0.0.1/go.mod h1:8BNT7shDZPo99Q74BpGMK+4D8Mn4j46UU0LZ723meps= -github.com/ipfs/go-ds-badger v0.0.2/go.mod h1:Y3QpeSFWQf6MopLTiZD+VT6IC1yZqaGmjvRcKeSGij8= -github.com/ipfs/go-ds-badger v0.0.5/go.mod h1:g5AuuCGmr7efyzQhLL8MzwqcauPojGPUaHzfGTzuE3s= github.com/ipfs/go-ds-badger v0.0.7/go.mod h1:qt0/fWzZDoPW6jpQeqUjR5kBfhDNB65jd9YlmAvpQBk= -github.com/ipfs/go-ds-badger v0.2.1/go.mod h1:Tx7l3aTph3FMFrRS838dcSJh+jjA7cX9DrGVwx/NOwE= -github.com/ipfs/go-ds-badger v0.2.3/go.mod h1:pEYw0rgg3FIrywKKnL+Snr+w/LjJZVMTBRn4FS6UHUk= github.com/ipfs/go-ds-badger v0.3.0 h1:xREL3V0EH9S219kFFueOYJJTcjgNSZ2HY1iSvN7U1Ro= github.com/ipfs/go-ds-badger v0.3.0/go.mod h1:1ke6mXNqeV8K3y5Ak2bAA0osoTfmxUdupVCGm4QUIek= github.com/ipfs/go-ds-badger2 v0.1.3 h1:Zo9JicXJ1DmXTN4KOw7oPXkspZ0AWHcAFCP1tQKnegg= github.com/ipfs/go-ds-badger2 v0.1.3/go.mod h1:TPhhljfrgewjbtuL/tczP8dNrBYwwk+SdPYbms/NO9w= github.com/ipfs/go-ds-flatfs v0.5.1 h1:ZCIO/kQOS/PSh3vcF1H6a8fkRGS7pOfwfPdx4n/KJH4= github.com/ipfs/go-ds-flatfs v0.5.1/go.mod h1:RWTV7oZD/yZYBKdbVIFXTX2fdY2Tbvl94NsWqmoyAX4= -github.com/ipfs/go-ds-leveldb v0.0.1/go.mod h1:feO8V3kubwsEF22n0YRQCffeb79OOYIykR4L04tMOYc= github.com/ipfs/go-ds-leveldb v0.1.0/go.mod h1:hqAW8y4bwX5LWcCtku2rFNX3vjDZCy5LZCg+cSZvYb8= -github.com/ipfs/go-ds-leveldb v0.4.1/go.mod h1:jpbku/YqBSsBc1qgME8BkWS4AxzF2cEu1Ii2r79Hh9s= -github.com/ipfs/go-ds-leveldb v0.4.2/go.mod h1:jpbku/YqBSsBc1qgME8BkWS4AxzF2cEu1Ii2r79Hh9s= github.com/ipfs/go-ds-leveldb v0.5.0 h1:s++MEBbD3ZKc9/8/njrn4flZLnCuY9I79v94gBUNumo= github.com/ipfs/go-ds-leveldb v0.5.0/go.mod h1:d3XG9RUDzQ6V4SHi8+Xgj9j1XuEk1z82lquxrVbml/Q= github.com/ipfs/go-ds-measure v0.2.0 h1:sG4goQe0KDTccHMyT45CY1XyUbxe5VwTKpg2LjApYyQ= github.com/ipfs/go-ds-measure v0.2.0/go.mod h1:SEUD/rE2PwRa4IQEC5FuNAmjJCyYObZr9UvVh8V3JxE= github.com/ipfs/go-ds-sql v0.3.0 h1:PLBbl0Rt0tBwWhQ0b3GCQbH+Bgd6aj2srKG6vJ7nYl4= github.com/ipfs/go-ds-sql v0.3.0/go.mod h1:jE3bhmuUnMPXFftc4NEAiPUfgiwiv7fIdjozuX+m1/E= -github.com/ipfs/go-fetcher v1.6.1 h1:UFuRVYX5AIllTiRhi5uK/iZkfhSpBCGX7L70nSZEmK8= -github.com/ipfs/go-fetcher v1.6.1/go.mod h1:27d/xMV8bodjVs9pugh/RCjjK2OZ68UgAMspMdingNo= -github.com/ipfs/go-filestore v1.2.0 h1:O2wg7wdibwxkEDcl7xkuQsPvJFRBVgVSsOJ/GP6z3yU= -github.com/ipfs/go-filestore v1.2.0/go.mod h1:HLJrCxRXquTeEEpde4lTLMaE/MYJZD7WHLkp9z6+FF8= github.com/ipfs/go-fs-lock v0.0.7 h1:6BR3dajORFrFTkb5EpCUFIAypsoxpGpDSVUdFwzgL9U= github.com/ipfs/go-fs-lock v0.0.7/go.mod h1:Js8ka+FNYmgQRLrRXzU3CB/+Csr1BwrRilEcvYrHhhc= -github.com/ipfs/go-graphsync v0.14.1 h1:tvFpBY9LcehIB7zi5SZIa+7aoxBOrGbdekhOXdnlT70= -github.com/ipfs/go-graphsync v0.14.1/go.mod h1:S6O/c5iXOXqDgrQgiZSgOTRUSiVvpKEhrzqFHKnLVcs= -github.com/ipfs/go-ipfs-blockstore v0.0.1/go.mod h1:d3WClOmRQKFnJ0Jz/jj/zmksX0ma1gROTlovZKBmN08= -github.com/ipfs/go-ipfs-blockstore v0.1.0/go.mod h1:5aD0AvHPi7mZc6Ci1WCAhiBQu2IsfTduLl+422H6Rqw= -github.com/ipfs/go-ipfs-blockstore v0.2.1/go.mod h1:jGesd8EtCM3/zPgx+qr0/feTXGUeRai6adgwC+Q+JvE= -github.com/ipfs/go-ipfs-blockstore v1.2.0 h1:n3WTeJ4LdICWs/0VSfjHrlqpPpl6MZ+ySd3j8qz0ykw= -github.com/ipfs/go-ipfs-blockstore v1.2.0/go.mod h1:eh8eTFLiINYNSNawfZOC7HOxNTxpB1PFuA5E1m/7exE= +github.com/ipfs/go-ipfs-blockstore v1.3.1 h1:cEI9ci7V0sRNivqaOr0elDsamxXFxJMMMy7PTTDQNsQ= +github.com/ipfs/go-ipfs-blockstore v1.3.1/go.mod h1:KgtZyc9fq+P2xJUiCAzbRdhhqJHvsw8u2Dlqy2MyRTE= github.com/ipfs/go-ipfs-blocksutil v0.0.1 h1:Eh/H4pc1hsvhzsQoMEP3Bke/aW5P5rVM1IWFJMcGIPQ= github.com/ipfs/go-ipfs-blocksutil v0.0.1/go.mod h1:Yq4M86uIOmxmGPUHv/uI7uKqZNtLb449gwKqXjIsnRk= -github.com/ipfs/go-ipfs-chunker v0.0.1/go.mod h1:tWewYK0we3+rMbOh7pPFGDyypCtvGcBFymgY4rSDLAw= github.com/ipfs/go-ipfs-chunker v0.0.5 h1:ojCf7HV/m+uS2vhUGWcogIIxiO5ubl5O57Q7NapWLY8= github.com/ipfs/go-ipfs-chunker v0.0.5/go.mod h1:jhgdF8vxRHycr00k13FM8Y0E+6BoalYeobXmUyTreP8= -github.com/ipfs/go-ipfs-cmds v0.8.2 h1:WmehvYWkxch8dTw0bdF51R8lqbyl+3H8e6pIACzT/ds= -github.com/ipfs/go-ipfs-cmds v0.8.2/go.mod h1:/b17Davff0E0Wh/hhXsN1Pgxxbkm26k3PV+G4EDiC/s= +github.com/ipfs/go-ipfs-cmds v0.11.0 h1:6AsTKwbVxwzrOkq2x89e6jYMGxzYqjt/WbAam69HZQE= +github.com/ipfs/go-ipfs-cmds v0.11.0/go.mod h1:DHp7YfJlOK+2IS07nk+hFmbKHK52tc29W38CaAgWHpk= github.com/ipfs/go-ipfs-delay v0.0.0-20181109222059-70721b86a9a8/go.mod h1:8SP1YXK1M1kXuc4KJZINY3TQQ03J2rwBG9QfXmbRPrw= github.com/ipfs/go-ipfs-delay v0.0.1 h1:r/UXYyRcddO6thwOnhiznIAiSvxMECGgtv35Xs1IeRQ= github.com/ipfs/go-ipfs-delay v0.0.1/go.mod h1:8SP1YXK1M1kXuc4KJZINY3TQQ03J2rwBG9QfXmbRPrw= -github.com/ipfs/go-ipfs-ds-help v0.0.1/go.mod h1:gtP9xRaZXqIQRh1HRpp595KbBEdgqWFxefeVKOV8sxo= -github.com/ipfs/go-ipfs-ds-help v0.1.1/go.mod h1:SbBafGJuGsPI/QL3j9Fc5YPLeAu+SzOkI0gFwAg+mOs= -github.com/ipfs/go-ipfs-ds-help v1.1.0 h1:yLE2w9RAsl31LtfMt91tRZcrx+e61O5mDxFRR994w4Q= -github.com/ipfs/go-ipfs-ds-help v1.1.0/go.mod h1:YR5+6EaebOhfcqVCyqemItCLthrpVNot+rsOU/5IatU= -github.com/ipfs/go-ipfs-exchange-interface v0.0.1/go.mod h1:c8MwfHjtQjPoDyiy9cFquVtVHkO9b9Ob3FG91qJnWCM= -github.com/ipfs/go-ipfs-exchange-interface v0.1.0/go.mod h1:ych7WPlyHqFvCi/uQI48zLZuAWVP5iTQPXEfVaw5WEI= -github.com/ipfs/go-ipfs-exchange-interface v0.2.0 h1:8lMSJmKogZYNo2jjhUs0izT+dck05pqUw4mWNW9Pw6Y= -github.com/ipfs/go-ipfs-exchange-interface v0.2.0/go.mod h1:z6+RhJuDQbqKguVyslSOuVDhqF9JtTrO3eptSAiW2/Y= -github.com/ipfs/go-ipfs-exchange-offline v0.0.1/go.mod h1:WhHSFCVYX36H/anEKQboAzpUws3x7UeEGkzQc3iNkM0= -github.com/ipfs/go-ipfs-exchange-offline v0.1.1/go.mod h1:vTiBRIbzSwDD0OWm+i3xeT0mO7jG2cbJYatp3HPk5XY= -github.com/ipfs/go-ipfs-exchange-offline v0.2.0/go.mod h1:HjwBeW0dvZvfOMwDP0TSKXIHf2s+ksdP4E3MLDRtLKY= +github.com/ipfs/go-ipfs-ds-help v1.1.1 h1:B5UJOH52IbcfS56+Ul+sv8jnIV10lbjLF5eOO0C66Nw= +github.com/ipfs/go-ipfs-ds-help v1.1.1/go.mod h1:75vrVCkSdSFidJscs8n4W+77AtTpCIAdDGAwjitJMIo= +github.com/ipfs/go-ipfs-exchange-interface v0.2.1 h1:jMzo2VhLKSHbVe+mHNzYgs95n0+t0Q69GQ5WhRDZV/s= +github.com/ipfs/go-ipfs-exchange-interface v0.2.1/go.mod h1:MUsYn6rKbG6CTtsDp+lKJPmVt3ZrCViNyH3rfPGsZ2E= github.com/ipfs/go-ipfs-exchange-offline v0.3.0 h1:c/Dg8GDPzixGd0MC8Jh6mjOwU57uYokgWRFidfvEkuA= github.com/ipfs/go-ipfs-exchange-offline v0.3.0/go.mod h1:MOdJ9DChbb5u37M1IcbrRB02e++Z7521fMxqCNRrz9s= -github.com/ipfs/go-ipfs-files v0.0.3/go.mod h1:INEFm0LL2LWXBhNJ2PMIIb2w45hpXgPjNoE7yA8Y1d4= github.com/ipfs/go-ipfs-keystore v0.1.0 h1:gfuQUO/cyGZgZIHE6OrJas4OnwuxXCqJG7tI0lrB5Qc= github.com/ipfs/go-ipfs-keystore v0.1.0/go.mod h1:LvLw7Qhnb0RlMOfCzK6OmyWxICip6lQ06CCmdbee75U= -github.com/ipfs/go-ipfs-pinner v0.3.0 h1:jwe5ViX3BON3KgOAYrrhav2+1ONB0QzFAWQd7HUlbuM= -github.com/ipfs/go-ipfs-pinner v0.3.0/go.mod h1:oX0I0nC6zlNIh0LslSrUnjfNKPq8ufoFtqV1/wcJvyo= -github.com/ipfs/go-ipfs-posinfo v0.0.1 h1:Esoxj+1JgSjX0+ylc0hUmJCOv6V2vFoZiETLR6OtpRs= -github.com/ipfs/go-ipfs-posinfo v0.0.1/go.mod h1:SwyeVP+jCwiDu0C313l/8jg6ZxM0qqtlt2a0vILTc1A= -github.com/ipfs/go-ipfs-pq v0.0.1/go.mod h1:LWIqQpqfRG3fNc5XsnIhz/wQ2XXGyugQwls7BgUmUfY= -github.com/ipfs/go-ipfs-pq v0.0.2/go.mod h1:LWIqQpqfRG3fNc5XsnIhz/wQ2XXGyugQwls7BgUmUfY= github.com/ipfs/go-ipfs-pq v0.0.3 h1:YpoHVJB+jzK15mr/xsWC574tyDLkezVrDNeaalQBsTE= github.com/ipfs/go-ipfs-pq v0.0.3/go.mod h1:btNw5hsHBpRcSSgZtiNm/SLj5gYIZ18AKtv3kERkRb4= -github.com/ipfs/go-ipfs-provider v0.8.1 h1:qt670pYmcNH3BCjyXDgg07o2WsTRsOdMwYc25ukCdjQ= -github.com/ipfs/go-ipfs-provider v0.8.1/go.mod h1:qCpwpoohIRVXvNzkygzsM3qdqP/sXlrogtA5I45tClc= github.com/ipfs/go-ipfs-redirects-file v0.1.1 h1:Io++k0Vf/wK+tfnhEh63Yte1oQK5VGT2hIEYpD0Rzx8= github.com/ipfs/go-ipfs-redirects-file v0.1.1/go.mod h1:tAwRjCV0RjLTjH8DR/AU7VYvfQECg+lpUy2Mdzv7gyk= -github.com/ipfs/go-ipfs-routing v0.1.0/go.mod h1:hYoUkJLyAUKhF58tysKpids8RNDPO42BVMgK5dNsoqY= -github.com/ipfs/go-ipfs-routing v0.2.1/go.mod h1:xiNNiwgjmLqPS1cimvAw6EyB9rkVDbiocA4yY+wRNLM= github.com/ipfs/go-ipfs-routing v0.3.0 h1:9W/W3N+g+y4ZDeffSgqhgo7BsBSJwPMcyssET9OWevc= github.com/ipfs/go-ipfs-routing v0.3.0/go.mod h1:dKqtTFIql7e1zYsEuWLyuOU+E0WJWW8JjbTPLParDWo= github.com/ipfs/go-ipfs-util v0.0.1/go.mod h1:spsl5z8KUnrve+73pOhSVZND1SIxPW5RyBCNzQxlJBc= -github.com/ipfs/go-ipfs-util v0.0.2 h1:59Sswnk1MFaiq+VcaknX7aYEyGyGDAA73ilhEK2POp8= github.com/ipfs/go-ipfs-util v0.0.2/go.mod h1:CbPtkWJzjLdEcezDns2XYaehFVNXG9zrdrtMecczcsQ= -github.com/ipfs/go-ipld-cbor v0.0.2/go.mod h1:wTBtrQZA3SoFKMVkp6cn6HMRteIB1VsmHA0AQFOn7Nc= -github.com/ipfs/go-ipld-cbor v0.0.3/go.mod h1:wTBtrQZA3SoFKMVkp6cn6HMRteIB1VsmHA0AQFOn7Nc= -github.com/ipfs/go-ipld-cbor v0.0.5/go.mod h1:BkCduEx3XBCO6t2Sfo5BaHzuok7hbhdMm9Oh8B2Ftq4= -github.com/ipfs/go-ipld-cbor v0.0.6 h1:pYuWHyvSpIsOOLw4Jy7NbBkCyzLDcl64Bf/LZW7eBQ0= -github.com/ipfs/go-ipld-cbor v0.0.6/go.mod h1:ssdxxaLJPXH7OjF5V4NSjBbcfh+evoR4ukuru0oPXMA= -github.com/ipfs/go-ipld-format v0.0.1/go.mod h1:kyJtbkDALmFHv3QR6et67i35QzO3S0dCDnkOJhcZkms= -github.com/ipfs/go-ipld-format v0.0.2/go.mod h1:4B6+FM2u9OJ9zCV+kSbgFAZlOrv1Hqbf0INGQgiKf9k= -github.com/ipfs/go-ipld-format v0.2.0/go.mod h1:3l3C1uKoadTPbeNfrDi+xMInYKlx2Cvg1BuydPSdzQs= -github.com/ipfs/go-ipld-format v0.3.0/go.mod h1:co/SdBE8h99968X0hViiw1MNlh6fvxxnHpvVLnH7jSM= -github.com/ipfs/go-ipld-format v0.4.0 h1:yqJSaJftjmjc9jEOFYlpkwOLVKv68OD27jFLlSghBlQ= -github.com/ipfs/go-ipld-format v0.4.0/go.mod h1:co/SdBE8h99968X0hViiw1MNlh6fvxxnHpvVLnH7jSM= +github.com/ipfs/go-ipfs-util v0.0.3 h1:2RFdGez6bu2ZlZdI+rWfIdbQb1KudQp3VGwPtdNCmE0= +github.com/ipfs/go-ipfs-util v0.0.3/go.mod h1:LHzG1a0Ig4G+iZ26UUOMjHd+lfM84LZCrn17xAKWBvs= +github.com/ipfs/go-ipld-cbor v0.1.0 h1:dx0nS0kILVivGhfWuB6dUpMa/LAwElHPw1yOGYopoYs= +github.com/ipfs/go-ipld-cbor v0.1.0/go.mod h1:U2aYlmVrJr2wsUBU67K4KgepApSZddGRDWBYR0H4sCk= +github.com/ipfs/go-ipld-format v0.6.0 h1:VEJlA2kQ3LqFSIm5Vu6eIlSxD/Ze90xtc4Meten1F5U= +github.com/ipfs/go-ipld-format v0.6.0/go.mod h1:g4QVMTn3marU3qXchwjpKPKgJv+zF+OlaKMyhJ4LHPg= github.com/ipfs/go-ipld-git v0.1.1 h1:TWGnZjS0htmEmlMFEkA3ogrNCqWjIxwr16x1OsdhG+Y= github.com/ipfs/go-ipld-git v0.1.1/go.mod h1:+VyMqF5lMcJh4rwEppV0e6g4nCCHXThLYYDpKUkJubI= -github.com/ipfs/go-ipld-legacy v0.1.0/go.mod h1:86f5P/srAmh9GcIcWQR9lfFLZPrIyyXQeVlOWeeWEuI= -github.com/ipfs/go-ipld-legacy v0.1.1 h1:BvD8PEuqwBHLTKqlGFTHSwrwFOMkVESEvwIYwR2cdcc= -github.com/ipfs/go-ipld-legacy v0.1.1/go.mod h1:8AyKFCjgRPsQFf15ZQgDB8Din4DML/fOmKZkkFkrIEg= -github.com/ipfs/go-ipns v0.3.0 h1:ai791nTgVo+zTuq2bLvEGmWP1M0A6kGTXUsgv/Yq67A= -github.com/ipfs/go-ipns v0.3.0/go.mod h1:3cLT2rbvgPZGkHJoPO1YMJeh6LtkxopCkKFcio/wE24= +github.com/ipfs/go-ipld-legacy v0.2.1 h1:mDFtrBpmU7b//LzLSypVrXsD8QxkEWxu5qVxN99/+tk= +github.com/ipfs/go-ipld-legacy v0.2.1/go.mod h1:782MOUghNzMO2DER0FlBR94mllfdCJCkTtDtPM51otM= github.com/ipfs/go-libipfs v0.6.2 h1:QUf3kS3RrCjgtE0QW2d18PFFfOLeEt24Ft892ipLzRI= github.com/ipfs/go-libipfs v0.6.2/go.mod h1:FmhKgxMOQA572TK5DA3MZ5GL44ZqsMHIrkgK4gLn4A8= github.com/ipfs/go-log v0.0.1/go.mod h1:kL1d2/hzSpI0thNYjiKfjanbVNU+IIGA/WnNESY9leM= -github.com/ipfs/go-log v1.0.2/go.mod h1:1MNjMxe0u6xvJZgeqbJ8vdo2TKaGwZ1a0Bpza+sr2Sk= github.com/ipfs/go-log v1.0.3/go.mod h1:OsLySYkwIbiSUR/yBTdv1qPtcE4FW3WPWk/ewz9Ru+A= -github.com/ipfs/go-log v1.0.4/go.mod h1:oDCg2FkjogeFOhqqb+N39l2RpTNPL6F/StPkB3kPgcs= github.com/ipfs/go-log v1.0.5 h1:2dOuUCB1Z7uoczMWgAyDck5JLb72zHzrMnGnCNNbvY8= github.com/ipfs/go-log v1.0.5/go.mod h1:j0b8ZoR+7+R99LD9jZ6+AJsrzkPbSXbZfGakb5JPtIo= -github.com/ipfs/go-log/v2 v2.0.2/go.mod h1:O7P1lJt27vWHhOwQmcFEvlmo49ry2VY2+JfBWFaa9+0= github.com/ipfs/go-log/v2 v2.0.3/go.mod h1:O7P1lJt27vWHhOwQmcFEvlmo49ry2VY2+JfBWFaa9+0= github.com/ipfs/go-log/v2 v2.0.5/go.mod h1:eZs4Xt4ZUJQFM3DlanGhy7TkwwawCZcSByscwkWG+dw= -github.com/ipfs/go-log/v2 v2.1.1/go.mod h1:2v2nsGfZsvvAJz13SyFzf9ObaqwHiHxsPLEHntrv9KM= github.com/ipfs/go-log/v2 v2.1.3/go.mod h1:/8d0SH3Su5Ooc31QlL1WysJhvyOTDCjcCZ9Axpmri6g= github.com/ipfs/go-log/v2 v2.3.0/go.mod h1:QqGoj30OTpnKaG/LKTGTxoP2mmQtjVMEnK72gynbe/g= github.com/ipfs/go-log/v2 v2.5.0/go.mod h1:prSpmC1Gpllc9UYWxDiZDreBYw7zp4Iqp1kOLU9U5UI= github.com/ipfs/go-log/v2 v2.5.1 h1:1XdUzF7048prq4aBjDQQ4SL5RxftpRGdXhNRwKSAlcY= github.com/ipfs/go-log/v2 v2.5.1/go.mod h1:prSpmC1Gpllc9UYWxDiZDreBYw7zp4Iqp1kOLU9U5UI= -github.com/ipfs/go-merkledag v0.2.3/go.mod h1:SQiXrtSts3KGNmgOzMICy5c0POOpUNQLvB3ClKnBAlk= -github.com/ipfs/go-merkledag v0.3.2/go.mod h1:fvkZNNZixVW6cKSZ/JfLlON5OlgTXNdRLz0p6QG/I2M= -github.com/ipfs/go-merkledag v0.5.1/go.mod h1:cLMZXx8J08idkp5+id62iVftUQV+HlYJ3PIhDfZsjA4= -github.com/ipfs/go-merkledag v0.6.0/go.mod h1:9HSEwRd5sV+lbykiYP+2NC/3o6MZbKNaa4hfNcH5iH0= -github.com/ipfs/go-merkledag v0.10.0 h1:IUQhj/kzTZfam4e+LnaEpoiZ9vZF6ldimVlby+6OXL4= -github.com/ipfs/go-merkledag v0.10.0/go.mod h1:zkVav8KiYlmbzUzNM6kENzkdP5+qR7+2mCwxkQ6GIj8= +github.com/ipfs/go-merkledag v0.11.0 h1:DgzwK5hprESOzS4O1t/wi6JDpyVQdvm9Bs59N/jqfBY= +github.com/ipfs/go-merkledag v0.11.0/go.mod h1:Q4f/1ezvBiJV0YCIXvt51W/9/kqJGH4I1LsA7+djsM4= github.com/ipfs/go-metrics-interface v0.0.1 h1:j+cpbjYvu4R8zbleSs36gvB7jR+wsL2fGD6n0jO4kdg= github.com/ipfs/go-metrics-interface v0.0.1/go.mod h1:6s6euYU4zowdslK0GKHmqaIZ3j/b/tL7HTWtJ4VPgWY= -github.com/ipfs/go-mfs v0.2.1 h1:5jz8+ukAg/z6jTkollzxGzhkl3yxm022Za9f2nL5ab8= -github.com/ipfs/go-mfs v0.2.1/go.mod h1:Woj80iuw4ajDnIP6+seRaoHpPsc9hmL0pk/nDNDWP88= -github.com/ipfs/go-namesys v0.7.0 h1:xqosk71GIVRkFDtF2UNRcXn4LdNeo7tzuy8feHD6NbU= -github.com/ipfs/go-namesys v0.7.0/go.mod h1:KYSZBVZG3VJC34EfqqJPG7T48aWgxseoMPAPA5gLyyQ= -github.com/ipfs/go-path v0.2.1/go.mod h1:NOScsVgxfC/eIw4nz6OiGwK42PjaSJ4Y/ZFPn1Xe07I= github.com/ipfs/go-path v0.3.1 h1:wkeaCWE/NTuuPGlEkLTsED5UkzfKYZpxaFFPgk8ZVLE= github.com/ipfs/go-path v0.3.1/go.mod h1:eNLsxJEEMxn/CDzUJ6wuNl+6No6tEUhOZcPKsZsYX0E= -github.com/ipfs/go-peertaskqueue v0.1.0/go.mod h1:Jmk3IyCcfl1W3jTW3YpghSwSEC6IJ3Vzz/jUmWw8Z0U= -github.com/ipfs/go-peertaskqueue v0.7.0/go.mod h1:M/akTIE/z1jGNXMU7kFB4TeSEFvj68ow0Rrb04donIU= github.com/ipfs/go-peertaskqueue v0.8.1 h1:YhxAs1+wxb5jk7RvS0LHdyiILpNmRIRnZVztekOF0pg= github.com/ipfs/go-peertaskqueue v0.8.1/go.mod h1:Oxxd3eaK279FxeydSPPVGHzbwVeHjatZ2GA8XD+KbPU= -github.com/ipfs/go-pinning-service-http-client v0.1.2 h1:jdr7KelhL9gNHTU8jbqPMwIexSZXgZzxNGkycCwmbXI= -github.com/ipfs/go-pinning-service-http-client v0.1.2/go.mod h1:6wd5mjYhXJTiWU8b4RSWPpWdlzE5/csoXV0dWWMjun4= -github.com/ipfs/go-unixfs v0.2.4/go.mod h1:SUdisfUjNoSDzzhGVxvCL9QO/nKdwXdr+gbMUdqcbYw= -github.com/ipfs/go-unixfs v0.3.1/go.mod h1:h4qfQYzghiIc8ZNFKiLMFWOTzrWIAtzYQ59W/pCFf1o= -github.com/ipfs/go-unixfs v0.4.4 h1:D/dLBOJgny5ZLIur2vIXVQVW0EyDHdOMBDEhgHrt6rY= -github.com/ipfs/go-unixfs v0.4.4/go.mod h1:TSG7G1UuT+l4pNj91raXAPkX0BhJi3jST1FDTfQ5QyM= -github.com/ipfs/go-unixfsnode v1.1.2/go.mod h1:5dcE2x03pyjHk4JjamXmunTMzz+VUtqvPwZjIEkfV6s= -github.com/ipfs/go-unixfsnode v1.5.2 h1:CvsiTt58W2uR5dD8bqQv+aAY0c1qolmXmSyNbPHYiew= -github.com/ipfs/go-unixfsnode v1.5.2/go.mod h1:NlOebRwYx8lMCNMdhAhEspYPBD3obp7TE0LvBqHY+ks= -github.com/ipfs/go-verifcid v0.0.1/go.mod h1:5Hrva5KBeIog4A+UpqlaIU+DEstipcJYQQZc0g37pY0= -github.com/ipfs/go-verifcid v0.0.2 h1:XPnUv0XmdH+ZIhLGKg6U2vaPaRDXb9urMyNVCE7uvTs= -github.com/ipfs/go-verifcid v0.0.2/go.mod h1:40cD9x1y4OWnFXbLNJYRe7MpNvWlMn3LZAG5Wb4xnPU= +github.com/ipfs/go-unixfs v0.4.5 h1:wj8JhxvV1G6CD7swACwSKYa+NgtdWC1RUit+gFnymDU= +github.com/ipfs/go-unixfs v0.4.5/go.mod h1:BIznJNvt/gEx/ooRMI4Us9K8+qeGO7vx1ohnbk8gjFg= +github.com/ipfs/go-unixfsnode v1.9.0 h1:ubEhQhr22sPAKO2DNsyVBW7YB/zA8Zkif25aBvz8rc8= +github.com/ipfs/go-unixfsnode v1.9.0/go.mod h1:HxRu9HYHOjK6HUqFBAi++7DVoWAHn0o4v/nZ/VA+0g8= +github.com/ipfs/go-verifcid v0.0.3 h1:gmRKccqhWDocCRkC+a59g5QW7uJw5bpX9HWBevXa0zs= +github.com/ipfs/go-verifcid v0.0.3/go.mod h1:gcCtGniVzelKrbk9ooUSX/pM3xlH73fZZJDzQJRvOUw= github.com/ipfs/interface-go-ipfs-core v0.11.1 h1:xVW8DKzd230h8bPv+oC2fBjW4PtDGqGtvpX64/aBe48= github.com/ipfs/interface-go-ipfs-core v0.11.1/go.mod h1:xmnoccUXY7N/Q8AIx0vFqgW926/FAZ8+do/1NTEHKsU= -github.com/ipfs/kubo v0.19.0 h1:5B58RXikTqs9six7FweQSzo6WvBKiP2MVwYCvJomV7k= -github.com/ipfs/kubo v0.19.0/go.mod h1:OqX4B1YWKWCvi9T/sKDfTBMAKbVi6yVIXAii6/nr1Dc= -github.com/ipld/edelweiss v0.2.0 h1:KfAZBP8eeJtrLxLhi7r3N0cBCo7JmwSRhOJp3WSpNjk= -github.com/ipld/edelweiss v0.2.0/go.mod h1:FJAzJRCep4iI8FOFlRriN9n0b7OuX3T/S9++NpBDmA4= -github.com/ipld/go-car v0.5.0 h1:kcCEa3CvYMs0iE5BzD5sV7O2EwMiCIp3uF8tA6APQT8= -github.com/ipld/go-car v0.5.0/go.mod h1:ppiN5GWpjOZU9PgpAZ9HbZd9ZgSpwPMr48fGRJOWmvE= -github.com/ipld/go-car/v2 v2.5.1 h1:U2ux9JS23upEgrJScW8VQuxmE94560kYxj9CQUpcfmk= -github.com/ipld/go-car/v2 v2.5.1/go.mod h1:jKjGOqoCj5zn6KjnabD6JbnCsMntqU2hLiU6baZVO3E= -github.com/ipld/go-codec-dagpb v1.3.0/go.mod h1:ga4JTU3abYApDC3pZ00BC2RSvC3qfBb9MSJkMLSwnhA= +github.com/ipfs/kubo v0.29.0 h1:J5G5le0/gYkx8qLN/zxDl0LcEXKbHZyMh4FCuQN1nVo= +github.com/ipfs/kubo v0.29.0/go.mod h1:mLhuve/44BxEX5ujEihviRXiaxdlrja3kjJgEs2WhK0= +github.com/ipld/go-car v0.6.2 h1:Hlnl3Awgnq8icK+ze3iRghk805lu8YNq3wlREDTF2qc= +github.com/ipld/go-car v0.6.2/go.mod h1:oEGXdwp6bmxJCZ+rARSkDliTeYnVzv3++eXajZ+Bmr8= +github.com/ipld/go-car/v2 v2.13.1 h1:KnlrKvEPEzr5IZHKTXLAEub+tPrzeAFQVRlSQvuxBO4= +github.com/ipld/go-car/v2 v2.13.1/go.mod h1:QkdjjFNGit2GIkpQ953KBwowuoukoM75nP/JI1iDJdo= github.com/ipld/go-codec-dagpb v1.6.0 h1:9nYazfyu9B1p3NAgfVdpRco3Fs2nFC72DqVsMj6rOcc= github.com/ipld/go-codec-dagpb v1.6.0/go.mod h1:ANzFhfP2uMJxRBr8CE+WQWs5UsNa0pYtmKZ+agnUw9s= -github.com/ipld/go-ipld-prime v0.9.1-0.20210324083106-dc342a9917db/go.mod h1:KvBLMr4PX1gWptgkzRjVZCrLmSGcZCb/jioOQwCqZN8= github.com/ipld/go-ipld-prime v0.11.0/go.mod h1:+WIAkokurHmZ/KwzDOMUuoeJgaRQktHtEaLglS3ZeV8= github.com/ipld/go-ipld-prime v0.14.1/go.mod h1:QcE4Y9n/ZZr8Ijg5bGPT0GqYWgZ1704nH0RDcQtgTP0= -github.com/ipld/go-ipld-prime v0.20.0 h1:Ud3VwE9ClxpO2LkCYP7vWPc0Fo+dYdYzgxUJZ3uRG4g= -github.com/ipld/go-ipld-prime v0.20.0/go.mod h1:PzqZ/ZR981eKbgdr3y2DJYeD/8bgMawdGVlJDE8kK+M= -github.com/ipld/go-ipld-prime/storage/bsadapter v0.0.0-20211210234204-ce2a1c70cd73 h1:TsyATB2ZRRQGTwafJdgEUQkmjOExRV0DNokcihZxbnQ= -github.com/jackpal/gateway v1.0.5/go.mod h1:lTpwd4ACLXmpyiCTRtfiNyVnUmqT9RivzCDQetPfnjA= -github.com/jackpal/go-nat-pmp v1.0.1/go.mod h1:QPH045xvCAeXUZOxsnwmrtiCoxIr9eob+4orBN1SBKc= +github.com/ipld/go-ipld-prime v0.21.0 h1:n4JmcpOlPDIxBcY037SVfpd1G+Sj1nKZah0m6QH9C2E= +github.com/ipld/go-ipld-prime v0.21.0/go.mod h1:3RLqy//ERg/y5oShXXdx5YIp50cFGOanyMctpPjsvxQ= +github.com/ipld/go-ipld-prime/storage/bsadapter v0.0.0-20230102063945-1a409dc236dd h1:gMlw/MhNr2Wtp5RwGdsW23cs+yCuj9k2ON7i9MiJlRo= +github.com/ipld/go-ipld-prime/storage/bsadapter v0.0.0-20230102063945-1a409dc236dd/go.mod h1:wZ8hH8UxeryOs4kJEJaiui/s00hDSbE37OKsL47g+Sw= github.com/jackpal/go-nat-pmp v1.0.2 h1:KzKSgb7qkJvOUTqYl9/Hg/me3pWgBmERKrTGD7BdWus= github.com/jackpal/go-nat-pmp v1.0.2/go.mod h1:QPH045xvCAeXUZOxsnwmrtiCoxIr9eob+4orBN1SBKc= -github.com/jbenet/go-cienv v0.0.0-20150120210510-1bb1476777ec/go.mod h1:rGaEvXB4uRSZMmzKNLoXvTu1sfx+1kv/DojUlPrSZGs= github.com/jbenet/go-cienv v0.1.0 h1:Vc/s0QbQtoxX8MwwSLWWh+xNNZvM3Lw7NsTcHrvvhMc= github.com/jbenet/go-cienv v0.1.0/go.mod h1:TqNnHUmJgXau0nCzC7kXWeotg3J9W34CUv5Djy1+FlA= -github.com/jbenet/go-random v0.0.0-20190219211222-123a90aedc0c h1:uUx61FiAa1GI6ZmVd2wf2vULeQZIKG66eybjNXKYCz4= -github.com/jbenet/go-temp-err-catcher v0.0.0-20150120210811-aac704a3f4f2/go.mod h1:8GXXJV31xl8whumTzdZsTt3RnUIiPqzkyf7mxToRCMs= github.com/jbenet/go-temp-err-catcher v0.1.0 h1:zpb3ZH6wIE8Shj2sKS+khgRvf7T7RABoLk/+KKHggpk= github.com/jbenet/go-temp-err-catcher v0.1.0/go.mod h1:0kJRvmDZXNMIiJirNPEYfhpPwbGVtZVWC34vc5WLsDk= github.com/jbenet/goprocess v0.0.0-20160826012719-b497e2f366b8/go.mod h1:Ly/wlsjFq/qrU3Rar62tu1gASgGw6chQbSh/XgIIXCY= github.com/jbenet/goprocess v0.1.3/go.mod h1:5yspPrukOVuOLORacaBi858NqyClJPQxYZlqdZVfqY4= github.com/jbenet/goprocess v0.1.4 h1:DRGOFReOMqqDNXwW70QkacFW0YN9QnwLV0Vqk+3oU0o= github.com/jbenet/goprocess v0.1.4/go.mod h1:5yspPrukOVuOLORacaBi858NqyClJPQxYZlqdZVfqY4= -github.com/jcmturner/aescts/v2 v2.0.0/go.mod h1:AiaICIRyfYg35RUkr8yESTqvSy7csK90qZ5xfvvsoNs= -github.com/jcmturner/dnsutils/v2 v2.0.0/go.mod h1:b0TnjGOvI/n42bZa+hmXL+kFJZsFT7G4t3HTlQ184QM= -github.com/jcmturner/gofork v1.0.0/go.mod h1:MK8+TM0La+2rjBD4jE12Kj1pCCxK7d2LK/UM3ncEo0o= -github.com/jcmturner/goidentity/v6 v6.0.1/go.mod h1:X1YW3bgtvwAXju7V3LCIMpY0Gbxyjn/mY9zx4tFonSg= -github.com/jcmturner/gokrb5/v8 v8.4.2/go.mod h1:sb+Xq/fTY5yktf/VxLsE3wlfPqQjp0aWNYyvBVK62bc= -github.com/jcmturner/rpc/v2 v2.0.3/go.mod h1:VUJYCIDm3PVOEHw8sgt091/20OJjskO/YJki3ELg/Hc= github.com/jellevandenhooff/dkim v0.0.0-20150330215556-f50fe3d243e1/go.mod h1:E0B/fFc00Y+Rasa88328GlI/XbtyysCtTHZS8h7IrBU= github.com/jessevdk/go-flags v0.0.0-20141203071132-1679536dcc89/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= github.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a h1:zPPuIq2jAWWPTrGt70eK/BSch+gFAGrNzecsoENgu2o= -github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= -github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= +github.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a/go.mod h1:yL958EeXv8Ylng6IfnvG4oflryUi3vgA3xPs9hmII1s= github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= github.com/jrick/logrotate v1.0.0/go.mod h1:LNinyqDIJnpAur+b8yyulnQw/wDuN1+BYKlTRt3OuAQ= github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= -github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.8/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= +github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= -github.com/jtolds/gls v4.2.1+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo= github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= github.com/juju/fslock v0.0.0-20160525022230-4d5c94c67b4b h1:FQ7+9fxhyp82ks9vAuyPzG0/vVbWwMwLJ+P6yJI5FN8= @@ -797,263 +570,89 @@ github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQL github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= github.com/kkdai/bstream v0.0.0-20161212061736-f391b8402d23/go.mod h1:J+Gs4SYgM6CZQHDETBtE9HaSEkGmuNXF86RwHhHUvq4= -github.com/klauspost/compress v1.10.3/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= -github.com/klauspost/compress v1.13.6/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= -github.com/klauspost/compress v1.16.4 h1:91KN02FnsOYhuunwU4ssRe8lc2JosWmizWa91B5v1PU= -github.com/klauspost/compress v1.16.4/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE= +github.com/klauspost/compress v1.17.8 h1:YcnTYrq7MikUT7k0Yb5eceMmALQPYBW/Xltxn0NAMnU= +github.com/klauspost/compress v1.17.8/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/klauspost/cpuid/v2 v2.0.4/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/klauspost/cpuid/v2 v2.2.4 h1:acbojRNwl3o09bUq+yDCtZFc1aiwaAAxtcn8YkZXnvk= -github.com/klauspost/cpuid/v2 v2.2.4/go.mod h1:RVVoqg1df56z8g3pUjL/3lE5UfnlrJX8tyFgg4nqhuY= +github.com/klauspost/cpuid/v2 v2.2.7 h1:ZWSB3igEs+d0qvnxR/ZBzXVmxkgt8DdzP6m9pfuVLDM= +github.com/klauspost/cpuid/v2 v2.2.7/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/koron/go-ssdp v0.0.0-20180514024734-4a0ed625a78b/go.mod h1:5Ky9EC2xfoUKUor0Hjgi2BJhCSXJfMOFlmyYrVKGQMk= -github.com/koron/go-ssdp v0.0.0-20191105050749-2e1c40ed0b5d/go.mod h1:5Ky9EC2xfoUKUor0Hjgi2BJhCSXJfMOFlmyYrVKGQMk= github.com/koron/go-ssdp v0.0.4 h1:1IDwrghSKYM7yLf7XCzbByg2sJ/JcNOZRXS2jczTwz0= github.com/koron/go-ssdp v0.0.4/go.mod h1:oDXq+E5IL5q0U8uSBcoAXzTzInwy5lEgC91HoKtbmZk= -github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/pty v1.1.3/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= -github.com/leodido/go-urn v1.2.0 h1:hpXL4XnriNwQ/ABnpepYM/1vCLWNDfUNts8dX3xTG6Y= -github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII= github.com/lib/pq v1.3.0 h1:/qkRGz8zljWiDcFvgpwUpwIAPu3r07TDvs3Rws+o/pU= github.com/lib/pq v1.3.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= -github.com/libp2p/go-addr-util v0.0.1/go.mod h1:4ac6O7n9rIAKB1dnd+s8IbbMXkt+oBpzX4/+RACcnlQ= -github.com/libp2p/go-addr-util v0.0.2/go.mod h1:Ecd6Fb3yIuLzq4bD7VcywcVSBtefcAwnUISBM3WG15E= github.com/libp2p/go-buffer-pool v0.0.1/go.mod h1:xtyIz9PMobb13WaxR6Zo1Pd1zXJKYg0a8KiIvDp3TzQ= github.com/libp2p/go-buffer-pool v0.0.2/go.mod h1:MvaB6xw5vOrDl8rYZGLFdKAuk/hRoRZd1Vi32+RXyFM= github.com/libp2p/go-buffer-pool v0.1.0 h1:oK4mSFcQz7cTQIfqbe4MIj9gLW+mnanjyFtc6cdF0Y8= github.com/libp2p/go-buffer-pool v0.1.0/go.mod h1:N+vh8gMqimBzdKkSMVuydVDq+UV5QTWy5HSiZacSbPg= github.com/libp2p/go-cidranger v1.1.0 h1:ewPN8EZ0dd1LSnrtuwd4709PXVcITVeuwbag38yPW7c= github.com/libp2p/go-cidranger v1.1.0/go.mod h1:KWZTfSr+r9qEo9OkI9/SIEeAtw+NNoU0dXIXt15Okic= -github.com/libp2p/go-conn-security-multistream v0.1.0/go.mod h1:aw6eD7LOsHEX7+2hJkDxw1MteijaVcI+/eP2/x3J1xc= -github.com/libp2p/go-conn-security-multistream v0.2.0/go.mod h1:hZN4MjlNetKD3Rq5Jb/P5ohUnFLNzEAR4DLSzpn2QLU= -github.com/libp2p/go-conn-security-multistream v0.2.1/go.mod h1:cR1d8gA0Hr59Fj6NhaTpFhJZrjSYuNmhpT2r25zYR70= github.com/libp2p/go-doh-resolver v0.4.0 h1:gUBa1f1XsPwtpE1du0O+nnZCUqtG7oYi7Bb+0S7FQqw= github.com/libp2p/go-doh-resolver v0.4.0/go.mod h1:v1/jwsFusgsWIGX/c6vCRrnJ60x7bhTiq/fs2qt0cAg= -github.com/libp2p/go-eventbus v0.1.0/go.mod h1:vROgu5cs5T7cv7POWlWxBaVLxfSegC5UGQf8A2eEmx4= -github.com/libp2p/go-eventbus v0.2.1/go.mod h1:jc2S4SoEVPP48H9Wpzm5aiGwUCBMfGhVhhBjyhhCJs8= github.com/libp2p/go-flow-metrics v0.0.1/go.mod h1:Iv1GH0sG8DtYN3SVJ2eG221wMiNpZxBdp967ls1g+k8= github.com/libp2p/go-flow-metrics v0.0.3/go.mod h1:HeoSNUrOJVK1jEpDqVEiUOIXqhbnS27omG0uWU5slZs= github.com/libp2p/go-flow-metrics v0.1.0 h1:0iPhMI8PskQwzh57jB9WxIuIOQ0r+15PChFGkx3Q3WM= github.com/libp2p/go-flow-metrics v0.1.0/go.mod h1:4Xi8MX8wj5aWNDAZttg6UPmc0ZrnFNsMtpsYUClFtro= -github.com/libp2p/go-libp2p v0.1.0/go.mod h1:6D/2OBauqLUoqcADOJpn9WbKqvaM07tDw68qHM0BxUM= -github.com/libp2p/go-libp2p v0.1.1/go.mod h1:I00BRo1UuUSdpuc8Q2mN7yDF/oTUTRAX6JWpTiK9Rp8= -github.com/libp2p/go-libp2p v0.6.1/go.mod h1:CTFnWXogryAHjXAKEbOf1OWY+VeAP3lDMZkfEI5sT54= -github.com/libp2p/go-libp2p v0.7.0/go.mod h1:hZJf8txWeCduQRDC/WSqBGMxaTHCOYHt2xSU1ivxn0k= -github.com/libp2p/go-libp2p v0.7.4/go.mod h1:oXsBlTLF1q7pxr+9w6lqzS1ILpyHsaBPniVO7zIHGMw= -github.com/libp2p/go-libp2p v0.8.1/go.mod h1:QRNH9pwdbEBpx5DTJYg+qxcVaDMAz3Ee/qDKwXujH5o= -github.com/libp2p/go-libp2p v0.14.3/go.mod h1:d12V4PdKbpL0T1/gsUNN8DfgMuRPDX8bS2QxCZlwRH0= -github.com/libp2p/go-libp2p v0.27.8 h1:IX5x/4yKwyPQeVS2AXHZ3J4YATM9oHBGH1gBc23jBAI= -github.com/libp2p/go-libp2p v0.27.8/go.mod h1:eCFFtd0s5i/EVKR7+5Ki8bM7qwkNW3TPTTSSW9sz8NE= -github.com/libp2p/go-libp2p-asn-util v0.3.0 h1:gMDcMyYiZKkocGXDQ5nsUQyquC9+H+iLEQHwOCZ7s8s= -github.com/libp2p/go-libp2p-asn-util v0.3.0/go.mod h1:B1mcOrKUE35Xq/ASTmQ4tN3LNzVVaMNmq2NACuqyB9w= -github.com/libp2p/go-libp2p-autonat v0.1.0/go.mod h1:1tLf2yXxiE/oKGtDwPYWTSYG3PtvYlJmg7NeVtPRqH8= -github.com/libp2p/go-libp2p-autonat v0.1.1/go.mod h1:OXqkeGOY2xJVWKAGV2inNF5aKN/djNA3fdpCWloIudE= -github.com/libp2p/go-libp2p-autonat v0.2.0/go.mod h1:DX+9teU4pEEoZUqR1PiMlqliONQdNbfzE1C718tcViI= -github.com/libp2p/go-libp2p-autonat v0.2.1/go.mod h1:MWtAhV5Ko1l6QBsHQNSuM6b1sRkXrpk0/LqCr+vCVxI= -github.com/libp2p/go-libp2p-autonat v0.2.2/go.mod h1:HsM62HkqZmHR2k1xgX34WuWDzk/nBwNHoeyyT4IWV6A= -github.com/libp2p/go-libp2p-autonat v0.4.2/go.mod h1:YxaJlpr81FhdOv3W3BTconZPfhaYivRdf53g+S2wobk= -github.com/libp2p/go-libp2p-blankhost v0.1.1/go.mod h1:pf2fvdLJPsC1FsVrNP3DUUvMzUts2dsLLBEpo1vW1ro= -github.com/libp2p/go-libp2p-blankhost v0.1.4/go.mod h1:oJF0saYsAXQCSfDq254GMNmLNz6ZTHTOvtF4ZydUvwU= -github.com/libp2p/go-libp2p-blankhost v0.2.0/go.mod h1:eduNKXGTioTuQAUcZ5epXi9vMl+t4d8ugUBRQ4SqaNQ= -github.com/libp2p/go-libp2p-circuit v0.1.0/go.mod h1:Ahq4cY3V9VJcHcn1SBXjr78AbFkZeIRmfunbA7pmFh8= -github.com/libp2p/go-libp2p-circuit v0.1.4/go.mod h1:CY67BrEjKNDhdTk8UgBX1Y/H5c3xkAcs3gnksxY7osU= -github.com/libp2p/go-libp2p-circuit v0.2.1/go.mod h1:BXPwYDN5A8z4OEY9sOfr2DUQMLQvKt/6oku45YUmjIo= -github.com/libp2p/go-libp2p-circuit v0.4.0/go.mod h1:t/ktoFIUzM6uLQ+o1G6NuBl2ANhBKN9Bc8jRIk31MoA= -github.com/libp2p/go-libp2p-core v0.0.1/go.mod h1:g/VxnTZ/1ygHxH3dKok7Vno1VfpvGcGip57wjTU4fco= -github.com/libp2p/go-libp2p-core v0.0.2/go.mod h1:9dAcntw/n46XycV4RnlBq3BpgrmyUi9LuoTNdPrbUco= -github.com/libp2p/go-libp2p-core v0.0.3/go.mod h1:j+YQMNz9WNSkNezXOsahp9kwZBKBvxLpKD316QWSJXE= -github.com/libp2p/go-libp2p-core v0.0.4/go.mod h1:jyuCQP356gzfCFtRKyvAbNkyeuxb7OlyhWZ3nls5d2I= -github.com/libp2p/go-libp2p-core v0.2.0/go.mod h1:X0eyB0Gy93v0DZtSYbEM7RnMChm9Uv3j7yRXjO77xSI= -github.com/libp2p/go-libp2p-core v0.2.2/go.mod h1:8fcwTbsG2B+lTgRJ1ICZtiM5GWCWZVoVrLaDRvIRng0= +github.com/libp2p/go-libp2p v0.34.1 h1:fxn9vyLo7vJcXQRNvdRbyPjbzuQgi2UiqC8hEbn8a18= +github.com/libp2p/go-libp2p v0.34.1/go.mod h1:snyJQix4ET6Tj+LeI0VPjjxTtdWpeOhYt5lEY0KirkQ= +github.com/libp2p/go-libp2p-asn-util v0.4.1 h1:xqL7++IKD9TBFMgnLPZR6/6iYhawHKHl950SO9L6n94= +github.com/libp2p/go-libp2p-asn-util v0.4.1/go.mod h1:d/NI6XZ9qxw67b4e+NgpQexCIiFYJjErASrYW4PFDN8= github.com/libp2p/go-libp2p-core v0.2.4/go.mod h1:STh4fdfa5vDYr0/SzYYeqnt+E6KfEV5VxfIrm0bcI0g= github.com/libp2p/go-libp2p-core v0.3.0/go.mod h1:ACp3DmS3/N64c2jDzcV429ukDpicbL6+TrrxANBjPGw= -github.com/libp2p/go-libp2p-core v0.3.1/go.mod h1:thvWy0hvaSBhnVBaW37BvzgVV68OUhgJJLAa6almrII= -github.com/libp2p/go-libp2p-core v0.4.0/go.mod h1:49XGI+kc38oGVwqSBhDEwytaAxgZasHhFfQKibzTls0= -github.com/libp2p/go-libp2p-core v0.5.0/go.mod h1:49XGI+kc38oGVwqSBhDEwytaAxgZasHhFfQKibzTls0= -github.com/libp2p/go-libp2p-core v0.5.1/go.mod h1:uN7L2D4EvPCvzSH5SrhR72UWbnSGpt5/a35Sm4upn4Y= -github.com/libp2p/go-libp2p-core v0.5.4/go.mod h1:uN7L2D4EvPCvzSH5SrhR72UWbnSGpt5/a35Sm4upn4Y= -github.com/libp2p/go-libp2p-core v0.5.5/go.mod h1:vj3awlOr9+GMZJFH9s4mpt9RHHgGqeHCopzbYKZdRjM= -github.com/libp2p/go-libp2p-core v0.5.6/go.mod h1:txwbVEhHEXikXn9gfC7/UDDw7rkxuX0bJvM49Ykaswo= -github.com/libp2p/go-libp2p-core v0.5.7/go.mod h1:txwbVEhHEXikXn9gfC7/UDDw7rkxuX0bJvM49Ykaswo= -github.com/libp2p/go-libp2p-core v0.6.0/go.mod h1:txwbVEhHEXikXn9gfC7/UDDw7rkxuX0bJvM49Ykaswo= -github.com/libp2p/go-libp2p-core v0.7.0/go.mod h1:FfewUH/YpvWbEB+ZY9AQRQ4TAD8sJBt/G1rVvhz5XT8= -github.com/libp2p/go-libp2p-core v0.8.0/go.mod h1:FfewUH/YpvWbEB+ZY9AQRQ4TAD8sJBt/G1rVvhz5XT8= -github.com/libp2p/go-libp2p-core v0.8.1/go.mod h1:FfewUH/YpvWbEB+ZY9AQRQ4TAD8sJBt/G1rVvhz5XT8= -github.com/libp2p/go-libp2p-core v0.8.2/go.mod h1:FfewUH/YpvWbEB+ZY9AQRQ4TAD8sJBt/G1rVvhz5XT8= -github.com/libp2p/go-libp2p-core v0.8.5/go.mod h1:FfewUH/YpvWbEB+ZY9AQRQ4TAD8sJBt/G1rVvhz5XT8= -github.com/libp2p/go-libp2p-crypto v0.1.0/go.mod h1:sPUokVISZiy+nNuTTH/TY+leRSxnFj/2GLjtOTW90hI= -github.com/libp2p/go-libp2p-discovery v0.1.0/go.mod h1:4F/x+aldVHjHDHuX85x1zWoFTGElt8HnoDzwkFZm29g= -github.com/libp2p/go-libp2p-discovery v0.2.0/go.mod h1:s4VGaxYMbw4+4+tsoQTqh7wfxg97AEdo4GYBt6BadWg= -github.com/libp2p/go-libp2p-discovery v0.3.0/go.mod h1:o03drFnz9BVAZdzC/QUQ+NeQOu38Fu7LJGEOK2gQltw= -github.com/libp2p/go-libp2p-discovery v0.5.0/go.mod h1:+srtPIU9gDaBNu//UHvcdliKBIcr4SfDcm0/PfPJLug= -github.com/libp2p/go-libp2p-gostream v0.5.0 h1:niNGTUrFoUDP/8jxMgu97zngMO+UGYBpVpbCKwIJBls= -github.com/libp2p/go-libp2p-gostream v0.5.0/go.mod h1:rXrb0CqfcRRxa7m3RSKORQiKiWgk3IPeXWda66ZXKsA= -github.com/libp2p/go-libp2p-http v0.4.0 h1:V+f9Rhe/8GkColmXoyJyA0NVsN9F3TCLZgW2hwjoX5w= -github.com/libp2p/go-libp2p-http v0.4.0/go.mod h1:92tmLGrlBliQFDlZRpBXT3BJM7rGFONy0vsNrG/bMPg= -github.com/libp2p/go-libp2p-kad-dht v0.21.1 h1:xpfp8/t9+X2ip1l8Umap1/UGNnJ3RHJgKGAEsnRAlTo= -github.com/libp2p/go-libp2p-kad-dht v0.21.1/go.mod h1:Oy8wvbdjpB70eS5AaFaI68tOtrdo3KylTvXDjikxqFo= +github.com/libp2p/go-libp2p-gostream v0.6.0 h1:QfAiWeQRce6pqnYfmIVWJFXNdDyfiR/qkCnjyaZUPYU= +github.com/libp2p/go-libp2p-gostream v0.6.0/go.mod h1:Nywu0gYZwfj7Jc91PQvbGU8dIpqbQQkjWgDuOrFaRdA= +github.com/libp2p/go-libp2p-http v0.5.0 h1:+x0AbLaUuLBArHubbbNRTsgWz0RjNTy6DJLOxQ3/QBc= +github.com/libp2p/go-libp2p-http v0.5.0/go.mod h1:glh87nZ35XCQyFsdzZps6+F4HYI6DctVFY5u1fehwSg= +github.com/libp2p/go-libp2p-kad-dht v0.25.2 h1:FOIk9gHoe4YRWXTu8SY9Z1d0RILol0TrtApsMDPjAVQ= +github.com/libp2p/go-libp2p-kad-dht v0.25.2/go.mod h1:6za56ncRHYXX4Nc2vn8z7CZK0P4QiMcrn77acKLM2Oo= github.com/libp2p/go-libp2p-kbucket v0.3.1/go.mod h1:oyjT5O7tS9CQurok++ERgc46YLwEpuGoFq9ubvoUOio= -github.com/libp2p/go-libp2p-kbucket v0.5.0 h1:g/7tVm8ACHDxH29BGrpsQlnNeu+6OF1A9bno/4/U1oA= -github.com/libp2p/go-libp2p-kbucket v0.5.0/go.mod h1:zGzGCpQd78b5BNTDGHNDLaTt9aDK/A02xeZp9QeFC4U= -github.com/libp2p/go-libp2p-loggables v0.1.0/go.mod h1:EyumB2Y6PrYjr55Q3/tiJ/o3xoDasoRYM7nOzEpoa90= -github.com/libp2p/go-libp2p-mplex v0.2.0/go.mod h1:Ejl9IyjvXJ0T9iqUTE1jpYATQ9NM3g+OtR+EMMODbKo= -github.com/libp2p/go-libp2p-mplex v0.2.1/go.mod h1:SC99Rxs8Vuzrf/6WhmH41kNn13TiYdAWNYHrwImKLnE= -github.com/libp2p/go-libp2p-mplex v0.2.2/go.mod h1:74S9eum0tVQdAfFiKxAyKzNdSuLqw5oadDq7+L/FELo= -github.com/libp2p/go-libp2p-mplex v0.2.3/go.mod h1:CK3p2+9qH9x+7ER/gWWDYJ3QW5ZxWDkm+dVvjfuG3ek= -github.com/libp2p/go-libp2p-mplex v0.4.0/go.mod h1:yCyWJE2sc6TBTnFpjvLuEJgTSw/u+MamvzILKdX7asw= -github.com/libp2p/go-libp2p-mplex v0.4.1/go.mod h1:cmy+3GfqfM1PceHTLL7zQzAAYaryDu6iPSC+CIb094g= -github.com/libp2p/go-libp2p-nat v0.0.4/go.mod h1:N9Js/zVtAXqaeT99cXgTV9e75KpnWCvVOiGzlcHmBbY= -github.com/libp2p/go-libp2p-nat v0.0.5/go.mod h1:1qubaE5bTZMJE+E/uu2URroMbzdubFz1ChgiN79yKPE= -github.com/libp2p/go-libp2p-nat v0.0.6/go.mod h1:iV59LVhB3IkFvS6S6sauVTSOrNEANnINbI/fkaLimiw= -github.com/libp2p/go-libp2p-netutil v0.1.0/go.mod h1:3Qv/aDqtMLTUyQeundkKsA+YCThNdbQD54k3TqjpbFU= -github.com/libp2p/go-libp2p-noise v0.2.0/go.mod h1:IEbYhBBzGyvdLBoxxULL/SGbJARhUeqlO8lVSREYu2Q= -github.com/libp2p/go-libp2p-peer v0.2.0/go.mod h1:RCffaCvUyW2CJmG2gAWVqwePwW7JMgxjsHm7+J5kjWY= -github.com/libp2p/go-libp2p-peerstore v0.1.0/go.mod h1:2CeHkQsr8svp4fZ+Oi9ykN1HBb6u0MOvdJ7YIsmcwtY= -github.com/libp2p/go-libp2p-peerstore v0.1.3/go.mod h1:BJ9sHlm59/80oSkpWgr1MyY1ciXAXV397W6h1GH/uKI= +github.com/libp2p/go-libp2p-kbucket v0.6.3 h1:p507271wWzpy2f1XxPzCQG9NiN6R6lHL9GiSErbQQo0= +github.com/libp2p/go-libp2p-kbucket v0.6.3/go.mod h1:RCseT7AH6eJWxxk2ol03xtP9pEHetYSPXOaJnOiD8i0= github.com/libp2p/go-libp2p-peerstore v0.1.4/go.mod h1:+4BDbDiiKf4PzpANZDAT+knVdLxvqh7hXOujessqdzs= -github.com/libp2p/go-libp2p-peerstore v0.2.0/go.mod h1:N2l3eVIeAitSg3Pi2ipSrJYnqhVnMNQZo9nkSCuAbnQ= -github.com/libp2p/go-libp2p-peerstore v0.2.1/go.mod h1:NQxhNjWxf1d4w6PihR8btWIRjwRLBr4TYKfNgrUkOPA= -github.com/libp2p/go-libp2p-peerstore v0.2.2/go.mod h1:NQxhNjWxf1d4w6PihR8btWIRjwRLBr4TYKfNgrUkOPA= -github.com/libp2p/go-libp2p-peerstore v0.2.6/go.mod h1:ss/TWTgHZTMpsU/oKVVPQCGuDHItOpf2W8RxAi50P2s= -github.com/libp2p/go-libp2p-peerstore v0.2.7/go.mod h1:ss/TWTgHZTMpsU/oKVVPQCGuDHItOpf2W8RxAi50P2s= -github.com/libp2p/go-libp2p-pnet v0.2.0/go.mod h1:Qqvq6JH/oMZGwqs3N1Fqhv8NVhrdYcO0BW4wssv21LA= -github.com/libp2p/go-libp2p-pubsub v0.9.3 h1:ihcz9oIBMaCK9kcx+yHWm3mLAFBMAUsM4ux42aikDxo= -github.com/libp2p/go-libp2p-pubsub v0.9.3/go.mod h1:RYA7aM9jIic5VV47WXu4GkcRxRhrdElWf8xtyli+Dzc= +github.com/libp2p/go-libp2p-pubsub v0.11.1-0.20240711152552-e508d8643ddb h1:Ux/fNS52HowibmSbtEDzeKiu4N5gFklPv/1myFh/VVE= +github.com/libp2p/go-libp2p-pubsub v0.11.1-0.20240711152552-e508d8643ddb/go.mod h1:QEb+hEV9WL9wCiUAnpY29FZR6W3zK8qYlaml8R4q6gQ= github.com/libp2p/go-libp2p-pubsub-router v0.6.0 h1:D30iKdlqDt5ZmLEYhHELCMRj8b4sFAqrUcshIUvVP/s= github.com/libp2p/go-libp2p-pubsub-router v0.6.0/go.mod h1:FY/q0/RBTKsLA7l4vqC2cbRbOvyDotg8PJQ7j8FDudE= -github.com/libp2p/go-libp2p-quic-transport v0.10.0/go.mod h1:RfJbZ8IqXIhxBRm5hqUEJqjiiY8xmEuq3HUDS993MkA= -github.com/libp2p/go-libp2p-record v0.1.0/go.mod h1:ujNc8iuE5dlKWVy6wuL6dd58t0n7xI4hAIl8pE6wu5Q= github.com/libp2p/go-libp2p-record v0.2.0 h1:oiNUOCWno2BFuxt3my4i1frNrt7PerzB3queqa1NkQ0= github.com/libp2p/go-libp2p-record v0.2.0/go.mod h1:I+3zMkvvg5m2OcSdoL0KPljyJyvNDFGKX7QdlpYUcwk= -github.com/libp2p/go-libp2p-routing-helpers v0.6.1 h1:tI3rHOf/FDQsxC2pHBaOZiqPJ0MZYyzGAf4V45xla4U= -github.com/libp2p/go-libp2p-routing-helpers v0.6.1/go.mod h1:R289GUxUMzRXIbWGSuUUTPrlVJZ3Y/pPz495+qgXJX8= -github.com/libp2p/go-libp2p-secio v0.1.0/go.mod h1:tMJo2w7h3+wN4pgU2LSYeiKPrfqBgkOsdiKK77hE7c8= -github.com/libp2p/go-libp2p-secio v0.2.0/go.mod h1:2JdZepB8J5V9mBp79BmwsaPQhRPNN2NrnB2lKQcdy6g= -github.com/libp2p/go-libp2p-secio v0.2.1/go.mod h1:cWtZpILJqkqrSkiYcDBh5lA3wbT2Q+hz3rJQq3iftD8= -github.com/libp2p/go-libp2p-secio v0.2.2/go.mod h1:wP3bS+m5AUnFA+OFO7Er03uO1mncHG0uVwGrwvjYlNY= -github.com/libp2p/go-libp2p-swarm v0.1.0/go.mod h1:wQVsCdjsuZoc730CgOvh5ox6K8evllckjebkdiY5ta4= -github.com/libp2p/go-libp2p-swarm v0.2.2/go.mod h1:fvmtQ0T1nErXym1/aa1uJEyN7JzaTNyBcHImCxRpPKU= -github.com/libp2p/go-libp2p-swarm v0.2.3/go.mod h1:P2VO/EpxRyDxtChXz/VPVXyTnszHvokHKRhfkEgFKNM= -github.com/libp2p/go-libp2p-swarm v0.2.8/go.mod h1:JQKMGSth4SMqonruY0a8yjlPVIkb0mdNSwckW7OYziM= -github.com/libp2p/go-libp2p-swarm v0.3.0/go.mod h1:hdv95GWCTmzkgeJpP+GK/9D9puJegb7H57B5hWQR5Kk= -github.com/libp2p/go-libp2p-swarm v0.5.0/go.mod h1:sU9i6BoHE0Ve5SKz3y9WfKrh8dUat6JknzUehFx8xW4= -github.com/libp2p/go-libp2p-testing v0.0.2/go.mod h1:gvchhf3FQOtBdr+eFUABet5a4MBLK8jM3V4Zghvmi+E= -github.com/libp2p/go-libp2p-testing v0.0.3/go.mod h1:gvchhf3FQOtBdr+eFUABet5a4MBLK8jM3V4Zghvmi+E= -github.com/libp2p/go-libp2p-testing v0.0.4/go.mod h1:gvchhf3FQOtBdr+eFUABet5a4MBLK8jM3V4Zghvmi+E= -github.com/libp2p/go-libp2p-testing v0.1.0/go.mod h1:xaZWMJrPUM5GlDBxCeGUi7kI4eqnjVyavGroI2nxEM0= -github.com/libp2p/go-libp2p-testing v0.1.1/go.mod h1:xaZWMJrPUM5GlDBxCeGUi7kI4eqnjVyavGroI2nxEM0= -github.com/libp2p/go-libp2p-testing v0.1.2-0.20200422005655-8775583591d8/go.mod h1:Qy8sAncLKpwXtS2dSnDOP8ktexIAHKu+J+pnZOFZLTc= -github.com/libp2p/go-libp2p-testing v0.3.0/go.mod h1:efZkql4UZ7OVsEfaxNHZPzIehtsBXMrXnCfJIgDti5g= -github.com/libp2p/go-libp2p-testing v0.4.0/go.mod h1:Q+PFXYoiYFN5CAEG2w3gLPEzotlKsNSbKQ/lImlOWF0= +github.com/libp2p/go-libp2p-routing-helpers v0.7.3 h1:u1LGzAMVRK9Nqq5aYDVOiq/HaB93U9WWczBzGyAC5ZY= +github.com/libp2p/go-libp2p-routing-helpers v0.7.3/go.mod h1:cN4mJAD/7zfPKXBcs9ze31JGYAZgzdABEm+q/hkswb8= github.com/libp2p/go-libp2p-testing v0.12.0 h1:EPvBb4kKMWO29qP4mZGyhVzUyR25dvfUIK5WDu6iPUA= github.com/libp2p/go-libp2p-testing v0.12.0/go.mod h1:KcGDRXyN7sQCllucn1cOOS+Dmm7ujhfEyXQL5lvkcPg= -github.com/libp2p/go-libp2p-tls v0.1.3/go.mod h1:wZfuewxOndz5RTnCAxFliGjvYSDA40sKitV4c50uI1M= -github.com/libp2p/go-libp2p-transport-upgrader v0.1.1/go.mod h1:IEtA6or8JUbsV07qPW4r01GnTenLW4oi3lOPbUMGJJA= -github.com/libp2p/go-libp2p-transport-upgrader v0.2.0/go.mod h1:mQcrHj4asu6ArfSoMuyojOdjx73Q47cYD7s5+gZOlns= -github.com/libp2p/go-libp2p-transport-upgrader v0.3.0/go.mod h1:i+SKzbRnvXdVbU3D1dwydnTmKRPXiAR/fyvi1dXuL4o= -github.com/libp2p/go-libp2p-transport-upgrader v0.4.2/go.mod h1:NR8ne1VwfreD5VIWIU62Agt/J18ekORFU/j1i2y8zvk= github.com/libp2p/go-libp2p-xor v0.1.0 h1:hhQwT4uGrBcuAkUGXADuPltalOdpf9aag9kaYNT2tLA= github.com/libp2p/go-libp2p-xor v0.1.0/go.mod h1:LSTM5yRnjGZbWNTA/hRwq2gGFrvRIbQJscoIL/u6InY= -github.com/libp2p/go-libp2p-yamux v0.2.0/go.mod h1:Db2gU+XfLpm6E4rG5uGCFX6uXA8MEXOxFcRoXUODaK8= -github.com/libp2p/go-libp2p-yamux v0.2.1/go.mod h1:1FBXiHDk1VyRM1C0aez2bCfHQ4vMZKkAQzZbkSQt5fI= -github.com/libp2p/go-libp2p-yamux v0.2.2/go.mod h1:lIohaR0pT6mOt0AZ0L2dFze9hds9Req3OfS+B+dv4qw= -github.com/libp2p/go-libp2p-yamux v0.2.5/go.mod h1:Zpgj6arbyQrmZ3wxSZxfBmbdnWtbZ48OpsfmQVTErwA= -github.com/libp2p/go-libp2p-yamux v0.2.7/go.mod h1:X28ENrBMU/nm4I3Nx4sZ4dgjZ6VhLEn0XhIoZ5viCwU= -github.com/libp2p/go-libp2p-yamux v0.2.8/go.mod h1:/t6tDqeuZf0INZMTgd0WxIRbtK2EzI2h7HbFm9eAKI4= -github.com/libp2p/go-libp2p-yamux v0.4.0/go.mod h1:+DWDjtFMzoAwYLVkNZftoucn7PelNoy5nm3tZ3/Zw30= -github.com/libp2p/go-libp2p-yamux v0.5.0/go.mod h1:AyR8k5EzyM2QN9Bbdg6X1SkVVuqLwTGf0L4DFq9g6po= -github.com/libp2p/go-libp2p-yamux v0.5.4/go.mod h1:tfrXbyaTqqSU654GTvK3ocnSZL3BuHoeTSqhcel1wsE= -github.com/libp2p/go-maddr-filter v0.0.4/go.mod h1:6eT12kSQMA9x2pvFQa+xesMKUBlj9VImZbj3B9FBH/Q= -github.com/libp2p/go-maddr-filter v0.0.5/go.mod h1:Jk+36PMfIqCJhAnaASRH83bdAvfDRp/w6ENFaC9bG+M= -github.com/libp2p/go-maddr-filter v0.1.0/go.mod h1:VzZhTXkMucEGGEOSKddrwGiOv0tUhgnKqNEmIAz/bPU= -github.com/libp2p/go-mplex v0.0.3/go.mod h1:pK5yMLmOoBR1pNCqDlA2GQrdAVTMkqFalaTWe7l4Yd0= -github.com/libp2p/go-mplex v0.1.0/go.mod h1:SXgmdki2kwCUlCCbfGLEgHjC4pFqhTp0ZoV6aiKgxDU= -github.com/libp2p/go-mplex v0.1.1/go.mod h1:Xgz2RDCi3co0LeZfgjm4OgUF15+sVR8SRcu3SFXI1lk= -github.com/libp2p/go-mplex v0.1.2/go.mod h1:Xgz2RDCi3co0LeZfgjm4OgUF15+sVR8SRcu3SFXI1lk= -github.com/libp2p/go-mplex v0.2.0/go.mod h1:0Oy/A9PQlwBytDRp4wSkFnzHYDKcpLot35JQ6msjvYQ= -github.com/libp2p/go-mplex v0.3.0/go.mod h1:0Oy/A9PQlwBytDRp4wSkFnzHYDKcpLot35JQ6msjvYQ= -github.com/libp2p/go-mplex v0.7.0 h1:BDhFZdlk5tbr0oyFq/xv/NPGfjbnrsDam1EvutpBDbY= -github.com/libp2p/go-mplex v0.7.0/go.mod h1:rW8ThnRcYWft/Jb2jeORBmPd6xuG3dGxWN/W168L9EU= -github.com/libp2p/go-msgio v0.0.2/go.mod h1:63lBBgOTDKQL6EWazRMCwXsEeEeK9O2Cd+0+6OOuipQ= -github.com/libp2p/go-msgio v0.0.3/go.mod h1:63lBBgOTDKQL6EWazRMCwXsEeEeK9O2Cd+0+6OOuipQ= github.com/libp2p/go-msgio v0.0.4/go.mod h1:63lBBgOTDKQL6EWazRMCwXsEeEeK9O2Cd+0+6OOuipQ= -github.com/libp2p/go-msgio v0.0.6/go.mod h1:4ecVB6d9f4BDSL5fqvPiC4A3KivjWn+Venn/1ALLMWA= github.com/libp2p/go-msgio v0.3.0 h1:mf3Z8B1xcFN314sWX+2vOTShIE0Mmn2TXn3YCUQGNj0= github.com/libp2p/go-msgio v0.3.0/go.mod h1:nyRM819GmVaF9LX3l03RMh10QdOroF++NBbxAb0mmDM= -github.com/libp2p/go-nat v0.0.3/go.mod h1:88nUEt0k0JD45Bk93NIwDqjlhiOwOoV36GchpcVc1yI= -github.com/libp2p/go-nat v0.0.4/go.mod h1:Nmw50VAvKuk38jUBcmNh6p9lUJLoODbJRvYAa/+KSDo= -github.com/libp2p/go-nat v0.0.5/go.mod h1:B7NxsVNPZmRLvMOwiEO1scOSyjA56zxYAGv1yQgRkEU= -github.com/libp2p/go-nat v0.1.0 h1:MfVsH6DLcpa04Xr+p8hmVRG4juse0s3J8HyNWYHffXg= -github.com/libp2p/go-nat v0.1.0/go.mod h1:X7teVkwRHNInVNWQiO/tAiAVRwSr5zoRz4YSTC3uRBM= -github.com/libp2p/go-netroute v0.1.2/go.mod h1:jZLDV+1PE8y5XxBySEBgbuVAXbhtuHSdmLPL2n9MKbk= -github.com/libp2p/go-netroute v0.1.3/go.mod h1:jZLDV+1PE8y5XxBySEBgbuVAXbhtuHSdmLPL2n9MKbk= -github.com/libp2p/go-netroute v0.1.5/go.mod h1:V1SR3AaECRkEQCoFFzYwVYWvYIEtlxx89+O3qcpCl4A= -github.com/libp2p/go-netroute v0.1.6/go.mod h1:AqhkMh0VuWmfgtxKPp3Oc1LdU5QSWS7wl0QLhSZqXxQ= +github.com/libp2p/go-nat v0.2.0 h1:Tyz+bUFAYqGyJ/ppPPymMGbIgNRH+WqC5QrT5fKrrGk= +github.com/libp2p/go-nat v0.2.0/go.mod h1:3MJr+GRpRkyT65EpVPBstXLvOlAPzUVlG6Pwg9ohLJk= github.com/libp2p/go-netroute v0.2.1 h1:V8kVrpD8GK0Riv15/7VN6RbUQ3URNZVosw7H2v9tksU= github.com/libp2p/go-netroute v0.2.1/go.mod h1:hraioZr0fhBjG0ZRXJJ6Zj2IVEVNx6tDTFQfSmcq7mQ= -github.com/libp2p/go-openssl v0.0.2/go.mod h1:v8Zw2ijCSWBQi8Pq5GAixw6DbFfa9u6VIYDXnvOXkc0= github.com/libp2p/go-openssl v0.0.3/go.mod h1:unDrJpgy3oFr+rqXsarWifmJuNnJR4chtO1HmaZjggc= github.com/libp2p/go-openssl v0.0.4/go.mod h1:unDrJpgy3oFr+rqXsarWifmJuNnJR4chtO1HmaZjggc= -github.com/libp2p/go-openssl v0.0.5/go.mod h1:unDrJpgy3oFr+rqXsarWifmJuNnJR4chtO1HmaZjggc= -github.com/libp2p/go-openssl v0.0.7/go.mod h1:unDrJpgy3oFr+rqXsarWifmJuNnJR4chtO1HmaZjggc= -github.com/libp2p/go-reuseport v0.0.1/go.mod h1:jn6RmB1ufnQwl0Q1f+YxAj8isJgDCQzaaxIFYDhcYEA= -github.com/libp2p/go-reuseport v0.0.2/go.mod h1:SPD+5RwGC7rcnzngoYC86GjPzjSywuQyMVAheVBD9nQ= -github.com/libp2p/go-reuseport v0.2.0 h1:18PRvIMlpY6ZK85nIAicSBuXXvrYoSw3dsBAR7zc560= -github.com/libp2p/go-reuseport v0.2.0/go.mod h1:bvVho6eLMm6Bz5hmU0LYN3ixd3nPPvtIlaURZZgOY4k= -github.com/libp2p/go-reuseport-transport v0.0.2/go.mod h1:YkbSDrvjUVDL6b8XqriyA20obEtsW9BLkuOUyQAOCbs= -github.com/libp2p/go-reuseport-transport v0.0.3/go.mod h1:Spv+MPft1exxARzP2Sruj2Wb5JSyHNncjf1Oi2dEbzM= -github.com/libp2p/go-reuseport-transport v0.0.4/go.mod h1:trPa7r/7TJK/d+0hdBLOCGvpQQVOU74OXbNCIMkufGw= -github.com/libp2p/go-sockaddr v0.0.2/go.mod h1:syPvOmNs24S3dFVGJA1/mrqdeijPxLV2Le3BRLKd68k= -github.com/libp2p/go-sockaddr v0.1.0/go.mod h1:syPvOmNs24S3dFVGJA1/mrqdeijPxLV2Le3BRLKd68k= -github.com/libp2p/go-sockaddr v0.1.1/go.mod h1:syPvOmNs24S3dFVGJA1/mrqdeijPxLV2Le3BRLKd68k= -github.com/libp2p/go-stream-muxer v0.0.1/go.mod h1:bAo8x7YkSpadMTbtTaxGVHWUQsR/l5MEaHbKaliuT14= -github.com/libp2p/go-stream-muxer-multistream v0.2.0/go.mod h1:j9eyPol/LLRqT+GPLSxvimPhNph4sfYfMoDPd7HkzIc= -github.com/libp2p/go-stream-muxer-multistream v0.3.0/go.mod h1:yDh8abSIzmZtqtOt64gFJUXEryejzNb0lisTt+fAMJA= -github.com/libp2p/go-tcp-transport v0.1.0/go.mod h1:oJ8I5VXryj493DEJ7OsBieu8fcg2nHGctwtInJVpipc= -github.com/libp2p/go-tcp-transport v0.1.1/go.mod h1:3HzGvLbx6etZjnFlERyakbaYPdfjg2pWP97dFZworkY= -github.com/libp2p/go-tcp-transport v0.2.0/go.mod h1:vX2U0CnWimU4h0SGSEsg++AzvBcroCGYw28kh94oLe0= -github.com/libp2p/go-tcp-transport v0.2.3/go.mod h1:9dvr03yqrPyYGIEN6Dy5UvdJZjyPFvl1S/igQ5QD1SU= -github.com/libp2p/go-testutil v0.1.0/go.mod h1:81b2n5HypcVyrCg/MJx4Wgfp/VHojytjVe/gLzZ2Ehc= -github.com/libp2p/go-ws-transport v0.1.0/go.mod h1:rjw1MG1LU9YDC6gzmwObkPd/Sqwhw7yT74kj3raBFuo= -github.com/libp2p/go-ws-transport v0.2.0/go.mod h1:9BHJz/4Q5A9ludYWKoGCFC5gUElzlHoKzu0yY9p/klM= -github.com/libp2p/go-ws-transport v0.3.0/go.mod h1:bpgTJmRZAvVHrgHybCVyqoBmyLQ1fiZuEaBYusP5zsk= -github.com/libp2p/go-ws-transport v0.4.0/go.mod h1:EcIEKqf/7GDjth6ksuS/6p7R49V4CBY6/E7R/iyhYUA= -github.com/libp2p/go-yamux v1.2.2/go.mod h1:FGTiPvoV/3DVdgWpX+tM0OW3tsM+W5bSE3gZwqQTcow= -github.com/libp2p/go-yamux v1.2.3/go.mod h1:FGTiPvoV/3DVdgWpX+tM0OW3tsM+W5bSE3gZwqQTcow= -github.com/libp2p/go-yamux v1.3.0/go.mod h1:FGTiPvoV/3DVdgWpX+tM0OW3tsM+W5bSE3gZwqQTcow= -github.com/libp2p/go-yamux v1.3.3/go.mod h1:FGTiPvoV/3DVdgWpX+tM0OW3tsM+W5bSE3gZwqQTcow= -github.com/libp2p/go-yamux v1.3.5/go.mod h1:FGTiPvoV/3DVdgWpX+tM0OW3tsM+W5bSE3gZwqQTcow= -github.com/libp2p/go-yamux v1.3.7/go.mod h1:fr7aVgmdNGJK+N1g+b6DW6VxzbRCjCOejR/hkmpooHE= -github.com/libp2p/go-yamux v1.4.0/go.mod h1:fr7aVgmdNGJK+N1g+b6DW6VxzbRCjCOejR/hkmpooHE= -github.com/libp2p/go-yamux v1.4.1/go.mod h1:fr7aVgmdNGJK+N1g+b6DW6VxzbRCjCOejR/hkmpooHE= -github.com/libp2p/go-yamux/v2 v2.2.0/go.mod h1:3So6P6TV6r75R9jiBpiIKgU/66lOarCZjqROGxzPpPQ= -github.com/libp2p/go-yamux/v4 v4.0.0 h1:+Y80dV2Yx/kv7Y7JKu0LECyVdMXm1VUoko+VQ9rBfZQ= -github.com/libp2p/go-yamux/v4 v4.0.0/go.mod h1:NWjl8ZTLOGlozrXSOZ/HlfG++39iKNnM5wwmtQP1YB4= +github.com/libp2p/go-reuseport v0.4.0 h1:nR5KU7hD0WxXCJbmw7r2rhRYruNRl2koHw8fQscQm2s= +github.com/libp2p/go-reuseport v0.4.0/go.mod h1:ZtI03j/wO5hZVDFo2jKywN6bYKWLOy8Se6DrI2E1cLU= +github.com/libp2p/go-yamux/v4 v4.0.1 h1:FfDR4S1wj6Bw2Pqbc8Uz7pCxeRBPbwsBbEdfwiCypkQ= +github.com/libp2p/go-yamux/v4 v4.0.1/go.mod h1:NWjl8ZTLOGlozrXSOZ/HlfG++39iKNnM5wwmtQP1YB4= github.com/libp2p/zeroconf/v2 v2.2.0 h1:Cup06Jv6u81HLhIj1KasuNM/RHHrJ8T7wOTS4+Tv53Q= github.com/libp2p/zeroconf/v2 v2.2.0/go.mod h1:fuJqLnUwZTshS3U/bMRJ3+ow/v9oid1n0DmyYyNO1Xs= -github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-bc2310a04743/go.mod h1:qklhhLq1aX+mtWk9cPHPzaBjWImj5ULL6C7HFJtXQMM= -github.com/lightstep/lightstep-tracer-go v0.18.1/go.mod h1:jlF1pusYV4pidLvZ+XD0UBX0ZE6WURAspgAczcDHrL4= -github.com/lucas-clemente/quic-go v0.19.3/go.mod h1:ADXpNbTQjq1hIzCpB+y/k5iz4n4z4IwqoLb94Kh5Hu8= github.com/lunixbochs/vtclean v1.0.0/go.mod h1:pHhQNgMf3btfWnGBVipUOjRYhoOsdGqdm/+2c2E2WMI= -github.com/lyft/protoc-gen-star v0.5.3/go.mod h1:V0xaHgaf5oCCqmcxYcWiDfTiKsZsRc87/1qhoTACD8w= -github.com/lyft/protoc-gen-validate v0.0.13/go.mod h1:XbGvPuh87YZc5TdIa2/I4pLk0QoUACkjt2znoq26NVQ= github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= github.com/mailru/easyjson v0.0.0-20180823135443-60711f1a8329/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/mailru/easyjson v0.0.0-20190312143242-1de009706dbe/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= -github.com/marten-seemann/qpack v0.2.1/go.mod h1:F7Gl5L1jIgN1D11ucXefiuJS9UMVP2opoCp2jDKb7wc= -github.com/marten-seemann/qtls v0.10.0/go.mod h1:UvMd1oaYDACI99/oZUYLzMCkBXQVT0aGm99sJhbT8hs= -github.com/marten-seemann/qtls-go1-15 v0.1.1/go.mod h1:GyFwywLKkRt+6mfU99csTEY1joMZz5vmB1WNZH3P81I= github.com/marten-seemann/tcp v0.0.0-20210406111302-dfbc87cc63fd h1:br0buuQ854V8u83wA0rVZ8ttrq5CpaPZdvrK0LP2lOk= github.com/marten-seemann/tcp v0.0.0-20210406111302-dfbc87cc63fd/go.mod h1:QuCEs1Nt24+FYQEqAAncTDPJIuGs+LxK1MCiFL25pMU= github.com/maruel/circular v0.0.0-20200815005550-36e533b830e9 h1:d8OcZrg9dmqfBsHRDGP2QarJlj/1p0YI/NylTf2LYqo= @@ -1062,12 +661,10 @@ github.com/maruel/ut v1.0.2 h1:mQTlQk3jubTbdTcza+hwoZQWhzcvE4L6K6RTtAFlA1k= github.com/maruel/ut v1.0.2/go.mod h1:RV8PwPD9dd2KFlnlCc/DB2JVvkXmyaalfc5xvmSrRSs= github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= github.com/mattn/go-colorable v0.1.1/go.mod h1:FuOcm+DKB9mbwrcAfNl7/TZVBZ6rcnceauSikq3lYCQ= -github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.12 h1:jF+Du6AlPIjs2BiUiQlKOX0rt3SujHxPnksPKZbaA40= github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= -github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= github.com/mattn/go-isatty v0.0.5/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= @@ -1075,9 +672,8 @@ github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOA github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= github.com/mattn/go-isatty v0.0.13/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= -github.com/mattn/go-isatty v0.0.18 h1:DOKFKCQ7FNG2L1rbrmstDN4QVRdS89Nkh85u68Uwp98= -github.com/mattn/go-isatty v0.0.18/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= -github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= +github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= +github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= github.com/mattn/go-runewidth v0.0.8 h1:3tS41NlGYSmhhe/8fhGRzc+z3AYCw1Fe1WAyLuujKs0= github.com/mattn/go-runewidth v0.0.8/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= @@ -1085,21 +681,16 @@ github.com/mattn/go-sqlite3 v1.14.9/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A github.com/mattn/go-sqlite3 v1.14.16 h1:yOQRA0RpS5PFz/oikGwBEqvAWhWg5ufRz4ETLjwpU1Y= github.com/mattn/go-sqlite3 v1.14.16/go.mod h1:2eHXhiwb8IkHr+BDWZGa96P6+rkvnG63S2DGjv9HUNg= github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= -github.com/matttproud/golang_protobuf_extensions v1.0.4 h1:mmDVorXM7PCGKw94cs5zkfA9PSy5pEvNWRP0ET0TIVo= -github.com/matttproud/golang_protobuf_extensions v1.0.4/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4= github.com/mdomke/git-semver/v5 v5.0.0 h1:By50HK/pTLR64WUUmDVtQNrVNDXsCehujhjBTAIyCHk= github.com/mdomke/git-semver/v5 v5.0.0/go.mod h1:+f5KQvxYk4WbjLPgYujVa+97Gx0dbrc4fxIK7F6fRf0= github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE= github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d h1:5PJl274Y63IEHC+7izoQE9x6ikvDFZS2mDVS3drnohI= github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE= github.com/microcosm-cc/bluemonday v1.0.1/go.mod h1:hsXNsILzKxV+sX77C5b8FSuKF00vh2OMYv+xgHpAMF4= -github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= -github.com/miekg/dns v1.1.12/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= -github.com/miekg/dns v1.1.28/go.mod h1:KNUDUusw/aVsxyTYZM1oqvCicbwhgbNgztCETuNZ7xM= github.com/miekg/dns v1.1.41/go.mod h1:p6aan82bvRIyn+zDIv9xYNUpwa73JcSh9BKwknJysuI= github.com/miekg/dns v1.1.43/go.mod h1:+evo5L0630/F6ca/Z9+GAqzhjGyn8/c+TBaOyfEl0V4= -github.com/miekg/dns v1.1.53 h1:ZBkuHr5dxHtB1caEOlZTLPo7D3L3TWckgUUs/RHfDxw= -github.com/miekg/dns v1.1.53/go.mod h1:uInx36IzPl7FYnDcMeVWxj9byh7DutNykX4G9Sj60FY= +github.com/miekg/dns v1.1.59 h1:C9EXc/UToRwKLhK5wKU/I4QVsBUc8kE6MkHBkeypWZs= +github.com/miekg/dns v1.1.59/go.mod h1:nZpewl5p6IvctfgrckopVx2OlSEHPRO/U4SYkRklrEk= github.com/mikioh/tcp v0.0.0-20190314235350-803a9b46060c h1:bzE/A84HN25pxAuk9Eej1Kz9OUelF97nAc82bDquQI8= github.com/mikioh/tcp v0.0.0-20190314235350-803a9b46060c/go.mod h1:0SQS9kMwD2VsyFEB++InYyBJroV/FRmBgcydeSUcJms= github.com/mikioh/tcpinfo v0.0.0-20190314235526-30a79bb1804b h1:z78hV3sbSMAUoyUMM0I83AUIT6Hu17AWfgjzIbtrYFc= @@ -1108,35 +699,27 @@ github.com/mikioh/tcpopt v0.0.0-20190314235656-172688c1accc h1:PTfri+PuQmWDqERdn github.com/mikioh/tcpopt v0.0.0-20190314235656-172688c1accc/go.mod h1:cGKTAVKx4SxOuR/czcZ/E2RSJ3sfHs8FpHhQ5CWMf9s= github.com/minio/blake2b-simd v0.0.0-20160723061019-3f5f724cb5b1/go.mod h1:pD8RvIylQ358TN4wwqatJ8rNavkEINozVn9DtGI3dfQ= github.com/minio/sha256-simd v0.0.0-20190131020904-2d45a736cd16/go.mod h1:2FMWW+8GMoPweT6+pI63m9YE3Lmw4J71hV56Chs1E/U= -github.com/minio/sha256-simd v0.0.0-20190328051042-05b4dd3047e5/go.mod h1:2FMWW+8GMoPweT6+pI63m9YE3Lmw4J71hV56Chs1E/U= -github.com/minio/sha256-simd v0.1.0/go.mod h1:2FMWW+8GMoPweT6+pI63m9YE3Lmw4J71hV56Chs1E/U= github.com/minio/sha256-simd v0.1.1-0.20190913151208-6de447530771/go.mod h1:B5e1o+1/KgNmWrSQK08Y6Z1Vb5pwIktudl0J58iy0KM= github.com/minio/sha256-simd v0.1.1/go.mod h1:B5e1o+1/KgNmWrSQK08Y6Z1Vb5pwIktudl0J58iy0KM= -github.com/minio/sha256-simd v1.0.0 h1:v1ta+49hkWZyvaKwrQB8elexRqm6Y0aMLjCNsrYxo6g= github.com/minio/sha256-simd v1.0.0/go.mod h1:OuYzVNI5vcoYIAmbIvHPl3N3jUzVedXbKy5RFepssQM= -github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= +github.com/minio/sha256-simd v1.0.1 h1:6kaan5IFmwTNynnKKpDHe6FWHohJOHhCPchzK49dzMM= +github.com/minio/sha256-simd v1.0.1/go.mod h1:Pz6AKMiUdngCLpeTL/RJY1M9rUuPMYujV5xJjtbRSN8= github.com/mitchellh/copystructure v1.0.0 h1:Laisrj+bAB6b/yJwB5Bt3ITZhGJdqmxquMKeZ+mmkFQ= github.com/mitchellh/copystructure v1.0.0/go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw= -github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= -github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= -github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg= -github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY= -github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= +github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= github.com/mitchellh/reflectwalk v1.0.1 h1:FVzMWA5RllMAKIdUSC8mdWo3XtwoecrH79BY70sEEpE= github.com/mitchellh/reflectwalk v1.0.1/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= -github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= -github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= +github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= github.com/mr-tron/base58 v1.1.0/go.mod h1:xcD2VGqlgYjBdcBLw+TuYLr8afG+Hj8g2eTVqeSzSU8= -github.com/mr-tron/base58 v1.1.1/go.mod h1:xcD2VGqlgYjBdcBLw+TuYLr8afG+Hj8g2eTVqeSzSU8= github.com/mr-tron/base58 v1.1.2/go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjWI2mNwc= github.com/mr-tron/base58 v1.1.3/go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjWI2mNwc= github.com/mr-tron/base58 v1.2.0 h1:T/HDJBh4ZCPbU39/+c3rRvE0uKBQlU27+QI8LJ4t64o= @@ -1147,61 +730,36 @@ github.com/multiformats/go-base32 v0.1.0/go.mod h1:Kj3tFY6zNr+ABYMqeUNeGvkIC/UYg github.com/multiformats/go-base36 v0.1.0/go.mod h1:kFGE83c6s80PklsHO9sRn2NCoffoRdUUOENyW/Vv6sM= github.com/multiformats/go-base36 v0.2.0 h1:lFsAbNOGeKtuKozrtBsAkSVhv1p9D0/qedU9rQyccr0= github.com/multiformats/go-base36 v0.2.0/go.mod h1:qvnKE++v+2MWCfePClUEjE78Z7P2a1UV0xHgWc0hkp4= -github.com/multiformats/go-multiaddr v0.0.1/go.mod h1:xKVEak1K9cS1VdmPZW3LSIb6lgmoS58qz/pzqmAxV44= -github.com/multiformats/go-multiaddr v0.0.2/go.mod h1:xKVEak1K9cS1VdmPZW3LSIb6lgmoS58qz/pzqmAxV44= -github.com/multiformats/go-multiaddr v0.0.4/go.mod h1:xKVEak1K9cS1VdmPZW3LSIb6lgmoS58qz/pzqmAxV44= github.com/multiformats/go-multiaddr v0.1.0/go.mod h1:xKVEak1K9cS1VdmPZW3LSIb6lgmoS58qz/pzqmAxV44= github.com/multiformats/go-multiaddr v0.1.1/go.mod h1:aMKBKNEYmzmDmxfX88/vz+J5IU55txyt0p4aiWVohjo= github.com/multiformats/go-multiaddr v0.2.0/go.mod h1:0nO36NvPpyV4QzvTLi/lafl2y95ncPj0vFwVF6k6wJ4= -github.com/multiformats/go-multiaddr v0.2.1/go.mod h1:s/Apk6IyxfvMjDafnhJgJ3/46z7tZ04iMk5wP4QMGGE= -github.com/multiformats/go-multiaddr v0.2.2/go.mod h1:NtfXiOtHvghW9KojvtySjH5y0u0xW5UouOmQQrn6a3Y= -github.com/multiformats/go-multiaddr v0.3.0/go.mod h1:dF9kph9wfJ+3VLAaeBqo9Of8x4fJxp6ggJGteB8HQTI= -github.com/multiformats/go-multiaddr v0.3.1/go.mod h1:uPbspcUPd5AfaP6ql3ujFY+QWzmBD8uLLL4bXW0XfGc= -github.com/multiformats/go-multiaddr v0.3.3/go.mod h1:lCKNGP1EQ1eZ35Za2wlqnabm9xQkib3fyB+nZXHLag0= -github.com/multiformats/go-multiaddr v0.9.0 h1:3h4V1LHIk5w4hJHekMKWALPXErDfz/sggzwC/NcqbDQ= -github.com/multiformats/go-multiaddr v0.9.0/go.mod h1:mI67Lb1EeTOYb8GQfL/7wpIZwc46ElrvzhYnoJOmTT0= -github.com/multiformats/go-multiaddr-dns v0.0.1/go.mod h1:9kWcqw/Pj6FwxAwW38n/9403szc57zJPs45fmnznu3Q= -github.com/multiformats/go-multiaddr-dns v0.0.2/go.mod h1:9kWcqw/Pj6FwxAwW38n/9403szc57zJPs45fmnznu3Q= -github.com/multiformats/go-multiaddr-dns v0.2.0/go.mod h1:TJ5pr5bBO7Y1B18djPuRsVkduhQH2YqYSbxWJzYGdK0= +github.com/multiformats/go-multiaddr v0.12.4 h1:rrKqpY9h+n80EwhhC/kkcunCZZ7URIF8yN1WEUt2Hvc= +github.com/multiformats/go-multiaddr v0.12.4/go.mod h1:sBXrNzucqkFJhvKOiwwLyqamGa/P5EIXNPLovyhQCII= github.com/multiformats/go-multiaddr-dns v0.3.0/go.mod h1:mNzQ4eTGDg0ll1N9jKPOUogZPoJ30W8a7zk66FQPpdQ= github.com/multiformats/go-multiaddr-dns v0.3.1 h1:QgQgR+LQVt3NPTjbrLLpsaT2ufAA2y0Mkk+QRVJbW3A= github.com/multiformats/go-multiaddr-dns v0.3.1/go.mod h1:G/245BRQ6FJGmryJCrOuTdB37AMA5AMOVuO6NY3JwTk= -github.com/multiformats/go-multiaddr-fmt v0.0.1/go.mod h1:aBYjqL4T/7j4Qx+R73XSv/8JsgnRFlf0w2KGLCmXl3Q= github.com/multiformats/go-multiaddr-fmt v0.1.0 h1:WLEFClPycPkp4fnIzoFoV9FVd49/eQsuaL3/CWe167E= github.com/multiformats/go-multiaddr-fmt v0.1.0/go.mod h1:hGtDIW4PU4BqJ50gW2quDuPVjyWNZxToGUh/HwTZYJo= -github.com/multiformats/go-multiaddr-net v0.0.1/go.mod h1:nw6HSxNmCIQH27XPGBuX+d1tnvM7ihcFwHMSstNAVUU= -github.com/multiformats/go-multiaddr-net v0.1.0/go.mod h1:5JNbcfBOP4dnhoZOv10JJVkJO0pCCEf8mTnipAo2UZQ= github.com/multiformats/go-multiaddr-net v0.1.1/go.mod h1:5JNbcfBOP4dnhoZOv10JJVkJO0pCCEf8mTnipAo2UZQ= -github.com/multiformats/go-multiaddr-net v0.1.2/go.mod h1:QsWt3XK/3hwvNxZJp92iMQKME1qHfpYmyIjFVsSOY6Y= -github.com/multiformats/go-multiaddr-net v0.1.3/go.mod h1:ilNnaM9HbmVFqsb/qcNysjCu4PVONlrBZpHIrw/qQuA= -github.com/multiformats/go-multiaddr-net v0.1.4/go.mod h1:ilNnaM9HbmVFqsb/qcNysjCu4PVONlrBZpHIrw/qQuA= -github.com/multiformats/go-multiaddr-net v0.1.5/go.mod h1:ilNnaM9HbmVFqsb/qcNysjCu4PVONlrBZpHIrw/qQuA= -github.com/multiformats/go-multiaddr-net v0.2.0/go.mod h1:gGdH3UXny6U3cKKYCvpXI5rnK7YaOIEOPVDI9tsJbEA= github.com/multiformats/go-multibase v0.0.1/go.mod h1:bja2MqRZ3ggyXtZSEDKpl0uO/gviWFaSteVbWT51qgs= github.com/multiformats/go-multibase v0.0.3/go.mod h1:5+1R4eQrT3PkYZ24C3W2Ue2tPwIdYQD509ZjSb5y9Oc= github.com/multiformats/go-multibase v0.2.0 h1:isdYCVLvksgWlMW9OZRYJEa9pZETFivncJHmHnnd87g= github.com/multiformats/go-multibase v0.2.0/go.mod h1:bFBZX4lKCA/2lyOFSAoKH5SS6oPyjtnzK/XTFDPkNuk= github.com/multiformats/go-multicodec v0.3.0/go.mod h1:qGGaQmioCDh+TeFOnxrbU0DaIPw8yFgAZgFG0V7p1qQ= -github.com/multiformats/go-multicodec v0.8.1 h1:ycepHwavHafh3grIbR1jIXnKCsFm0fqsfEOsJ8NtKE8= -github.com/multiformats/go-multicodec v0.8.1/go.mod h1:L3QTQvMIaVBkXOXXtVmYE+LI16i14xuaojr/H7Ai54k= +github.com/multiformats/go-multicodec v0.9.0 h1:pb/dlPnzee/Sxv/j4PmkDRxCOi3hXTz3IbPKOXWJkmg= +github.com/multiformats/go-multicodec v0.9.0/go.mod h1:L3QTQvMIaVBkXOXXtVmYE+LI16i14xuaojr/H7Ai54k= github.com/multiformats/go-multihash v0.0.1/go.mod h1:w/5tugSrLEbWqlcgJabL3oHFKTwfvkofsjW2Qa1ct4U= -github.com/multiformats/go-multihash v0.0.5/go.mod h1:lt/HCbqlQwlPBz7lv0sQCdtfcMtlJvakRUn/0Ual8po= github.com/multiformats/go-multihash v0.0.8/go.mod h1:YSLudS+Pi8NHE7o6tb3D8vrpKa63epEDmG8nTduyAew= github.com/multiformats/go-multihash v0.0.10/go.mod h1:YSLudS+Pi8NHE7o6tb3D8vrpKa63epEDmG8nTduyAew= github.com/multiformats/go-multihash v0.0.13/go.mod h1:VdAWLKTwram9oKAatUcLxBNUjdtcVwxObEQBtRfuyjc= github.com/multiformats/go-multihash v0.0.14/go.mod h1:VdAWLKTwram9oKAatUcLxBNUjdtcVwxObEQBtRfuyjc= github.com/multiformats/go-multihash v0.0.15/go.mod h1:D6aZrWNLFTV/ynMpKsNtB40mJzmCl4jb1alC0OvHiHg= github.com/multiformats/go-multihash v0.1.0/go.mod h1:RJlXsxt6vHGaia+S8We0ErjhojtKzPP2AH4+kYM7k84= -github.com/multiformats/go-multihash v0.2.1 h1:aem8ZT0VA2nCHHk7bPJ1BjUbHNciqZC/d16Vve9l108= -github.com/multiformats/go-multihash v0.2.1/go.mod h1:WxoMcYG85AZVQUyRyo9s4wULvW5qrI9vb2Lt6evduFc= -github.com/multiformats/go-multistream v0.1.0/go.mod h1:fJTiDfXJVmItycydCnNx4+wSzZ5NwG2FEVAI30fiovg= -github.com/multiformats/go-multistream v0.1.1/go.mod h1:KmHZ40hzVxiaiwlj3MEbYgK9JFk2/9UktWZAF54Du38= -github.com/multiformats/go-multistream v0.2.1/go.mod h1:5GZPQZbkWOLOn3J2y4Y99vVW7vOfsAflxARk3x14o6k= -github.com/multiformats/go-multistream v0.2.2/go.mod h1:UIcnm7Zuo8HKG+HkWgfQsGL+/MIEhyTqbODbIUwSXKs= -github.com/multiformats/go-multistream v0.4.1 h1:rFy0Iiyn3YT0asivDUIR05leAdwZq3de4741sbiSdfo= -github.com/multiformats/go-multistream v0.4.1/go.mod h1:Mz5eykRVAjJWckE2U78c6xqdtyNUEhKSM0Lwar2p77Q= +github.com/multiformats/go-multihash v0.2.3 h1:7Lyc8XfX/IY2jWb/gI7JP+o7JEq9hOa7BFvVU9RSh+U= +github.com/multiformats/go-multihash v0.2.3/go.mod h1:dXgKXCXjBzdscBLk9JkjINiEsCKRVch90MdaGiKsvSM= +github.com/multiformats/go-multistream v0.5.0 h1:5htLSLl7lvJk3xx3qT/8Zm9J4K8vEOf/QGkvOGQAyiE= +github.com/multiformats/go-multistream v0.5.0/go.mod h1:n6tMZiwiP2wUsR8DgfDWw1dydlEqV3l6N3/GBsX6ILA= github.com/multiformats/go-varint v0.0.1/go.mod h1:3Ls8CIEsrijN6+B7PbrXRPxHRPuXSrVKRY101jdMZYE= -github.com/multiformats/go-varint v0.0.2/go.mod h1:3Ls8CIEsrijN6+B7PbrXRPxHRPuXSrVKRY101jdMZYE= github.com/multiformats/go-varint v0.0.5/go.mod h1:3Ls8CIEsrijN6+B7PbrXRPxHRPuXSrVKRY101jdMZYE= github.com/multiformats/go-varint v0.0.6/go.mod h1:3Ls8CIEsrijN6+B7PbrXRPxHRPuXSrVKRY101jdMZYE= github.com/multiformats/go-varint v0.0.7 h1:sWSGR+f/eu5ABZA2ZpYKBILXTTs9JWpdEM/nEGOHFS8= @@ -1212,167 +770,163 @@ github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRW github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= github.com/mwitkow/go-proto-validators v0.0.0-20180403085117-0950a7990007 h1:28i1IjGcx8AofiB4N3q5Yls55VEaitzuEPkFJEVgGkA= github.com/mwitkow/go-proto-validators v0.0.0-20180403085117-0950a7990007/go.mod h1:m2XC9Qq0AlmmVksL6FktJCdTYyLk7V3fKyp0sl1yWQo= -github.com/nats-io/jwt v0.3.0/go.mod h1:fRYCDE99xlTsqUzISS1Bi75UBJ6ljOJQOAAu5VglpSg= -github.com/nats-io/jwt v0.3.2/go.mod h1:/euKqTS1ZD+zzjYrY7pseZrTtWQSjujC7xjPc8wL6eU= -github.com/nats-io/nats-server/v2 v2.1.2/go.mod h1:Afk+wRZqkMQs/p45uXdrVLuab3gwv3Z8C4HTBu8GD/k= -github.com/nats-io/nats.go v1.9.1/go.mod h1:ZjDU1L/7fJ09jvUSRVBR2e7+RnLiiIQyqyzEE/Zbp4w= -github.com/nats-io/nkeys v0.1.0/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= -github.com/nats-io/nkeys v0.1.3/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= -github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= github.com/neelance/astrewrite v0.0.0-20160511093645-99348263ae86/go.mod h1:kHJEU3ofeGjhHklVoIGuVj85JJwZ6kWPaJwCIxgnFmo= github.com/neelance/sourcemap v0.0.0-20151028013722-8c68805598ab/go.mod h1:Qr6/a/Q4r9LP1IltGz7tA7iOK1WonHEYhu1HRBA7ZiM= github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= -github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= -github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= -github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= -github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= -github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= +github.com/nxadm/tail v1.4.11 h1:8feyoE3OzPrcshW5/MJ4sGESc5cqmGkGCWlco4l0bqY= +github.com/nxadm/tail v1.4.11/go.mod h1:OTaG3NK980DZzxbRq6lEuzgU+mug70nY11sMd4JXXHc= github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/ginkgo v1.8.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/ginkgo v1.12.0/go.mod h1:oUhWkIvk5aDxtKvDDuw8gItl8pKl42LzjC9KZE0HfGg= github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= github.com/onsi/ginkgo v1.14.0/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY= -github.com/onsi/ginkgo v1.16.4/go.mod h1:dX+/inL/fNMqNlz0e9LfyB9TswhZpCVdJM/Z6Vvnwo0= github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU= -github.com/onsi/ginkgo/v2 v2.9.2 h1:BA2GMJOtfGAfagzYtrAlufIP0lq6QERkFmHLMLPwFSU= -github.com/onsi/ginkgo/v2 v2.9.2/go.mod h1:WHcJJG2dIlcCqVfBAwUCrJxSPFb6v4azBwgxeMeDuts= -github.com/onsi/gomega v1.4.1/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= +github.com/onsi/ginkgo/v2 v2.17.3 h1:oJcvKpIb7/8uLpDDtnQuf18xVnwKp8DTD7DQ6gTd/MU= +github.com/onsi/ginkgo/v2 v2.17.3/go.mod h1:nP2DPOQoNsQmsVyv5rDA8JkXQoCs6goXIvr/PRJ1eCc= github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= -github.com/onsi/gomega v1.5.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= -github.com/onsi/gomega v1.9.0/go.mod h1:Ho0h+IUsWyvy1OpqCwxlQ/21gkhVunqlU8fDGcoTdcA= github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= -github.com/onsi/gomega v1.16.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY= -github.com/onsi/gomega v1.27.4 h1:Z2AnStgsdSayCMDiCU42qIz+HLqEPcgiOCXjAU/w+8E= -github.com/op/go-logging v0.0.0-20160315200505-970db520ece7/go.mod h1:HzydrMdWErDVzsI23lYNej1Htcns9BCg93Dk0bBINWk= -github.com/opencontainers/runtime-spec v1.0.2 h1:UfAcuLBJB9Coz72x1hgl8O5RVzTdNiaglX6v2DM6FI0= +github.com/onsi/gomega v1.33.0 h1:snPCflnZrpMsy94p4lXVEkHo12lmPnc3vY5XBbreexE= +github.com/onsi/gomega v1.33.0/go.mod h1:+925n5YtiFsLzzafLUHzVMBpvvRAzrydIBiSIxjX3wY= github.com/opencontainers/runtime-spec v1.0.2/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= -github.com/opentracing-contrib/go-observer v0.0.0-20170622124052-a52f23424492/go.mod h1:Ngi6UdF0k5OKD5t5wlmGhe/EDKPoUM3BXZSSfIuJbis= -github.com/opentracing/basictracer-go v1.0.0/go.mod h1:QfBfYuafItcjQuMwinw9GhYKwFXS9KnPs5lxoYwgW74= +github.com/opencontainers/runtime-spec v1.2.0 h1:z97+pHb3uELt/yiAWD691HNHQIF07bE7dzrbT927iTk= +github.com/opencontainers/runtime-spec v1.2.0/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= github.com/opentracing/opentracing-go v1.0.2/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= github.com/opentracing/opentracing-go v1.2.0 h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+1B0VhjKrZUs= github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc= -github.com/openzipkin-contrib/zipkin-go-opentracing v0.4.5/go.mod h1:/wsWhb9smxSfWAKL3wpBW7V8scJMt8N8gnaMCS9E/cA= github.com/openzipkin/zipkin-go v0.1.1/go.mod h1:NtoC/o8u3JlF1lSlyPNswIbeQH9bJTmOf0Erfk+hxe8= -github.com/openzipkin/zipkin-go v0.1.6/go.mod h1:QgAqvLzwWbR/WpD4A3cGpPtJrZXNIiJc5AZX7/PBEpw= -github.com/openzipkin/zipkin-go v0.2.1/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= -github.com/openzipkin/zipkin-go v0.2.2/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= -github.com/openzipkin/zipkin-go v0.4.0 h1:CtfRrOVZtbDj8rt1WXjklw0kqqJQwICrCKmlfUuBUUw= -github.com/openzipkin/zipkin-go v0.4.0/go.mod h1:4c3sLeE8xjNqehmF5RpAFLPLJxXscc0R4l6Zg0P1tTQ= -github.com/pact-foundation/pact-go v1.0.4/go.mod h1:uExwJY4kCzNPcHRj+hCR/HBbOOIwwtUjcrb0b5/5kLM= -github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= +github.com/openzipkin/zipkin-go v0.4.3 h1:9EGwpqkgnwdEIJ+Od7QVSEIH+ocmm5nPat0G7sjsSdg= +github.com/openzipkin/zipkin-go v0.4.3/go.mod h1:M9wCJZFWCo2RiY+o1eBCEMe0Dp2S5LDHcMZmk3RmK7c= github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58 h1:onHthvaw9LFnH4t2DcNVpwGmV9E1BkGknEliJkfwQj0= github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58/go.mod h1:DXv8WO4yhMYhSNPKjeNKa5WY9YCIEBRbNzFFPJbWO6Y= -github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k= github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= github.com/pelletier/go-toml v1.6.0/go.mod h1:5N711Q9dKgbdkxHL+MEfF31hpT7l0S0s/t2kKREewys= -github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac= github.com/petar/GoLLRB v0.0.0-20210522233825-ae3b015fd3e9 h1:1/WtZae0yGtPq+TI6+Tv1WTxkukpXeMlviSxvL7SRgk= +github.com/petar/GoLLRB v0.0.0-20210522233825-ae3b015fd3e9/go.mod h1:x3N5drFsm2uilKKuuYo6LdyD8vZAW55sH/9w+pbo1sw= github.com/peterbourgon/ff/v3 v3.0.0 h1:eQzEmNahuOjQXfuegsKQTSTDbf4dNvr/eNLrmJhiH7M= github.com/peterbourgon/ff/v3 v3.0.0/go.mod h1:UILIFjRH5a/ar8TjXYLTkIvSvekZqPm5Eb/qbGk6CT0= -github.com/pierrec/lz4 v1.0.2-0.20190131084431-473cd7ce01a1/go.mod h1:3/3N9NVKO0jef7pBehbT1qWhCMrIgbYNnFAZCqQ5LRc= -github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= -github.com/pierrec/lz4 v2.6.1+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= +github.com/pion/datachannel v1.5.6 h1:1IxKJntfSlYkpUj8LlYRSWpYiTTC02nUrOE8T3DqGeg= +github.com/pion/datachannel v1.5.6/go.mod h1:1eKT6Q85pRnr2mHiWHxJwO50SfZRtWHTsNIVb/NfGW4= +github.com/pion/dtls/v2 v2.2.7/go.mod h1:8WiMkebSHFD0T+dIU+UeBaoV7kDhOW5oDCzZ7WZ/F9s= +github.com/pion/dtls/v2 v2.2.11 h1:9U/dpCYl1ySttROPWJgqWKEylUdT0fXp/xst6JwY5Ks= +github.com/pion/dtls/v2 v2.2.11/go.mod h1:d9SYc9fch0CqK90mRk1dC7AkzzpwJj6u2GU3u+9pqFE= +github.com/pion/ice/v2 v2.3.24 h1:RYgzhH/u5lH0XO+ABatVKCtRd+4U1GEaCXSMjNr13tI= +github.com/pion/ice/v2 v2.3.24/go.mod h1:KXJJcZK7E8WzrBEYnV4UtqEZsGeWfHxsNqhVcVvgjxw= +github.com/pion/interceptor v0.1.29 h1:39fsnlP1U8gw2JzOFWdfCU82vHvhW9o0rZnZF56wF+M= +github.com/pion/interceptor v0.1.29/go.mod h1:ri+LGNjRUc5xUNtDEPzfdkmSqISixVTBF/z/Zms/6T4= +github.com/pion/logging v0.2.2 h1:M9+AIj/+pxNsDfAT64+MAVgJO0rsyLnoJKCqf//DoeY= +github.com/pion/logging v0.2.2/go.mod h1:k0/tDVsRCX2Mb2ZEmTqNa7CWsQPc+YYCB7Q+5pahoms= +github.com/pion/mdns v0.0.12 h1:CiMYlY+O0azojWDmxdNr7ADGrnZ+V6Ilfner+6mSVK8= +github.com/pion/mdns v0.0.12/go.mod h1:VExJjv8to/6Wqm1FXK+Ii/Z9tsVk/F5sD/N70cnYFbk= +github.com/pion/randutil v0.1.0 h1:CFG1UdESneORglEsnimhUjf33Rwjubwj6xfiOXBa3mA= +github.com/pion/randutil v0.1.0/go.mod h1:XcJrSMMbbMRhASFVOlj/5hQial/Y8oH/HVo7TBZq+j8= +github.com/pion/rtcp v1.2.12/go.mod h1:sn6qjxvnwyAkkPzPULIbVqSKI5Dv54Rv7VG0kNxh9L4= +github.com/pion/rtcp v1.2.14 h1:KCkGV3vJ+4DAJmvP0vaQShsb0xkRfWkO540Gy102KyE= +github.com/pion/rtcp v1.2.14/go.mod h1:sn6qjxvnwyAkkPzPULIbVqSKI5Dv54Rv7VG0kNxh9L4= +github.com/pion/rtp v1.8.3/go.mod h1:pBGHaFt/yW7bf1jjWAoUjpSNoDnw98KTMg+jWWvziqU= +github.com/pion/rtp v1.8.6 h1:MTmn/b0aWWsAzux2AmP8WGllusBVw4NPYPVFFd7jUPw= +github.com/pion/rtp v1.8.6/go.mod h1:pBGHaFt/yW7bf1jjWAoUjpSNoDnw98KTMg+jWWvziqU= +github.com/pion/sctp v1.8.13/go.mod h1:YKSgO/bO/6aOMP9LCie1DuD7m+GamiK2yIiPM6vH+GA= +github.com/pion/sctp v1.8.16 h1:PKrMs+o9EMLRvFfXq59WFsC+V8mN1wnKzqrv+3D/gYY= +github.com/pion/sctp v1.8.16/go.mod h1:P6PbDVA++OJMrVNg2AL3XtYHV4uD6dvfyOovCgMs0PE= +github.com/pion/sdp/v3 v3.0.9 h1:pX++dCHoHUwq43kuwf3PyJfHlwIj4hXA7Vrifiq0IJY= +github.com/pion/sdp/v3 v3.0.9/go.mod h1:B5xmvENq5IXJimIO4zfp6LAe1fD9N+kFv+V/1lOdz8M= +github.com/pion/srtp/v2 v2.0.18 h1:vKpAXfawO9RtTRKZJbG4y0v1b11NZxQnxRl85kGuUlo= +github.com/pion/srtp/v2 v2.0.18/go.mod h1:0KJQjA99A6/a0DOVTu1PhDSw0CXF2jTkqOoMg3ODqdA= +github.com/pion/stun v0.6.1 h1:8lp6YejULeHBF8NmV8e2787BogQhduZugh5PdhDyyN4= +github.com/pion/stun v0.6.1/go.mod h1:/hO7APkX4hZKu/D0f2lHzNyvdkTGtIy3NDmLR7kSz/8= +github.com/pion/transport/v2 v2.2.1/go.mod h1:cXXWavvCnFF6McHTft3DWS9iic2Mftcz1Aq29pGcU5g= +github.com/pion/transport/v2 v2.2.2/go.mod h1:OJg3ojoBJopjEeECq2yJdXH9YVrUJ1uQ++NjXLOUorc= +github.com/pion/transport/v2 v2.2.3/go.mod h1:q2U/tf9FEfnSBGSW6w5Qp5PFWRLRj3NjLhCCgpRK4p0= +github.com/pion/transport/v2 v2.2.4/go.mod h1:q2U/tf9FEfnSBGSW6w5Qp5PFWRLRj3NjLhCCgpRK4p0= +github.com/pion/transport/v2 v2.2.5 h1:iyi25i/21gQck4hfRhomF6SktmUQjRsRW4WJdhfc3Kc= +github.com/pion/transport/v2 v2.2.5/go.mod h1:q2U/tf9FEfnSBGSW6w5Qp5PFWRLRj3NjLhCCgpRK4p0= +github.com/pion/transport/v3 v3.0.1/go.mod h1:UY7kiITrlMv7/IKgd5eTUcaahZx5oUN3l9SzK5f5xE0= +github.com/pion/transport/v3 v3.0.2 h1:r+40RJR25S9w3jbA6/5uEPTzcdn7ncyU44RWCbHkLg4= +github.com/pion/transport/v3 v3.0.2/go.mod h1:nIToODoOlb5If2jF9y2Igfx3PFYWfuXi37m0IlWa/D0= +github.com/pion/turn/v2 v2.1.3/go.mod h1:huEpByKKHix2/b9kmTAM3YoX6MKP+/D//0ClgUYR2fY= +github.com/pion/turn/v2 v2.1.6 h1:Xr2niVsiPTB0FPtt+yAWKFUkU1eotQbGgpTIld4x1Gc= +github.com/pion/turn/v2 v2.1.6/go.mod h1:huEpByKKHix2/b9kmTAM3YoX6MKP+/D//0ClgUYR2fY= +github.com/pion/webrtc/v3 v3.2.40 h1:Wtfi6AZMQg+624cvCXUuSmrKWepSB7zfgYDOYqsSOVU= +github.com/pion/webrtc/v3 v3.2.40/go.mod h1:M1RAe3TNTD1tzyvqHrbVODfwdPGSXOUo/OgpoGGJqFY= github.com/piprate/json-gold v0.4.2 h1:Rq8V+637HOFcj20KdTqW/g/llCwX2qtau0g5d1pD79o= github.com/piprate/json-gold v0.4.2/go.mod h1:OK1z7UgtBZk06n2cDE2OSq1kffmjFFp5/2yhLLCz9UM= github.com/pkg/diff v0.0.0-20200914180035-5b29258ca4f7/go.mod h1:zO8QMzTeZd5cpnIkz/Gn6iK0jDfGicM1nynOkkPIl28= -github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e h1:aoZm08cpOy4WuID//EZDgcC4zIxODThtZNPirFr42+A= github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pkg/profile v1.2.1/go.mod h1:hJw3o1OdXxsrSjjVksARp5W95eeEaEfptyVZyv6JUPA= -github.com/pkg/sftp v1.10.1/go.mod h1:lYOWFsE0bwd1+KfKJaKeuokY15vzFx25BLbzYYoAxZI= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/polydawn/refmt v0.0.0-20190221155625-df39d6c2d992/go.mod h1:uIp+gprXxxrWSjjklXD+mN4wed/tMfjMMmN/9+JsA9o= -github.com/polydawn/refmt v0.0.0-20190408063855-01bf1e26dd14/go.mod h1:uIp+gprXxxrWSjjklXD+mN4wed/tMfjMMmN/9+JsA9o= -github.com/polydawn/refmt v0.0.0-20190807091052-3d65705ee9f1/go.mod h1:uIp+gprXxxrWSjjklXD+mN4wed/tMfjMMmN/9+JsA9o= github.com/polydawn/refmt v0.0.0-20201211092308-30ac6d18308e/go.mod h1:uIp+gprXxxrWSjjklXD+mN4wed/tMfjMMmN/9+JsA9o= github.com/polydawn/refmt v0.89.0 h1:ADJTApkvkeBZsN0tBTx8QjpD9JkmxbKp0cxfr9qszm4= github.com/polydawn/refmt v0.89.0/go.mod h1:/zvteZs/GwLtCgZ4BL6CBsk9IKIlexP43ObX9AxTqTw= -github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= github.com/pquerna/cachecontrol v0.0.0-20180517163645-1555304b9b35/go.mod h1:prYjPmNq4d1NPVmpShWobRqXY3q7Vp+80DqgxxUrUIA= github.com/pquerna/cachecontrol v0.1.0 h1:yJMy84ti9h/+OEWa752kBTKv4XC30OtVVHYv/8cTqKc= github.com/pquerna/cachecontrol v0.1.0/go.mod h1:NrUG3Z7Rdu85UNR3vm7SOsl1nFIeSiQnrHV5K9mBcUI= github.com/prometheus/client_golang v0.8.0/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= -github.com/prometheus/client_golang v0.9.3-0.20190127221311-3c4408c8b829/go.mod h1:p2iRAGwDERtqlqzRXnrOVns+ignqQo//hLXqYxZYVNs= github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= -github.com/prometheus/client_golang v1.3.0/go.mod h1:hJaj2vgQTGQmVCsAACORcieXFeDPbaTKGT+JTgUa3og= github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= -github.com/prometheus/client_golang v1.10.0/go.mod h1:WJM3cc3yu7XKBKa/I8WeZm+V3eltZnBwfENSU7mdogU= github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= -github.com/prometheus/client_golang v1.14.0 h1:nJdhIvne2eSX/XRAFV9PcvFFRbrjbcTUj0VP62TMhnw= -github.com/prometheus/client_golang v1.14.0/go.mod h1:8vpkKitgIVNcqrRBWh1C4TIUQgYNtG/XQE4E/Zae36Y= +github.com/prometheus/client_golang v1.12.1/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY= +github.com/prometheus/client_golang v1.12.2/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY= +github.com/prometheus/client_golang v1.13.0/go.mod h1:vTeo+zgvILHsnnj/39Ou/1fPN5nJFOEMgftOUOmlvYQ= +github.com/prometheus/client_golang v1.19.1 h1:wZWJDwK+NameRJuPGDhlnFgx8e8HN3XHQeLaYJFJBOE= +github.com/prometheus/client_golang v1.19.1/go.mod h1:mP78NwGzrVks5S2H6ab8+ZZGJLZUq1hoULYBAYBw1Ho= github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= -github.com/prometheus/client_model v0.0.0-20190115171406-56726106282f/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/client_model v0.1.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/client_model v0.3.0 h1:UBgGFHqYdG/TPFD1B1ogZywDqEkwp3fBMvqdiQ7Xew4= -github.com/prometheus/client_model v0.3.0/go.mod h1:LDGWKZIo7rky3hgvBe+caln+Dr3dPggB5dvjtD7w9+w= +github.com/prometheus/client_model v0.6.1 h1:ZKSh/rekM+n3CeS952MLRAdFwIKqeY8b62p8ais2e9E= +github.com/prometheus/client_model v0.6.1/go.mod h1:OrxVMOVHjw3lKMa8+x6HeMGkHMQyHDk9E3jmP2AmGiY= github.com/prometheus/common v0.0.0-20180801064454-c7de2306084e/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro= -github.com/prometheus/common v0.2.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= -github.com/prometheus/common v0.7.0/go.mod h1:DjGbpBbp5NYNiECxcL/VnbXCCaQpKd3tt26CguLLsqA= github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= -github.com/prometheus/common v0.18.0/go.mod h1:U+gB1OBLb1lF3O42bTCL+FK18tX9Oar16Clt/msog/s= github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc= -github.com/prometheus/common v0.28.0/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls= -github.com/prometheus/common v0.42.0 h1:EKsfXEYo4JpWMHH5cg+KOUWeuJSov1Id8zGR8eeI1YM= -github.com/prometheus/common v0.42.0/go.mod h1:xBwqVerjNdUDjgODMpudtOMwlOwf2SaTr1yjz4b7Zbc= +github.com/prometheus/common v0.32.1/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls= +github.com/prometheus/common v0.35.0/go.mod h1:phzohg0JFMnBEFGxTDbfu3QyL5GI8gTQJFhYO5B3mfA= +github.com/prometheus/common v0.37.0/go.mod h1:phzohg0JFMnBEFGxTDbfu3QyL5GI8gTQJFhYO5B3mfA= +github.com/prometheus/common v0.53.0 h1:U2pL9w9nmJwJDa4qqLQ3ZaePJ6ZTwt7cMD3AG3+aLCE= +github.com/prometheus/common v0.53.0/go.mod h1:BrxBKv3FWBIGXw89Mg1AeBq7FSyRzXWI3l3e7W3RN5U= github.com/prometheus/procfs v0.0.0-20180725123919-05ee40e3a273/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= -github.com/prometheus/procfs v0.0.0-20190117184657-bf6a532e95b1/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= -github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A= github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= -github.com/prometheus/procfs v0.9.0 h1:wzCHvIvM5SxWqYvwgVL7yJY8Lz3PKn49KQtpgMYJfhI= -github.com/prometheus/procfs v0.9.0/go.mod h1:+pB4zwohETzFnmlpe6yd2lSc+0/46IYZRB/chUwxUZY= -github.com/prometheus/statsd_exporter v0.21.0 h1:hA05Q5RFeIjgwKIYEdFd59xu5Wwaznf33yKI+pyX6T8= -github.com/prometheus/statsd_exporter v0.21.0/go.mod h1:rbT83sZq2V+p73lHhPZfMc3MLCHmSHelCh9hSGYNLTQ= +github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= +github.com/prometheus/procfs v0.8.0/go.mod h1:z7EfXMXOkbkqb9IINtpCn86r/to3BnA0uaxHdg830/4= +github.com/prometheus/procfs v0.15.0 h1:A82kmvXJq2jTu5YUhSGNlYoxh85zLnKgPz4bMZgI5Ek= +github.com/prometheus/procfs v0.15.0/go.mod h1:Y0RJ/Y5g5wJpkTisOtqwDSo4HwhGmLB4VQSw2sQJLHk= +github.com/prometheus/statsd_exporter v0.22.7 h1:7Pji/i2GuhK6Lu7DHrtTkFmNBCudCPT1pX2CziuyQR0= +github.com/prometheus/statsd_exporter v0.22.7/go.mod h1:N/TevpjkIh9ccs6nuzY3jQn9dFqnUakOjnEuMPJJJnI= github.com/pseudomuto/protoc-gen-doc v1.5.1 h1:Ah259kcrio7Ix1Rhb6u8FCaOkzf9qRBqXnvAufg061w= github.com/pseudomuto/protoc-gen-doc v1.5.1/go.mod h1:XpMKYg6zkcpgfpCfQ8GcWBDRtRxOmMR5w7pz4Xo+dYM= github.com/pseudomuto/protokit v0.2.0 h1:hlnBDcy3YEDXH7kc9gV+NLaN0cDzhDvD1s7Y6FZ8RpM= github.com/pseudomuto/protokit v0.2.0/go.mod h1:2PdH30hxVHsup8KpBTOXTBeMVhJZVio3Q8ViKSAXT0Q= github.com/quic-go/qpack v0.4.0 h1:Cr9BXA1sQS2SmDUWjSofMPNKmvF6IiIfDRmgU0w1ZCo= github.com/quic-go/qpack v0.4.0/go.mod h1:UZVnYIfi5GRk+zI9UMaCPsmZ2xKJP7XBUvVyT1Knj9A= -github.com/quic-go/qtls-go1-19 v0.3.3 h1:wznEHvJwd+2X3PqftRha0SUKmGsnb6dfArMhy9PeJVE= -github.com/quic-go/qtls-go1-19 v0.3.3/go.mod h1:ySOI96ew8lnoKPtSqx2BlI5wCpUVPT05RMAlajtnyOI= -github.com/quic-go/qtls-go1-20 v0.2.3 h1:m575dovXn1y2ATOb1XrRFcrv0F+EQmlowTkoraNkDPI= -github.com/quic-go/qtls-go1-20 v0.2.3/go.mod h1:JKtK6mjbAVcUTN/9jZpvLbGxvdWIKS8uT7EiStoU1SM= -github.com/quic-go/quic-go v0.33.0 h1:ItNoTDN/Fm/zBlq769lLJc8ECe9gYaW40veHCCco7y0= -github.com/quic-go/quic-go v0.33.0/go.mod h1:YMuhaAV9/jIu0XclDXwZPAsP/2Kgr5yMYhe9oxhhOFA= -github.com/quic-go/webtransport-go v0.5.2 h1:GA6Bl6oZY+g/flt00Pnu0XtivSD8vukOu3lYhJjnGEk= -github.com/quic-go/webtransport-go v0.5.2/go.mod h1:OhmmgJIzTTqXK5xvtuX0oBpLV2GkLWNDA+UeTGJXErU= -github.com/rabbitmq/amqp091-go v1.1.0/go.mod h1:ogQDLSOACsLPsIq0NpbtiifNZi2YOz0VTJ0kHRghqbM= +github.com/quic-go/quic-go v0.44.0 h1:So5wOr7jyO4vzL2sd8/pD9Kesciv91zSk8BoFngItQ0= +github.com/quic-go/quic-go v0.44.0/go.mod h1:z4cx/9Ny9UtGITIPzmPTXh1ULfOyWh4qGQlpnPcWmek= +github.com/quic-go/webtransport-go v0.8.0 h1:HxSrwun11U+LlmwpgM1kEqIqH90IT4N8auv/cD7QFJg= +github.com/quic-go/webtransport-go v0.8.0/go.mod h1:N99tjprW432Ut5ONql/aUhSLT0YVSlwHohQsuac9WaM= github.com/raulk/go-watchdog v1.3.0 h1:oUmdlHxdkXRJlwfG0O9omj8ukerm8MEQavSiDTEtBsk= github.com/raulk/go-watchdog v1.3.0/go.mod h1:fIvOnLbF0b0ZwkB9YU4mOW9Did//4vPZtDqv66NfsMU= -github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= -github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= -github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= -github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8= -github.com/rs/cors v1.8.3 h1:O+qNyWn7Z+F9M0ILBHgMVPuB1xTOucVd5gtaYyXBpRo= -github.com/rs/cors v1.8.3/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= +github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ= +github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= +github.com/rs/cors v1.10.1 h1:L0uuZVXIKlI1SShY2nhFfo44TYvDPQ1w4oFkUJNfhyo= +github.com/rs/cors v1.10.1/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/rwcarlsen/goexif v0.0.0-20190401172101-9e8deecbddbd/go.mod h1:hPqNNc0+uJM6H+SuU8sEs5K5IQeKccPqeSjfgcKGgPk= -github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= -github.com/samber/lo v1.36.0 h1:4LaOxH1mHnbDGhTVE0i1z8v/lWaQW8AIfOD3HU4mSaw= -github.com/samber/lo v1.36.0/go.mod h1:HLeWcJRRyLKp3+/XBJvOrerCQn9mhdKMHyd7IRlgeQ8= -github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E= -github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= +github.com/samber/lo v1.39.0 h1:4gTz1wUhNYLhFSKl6O+8peW0v2F4BCY034GRpU9WnuA= +github.com/samber/lo v1.39.0/go.mod h1:+m/ZKRl6ClXCE2Lgf3MsQlWfh4bn1bz6CXEOxnEXnEA= github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= github.com/shurcooL/component v0.0.0-20170202220835-f88ec8f54cc4/go.mod h1:XhFIlyj5a1fBNx5aJTbKoIq0mNaPvOagO+HjB3EtxrY= github.com/shurcooL/events v0.0.0-20181021180414-410e4ca65f48/go.mod h1:5u70Mqkb5O5cxEA8nxTsgrgLehJeAw6Oc4Ab1c/P1HM= @@ -1401,36 +955,25 @@ github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPx github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= -github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= -github.com/smartystreets/assertions v1.0.0/go.mod h1:kHHU4qYBaI3q23Pp3VPrmWhuIUrLW/7eUrw0BU5VaoM= github.com/smartystreets/assertions v1.2.0 h1:42S6lae5dvLc7BrLu/0ugRtcFVjoJNMC/N3yZFZkDFs= github.com/smartystreets/assertions v1.2.0/go.mod h1:tcbTF8ujkAEcZ8TElKY+i30BzYlVhC/LOxJk7iOWnoo= -github.com/smartystreets/goconvey v0.0.0-20190222223459-a17d461953aa/go.mod h1:2RVY1rIf+2J2o/IM9+vPq9RzmHDSseB7FoXiSNIUsoU= -github.com/smartystreets/goconvey v0.0.0-20190330032615-68dc04aab96a/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= github.com/smartystreets/goconvey v1.7.2 h1:9RBaZCeXEQ3UselpuwUQHltGVXvdwm6cv1hgR6gDIPg= github.com/smartystreets/goconvey v1.7.2/go.mod h1:Vw0tHAZW6lzCRk3xgdin6fKYcG+G3Pg9vgXWeJpQFMM= github.com/smola/gocompat v0.2.0/go.mod h1:1B0MlxbmoZNo3h8guHp8HztB3BSYR5itql9qtVc0ypY= -github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= -github.com/sony/gobreaker v0.4.1/go.mod h1:ZKptC7FHNvhBz7dN2LGjPVBz2sZJmc0/PkyDJOjmxWY= github.com/sourcegraph/annotate v0.0.0-20160123013949-f4cad6c6324d/go.mod h1:UdhH50NIW0fCiwBSr0co2m7BnFLdv4fQTgdqdJTHFeE= github.com/sourcegraph/syntaxhighlight v0.0.0-20170531221838-bd320f5d308e/go.mod h1:HuIsMU8RRBOtsCgI77wP899iHVBQpCmg4ErYMZB+2IA= -github.com/spacemonkeygo/openssl v0.0.0-20181017203307-c2dcc5cca94a/go.mod h1:7AyxJNCJ7SBZ1MfVQCWD6Uqo2oubI2Eq2y2eqf+A5r0= github.com/spacemonkeygo/spacelog v0.0.0-20180420211403-2296661a0572/go.mod h1:w0SWMsp6j9O/dk4/ZpIhL+3CkG8ofA2vuv7k+ltqUMc= github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= github.com/spaolacci/murmur3 v1.1.0 h1:7c1g84S4BPRrfL5Xrdp6fOJ206sU9y293DDHaoy0bLI= github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= -github.com/spf13/afero v1.3.3/go.mod h1:5KUK8ByomD5Ti5Artl0RtHeI5pTF7MIDuXL3yY520V4= -github.com/spf13/afero v1.6.0/go.mod h1:Ai8FlHk4v/PARR026UzYexafAt9roJ7LcLMAmO6Z93I= github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= -github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU= github.com/spf13/cobra v1.6.1 h1:o94oiPyS4KD1mPy2fmcYYHHfCxLqYjJOhGsCHFZtEzA= github.com/spf13/cobra v1.6.1/go.mod h1:IOw/AERYS7UzyrGinqmz6HLUo219MORXGxhbaJUqzrY= github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= -github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= @@ -1438,25 +981,25 @@ github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DM github.com/square/go-jose/v3 v3.0.0-20200630053402-0a67ce9b0693 h1:wD1IWQwAhdWclCwaf6DdzgCAe9Bfz1M+4AHRd7N786Y= github.com/square/go-jose/v3 v3.0.0-20200630053402-0a67ce9b0693/go.mod h1:6hSY48PjDm4UObWmGLyJE9DxYVKTgR9kbCspXXJEhcU= github.com/src-d/envconfig v1.0.0/go.mod h1:Q9YQZ7BKITldTBnoxsE5gOeB5y66RyPXeue/R4aaNBc= -github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= -github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= -github.com/streadway/handy v0.0.0-20190108123426-d5acb3125c2a/go.mod h1:qNTQ5P5JnDBl6z3cMAg/SywNDC5ABu5ApDIw6lUbRmI= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= -github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c= github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= +github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY= +github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= -github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8= -github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= +github.com/stretchr/testify v1.8.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= +github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/stvp/go-udp-testing v0.0.0-20201019212854-469649b16807/go.mod h1:7jxmlfBCDBXRzr0eAQJ48XC1hBu1np4CS5+cHEYfwpc= github.com/syndtr/goleveldb v1.0.0/go.mod h1:ZVVdQEZoIme9iO1Ch2Jdy24qqXrMMOU6lpPAyBWyWuQ= github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 h1:epCh84lMvA70Z7CTTCmYQn2CKbY8j86K7/FAIr141uY= github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7/go.mod h1:q4W45IWZaF22tdD+VEXcAWRA037jwmWEB5VWYORlTpc= @@ -1464,58 +1007,41 @@ github.com/tailscale/depaware v0.0.0-20210622194025-720c4b409502/go.mod h1:p9lPs github.com/tarm/serial v0.0.0-20180830185346-98f6abe2eb07/go.mod h1:kDXzergiv9cbyO7IOYJZWg1U88JhDg3PB6klq9Hg2pA= github.com/teserakt-io/golang-ed25519 v0.0.0-20210104091850-3888c087a4c8 h1:RBkacARv7qY5laaXGlF4wFB/tk5rnthhPb8oIBGoagY= github.com/teserakt-io/golang-ed25519 v0.0.0-20210104091850-3888c087a4c8/go.mod h1:9PdLyPiZIiW3UopXyRnPYyjUXSpiQNHRLu8fOsR3o8M= -github.com/thoas/go-funk v0.9.1 h1:O549iLZqPpTUQ10ykd26sZhzD+rmR5pWhuElrhbC20M= github.com/tj/assert v0.0.3 h1:Df/BlaZ20mq6kuai7f5z2TvPFiwC3xaWJSDQNiIS3Rk= -github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= +github.com/tj/assert v0.0.3/go.mod h1:Ne6X72Q+TB1AteidzQncjw9PabbMp4PBMZ1k+vd1Pvk= github.com/tv42/httpunix v0.0.0-20191220191345-2ba4b9c3382c h1:u6SKchux2yDvFQnDHS3lPnIRmfVJ5Sxy3ao2SIdysLQ= github.com/tv42/httpunix v0.0.0-20191220191345-2ba4b9c3382c/go.mod h1:hzIxponao9Kjc7aWznkXaL4U4TWaDSs8zcsY4Ka08nM= github.com/ucarion/urlpath v0.0.0-20200424170820-7ccc79b76bbb h1:Ywfo8sUltxogBpFuMOFRrrSifO788kAFxmvVw31PtQQ= github.com/ucarion/urlpath v0.0.0-20200424170820-7ccc79b76bbb/go.mod h1:ikPs9bRWicNw3S7XpJ8sK/smGwU9WcSVU3dy9qahYBM= -github.com/ugorji/go v1.1.7 h1:/68gy2h+1mWMrwZFeD1kQialdSzAb432dtpeJ42ovdo= -github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0= -github.com/ugorji/go/codec v1.1.7 h1:2SvQaVZ1ouYrrKKwoSk2pzd4A9evlKJb9oTL+OaLUSs= -github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY= -github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= -github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= github.com/urfave/cli v1.22.2/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= github.com/urfave/cli v1.22.10/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= -github.com/urfave/cli/v2 v2.3.0/go.mod h1:LJmUH05zAU44vOAcrfzZQKsZbVcdbOG8rtL3/XcUArI= github.com/viant/assertly v0.4.8/go.mod h1:aGifi++jvCrUaklKEKT0BU95igDNaqkvz+49uaYMPRU= github.com/viant/toolbox v0.24.0/go.mod h1:OxMCG57V0PXuIP2HNQrtJf2CjqdmbrOx5EkMILuUhzM= github.com/wangjia184/sortedset v0.0.0-20160527075905-f5d03557ba30/go.mod h1:YkocrP2K2tcw938x9gCOmT5G5eCD6jsTz0SZuyAqwIE= github.com/warpfork/go-testmark v0.3.0/go.mod h1:jhEf8FVxd+F17juRubpmut64NEG6I2rgkUhlcqqXwE0= github.com/warpfork/go-testmark v0.9.0/go.mod h1:jhEf8FVxd+F17juRubpmut64NEG6I2rgkUhlcqqXwE0= -github.com/warpfork/go-testmark v0.11.0 h1:J6LnV8KpceDvo7spaNU4+DauH2n1x+6RaO2rJrmpQ9U= -github.com/warpfork/go-wish v0.0.0-20180510122957-5ad1f5abf436/go.mod h1:x6AKhvSSexNrVSrViXSHUEbICjmGXhtgABaHIySUSGw= -github.com/warpfork/go-wish v0.0.0-20190328234359-8b3e70f8e830/go.mod h1:x6AKhvSSexNrVSrViXSHUEbICjmGXhtgABaHIySUSGw= +github.com/warpfork/go-testmark v0.12.1 h1:rMgCpJfwy1sJ50x0M0NgyphxYYPMOODIJHhsXyEHU0s= +github.com/warpfork/go-testmark v0.12.1/go.mod h1:kHwy7wfvGSPh1rQJYKayD4AbtNaeyZdcGi9tNJTaa5Y= github.com/warpfork/go-wish v0.0.0-20200122115046-b9ea61034e4a/go.mod h1:x6AKhvSSexNrVSrViXSHUEbICjmGXhtgABaHIySUSGw= github.com/warpfork/go-wish v0.0.0-20220906213052-39a1cc7a02d0 h1:GDDkbFiaK8jsSDJfjId/PEGEShv6ugrt4kYsC5UIDaQ= github.com/warpfork/go-wish v0.0.0-20220906213052-39a1cc7a02d0/go.mod h1:x6AKhvSSexNrVSrViXSHUEbICjmGXhtgABaHIySUSGw= github.com/whyrusleeping/base32 v0.0.0-20170828182744-c30ac30633cc h1:BCPnHtcboadS0DvysUuJXZ4lWVv5Bh5i7+tbIyi+ck4= github.com/whyrusleeping/base32 v0.0.0-20170828182744-c30ac30633cc/go.mod h1:r45hJU7yEoA81k6MWNhpMj/kms0n14dkzkxYHoB96UM= github.com/whyrusleeping/cbor v0.0.0-20171005072247-63513f603b11 h1:5HZfQkwe0mIfyDmc1Em5GqlNRzcdtlv4HTNmdpt7XH0= -github.com/whyrusleeping/cbor-gen v0.0.0-20200123233031-1cdf64d27158/go.mod h1:Xj/M2wWU+QdTdRbu/L/1dIZY8/Wb2K9pAhtroQuxJJI= -github.com/whyrusleeping/cbor-gen v0.0.0-20230126041949-52956bd4c9aa h1:EyA027ZAkuaCLoxVX4r1TZMPy1d31fM6hbfQ4OU4I5o= -github.com/whyrusleeping/cbor-gen v0.0.0-20230126041949-52956bd4c9aa/go.mod h1:fgkXqYy7bV2cFeIEOkVTZS/WjXARfBqSH6Q2qHL33hQ= +github.com/whyrusleeping/cbor v0.0.0-20171005072247-63513f603b11/go.mod h1:Wlo/SzPmxVp6vXpGt/zaXhHH0fn4IxgqZc82aKg6bpQ= +github.com/whyrusleeping/cbor-gen v0.1.1 h1:eKfcJIoxivjMtwfCfmJAqSF56MHcWqyIScXwaC1VBgw= +github.com/whyrusleeping/cbor-gen v0.1.1/go.mod h1:pM99HXyEbSQHcosHc0iW7YFmwnscr+t9Te4ibko05so= github.com/whyrusleeping/chunker v0.0.0-20181014151217-fe64bd25879f h1:jQa4QT2UP9WYv2nzyawpKMOCl+Z/jW7djv2/J50lj9E= github.com/whyrusleeping/chunker v0.0.0-20181014151217-fe64bd25879f/go.mod h1:p9UJB6dDgdPgMJZs7UjUOdulKyRr9fqkS+6JKAInPy8= github.com/whyrusleeping/go-keyspace v0.0.0-20160322163242-5b898ac5add1 h1:EKhdznlJHPMoKr0XTrX+IlJs1LH3lyx2nfr1dOlZ79k= github.com/whyrusleeping/go-keyspace v0.0.0-20160322163242-5b898ac5add1/go.mod h1:8UvriyWtv5Q5EOgjHaSseUEdkQfvwFv1I/In/O2M9gc= github.com/whyrusleeping/go-logging v0.0.0-20170515211332-0457bb6b88fc/go.mod h1:bopw91TMyo8J3tvftk8xmU2kPmlrt4nScJQZU2hE5EM= -github.com/whyrusleeping/go-logging v0.0.1/go.mod h1:lDPYj54zutzG1XYfHAhcc7oNXEburHQBn+Iqd4yS4vE= -github.com/whyrusleeping/go-notifier v0.0.0-20170827234753-097c5d47330f/go.mod h1:cZNvX9cFybI01GriPRMXDtczuvUhgbcYr9iCGaNlRv8= github.com/whyrusleeping/go-sysinfo v0.0.0-20190219211824-4a357d4b90b1 h1:ctS9Anw/KozviCCtK6VWMz5kPL9nbQzbQY4yfqlIV4M= github.com/whyrusleeping/go-sysinfo v0.0.0-20190219211824-4a357d4b90b1/go.mod h1:tKH72zYNt/exx6/5IQO6L9LoQ0rEjd5SbbWaDTs9Zso= -github.com/whyrusleeping/mafmt v1.2.8/go.mod h1:faQJFPbLSxzD9xpA02ttW/tS9vZykNvXwGvqIpk20FA= -github.com/whyrusleeping/mdns v0.0.0-20180901202407-ef14215e6b30/go.mod h1:j4l84WPFclQPj320J9gp0XwNKBb3U0zt5CBqjPp22G4= -github.com/whyrusleeping/mdns v0.0.0-20190826153040-b9b60ed33aa9/go.mod h1:j4l84WPFclQPj320J9gp0XwNKBb3U0zt5CBqjPp22G4= github.com/whyrusleeping/multiaddr-filter v0.0.0-20160516205228-e903e4adabd7 h1:E9S12nwJwEOXe2d6gT6qxdvqMnNq+VnSsKPgm2ZZNds= github.com/whyrusleeping/multiaddr-filter v0.0.0-20160516205228-e903e4adabd7/go.mod h1:X2c0RVCI1eSUFI8eLcY3c0423ykwiUdxLJtkDvruhjI= github.com/x-cray/logrus-prefixed-formatter v0.5.2/go.mod h1:2duySbKsL6M18s5GU7VPsoEPHyzalCE06qoARUCeBBE= -github.com/xdg-go/pbkdf2 v1.0.0/go.mod h1:jrpuAogTd400dnrH08LKmI/xc1MbPOebTwRqcT5RDeI= -github.com/xdg-go/scram v1.0.2/go.mod h1:1WAq6h33pAW+iRreB34OORO2Nf7qel3VV3fjBj+hCSs= -github.com/xdg-go/stringprep v1.0.2/go.mod h1:8F9zXuvzgwmyT5DUm4GUfZGDdT3W+LCvS6+da4O5kxM= github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb h1:zGWFAtiMcyryUHoUjUJX0/lt1H2+i2Ka2n+D3DImSNo= github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= @@ -1523,18 +1049,14 @@ github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 h1:EzJWgHo github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ= github.com/xeipuuv/gojsonschema v1.2.0 h1:LhYJRs+L4fBtjZUfuSZIKGeVu0QRy8e5Xi7D17UxZ74= github.com/xeipuuv/gojsonschema v1.2.0/go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQluxsYJ78Id3Y= -github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= -go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= -go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mIZCrds/GIG4ncV9HhK5PX7jPg= +github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= go.opencensus.io v0.18.0/go.mod h1:vKdFvxhtzZ9onBp9VKHK8z/sRpBMnKAsufL7wlDrCOA= -go.opencensus.io v0.20.1/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= -go.opencensus.io v0.20.2/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= go.opencensus.io v0.22.1/go.mod h1:Ap50jQcDJrx6rB6VgeeFPtuPIf3wMRvRfrfYDO6+BmA= @@ -1544,56 +1066,46 @@ go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.32.0 h1:mac9BKRqwaX6zxHPDe3pvmWpwuuIM0vuXv2juCnQevE= -go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.32.0/go.mod h1:5eCOqeGphOyz6TsY3ZDNjE33SM/TFAK3RGuCL2naTgY= -go.opentelemetry.io/otel v1.7.0/go.mod h1:5BdUoMIz5WEs0vt0CUEMtSSaTSHBBVwrhnz7+nrD5xk= -go.opentelemetry.io/otel v1.11.1 h1:4WLLAmcfkmDk2ukNXJyq3/kiz/3UzCaYq6PskJsaou4= -go.opentelemetry.io/otel v1.11.1/go.mod h1:1nNhXBbWSD0nsL38H6btgnFN2k4i0sNLHNNMZMSbUGE= -go.opentelemetry.io/otel/exporters/jaeger v1.7.0 h1:wXgjiRldljksZkZrldGVe6XrG9u3kYDyQmkZwmm5dI0= -go.opentelemetry.io/otel/exporters/jaeger v1.7.0/go.mod h1:PwQAOqBgqbLQRKlj466DuD2qyMjbtcPpfPfj+AqbSBs= -go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.7.0 h1:7Yxsak1q4XrJ5y7XBnNwqWx9amMZvoidCctv62XOQ6Y= -go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.7.0/go.mod h1:M1hVZHNxcbkAlcvrOMlpQ4YOO3Awf+4N2dxkZL3xm04= -go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.7.0 h1:cMDtmgJ5FpRvqx9x2Aq+Mm0O6K/zcUkH73SFz20TuBw= -go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.7.0/go.mod h1:ceUgdyfNv4h4gLxHR0WNfDiiVmZFodZhZSbOLhpxqXE= -go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.7.0 h1:MFAyzUPrTwLOwCi+cltN0ZVyy4phU41lwH+lyMyQTS4= -go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.7.0/go.mod h1:E+/KKhwOSw8yoPxSSuUHG6vKppkvhN+S1Jc7Nib3k3o= -go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.7.0 h1:pLP0MH4MAqeTEV0g/4flxw9O8Is48uAIauAnjznbW50= -go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.7.0/go.mod h1:aFXT9Ng2seM9eizF+LfKiyPBGy8xIZKwhusC1gIu3hA= -go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.7.0 h1:8hPcgCg0rUJiKE6VWahRvjgLUrNl7rW2hffUEPKXVEM= -go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.7.0/go.mod h1:K4GDXPY6TjUiwbOh+DkKaEdCF8y+lvMoM6SeAPyfCCM= -go.opentelemetry.io/otel/exporters/zipkin v1.7.0 h1:X0FZj+kaIdLi29UiyrEGDhRTYsEXj9GdEW5Y39UQFEE= -go.opentelemetry.io/otel/exporters/zipkin v1.7.0/go.mod h1:9YBXeOMFLQGwNEjsxMRiWPGoJX83usGMhbCmxUbNe5I= -go.opentelemetry.io/otel/metric v0.30.0 h1:Hs8eQZ8aQgs0U49diZoaS6Uaxw3+bBE3lcMUKBFIk3c= -go.opentelemetry.io/otel/metric v0.30.0/go.mod h1:/ShZ7+TS4dHzDFmfi1kSXMhMVubNoP0oIaBp70J6UXU= -go.opentelemetry.io/otel/sdk v1.7.0/go.mod h1:uTEOTwaqIVuTGiJN7ii13Ibp75wJmYUDe374q6cZwUU= -go.opentelemetry.io/otel/sdk v1.11.1 h1:F7KmQgoHljhUuJyA+9BiU+EkJfyX5nVVF4wyzWZpKxs= -go.opentelemetry.io/otel/sdk v1.11.1/go.mod h1:/l3FE4SupHJ12TduVjUkZtlfFqDCQJlOlithYrdktys= -go.opentelemetry.io/otel/trace v1.7.0/go.mod h1:fzLSB9nqR2eXzxPXb2JW9IKE+ScyXA48yyE4TNvoHqU= -go.opentelemetry.io/otel/trace v1.11.1 h1:ofxdnzsNrGBYXbP7t7zpUK281+go5rF7dvdIZXF8gdQ= -go.opentelemetry.io/otel/trace v1.11.1/go.mod h1:f/Q9G7vzk5u91PhbmKbg1Qn0rzH1LJ4vbPHFGkTPtOk= -go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= -go.opentelemetry.io/proto/otlp v0.16.0 h1:WHzDWdXUvbc5bG2ObdrGfaNpQz7ft7QN9HHmJlbiB1E= -go.opentelemetry.io/proto/otlp v0.16.0/go.mod h1:H7XAot3MsfNsj7EXtrA2q5xSNQ10UqI405h3+duxN4U= -go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.51.0 h1:Xs2Ncz0gNihqu9iosIZ5SkBbWo5T8JhhLJFMQL1qmLI= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.51.0/go.mod h1:vy+2G/6NvVMpwGX/NyLqcC41fxepnuKHk16E6IZUcJc= +go.opentelemetry.io/otel v1.26.0 h1:LQwgL5s/1W7YiiRwxf03QGnWLb2HW4pLiAhaA5cZXBs= +go.opentelemetry.io/otel v1.26.0/go.mod h1:UmLkJHUAidDval2EICqBMbnAd0/m2vmpf/dAM+fvFs4= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.26.0 h1:1u/AyyOqAWzy+SkPxDpahCNZParHV8Vid1RnI2clyDE= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.26.0/go.mod h1:z46paqbJ9l7c9fIPCXTqTGwhQZ5XoTIsfeFYWboizjs= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.26.0 h1:Waw9Wfpo/IXzOI8bCB7DIk+0JZcqqsyn1JFnAc+iam8= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.26.0/go.mod h1:wnJIG4fOqyynOnnQF/eQb4/16VlX2EJAHhHgqIqWfAo= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.26.0 h1:1wp/gyxsuYtuE/JFxsQRtcCDtMrO2qMvlfXALU5wkzI= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.26.0/go.mod h1:gbTHmghkGgqxMomVQQMur1Nba4M0MQ8AYThXDUjsJ38= +go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.26.0 h1:0W5o9SzoR15ocYHEQfvfipzcNog1lBxOLfnex91Hk6s= +go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.26.0/go.mod h1:zVZ8nz+VSggWmnh6tTsJqXQ7rU4xLwRtna1M4x5jq58= +go.opentelemetry.io/otel/exporters/zipkin v1.26.0 h1:sBk6A62GgcQRwcxcBwRMPkqeuSizcpHkXyZNyP281Fw= +go.opentelemetry.io/otel/exporters/zipkin v1.26.0/go.mod h1:fLzYtPUxPFzu7rSqhYsCxYheT2dNoPjtKovCLzLm07w= +go.opentelemetry.io/otel/metric v1.26.0 h1:7S39CLuY5Jgg9CrnA9HHiEjGMF/X2VHvoXGgSllRz30= +go.opentelemetry.io/otel/metric v1.26.0/go.mod h1:SY+rHOI4cEawI9a7N1A4nIg/nTQXe1ccCNWYOJUrpX4= +go.opentelemetry.io/otel/sdk v1.26.0 h1:Y7bumHf5tAiDlRYFmGqetNcLaVUZmh4iYfmGxtmz7F8= +go.opentelemetry.io/otel/sdk v1.26.0/go.mod h1:0p8MXpqLeJ0pzcszQQN4F0S5FVjBLgypeGSngLsmirs= +go.opentelemetry.io/otel/trace v1.26.0 h1:1ieeAUb4y0TE26jUFrCIXKpTuVK7uJGN9/Z/2LP5sQA= +go.opentelemetry.io/otel/trace v1.26.0/go.mod h1:4iDxvGDQuUkHve82hJJ8UqrwswHYsZuWCBllGV2U2y0= +go.opentelemetry.io/proto/otlp v1.2.0 h1:pVeZGk7nXDC9O2hncA6nHldxEjm6LByfA2aN8IOkz94= +go.opentelemetry.io/proto/otlp v1.2.0/go.mod h1:gGpR8txAl5M03pDhMC79G6SdqNV26naRm/KDsgaHD8A= go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= -go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/atomic v1.8.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= -go.uber.org/atomic v1.10.0 h1:9qC72Qh0+3MqyJbAn8YU5xVq1frD8bn3JtD2oXtafVQ= -go.uber.org/atomic v1.10.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0= -go.uber.org/dig v1.16.1 h1:+alNIBsl0qfY0j6epRubp/9obgtrObRAc5aD+6jbWY8= -go.uber.org/dig v1.16.1/go.mod h1:557JTAUZT5bUK0SvCwikmLPPtdQhfvLYtO5tJgQSbnk= -go.uber.org/fx v1.19.2 h1:SyFgYQFr1Wl0AYstE8vyYIzP4bFz2URrScjwC4cwUvY= -go.uber.org/fx v1.19.2/go.mod h1:43G1VcqSzbIv77y00p1DRAsyZS8WdzuYdhZXmEUkMyQ= -go.uber.org/goleak v1.0.0/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A= +go.uber.org/atomic v1.11.0 h1:ZvwS0R+56ePWxUNi+Atn9dWONBPp/AUETXlHW0DxSjE= +go.uber.org/atomic v1.11.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0= +go.uber.org/dig v1.17.1 h1:Tga8Lz8PcYNsWsyHMZ1Vm0OQOUaJNDyvPImgbAu9YSc= +go.uber.org/dig v1.17.1/go.mod h1:Us0rSJiThwCv2GteUN0Q7OKvU7n5J4dxZ9JKUXozFdE= +go.uber.org/fx v1.21.1 h1:RqBh3cYdzZS0uqwVeEjOX2p73dddLpym315myy/Bpb0= +go.uber.org/fx v1.21.1/go.mod h1:HT2M7d7RHo+ebKGh9NRcrsrHHfpZ60nW3QRubMRfv48= go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A= go.uber.org/goleak v1.1.11-0.20210813005559-691160354723/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= go.uber.org/goleak v1.1.11/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= -go.uber.org/goleak v1.1.12 h1:gZAh5/EyT/HQwlpkCy6wTpqfH9H8Lz8zbm3dZh+OyzA= -go.uber.org/goleak v1.1.12/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= +go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= +go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= +go.uber.org/mock v0.4.0 h1:VcM4ZOtdbR4f6VXfiOpwpVJDL6lCReaZ6mw31wqh7KU= +go.uber.org/mock v0.4.0/go.mod h1:a6FSlNadKUHUa9IP5Vyt1zh4fC7uAwxMutEAscFbkZc= go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= -go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= go.uber.org/multierr v1.5.0/go.mod h1:FeouvMocqHpRaaGuG9EjoKcStLC43Zu/fmqdUMPcKYU= go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= go.uber.org/multierr v1.7.0/go.mod h1:7EAYxJLBy9rStEaz58O2t4Uvip6FSURkq8/ppBp95ak= @@ -1601,53 +1113,45 @@ go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA= go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= -go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= go.uber.org/zap v1.14.1/go.mod h1:Mb2vm2krFEG5DV0W9qcHBYFtp/Wku1cvYaqPsS/WYfc= -go.uber.org/zap v1.15.0/go.mod h1:Mb2vm2krFEG5DV0W9qcHBYFtp/Wku1cvYaqPsS/WYfc= go.uber.org/zap v1.16.0/go.mod h1:MA8QOfq0BHJwdXa996Y4dYkAqRKB8/1K1QMMZVaNZjQ= go.uber.org/zap v1.19.0/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI= go.uber.org/zap v1.19.1/go.mod h1:j3DNczoxDZroyBnOT1L/Q79cfUMGZxlv/9dzN7SM1rI= go.uber.org/zap v1.20.0/go.mod h1:wjWOCqI0f2ZZrJF/UufIOkiC8ii6tm1iqIsLo76RfJw= -go.uber.org/zap v1.24.0 h1:FiJd5l1UOLj0wCgbSE0rwwXHzEdAZS6hiiSnxJN/D60= -go.uber.org/zap v1.24.0/go.mod h1:2kMP+WWQ8aoFoedH3T2sq6iJ2yDWpHbP0f6MQbS9Gkg= +go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8= +go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E= go4.org v0.0.0-20180809161055-417644f6feb5/go.mod h1:MkTOUMDaeVYJUOUsaDXIhWPZYa1yOyC1qaOBpL57BhE= -go4.org v0.0.0-20200411211856-f5505b9728dd h1:BNJlw5kRTzdmyfh5U8F93HA2OwkP7ZGwA51eJ/0wKOU= go4.org v0.0.0-20200411211856-f5505b9728dd/go.mod h1:CIiUVy99QCPfoE13bO4EZaz5GZMZXMSBGhxRdsvzbkg= +go4.org v0.0.0-20230225012048-214862532bf5 h1:nifaUDeh+rPaBCMPMQHZmvJf+QdpLFnuQPwx+LxVmtc= +go4.org v0.0.0-20230225012048-214862532bf5/go.mod h1:F57wTi5Lrj6WLyswp5EYV1ncrEbFGHD4hhz6S1ZYeaU= golang.org/x/build v0.0.0-20190111050920-041ab4dc3f9d/go.mod h1:OWs+y06UdEOHN4y+MfF/py+xQ/tYqIWW03b70/CG9Rw= golang.org/x/crypto v0.0.0-20170930174604-9419663f5a44/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20181030102418-4d3f4d9ffa16/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190211182817-74369b46fc67/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20190225124518-7f87c0fbb88b/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20190313024323-a1f597ede03a/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20190426145343-a29dc8fdc734/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190513172903-22d7a77e9e5f/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190530122614-20be4c3c3ed5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190618222545-ea8f1a30c443/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190911031432-227b76d455e7/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200115085410-6d4e4cb37c7d/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200221231518-2aa609cf4a9d/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200302210943-78000ba7a073/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200510223506-06a226fb4e37/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200602180216-279210d13fed/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20201112155050-0c6587e931a9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210220033148-5ea612d1eb83/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= -golang.org/x/crypto v0.0.0-20210506145944-38f3c27a63bf/go.mod h1:P+XmwS30IXTQdn5tA2iutPOUgjI07+tq3H3K9MVA1s8= -golang.org/x/crypto v0.0.0-20210920023735-84f357641f63/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.7.0 h1:AvwMYaRytfdeVt3u6mLaxYtErKYjxA2OXjJ1HHq6t3A= -golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= +golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/crypto v0.8.0/go.mod h1:mRqEX+O9/h5TFCrQhkgjo2yKi0yYA+9ecGkdQoHrywE= +golang.org/x/crypto v0.11.0/go.mod h1:xgJhtzW8F9jGdVFWZESrid1U1bjeNy4zgy5cRr/CIio= +golang.org/x/crypto v0.12.0/go.mod h1:NF0Gs7EO5K4qLn+Ylc+fih8BSTeIjAP05siRnAh98yw= +golang.org/x/crypto v0.18.0/go.mod h1:R0j02AL6hcrfOiy9T4ZYp/rcWeMxM3L6QYxlOuEG1mg= +golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= +golang.org/x/crypto v0.21.0/go.mod h1:0BP7YvVV9gBbVKyeTG0Gyn+gZm94bibOW5BjDEYAOMs= +golang.org/x/crypto v0.23.0 h1:dIJU/v2J8Mdglj/8rJ6UUOM3Zc9zLZxVZwwxMooUSAI= +golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -1658,8 +1162,8 @@ golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u0 golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= -golang.org/x/exp v0.0.0-20230321023759-10a507213a29 h1:ooxPy7fPvB4kwsA2h+iBNHkAbp/4JxTSwCmvdjEYmug= -golang.org/x/exp v0.0.0-20230321023759-10a507213a29/go.mod h1:CxIveKay+FTh1D0yPZemJVgC/95VzuuOLq5Qi4xnoYc= +golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842 h1:vr/HnozRka3pE4EsMEg1lgkXJkTFJCVUX+S/ZT6wYzM= +golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842/go.mod h1:XtvwrStGgqGPLc4cjQfWqZHG1YFdYs6swckp8vpsjnc= golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= golang.org/x/lint v0.0.0-20180702182130-06c8688daad7/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= @@ -1673,8 +1177,6 @@ golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHl golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/lint v0.0.0-20210508222113-6edffad5e616 h1:VLliZ0d+/avPrXXH+OakdXhpJuEoBZuwh1m2j7U6Iug= -golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= @@ -1685,22 +1187,17 @@ golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.5.0/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro= -golang.org/x/mod v0.10.0 h1:lFO9qtOdlre5W1jxS3r/4szv2/6iXxScdzjoBMXNhYk= -golang.org/x/mod v0.10.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/net v0.0.0-20180719180050-a680a1efc54d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= +golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +golang.org/x/mod v0.17.0 h1:zY54UmvipHiNd+pm+m0x9KhZ9hl1/7QNMyxXbc6ICqA= +golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181011144130-49bb7cea24b1/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181029044818-c44066c5c816/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181106065722-10aee1819953/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190125091013-d26f9f9a57f3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190227160552-c95aed5357e7/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= @@ -1708,15 +1205,11 @@ golang.org/x/net v0.0.0-20190313220215-9f648a60d977/go.mod h1:t9HGtf8HONx5eT2rtn golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190522155817-f3200d17e092/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= -golang.org/x/net v0.0.0-20190611141213-3f473d35a33a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190923162816-aa69164e4478/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= @@ -1738,16 +1231,23 @@ golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwY golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= golang.org/x/net v0.0.0-20210423184538-5f58ad60dda6/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= -golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20210917221730-978cfadd31cf/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ= -golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= +golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/net v0.9.0/go.mod h1:d48xBJpPfHeWQsugry2m+kC02ZBRGRgulfHnEXEuWns= +golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= +golang.org/x/net v0.13.0/go.mod h1:zEVYFnQC7m/vmpQFELhcD1EWkZlX69l4oqgmer6hfKA= +golang.org/x/net v0.14.0/go.mod h1:PpSgVXXLK0OxS0F31C1/tv6XNguvCrnXIDrFMspZIUI= +golang.org/x/net v0.20.0/go.mod h1:z8BVo6PvndSri0LbOE3hAn0apkU+1YvI6E70E9jsnvY= +golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44= +golang.org/x/net v0.22.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg= +golang.org/x/net v0.25.0 h1:d/OCCoBEUq33pjydKrGQhw7IlUPI2Oylr+8qLx49kac= +golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20181017192945-9dcd33a902f4/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20181203162652-d668ce993890/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= @@ -1756,9 +1256,9 @@ golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4Iltr golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.5.0 h1:HuArIo48skDwlrvM3sEdHXElYslAMsf3KwRkkW4MC4s= -golang.org/x/oauth2 v0.5.0/go.mod h1:9/XBHVqLaWO3/BRHs5jbpYCnOZVjj5V0ndyaAM7KB4I= +golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= +golang.org/x/oauth2 v0.20.0 h1:4mQdhULixXKP1rwYBW0vAijoXnkTG0BLCDRzfe1idMo= +golang.org/x/oauth2 v0.20.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= golang.org/x/perf v0.0.0-20180704124530-6e6d33e29852/go.mod h1:JLpeXjPJfIyPr5TlbXLkXWLhP8nz10XfvxElABhCtcw= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -1771,48 +1271,38 @@ golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o= +golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M= +golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180810173357-98c5dad5d1a0/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181029174526-d69651ed3497/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181122145206-62eef0e2fa9b/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190219092855-153ac476189d/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190228124157-a34e9553db1e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190302025703-b6889370fb10/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190316082340-a2f829d7f35f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190405154228-4b34438f7a67/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190524122548-abf6ff778158/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190526052359-791d8a0f4d09/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190610200419-93c9922d18ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190924154521-2837fb4f24fe/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191210023423-ac6580df4449/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191220142924-d4481acd189f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -1837,46 +1327,67 @@ golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20200814200057-3d37ad5750ed/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210303074136-134d130e1a04/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210309074719-68d13333faf2/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210317225723-c4fcb01b228e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210426080607-c94f62235c83/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210816183151-1e6c022a8912/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220704084225-05e143d24a9e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220708085239-5a0f0661e09d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.7.0 h1:3jlCCIQZPdOYu1h8BkNvLz8Kgwtae2cagcG/VamtZRU= golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.9.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.10.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.20.0 h1:Od9JTbYCk261bKm4M/mw7AklTlFYIa0bIp9BgSm1S8Y= +golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= +golang.org/x/term v0.7.0/go.mod h1:P32HKFT3hSsZrRxla30E9HqToFYAQPCMs/zFMBUFqPY= +golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= +golang.org/x/term v0.10.0/go.mod h1:lpqdcUyK/oCiQxvxVrppt5ggO2KCZ5QblwqPnfZ6d5o= +golang.org/x/term v0.11.0/go.mod h1:zC9APTIj3jG3FdV/Ons+XE1riIZXG4aZ4GTHiPZJPIU= +golang.org/x/term v0.16.0/go.mod h1:yn7UURbUtPyrVJPGPq404EukNFxcm/foM+bV/bfcDsY= +golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk= +golang.org/x/term v0.18.0/go.mod h1:ILwASektA3OnRv7amZ1xhE/KTR+u50pbXfZ03+6Nx58= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68= -golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= +golang.org/x/text v0.11.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= +golang.org/x/text v0.12.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= +golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/text v0.15.0 h1:h1V/4gjBv8v9cjcR6+AR5+/cIYK5N/WAgiv4xlsEtAk= +golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk= +golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -1906,10 +1417,8 @@ golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtn golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191216052735-49a3e744a425/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200103221440-774c71fcf114/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= @@ -1931,23 +1440,24 @@ golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc golang.org/x/tools v0.0.0-20200806022845-90696ccdc692/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20201211185031-d93e913c1a58/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= -golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.7.0 h1:W4OVu8VVOaIO0yzWMNdepAulS7YfoS3Zabrm8DOXXU4= -golang.org/x/tools v0.7.0/go.mod h1:4pg6aUX35JBAogB10C9AtvVL+qowtN4pT3CGSQex14s= +golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= +golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= +golang.org/x/tools v0.21.0 h1:qc0xYgIbsSDt9EyWz05J5wfa7LOVW0YTLOXrqdLAWIw= +golang.org/x/tools v0.21.0/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 h1:H2TDz8ibqkAF6YGhCdN3jS9O0/s90v0rJh3X/OLHEUk= -golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= +golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 h1:+cNy6SZtPcJQH3LJVLOSmiC7MMxXNOb3PU/VUEz+EhU= +golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028/go.mod h1:NDW/Ps6MPRej6fsCIbMTohpP40sJ/P/vI1MoTEGwX90= +gonum.org/v1/gonum v0.15.0 h1:2lYxjRbTYyxkJxlhC+LvJIx3SsANPdRybu1tGj9/OrQ= +gonum.org/v1/gonum v0.15.0/go.mod h1:xzZVBJBtS+Mz4q0Yl2LJTk+OxOg4jiXZ7qBoM0uISGo= google.golang.org/api v0.0.0-20180910000450-7ca32eb868bf/go.mod h1:4mhQ8q/RsB7i+udVvVy5NUi08OU8ZlA0gRVgrF7VFY0= google.golang.org/api v0.0.0-20181030000543-1d582fd0359e/go.mod h1:4mhQ8q/RsB7i+udVvVy5NUi08OU8ZlA0gRVgrF7VFY0= google.golang.org/api v0.1.0/go.mod h1:UGEZY7KEX120AnNLIHFMKIo4obdJhkp2tPbaPlQx13Y= -google.golang.org/api v0.3.1/go.mod h1:6wY9I6uQWHQ8EM57III9mq/AjF+i8G65rmVagqKMtkk= google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= @@ -1972,8 +1482,6 @@ google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7 google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= -google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20180831171423-11092d34479b/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20181029155118-b69ba1387ce2/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= @@ -1983,7 +1491,6 @@ google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRn google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190530194941-fb225487d101/go.mod h1:z3L6/3dTEVtUr6QSP8miRzeRqwQOioJ9I66odjN4I7s= google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= @@ -2011,39 +1518,27 @@ google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6D google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20200806141610-86f49bd18e98/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20211118181313-81c1377c94b1/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd h1:OjndDrsik+Gt+e6fs45z9AxiewiKyLKYpA45W5Kpkks= google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd/go.mod h1:cTsE614GARnxrLsqKREzmNYJACSWWpAWdNMwnD7c2BE= google.golang.org/grpc v1.14.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= google.golang.org/grpc v1.16.0/go.mod h1:0JHn/cJsOMiMfNA9+DeHDlAU7KAAB5GDlYFpa9MZMio= google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= -google.golang.org/grpc v1.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= -google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= -google.golang.org/grpc v1.22.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -google.golang.org/grpc v1.23.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= -google.golang.org/grpc v1.28.1/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= -google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= -google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= -google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= -google.golang.org/grpc v1.41.0/go.mod h1:U3l9uK9J0sini8mHphKoXyaqDA/8VyGnDee1zzIUK6k= -google.golang.org/grpc v1.42.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= -google.golang.org/grpc v1.46.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= -google.golang.org/grpc v1.50.1 h1:DS/BukOZWp8s6p4Dt/tOaJaTQyPyOoCcrjroHuCeLzY= -google.golang.org/grpc v1.50.1/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= +google.golang.org/grpc v1.64.0 h1:KH3VH9y/MgNQg1dE7b3XfVK0GsPSIzJwdF617gUSbvY= +google.golang.org/grpc v1.64.0/go.mod h1:oxjF8E3FBnjp+/gVFYdWacaLDx9na1aqy9oovLpxQYg= google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.3.0 h1:rNBFJjBCOgVr9pWD7rs/knKL4FRTKgpZmsRfV214zcA= google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.3.0/go.mod h1:Dk1tviKTvMCz5tvh7t+fh94dhmQVHuCt2OzJB3CTW9Y= google.golang.org/grpc/examples v0.0.0-20200922230038-4e932bbcb079 h1:unzgkDPNegIn/czOcgxzQaTzEzOiBH1V1j55rsEzVEg= @@ -2060,22 +1555,19 @@ google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGj google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= -google.golang.org/protobuf v1.30.0 h1:kPPoIgf3TsEvrm0PFe15JQ+570QVxYzEvvHqChK+cng= -google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.34.1 h1:9ddQBjfCyZPOHPUiPxpYESBLc+T8P3E+Vo4IbKZgFWg= +google.golang.org/protobuf v1.34.1/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= -gopkg.in/cheggaaa/pb.v1 v1.0.25/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= -gopkg.in/gcfg.v1 v1.2.3/go.mod h1:yesOnuUOFQAhST5vPY4nbZsb/huCgGGXlipJsBn0b3o= gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= -gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= gopkg.in/square/go-jose.v2 v2.5.1/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= gopkg.in/square/go-jose.v2 v2.6.0 h1:NGk74WTnPKBNUhNzQX7PYcTLUjoq7mzKk2OKbvwk2iI= gopkg.in/square/go-jose.v2 v2.6.0/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= @@ -2083,8 +1575,6 @@ gopkg.in/src-d/go-cli.v0 v0.0.0-20181105080154-d492247bbc0d/go.mod h1:z+K8VcOYVY gopkg.in/src-d/go-log.v1 v1.0.1/go.mod h1:GN34hKP0g305ysm2/hctJ0Y8nWP3zxXXJ8GFabTyABE= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= -gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= -gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= @@ -2109,8 +1599,8 @@ honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= lukechampine.com/blake3 v1.1.6/go.mod h1:tkKEOtDkNtklkXtLNEOGNq5tcV90tJiA1vAA12R78LA= -lukechampine.com/blake3 v1.1.7 h1:GgRMhmdsuK8+ii6UZFDL8Nb+VyMwadAgcJyfYHxG6n0= -lukechampine.com/blake3 v1.1.7/go.mod h1:tkKEOtDkNtklkXtLNEOGNq5tcV90tJiA1vAA12R78LA= +lukechampine.com/blake3 v1.3.0 h1:sJ3XhFINmHSrYCgl958hscfIa3bw8x4DqMP3u1YvoYE= +lukechampine.com/blake3 v1.3.0/go.mod h1:0OFRp7fBtAylGVCO40o87sbupkyIGgbpv1+M1k1LM6k= moul.io/banner v1.0.1 h1:+WsemGLhj2pOajw2eR5VYjLhOIqs0XhIRYchzTyMLk0= moul.io/banner v1.0.1/go.mod h1:XwvIGKkhKRKyN1vIdmR5oaKQLIkMhkMqrsHpS94QzAU= moul.io/godev v1.7.0/go.mod h1:5lgSpI1oH7xWpLl2Ew/Nsgk8DiNM6FzN9WV9+lgW8RQ= @@ -2131,14 +1621,10 @@ moul.io/zapring v1.3.3 h1:N2QPn6qTMBWjh842UPxdjj2UW+uH/foXohgGCPZDlM8= moul.io/zapring v1.3.3/go.mod h1:UvlTrdjeHtSqdjkGXwAxIfpaQ/ai4I+ccRASFxflcJE= mvdan.cc/gofumpt v0.4.0 h1:JVf4NN1mIpHogBj7ABpgOyZc65/UUOkKQFkoURsz4MM= mvdan.cc/gofumpt v0.4.0/go.mod h1:PljLOHDeZqgS8opHRKLzp2It2VBuSdteAgqUfzMTxlQ= -nhooyr.io/websocket v1.8.7 h1:usjR2uOr/zjjkVMy0lW+PPohFok7PCow5sDjLgX4P4g= -nhooyr.io/websocket v1.8.7/go.mod h1:B70DZP8IakI65RVQ51MsWP/8jndNma26DVA/nFSCgW0= pgregory.net/rapid v0.4.7 h1:MTNRktPuv5FNqOO151TM9mDTa+XHcX6ypYeISDVD14g= pgregory.net/rapid v0.4.7/go.mod h1:UYpPVyjFHzYBGHIxLFoupi8vwk6rXNzRY9OMvVxFIOU= rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= -sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= -sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU= sourcegraph.com/sourcegraph/go-diff v0.5.0/go.mod h1:kuch7UrkMzY0X+p9CRK03kfuPQ2zzQcaEFbx8wA8rck= sourcegraph.com/sqs/pbtypes v0.0.0-20180604144634-d3ebe8f20ae4/go.mod h1:ketZ/q3QxT9HOBeFhu6RdvsftgpsbFHBF5Cas6cDKZ0= diff --git a/orbitdb.go b/orbitdb.go index f487bc0c..f6282a3a 100644 --- a/orbitdb.go +++ b/orbitdb.go @@ -10,7 +10,7 @@ import ( "github.com/ipfs/go-cid" "github.com/ipfs/go-datastore" ds_sync "github.com/ipfs/go-datastore/sync" - coreapi "github.com/ipfs/interface-go-ipfs-core" + coreiface "github.com/ipfs/kubo/core/coreiface" "github.com/libp2p/go-libp2p/core/crypto" peer "github.com/libp2p/go-libp2p/core/peer" "github.com/libp2p/go-libp2p/p2p/host/eventbus" @@ -164,7 +164,7 @@ func (s *WeshOrbitDB) registerGroupSigningPubKey(g *protocoltypes.Group) error { return nil } -func NewWeshOrbitDB(ctx context.Context, ipfs coreapi.CoreAPI, options *NewOrbitDBOptions) (*WeshOrbitDB, error) { +func NewWeshOrbitDB(ctx context.Context, ipfs coreiface.CoreAPI, options *NewOrbitDBOptions) (*WeshOrbitDB, error) { var err error if options == nil { diff --git a/pkg/ipfsutil/conn_logger.go b/pkg/ipfsutil/conn_logger.go index 2adc4d8d..01a77633 100644 --- a/pkg/ipfsutil/conn_logger.go +++ b/pkg/ipfsutil/conn_logger.go @@ -69,7 +69,7 @@ func (cl *connLogger) Connected(net network.Network, c network.Conn) { <-time.After(10 * time.Millisecond) if tags := cl.getPeerTags(c.RemotePeer()); tags != nil { cl.logger.Info("Connected", - logutil.PrivateString("peer", c.RemotePeer().Pretty()), + logutil.PrivateString("peer", c.RemotePeer().String()), logutil.PrivateString("to", c.LocalMultiaddr().String()), logutil.PrivateString("from", c.RemoteMultiaddr().String()), logutil.PrivateStrings("tags", tags), @@ -81,7 +81,7 @@ func (cl *connLogger) Connected(net network.Network, c network.Conn) { func (cl *connLogger) Disconnected(n network.Network, c network.Conn) { if tags := cl.getPeerTags(c.RemotePeer()); tags != nil { cl.logger.Info("Disconnected", - logutil.PrivateString("peer", c.RemotePeer().Pretty()), + logutil.PrivateString("peer", c.RemotePeer().String()), logutil.PrivateString("to", c.LocalMultiaddr().String()), logutil.PrivateString("from", c.RemoteMultiaddr().String()), logutil.PrivateStrings("tags", tags), @@ -92,7 +92,7 @@ func (cl *connLogger) Disconnected(n network.Network, c network.Conn) { func (cl *connLogger) OpenedStream(n network.Network, s network.Stream) { if tags := cl.getPeerTags(s.Conn().RemotePeer()); tags != nil { cl.logger.Debug("Stream opened", - logutil.PrivateString("peer", s.Conn().RemotePeer().Pretty()), + logutil.PrivateString("peer", s.Conn().RemotePeer().String()), logutil.PrivateString("to", s.Conn().LocalMultiaddr().String()), logutil.PrivateString("from", s.Conn().RemoteMultiaddr().String()), logutil.PrivateString("protocol", string(s.Protocol())), @@ -104,7 +104,7 @@ func (cl *connLogger) OpenedStream(n network.Network, s network.Stream) { func (cl *connLogger) ClosedStream(n network.Network, s network.Stream) { if tags := cl.getPeerTags(s.Conn().RemotePeer()); tags != nil { cl.logger.Debug("Stream closed", - logutil.PrivateString("peer", s.Conn().RemotePeer().Pretty()), + logutil.PrivateString("peer", s.Conn().RemotePeer().String()), logutil.PrivateString("to", s.Conn().LocalMultiaddr().String()), logutil.PrivateString("from", s.Conn().RemoteMultiaddr().String()), logutil.PrivateString("protocol", string(s.Protocol())), diff --git a/pkg/ipfsutil/extended_core_api.go b/pkg/ipfsutil/extended_core_api.go index 6ba2b756..273c05b8 100644 --- a/pkg/ipfsutil/extended_core_api.go +++ b/pkg/ipfsutil/extended_core_api.go @@ -1,9 +1,9 @@ package ipfsutil import ( - ipfs_interface "github.com/ipfs/interface-go-ipfs-core" ipfs_core "github.com/ipfs/kubo/core" ipfs_coreapi "github.com/ipfs/kubo/core/coreapi" + coreiface "github.com/ipfs/kubo/core/coreiface" "github.com/libp2p/go-libp2p/core/connmgr" ipfs_host "github.com/libp2p/go-libp2p/core/host" ) @@ -13,14 +13,14 @@ type ConnMgr interface { } type ExtendedCoreAPI interface { - ipfs_interface.CoreAPI + coreiface.CoreAPI ipfs_host.Host ConnMgr() ConnMgr } type extendedCoreAPI struct { - ipfs_interface.CoreAPI + coreiface.CoreAPI ipfs_host.Host } @@ -28,7 +28,7 @@ func (e *extendedCoreAPI) ConnMgr() ConnMgr { return e.Host.ConnManager() } -func NewExtendedCoreAPI(host ipfs_host.Host, api ipfs_interface.CoreAPI) ExtendedCoreAPI { +func NewExtendedCoreAPI(host ipfs_host.Host, api coreiface.CoreAPI) ExtendedCoreAPI { return &extendedCoreAPI{ CoreAPI: api, Host: host, diff --git a/pkg/ipfsutil/localrecord.go b/pkg/ipfsutil/localrecord.go index 5e7a46d3..1d520993 100644 --- a/pkg/ipfsutil/localrecord.go +++ b/pkg/ipfsutil/localrecord.go @@ -4,8 +4,8 @@ import ( "context" "os" - ipfs_interface "github.com/ipfs/interface-go-ipfs-core" ipfs_core "github.com/ipfs/kubo/core" + coreiface "github.com/ipfs/kubo/core/coreiface" "github.com/libp2p/go-libp2p/core/host" "github.com/libp2p/go-libp2p/core/network" "github.com/libp2p/go-libp2p/core/protocol" @@ -23,7 +23,7 @@ type LocalRecord struct { } // OptionLocalRecord is given to CoreAPIOption.Options when the ipfs node setup -func OptionLocalRecord(node *ipfs_core.IpfsNode, api ipfs_interface.CoreAPI) error { +func OptionLocalRecord(node *ipfs_core.IpfsNode, api coreiface.CoreAPI) error { lr := &LocalRecord{ host: node.PeerHost, } diff --git a/pkg/ipfsutil/mobile.go b/pkg/ipfsutil/mobile.go index 6f88c4a7..df5c8105 100644 --- a/pkg/ipfsutil/mobile.go +++ b/pkg/ipfsutil/mobile.go @@ -4,17 +4,13 @@ import ( "context" "fmt" - ds "github.com/ipfs/go-datastore" ipfs_config "github.com/ipfs/kubo/config" ipfs_p2p "github.com/ipfs/kubo/core/node/libp2p" p2p "github.com/libp2p/go-libp2p" dht "github.com/libp2p/go-libp2p-kad-dht" p2p_dht "github.com/libp2p/go-libp2p-kad-dht" "github.com/libp2p/go-libp2p-kad-dht/dual" - p2p_record "github.com/libp2p/go-libp2p-record" host "github.com/libp2p/go-libp2p/core/host" - p2p_host "github.com/libp2p/go-libp2p/core/host" - p2p_peer "github.com/libp2p/go-libp2p/core/peer" p2p_routing "github.com/libp2p/go-libp2p/core/routing" ipfs_mobile "berty.tech/weshnet/pkg/ipfsutil/mobile" @@ -116,28 +112,16 @@ func NewIPFSMobile(ctx context.Context, repo *ipfs_mobile.RepoMobile, opts *Mobi return ipfs_mobile.NewNode(ctx, &ipfsconfig) } -func CustomRoutingOption(mode p2p_dht.ModeOpt, net DHTNetworkMode, opts ...p2p_dht.Option) func( - ctx context.Context, - host p2p_host.Host, - dstore ds.Batching, - validator p2p_record.Validator, - bootstrapPeers ...p2p_peer.AddrInfo, -) (p2p_routing.Routing, error) { - return func( - ctx context.Context, - host p2p_host.Host, - dstore ds.Batching, - validator p2p_record.Validator, - bootstrapPeers ...p2p_peer.AddrInfo, - ) (p2p_routing.Routing, error) { +func CustomRoutingOption(mode p2p_dht.ModeOpt, net DHTNetworkMode, opts ...p2p_dht.Option) func(args ipfs_p2p.RoutingOptionArgs) (p2p_routing.Routing, error) { + return func(args ipfs_p2p.RoutingOptionArgs) (p2p_routing.Routing, error) { opts = append(opts, p2p_dht.Mode(mode), - p2p_dht.Datastore(dstore), - p2p_dht.Validator(validator), - p2p_dht.BootstrapPeers(bootstrapPeers...), + p2p_dht.Datastore(args.Datastore), + p2p_dht.Validator(args.Validator), + p2p_dht.BootstrapPeers(args.BootstrapPeers...), ) - return newDualDHT(ctx, host, net, opts...) + return newDualDHT(args.Ctx, args.Host, net, opts...) } } diff --git a/pkg/ipfsutil/mobile/node.go b/pkg/ipfsutil/mobile/node.go index 8930b001..e0f4db6f 100644 --- a/pkg/ipfsutil/mobile/node.go +++ b/pkg/ipfsutil/mobile/node.go @@ -68,7 +68,7 @@ func (im *IpfsMobile) Close() error { } func (im *IpfsMobile) ServeCoreHTTP(l net.Listener, opts ...ipfs_corehttp.ServeOption) error { - gatewayOpt := ipfs_corehttp.GatewayOption(false, ipfs_corehttp.WebUIPaths...) + gatewayOpt := ipfs_corehttp.GatewayOption(ipfs_corehttp.WebUIPaths...) opts = append(opts, ipfs_corehttp.WebUIOption, gatewayOpt, @@ -78,13 +78,13 @@ func (im *IpfsMobile) ServeCoreHTTP(l net.Listener, opts ...ipfs_corehttp.ServeO return ipfs_corehttp.Serve(im.IpfsNode, l, opts...) } -func (im *IpfsMobile) ServeGateway(l net.Listener, writable bool, opts ...ipfs_corehttp.ServeOption) error { +func (im *IpfsMobile) ServeGateway(l net.Listener, opts ...ipfs_corehttp.ServeOption) error { opts = append(opts, ipfs_corehttp.HostnameOption(), - ipfs_corehttp.GatewayOption(writable, "/ipfs", "/ipns"), + ipfs_corehttp.GatewayOption("/ipfs", "/ipns"), ipfs_corehttp.VersionOption(), ipfs_corehttp.CheckVersionOption(), - ipfs_corehttp.CommandsROOption(im.commandCtx), + ipfs_corehttp.CommandsOption(im.commandCtx), ) return ipfs_corehttp.Serve(im.IpfsNode, l, opts...) diff --git a/pkg/ipfsutil/mobile/routing.go b/pkg/ipfsutil/mobile/routing.go index 6cd51e3b..44e1bde1 100644 --- a/pkg/ipfsutil/mobile/routing.go +++ b/pkg/ipfsutil/mobile/routing.go @@ -1,14 +1,10 @@ package node import ( - "context" "fmt" - ds "github.com/ipfs/go-datastore" ipfs_p2p "github.com/ipfs/kubo/core/node/libp2p" - p2p_record "github.com/libp2p/go-libp2p-record" p2p_host "github.com/libp2p/go-libp2p/core/host" - p2p_peer "github.com/libp2p/go-libp2p/core/peer" p2p_routing "github.com/libp2p/go-libp2p/core/routing" ) @@ -19,20 +15,14 @@ type RoutingConfig struct { } func NewRoutingConfigOption(ro ipfs_p2p.RoutingOption, rc *RoutingConfig) ipfs_p2p.RoutingOption { - return func( - ctx context.Context, - host p2p_host.Host, - dstore ds.Batching, - validator p2p_record.Validator, - bootstrapPeers ...p2p_peer.AddrInfo, - ) (p2p_routing.Routing, error) { - routing, err := ro(ctx, host, dstore, validator, bootstrapPeers...) + return func(args ipfs_p2p.RoutingOptionArgs) (p2p_routing.Routing, error) { + routing, err := ro(args) if err != nil { return nil, err } if rc.ConfigFunc != nil { - if err := rc.ConfigFunc(host, routing); err != nil { + if err := rc.ConfigFunc(args.Host, routing); err != nil { return nil, fmt.Errorf("failed to config routing: %w", err) } } diff --git a/pkg/ipfsutil/pubsub_adaptater.go b/pkg/ipfsutil/pubsub_adaptater.go index d330e939..ede8511a 100644 --- a/pkg/ipfsutil/pubsub_adaptater.go +++ b/pkg/ipfsutil/pubsub_adaptater.go @@ -1,20 +1,20 @@ package ipfsutil import ( - ipfs_interface "github.com/ipfs/interface-go-ipfs-core" + coreiface "github.com/ipfs/kubo/core/coreiface" ) type pubsubCoreAPIAdapter struct { - ipfs_interface.PubSubAPI + coreiface.PubSubAPI - ipfs_interface.CoreAPI + coreiface.CoreAPI } -func (ps *pubsubCoreAPIAdapter) PubSub() ipfs_interface.PubSubAPI { +func (ps *pubsubCoreAPIAdapter) PubSub() coreiface.PubSubAPI { return ps.PubSubAPI } -func InjectPubSubAPI(api ipfs_interface.CoreAPI, ps ipfs_interface.PubSubAPI) ipfs_interface.CoreAPI { +func InjectPubSubAPI(api coreiface.CoreAPI, ps coreiface.PubSubAPI) coreiface.CoreAPI { return &pubsubCoreAPIAdapter{ PubSubAPI: ps, CoreAPI: api, @@ -22,16 +22,16 @@ func InjectPubSubAPI(api ipfs_interface.CoreAPI, ps ipfs_interface.PubSubAPI) ip } type pubsubExtendedCoreAPIAdapter struct { - ipfs_interface.PubSubAPI + coreiface.PubSubAPI ExtendedCoreAPI } -func (ps *pubsubExtendedCoreAPIAdapter) PubSub() ipfs_interface.PubSubAPI { +func (ps *pubsubExtendedCoreAPIAdapter) PubSub() coreiface.PubSubAPI { return ps.PubSubAPI } -func InjectPubSubCoreAPIExtendedAdapter(exapi ExtendedCoreAPI, ps ipfs_interface.PubSubAPI) ExtendedCoreAPI { +func InjectPubSubCoreAPIExtendedAdapter(exapi ExtendedCoreAPI, ps coreiface.PubSubAPI) ExtendedCoreAPI { return &pubsubExtendedCoreAPIAdapter{ PubSubAPI: ps, ExtendedCoreAPI: exapi, diff --git a/pkg/ipfsutil/pubsub_api.go b/pkg/ipfsutil/pubsub_api.go index 7542c78a..422bba86 100644 --- a/pkg/ipfsutil/pubsub_api.go +++ b/pkg/ipfsutil/pubsub_api.go @@ -4,8 +4,8 @@ import ( "context" "sync" - ipfs_interface "github.com/ipfs/interface-go-ipfs-core" - ipfs_iopts "github.com/ipfs/interface-go-ipfs-core/options" + coreiface "github.com/ipfs/kubo/core/coreiface" + coreiface_options "github.com/ipfs/kubo/core/coreiface/options" p2p_pubsub "github.com/libp2p/go-libp2p-pubsub" p2p_peer "github.com/libp2p/go-libp2p/core/peer" "go.uber.org/zap" @@ -21,7 +21,7 @@ type PubSubAPI struct { topics map[string]*p2p_pubsub.Topic } -func NewPubSubAPI(ctx context.Context, logger *zap.Logger, ps *p2p_pubsub.PubSub) ipfs_interface.PubSubAPI { +func NewPubSubAPI(ctx context.Context, logger *zap.Logger, ps *p2p_pubsub.PubSub) coreiface.PubSubAPI { return &PubSubAPI{ PubSub: ps, @@ -70,8 +70,8 @@ func (ps *PubSubAPI) Ls(ctx context.Context) ([]string, error) { } // Peers list peers we are currently pubsubbing with -func (ps *PubSubAPI) Peers(ctx context.Context, opts ...ipfs_iopts.PubSubPeersOption) ([]p2p_peer.ID, error) { - s, err := ipfs_iopts.PubSubPeersOptions(opts...) +func (ps *PubSubAPI) Peers(ctx context.Context, opts ...coreiface_options.PubSubPeersOption) ([]p2p_peer.ID, error) { + s, err := coreiface_options.PubSubPeersOptions(opts...) if err != nil { return nil, err } @@ -92,7 +92,7 @@ func (ps *PubSubAPI) Publish(ctx context.Context, topic string, msg []byte) erro } // Subscribe to messages on a given topic -func (ps *PubSubAPI) Subscribe(ctx context.Context, topic string, opts ...ipfs_iopts.PubSubSubscribeOption) (ipfs_interface.PubSubSubscription, error) { +func (ps *PubSubAPI) Subscribe(ctx context.Context, topic string, opts ...coreiface_options.PubSubSubscribeOption) (coreiface.PubSubSubscription, error) { t, err := ps.topicJoin(topic) if err != nil { return nil, err @@ -120,7 +120,7 @@ func (pss *pubsubSubscriptionAPI) Close() (_ error) { } // Next return the next incoming message -func (pss *pubsubSubscriptionAPI) Next(ctx context.Context) (ipfs_interface.PubSubMessage, error) { +func (pss *pubsubSubscriptionAPI) Next(ctx context.Context) (coreiface.PubSubMessage, error) { m, err := pss.Subscription.Next(ctx) if err != nil { return nil, err diff --git a/pkg/ipfsutil/repo.go b/pkg/ipfsutil/repo.go index 47d3e75e..aed495e0 100644 --- a/pkg/ipfsutil/repo.go +++ b/pkg/ipfsutil/repo.go @@ -141,7 +141,7 @@ func ResetRepoIdentity(c *ipfs_cfg.Config) error { } // Identity - c.Identity.PeerID = pid.Pretty() + c.Identity.PeerID = pid.String() c.Identity.PrivKey = base64.StdEncoding.EncodeToString(privkeyb) return nil diff --git a/pkg/ipfsutil/testing.go b/pkg/ipfsutil/testing.go index f8b9a78f..ee34cebd 100644 --- a/pkg/ipfsutil/testing.go +++ b/pkg/ipfsutil/testing.go @@ -20,7 +20,6 @@ import ( p2p_ci "github.com/libp2p/go-libp2p/core/crypto" host "github.com/libp2p/go-libp2p/core/host" p2pnetwork "github.com/libp2p/go-libp2p/core/network" - "github.com/libp2p/go-libp2p/core/peer" p2p_peer "github.com/libp2p/go-libp2p/core/peer" "github.com/libp2p/go-libp2p/core/peerstore" "github.com/libp2p/go-libp2p/core/protocol" @@ -92,7 +91,7 @@ func TestingRepo(t testing.TB, ctx context.Context, datastore ds.Datastore) ipfs c.Bootstrap = []string{} c.Addresses.Swarm = []string{"/ip6/::/tcp/0"} - c.Identity.PeerID = pid.Pretty() + c.Identity.PeerID = pid.String() c.Identity.PrivKey = base64.StdEncoding.EncodeToString(privkeyb) c.Swarm.ResourceMgr.Enabled = ipfs_cfg.False @@ -261,7 +260,7 @@ func (m *coreAPIMock) Close() { } func MockHostOption(mn p2p_mocknet.Mocknet) ipfs_p2p.HostOption { - return func(id peer.ID, ps peerstore.Peerstore, _ ...libp2p.Option) (host.Host, error) { + return func(id p2p_peer.ID, ps peerstore.Peerstore, _ ...libp2p.Option) (host.Host, error) { return mn.AddPeerWithPeerstore(id, ps) } } diff --git a/pkg/proximitytransport/listener.go b/pkg/proximitytransport/listener.go index 702d1ec5..cdfccfaa 100644 --- a/pkg/proximitytransport/listener.go +++ b/pkg/proximitytransport/listener.go @@ -48,7 +48,7 @@ func newListener(ctx context.Context, localMa ma.Multiaddr, t *proximityTranspor // Starts the native driver. // If it failed, don't return a error because no other transport // on the libp2p node will be created. - t.driver.Start(t.host.ID().Pretty()) + t.driver.Start(t.host.ID().String()) return listener } diff --git a/pkg/proximitytransport/transport.go b/pkg/proximitytransport/transport.go index 1eee408a..aa401400 100644 --- a/pkg/proximitytransport/transport.go +++ b/pkg/proximitytransport/transport.go @@ -107,7 +107,7 @@ func (t *proximityTransport) Dial(ctx context.Context, remoteMa ma.Multiaddr, re // remoteAddr is supposed to be equal to remotePID since with proximity transports: // multiaddr = // remoteAddr, err := remoteMa.ValueForProtocol(t.driver.ProtocolCode()) - if err != nil || remoteAddr != remotePID.Pretty() { + if err != nil || remoteAddr != remotePID.String() { return nil, errors.Wrap(err, "error: proximityTransport.Dial: wrong multiaddr") } @@ -141,7 +141,7 @@ func (t *proximityTransport) CanDial(remoteMa ma.Multiaddr) bool { func (t *proximityTransport) Listen(localMa ma.Multiaddr) (tpt.Listener, error) { // localAddr is supposed to be equal to the localPID // or to DefaultAddr since multiaddr == // - localPID := t.host.ID().Pretty() + localPID := t.host.ID().String() localAddr, err := localMa.ValueForProtocol(t.driver.ProtocolCode()) if err != nil || (localMa.String() != t.driver.DefaultAddr() && localAddr != localPID) { return nil, errors.Wrap(err, "error: proximityTransport.Listen: wrong multiaddr") diff --git a/service.go b/service.go index c0b40433..78c095fb 100644 --- a/service.go +++ b/service.go @@ -10,12 +10,11 @@ import ( "time" "unsafe" - pubsub_fix "github.com/berty/go-libp2p-pubsub" "github.com/dgraph-io/badger/v2/options" ds "github.com/ipfs/go-datastore" ds_sync "github.com/ipfs/go-datastore/sync" badger "github.com/ipfs/go-ds-badger2" - ipfs_interface "github.com/ipfs/interface-go-ipfs-core" + coreiface "github.com/ipfs/kubo/core/coreiface" pubsub "github.com/libp2p/go-libp2p-pubsub" "github.com/libp2p/go-libp2p/core/crypto" "github.com/libp2p/go-libp2p/core/event" @@ -53,7 +52,7 @@ type Service interface { Close() error Status() Status - IpfsCoreAPI() ipfs_interface.CoreAPI + IpfsCoreAPI() coreiface.CoreAPI } type service struct { @@ -233,9 +232,9 @@ func (opts *Opts) applyDefaults(ctx context.Context) error { if opts.PubSub == nil { var err error - popts := []pubsub_fix.Option{ - pubsub_fix.WithMessageSigning(true), - pubsub_fix.WithPeerExchange(true), + popts := []pubsub.Option{ + pubsub.WithMessageSigning(true), + pubsub.WithPeerExchange(true), } backoffstrat := backoff.NewExponentialBackoff( @@ -250,10 +249,10 @@ func (opts *Opts) applyDefaults(ctx context.Context) error { } adaptater := tinder.NewDiscoveryAdaptater(opts.Logger.Named("disc"), opts.TinderService) - popts = append(popts, pubsub_fix.WithDiscovery(adaptater, pubsub_fix.WithDiscoverConnector(backoffconnector))) + popts = append(popts, pubsub.WithDiscovery(adaptater, pubsub.WithDiscoverConnector(backoffconnector))) // pubsub.DiscoveryPollInterval = m.Node.Protocol.PollInterval - ps, err := pubsub_fix.NewGossipSub(ctx, opts.Host, popts...) + ps, err := pubsub.NewGossipSub(ctx, opts.Host, popts...) if err != nil { return fmt.Errorf("unable to init gossipsub: %w", err) } @@ -387,7 +386,7 @@ func NewService(opts Opts) (_ Service, err error) { return s, nil } -func (s *service) IpfsCoreAPI() ipfs_interface.CoreAPI { +func (s *service) IpfsCoreAPI() coreiface.CoreAPI { return s.ipfsCoreAPI } diff --git a/service_outofstoremessage.go b/service_outofstoremessage.go index 7a12809b..5e5ad052 100644 --- a/service_outofstoremessage.go +++ b/service_outofstoremessage.go @@ -8,7 +8,7 @@ import ( ds "github.com/ipfs/go-datastore" ds_sync "github.com/ipfs/go-datastore/sync" - ipfs_interface "github.com/ipfs/interface-go-ipfs-core" + coreiface "github.com/ipfs/kubo/core/coreiface" "go.uber.org/zap" "google.golang.org/grpc" @@ -131,7 +131,7 @@ func (s *oosmService) Status() (Status, error) { return Status{}, nil } -func (s *oosmService) IpfsCoreAPI() ipfs_interface.CoreAPI { +func (s *oosmService) IpfsCoreAPI() coreiface.CoreAPI { return nil } diff --git a/store_message.go b/store_message.go index a60baa85..d4b92366 100644 --- a/store_message.go +++ b/store_message.go @@ -8,7 +8,7 @@ import ( "sync" "github.com/ipfs/go-cid" - coreapi "github.com/ipfs/interface-go-ipfs-core" + coreiface "github.com/ipfs/kubo/core/coreiface" "github.com/libp2p/go-libp2p/core/crypto" "github.com/libp2p/go-libp2p/core/event" "github.com/libp2p/go-libp2p/p2p/host/eventbus" @@ -359,7 +359,7 @@ func messageStoreAddMessage(ctx context.Context, g *protocoltypes.Group, m *Mess func constructorFactoryGroupMessage(s *WeshOrbitDB, logger *zap.Logger) iface.StoreConstructor { metricsTracer := newMessageMetricsTracer(s.prometheusRegister) - return func(ipfs coreapi.CoreAPI, identity *identityprovider.Identity, addr address.Address, options *iface.NewStoreOptions) (iface.Store, error) { + return func(ipfs coreiface.CoreAPI, identity *identityprovider.Identity, addr address.Address, options *iface.NewStoreOptions) (iface.Store, error) { g, err := s.getGroupFromOptions(options) if err != nil { return nil, errcode.ErrInvalidInput.Wrap(err) diff --git a/store_metadata.go b/store_metadata.go index 8d15337c..354a30bb 100644 --- a/store_metadata.go +++ b/store_metadata.go @@ -9,7 +9,7 @@ import ( "strings" "github.com/gogo/protobuf/proto" - coreapi "github.com/ipfs/interface-go-ipfs-core" + coreiface "github.com/ipfs/kubo/core/coreiface" "github.com/libp2p/go-libp2p/core/crypto" "github.com/libp2p/go-libp2p/core/event" "github.com/libp2p/go-libp2p/p2p/host/eventbus" @@ -892,7 +892,7 @@ type EventMetadataReceived struct { } func constructorFactoryGroupMetadata(s *WeshOrbitDB, logger *zap.Logger) iface.StoreConstructor { - return func(ipfs coreapi.CoreAPI, identity *identityprovider.Identity, addr address.Address, options *iface.NewStoreOptions) (iface.Store, error) { + return func(ipfs coreiface.CoreAPI, identity *identityprovider.Identity, addr address.Address, options *iface.NewStoreOptions) (iface.Store, error) { g, err := s.getGroupFromOptions(options) if err != nil { return nil, errcode.ErrInvalidInput.Wrap(err) diff --git a/tool/bench-cellular/client.go b/tool/bench-cellular/client.go index 62637fd5..0257b11a 100644 --- a/tool/bench-cellular/client.go +++ b/tool/bench-cellular/client.go @@ -189,7 +189,7 @@ func runClient(ctx context.Context, gOpts *globalOpts, cOpts *clientOpts) error return fmt.Errorf("client host creation failed: %v", err) } - log.Println("Local peerID:", h.ID().Pretty()) + log.Println("Local peerID:", h.ID().String()) peerid, err := addDestToPeerstore(h, cOpts.dest) if err != nil { diff --git a/tool/bench-cellular/server.go b/tool/bench-cellular/server.go index 10961b3b..4d2f32c4 100644 --- a/tool/bench-cellular/server.go +++ b/tool/bench-cellular/server.go @@ -192,7 +192,7 @@ func printHint(h host.Host, gOpts *globalOpts, sOpts *serverOpts) { } if serverAddr != nil { - hostAddr, err := ma.NewMultiaddr(fmt.Sprintf("/ipfs/%s", h.ID().Pretty())) + hostAddr, err := ma.NewMultiaddr(fmt.Sprintf("/ipfs/%s", h.ID().String())) if err != nil { panic(err) } @@ -222,7 +222,7 @@ func runServer(ctx context.Context, gOpts *globalOpts, sOpts *serverOpts) error h.SetStreamHandler(benchDownloadPID, func(s network.Stream) { defer s.Close() - remotePeerID := s.Conn().RemotePeer().Pretty() + remotePeerID := s.Conn().RemotePeer().String() log.Printf("New download stream from: %s\n", remotePeerID) _, err := s.Write([]byte("\n")) @@ -256,7 +256,7 @@ func runServer(ctx context.Context, gOpts *globalOpts, sOpts *serverOpts) error h.SetStreamHandler(benchUploadPID, func(s network.Stream) { defer s.Close() - remotePeerID := s.Conn().RemotePeer().Pretty() + remotePeerID := s.Conn().RemotePeer().String() log.Printf("New upload stream from: %s\n", remotePeerID) _, err := s.Write([]byte("\n")) From 4aa7314e05a89e97358102149dd30eae4fa67234 Mon Sep 17 00:00:00 2001 From: D4ryl00 Date: Fri, 26 Jul 2024 16:40:15 +0200 Subject: [PATCH 03/20] BREAKING CHANGE: use protoc plugin + remove custom names Signed-off-by: D4ryl00 --- Makefile | 4 +- api/go-internal/handshake/handshake.proto | 6 - api/go-internal/tinder/records.proto | 7 - api/protocol/buf.lock | 12 +- api/protocol/buf.yaml | 10 +- api/protocol/errcode/errcode.proto | 7 - .../outofstoremessage.proto | 6 - api/protocol/protocoltypes.proto | 251 +- .../replicationtypes/bertyreplication.proto | 19 +- .../bertyverifiablecreds.proto | 10 +- buf.gen.tag.yaml | 5 + buf.gen.yaml | 21 +- gen.sum | 2 +- go.mod | 8 +- go.sum | 74 +- internal/handshake/handshake.pb.go | 1298 +- internal/tools/tools.go | 8 +- pkg/errcode/errcode.pb.go | 1227 +- .../outofstoremessage.pb.go | 103 +- pkg/protocoltypes/protocoltypes.pb.go | 46468 ++++------------ pkg/replicationtypes/bertyreplication.pb.go | 2947 +- pkg/tinder/records.pb.go | 669 +- .../bertyverifiablecreds.pb.go | 1488 +- tool/docker-protoc/Dockerfile | 6 +- tool/docker-protoc/Makefile | 2 +- 25 files changed, 13118 insertions(+), 41540 deletions(-) create mode 100644 buf.gen.tag.yaml diff --git a/Makefile b/Makefile index 7045c0d9..4247816e 100644 --- a/Makefile +++ b/Makefile @@ -154,7 +154,7 @@ $(gen_sum): $(gen_src) --workdir="/go/src/berty.tech/weshnet" \ --entrypoint="sh" \ --rm \ - bertytech/buf:2 \ + bertytech/buf:3 \ -xec 'make generate_local'; \ $(MAKE) tidy \ ) @@ -166,6 +166,8 @@ generate_local: $(call check-program, shasum buf) buf generate api/go-internal; buf generate api/protocol; + buf generate --template buf.gen.tag.yaml api/go-internal; + buf generate --template buf.gen.tag.yaml api/protocol; $(MAKE) go.fmt shasum $(gen_src) | sort -k 2 > $(gen_sum).tmp mv $(gen_sum).tmp $(gen_sum) diff --git a/api/go-internal/handshake/handshake.proto b/api/go-internal/handshake/handshake.proto index bd979b6b..72b7e1cb 100644 --- a/api/go-internal/handshake/handshake.proto +++ b/api/go-internal/handshake/handshake.proto @@ -4,12 +4,6 @@ package handshake; option go_package = "berty.tech/weshnet/internal/handshake"; -import "gogoproto/gogo.proto"; - -option (gogoproto.marshaler_all) = true; -option (gogoproto.unmarshaler_all) = true; -option (gogoproto.sizer_all) = true; - message BoxEnvelope { bytes box = 1; } diff --git a/api/go-internal/tinder/records.proto b/api/go-internal/tinder/records.proto index 413bf948..dae670b0 100644 --- a/api/go-internal/tinder/records.proto +++ b/api/go-internal/tinder/records.proto @@ -2,15 +2,8 @@ syntax = "proto3"; package tinder; -import "gogoproto/gogo.proto"; - option go_package = "berty.tech/weshnet/pkg/tinder"; -option (gogoproto.goproto_enum_prefix_all) = false; -option (gogoproto.marshaler_all) = true; -option (gogoproto.unmarshaler_all) = true; -option (gogoproto.sizer_all) = true; - message Records { repeated Record records = 1; } diff --git a/api/protocol/buf.lock b/api/protocol/buf.lock index 6b033f6f..84040c46 100644 --- a/api/protocol/buf.lock +++ b/api/protocol/buf.lock @@ -2,6 +2,12 @@ version: v1 deps: - remote: buf.build - owner: gogo - repository: protobuf - commit: 5461a3dfa9d941da82028ab185dc2a0e + owner: googleapis + repository: googleapis + commit: 62f35d8aed1149c291d606d958a7ce32 + digest: shake256:c5f5c2401cf70b7c9719834954f31000a978397fdfebda861419bb4ab90fa8efae92710fddab0820533908a1e25ed692a8e119432b7b260c895087a4975b32f3 + - remote: buf.build + owner: srikrsna + repository: protoc-gen-gotag + commit: 7a85d3ad2e7642c198480e92bf730c14 + digest: shake256:059f136681cd47abe2d6e83d20b9594071c481572d16cebfafbc81ba3d3e7924aef6974f99da53d67a01d033e30b7bf57985a206b4e856fc82508545de84a70c diff --git a/api/protocol/buf.yaml b/api/protocol/buf.yaml index c6c98eb6..ed0ea075 100644 --- a/api/protocol/buf.yaml +++ b/api/protocol/buf.yaml @@ -1,10 +1,10 @@ version: v1 name: buf.build/berty/weshnet deps: - - buf.build/gogo/protobuf + - buf.build/srikrsna/protoc-gen-gotag breaking: - use: - - FILE + use: + - FILE lint: - use: - - DEFAULT + use: + - DEFAULT diff --git a/api/protocol/errcode/errcode.proto b/api/protocol/errcode/errcode.proto index 67759a87..ea03294d 100644 --- a/api/protocol/errcode/errcode.proto +++ b/api/protocol/errcode/errcode.proto @@ -2,15 +2,8 @@ syntax = "proto3"; package weshnet.errcode; -import "gogoproto/gogo.proto"; - option go_package = "berty.tech/weshnet/pkg/errcode"; -option (gogoproto.goproto_enum_prefix_all) = false; -option (gogoproto.marshaler_all) = true; -option (gogoproto.unmarshaler_all) = true; -option (gogoproto.sizer_all) = true; - enum ErrCode { //---------------- // Special errors diff --git a/api/protocol/outofstoremessagetypes/outofstoremessage.proto b/api/protocol/outofstoremessagetypes/outofstoremessage.proto index 643d40d8..94ba073e 100644 --- a/api/protocol/outofstoremessagetypes/outofstoremessage.proto +++ b/api/protocol/outofstoremessagetypes/outofstoremessage.proto @@ -2,16 +2,10 @@ syntax = "proto3"; package weshnet.outofstoremessage.v1; -import "gogoproto/gogo.proto"; import "protocoltypes.proto"; option go_package = "berty.tech/weshnet/pkg/outofstoremessagetypes"; -option (gogoproto.goproto_enum_prefix_all) = false; -option (gogoproto.marshaler_all) = true; -option (gogoproto.unmarshaler_all) = true; -option (gogoproto.sizer_all) = true; - // OutOfStoreMessageService is the service used to open out-of-store messages (e.g. push notifications) // It is used to open messages with a lightweight protocol service for mobile backgroup processes. service OutOfStoreMessageService { diff --git a/api/protocol/protocoltypes.proto b/api/protocol/protocoltypes.proto index 5321ff1e..7fdc21ea 100644 --- a/api/protocol/protocoltypes.proto +++ b/api/protocol/protocoltypes.proto @@ -2,15 +2,8 @@ syntax = "proto3"; package weshnet.protocol.v1; -import "gogoproto/gogo.proto"; - option go_package = "berty.tech/weshnet/pkg/protocoltypes"; -option (gogoproto.goproto_enum_prefix_all) = false; -option (gogoproto.marshaler_all) = true; -option (gogoproto.unmarshaler_all) = true; -option (gogoproto.sizer_all) = true; - // ProtocolService is the top-level API to manage the Wesh protocol service. // Each active Wesh protocol service is considered as a Wesh device and is associated with a Wesh user. service ProtocolService { @@ -42,7 +35,7 @@ service ProtocolService { rpc ContactRequestDiscard (ContactRequestDiscard.Request) returns (ContactRequestDiscard.Reply); // ShareContact uses ContactRequestReference to get the contact information for the current account and - // returns the Protobuf encoding of a shareable contact which you can further encode and share. If needed, this + // returns the Protobuf encoding of a shareable contact which you can further encode and share. If needed, this // will reset the contact request reference and enable contact requests. To decode the result, see DecodeContact. rpc ShareContact (ShareContact.Request) returns (ShareContact.Reply); @@ -278,10 +271,10 @@ message GroupHeadsExport { bytes sign_pub = 2; // metadata_heads_cids are the heads of the metadata store that should be restored from an export - repeated bytes metadata_heads_cids = 3 [(gogoproto.customname) = "MetadataHeadsCIDs"]; + repeated bytes metadata_heads_cids = 3; // messages_heads_cids are the heads of the metadata store that should be restored from an export - repeated bytes messages_heads_cids = 4 [(gogoproto.customname) = "MessagesHeadsCIDs"]; + repeated bytes messages_heads_cids = 4; // link_key bytes link_key = 5; @@ -310,7 +303,7 @@ message GroupEnvelope { // event is encrypted using a symmetric key shared among group members bytes event = 2; - reserved 3; // repeated bytes encrypted_attachment_cids = 3 [(gogoproto.customname) = "EncryptedAttachmentCIDs"]; + reserved 3; // repeated bytes encrypted_attachment_cids = 3 ; } // MessageHeaders is used in MessageEnvelope and only readable by invited group members @@ -319,7 +312,7 @@ message MessageHeaders { uint64 counter = 1; // device_pk is the public key of the device sending the message - bytes device_pk = 2 [(gogoproto.customname) = "DevicePK"]; + bytes device_pk = 2; // sig is the signature of the encrypted message using the device's private key bytes sig = 3; @@ -354,7 +347,7 @@ message MessageEnvelope { bytes nonce = 3; // encrypted_attachment_cids is a list of attachment CIDs encrypted specifically for replication services - reserved 4; // repeated bytes encrypted_attachment_cids = 4 [(gogoproto.customname) = "EncryptedAttachmentCIDs"]; + reserved 4; // repeated bytes encrypted_attachment_cids = 4; } // *************************************************************************** @@ -364,22 +357,22 @@ message MessageEnvelope { // EventContext adds context (its id, its parents and its attachments) to an event message EventContext { // id is the CID of the underlying OrbitDB event - bytes id = 1 [(gogoproto.customname) = "ID"]; + bytes id = 1; // id are the the CIDs of the underlying parents of the OrbitDB event - repeated bytes parent_ids = 2 [(gogoproto.customname) = "ParentIDs"]; + repeated bytes parent_ids = 2; // group_pk receiving the event - bytes group_pk = 3[(gogoproto.customname) = "GroupPK"]; + bytes group_pk = 3; // attachment_cids is a list of attachment that can be retrieved - reserved 4; // repeated bytes attachment_cids = 4 [(gogoproto.customname) = "AttachmentCIDs"]; + reserved 4; // repeated bytes attachment_cids = 4; } // GroupMetadataPayloadSent is an app defined message, accessible to future group members message GroupMetadataPayloadSent { // device_pk is the device sending the event, signs the message - bytes device_pk = 1 [(gogoproto.customname) = "DevicePK"]; + bytes device_pk = 1; // message is the payload bytes message = 2; @@ -388,20 +381,20 @@ message GroupMetadataPayloadSent { // ContactAliasKeyAdded is an event type where ones shares their alias public key message ContactAliasKeyAdded { // device_pk is the device sending the event, signs the message - bytes device_pk = 1 [(gogoproto.customname) = "DevicePK"]; + bytes device_pk = 1; // alias_pk is the alias key which will be used to verify a contact identity - bytes alias_pk = 2 [(gogoproto.customname) = "AliasPK"]; + bytes alias_pk = 2; } // GroupMemberDeviceAdded is an event which indicates to a group a new device (and eventually a new member) is joining it // When added on AccountGroup, this event should be followed by appropriate GroupMemberDeviceAdded and GroupDeviceChainKeyAdded events message GroupMemberDeviceAdded { // member_pk is the member sending the event - bytes member_pk = 1 [(gogoproto.customname) = "MemberPK"]; + bytes member_pk = 1; // device_pk is the device sending the event, signs the message - bytes device_pk = 2 [(gogoproto.customname) = "DevicePK"]; + bytes device_pk = 2; // member_sig is used to prove the ownership of the member pk bytes member_sig = 3; // TODO: signature of what ??? ensure it can't be replayed @@ -419,10 +412,10 @@ message DeviceChainKey { // GroupDeviceChainKeyAdded is an event which indicates to a group member a device chain key message GroupDeviceChainKeyAdded { // device_pk is the device sending the event, signs the message - bytes device_pk = 1 [(gogoproto.customname) = "DevicePK"]; + bytes device_pk = 1; // dest_member_pk is the member who should receive the secret - bytes dest_member_pk = 2 [(gogoproto.customname) = "DestMemberPK"]; + bytes dest_member_pk = 2; // payload is the serialization of Payload encrypted for the specified member bytes payload = 3; @@ -431,7 +424,7 @@ message GroupDeviceChainKeyAdded { // MultiMemberGroupAliasResolverAdded indicates that a group member want to disclose their presence in the group to their contacts message MultiMemberGroupAliasResolverAdded { // device_pk is the device sending the event, signs the message - bytes device_pk = 1 [(gogoproto.customname) = "DevicePK"]; + bytes device_pk = 1; // alias_resolver allows contact of an account to resolve the real identity behind an alias (Multi-Member Group Member) // Generated by both contacts and account independently using: hmac(aliasPK, GroupID) @@ -445,22 +438,22 @@ message MultiMemberGroupAliasResolverAdded { // MultiMemberGroupAdminRoleGranted indicates that a group admin allows another group member to act as an admin message MultiMemberGroupAdminRoleGranted { // device_pk is the device sending the event, signs the message, must be the device of an admin of the group - bytes device_pk = 1 [(gogoproto.customname) = "DevicePK"]; + bytes device_pk = 1; // grantee_member_pk is the member public key of the member granted of the admin role - bytes grantee_member_pk = 2 [(gogoproto.customname) = "GranteeMemberPK"]; + bytes grantee_member_pk = 2; } // MultiMemberGroupInitialMemberAnnounced indicates that a member is the group creator, this event is signed using the group ID private key message MultiMemberGroupInitialMemberAnnounced { // member_pk is the public key of the member who is the group creator - bytes member_pk = 1 [(gogoproto.customname) = "MemberPK"]; + bytes member_pk = 1; } // GroupAddAdditionalRendezvousSeed indicates that an additional rendezvous point should be used for data synchronization message GroupAddAdditionalRendezvousSeed { // device_pk is the device sending the event, signs the message, must be the device of an admin of the group - bytes device_pk = 1 [(gogoproto.customname) = "DevicePK"]; + bytes device_pk = 1; // seed is the additional rendezvous point seed which should be used bytes seed = 2; @@ -469,7 +462,7 @@ message GroupAddAdditionalRendezvousSeed { // GroupRemoveAdditionalRendezvousSeed indicates that a previously added rendezvous point should be removed message GroupRemoveAdditionalRendezvousSeed { // device_pk is the device sending the event, signs the message, must be the device of an admin of the group - bytes device_pk = 1 [(gogoproto.customname) = "DevicePK"]; + bytes device_pk = 1; // seed is the additional rendezvous point seed which should be removed bytes seed = 2; @@ -478,7 +471,7 @@ message GroupRemoveAdditionalRendezvousSeed { // AccountGroupJoined indicates that the account is now part of a new group message AccountGroupJoined { // device_pk is the device sending the event, signs the message - bytes device_pk = 1 [(gogoproto.customname) = "DevicePK"]; + bytes device_pk = 1; // group describe the joined group Group group = 2; @@ -487,28 +480,28 @@ message AccountGroupJoined { // AccountGroupLeft indicates that the account has left a group message AccountGroupLeft { // device_pk is the device sending the event, signs the message - bytes device_pk = 1 [(gogoproto.customname) = "DevicePK"]; + bytes device_pk = 1; // group_pk references the group left - bytes group_pk = 2 [(gogoproto.customname) = "GroupPK"]; + bytes group_pk = 2; } // AccountContactRequestDisabled indicates that the account should not be advertised on a public rendezvous point message AccountContactRequestDisabled { // device_pk is the device sending the event, signs the message - bytes device_pk = 1 [(gogoproto.customname) = "DevicePK"]; + bytes device_pk = 1; } // AccountContactRequestEnabled indicates that the account should be advertised on a public rendezvous point message AccountContactRequestEnabled { // device_pk is the device sending the event, signs the message - bytes device_pk = 1 [(gogoproto.customname) = "DevicePK"]; + bytes device_pk = 1; } // AccountContactRequestReferenceReset indicates that the account should be advertised on different public rendezvous points message AccountContactRequestReferenceReset { // device_pk is the device sending the event, signs the message - bytes device_pk = 1 [(gogoproto.customname) = "DevicePK"]; + bytes device_pk = 1; // public_rendezvous_seed is the new rendezvous point seed bytes public_rendezvous_seed = 2; @@ -520,10 +513,10 @@ message AccountContactRequestReferenceReset { // AccountContactRequestOutgoingEnqueued indicates that the account will attempt to send a contact request when a matching peer is discovered message AccountContactRequestOutgoingEnqueued { // device_pk is the device sending the event, signs the message - bytes device_pk = 1 [(gogoproto.customname) = "DevicePK"]; + bytes device_pk = 1; // group_pk is the 1to1 group with the requested user - bytes group_pk = 2 [(gogoproto.customname) = "GroupPK"]; + bytes group_pk = 2; // contact is a message describing how to connect to the other account ShareableContact contact = 3; @@ -535,19 +528,19 @@ message AccountContactRequestOutgoingEnqueued { // AccountContactRequestOutgoingSent indicates that the account has sent a contact request message AccountContactRequestOutgoingSent { // device_pk is the device sending the account event, signs the message - bytes device_pk = 1 [(gogoproto.customname) = "DevicePK"]; + bytes device_pk = 1; // contact_pk is the contacted account - bytes contact_pk = 2 [(gogoproto.customname) = "ContactPK"]; + bytes contact_pk = 2; } // AccountContactRequestIncomingReceived indicates that the account has received a new contact request message AccountContactRequestIncomingReceived { // device_pk is the device sending the account event (which received the contact request), signs the message - bytes device_pk = 1 [(gogoproto.customname) = "DevicePK"]; + bytes device_pk = 1; // contact_pk is the account sending the request - bytes contact_pk = 2 [(gogoproto.customname) = "ContactPK"]; + bytes contact_pk = 2; // TODO: is this necessary? // contact_rendezvous_seed is the rendezvous seed of the contact sending the request @@ -561,10 +554,10 @@ message AccountContactRequestIncomingReceived { // AccountContactRequestIncomingDiscarded indicates that a contact request has been refused message AccountContactRequestIncomingDiscarded { // device_pk is the device sending the event, signs the message - bytes device_pk = 1 [(gogoproto.customname) = "DevicePK"]; + bytes device_pk = 1; // contact_pk is the contact whom request is refused - bytes contact_pk = 2 [(gogoproto.customname) = "ContactPK"]; + bytes contact_pk = 2; } // This event should be followed by an AccountGroupJoined event @@ -572,39 +565,39 @@ message AccountContactRequestIncomingDiscarded { // AccountContactRequestIncomingAccepted indicates that a contact request has been accepted message AccountContactRequestIncomingAccepted { // device_pk is the device sending the event, signs the message - bytes device_pk = 1 [(gogoproto.customname) = "DevicePK"]; + bytes device_pk = 1; // contact_pk is the contact whom request is accepted - bytes contact_pk = 2 [(gogoproto.customname) = "ContactPK"]; + bytes contact_pk = 2; // group_pk is the 1to1 group with the requester user - bytes group_pk = 3 [(gogoproto.customname) = "GroupPK"]; + bytes group_pk = 3; } // AccountContactBlocked indicates that a contact is blocked message AccountContactBlocked { // device_pk is the device sending the event, signs the message - bytes device_pk = 1 [(gogoproto.customname) = "DevicePK"]; + bytes device_pk = 1; // contact_pk is the contact blocked - bytes contact_pk = 2 [(gogoproto.customname) = "ContactPK"]; + bytes contact_pk = 2; } // AccountContactUnblocked indicates that a contact is unblocked message AccountContactUnblocked { // device_pk is the device sending the event, signs the message - bytes device_pk = 1 [(gogoproto.customname) = "DevicePK"]; + bytes device_pk = 1; // contact_pk is the contact unblocked - bytes contact_pk = 2 [(gogoproto.customname) = "ContactPK"]; + bytes contact_pk = 2; } message GroupReplicating { // device_pk is the device sending the event, signs the message - bytes device_pk = 1 [(gogoproto.customname) = "DevicePK"]; + bytes device_pk = 1; // authentication_url indicates which server has been used for authentication - string authentication_url = 2 [(gogoproto.customname) = "AuthenticationURL"]; + string authentication_url = 2; // replication_server indicates which server will be used for replication string replication_server = 3; @@ -631,16 +624,16 @@ message ServiceGetConfiguration { message Request {} message Reply { // account_pk is the public key of the current account - bytes account_pk = 1 [(gogoproto.customname) = "AccountPK"]; + bytes account_pk = 1; // device_pk is the public key of the current device - bytes device_pk = 2 [(gogoproto.customname) = "DevicePK"]; + bytes device_pk = 2; // account_group_pk is the public key of the account group - bytes account_group_pk = 3 [(gogoproto.customname) = "AccountGroupPK"]; + bytes account_group_pk = 3; // peer_id is the peer ID of the current IPFS node - string peer_id = 4 [(gogoproto.customname) = "PeerID"]; + string peer_id = 4; // listeners is the list of swarm listening addresses of the current IPFS node repeated string listeners = 5; @@ -697,7 +690,7 @@ message ContactRequestSend { message ContactRequestAccept { message Request { // contact_pk is the identifier of the contact to accept the request from - bytes contact_pk = 1 [(gogoproto.customname) = "ContactPK"]; + bytes contact_pk = 1; } message Reply {} @@ -706,7 +699,7 @@ message ContactRequestAccept { message ContactRequestDiscard { message Request { // contact_pk is the identifier of the contact to ignore the request from - bytes contact_pk = 1 [(gogoproto.customname) = "ContactPK"]; + bytes contact_pk = 1; } message Reply {} @@ -734,7 +727,7 @@ message DecodeContact { message ContactBlock { message Request { // contact_pk is the identifier of the contact to block - bytes contact_pk = 1 [(gogoproto.customname) = "ContactPK"]; + bytes contact_pk = 1; } message Reply {} @@ -743,7 +736,7 @@ message ContactBlock { message ContactUnblock { message Request { // contact_pk is the identifier of the contact to unblock - bytes contact_pk = 1 [(gogoproto.customname) = "ContactPK"]; + bytes contact_pk = 1; } message Reply {} @@ -752,7 +745,7 @@ message ContactUnblock { message ContactAliasKeySend { message Request { // contact_pk is the identifier of the contact to send the alias public key to - bytes group_pk = 1 [(gogoproto.customname) = "GroupPK"]; + bytes group_pk = 1; } message Reply {} @@ -762,7 +755,7 @@ message MultiMemberGroupCreate { message Request {} message Reply { // group_pk is the identifier of the newly created group - bytes group_pk = 1 [(gogoproto.customname) = "GroupPK"]; + bytes group_pk = 1; } } @@ -777,7 +770,7 @@ message MultiMemberGroupJoin { message MultiMemberGroupLeave { message Request { - bytes group_pk = 1 [(gogoproto.customname) = "GroupPK"]; + bytes group_pk = 1; } message Reply {} @@ -786,7 +779,7 @@ message MultiMemberGroupLeave { message MultiMemberGroupAliasResolverDisclose { message Request { // group_pk is the identifier of the group - bytes group_pk = 1 [(gogoproto.customname) = "GroupPK"]; + bytes group_pk = 1; } message Reply {} @@ -795,10 +788,10 @@ message MultiMemberGroupAliasResolverDisclose { message MultiMemberGroupAdminRoleGrant { message Request { // group_pk is the identifier of the group - bytes group_pk = 1 [(gogoproto.customname) = "GroupPK"]; + bytes group_pk = 1; // member_pk is the identifier of the member which will be granted the admin role - bytes member_pk = 2 [(gogoproto.customname) = "MemberPK"]; + bytes member_pk = 2; } message Reply {} @@ -807,7 +800,7 @@ message MultiMemberGroupAdminRoleGrant { message MultiMemberGroupInvitationCreate { message Request { // group_pk is the identifier of the group - bytes group_pk = 1 [(gogoproto.customname) = "GroupPK"]; + bytes group_pk = 1; } message Reply { @@ -819,34 +812,34 @@ message MultiMemberGroupInvitationCreate { message AppMetadataSend { message Request { // group_pk is the identifier of the group - bytes group_pk = 1 [(gogoproto.customname) = "GroupPK"]; + bytes group_pk = 1; // payload is the payload to send bytes payload = 2; // attachment_cids is a list of attachment cids - reserved 3; // repeated bytes attachment_cids = 3 [(gogoproto.customname) = "AttachmentCIDs"]; + reserved 3; // repeated bytes attachment_cids = 3; } message Reply { - bytes cid = 1 [(gogoproto.customname) = "CID"]; + bytes cid = 1; } } message AppMessageSend { message Request { // group_pk is the identifier of the group - bytes group_pk = 1 [(gogoproto.customname) = "GroupPK"]; + bytes group_pk = 1; // payload is the payload to send bytes payload = 2; // attachment_cids is a list of attachment cids - reserved 3; // repeated bytes attachment_cids = 3 [(gogoproto.customname) = "AttachmentCIDs"]; + reserved 3; // repeated bytes attachment_cids = 3; } message Reply { - bytes cid = 1 [(gogoproto.customname) = "CID"]; + bytes cid = 1; } } @@ -875,11 +868,11 @@ message GroupMessageEvent { message GroupMetadataList { message Request { // group_pk is the identifier of the group - bytes group_pk = 1 [(gogoproto.customname) = "GroupPK"]; + bytes group_pk = 1; // since is the lower ID bound used to filter events // if not set, will return events since the beginning - bytes since_id = 2 [(gogoproto.customname) = "SinceID"]; + bytes since_id = 2; // since_now will list only new event to come // since_id must not be set @@ -887,7 +880,7 @@ message GroupMetadataList { // until is the upper ID bound used to filter events // if not set, will subscribe to new events to come - bytes until_id = 4 [(gogoproto.customname) = "UntilID"]; + bytes until_id = 4; // until_now will not list new event to come // until_id must not be set @@ -902,11 +895,11 @@ message GroupMetadataList { message GroupMessageList { message Request { // group_pk is the identifier of the group - bytes group_pk = 1 [(gogoproto.customname) = "GroupPK"]; + bytes group_pk = 1; // since is the lower ID bound used to filter events // if not set, will return events since the beginning - bytes since_id = 2 [(gogoproto.customname) = "SinceID"]; + bytes since_id = 2; // since_now will list only new event to come // since_id must not be set @@ -914,7 +907,7 @@ message GroupMessageList { // until is the upper ID bound used to filter events // if not set, will subscribe to new events to come - bytes until_id = 4 [(gogoproto.customname) = "UntilID"]; + bytes until_id = 4; // until_now will not list new event to come // until_id must not be set @@ -930,10 +923,10 @@ message GroupMessageList { message GroupInfo { message Request { // group_pk is the identifier of the group - bytes group_pk = 1 [(gogoproto.customname) = "GroupPK"]; + bytes group_pk = 1; // contact_pk is the identifier of the contact - bytes contact_pk = 2 [(gogoproto.customname) = "ContactPK"]; + bytes contact_pk = 2; } message Reply { @@ -941,17 +934,17 @@ message GroupInfo { Group group = 1; // member_pk is the identifier of the current member in the group - bytes member_pk = 2 [(gogoproto.customname) = "MemberPK"]; + bytes member_pk = 2; // device_pk is the identifier of the current device in the group - bytes device_pk = 3 [(gogoproto.customname) = "DevicePK"]; + bytes device_pk = 3; } } message ActivateGroup { message Request { // group_pk is the identifier of the group - bytes group_pk = 1 [(gogoproto.customname) = "GroupPK"]; + bytes group_pk = 1; // local_only will open the group without enabling network interactions // with other members @@ -965,7 +958,7 @@ message ActivateGroup { message DeactivateGroup { message Request { // group_pk is the identifier of the group - bytes group_pk = 1 [(gogoproto.customname) = "GroupPK"]; + bytes group_pk = 1; } message Reply { @@ -988,23 +981,23 @@ message GroupDeviceStatus { } message Request { - bytes group_pk = 1 [(gogoproto.customname) = "GroupPK"]; + bytes group_pk = 1; } message Reply { message PeerConnected { - string peer_id = 1 [(gogoproto.customname) = "PeerID"]; - bytes device_pk = 2 [(gogoproto.customname) = "DevicePK"]; + string peer_id = 1; + bytes device_pk = 2; repeated Transport transports = 3; repeated string maddrs = 4; } message PeerReconnecting { - string peer_id = 1 [(gogoproto.customname) = "PeerID"]; + string peer_id = 1; } message PeerDisconnected { - string peer_id = 1 [(gogoproto.customname) = "PeerID"]; + string peer_id = 1; } Type type = 1; @@ -1018,37 +1011,37 @@ message DebugListGroups { message Reply { // group_pk is the public key of the group - bytes group_pk = 1 [(gogoproto.customname) = "GroupPK"]; + bytes group_pk = 1; // group_type is the type of the group - GroupType group_type = 2 [(gogoproto.customname) = "GroupType"]; + GroupType group_type = 2; // contact_pk is the contact public key if appropriate - bytes contact_pk = 3 [(gogoproto.customname) = "ContactPK"]; + bytes contact_pk = 3; } } message DebugInspectGroupStore { message Request { // group_pk is the identifier of the group - bytes group_pk = 1 [(gogoproto.customname) = "GroupPK"]; + bytes group_pk = 1; // log_type is the log to inspect - DebugInspectGroupLogType log_type = 2 [(gogoproto.customname) = "LogType"]; + DebugInspectGroupLogType log_type = 2; } message Reply { // cid is the CID of the IPFS log entry - bytes cid = 1 [(gogoproto.customname) = "CID"]; + bytes cid = 1; // parent_cids is the list of the parent entries - repeated bytes parent_cids = 2 [(gogoproto.customname) = "ParentCIDs"]; + repeated bytes parent_cids = 2 ; // event_type metadata event type if subscribed to metadata events EventType metadata_event_type = 3; // device_pk is the public key of the device signing the entry - bytes device_pk = 4 [(gogoproto.customname) = "DevicePK"]; + bytes device_pk = 4; // payload is the un encrypted entry payload if available bytes payload = 6; @@ -1058,12 +1051,12 @@ message DebugInspectGroupStore { message DebugGroup { message Request { // group_pk is the identifier of the group - bytes group_pk = 1 [(gogoproto.customname) = "GroupPK"]; + bytes group_pk = 1; } message Reply { // peer_ids is the list of peer ids connected to the same group - repeated string peer_ids = 1 [(gogoproto.customname) = "PeerIDs"]; + repeated string peer_ids = 1 ; } } @@ -1086,7 +1079,7 @@ enum ContactState { message ShareableContact { // pk is the account to send a contact request to - bytes pk = 1 [(gogoproto.customname) = "PK"]; + bytes pk = 1; // public_rendezvous_seed is the rendezvous seed used by the account to send a contact request to bytes public_rendezvous_seed = 2; @@ -1102,26 +1095,26 @@ message ServiceTokenSupportedService { message ServiceToken { string token = 1; - string authentication_url = 2 [(gogoproto.customname) = "AuthenticationURL"]; + string authentication_url = 2 ; repeated ServiceTokenSupportedService supported_services = 3; int64 expiration = 4; } message CredentialVerificationServiceInitFlow { message Request { - string service_url = 1 [(gogoproto.customname) = "ServiceURL"]; + string service_url = 1; bytes public_key = 2; string link = 3; } message Reply { - string url = 1 [(gogoproto.customname) = "URL"]; - bool secure_url = 2 [(gogoproto.customname) = "SecureURL"]; + string url = 1; + bool secure_url = 2; } } message CredentialVerificationServiceCompleteFlow { message Request { - string callback_uri = 1 [(gogoproto.customname) = "CallbackURI"]; + string callback_uri = 1; } message Reply { string identifier = 1; @@ -1141,9 +1134,9 @@ message VerifiedCredentialsList { message ReplicationServiceRegisterGroup { message Request{ - bytes group_pk = 1 [(gogoproto.customname) = "GroupPK"]; + bytes group_pk = 1; string token = 2; - string authentication_url = 3 [(gogoproto.customname) = "AuthenticationURL"]; + string authentication_url = 3; string replication_server = 4; } message Reply{} @@ -1154,7 +1147,7 @@ message ReplicationServiceReplicateGroup { Group group = 1; } message Reply { - bool ok = 1 [(gogoproto.customname) = "OK"]; + bool ok = 1; } } @@ -1162,8 +1155,8 @@ message SystemInfo { message Request {} message Reply { Process process = 1; - P2P p2p = 2 [(gogoproto.customname) = "P2P"]; - OrbitDB orbitdb = 3 [(gogoproto.customname) = "OrbitDB"]; + P2P p2p = 2; + OrbitDB orbitdb = 3; repeated string warns = 4; } @@ -1184,24 +1177,24 @@ message SystemInfo { message Process { string version = 1; string vcs_ref = 2; - int64 uptime_ms = 3 [(gogoproto.customname) = "UptimeMS"]; - int64 user_cpu_time_ms = 10 [(gogoproto.customname) = "UserCPUTimeMS"]; - int64 system_cpu_time_ms = 11 [(gogoproto.customname) = "SystemCPUTimeMS"]; + int64 uptime_ms = 3; + int64 user_cpu_time_ms = 10; + int64 system_cpu_time_ms = 11; int64 started_at = 12; uint64 rlimit_cur = 13; int64 num_goroutine = 14; int64 nofile = 15; bool too_many_open_files = 16; - int64 num_cpu = 17 [(gogoproto.customname) = "NumCPU"]; + int64 num_cpu = 17; string go_version = 18; string operating_system = 19; string host_name = 20; string arch = 21; uint64 rlimit_max = 22; - int64 pid = 23 [(gogoproto.customname) = "PID"]; - int64 ppid = 24 [(gogoproto.customname) = "PPID"]; + int64 pid = 23; + int64 ppid = 24; int64 priority = 25; - int64 uid = 26 [(gogoproto.customname) = "UID"]; + int64 uid = 26; string working_dir = 27; string system_username = 28; } @@ -1215,7 +1208,7 @@ message PeerList { message Peer { // id is the libp2p.PeerID. - string id = 1 [(gogoproto.customname) = "ID"]; + string id = 1; // routes are the list of active and known maddr. repeated Route routes = 2; @@ -1255,7 +1248,7 @@ message PeerList { message Stream { // id is an identifier used to write protocol headers in streams. - string id = 1 [(gogoproto.customname) = "ID"]; + string id = 1; } enum Feature { @@ -1287,8 +1280,8 @@ message Progress { } message OutOfStoreMessage { - bytes cid = 1 [(gogoproto.customname) = "CID"]; - bytes device_pk = 2 [(gogoproto.customname) = "DevicePK"]; + bytes cid = 1; + bytes device_pk = 2; fixed64 counter = 3; bytes sig = 4; fixed32 flags = 5; @@ -1316,7 +1309,7 @@ message OutOfStoreReceive { message OutOfStoreSeal { message Request { - bytes cid = 1 [(gogoproto.customname) = "CID"]; + bytes cid = 1; bytes group_public_key = 2; } message Reply { @@ -1326,7 +1319,7 @@ message OutOfStoreSeal { message AccountVerifiedCredentialRegistered { // device_pk is the public key of the device sending the message - bytes device_pk = 1 [(gogoproto.customname) = "DevicePK"]; + bytes device_pk = 1; bytes signed_identity_public_key = 2; @@ -1351,8 +1344,8 @@ message OrbitDBMessageHeads { message Box { string address = 1; bytes heads = 2; - bytes device_pk = 3 [(gogoproto.customname) = "DevicePK"]; - bytes peer_id = 4 [(gogoproto.customname) = "PeerID"]; + bytes device_pk = 3; + bytes peer_id = 4; } // sealed box should contain encrypted Box @@ -1365,14 +1358,14 @@ message OrbitDBMessageHeads { message RefreshContactRequest { message Peer { // id is the libp2p.PeerID. - string id = 1 [(gogoproto.customname) = "ID"]; + string id = 1; // list of peers multiaddrs. repeated string addrs = 2; } message Request { - bytes contact_pk = 1 [(gogoproto.customname) = "ContactPK"]; + bytes contact_pk = 1; // timeout in second int64 timeout = 2; } diff --git a/api/protocol/replicationtypes/bertyreplication.proto b/api/protocol/replicationtypes/bertyreplication.proto index b3fee691..53a8aba9 100644 --- a/api/protocol/replicationtypes/bertyreplication.proto +++ b/api/protocol/replicationtypes/bertyreplication.proto @@ -2,18 +2,11 @@ syntax = "proto3"; package weshnet.replication.v1; -import "gogoproto/gogo.proto"; import "protocoltypes.proto"; +import "tagger/tagger.proto"; option go_package = "berty.tech/weshnet/pkg/replicationtypes"; -option (gogoproto.marshaler_all) = true; -option (gogoproto.unmarshaler_all) = true; -option (gogoproto.sizer_all) = true; -option (gogoproto.goproto_unkeyed_all) = false; -option (gogoproto.goproto_unrecognized_all) = false; -option (gogoproto.goproto_sizecache_all) = false; - // ReplicationService service ReplicationService { // ReplicateGroup @@ -25,7 +18,7 @@ service ReplicationService { } message ReplicatedGroup { - string public_key = 1 [(gogoproto.moretags) = "gorm:\"primaryKey\""]; + string public_key = 1 [(tagger.tags) = "gorm:\"primaryKey\""]; string sign_pub = 2; string link_key = 3; int64 created_at = 100; @@ -37,10 +30,10 @@ message ReplicatedGroup { } message ReplicatedGroupToken { - string replicated_group_public_key = 1 [(gogoproto.moretags) = "gorm:\"index;primaryKey;autoIncrement:false\""]; + string replicated_group_public_key = 1 [(tagger.tags) = "gorm:\"index;primaryKey;autoIncrement:false\""]; ReplicatedGroup replicated_group = 2; - string token_issuer = 3 [(gogoproto.moretags) = "gorm:\"primaryKey;autoIncrement:false\""]; - string token_id = 4 [(gogoproto.moretags) = "gorm:\"primaryKey;autoIncrement:false\"", (gogoproto.customname) = "TokenID"]; + string token_issuer = 3 [(tagger.tags) = "gorm:\"primaryKey;autoIncrement:false\""]; + string token_id = 4 [(tagger.tags) = "gorm:\"primaryKey;autoIncrement:false\""]; int64 created_at = 5; } @@ -49,7 +42,7 @@ message ReplicationServiceReplicateGroup { weshnet.protocol.v1.Group group = 1; } message Reply { - bool ok = 1 [(gogoproto.customname) = "OK"]; + bool ok = 1; } } diff --git a/api/protocol/verifiablecredstypes/bertyverifiablecreds.proto b/api/protocol/verifiablecredstypes/bertyverifiablecreds.proto index 24facff3..b2222fd5 100644 --- a/api/protocol/verifiablecredstypes/bertyverifiablecreds.proto +++ b/api/protocol/verifiablecredstypes/bertyverifiablecreds.proto @@ -2,20 +2,14 @@ syntax = "proto3"; package weshnet.account.v1; -import "gogoproto/gogo.proto"; - option go_package = "berty.tech/weshnet/pkg/verifiablecredstypes"; -option (gogoproto.marshaler_all) = true; -option (gogoproto.unmarshaler_all) = true; -option (gogoproto.sizer_all) = true; - // StateChallenge serialized and signed state used when requesting a challenge message StateChallenge { bytes timestamp = 1; bytes nonce = 2; string berty_link = 3; - string redirect_uri = 4 [(gogoproto.customname) = "RedirectURI"]; + string redirect_uri = 4; string state = 5; } @@ -26,7 +20,7 @@ message StateCode { CodeStrategy code_strategy = 3; string identifier = 4; string code = 5; - string redirect_uri = 6 [(gogoproto.customname) = "RedirectURI"]; + string redirect_uri = 6; string state = 7; } diff --git a/buf.gen.tag.yaml b/buf.gen.tag.yaml new file mode 100644 index 00000000..17eb648d --- /dev/null +++ b/buf.gen.tag.yaml @@ -0,0 +1,5 @@ +version: v1 +plugins: + - name: gotag + out: ./ + opt: module=berty.tech/weshnet diff --git a/buf.gen.yaml b/buf.gen.yaml index 32165cea..28239e15 100644 --- a/buf.gen.yaml +++ b/buf.gen.yaml @@ -1,12 +1,13 @@ version: v1 plugins: - - plugin: gogo - out: ./../.. - - plugin: go-grpc - out: ./ - opt: module=berty.tech/weshnet - - plugin: grpc-gateway - out: ./ - opt: - - module=berty.tech/weshnet - - generate_unbound_methods=true + - name: go + out: ./ + opt: module=berty.tech/weshnet + - plugin: go-grpc + out: ./ + opt: module=berty.tech/weshnet + - plugin: grpc-gateway + out: ./ + opt: + - module=berty.tech/weshnet + - generate_unbound_methods=true diff --git a/gen.sum b/gen.sum index fa0f5670..9f825853 100644 --- a/gen.sum +++ b/gen.sum @@ -1 +1 @@ -c714df94280e709f9b80d62edd8b39632d16f679 Makefile +58bfdff78c72df7c80f0da16582c323600220202 Makefile diff --git a/go.mod b/go.mod index 3ae4227a..c2c5b263 100644 --- a/go.mod +++ b/go.mod @@ -28,13 +28,11 @@ require ( github.com/ipfs/go-ipfs-keystore v0.1.0 github.com/ipfs/go-ipld-cbor v0.1.0 github.com/ipfs/go-log/v2 v2.5.1 - github.com/ipfs/interface-go-ipfs-core v0.11.1 github.com/ipfs/kubo v0.29.0 github.com/juju/fslock v0.0.0-20160525022230-4d5c94c67b4b github.com/libp2p/go-libp2p v0.34.1 github.com/libp2p/go-libp2p-kad-dht v0.25.2 github.com/libp2p/go-libp2p-pubsub v0.11.1-0.20240711152552-e508d8643ddb - github.com/libp2p/go-libp2p-record v0.2.0 github.com/libp2p/go-libp2p-testing v0.12.0 github.com/mdomke/git-semver/v5 v5.0.0 github.com/multiformats/go-multiaddr v0.12.4 @@ -46,6 +44,7 @@ require ( github.com/pkg/errors v0.9.1 github.com/prometheus/client_golang v1.19.1 github.com/pseudomuto/protoc-gen-doc v1.5.1 + github.com/srikrsna/protoc-gen-gotag v1.0.1 github.com/stretchr/testify v1.9.0 go.uber.org/goleak v1.3.0 go.uber.org/multierr v1.11.0 @@ -107,6 +106,7 @@ require ( github.com/envoyproxy/protoc-gen-validate v1.0.4 // indirect github.com/facebookgo/atomicfile v0.0.0-20151019160806-2de1f203e7d5 // indirect github.com/fatih/color v1.13.0 // indirect + github.com/fatih/structtag v1.2.0 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect github.com/flynn/noise v1.1.0 // indirect github.com/francoispqt/gojay v1.2.13 // indirect @@ -170,7 +170,6 @@ require ( github.com/ipfs/go-log v1.0.5 // indirect github.com/ipfs/go-merkledag v0.11.0 // indirect github.com/ipfs/go-metrics-interface v0.0.1 // indirect - github.com/ipfs/go-path v0.3.1 // indirect github.com/ipfs/go-peertaskqueue v0.8.1 // indirect github.com/ipfs/go-unixfsnode v1.9.0 // indirect github.com/ipfs/go-verifcid v0.0.3 // indirect @@ -194,6 +193,7 @@ require ( github.com/libp2p/go-libp2p-http v0.5.0 // indirect github.com/libp2p/go-libp2p-kbucket v0.6.3 // indirect github.com/libp2p/go-libp2p-pubsub-router v0.6.0 // indirect + github.com/libp2p/go-libp2p-record v0.2.0 // indirect github.com/libp2p/go-libp2p-routing-helpers v0.7.3 // indirect github.com/libp2p/go-libp2p-xor v0.1.0 // indirect github.com/libp2p/go-msgio v0.3.0 // indirect @@ -202,6 +202,7 @@ require ( github.com/libp2p/go-reuseport v0.4.0 // indirect github.com/libp2p/go-yamux/v4 v4.0.1 // indirect github.com/libp2p/zeroconf/v2 v2.2.0 // indirect + github.com/lyft/protoc-gen-star/v2 v2.0.3 // indirect github.com/marten-seemann/tcp v0.0.0-20210406111302-dfbc87cc63fd // indirect github.com/maruel/circular v0.0.0-20200815005550-36e533b830e9 // indirect github.com/mattn/go-colorable v0.1.12 // indirect @@ -262,6 +263,7 @@ require ( github.com/rs/cors v1.10.1 // indirect github.com/samber/lo v1.39.0 // indirect github.com/spaolacci/murmur3 v1.1.0 // indirect + github.com/spf13/afero v1.10.0 // indirect github.com/spf13/cobra v1.6.1 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/square/go-jose/v3 v3.0.0-20200630053402-0a67ce9b0693 // indirect diff --git a/go.sum b/go.sum index 252d6d5a..447ab7ee 100644 --- a/go.sum +++ b/go.sum @@ -13,6 +13,7 @@ cloud.google.com/go v0.37.0/go.mod h1:TS1dMSSfndXH133OKGwekG838Om/cQT0BUHV3HcBgo cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= +cloud.google.com/go v0.44.3/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= @@ -24,6 +25,9 @@ cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZ cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= cloud.google.com/go v0.63.0/go.mod h1:GmezbQc7T2snqkEXWfZ0sy0VfkB/ivI2DdtJL2DEmlg= cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= +cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI= +cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmWk= +cloud.google.com/go v0.75.0/go.mod h1:VGuuCn7PG0dwsd5XPVm2Mm3wlh3EL55/79EKB6hlPTY= cloud.google.com/go v0.105.0 h1:DNtEKRBAAzeS4KyIory52wWHuClNaXJ5x1F7xa4q+5Y= cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= @@ -45,6 +49,7 @@ cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0Zeo cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= +cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo= contrib.go.opencensus.io/exporter/prometheus v0.4.2 h1:sqfsYl5GIY/L570iT+l93ehxaWJs2/OwXtiWwew3oAg= contrib.go.opencensus.io/exporter/prometheus v0.4.2/go.mod h1:dvEHbiKmgvbr5pjaF9fpw1KeYcjrnC1J8B+JKjsZyRQ= dmitri.shuralyov.com/app/changes v0.0.0-20180602232624-0a106ad413e3/go.mod h1:Yl+fi1br7+Rr3LqpNJf1/uxUdtRUV+Tnj0o93V2B9MU= @@ -146,6 +151,8 @@ github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMn github.com/cilium/ebpf v0.2.0/go.mod h1:To2CFviqOWL/M0gIMsvSMlqe7em/l1ALkX1PyjrX2Qs= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= +github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= +github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= github.com/containerd/cgroups v0.0.0-20201119153540-4cbc285b3327/go.mod h1:ZJeTFisyysqgcCdecO57Dj79RfL0LNeGiFUqLYQRYLE= github.com/containerd/cgroups v1.1.0 h1:v8rEWFl6EoqHB+swVNjVoCJE8o3jX7e8nqBGPLaDFBM= github.com/containerd/cgroups v1.1.0/go.mod h1:6ppBcbh/NOOUU+dMKrykgaBnK9lCIBxHqJDGwsa1mIw= @@ -207,6 +214,8 @@ github.com/emicklei/proto v1.6.13/go.mod h1:rn1FgRS/FANiZdD2djyH7TMA9jdRDcYQ9IEN github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= +github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po= +github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/envoyproxy/protoc-gen-validate v1.0.4 h1:gVPz/FMfvh57HdSJQyvBtF00j8JU4zdyUgIUNhlgg0A= github.com/envoyproxy/protoc-gen-validate v1.0.4/go.mod h1:qys6tmnRsYrQqIhm2bvKZH4Blx/1gTIZ2UKVY1M+Yew= @@ -215,6 +224,8 @@ github.com/facebookgo/atomicfile v0.0.0-20151019160806-2de1f203e7d5/go.mod h1:Jp github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU= github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= +github.com/fatih/structtag v1.2.0 h1:/OdNE99OxoI/PqaW/SuSK9uxxT3f/tcSZgon/ssNSx4= +github.com/fatih/structtag v1.2.0/go.mod h1:mBJUNpUnHmRKrKlQQlmCrh5PuhftFbNv8Ys4/aAZl94= github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= @@ -334,6 +345,7 @@ github.com/google/gopacket v1.1.19 h1:ves8RnFZPGiFnTS0uPQStjwru6uO6h+nlr9j6fL7kF github.com/google/gopacket v1.1.19/go.mod h1:iJ8V8n6KS+z2U1A8pUwu8bW5SyEMkXJB8Yo/Vo+TKTo= github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= +github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= @@ -341,6 +353,9 @@ github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hf github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20201218002935-b9804c9f04c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20240509144519-723abb6459b7 h1:velgFPYr1X9TDwLIfkV7fWqsFlf7TeP11M/7kPd/dVI= github.com/google/pprof v0.0.0-20240509144519-723abb6459b7/go.mod h1:kf6iHlnVGwgKolg33glAes7Yg/8iWP8ukqeldJSO7jw= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= @@ -355,6 +370,7 @@ github.com/googleapis/gax-go v2.0.0+incompatible/go.mod h1:SFVmujtThgffbyetf+mdk github.com/googleapis/gax-go/v2 v2.0.3/go.mod h1:LLvjysVCY1JZeum8Z6l8qUty8fiNwE08qbEPm1M08qg= github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= +github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= github.com/gopherjs/gopherjs v0.0.0-20190812055157-5d271430af9f h1:KMlcu9X58lhTA/KrfX8Bi1LQSO4pzoVjTiL3h4Jk+Zk= github.com/gopherjs/gopherjs v0.0.0-20190812055157-5d271430af9f/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= @@ -399,6 +415,7 @@ github.com/hyperledger/aries-framework-go/spi v0.0.0-20221025204933-b807371b6f1e github.com/hyperledger/ursa-wrapper-go v0.3.1 h1:Do+QrVNniY77YK2jTIcyWqj9rm/Yb5SScN0bqCjiibA= github.com/hyperledger/ursa-wrapper-go v0.3.1/go.mod h1:nPSAuMasIzSVciQo22PedBk4Opph6bJ6ia3ms7BH/mk= github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/imdario/mergo v0.3.11 h1:3tnifQM4i+fbajXKBHXWEH+KvNHqojZ778UH75j3bGA= github.com/imdario/mergo v0.3.11/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= @@ -507,8 +524,6 @@ github.com/ipfs/go-merkledag v0.11.0 h1:DgzwK5hprESOzS4O1t/wi6JDpyVQdvm9Bs59N/jq github.com/ipfs/go-merkledag v0.11.0/go.mod h1:Q4f/1ezvBiJV0YCIXvt51W/9/kqJGH4I1LsA7+djsM4= github.com/ipfs/go-metrics-interface v0.0.1 h1:j+cpbjYvu4R8zbleSs36gvB7jR+wsL2fGD6n0jO4kdg= github.com/ipfs/go-metrics-interface v0.0.1/go.mod h1:6s6euYU4zowdslK0GKHmqaIZ3j/b/tL7HTWtJ4VPgWY= -github.com/ipfs/go-path v0.3.1 h1:wkeaCWE/NTuuPGlEkLTsED5UkzfKYZpxaFFPgk8ZVLE= -github.com/ipfs/go-path v0.3.1/go.mod h1:eNLsxJEEMxn/CDzUJ6wuNl+6No6tEUhOZcPKsZsYX0E= github.com/ipfs/go-peertaskqueue v0.8.1 h1:YhxAs1+wxb5jk7RvS0LHdyiILpNmRIRnZVztekOF0pg= github.com/ipfs/go-peertaskqueue v0.8.1/go.mod h1:Oxxd3eaK279FxeydSPPVGHzbwVeHjatZ2GA8XD+KbPU= github.com/ipfs/go-unixfs v0.4.5 h1:wj8JhxvV1G6CD7swACwSKYa+NgtdWC1RUit+gFnymDU= @@ -517,8 +532,6 @@ github.com/ipfs/go-unixfsnode v1.9.0 h1:ubEhQhr22sPAKO2DNsyVBW7YB/zA8Zkif25aBvz8 github.com/ipfs/go-unixfsnode v1.9.0/go.mod h1:HxRu9HYHOjK6HUqFBAi++7DVoWAHn0o4v/nZ/VA+0g8= github.com/ipfs/go-verifcid v0.0.3 h1:gmRKccqhWDocCRkC+a59g5QW7uJw5bpX9HWBevXa0zs= github.com/ipfs/go-verifcid v0.0.3/go.mod h1:gcCtGniVzelKrbk9ooUSX/pM3xlH73fZZJDzQJRvOUw= -github.com/ipfs/interface-go-ipfs-core v0.11.1 h1:xVW8DKzd230h8bPv+oC2fBjW4PtDGqGtvpX64/aBe48= -github.com/ipfs/interface-go-ipfs-core v0.11.1/go.mod h1:xmnoccUXY7N/Q8AIx0vFqgW926/FAZ8+do/1NTEHKsU= github.com/ipfs/kubo v0.29.0 h1:J5G5le0/gYkx8qLN/zxDl0LcEXKbHZyMh4FCuQN1nVo= github.com/ipfs/kubo v0.29.0/go.mod h1:mLhuve/44BxEX5ujEihviRXiaxdlrja3kjJgEs2WhK0= github.com/ipld/go-car v0.6.2 h1:Hlnl3Awgnq8icK+ze3iRghk805lu8YNq3wlREDTF2qc= @@ -580,6 +593,7 @@ github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxv github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/koron/go-ssdp v0.0.4 h1:1IDwrghSKYM7yLf7XCzbByg2sJ/JcNOZRXS2jczTwz0= github.com/koron/go-ssdp v0.0.4/go.mod h1:oDXq+E5IL5q0U8uSBcoAXzTzInwy5lEgC91HoKtbmZk= +github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= @@ -650,6 +664,8 @@ github.com/libp2p/go-yamux/v4 v4.0.1/go.mod h1:NWjl8ZTLOGlozrXSOZ/HlfG++39iKNnM5 github.com/libp2p/zeroconf/v2 v2.2.0 h1:Cup06Jv6u81HLhIj1KasuNM/RHHrJ8T7wOTS4+Tv53Q= github.com/libp2p/zeroconf/v2 v2.2.0/go.mod h1:fuJqLnUwZTshS3U/bMRJ3+ow/v9oid1n0DmyYyNO1Xs= github.com/lunixbochs/vtclean v1.0.0/go.mod h1:pHhQNgMf3btfWnGBVipUOjRYhoOsdGqdm/+2c2E2WMI= +github.com/lyft/protoc-gen-star/v2 v2.0.3 h1:/3+/2sWyXeMLzKd1bX+ixWKgEMsULrIivpDsuaF441o= +github.com/lyft/protoc-gen-star/v2 v2.0.3/go.mod h1:amey7yeodaJhXSbf/TlLvWiqQfLOSpEk//mLlc+axEk= github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= github.com/mailru/easyjson v0.0.0-20180823135443-60711f1a8329/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/mailru/easyjson v0.0.0-20190312143242-1de009706dbe/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= @@ -858,6 +874,8 @@ github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/sftp v1.10.1/go.mod h1:lYOWFsE0bwd1+KfKJaKeuokY15vzFx25BLbzYYoAxZI= +github.com/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qRg= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/polydawn/refmt v0.0.0-20201211092308-30ac6d18308e/go.mod h1:uIp+gprXxxrWSjjklXD+mN4wed/tMfjMMmN/9+JsA9o= @@ -969,6 +987,10 @@ github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasO github.com/spaolacci/murmur3 v1.1.0 h1:7c1g84S4BPRrfL5Xrdp6fOJ206sU9y293DDHaoy0bLI= github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= +github.com/spf13/afero v1.3.3/go.mod h1:5KUK8ByomD5Ti5Artl0RtHeI5pTF7MIDuXL3yY520V4= +github.com/spf13/afero v1.5.1/go.mod h1:Ai8FlHk4v/PARR026UzYexafAt9roJ7LcLMAmO6Z93I= +github.com/spf13/afero v1.10.0 h1:EaGW2JJh15aKOejeuJ+wpFSHnbd7GE6Wvp3TsNhb6LY= +github.com/spf13/afero v1.10.0/go.mod h1:UBogFpq8E9Hx+xc5CNTTEpTnuHVmXDwZcZcE1eb/UhQ= github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU= github.com/spf13/cobra v1.6.1 h1:o94oiPyS4KD1mPy2fmcYYHHfCxLqYjJOhGsCHFZtEzA= @@ -981,6 +1003,8 @@ github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DM github.com/square/go-jose/v3 v3.0.0-20200630053402-0a67ce9b0693 h1:wD1IWQwAhdWclCwaf6DdzgCAe9Bfz1M+4AHRd7N786Y= github.com/square/go-jose/v3 v3.0.0-20200630053402-0a67ce9b0693/go.mod h1:6hSY48PjDm4UObWmGLyJE9DxYVKTgR9kbCspXXJEhcU= github.com/src-d/envconfig v1.0.0/go.mod h1:Q9YQZ7BKITldTBnoxsE5gOeB5y66RyPXeue/R4aaNBc= +github.com/srikrsna/protoc-gen-gotag v1.0.1 h1:zMDkplPjcpIOafgfXTD1BqCrMGycXcomV794MIKKi9s= +github.com/srikrsna/protoc-gen-gotag v1.0.1/go.mod h1:HiXK5kcp/ZRnNPahuJm3tzfGDoD8xzvLNdg5/PYKq7Q= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= @@ -990,6 +1014,7 @@ github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/ github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= @@ -1063,6 +1088,7 @@ go.opencensus.io v0.22.1/go.mod h1:Ap50jQcDJrx6rB6VgeeFPtuPIf3wMRvRfrfYDO6+BmA= go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= @@ -1135,6 +1161,7 @@ golang.org/x/crypto v0.0.0-20190313024323-a1f597ede03a/go.mod h1:djNgcEr1/C05ACk golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190911031432-227b76d455e7/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200115085410-6d4e4cb37c7d/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= @@ -1143,7 +1170,9 @@ golang.org/x/crypto v0.0.0-20200602180216-279210d13fed/go.mod h1:LzIPMQfyMNhhGPh golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210220033148-5ea612d1eb83/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= +golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.8.0/go.mod h1:mRqEX+O9/h5TFCrQhkgjo2yKi0yYA+9ecGkdQoHrywE= golang.org/x/crypto v0.11.0/go.mod h1:xgJhtzW8F9jGdVFWZESrid1U1bjeNy4zgy5cRr/CIio= golang.org/x/crypto v0.12.0/go.mod h1:NF0Gs7EO5K4qLn+Ylc+fih8BSTeIjAP05siRnAh98yw= @@ -1177,6 +1206,7 @@ golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHl golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= @@ -1186,6 +1216,7 @@ golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzB golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= @@ -1228,12 +1259,16 @@ golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81R golang.org/x/net v0.0.0-20200813134508-3edf25e44fcc/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= golang.org/x/net v0.0.0-20210423184538-5f58ad60dda6/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= @@ -1255,6 +1290,10 @@ golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4Iltr golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.20.0 h1:4mQdhULixXKP1rwYBW0vAijoXnkTG0BLCDRzfe1idMo= @@ -1325,14 +1364,19 @@ golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200814200057-3d37ad5750ed/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210225134936-a50acf3fe073/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210303074136-134d130e1a04/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210309074719-68d13333faf2/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210426080607-c94f62235c83/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -1373,8 +1417,10 @@ golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/text v0.11.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= @@ -1439,8 +1485,14 @@ golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20200806022845-90696ccdc692/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= +golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201211185031-d93e913c1a58/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= @@ -1474,6 +1526,9 @@ google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0M google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= +google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg= +google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE= +google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.3.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -1482,6 +1537,7 @@ google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7 google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20180831171423-11092d34479b/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20181029155118-b69ba1387ce2/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= @@ -1518,6 +1574,13 @@ google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6D google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20200806141610-86f49bd18e98/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210108203827-ffc7fda8c3d7/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210226172003-ab064af71705/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd h1:OjndDrsik+Gt+e6fs45z9AxiewiKyLKYpA45W5Kpkks= google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd/go.mod h1:cTsE614GARnxrLsqKREzmNYJACSWWpAWdNMwnD7c2BE= google.golang.org/grpc v1.14.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= @@ -1535,8 +1598,11 @@ google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKa google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= +google.golang.org/grpc v1.34.0/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA51WJ8= +google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= google.golang.org/grpc v1.64.0 h1:KH3VH9y/MgNQg1dE7b3XfVK0GsPSIzJwdF617gUSbvY= google.golang.org/grpc v1.64.0/go.mod h1:oxjF8E3FBnjp+/gVFYdWacaLDx9na1aqy9oovLpxQYg= google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.3.0 h1:rNBFJjBCOgVr9pWD7rs/knKL4FRTKgpZmsRfV214zcA= diff --git a/internal/handshake/handshake.pb.go b/internal/handshake/handshake.pb.go index a795643e..bd0ae9a6 100644 --- a/internal/handshake/handshake.pb.go +++ b/internal/handshake/handshake.pb.go @@ -1,1111 +1,413 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.34.1 +// protoc (unknown) // source: handshake/handshake.proto package handshake import ( - fmt "fmt" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" - io "io" - math "math" - math_bits "math/bits" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type BoxEnvelope struct { - Box []byte `protobuf:"bytes,1,opt,name=box,proto3" json:"box,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *BoxEnvelope) Reset() { *m = BoxEnvelope{} } -func (m *BoxEnvelope) String() string { return proto.CompactTextString(m) } -func (*BoxEnvelope) ProtoMessage() {} -func (*BoxEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_61099db316cadb61, []int{0} -} -func (m *BoxEnvelope) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BoxEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BoxEnvelope.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BoxEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_BoxEnvelope.Merge(m, src) -} -func (m *BoxEnvelope) XXX_Size() int { - return m.Size() -} -func (m *BoxEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_BoxEnvelope.DiscardUnknown(m) + Box []byte `protobuf:"bytes,1,opt,name=box,proto3" json:"box,omitempty"` } -var xxx_messageInfo_BoxEnvelope proto.InternalMessageInfo - -func (m *BoxEnvelope) GetBox() []byte { - if m != nil { - return m.Box +func (x *BoxEnvelope) Reset() { + *x = BoxEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_handshake_handshake_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type HelloPayload struct { - EphemeralPubKey []byte `protobuf:"bytes,1,opt,name=ephemeral_pub_key,json=ephemeralPubKey,proto3" json:"ephemeral_pub_key,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *BoxEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *HelloPayload) Reset() { *m = HelloPayload{} } -func (m *HelloPayload) String() string { return proto.CompactTextString(m) } -func (*HelloPayload) ProtoMessage() {} -func (*HelloPayload) Descriptor() ([]byte, []int) { - return fileDescriptor_61099db316cadb61, []int{1} -} -func (m *HelloPayload) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *HelloPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_HelloPayload.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*BoxEnvelope) ProtoMessage() {} + +func (x *BoxEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_handshake_handshake_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *HelloPayload) XXX_Merge(src proto.Message) { - xxx_messageInfo_HelloPayload.Merge(m, src) -} -func (m *HelloPayload) XXX_Size() int { - return m.Size() -} -func (m *HelloPayload) XXX_DiscardUnknown() { - xxx_messageInfo_HelloPayload.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_HelloPayload proto.InternalMessageInfo +// Deprecated: Use BoxEnvelope.ProtoReflect.Descriptor instead. +func (*BoxEnvelope) Descriptor() ([]byte, []int) { + return file_handshake_handshake_proto_rawDescGZIP(), []int{0} +} -func (m *HelloPayload) GetEphemeralPubKey() []byte { - if m != nil { - return m.EphemeralPubKey +func (x *BoxEnvelope) GetBox() []byte { + if x != nil { + return x.Box } return nil } -type RequesterAuthenticatePayload struct { - RequesterAccountId []byte `protobuf:"bytes,1,opt,name=requester_account_id,json=requesterAccountId,proto3" json:"requester_account_id,omitempty"` - RequesterAccountSig []byte `protobuf:"bytes,2,opt,name=requester_account_sig,json=requesterAccountSig,proto3" json:"requester_account_sig,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +type HelloPayload struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *RequesterAuthenticatePayload) Reset() { *m = RequesterAuthenticatePayload{} } -func (m *RequesterAuthenticatePayload) String() string { return proto.CompactTextString(m) } -func (*RequesterAuthenticatePayload) ProtoMessage() {} -func (*RequesterAuthenticatePayload) Descriptor() ([]byte, []int) { - return fileDescriptor_61099db316cadb61, []int{2} -} -func (m *RequesterAuthenticatePayload) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + EphemeralPubKey []byte `protobuf:"bytes,1,opt,name=ephemeral_pub_key,json=ephemeralPubKey,proto3" json:"ephemeral_pub_key,omitempty"` } -func (m *RequesterAuthenticatePayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RequesterAuthenticatePayload.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RequesterAuthenticatePayload) XXX_Merge(src proto.Message) { - xxx_messageInfo_RequesterAuthenticatePayload.Merge(m, src) -} -func (m *RequesterAuthenticatePayload) XXX_Size() int { - return m.Size() -} -func (m *RequesterAuthenticatePayload) XXX_DiscardUnknown() { - xxx_messageInfo_RequesterAuthenticatePayload.DiscardUnknown(m) -} - -var xxx_messageInfo_RequesterAuthenticatePayload proto.InternalMessageInfo -func (m *RequesterAuthenticatePayload) GetRequesterAccountId() []byte { - if m != nil { - return m.RequesterAccountId +func (x *HelloPayload) Reset() { + *x = HelloPayload{} + if protoimpl.UnsafeEnabled { + mi := &file_handshake_handshake_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *RequesterAuthenticatePayload) GetRequesterAccountSig() []byte { - if m != nil { - return m.RequesterAccountSig - } - return nil +func (x *HelloPayload) String() string { + return protoimpl.X.MessageStringOf(x) } -type ResponderAcceptPayload struct { - ResponderAccountSig []byte `protobuf:"bytes,1,opt,name=responder_account_sig,json=responderAccountSig,proto3" json:"responder_account_sig,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +func (*HelloPayload) ProtoMessage() {} -func (m *ResponderAcceptPayload) Reset() { *m = ResponderAcceptPayload{} } -func (m *ResponderAcceptPayload) String() string { return proto.CompactTextString(m) } -func (*ResponderAcceptPayload) ProtoMessage() {} -func (*ResponderAcceptPayload) Descriptor() ([]byte, []int) { - return fileDescriptor_61099db316cadb61, []int{3} -} -func (m *ResponderAcceptPayload) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResponderAcceptPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ResponderAcceptPayload.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *HelloPayload) ProtoReflect() protoreflect.Message { + mi := &file_handshake_handshake_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ResponderAcceptPayload) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResponderAcceptPayload.Merge(m, src) -} -func (m *ResponderAcceptPayload) XXX_Size() int { - return m.Size() -} -func (m *ResponderAcceptPayload) XXX_DiscardUnknown() { - xxx_messageInfo_ResponderAcceptPayload.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ResponderAcceptPayload proto.InternalMessageInfo +// Deprecated: Use HelloPayload.ProtoReflect.Descriptor instead. +func (*HelloPayload) Descriptor() ([]byte, []int) { + return file_handshake_handshake_proto_rawDescGZIP(), []int{1} +} -func (m *ResponderAcceptPayload) GetResponderAccountSig() []byte { - if m != nil { - return m.ResponderAccountSig +func (x *HelloPayload) GetEphemeralPubKey() []byte { + if x != nil { + return x.EphemeralPubKey } return nil } -type RequesterAcknowledgePayload struct { - Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +type RequesterAuthenticatePayload struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *RequesterAcknowledgePayload) Reset() { *m = RequesterAcknowledgePayload{} } -func (m *RequesterAcknowledgePayload) String() string { return proto.CompactTextString(m) } -func (*RequesterAcknowledgePayload) ProtoMessage() {} -func (*RequesterAcknowledgePayload) Descriptor() ([]byte, []int) { - return fileDescriptor_61099db316cadb61, []int{4} -} -func (m *RequesterAcknowledgePayload) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RequesterAcknowledgePayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RequesterAcknowledgePayload.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RequesterAcknowledgePayload) XXX_Merge(src proto.Message) { - xxx_messageInfo_RequesterAcknowledgePayload.Merge(m, src) -} -func (m *RequesterAcknowledgePayload) XXX_Size() int { - return m.Size() -} -func (m *RequesterAcknowledgePayload) XXX_DiscardUnknown() { - xxx_messageInfo_RequesterAcknowledgePayload.DiscardUnknown(m) + RequesterAccountId []byte `protobuf:"bytes,1,opt,name=requester_account_id,json=requesterAccountId,proto3" json:"requester_account_id,omitempty"` + RequesterAccountSig []byte `protobuf:"bytes,2,opt,name=requester_account_sig,json=requesterAccountSig,proto3" json:"requester_account_sig,omitempty"` } -var xxx_messageInfo_RequesterAcknowledgePayload proto.InternalMessageInfo - -func (m *RequesterAcknowledgePayload) GetSuccess() bool { - if m != nil { - return m.Success +func (x *RequesterAuthenticatePayload) Reset() { + *x = RequesterAuthenticatePayload{} + if protoimpl.UnsafeEnabled { + mi := &file_handshake_handshake_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return false } -func init() { - proto.RegisterType((*BoxEnvelope)(nil), "handshake.BoxEnvelope") - proto.RegisterType((*HelloPayload)(nil), "handshake.HelloPayload") - proto.RegisterType((*RequesterAuthenticatePayload)(nil), "handshake.RequesterAuthenticatePayload") - proto.RegisterType((*ResponderAcceptPayload)(nil), "handshake.ResponderAcceptPayload") - proto.RegisterType((*RequesterAcknowledgePayload)(nil), "handshake.RequesterAcknowledgePayload") +func (x *RequesterAuthenticatePayload) String() string { + return protoimpl.X.MessageStringOf(x) } -func init() { proto.RegisterFile("handshake/handshake.proto", fileDescriptor_61099db316cadb61) } - -var fileDescriptor_61099db316cadb61 = []byte{ - // 316 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x91, 0xcd, 0x4a, 0xc3, 0x40, - 0x14, 0x85, 0x19, 0x05, 0x7f, 0xc6, 0x82, 0x1a, 0xab, 0xd4, 0x1f, 0xaa, 0x04, 0x04, 0x71, 0xd1, - 0x88, 0x5d, 0x08, 0xee, 0x5a, 0x10, 0x14, 0x5d, 0x94, 0xb8, 0x73, 0x13, 0x26, 0x93, 0x4b, 0x12, - 0x3a, 0xce, 0x8d, 0x99, 0x19, 0xdb, 0xec, 0x7d, 0x38, 0x97, 0x3e, 0x82, 0xf4, 0x49, 0xa4, 0xd3, - 0x4e, 0x82, 0xba, 0x3b, 0x73, 0xce, 0x3d, 0xdf, 0x70, 0xb9, 0xf4, 0x30, 0x63, 0x32, 0x51, 0x19, - 0x1b, 0x43, 0x50, 0xab, 0x5e, 0x51, 0xa2, 0x46, 0x6f, 0xb3, 0x36, 0x8e, 0xda, 0x29, 0xa6, 0x68, - 0xdd, 0x60, 0xae, 0x16, 0x03, 0xfe, 0x29, 0xdd, 0x1a, 0xe2, 0xf4, 0x4e, 0xbe, 0x83, 0xc0, 0x02, - 0xbc, 0x1d, 0xba, 0x1a, 0xe3, 0xb4, 0x43, 0xce, 0xc8, 0x45, 0x2b, 0x9c, 0x4b, 0xff, 0x96, 0xb6, - 0xee, 0x41, 0x08, 0x1c, 0xb1, 0x4a, 0x20, 0x4b, 0xbc, 0x4b, 0xba, 0x0b, 0x45, 0x06, 0xaf, 0x50, - 0x32, 0x11, 0x15, 0x26, 0x8e, 0xc6, 0x50, 0x2d, 0xe7, 0xb7, 0xeb, 0x60, 0x64, 0xe2, 0x47, 0xa8, - 0xfc, 0x0f, 0x42, 0x4f, 0x42, 0x78, 0x33, 0xa0, 0x34, 0x94, 0x03, 0xa3, 0x33, 0x90, 0x3a, 0xe7, - 0x4c, 0x83, 0x83, 0x5d, 0xd1, 0x76, 0xe9, 0xf2, 0x88, 0x71, 0x8e, 0x46, 0xea, 0x28, 0x4f, 0x96, - 0x3c, 0xaf, 0xce, 0x06, 0x8b, 0xe8, 0x21, 0xf1, 0xae, 0xe9, 0xfe, 0xff, 0x86, 0xca, 0xd3, 0xce, - 0x8a, 0xad, 0xec, 0xfd, 0xad, 0x3c, 0xe7, 0xa9, 0xff, 0x44, 0x0f, 0x42, 0x50, 0x05, 0xca, 0xc4, - 0xda, 0x50, 0x68, 0xf7, 0xbf, 0xa5, 0x2d, 0x93, 0x5f, 0x34, 0xe2, 0x68, 0x4d, 0xcd, 0xd1, 0x6e, - 0xe8, 0x71, 0xb3, 0x13, 0x1f, 0x4b, 0x9c, 0x08, 0x48, 0xd2, 0x7a, 0xa5, 0x0e, 0x5d, 0x57, 0x86, - 0x73, 0x50, 0xca, 0x42, 0x36, 0x42, 0xf7, 0x1c, 0xf6, 0x3f, 0x67, 0x5d, 0xf2, 0x35, 0xeb, 0x92, - 0xef, 0x59, 0x97, 0xbc, 0x9c, 0xc7, 0x50, 0xea, 0xaa, 0xa7, 0x81, 0x67, 0xc1, 0x04, 0x54, 0x26, - 0x41, 0x07, 0xb9, 0xd4, 0x50, 0x4a, 0x26, 0x9a, 0x33, 0xc6, 0x6b, 0xf6, 0x4c, 0xfd, 0x9f, 0x00, - 0x00, 0x00, 0xff, 0xff, 0x2b, 0xd2, 0xc6, 0xec, 0xe4, 0x01, 0x00, 0x00, -} +func (*RequesterAuthenticatePayload) ProtoMessage() {} -func (m *BoxEnvelope) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *RequesterAuthenticatePayload) ProtoReflect() protoreflect.Message { + mi := &file_handshake_handshake_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return dAtA[:n], nil + return mi.MessageOf(x) } -func (m *BoxEnvelope) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Deprecated: Use RequesterAuthenticatePayload.ProtoReflect.Descriptor instead. +func (*RequesterAuthenticatePayload) Descriptor() ([]byte, []int) { + return file_handshake_handshake_proto_rawDescGZIP(), []int{2} } -func (m *BoxEnvelope) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Box) > 0 { - i -= len(m.Box) - copy(dAtA[i:], m.Box) - i = encodeVarintHandshake(dAtA, i, uint64(len(m.Box))) - i-- - dAtA[i] = 0xa +func (x *RequesterAuthenticatePayload) GetRequesterAccountId() []byte { + if x != nil { + return x.RequesterAccountId } - return len(dAtA) - i, nil + return nil } -func (m *HelloPayload) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *RequesterAuthenticatePayload) GetRequesterAccountSig() []byte { + if x != nil { + return x.RequesterAccountSig } - return dAtA[:n], nil + return nil } -func (m *HelloPayload) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +type ResponderAcceptPayload struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *HelloPayload) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.EphemeralPubKey) > 0 { - i -= len(m.EphemeralPubKey) - copy(dAtA[i:], m.EphemeralPubKey) - i = encodeVarintHandshake(dAtA, i, uint64(len(m.EphemeralPubKey))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + ResponderAccountSig []byte `protobuf:"bytes,1,opt,name=responder_account_sig,json=responderAccountSig,proto3" json:"responder_account_sig,omitempty"` } -func (m *RequesterAuthenticatePayload) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *ResponderAcceptPayload) Reset() { + *x = ResponderAcceptPayload{} + if protoimpl.UnsafeEnabled { + mi := &file_handshake_handshake_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return dAtA[:n], nil } -func (m *RequesterAuthenticatePayload) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *ResponderAcceptPayload) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RequesterAuthenticatePayload) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.RequesterAccountSig) > 0 { - i -= len(m.RequesterAccountSig) - copy(dAtA[i:], m.RequesterAccountSig) - i = encodeVarintHandshake(dAtA, i, uint64(len(m.RequesterAccountSig))) - i-- - dAtA[i] = 0x12 - } - if len(m.RequesterAccountId) > 0 { - i -= len(m.RequesterAccountId) - copy(dAtA[i:], m.RequesterAccountId) - i = encodeVarintHandshake(dAtA, i, uint64(len(m.RequesterAccountId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} +func (*ResponderAcceptPayload) ProtoMessage() {} -func (m *ResponderAcceptPayload) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *ResponderAcceptPayload) ProtoReflect() protoreflect.Message { + mi := &file_handshake_handshake_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return dAtA[:n], nil + return mi.MessageOf(x) } -func (m *ResponderAcceptPayload) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Deprecated: Use ResponderAcceptPayload.ProtoReflect.Descriptor instead. +func (*ResponderAcceptPayload) Descriptor() ([]byte, []int) { + return file_handshake_handshake_proto_rawDescGZIP(), []int{3} } -func (m *ResponderAcceptPayload) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.ResponderAccountSig) > 0 { - i -= len(m.ResponderAccountSig) - copy(dAtA[i:], m.ResponderAccountSig) - i = encodeVarintHandshake(dAtA, i, uint64(len(m.ResponderAccountSig))) - i-- - dAtA[i] = 0xa +func (x *ResponderAcceptPayload) GetResponderAccountSig() []byte { + if x != nil { + return x.ResponderAccountSig } - return len(dAtA) - i, nil + return nil } -func (m *RequesterAcknowledgePayload) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} +type RequesterAcknowledgePayload struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *RequesterAcknowledgePayload) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` } -func (m *RequesterAcknowledgePayload) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Success { - i-- - if m.Success { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 +func (x *RequesterAcknowledgePayload) Reset() { + *x = RequesterAcknowledgePayload{} + if protoimpl.UnsafeEnabled { + mi := &file_handshake_handshake_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return len(dAtA) - i, nil } -func encodeVarintHandshake(dAtA []byte, offset int, v uint64) int { - offset -= sovHandshake(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *BoxEnvelope) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Box) - if l > 0 { - n += 1 + l + sovHandshake(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +func (x *RequesterAcknowledgePayload) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *HelloPayload) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.EphemeralPubKey) - if l > 0 { - n += 1 + l + sovHandshake(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} +func (*RequesterAcknowledgePayload) ProtoMessage() {} -func (m *RequesterAuthenticatePayload) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.RequesterAccountId) - if l > 0 { - n += 1 + l + sovHandshake(uint64(l)) - } - l = len(m.RequesterAccountSig) - if l > 0 { - n += 1 + l + sovHandshake(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) +func (x *RequesterAcknowledgePayload) ProtoReflect() protoreflect.Message { + mi := &file_handshake_handshake_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return n + return mi.MessageOf(x) } -func (m *ResponderAcceptPayload) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ResponderAccountSig) - if l > 0 { - n += 1 + l + sovHandshake(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +// Deprecated: Use RequesterAcknowledgePayload.ProtoReflect.Descriptor instead. +func (*RequesterAcknowledgePayload) Descriptor() ([]byte, []int) { + return file_handshake_handshake_proto_rawDescGZIP(), []int{4} } -func (m *RequesterAcknowledgePayload) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Success { - n += 2 +func (x *RequesterAcknowledgePayload) GetSuccess() bool { + if x != nil { + return x.Success } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + return false } -func sovHandshake(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozHandshake(x uint64) (n int) { - return sovHandshake(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +var File_handshake_handshake_proto protoreflect.FileDescriptor + +var file_handshake_handshake_proto_rawDesc = []byte{ + 0x0a, 0x19, 0x68, 0x61, 0x6e, 0x64, 0x73, 0x68, 0x61, 0x6b, 0x65, 0x2f, 0x68, 0x61, 0x6e, 0x64, + 0x73, 0x68, 0x61, 0x6b, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x68, 0x61, 0x6e, + 0x64, 0x73, 0x68, 0x61, 0x6b, 0x65, 0x22, 0x1f, 0x0a, 0x0b, 0x42, 0x6f, 0x78, 0x45, 0x6e, 0x76, + 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x62, 0x6f, 0x78, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x03, 0x62, 0x6f, 0x78, 0x22, 0x3a, 0x0a, 0x0c, 0x48, 0x65, 0x6c, 0x6c, 0x6f, + 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x2a, 0x0a, 0x11, 0x65, 0x70, 0x68, 0x65, 0x6d, + 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x70, 0x75, 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x0f, 0x65, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x50, 0x75, 0x62, + 0x4b, 0x65, 0x79, 0x22, 0x84, 0x01, 0x0a, 0x1c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, + 0x72, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x50, 0x61, 0x79, + 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x30, 0x0a, 0x14, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, + 0x72, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x12, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x72, 0x41, 0x63, 0x63, + 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x32, 0x0a, 0x15, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x65, 0x72, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x73, 0x69, 0x67, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x13, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x72, + 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x53, 0x69, 0x67, 0x22, 0x4c, 0x0a, 0x16, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x65, 0x72, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x50, 0x61, 0x79, + 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x32, 0x0a, 0x15, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x65, + 0x72, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x73, 0x69, 0x67, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x13, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x65, 0x72, 0x41, 0x63, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x53, 0x69, 0x67, 0x22, 0x37, 0x0a, 0x1b, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x65, 0x72, 0x41, 0x63, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, + 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, + 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, + 0x73, 0x42, 0x27, 0x5a, 0x25, 0x62, 0x65, 0x72, 0x74, 0x79, 0x2e, 0x74, 0x65, 0x63, 0x68, 0x2f, + 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, + 0x2f, 0x68, 0x61, 0x6e, 0x64, 0x73, 0x68, 0x61, 0x6b, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, } -func (m *BoxEnvelope) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHandshake - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: BoxEnvelope: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BoxEnvelope: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Box", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHandshake - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthHandshake - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthHandshake - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Box = append(m.Box[:0], dAtA[iNdEx:postIndex]...) - if m.Box == nil { - m.Box = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHandshake(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthHandshake - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *HelloPayload) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHandshake - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: HelloPayload: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HelloPayload: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EphemeralPubKey", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHandshake - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthHandshake - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthHandshake - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EphemeralPubKey = append(m.EphemeralPubKey[:0], dAtA[iNdEx:postIndex]...) - if m.EphemeralPubKey == nil { - m.EphemeralPubKey = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHandshake(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthHandshake - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RequesterAuthenticatePayload) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHandshake - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RequesterAuthenticatePayload: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RequesterAuthenticatePayload: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RequesterAccountId", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHandshake - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthHandshake - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthHandshake - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RequesterAccountId = append(m.RequesterAccountId[:0], dAtA[iNdEx:postIndex]...) - if m.RequesterAccountId == nil { - m.RequesterAccountId = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RequesterAccountSig", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHandshake - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthHandshake - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthHandshake - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RequesterAccountSig = append(m.RequesterAccountSig[:0], dAtA[iNdEx:postIndex]...) - if m.RequesterAccountSig == nil { - m.RequesterAccountSig = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHandshake(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthHandshake - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } +var ( + file_handshake_handshake_proto_rawDescOnce sync.Once + file_handshake_handshake_proto_rawDescData = file_handshake_handshake_proto_rawDesc +) - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ResponderAcceptPayload) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHandshake - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break +func file_handshake_handshake_proto_rawDescGZIP() []byte { + file_handshake_handshake_proto_rawDescOnce.Do(func() { + file_handshake_handshake_proto_rawDescData = protoimpl.X.CompressGZIP(file_handshake_handshake_proto_rawDescData) + }) + return file_handshake_handshake_proto_rawDescData +} + +var file_handshake_handshake_proto_msgTypes = make([]protoimpl.MessageInfo, 5) +var file_handshake_handshake_proto_goTypes = []interface{}{ + (*BoxEnvelope)(nil), // 0: handshake.BoxEnvelope + (*HelloPayload)(nil), // 1: handshake.HelloPayload + (*RequesterAuthenticatePayload)(nil), // 2: handshake.RequesterAuthenticatePayload + (*ResponderAcceptPayload)(nil), // 3: handshake.ResponderAcceptPayload + (*RequesterAcknowledgePayload)(nil), // 4: handshake.RequesterAcknowledgePayload +} +var file_handshake_handshake_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_handshake_handshake_proto_init() } +func file_handshake_handshake_proto_init() { + if File_handshake_handshake_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_handshake_handshake_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BoxEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil } } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ResponderAcceptPayload: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResponderAcceptPayload: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ResponderAccountSig", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHandshake - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthHandshake - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthHandshake - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ResponderAccountSig = append(m.ResponderAccountSig[:0], dAtA[iNdEx:postIndex]...) - if m.ResponderAccountSig == nil { - m.ResponderAccountSig = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipHandshake(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthHandshake - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RequesterAcknowledgePayload) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHandshake + file_handshake_handshake_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*HelloPayload); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RequesterAcknowledgePayload: wiretype end group for non-group") } - if fieldNum <= 0 { - return fmt.Errorf("proto: RequesterAcknowledgePayload: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Success", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowHandshake - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Success = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipHandshake(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthHandshake + file_handshake_handshake_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequesterAuthenticatePayload); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipHandshake(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowHandshake - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break + file_handshake_handshake_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResponderAcceptPayload); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil } } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowHandshake - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowHandshake - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthHandshake + file_handshake_handshake_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequesterAcknowledgePayload); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupHandshake - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthHandshake - } - if depth == 0 { - return iNdEx, nil } } - return 0, io.ErrUnexpectedEOF + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_handshake_handshake_proto_rawDesc, + NumEnums: 0, + NumMessages: 5, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_handshake_handshake_proto_goTypes, + DependencyIndexes: file_handshake_handshake_proto_depIdxs, + MessageInfos: file_handshake_handshake_proto_msgTypes, + }.Build() + File_handshake_handshake_proto = out.File + file_handshake_handshake_proto_rawDesc = nil + file_handshake_handshake_proto_goTypes = nil + file_handshake_handshake_proto_depIdxs = nil } - -var ( - ErrInvalidLengthHandshake = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowHandshake = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupHandshake = fmt.Errorf("proto: unexpected end of group") -) diff --git a/internal/tools/tools.go b/internal/tools/tools.go index 09e607c7..b7d06115 100644 --- a/internal/tools/tools.go +++ b/internal/tools/tools.go @@ -12,10 +12,6 @@ import ( // required by Makefile _ "github.com/daixiang0/gci" // required by protoc - _ "github.com/gogo/protobuf/gogoproto" - // required by protoc - _ "github.com/gogo/protobuf/protoc-gen-gogo" - // required by protoc _ "github.com/gogo/protobuf/types" // required by protoc _ "github.com/golang/protobuf/proto" @@ -28,6 +24,10 @@ import ( // required by protoc _ "github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc" // required by protoc + _ "github.com/srikrsna/protoc-gen-gotag" + // required by protoc + _ "github.com/srikrsna/protoc-gen-gotag/tagger" + // required by protoc _ "golang.org/x/tools/cmd/goimports" // required by protoc _ "google.golang.org/grpc/cmd/protoc-gen-go-grpc" diff --git a/pkg/errcode/errcode.pb.go b/pkg/errcode/errcode.pb.go index 120dda85..7e847571 100644 --- a/pkg/errcode/errcode.pb.go +++ b/pkg/errcode/errcode.pb.go @@ -1,726 +1,605 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.34.1 +// protoc (unknown) // source: errcode/errcode.proto package errcode import ( - fmt "fmt" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" - io "io" - math "math" - math_bits "math/bits" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type ErrCode int32 const ( - Undefined ErrCode = 0 - TODO ErrCode = 666 - ErrNotImplemented ErrCode = 777 - ErrInternal ErrCode = 888 - ErrInvalidInput ErrCode = 100 - ErrInvalidRange ErrCode = 101 - ErrMissingInput ErrCode = 102 - ErrSerialization ErrCode = 103 - ErrDeserialization ErrCode = 104 - ErrStreamRead ErrCode = 105 - ErrStreamWrite ErrCode = 106 - ErrStreamTransform ErrCode = 110 - ErrStreamSendAndClose ErrCode = 111 - ErrStreamHeaderWrite ErrCode = 112 - ErrStreamHeaderRead ErrCode = 115 - ErrStreamSink ErrCode = 113 - ErrStreamCloseAndRecv ErrCode = 114 - ErrMissingMapKey ErrCode = 107 - ErrDBWrite ErrCode = 108 - ErrDBRead ErrCode = 109 - ErrDBDestroy ErrCode = 120 - ErrDBMigrate ErrCode = 121 - ErrDBReplay ErrCode = 122 - ErrDBRestore ErrCode = 123 - ErrDBOpen ErrCode = 124 - ErrDBClose ErrCode = 125 - ErrCryptoRandomGeneration ErrCode = 200 - ErrCryptoKeyGeneration ErrCode = 201 - ErrCryptoNonceGeneration ErrCode = 202 - ErrCryptoSignature ErrCode = 203 - ErrCryptoSignatureVerification ErrCode = 204 - ErrCryptoDecrypt ErrCode = 205 - ErrCryptoDecryptPayload ErrCode = 206 - ErrCryptoEncrypt ErrCode = 207 - ErrCryptoKeyConversion ErrCode = 208 - ErrCryptoCipherInit ErrCode = 209 - ErrCryptoKeyDerivation ErrCode = 210 - ErrMap ErrCode = 300 - ErrForEach ErrCode = 301 - ErrKeystoreGet ErrCode = 400 - ErrKeystorePut ErrCode = 401 - ErrNotFound ErrCode = 404 - ErrOrbitDBInit ErrCode = 1000 - ErrOrbitDBOpen ErrCode = 1001 - ErrOrbitDBAppend ErrCode = 1002 - ErrOrbitDBDeserialization ErrCode = 1003 - ErrOrbitDBStoreCast ErrCode = 1004 - ErrHandshakeOwnEphemeralKeyGenSend ErrCode = 1100 - ErrHandshakePeerEphemeralKeyRecv ErrCode = 1101 - ErrHandshakeRequesterAuthenticateBoxKeyGen ErrCode = 1102 - ErrHandshakeResponderAcceptBoxKeyGen ErrCode = 1103 - ErrHandshakeRequesterHello ErrCode = 1104 - ErrHandshakeResponderHello ErrCode = 1105 - ErrHandshakeRequesterAuthenticate ErrCode = 1106 - ErrHandshakeResponderAccept ErrCode = 1107 - ErrHandshakeRequesterAcknowledge ErrCode = 1108 - ErrContactRequestSameAccount ErrCode = 1200 - ErrContactRequestContactAlreadyAdded ErrCode = 1201 - ErrContactRequestContactBlocked ErrCode = 1202 - ErrContactRequestContactUndefined ErrCode = 1203 - ErrContactRequestIncomingAlreadyReceived ErrCode = 1204 - ErrGroupMemberLogEventOpen ErrCode = 1300 - ErrGroupMemberLogEventSignature ErrCode = 1301 - ErrGroupMemberUnknownGroupID ErrCode = 1302 - ErrGroupSecretOtherDestMember ErrCode = 1303 - ErrGroupSecretAlreadySentToMember ErrCode = 1304 - ErrGroupInvalidType ErrCode = 1305 - ErrGroupMissing ErrCode = 1306 - ErrGroupActivate ErrCode = 1307 - ErrGroupDeactivate ErrCode = 1308 - ErrGroupInfo ErrCode = 1309 - ErrGroupUnknown ErrCode = 1310 - ErrGroupOpen ErrCode = 1311 - ErrMessageKeyPersistencePut ErrCode = 1500 - ErrMessageKeyPersistenceGet ErrCode = 1501 - ErrServiceReplication ErrCode = 4100 - ErrServiceReplicationServer ErrCode = 4101 - ErrServiceReplicationMissingEndpoint ErrCode = 4102 - ErrServicesDirectory ErrCode = 4200 - ErrServicesDirectoryInvalidVerifiedCredentialSubject ErrCode = 4201 - ErrServicesDirectoryExistingRecordNotFound ErrCode = 4202 - ErrServicesDirectoryRecordLockedAndCantBeReplaced ErrCode = 4203 - ErrServicesDirectoryExplicitReplaceFlagRequired ErrCode = 4204 - ErrServicesDirectoryInvalidVerifiedCredential ErrCode = 4205 - ErrServicesDirectoryExpiredVerifiedCredential ErrCode = 4206 - ErrServicesDirectoryInvalidVerifiedCredentialID ErrCode = 4207 + ErrCode_Undefined ErrCode = 0 // default value, should never be set manually + ErrCode_TODO ErrCode = 666 // indicates that you plan to create an error later + ErrCode_ErrNotImplemented ErrCode = 777 // indicates that a method is not implemented yet + ErrCode_ErrInternal ErrCode = 888 // indicates an unknown error (without Code), i.e. in gRPC + ErrCode_ErrInvalidInput ErrCode = 100 + ErrCode_ErrInvalidRange ErrCode = 101 + ErrCode_ErrMissingInput ErrCode = 102 + ErrCode_ErrSerialization ErrCode = 103 + ErrCode_ErrDeserialization ErrCode = 104 + ErrCode_ErrStreamRead ErrCode = 105 + ErrCode_ErrStreamWrite ErrCode = 106 + ErrCode_ErrStreamTransform ErrCode = 110 + ErrCode_ErrStreamSendAndClose ErrCode = 111 + ErrCode_ErrStreamHeaderWrite ErrCode = 112 + ErrCode_ErrStreamHeaderRead ErrCode = 115 + ErrCode_ErrStreamSink ErrCode = 113 + ErrCode_ErrStreamCloseAndRecv ErrCode = 114 + ErrCode_ErrMissingMapKey ErrCode = 107 + ErrCode_ErrDBWrite ErrCode = 108 + ErrCode_ErrDBRead ErrCode = 109 + ErrCode_ErrDBDestroy ErrCode = 120 + ErrCode_ErrDBMigrate ErrCode = 121 + ErrCode_ErrDBReplay ErrCode = 122 + ErrCode_ErrDBRestore ErrCode = 123 + ErrCode_ErrDBOpen ErrCode = 124 + ErrCode_ErrDBClose ErrCode = 125 + ErrCode_ErrCryptoRandomGeneration ErrCode = 200 + ErrCode_ErrCryptoKeyGeneration ErrCode = 201 + ErrCode_ErrCryptoNonceGeneration ErrCode = 202 + ErrCode_ErrCryptoSignature ErrCode = 203 + ErrCode_ErrCryptoSignatureVerification ErrCode = 204 + ErrCode_ErrCryptoDecrypt ErrCode = 205 + ErrCode_ErrCryptoDecryptPayload ErrCode = 206 + ErrCode_ErrCryptoEncrypt ErrCode = 207 + ErrCode_ErrCryptoKeyConversion ErrCode = 208 + ErrCode_ErrCryptoCipherInit ErrCode = 209 + ErrCode_ErrCryptoKeyDerivation ErrCode = 210 + ErrCode_ErrMap ErrCode = 300 + ErrCode_ErrForEach ErrCode = 301 + ErrCode_ErrKeystoreGet ErrCode = 400 + ErrCode_ErrKeystorePut ErrCode = 401 + ErrCode_ErrNotFound ErrCode = 404 // generic + ErrCode_ErrOrbitDBInit ErrCode = 1000 + ErrCode_ErrOrbitDBOpen ErrCode = 1001 + ErrCode_ErrOrbitDBAppend ErrCode = 1002 + ErrCode_ErrOrbitDBDeserialization ErrCode = 1003 + ErrCode_ErrOrbitDBStoreCast ErrCode = 1004 + ErrCode_ErrHandshakeOwnEphemeralKeyGenSend ErrCode = 1100 + ErrCode_ErrHandshakePeerEphemeralKeyRecv ErrCode = 1101 + ErrCode_ErrHandshakeRequesterAuthenticateBoxKeyGen ErrCode = 1102 + ErrCode_ErrHandshakeResponderAcceptBoxKeyGen ErrCode = 1103 + ErrCode_ErrHandshakeRequesterHello ErrCode = 1104 + ErrCode_ErrHandshakeResponderHello ErrCode = 1105 + ErrCode_ErrHandshakeRequesterAuthenticate ErrCode = 1106 + ErrCode_ErrHandshakeResponderAccept ErrCode = 1107 + ErrCode_ErrHandshakeRequesterAcknowledge ErrCode = 1108 + ErrCode_ErrContactRequestSameAccount ErrCode = 1200 + ErrCode_ErrContactRequestContactAlreadyAdded ErrCode = 1201 + ErrCode_ErrContactRequestContactBlocked ErrCode = 1202 + ErrCode_ErrContactRequestContactUndefined ErrCode = 1203 + ErrCode_ErrContactRequestIncomingAlreadyReceived ErrCode = 1204 + ErrCode_ErrGroupMemberLogEventOpen ErrCode = 1300 + ErrCode_ErrGroupMemberLogEventSignature ErrCode = 1301 + ErrCode_ErrGroupMemberUnknownGroupID ErrCode = 1302 + ErrCode_ErrGroupSecretOtherDestMember ErrCode = 1303 + ErrCode_ErrGroupSecretAlreadySentToMember ErrCode = 1304 + ErrCode_ErrGroupInvalidType ErrCode = 1305 + ErrCode_ErrGroupMissing ErrCode = 1306 + ErrCode_ErrGroupActivate ErrCode = 1307 + ErrCode_ErrGroupDeactivate ErrCode = 1308 + ErrCode_ErrGroupInfo ErrCode = 1309 + ErrCode_ErrGroupUnknown ErrCode = 1310 + ErrCode_ErrGroupOpen ErrCode = 1311 + ErrCode_ErrMessageKeyPersistencePut ErrCode = 1500 + ErrCode_ErrMessageKeyPersistenceGet ErrCode = 1501 + ErrCode_ErrServiceReplication ErrCode = 4100 + ErrCode_ErrServiceReplicationServer ErrCode = 4101 + ErrCode_ErrServiceReplicationMissingEndpoint ErrCode = 4102 + ErrCode_ErrServicesDirectory ErrCode = 4200 + ErrCode_ErrServicesDirectoryInvalidVerifiedCredentialSubject ErrCode = 4201 + ErrCode_ErrServicesDirectoryExistingRecordNotFound ErrCode = 4202 + ErrCode_ErrServicesDirectoryRecordLockedAndCantBeReplaced ErrCode = 4203 + ErrCode_ErrServicesDirectoryExplicitReplaceFlagRequired ErrCode = 4204 + ErrCode_ErrServicesDirectoryInvalidVerifiedCredential ErrCode = 4205 + ErrCode_ErrServicesDirectoryExpiredVerifiedCredential ErrCode = 4206 + ErrCode_ErrServicesDirectoryInvalidVerifiedCredentialID ErrCode = 4207 ) -var ErrCode_name = map[int32]string{ - 0: "Undefined", - 666: "TODO", - 777: "ErrNotImplemented", - 888: "ErrInternal", - 100: "ErrInvalidInput", - 101: "ErrInvalidRange", - 102: "ErrMissingInput", - 103: "ErrSerialization", - 104: "ErrDeserialization", - 105: "ErrStreamRead", - 106: "ErrStreamWrite", - 110: "ErrStreamTransform", - 111: "ErrStreamSendAndClose", - 112: "ErrStreamHeaderWrite", - 115: "ErrStreamHeaderRead", - 113: "ErrStreamSink", - 114: "ErrStreamCloseAndRecv", - 107: "ErrMissingMapKey", - 108: "ErrDBWrite", - 109: "ErrDBRead", - 120: "ErrDBDestroy", - 121: "ErrDBMigrate", - 122: "ErrDBReplay", - 123: "ErrDBRestore", - 124: "ErrDBOpen", - 125: "ErrDBClose", - 200: "ErrCryptoRandomGeneration", - 201: "ErrCryptoKeyGeneration", - 202: "ErrCryptoNonceGeneration", - 203: "ErrCryptoSignature", - 204: "ErrCryptoSignatureVerification", - 205: "ErrCryptoDecrypt", - 206: "ErrCryptoDecryptPayload", - 207: "ErrCryptoEncrypt", - 208: "ErrCryptoKeyConversion", - 209: "ErrCryptoCipherInit", - 210: "ErrCryptoKeyDerivation", - 300: "ErrMap", - 301: "ErrForEach", - 400: "ErrKeystoreGet", - 401: "ErrKeystorePut", - 404: "ErrNotFound", - 1000: "ErrOrbitDBInit", - 1001: "ErrOrbitDBOpen", - 1002: "ErrOrbitDBAppend", - 1003: "ErrOrbitDBDeserialization", - 1004: "ErrOrbitDBStoreCast", - 1100: "ErrHandshakeOwnEphemeralKeyGenSend", - 1101: "ErrHandshakePeerEphemeralKeyRecv", - 1102: "ErrHandshakeRequesterAuthenticateBoxKeyGen", - 1103: "ErrHandshakeResponderAcceptBoxKeyGen", - 1104: "ErrHandshakeRequesterHello", - 1105: "ErrHandshakeResponderHello", - 1106: "ErrHandshakeRequesterAuthenticate", - 1107: "ErrHandshakeResponderAccept", - 1108: "ErrHandshakeRequesterAcknowledge", - 1200: "ErrContactRequestSameAccount", - 1201: "ErrContactRequestContactAlreadyAdded", - 1202: "ErrContactRequestContactBlocked", - 1203: "ErrContactRequestContactUndefined", - 1204: "ErrContactRequestIncomingAlreadyReceived", - 1300: "ErrGroupMemberLogEventOpen", - 1301: "ErrGroupMemberLogEventSignature", - 1302: "ErrGroupMemberUnknownGroupID", - 1303: "ErrGroupSecretOtherDestMember", - 1304: "ErrGroupSecretAlreadySentToMember", - 1305: "ErrGroupInvalidType", - 1306: "ErrGroupMissing", - 1307: "ErrGroupActivate", - 1308: "ErrGroupDeactivate", - 1309: "ErrGroupInfo", - 1310: "ErrGroupUnknown", - 1311: "ErrGroupOpen", - 1500: "ErrMessageKeyPersistencePut", - 1501: "ErrMessageKeyPersistenceGet", - 4100: "ErrServiceReplication", - 4101: "ErrServiceReplicationServer", - 4102: "ErrServiceReplicationMissingEndpoint", - 4200: "ErrServicesDirectory", - 4201: "ErrServicesDirectoryInvalidVerifiedCredentialSubject", - 4202: "ErrServicesDirectoryExistingRecordNotFound", - 4203: "ErrServicesDirectoryRecordLockedAndCantBeReplaced", - 4204: "ErrServicesDirectoryExplicitReplaceFlagRequired", - 4205: "ErrServicesDirectoryInvalidVerifiedCredential", - 4206: "ErrServicesDirectoryExpiredVerifiedCredential", - 4207: "ErrServicesDirectoryInvalidVerifiedCredentialID", -} +// Enum value maps for ErrCode. +var ( + ErrCode_name = map[int32]string{ + 0: "Undefined", + 666: "TODO", + 777: "ErrNotImplemented", + 888: "ErrInternal", + 100: "ErrInvalidInput", + 101: "ErrInvalidRange", + 102: "ErrMissingInput", + 103: "ErrSerialization", + 104: "ErrDeserialization", + 105: "ErrStreamRead", + 106: "ErrStreamWrite", + 110: "ErrStreamTransform", + 111: "ErrStreamSendAndClose", + 112: "ErrStreamHeaderWrite", + 115: "ErrStreamHeaderRead", + 113: "ErrStreamSink", + 114: "ErrStreamCloseAndRecv", + 107: "ErrMissingMapKey", + 108: "ErrDBWrite", + 109: "ErrDBRead", + 120: "ErrDBDestroy", + 121: "ErrDBMigrate", + 122: "ErrDBReplay", + 123: "ErrDBRestore", + 124: "ErrDBOpen", + 125: "ErrDBClose", + 200: "ErrCryptoRandomGeneration", + 201: "ErrCryptoKeyGeneration", + 202: "ErrCryptoNonceGeneration", + 203: "ErrCryptoSignature", + 204: "ErrCryptoSignatureVerification", + 205: "ErrCryptoDecrypt", + 206: "ErrCryptoDecryptPayload", + 207: "ErrCryptoEncrypt", + 208: "ErrCryptoKeyConversion", + 209: "ErrCryptoCipherInit", + 210: "ErrCryptoKeyDerivation", + 300: "ErrMap", + 301: "ErrForEach", + 400: "ErrKeystoreGet", + 401: "ErrKeystorePut", + 404: "ErrNotFound", + 1000: "ErrOrbitDBInit", + 1001: "ErrOrbitDBOpen", + 1002: "ErrOrbitDBAppend", + 1003: "ErrOrbitDBDeserialization", + 1004: "ErrOrbitDBStoreCast", + 1100: "ErrHandshakeOwnEphemeralKeyGenSend", + 1101: "ErrHandshakePeerEphemeralKeyRecv", + 1102: "ErrHandshakeRequesterAuthenticateBoxKeyGen", + 1103: "ErrHandshakeResponderAcceptBoxKeyGen", + 1104: "ErrHandshakeRequesterHello", + 1105: "ErrHandshakeResponderHello", + 1106: "ErrHandshakeRequesterAuthenticate", + 1107: "ErrHandshakeResponderAccept", + 1108: "ErrHandshakeRequesterAcknowledge", + 1200: "ErrContactRequestSameAccount", + 1201: "ErrContactRequestContactAlreadyAdded", + 1202: "ErrContactRequestContactBlocked", + 1203: "ErrContactRequestContactUndefined", + 1204: "ErrContactRequestIncomingAlreadyReceived", + 1300: "ErrGroupMemberLogEventOpen", + 1301: "ErrGroupMemberLogEventSignature", + 1302: "ErrGroupMemberUnknownGroupID", + 1303: "ErrGroupSecretOtherDestMember", + 1304: "ErrGroupSecretAlreadySentToMember", + 1305: "ErrGroupInvalidType", + 1306: "ErrGroupMissing", + 1307: "ErrGroupActivate", + 1308: "ErrGroupDeactivate", + 1309: "ErrGroupInfo", + 1310: "ErrGroupUnknown", + 1311: "ErrGroupOpen", + 1500: "ErrMessageKeyPersistencePut", + 1501: "ErrMessageKeyPersistenceGet", + 4100: "ErrServiceReplication", + 4101: "ErrServiceReplicationServer", + 4102: "ErrServiceReplicationMissingEndpoint", + 4200: "ErrServicesDirectory", + 4201: "ErrServicesDirectoryInvalidVerifiedCredentialSubject", + 4202: "ErrServicesDirectoryExistingRecordNotFound", + 4203: "ErrServicesDirectoryRecordLockedAndCantBeReplaced", + 4204: "ErrServicesDirectoryExplicitReplaceFlagRequired", + 4205: "ErrServicesDirectoryInvalidVerifiedCredential", + 4206: "ErrServicesDirectoryExpiredVerifiedCredential", + 4207: "ErrServicesDirectoryInvalidVerifiedCredentialID", + } + ErrCode_value = map[string]int32{ + "Undefined": 0, + "TODO": 666, + "ErrNotImplemented": 777, + "ErrInternal": 888, + "ErrInvalidInput": 100, + "ErrInvalidRange": 101, + "ErrMissingInput": 102, + "ErrSerialization": 103, + "ErrDeserialization": 104, + "ErrStreamRead": 105, + "ErrStreamWrite": 106, + "ErrStreamTransform": 110, + "ErrStreamSendAndClose": 111, + "ErrStreamHeaderWrite": 112, + "ErrStreamHeaderRead": 115, + "ErrStreamSink": 113, + "ErrStreamCloseAndRecv": 114, + "ErrMissingMapKey": 107, + "ErrDBWrite": 108, + "ErrDBRead": 109, + "ErrDBDestroy": 120, + "ErrDBMigrate": 121, + "ErrDBReplay": 122, + "ErrDBRestore": 123, + "ErrDBOpen": 124, + "ErrDBClose": 125, + "ErrCryptoRandomGeneration": 200, + "ErrCryptoKeyGeneration": 201, + "ErrCryptoNonceGeneration": 202, + "ErrCryptoSignature": 203, + "ErrCryptoSignatureVerification": 204, + "ErrCryptoDecrypt": 205, + "ErrCryptoDecryptPayload": 206, + "ErrCryptoEncrypt": 207, + "ErrCryptoKeyConversion": 208, + "ErrCryptoCipherInit": 209, + "ErrCryptoKeyDerivation": 210, + "ErrMap": 300, + "ErrForEach": 301, + "ErrKeystoreGet": 400, + "ErrKeystorePut": 401, + "ErrNotFound": 404, + "ErrOrbitDBInit": 1000, + "ErrOrbitDBOpen": 1001, + "ErrOrbitDBAppend": 1002, + "ErrOrbitDBDeserialization": 1003, + "ErrOrbitDBStoreCast": 1004, + "ErrHandshakeOwnEphemeralKeyGenSend": 1100, + "ErrHandshakePeerEphemeralKeyRecv": 1101, + "ErrHandshakeRequesterAuthenticateBoxKeyGen": 1102, + "ErrHandshakeResponderAcceptBoxKeyGen": 1103, + "ErrHandshakeRequesterHello": 1104, + "ErrHandshakeResponderHello": 1105, + "ErrHandshakeRequesterAuthenticate": 1106, + "ErrHandshakeResponderAccept": 1107, + "ErrHandshakeRequesterAcknowledge": 1108, + "ErrContactRequestSameAccount": 1200, + "ErrContactRequestContactAlreadyAdded": 1201, + "ErrContactRequestContactBlocked": 1202, + "ErrContactRequestContactUndefined": 1203, + "ErrContactRequestIncomingAlreadyReceived": 1204, + "ErrGroupMemberLogEventOpen": 1300, + "ErrGroupMemberLogEventSignature": 1301, + "ErrGroupMemberUnknownGroupID": 1302, + "ErrGroupSecretOtherDestMember": 1303, + "ErrGroupSecretAlreadySentToMember": 1304, + "ErrGroupInvalidType": 1305, + "ErrGroupMissing": 1306, + "ErrGroupActivate": 1307, + "ErrGroupDeactivate": 1308, + "ErrGroupInfo": 1309, + "ErrGroupUnknown": 1310, + "ErrGroupOpen": 1311, + "ErrMessageKeyPersistencePut": 1500, + "ErrMessageKeyPersistenceGet": 1501, + "ErrServiceReplication": 4100, + "ErrServiceReplicationServer": 4101, + "ErrServiceReplicationMissingEndpoint": 4102, + "ErrServicesDirectory": 4200, + "ErrServicesDirectoryInvalidVerifiedCredentialSubject": 4201, + "ErrServicesDirectoryExistingRecordNotFound": 4202, + "ErrServicesDirectoryRecordLockedAndCantBeReplaced": 4203, + "ErrServicesDirectoryExplicitReplaceFlagRequired": 4204, + "ErrServicesDirectoryInvalidVerifiedCredential": 4205, + "ErrServicesDirectoryExpiredVerifiedCredential": 4206, + "ErrServicesDirectoryInvalidVerifiedCredentialID": 4207, + } +) -var ErrCode_value = map[string]int32{ - "Undefined": 0, - "TODO": 666, - "ErrNotImplemented": 777, - "ErrInternal": 888, - "ErrInvalidInput": 100, - "ErrInvalidRange": 101, - "ErrMissingInput": 102, - "ErrSerialization": 103, - "ErrDeserialization": 104, - "ErrStreamRead": 105, - "ErrStreamWrite": 106, - "ErrStreamTransform": 110, - "ErrStreamSendAndClose": 111, - "ErrStreamHeaderWrite": 112, - "ErrStreamHeaderRead": 115, - "ErrStreamSink": 113, - "ErrStreamCloseAndRecv": 114, - "ErrMissingMapKey": 107, - "ErrDBWrite": 108, - "ErrDBRead": 109, - "ErrDBDestroy": 120, - "ErrDBMigrate": 121, - "ErrDBReplay": 122, - "ErrDBRestore": 123, - "ErrDBOpen": 124, - "ErrDBClose": 125, - "ErrCryptoRandomGeneration": 200, - "ErrCryptoKeyGeneration": 201, - "ErrCryptoNonceGeneration": 202, - "ErrCryptoSignature": 203, - "ErrCryptoSignatureVerification": 204, - "ErrCryptoDecrypt": 205, - "ErrCryptoDecryptPayload": 206, - "ErrCryptoEncrypt": 207, - "ErrCryptoKeyConversion": 208, - "ErrCryptoCipherInit": 209, - "ErrCryptoKeyDerivation": 210, - "ErrMap": 300, - "ErrForEach": 301, - "ErrKeystoreGet": 400, - "ErrKeystorePut": 401, - "ErrNotFound": 404, - "ErrOrbitDBInit": 1000, - "ErrOrbitDBOpen": 1001, - "ErrOrbitDBAppend": 1002, - "ErrOrbitDBDeserialization": 1003, - "ErrOrbitDBStoreCast": 1004, - "ErrHandshakeOwnEphemeralKeyGenSend": 1100, - "ErrHandshakePeerEphemeralKeyRecv": 1101, - "ErrHandshakeRequesterAuthenticateBoxKeyGen": 1102, - "ErrHandshakeResponderAcceptBoxKeyGen": 1103, - "ErrHandshakeRequesterHello": 1104, - "ErrHandshakeResponderHello": 1105, - "ErrHandshakeRequesterAuthenticate": 1106, - "ErrHandshakeResponderAccept": 1107, - "ErrHandshakeRequesterAcknowledge": 1108, - "ErrContactRequestSameAccount": 1200, - "ErrContactRequestContactAlreadyAdded": 1201, - "ErrContactRequestContactBlocked": 1202, - "ErrContactRequestContactUndefined": 1203, - "ErrContactRequestIncomingAlreadyReceived": 1204, - "ErrGroupMemberLogEventOpen": 1300, - "ErrGroupMemberLogEventSignature": 1301, - "ErrGroupMemberUnknownGroupID": 1302, - "ErrGroupSecretOtherDestMember": 1303, - "ErrGroupSecretAlreadySentToMember": 1304, - "ErrGroupInvalidType": 1305, - "ErrGroupMissing": 1306, - "ErrGroupActivate": 1307, - "ErrGroupDeactivate": 1308, - "ErrGroupInfo": 1309, - "ErrGroupUnknown": 1310, - "ErrGroupOpen": 1311, - "ErrMessageKeyPersistencePut": 1500, - "ErrMessageKeyPersistenceGet": 1501, - "ErrServiceReplication": 4100, - "ErrServiceReplicationServer": 4101, - "ErrServiceReplicationMissingEndpoint": 4102, - "ErrServicesDirectory": 4200, - "ErrServicesDirectoryInvalidVerifiedCredentialSubject": 4201, - "ErrServicesDirectoryExistingRecordNotFound": 4202, - "ErrServicesDirectoryRecordLockedAndCantBeReplaced": 4203, - "ErrServicesDirectoryExplicitReplaceFlagRequired": 4204, - "ErrServicesDirectoryInvalidVerifiedCredential": 4205, - "ErrServicesDirectoryExpiredVerifiedCredential": 4206, - "ErrServicesDirectoryInvalidVerifiedCredentialID": 4207, +func (x ErrCode) Enum() *ErrCode { + p := new(ErrCode) + *p = x + return p } func (x ErrCode) String() string { - return proto.EnumName(ErrCode_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } -func (ErrCode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_fb5abb189af31c1a, []int{0} +func (ErrCode) Descriptor() protoreflect.EnumDescriptor { + return file_errcode_errcode_proto_enumTypes[0].Descriptor() } -type ErrDetails struct { - Codes []ErrCode `protobuf:"varint,1,rep,packed,name=codes,proto3,enum=weshnet.errcode.ErrCode" json:"codes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (ErrCode) Type() protoreflect.EnumType { + return &file_errcode_errcode_proto_enumTypes[0] } -func (m *ErrDetails) Reset() { *m = ErrDetails{} } -func (m *ErrDetails) String() string { return proto.CompactTextString(m) } -func (*ErrDetails) ProtoMessage() {} -func (*ErrDetails) Descriptor() ([]byte, []int) { - return fileDescriptor_fb5abb189af31c1a, []int{0} -} -func (m *ErrDetails) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ErrDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ErrDetails.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ErrDetails) XXX_Merge(src proto.Message) { - xxx_messageInfo_ErrDetails.Merge(m, src) -} -func (m *ErrDetails) XXX_Size() int { - return m.Size() +func (x ErrCode) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } -func (m *ErrDetails) XXX_DiscardUnknown() { - xxx_messageInfo_ErrDetails.DiscardUnknown(m) + +// Deprecated: Use ErrCode.Descriptor instead. +func (ErrCode) EnumDescriptor() ([]byte, []int) { + return file_errcode_errcode_proto_rawDescGZIP(), []int{0} } -var xxx_messageInfo_ErrDetails proto.InternalMessageInfo +type ErrDetails struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ErrDetails) GetCodes() []ErrCode { - if m != nil { - return m.Codes - } - return nil + Codes []ErrCode `protobuf:"varint,1,rep,packed,name=codes,proto3,enum=weshnet.errcode.ErrCode" json:"codes,omitempty"` } -func init() { - proto.RegisterEnum("weshnet.errcode.ErrCode", ErrCode_name, ErrCode_value) - proto.RegisterType((*ErrDetails)(nil), "weshnet.errcode.ErrDetails") +func (x *ErrDetails) Reset() { + *x = ErrDetails{} + if protoimpl.UnsafeEnabled { + mi := &file_errcode_errcode_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func init() { proto.RegisterFile("errcode/errcode.proto", fileDescriptor_fb5abb189af31c1a) } - -var fileDescriptor_fb5abb189af31c1a = []byte{ - // 1290 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x56, 0x5b, 0x6f, 0x5b, 0xc5, - 0x16, 0xae, 0xdb, 0xd3, 0x5c, 0x26, 0xa7, 0xcd, 0xea, 0x24, 0x6d, 0xd3, 0x9b, 0xeb, 0xf6, 0xf4, - 0x9c, 0x53, 0x2a, 0x35, 0x81, 0x52, 0x21, 0x21, 0xf1, 0xe2, 0xc4, 0x6e, 0x6b, 0xa5, 0x69, 0x22, - 0x3b, 0x05, 0x89, 0xb7, 0xc9, 0x9e, 0x95, 0xed, 0x69, 0xb6, 0x67, 0x76, 0x67, 0x8f, 0xdd, 0xb8, - 0xc0, 0x1b, 0x20, 0xf1, 0x06, 0x52, 0xb9, 0x95, 0xdb, 0x1f, 0x00, 0x89, 0xdb, 0x8f, 0x28, 0xd0, - 0x4b, 0x5a, 0x78, 0x03, 0x24, 0xe8, 0x53, 0x6f, 0xc0, 0x2b, 0x8f, 0x68, 0xcf, 0x4c, 0x1c, 0x3b, - 0x76, 0x8a, 0x78, 0xb2, 0xf7, 0xb7, 0xbe, 0x75, 0x9f, 0x59, 0x6b, 0xc8, 0x4e, 0xd4, 0x3a, 0x50, - 0x1c, 0x27, 0xfc, 0xef, 0x78, 0xac, 0x95, 0x51, 0x74, 0xf8, 0x12, 0x26, 0x55, 0x89, 0x66, 0xdc, - 0xc3, 0x7b, 0x47, 0x43, 0x15, 0x2a, 0x2b, 0x9b, 0x48, 0xff, 0x39, 0xda, 0xe1, 0xe7, 0x08, 0x29, - 0x6a, 0x5d, 0x40, 0xc3, 0x44, 0x94, 0xd0, 0x71, 0xb2, 0x35, 0xe5, 0x26, 0x63, 0x99, 0xdc, 0x96, - 0xa3, 0xdb, 0x4f, 0x8c, 0x8d, 0xaf, 0x33, 0x32, 0x5e, 0xd4, 0x7a, 0x4a, 0x71, 0x2c, 0x3b, 0xda, - 0xb1, 0x1f, 0x47, 0x48, 0xbf, 0x87, 0xe8, 0x36, 0x32, 0x78, 0x5e, 0x72, 0x5c, 0x14, 0x12, 0x39, - 0x6c, 0xa2, 0x83, 0xe4, 0x5f, 0xf3, 0xb3, 0x85, 0x59, 0xb8, 0xba, 0x95, 0xee, 0x22, 0x3b, 0x8a, - 0x5a, 0x9f, 0x53, 0xa6, 0x54, 0x8b, 0x23, 0xac, 0xa1, 0x34, 0xc8, 0xe1, 0x8d, 0x3e, 0x0a, 0x64, - 0xa8, 0xa8, 0x75, 0x49, 0x1a, 0xd4, 0x92, 0x45, 0xf0, 0x67, 0x1f, 0x1d, 0x21, 0xc3, 0x16, 0x69, - 0xb0, 0x48, 0xf0, 0x92, 0x8c, 0xeb, 0x06, 0x78, 0x27, 0x58, 0x66, 0x32, 0x44, 0x40, 0x0f, 0xce, - 0x88, 0x24, 0x11, 0x32, 0x74, 0xcc, 0x45, 0x3a, 0x4a, 0xa0, 0xa8, 0x75, 0x05, 0xb5, 0x60, 0x91, - 0xb8, 0xcc, 0x8c, 0x50, 0x12, 0x42, 0xba, 0x8b, 0x50, 0x9b, 0x62, 0xd2, 0x81, 0x57, 0xe9, 0x0e, - 0xb2, 0x2d, 0x65, 0x1b, 0x8d, 0xac, 0x56, 0x46, 0xc6, 0x41, 0x50, 0x4a, 0xb6, 0xb7, 0xa0, 0x17, - 0xb4, 0x30, 0x08, 0x17, 0xbc, 0xba, 0xc3, 0xe6, 0x35, 0x93, 0xc9, 0xa2, 0xd2, 0x35, 0x90, 0x74, - 0x0f, 0xd9, 0xd9, 0xc2, 0x2b, 0x28, 0x79, 0x5e, 0xf2, 0xa9, 0x48, 0x25, 0x08, 0x8a, 0x8e, 0x91, - 0xd1, 0x96, 0xe8, 0x0c, 0x32, 0x8e, 0xda, 0x19, 0x8b, 0xe9, 0x6e, 0x32, 0xb2, 0x4e, 0x62, 0x3d, - 0x27, 0x1d, 0xc1, 0x54, 0x84, 0x5c, 0x82, 0x8b, 0x1d, 0x0e, 0xac, 0xe5, 0xbc, 0xe4, 0x65, 0x0c, - 0x1a, 0xa0, 0x7d, 0xa2, 0x3e, 0xfb, 0x19, 0x16, 0x4f, 0x63, 0x13, 0x96, 0xe8, 0x76, 0xd7, 0xcb, - 0x49, 0xe7, 0x2c, 0x4a, 0x3b, 0x62, 0xbf, 0xad, 0x8b, 0x1a, 0x05, 0xf2, 0x6f, 0xfb, 0x59, 0xc0, - 0xc4, 0x68, 0xd5, 0x84, 0xe5, 0x16, 0x32, 0x23, 0x42, 0xcd, 0x0c, 0x42, 0x93, 0x0e, 0xdb, 0x96, - 0xa4, 0x2a, 0x71, 0xc4, 0x9a, 0x70, 0xb9, 0x45, 0x29, 0x63, 0x62, 0x94, 0x46, 0x78, 0xa9, 0x65, - 0x75, 0x36, 0x46, 0x09, 0x2f, 0xb7, 0x9c, 0xba, 0xdc, 0x5f, 0xa1, 0x59, 0xb2, 0x27, 0x3d, 0x11, - 0xba, 0x19, 0x1b, 0x55, 0x66, 0x92, 0xab, 0xda, 0x69, 0x94, 0xa8, 0x5d, 0xd1, 0xaf, 0x65, 0xe8, - 0x3e, 0xb2, 0xab, 0x25, 0x9f, 0xc6, 0x66, 0x9b, 0xf0, 0x9b, 0x0c, 0x3d, 0x40, 0xc6, 0x5a, 0xc2, - 0x73, 0x4a, 0x06, 0xd8, 0x26, 0xfe, 0x36, 0x43, 0x77, 0xdb, 0x56, 0x38, 0x71, 0x45, 0x84, 0x92, - 0x99, 0xba, 0x46, 0xf8, 0x2e, 0x43, 0xff, 0x43, 0xb2, 0xdd, 0x82, 0xe7, 0x51, 0x8b, 0x45, 0x11, - 0x38, 0xed, 0xeb, 0x19, 0xba, 0xd3, 0x16, 0xcd, 0x91, 0x0a, 0x18, 0xa4, 0xbf, 0x70, 0x23, 0x43, - 0xf7, 0x93, 0xdd, 0xeb, 0xe1, 0x39, 0xd6, 0x8c, 0x14, 0xe3, 0x70, 0xb3, 0x53, 0xa9, 0x28, 0x9d, - 0xd2, 0xad, 0xae, 0x2c, 0xa6, 0x94, 0x6c, 0xa0, 0x4e, 0x52, 0x47, 0x2b, 0x19, 0x3a, 0x66, 0x9b, - 0xec, 0x84, 0x53, 0x22, 0xae, 0xa2, 0x2e, 0x49, 0x61, 0xe0, 0x76, 0x97, 0x5a, 0x01, 0xb5, 0x68, - 0xb8, 0xf8, 0xee, 0x64, 0xe8, 0x10, 0xe9, 0x4b, 0x9b, 0xca, 0x62, 0xf8, 0x74, 0x33, 0x1d, 0xb6, - 0x65, 0x3d, 0xa5, 0x74, 0x91, 0x05, 0x55, 0xf8, 0x6c, 0x33, 0x1d, 0xb1, 0x47, 0x73, 0x1a, 0x9b, - 0xb6, 0x0f, 0xa7, 0xd1, 0xc0, 0x9b, 0x5b, 0xd6, 0x81, 0x73, 0x75, 0x03, 0x6f, 0x6d, 0xf1, 0xd7, - 0xea, 0x9c, 0x32, 0xa7, 0x54, 0x5d, 0x72, 0xb8, 0xb2, 0x4a, 0x9b, 0xd5, 0x0b, 0xc2, 0x14, 0x26, - 0x6d, 0x2c, 0xf7, 0xfa, 0x3b, 0x41, 0xdb, 0xcc, 0xfb, 0xfd, 0x3e, 0x5d, 0x0f, 0xe6, 0xe3, 0x18, - 0x25, 0x87, 0x07, 0xfd, 0xbe, 0xa9, 0x1e, 0x5e, 0x7f, 0x93, 0x1e, 0xf6, 0xfb, 0x8c, 0xbd, 0xbc, - 0x92, 0xc6, 0x32, 0xc5, 0x12, 0x03, 0x8f, 0xfa, 0xe9, 0xff, 0xc9, 0xe1, 0xa2, 0xd6, 0x67, 0x98, - 0xe4, 0x49, 0x95, 0x2d, 0xe1, 0xec, 0x25, 0x59, 0x8c, 0xab, 0x58, 0x43, 0xcd, 0x22, 0xd7, 0xfd, - 0xf4, 0xea, 0xc0, 0xf5, 0x01, 0xfa, 0x5f, 0x92, 0x6b, 0x27, 0xce, 0x21, 0xea, 0x76, 0xa6, 0x3d, - 0xf8, 0x37, 0x06, 0xe8, 0x04, 0x39, 0xd6, 0x4e, 0x2b, 0xe3, 0xc5, 0x3a, 0x26, 0x06, 0x75, 0xbe, - 0x6e, 0xaa, 0x28, 0x4d, 0xda, 0x6e, 0x9c, 0x54, 0xcb, 0xce, 0x36, 0xdc, 0x1c, 0xa0, 0x4f, 0x90, - 0x23, 0x9d, 0x0a, 0x49, 0xac, 0x24, 0x47, 0x9d, 0x0f, 0x02, 0x8c, 0xcd, 0x1a, 0xf5, 0xd6, 0x00, - 0x3d, 0x48, 0xf6, 0xf6, 0xb4, 0x7d, 0x06, 0xa3, 0x48, 0xc1, 0x4a, 0x0f, 0x82, 0xb7, 0xe5, 0x08, - 0xb7, 0x07, 0xe8, 0xff, 0xc8, 0xa1, 0xbf, 0x8d, 0x0e, 0xee, 0x0c, 0xd0, 0x1c, 0xd9, 0xf7, 0x98, - 0xa0, 0xe0, 0xfb, 0xae, 0x72, 0xac, 0x59, 0x0a, 0x96, 0xa4, 0xba, 0x14, 0x21, 0x0f, 0x11, 0x7e, - 0x18, 0xa0, 0x87, 0xc8, 0x7e, 0x3b, 0x7f, 0xa5, 0x61, 0x81, 0xf1, 0xa4, 0x0a, 0xab, 0x61, 0x3e, - 0x08, 0x54, 0x5d, 0x1a, 0xf8, 0x7c, 0xd0, 0x17, 0xa0, 0x93, 0xe2, 0xbf, 0xf2, 0x91, 0x46, 0xc6, - 0x9b, 0x79, 0xce, 0x91, 0xc3, 0x17, 0x83, 0xf4, 0x08, 0x39, 0xb8, 0x11, 0x75, 0x32, 0x52, 0xc1, - 0x12, 0x72, 0xf8, 0x72, 0xd0, 0x27, 0xd9, 0x93, 0xb5, 0xb6, 0x00, 0xbe, 0x1a, 0xa4, 0xc7, 0xc9, - 0xd1, 0x2e, 0x5e, 0x49, 0x06, 0xaa, 0x26, 0x64, 0xe8, 0x3d, 0x97, 0x31, 0x40, 0xd1, 0x40, 0x0e, - 0x5f, 0x0f, 0xfa, 0xe2, 0x9e, 0xd6, 0xaa, 0x1e, 0xcf, 0x60, 0x6d, 0x01, 0xf5, 0x59, 0x15, 0x16, - 0x1b, 0x28, 0x8d, 0x3d, 0x9b, 0x57, 0x88, 0x8f, 0xae, 0x07, 0x61, 0x6d, 0x14, 0xbc, 0x4d, 0x7c, - 0x45, 0xda, 0x58, 0xe7, 0x65, 0x5a, 0x31, 0x69, 0x91, 0x52, 0x01, 0xde, 0x21, 0xf4, 0x30, 0x39, - 0xb0, 0x4a, 0xa9, 0x60, 0xa0, 0xd1, 0xcc, 0x9a, 0x2a, 0xa6, 0x0b, 0xc2, 0x38, 0x0d, 0x78, 0x97, - 0xf8, 0x24, 0xdb, 0x38, 0x3e, 0xe2, 0x0a, 0x4a, 0x33, 0xaf, 0x3c, 0xef, 0x3d, 0xe2, 0x4f, 0xbe, - 0x33, 0xee, 0x36, 0xd4, 0x7c, 0x33, 0x46, 0x78, 0x9f, 0xd0, 0x51, 0xbb, 0xa1, 0x5c, 0x20, 0x6e, - 0x50, 0xc3, 0x55, 0xe2, 0x2f, 0x98, 0x45, 0xf3, 0x81, 0x49, 0x6f, 0x3f, 0xc2, 0x07, 0xc4, 0x4f, - 0x36, 0x0b, 0x17, 0x90, 0xad, 0x0a, 0x3e, 0x24, 0x74, 0x87, 0x9d, 0xbf, 0xde, 0xfe, 0xa2, 0x82, - 0x8f, 0x3a, 0x0c, 0xfb, 0xdc, 0xe0, 0xe3, 0x0e, 0xa2, 0x2d, 0xd8, 0x27, 0xc4, 0x9f, 0xb2, 0x19, - 0x4c, 0x12, 0x16, 0xe2, 0x34, 0x36, 0xe7, 0xd2, 0x11, 0x95, 0x18, 0x94, 0x81, 0x1d, 0x15, 0x3f, - 0x0d, 0x3d, 0x8e, 0x91, 0x4e, 0x98, 0x9f, 0x87, 0xe8, 0x5e, 0xb7, 0x84, 0x50, 0x37, 0x44, 0x80, - 0xe9, 0x56, 0x58, 0x1d, 0xa8, 0xaf, 0xe6, 0xbc, 0x76, 0xb7, 0x2c, 0x45, 0x50, 0xc3, 0x6b, 0x39, - 0x7f, 0xf6, 0xba, 0x19, 0xbe, 0x20, 0x45, 0xc9, 0x63, 0x25, 0xa4, 0x81, 0xd7, 0x73, 0x74, 0x8f, - 0xdb, 0x99, 0x8e, 0x9a, 0x14, 0x84, 0xc6, 0xc0, 0x28, 0xdd, 0x84, 0x7b, 0x39, 0xfa, 0x2c, 0x39, - 0xd9, 0x4b, 0xe4, 0xeb, 0xed, 0xc6, 0x3c, 0xf2, 0x29, 0x8d, 0x3c, 0xbd, 0x63, 0x2c, 0xaa, 0xd4, - 0x17, 0x2e, 0x60, 0x60, 0xe0, 0x7e, 0xce, 0x8f, 0x8b, 0x2e, 0xd5, 0xe2, 0xb2, 0x48, 0x8c, 0x90, - 0x61, 0x19, 0x03, 0xa5, 0x79, 0x6b, 0x54, 0x3e, 0xc8, 0xd1, 0x67, 0xc8, 0x53, 0xbd, 0x14, 0x1c, - 0xf1, 0xac, 0xbd, 0x03, 0xe9, 0xa2, 0x67, 0xd2, 0x4c, 0xda, 0x84, 0x58, 0x80, 0x1c, 0x1e, 0xe6, - 0xe8, 0x49, 0x32, 0xd1, 0xdb, 0x51, 0x9a, 0xb3, 0x30, 0x9e, 0x7a, 0x2a, 0x62, 0x61, 0x7a, 0x13, - 0x84, 0x46, 0x0e, 0x8f, 0x72, 0xf4, 0x04, 0x39, 0xfe, 0x8f, 0x32, 0x83, 0xdf, 0x36, 0xd4, 0x29, - 0x2e, 0xc7, 0xa9, 0xd5, 0x1e, 0x3a, 0xbf, 0x6f, 0x18, 0xdd, 0x86, 0x7e, 0x4a, 0x05, 0xf8, 0x23, - 0x37, 0xf9, 0xe4, 0xca, 0xaf, 0xd9, 0x4d, 0xd7, 0xee, 0x66, 0x33, 0x2b, 0x77, 0xb3, 0x99, 0x5f, - 0xee, 0x66, 0x33, 0x2f, 0x66, 0x17, 0x50, 0x9b, 0xe6, 0xb8, 0xc1, 0xa0, 0x3a, 0xe1, 0x9f, 0x86, - 0x13, 0xf1, 0x52, 0xb8, 0xfa, 0xf4, 0x5c, 0xe8, 0xb3, 0x8f, 0xca, 0xa7, 0xff, 0x0a, 0x00, 0x00, - 0xff, 0xff, 0x89, 0xad, 0x04, 0x21, 0x94, 0x0a, 0x00, 0x00, +func (x *ErrDetails) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ErrDetails) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (*ErrDetails) ProtoMessage() {} + +func (x *ErrDetails) ProtoReflect() protoreflect.Message { + mi := &file_errcode_errcode_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return dAtA[:n], nil + return mi.MessageOf(x) } -func (m *ErrDetails) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Deprecated: Use ErrDetails.ProtoReflect.Descriptor instead. +func (*ErrDetails) Descriptor() ([]byte, []int) { + return file_errcode_errcode_proto_rawDescGZIP(), []int{0} } -func (m *ErrDetails) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Codes) > 0 { - dAtA2 := make([]byte, len(m.Codes)*10) - var j1 int - for _, num := range m.Codes { - for num >= 1<<7 { - dAtA2[j1] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j1++ - } - dAtA2[j1] = uint8(num) - j1++ - } - i -= j1 - copy(dAtA[i:], dAtA2[:j1]) - i = encodeVarintErrcode(dAtA, i, uint64(j1)) - i-- - dAtA[i] = 0xa +func (x *ErrDetails) GetCodes() []ErrCode { + if x != nil { + return x.Codes } - return len(dAtA) - i, nil + return nil } -func encodeVarintErrcode(dAtA []byte, offset int, v uint64) int { - offset -= sovErrcode(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base +var File_errcode_errcode_proto protoreflect.FileDescriptor + +var file_errcode_errcode_proto_rawDesc = []byte{ + 0x0a, 0x15, 0x65, 0x72, 0x72, 0x63, 0x6f, 0x64, 0x65, 0x2f, 0x65, 0x72, 0x72, 0x63, 0x6f, 0x64, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, + 0x2e, 0x65, 0x72, 0x72, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x3c, 0x0a, 0x0a, 0x45, 0x72, 0x72, 0x44, + 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x2e, 0x0a, 0x05, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, + 0x65, 0x72, 0x72, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x45, 0x72, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x52, + 0x05, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x2a, 0xdb, 0x13, 0x0a, 0x07, 0x45, 0x72, 0x72, 0x43, 0x6f, + 0x64, 0x65, 0x12, 0x0d, 0x0a, 0x09, 0x55, 0x6e, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x64, 0x10, + 0x00, 0x12, 0x09, 0x0a, 0x04, 0x54, 0x4f, 0x44, 0x4f, 0x10, 0x9a, 0x05, 0x12, 0x16, 0x0a, 0x11, + 0x45, 0x72, 0x72, 0x4e, 0x6f, 0x74, 0x49, 0x6d, 0x70, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x65, + 0x64, 0x10, 0x89, 0x06, 0x12, 0x10, 0x0a, 0x0b, 0x45, 0x72, 0x72, 0x49, 0x6e, 0x74, 0x65, 0x72, + 0x6e, 0x61, 0x6c, 0x10, 0xf8, 0x06, 0x12, 0x13, 0x0a, 0x0f, 0x45, 0x72, 0x72, 0x49, 0x6e, 0x76, + 0x61, 0x6c, 0x69, 0x64, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x10, 0x64, 0x12, 0x13, 0x0a, 0x0f, 0x45, + 0x72, 0x72, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x10, 0x65, + 0x12, 0x13, 0x0a, 0x0f, 0x45, 0x72, 0x72, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x49, 0x6e, + 0x70, 0x75, 0x74, 0x10, 0x66, 0x12, 0x14, 0x0a, 0x10, 0x45, 0x72, 0x72, 0x53, 0x65, 0x72, 0x69, + 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x10, 0x67, 0x12, 0x16, 0x0a, 0x12, 0x45, + 0x72, 0x72, 0x44, 0x65, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x10, 0x68, 0x12, 0x11, 0x0a, 0x0d, 0x45, 0x72, 0x72, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, + 0x52, 0x65, 0x61, 0x64, 0x10, 0x69, 0x12, 0x12, 0x0a, 0x0e, 0x45, 0x72, 0x72, 0x53, 0x74, 0x72, + 0x65, 0x61, 0x6d, 0x57, 0x72, 0x69, 0x74, 0x65, 0x10, 0x6a, 0x12, 0x16, 0x0a, 0x12, 0x45, 0x72, + 0x72, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, + 0x10, 0x6e, 0x12, 0x19, 0x0a, 0x15, 0x45, 0x72, 0x72, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x53, + 0x65, 0x6e, 0x64, 0x41, 0x6e, 0x64, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x10, 0x6f, 0x12, 0x18, 0x0a, + 0x14, 0x45, 0x72, 0x72, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, + 0x57, 0x72, 0x69, 0x74, 0x65, 0x10, 0x70, 0x12, 0x17, 0x0a, 0x13, 0x45, 0x72, 0x72, 0x53, 0x74, + 0x72, 0x65, 0x61, 0x6d, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x65, 0x61, 0x64, 0x10, 0x73, + 0x12, 0x11, 0x0a, 0x0d, 0x45, 0x72, 0x72, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x53, 0x69, 0x6e, + 0x6b, 0x10, 0x71, 0x12, 0x19, 0x0a, 0x15, 0x45, 0x72, 0x72, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, + 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x41, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x76, 0x10, 0x72, 0x12, 0x14, + 0x0a, 0x10, 0x45, 0x72, 0x72, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x4d, 0x61, 0x70, 0x4b, + 0x65, 0x79, 0x10, 0x6b, 0x12, 0x0e, 0x0a, 0x0a, 0x45, 0x72, 0x72, 0x44, 0x42, 0x57, 0x72, 0x69, + 0x74, 0x65, 0x10, 0x6c, 0x12, 0x0d, 0x0a, 0x09, 0x45, 0x72, 0x72, 0x44, 0x42, 0x52, 0x65, 0x61, + 0x64, 0x10, 0x6d, 0x12, 0x10, 0x0a, 0x0c, 0x45, 0x72, 0x72, 0x44, 0x42, 0x44, 0x65, 0x73, 0x74, + 0x72, 0x6f, 0x79, 0x10, 0x78, 0x12, 0x10, 0x0a, 0x0c, 0x45, 0x72, 0x72, 0x44, 0x42, 0x4d, 0x69, + 0x67, 0x72, 0x61, 0x74, 0x65, 0x10, 0x79, 0x12, 0x0f, 0x0a, 0x0b, 0x45, 0x72, 0x72, 0x44, 0x42, + 0x52, 0x65, 0x70, 0x6c, 0x61, 0x79, 0x10, 0x7a, 0x12, 0x10, 0x0a, 0x0c, 0x45, 0x72, 0x72, 0x44, + 0x42, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x10, 0x7b, 0x12, 0x0d, 0x0a, 0x09, 0x45, 0x72, + 0x72, 0x44, 0x42, 0x4f, 0x70, 0x65, 0x6e, 0x10, 0x7c, 0x12, 0x0e, 0x0a, 0x0a, 0x45, 0x72, 0x72, + 0x44, 0x42, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x10, 0x7d, 0x12, 0x1e, 0x0a, 0x19, 0x45, 0x72, 0x72, + 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x47, 0x65, 0x6e, 0x65, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x10, 0xc8, 0x01, 0x12, 0x1b, 0x0a, 0x16, 0x45, 0x72, 0x72, + 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x4b, 0x65, 0x79, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x10, 0xc9, 0x01, 0x12, 0x1d, 0x0a, 0x18, 0x45, 0x72, 0x72, 0x43, 0x72, 0x79, + 0x70, 0x74, 0x6f, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x10, 0xca, 0x01, 0x12, 0x17, 0x0a, 0x12, 0x45, 0x72, 0x72, 0x43, 0x72, 0x79, 0x70, + 0x74, 0x6f, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x10, 0xcb, 0x01, 0x12, 0x23, + 0x0a, 0x1e, 0x45, 0x72, 0x72, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x53, 0x69, 0x67, 0x6e, 0x61, + 0x74, 0x75, 0x72, 0x65, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x10, 0xcc, 0x01, 0x12, 0x15, 0x0a, 0x10, 0x45, 0x72, 0x72, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, + 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x10, 0xcd, 0x01, 0x12, 0x1c, 0x0a, 0x17, 0x45, 0x72, + 0x72, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x50, 0x61, + 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x10, 0xce, 0x01, 0x12, 0x15, 0x0a, 0x10, 0x45, 0x72, 0x72, 0x43, + 0x72, 0x79, 0x70, 0x74, 0x6f, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x10, 0xcf, 0x01, 0x12, + 0x1b, 0x0a, 0x16, 0x45, 0x72, 0x72, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x4b, 0x65, 0x79, 0x43, + 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x10, 0xd0, 0x01, 0x12, 0x18, 0x0a, 0x13, + 0x45, 0x72, 0x72, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x43, 0x69, 0x70, 0x68, 0x65, 0x72, 0x49, + 0x6e, 0x69, 0x74, 0x10, 0xd1, 0x01, 0x12, 0x1b, 0x0a, 0x16, 0x45, 0x72, 0x72, 0x43, 0x72, 0x79, + 0x70, 0x74, 0x6f, 0x4b, 0x65, 0x79, 0x44, 0x65, 0x72, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x10, 0xd2, 0x01, 0x12, 0x0b, 0x0a, 0x06, 0x45, 0x72, 0x72, 0x4d, 0x61, 0x70, 0x10, 0xac, 0x02, + 0x12, 0x0f, 0x0a, 0x0a, 0x45, 0x72, 0x72, 0x46, 0x6f, 0x72, 0x45, 0x61, 0x63, 0x68, 0x10, 0xad, + 0x02, 0x12, 0x13, 0x0a, 0x0e, 0x45, 0x72, 0x72, 0x4b, 0x65, 0x79, 0x73, 0x74, 0x6f, 0x72, 0x65, + 0x47, 0x65, 0x74, 0x10, 0x90, 0x03, 0x12, 0x13, 0x0a, 0x0e, 0x45, 0x72, 0x72, 0x4b, 0x65, 0x79, + 0x73, 0x74, 0x6f, 0x72, 0x65, 0x50, 0x75, 0x74, 0x10, 0x91, 0x03, 0x12, 0x10, 0x0a, 0x0b, 0x45, + 0x72, 0x72, 0x4e, 0x6f, 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x10, 0x94, 0x03, 0x12, 0x13, 0x0a, + 0x0e, 0x45, 0x72, 0x72, 0x4f, 0x72, 0x62, 0x69, 0x74, 0x44, 0x42, 0x49, 0x6e, 0x69, 0x74, 0x10, + 0xe8, 0x07, 0x12, 0x13, 0x0a, 0x0e, 0x45, 0x72, 0x72, 0x4f, 0x72, 0x62, 0x69, 0x74, 0x44, 0x42, + 0x4f, 0x70, 0x65, 0x6e, 0x10, 0xe9, 0x07, 0x12, 0x15, 0x0a, 0x10, 0x45, 0x72, 0x72, 0x4f, 0x72, + 0x62, 0x69, 0x74, 0x44, 0x42, 0x41, 0x70, 0x70, 0x65, 0x6e, 0x64, 0x10, 0xea, 0x07, 0x12, 0x1e, + 0x0a, 0x19, 0x45, 0x72, 0x72, 0x4f, 0x72, 0x62, 0x69, 0x74, 0x44, 0x42, 0x44, 0x65, 0x73, 0x65, + 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x10, 0xeb, 0x07, 0x12, 0x18, + 0x0a, 0x13, 0x45, 0x72, 0x72, 0x4f, 0x72, 0x62, 0x69, 0x74, 0x44, 0x42, 0x53, 0x74, 0x6f, 0x72, + 0x65, 0x43, 0x61, 0x73, 0x74, 0x10, 0xec, 0x07, 0x12, 0x27, 0x0a, 0x22, 0x45, 0x72, 0x72, 0x48, + 0x61, 0x6e, 0x64, 0x73, 0x68, 0x61, 0x6b, 0x65, 0x4f, 0x77, 0x6e, 0x45, 0x70, 0x68, 0x65, 0x6d, + 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, 0x79, 0x47, 0x65, 0x6e, 0x53, 0x65, 0x6e, 0x64, 0x10, 0xcc, + 0x08, 0x12, 0x25, 0x0a, 0x20, 0x45, 0x72, 0x72, 0x48, 0x61, 0x6e, 0x64, 0x73, 0x68, 0x61, 0x6b, + 0x65, 0x50, 0x65, 0x65, 0x72, 0x45, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x4b, 0x65, + 0x79, 0x52, 0x65, 0x63, 0x76, 0x10, 0xcd, 0x08, 0x12, 0x2f, 0x0a, 0x2a, 0x45, 0x72, 0x72, 0x48, + 0x61, 0x6e, 0x64, 0x73, 0x68, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, + 0x72, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x42, 0x6f, 0x78, + 0x4b, 0x65, 0x79, 0x47, 0x65, 0x6e, 0x10, 0xce, 0x08, 0x12, 0x29, 0x0a, 0x24, 0x45, 0x72, 0x72, + 0x48, 0x61, 0x6e, 0x64, 0x73, 0x68, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, + 0x65, 0x72, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x42, 0x6f, 0x78, 0x4b, 0x65, 0x79, 0x47, 0x65, + 0x6e, 0x10, 0xcf, 0x08, 0x12, 0x1f, 0x0a, 0x1a, 0x45, 0x72, 0x72, 0x48, 0x61, 0x6e, 0x64, 0x73, + 0x68, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x72, 0x48, 0x65, 0x6c, + 0x6c, 0x6f, 0x10, 0xd0, 0x08, 0x12, 0x1f, 0x0a, 0x1a, 0x45, 0x72, 0x72, 0x48, 0x61, 0x6e, 0x64, + 0x73, 0x68, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x65, 0x72, 0x48, 0x65, + 0x6c, 0x6c, 0x6f, 0x10, 0xd1, 0x08, 0x12, 0x26, 0x0a, 0x21, 0x45, 0x72, 0x72, 0x48, 0x61, 0x6e, + 0x64, 0x73, 0x68, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x72, 0x41, + 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x10, 0xd2, 0x08, 0x12, 0x20, + 0x0a, 0x1b, 0x45, 0x72, 0x72, 0x48, 0x61, 0x6e, 0x64, 0x73, 0x68, 0x61, 0x6b, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x64, 0x65, 0x72, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x10, 0xd3, 0x08, + 0x12, 0x25, 0x0a, 0x20, 0x45, 0x72, 0x72, 0x48, 0x61, 0x6e, 0x64, 0x73, 0x68, 0x61, 0x6b, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x72, 0x41, 0x63, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, + 0x65, 0x64, 0x67, 0x65, 0x10, 0xd4, 0x08, 0x12, 0x21, 0x0a, 0x1c, 0x45, 0x72, 0x72, 0x43, 0x6f, + 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x53, 0x61, 0x6d, 0x65, + 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x10, 0xb0, 0x09, 0x12, 0x29, 0x0a, 0x24, 0x45, 0x72, + 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, + 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x41, 0x6c, 0x72, 0x65, 0x61, 0x64, 0x79, 0x41, 0x64, 0x64, + 0x65, 0x64, 0x10, 0xb1, 0x09, 0x12, 0x24, 0x0a, 0x1f, 0x45, 0x72, 0x72, 0x43, 0x6f, 0x6e, 0x74, + 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, + 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x10, 0xb2, 0x09, 0x12, 0x26, 0x0a, 0x21, 0x45, + 0x72, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x55, 0x6e, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x64, + 0x10, 0xb3, 0x09, 0x12, 0x2d, 0x0a, 0x28, 0x45, 0x72, 0x72, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x63, 0x6f, 0x6d, 0x69, 0x6e, 0x67, + 0x41, 0x6c, 0x72, 0x65, 0x61, 0x64, 0x79, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x10, + 0xb4, 0x09, 0x12, 0x1f, 0x0a, 0x1a, 0x45, 0x72, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, + 0x6d, 0x62, 0x65, 0x72, 0x4c, 0x6f, 0x67, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4f, 0x70, 0x65, 0x6e, + 0x10, 0x94, 0x0a, 0x12, 0x24, 0x0a, 0x1f, 0x45, 0x72, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, + 0x65, 0x6d, 0x62, 0x65, 0x72, 0x4c, 0x6f, 0x67, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x53, 0x69, 0x67, + 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x10, 0x95, 0x0a, 0x12, 0x21, 0x0a, 0x1c, 0x45, 0x72, 0x72, + 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, + 0x77, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x44, 0x10, 0x96, 0x0a, 0x12, 0x22, 0x0a, 0x1d, + 0x45, 0x72, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x4f, 0x74, + 0x68, 0x65, 0x72, 0x44, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x10, 0x97, 0x0a, + 0x12, 0x26, 0x0a, 0x21, 0x45, 0x72, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x65, 0x63, 0x72, + 0x65, 0x74, 0x41, 0x6c, 0x72, 0x65, 0x61, 0x64, 0x79, 0x53, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x4d, + 0x65, 0x6d, 0x62, 0x65, 0x72, 0x10, 0x98, 0x0a, 0x12, 0x18, 0x0a, 0x13, 0x45, 0x72, 0x72, 0x47, + 0x72, 0x6f, 0x75, 0x70, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x54, 0x79, 0x70, 0x65, 0x10, + 0x99, 0x0a, 0x12, 0x14, 0x0a, 0x0f, 0x45, 0x72, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x69, + 0x73, 0x73, 0x69, 0x6e, 0x67, 0x10, 0x9a, 0x0a, 0x12, 0x15, 0x0a, 0x10, 0x45, 0x72, 0x72, 0x47, + 0x72, 0x6f, 0x75, 0x70, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x10, 0x9b, 0x0a, 0x12, + 0x17, 0x0a, 0x12, 0x45, 0x72, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x44, 0x65, 0x61, 0x63, 0x74, + 0x69, 0x76, 0x61, 0x74, 0x65, 0x10, 0x9c, 0x0a, 0x12, 0x11, 0x0a, 0x0c, 0x45, 0x72, 0x72, 0x47, + 0x72, 0x6f, 0x75, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x10, 0x9d, 0x0a, 0x12, 0x14, 0x0a, 0x0f, 0x45, + 0x72, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x10, 0x9e, + 0x0a, 0x12, 0x11, 0x0a, 0x0c, 0x45, 0x72, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4f, 0x70, 0x65, + 0x6e, 0x10, 0x9f, 0x0a, 0x12, 0x20, 0x0a, 0x1b, 0x45, 0x72, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x4b, 0x65, 0x79, 0x50, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x65, + 0x50, 0x75, 0x74, 0x10, 0xdc, 0x0b, 0x12, 0x20, 0x0a, 0x1b, 0x45, 0x72, 0x72, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x4b, 0x65, 0x79, 0x50, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, + 0x63, 0x65, 0x47, 0x65, 0x74, 0x10, 0xdd, 0x0b, 0x12, 0x1a, 0x0a, 0x15, 0x45, 0x72, 0x72, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x10, 0x84, 0x20, 0x12, 0x20, 0x0a, 0x1b, 0x45, 0x72, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x10, 0x85, 0x20, 0x12, 0x29, 0x0a, 0x24, 0x45, 0x72, 0x72, 0x53, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, + 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x10, 0x86, + 0x20, 0x12, 0x19, 0x0a, 0x14, 0x45, 0x72, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, + 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x10, 0xe8, 0x20, 0x12, 0x39, 0x0a, 0x34, + 0x45, 0x72, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x44, 0x69, 0x72, 0x65, 0x63, + 0x74, 0x6f, 0x72, 0x79, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x56, 0x65, 0x72, 0x69, 0x66, + 0x69, 0x65, 0x64, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x53, 0x75, 0x62, + 0x6a, 0x65, 0x63, 0x74, 0x10, 0xe9, 0x20, 0x12, 0x2f, 0x0a, 0x2a, 0x45, 0x72, 0x72, 0x53, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x45, + 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x4e, 0x6f, 0x74, + 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x10, 0xea, 0x20, 0x12, 0x36, 0x0a, 0x31, 0x45, 0x72, 0x72, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, + 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x4c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x41, 0x6e, 0x64, 0x43, + 0x61, 0x6e, 0x74, 0x42, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x64, 0x10, 0xeb, 0x20, + 0x12, 0x34, 0x0a, 0x2f, 0x45, 0x72, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x44, + 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x45, 0x78, 0x70, 0x6c, 0x69, 0x63, 0x69, 0x74, + 0x52, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x46, 0x6c, 0x61, 0x67, 0x52, 0x65, 0x71, 0x75, 0x69, + 0x72, 0x65, 0x64, 0x10, 0xec, 0x20, 0x12, 0x32, 0x0a, 0x2d, 0x45, 0x72, 0x72, 0x53, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x73, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x49, 0x6e, + 0x76, 0x61, 0x6c, 0x69, 0x64, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x43, 0x72, 0x65, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x10, 0xed, 0x20, 0x12, 0x32, 0x0a, 0x2d, 0x45, 0x72, + 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, + 0x72, 0x79, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, + 0x64, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x10, 0xee, 0x20, 0x12, 0x34, + 0x0a, 0x2f, 0x45, 0x72, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x44, 0x69, 0x72, + 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x56, 0x65, 0x72, + 0x69, 0x66, 0x69, 0x65, 0x64, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x49, + 0x44, 0x10, 0xef, 0x20, 0x42, 0x20, 0x5a, 0x1e, 0x62, 0x65, 0x72, 0x74, 0x79, 0x2e, 0x74, 0x65, + 0x63, 0x68, 0x2f, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x65, + 0x72, 0x72, 0x63, 0x6f, 0x64, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func (m *ErrDetails) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Codes) > 0 { - l = 0 - for _, e := range m.Codes { - l += sovErrcode(uint64(e)) - } - n += 1 + sovErrcode(uint64(l)) + l - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + +var ( + file_errcode_errcode_proto_rawDescOnce sync.Once + file_errcode_errcode_proto_rawDescData = file_errcode_errcode_proto_rawDesc +) + +func file_errcode_errcode_proto_rawDescGZIP() []byte { + file_errcode_errcode_proto_rawDescOnce.Do(func() { + file_errcode_errcode_proto_rawDescData = protoimpl.X.CompressGZIP(file_errcode_errcode_proto_rawDescData) + }) + return file_errcode_errcode_proto_rawDescData } -func sovErrcode(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 +var file_errcode_errcode_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_errcode_errcode_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_errcode_errcode_proto_goTypes = []interface{}{ + (ErrCode)(0), // 0: weshnet.errcode.ErrCode + (*ErrDetails)(nil), // 1: weshnet.errcode.ErrDetails } -func sozErrcode(x uint64) (n int) { - return sovErrcode(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +var file_errcode_errcode_proto_depIdxs = []int32{ + 0, // 0: weshnet.errcode.ErrDetails.codes:type_name -> weshnet.errcode.ErrCode + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name } -func (m *ErrDetails) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowErrcode - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ErrDetails: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ErrDetails: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType == 0 { - var v ErrCode - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowErrcode - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= ErrCode(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Codes = append(m.Codes, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowErrcode - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthErrcode - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthErrcode - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - if elementCount != 0 && len(m.Codes) == 0 { - m.Codes = make([]ErrCode, 0, elementCount) - } - for iNdEx < postIndex { - var v ErrCode - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowErrcode - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= ErrCode(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Codes = append(m.Codes, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field Codes", wireType) - } - default: - iNdEx = preIndex - skippy, err := skipErrcode(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthErrcode - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func init() { file_errcode_errcode_proto_init() } +func file_errcode_errcode_proto_init() { + if File_errcode_errcode_proto != nil { + return } - return nil -} -func skipErrcode(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowErrcode - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowErrcode - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } + if !protoimpl.UnsafeEnabled { + file_errcode_errcode_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ErrDetails); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowErrcode - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthErrcode - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupErrcode - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthErrcode - } - if depth == 0 { - return iNdEx, nil } } - return 0, io.ErrUnexpectedEOF + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_errcode_errcode_proto_rawDesc, + NumEnums: 1, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_errcode_errcode_proto_goTypes, + DependencyIndexes: file_errcode_errcode_proto_depIdxs, + EnumInfos: file_errcode_errcode_proto_enumTypes, + MessageInfos: file_errcode_errcode_proto_msgTypes, + }.Build() + File_errcode_errcode_proto = out.File + file_errcode_errcode_proto_rawDesc = nil + file_errcode_errcode_proto_goTypes = nil + file_errcode_errcode_proto_depIdxs = nil } - -var ( - ErrInvalidLengthErrcode = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowErrcode = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupErrcode = fmt.Errorf("proto: unexpected end of group") -) diff --git a/pkg/outofstoremessagetypes/outofstoremessage.pb.go b/pkg/outofstoremessagetypes/outofstoremessage.pb.go index 6ba8ad38..c018a44e 100644 --- a/pkg/outofstoremessagetypes/outofstoremessage.pb.go +++ b/pkg/outofstoremessagetypes/outofstoremessage.pb.go @@ -1,44 +1,83 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.34.1 +// protoc (unknown) // source: outofstoremessagetypes/outofstoremessage.proto package outofstoremessagetypes import ( - _ "berty.tech/weshnet/pkg/protocoltypes" - fmt "fmt" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" - math "math" + protocoltypes "berty.tech/weshnet/pkg/protocoltypes" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +var File_outofstoremessagetypes_outofstoremessage_proto protoreflect.FileDescriptor -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +var file_outofstoremessagetypes_outofstoremessage_proto_rawDesc = []byte{ + 0x0a, 0x2e, 0x6f, 0x75, 0x74, 0x6f, 0x66, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x6d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x6f, 0x75, 0x74, 0x6f, 0x66, 0x73, 0x74, + 0x6f, 0x72, 0x65, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x1c, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x6f, 0x75, 0x74, 0x6f, 0x66, 0x73, + 0x74, 0x6f, 0x72, 0x65, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x13, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x32, 0x8d, 0x01, 0x0a, 0x18, 0x4f, 0x75, 0x74, 0x4f, 0x66, 0x53, 0x74, 0x6f, + 0x72, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x12, 0x71, 0x0a, 0x11, 0x4f, 0x75, 0x74, 0x4f, 0x66, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x52, 0x65, + 0x63, 0x65, 0x69, 0x76, 0x65, 0x12, 0x2e, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x75, 0x74, 0x4f, + 0x66, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x2e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x75, 0x74, 0x4f, + 0x66, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x2e, 0x52, 0x65, + 0x70, 0x6c, 0x79, 0x42, 0x2f, 0x5a, 0x2d, 0x62, 0x65, 0x72, 0x74, 0x79, 0x2e, 0x74, 0x65, 0x63, + 0x68, 0x2f, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x6f, 0x75, + 0x74, 0x6f, 0x66, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} -func init() { - proto.RegisterFile("outofstoremessagetypes/outofstoremessage.proto", fileDescriptor_14aba72a66934192) +var file_outofstoremessagetypes_outofstoremessage_proto_goTypes = []interface{}{ + (*protocoltypes.OutOfStoreReceive_Request)(nil), // 0: weshnet.protocol.v1.OutOfStoreReceive.Request + (*protocoltypes.OutOfStoreReceive_Reply)(nil), // 1: weshnet.protocol.v1.OutOfStoreReceive.Reply +} +var file_outofstoremessagetypes_outofstoremessage_proto_depIdxs = []int32{ + 0, // 0: weshnet.outofstoremessage.v1.OutOfStoreMessageService.OutOfStoreReceive:input_type -> weshnet.protocol.v1.OutOfStoreReceive.Request + 1, // 1: weshnet.outofstoremessage.v1.OutOfStoreMessageService.OutOfStoreReceive:output_type -> weshnet.protocol.v1.OutOfStoreReceive.Reply + 1, // [1:2] is the sub-list for method output_type + 0, // [0:1] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name } -var fileDescriptor_14aba72a66934192 = []byte{ - // 206 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0xcb, 0x2f, 0x2d, 0xc9, - 0x4f, 0x2b, 0x2e, 0xc9, 0x2f, 0x4a, 0xcd, 0x4d, 0x2d, 0x2e, 0x4e, 0x4c, 0x4f, 0x2d, 0xa9, 0x2c, - 0x48, 0x2d, 0xd6, 0xc7, 0x10, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x92, 0x29, 0x4f, 0x2d, - 0xce, 0xc8, 0x4b, 0x2d, 0xc1, 0xd4, 0xa7, 0x57, 0x66, 0x28, 0x25, 0x92, 0x9e, 0x9f, 0x9e, 0x0f, - 0x56, 0xa8, 0x0f, 0x62, 0x41, 0xf4, 0x48, 0x09, 0x83, 0xa9, 0xe4, 0xfc, 0x1c, 0xb0, 0xd1, 0x10, - 0x41, 0xa3, 0x5e, 0x46, 0x2e, 0x09, 0xff, 0xd2, 0x12, 0xff, 0xb4, 0x60, 0x90, 0x19, 0xbe, 0x10, - 0x33, 0x82, 0x53, 0x8b, 0xca, 0x32, 0x93, 0x53, 0x85, 0x0a, 0xb9, 0x04, 0x11, 0x72, 0x41, 0xa9, - 0xc9, 0xa9, 0x99, 0x65, 0xa9, 0x42, 0x7a, 0x7a, 0x30, 0xbb, 0x61, 0xe6, 0xe9, 0x95, 0x19, 0xea, - 0x61, 0xa8, 0xd3, 0x0b, 0x4a, 0x2d, 0x2c, 0x4d, 0x2d, 0x2e, 0x91, 0xd2, 0x21, 0x5a, 0x7d, 0x41, - 0x4e, 0xa5, 0x93, 0xfd, 0x85, 0x87, 0x72, 0x0c, 0x27, 0x1e, 0xc9, 0x31, 0x5e, 0x78, 0x24, 0xc7, - 0xf8, 0xe0, 0x91, 0x1c, 0x63, 0x94, 0x6e, 0x52, 0x6a, 0x51, 0x49, 0xa5, 0x5e, 0x49, 0x6a, 0x72, - 0x86, 0x3e, 0xd4, 0x24, 0xfd, 0x82, 0xec, 0x74, 0x7d, 0xec, 0x21, 0x96, 0xc4, 0x06, 0xb6, 0xc5, - 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xea, 0xbf, 0x6c, 0x90, 0x52, 0x01, 0x00, 0x00, +func init() { file_outofstoremessagetypes_outofstoremessage_proto_init() } +func file_outofstoremessagetypes_outofstoremessage_proto_init() { + if File_outofstoremessagetypes_outofstoremessage_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_outofstoremessagetypes_outofstoremessage_proto_rawDesc, + NumEnums: 0, + NumMessages: 0, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_outofstoremessagetypes_outofstoremessage_proto_goTypes, + DependencyIndexes: file_outofstoremessagetypes_outofstoremessage_proto_depIdxs, + }.Build() + File_outofstoremessagetypes_outofstoremessage_proto = out.File + file_outofstoremessagetypes_outofstoremessage_proto_rawDesc = nil + file_outofstoremessagetypes_outofstoremessage_proto_goTypes = nil + file_outofstoremessagetypes_outofstoremessage_proto_depIdxs = nil } diff --git a/pkg/protocoltypes/protocoltypes.pb.go b/pkg/protocoltypes/protocoltypes.pb.go index 875f998d..44ca12a6 100644 --- a/pkg/protocoltypes/protocoltypes.pb.go +++ b/pkg/protocoltypes/protocoltypes.pb.go @@ -1,402 +1,591 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.34.1 +// protoc (unknown) // source: protocoltypes.proto package protocoltypes import ( - encoding_binary "encoding/binary" - fmt "fmt" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" - io "io" - math "math" - math_bits "math/bits" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type GroupType int32 const ( // GroupTypeUndefined indicates that the value has not been set. For example, happens if group is replicated. - GroupTypeUndefined GroupType = 0 + GroupType_GroupTypeUndefined GroupType = 0 // GroupTypeAccount is the group managing an account, available to all its devices. - GroupTypeAccount GroupType = 1 + GroupType_GroupTypeAccount GroupType = 1 // GroupTypeContact is the group created between two accounts, available to all their devices. - GroupTypeContact GroupType = 2 + GroupType_GroupTypeContact GroupType = 2 // GroupTypeMultiMember is a group containing an undefined number of members. - GroupTypeMultiMember GroupType = 3 + GroupType_GroupTypeMultiMember GroupType = 3 ) -var GroupType_name = map[int32]string{ - 0: "GroupTypeUndefined", - 1: "GroupTypeAccount", - 2: "GroupTypeContact", - 3: "GroupTypeMultiMember", -} +// Enum value maps for GroupType. +var ( + GroupType_name = map[int32]string{ + 0: "GroupTypeUndefined", + 1: "GroupTypeAccount", + 2: "GroupTypeContact", + 3: "GroupTypeMultiMember", + } + GroupType_value = map[string]int32{ + "GroupTypeUndefined": 0, + "GroupTypeAccount": 1, + "GroupTypeContact": 2, + "GroupTypeMultiMember": 3, + } +) -var GroupType_value = map[string]int32{ - "GroupTypeUndefined": 0, - "GroupTypeAccount": 1, - "GroupTypeContact": 2, - "GroupTypeMultiMember": 3, +func (x GroupType) Enum() *GroupType { + p := new(GroupType) + *p = x + return p } func (x GroupType) String() string { - return proto.EnumName(GroupType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (GroupType) Descriptor() protoreflect.EnumDescriptor { + return file_protocoltypes_proto_enumTypes[0].Descriptor() +} + +func (GroupType) Type() protoreflect.EnumType { + return &file_protocoltypes_proto_enumTypes[0] +} + +func (x GroupType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use GroupType.Descriptor instead. func (GroupType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{0} + return file_protocoltypes_proto_rawDescGZIP(), []int{0} } type EventType int32 const ( // EventTypeUndefined indicates that the value has not been set. Should not happen. - EventTypeUndefined EventType = 0 + EventType_EventTypeUndefined EventType = 0 // EventTypeGroupMemberDeviceAdded indicates the payload includes that a member has added their device to the group - EventTypeGroupMemberDeviceAdded EventType = 1 + EventType_EventTypeGroupMemberDeviceAdded EventType = 1 // EventTypeGroupDeviceChainKeyAdded indicates the payload includes that a member has sent their device chain key to another member - EventTypeGroupDeviceChainKeyAdded EventType = 2 + EventType_EventTypeGroupDeviceChainKeyAdded EventType = 2 // EventTypeAccountGroupJoined indicates the payload includes that the account has joined a group - EventTypeAccountGroupJoined EventType = 101 + EventType_EventTypeAccountGroupJoined EventType = 101 // EventTypeAccountGroupLeft indicates the payload includes that the account has left a group - EventTypeAccountGroupLeft EventType = 102 + EventType_EventTypeAccountGroupLeft EventType = 102 // EventTypeAccountContactRequestDisabled indicates the payload includes that the account has disabled incoming contact requests - EventTypeAccountContactRequestDisabled EventType = 103 + EventType_EventTypeAccountContactRequestDisabled EventType = 103 // EventTypeAccountContactRequestEnabled indicates the payload includes that the account has enabled incoming contact requests - EventTypeAccountContactRequestEnabled EventType = 104 + EventType_EventTypeAccountContactRequestEnabled EventType = 104 // EventTypeAccountContactRequestReferenceReset indicates the payload includes that the account has a new contact request rendezvous seed - EventTypeAccountContactRequestReferenceReset EventType = 105 + EventType_EventTypeAccountContactRequestReferenceReset EventType = 105 // EventTypeAccountContactRequestOutgoingEnqueued indicates the payload includes that the account will attempt to send a new contact request - EventTypeAccountContactRequestOutgoingEnqueued EventType = 106 + EventType_EventTypeAccountContactRequestOutgoingEnqueued EventType = 106 // EventTypeAccountContactRequestOutgoingSent indicates the payload includes that the account has sent a contact request - EventTypeAccountContactRequestOutgoingSent EventType = 107 + EventType_EventTypeAccountContactRequestOutgoingSent EventType = 107 // EventTypeAccountContactRequestIncomingReceived indicates the payload includes that the account has received a contact request - EventTypeAccountContactRequestIncomingReceived EventType = 108 + EventType_EventTypeAccountContactRequestIncomingReceived EventType = 108 // EventTypeAccountContactRequestIncomingDiscarded indicates the payload includes that the account has ignored a contact request - EventTypeAccountContactRequestIncomingDiscarded EventType = 109 + EventType_EventTypeAccountContactRequestIncomingDiscarded EventType = 109 // EventTypeAccountContactRequestIncomingAccepted indicates the payload includes that the account has accepted a contact request - EventTypeAccountContactRequestIncomingAccepted EventType = 110 + EventType_EventTypeAccountContactRequestIncomingAccepted EventType = 110 // EventTypeAccountContactBlocked indicates the payload includes that the account has blocked a contact - EventTypeAccountContactBlocked EventType = 111 + EventType_EventTypeAccountContactBlocked EventType = 111 // EventTypeAccountContactUnblocked indicates the payload includes that the account has unblocked a contact - EventTypeAccountContactUnblocked EventType = 112 + EventType_EventTypeAccountContactUnblocked EventType = 112 // EventTypeContactAliasKeyAdded indicates the payload includes that the contact group has received an alias key - EventTypeContactAliasKeyAdded EventType = 201 + EventType_EventTypeContactAliasKeyAdded EventType = 201 // EventTypeMultiMemberGroupAliasResolverAdded indicates the payload includes that a member of the group sent their alias proof - EventTypeMultiMemberGroupAliasResolverAdded EventType = 301 + EventType_EventTypeMultiMemberGroupAliasResolverAdded EventType = 301 // EventTypeMultiMemberGroupInitialMemberAnnounced indicates the payload includes that a member has authenticated themselves as the group owner - EventTypeMultiMemberGroupInitialMemberAnnounced EventType = 302 + EventType_EventTypeMultiMemberGroupInitialMemberAnnounced EventType = 302 // EventTypeMultiMemberGroupAdminRoleGranted indicates the payload includes that an admin of the group granted another member as an admin - EventTypeMultiMemberGroupAdminRoleGranted EventType = 303 + EventType_EventTypeMultiMemberGroupAdminRoleGranted EventType = 303 // EventTypeGroupReplicating indicates that the group has been registered for replication on a server - EventTypeGroupReplicating EventType = 403 + EventType_EventTypeGroupReplicating EventType = 403 // EventTypeAccountVerifiedCredentialRegistered - EventTypeAccountVerifiedCredentialRegistered EventType = 500 + EventType_EventTypeAccountVerifiedCredentialRegistered EventType = 500 // EventTypeGroupMetadataPayloadSent indicates the payload includes an app specific event, unlike messages stored on the message store it is encrypted using a static key - EventTypeGroupMetadataPayloadSent EventType = 1001 + EventType_EventTypeGroupMetadataPayloadSent EventType = 1001 +) + +// Enum value maps for EventType. +var ( + EventType_name = map[int32]string{ + 0: "EventTypeUndefined", + 1: "EventTypeGroupMemberDeviceAdded", + 2: "EventTypeGroupDeviceChainKeyAdded", + 101: "EventTypeAccountGroupJoined", + 102: "EventTypeAccountGroupLeft", + 103: "EventTypeAccountContactRequestDisabled", + 104: "EventTypeAccountContactRequestEnabled", + 105: "EventTypeAccountContactRequestReferenceReset", + 106: "EventTypeAccountContactRequestOutgoingEnqueued", + 107: "EventTypeAccountContactRequestOutgoingSent", + 108: "EventTypeAccountContactRequestIncomingReceived", + 109: "EventTypeAccountContactRequestIncomingDiscarded", + 110: "EventTypeAccountContactRequestIncomingAccepted", + 111: "EventTypeAccountContactBlocked", + 112: "EventTypeAccountContactUnblocked", + 201: "EventTypeContactAliasKeyAdded", + 301: "EventTypeMultiMemberGroupAliasResolverAdded", + 302: "EventTypeMultiMemberGroupInitialMemberAnnounced", + 303: "EventTypeMultiMemberGroupAdminRoleGranted", + 403: "EventTypeGroupReplicating", + 500: "EventTypeAccountVerifiedCredentialRegistered", + 1001: "EventTypeGroupMetadataPayloadSent", + } + EventType_value = map[string]int32{ + "EventTypeUndefined": 0, + "EventTypeGroupMemberDeviceAdded": 1, + "EventTypeGroupDeviceChainKeyAdded": 2, + "EventTypeAccountGroupJoined": 101, + "EventTypeAccountGroupLeft": 102, + "EventTypeAccountContactRequestDisabled": 103, + "EventTypeAccountContactRequestEnabled": 104, + "EventTypeAccountContactRequestReferenceReset": 105, + "EventTypeAccountContactRequestOutgoingEnqueued": 106, + "EventTypeAccountContactRequestOutgoingSent": 107, + "EventTypeAccountContactRequestIncomingReceived": 108, + "EventTypeAccountContactRequestIncomingDiscarded": 109, + "EventTypeAccountContactRequestIncomingAccepted": 110, + "EventTypeAccountContactBlocked": 111, + "EventTypeAccountContactUnblocked": 112, + "EventTypeContactAliasKeyAdded": 201, + "EventTypeMultiMemberGroupAliasResolverAdded": 301, + "EventTypeMultiMemberGroupInitialMemberAnnounced": 302, + "EventTypeMultiMemberGroupAdminRoleGranted": 303, + "EventTypeGroupReplicating": 403, + "EventTypeAccountVerifiedCredentialRegistered": 500, + "EventTypeGroupMetadataPayloadSent": 1001, + } ) -var EventType_name = map[int32]string{ - 0: "EventTypeUndefined", - 1: "EventTypeGroupMemberDeviceAdded", - 2: "EventTypeGroupDeviceChainKeyAdded", - 101: "EventTypeAccountGroupJoined", - 102: "EventTypeAccountGroupLeft", - 103: "EventTypeAccountContactRequestDisabled", - 104: "EventTypeAccountContactRequestEnabled", - 105: "EventTypeAccountContactRequestReferenceReset", - 106: "EventTypeAccountContactRequestOutgoingEnqueued", - 107: "EventTypeAccountContactRequestOutgoingSent", - 108: "EventTypeAccountContactRequestIncomingReceived", - 109: "EventTypeAccountContactRequestIncomingDiscarded", - 110: "EventTypeAccountContactRequestIncomingAccepted", - 111: "EventTypeAccountContactBlocked", - 112: "EventTypeAccountContactUnblocked", - 201: "EventTypeContactAliasKeyAdded", - 301: "EventTypeMultiMemberGroupAliasResolverAdded", - 302: "EventTypeMultiMemberGroupInitialMemberAnnounced", - 303: "EventTypeMultiMemberGroupAdminRoleGranted", - 403: "EventTypeGroupReplicating", - 500: "EventTypeAccountVerifiedCredentialRegistered", - 1001: "EventTypeGroupMetadataPayloadSent", -} - -var EventType_value = map[string]int32{ - "EventTypeUndefined": 0, - "EventTypeGroupMemberDeviceAdded": 1, - "EventTypeGroupDeviceChainKeyAdded": 2, - "EventTypeAccountGroupJoined": 101, - "EventTypeAccountGroupLeft": 102, - "EventTypeAccountContactRequestDisabled": 103, - "EventTypeAccountContactRequestEnabled": 104, - "EventTypeAccountContactRequestReferenceReset": 105, - "EventTypeAccountContactRequestOutgoingEnqueued": 106, - "EventTypeAccountContactRequestOutgoingSent": 107, - "EventTypeAccountContactRequestIncomingReceived": 108, - "EventTypeAccountContactRequestIncomingDiscarded": 109, - "EventTypeAccountContactRequestIncomingAccepted": 110, - "EventTypeAccountContactBlocked": 111, - "EventTypeAccountContactUnblocked": 112, - "EventTypeContactAliasKeyAdded": 201, - "EventTypeMultiMemberGroupAliasResolverAdded": 301, - "EventTypeMultiMemberGroupInitialMemberAnnounced": 302, - "EventTypeMultiMemberGroupAdminRoleGranted": 303, - "EventTypeGroupReplicating": 403, - "EventTypeAccountVerifiedCredentialRegistered": 500, - "EventTypeGroupMetadataPayloadSent": 1001, +func (x EventType) Enum() *EventType { + p := new(EventType) + *p = x + return p } func (x EventType) String() string { - return proto.EnumName(EventType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (EventType) Descriptor() protoreflect.EnumDescriptor { + return file_protocoltypes_proto_enumTypes[1].Descriptor() +} + +func (EventType) Type() protoreflect.EnumType { + return &file_protocoltypes_proto_enumTypes[1] +} + +func (x EventType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use EventType.Descriptor instead. func (EventType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{1} + return file_protocoltypes_proto_rawDescGZIP(), []int{1} } type DebugInspectGroupLogType int32 const ( - DebugInspectGroupLogTypeUndefined DebugInspectGroupLogType = 0 - DebugInspectGroupLogTypeMessage DebugInspectGroupLogType = 1 - DebugInspectGroupLogTypeMetadata DebugInspectGroupLogType = 2 + DebugInspectGroupLogType_DebugInspectGroupLogTypeUndefined DebugInspectGroupLogType = 0 + DebugInspectGroupLogType_DebugInspectGroupLogTypeMessage DebugInspectGroupLogType = 1 + DebugInspectGroupLogType_DebugInspectGroupLogTypeMetadata DebugInspectGroupLogType = 2 ) -var DebugInspectGroupLogType_name = map[int32]string{ - 0: "DebugInspectGroupLogTypeUndefined", - 1: "DebugInspectGroupLogTypeMessage", - 2: "DebugInspectGroupLogTypeMetadata", -} +// Enum value maps for DebugInspectGroupLogType. +var ( + DebugInspectGroupLogType_name = map[int32]string{ + 0: "DebugInspectGroupLogTypeUndefined", + 1: "DebugInspectGroupLogTypeMessage", + 2: "DebugInspectGroupLogTypeMetadata", + } + DebugInspectGroupLogType_value = map[string]int32{ + "DebugInspectGroupLogTypeUndefined": 0, + "DebugInspectGroupLogTypeMessage": 1, + "DebugInspectGroupLogTypeMetadata": 2, + } +) -var DebugInspectGroupLogType_value = map[string]int32{ - "DebugInspectGroupLogTypeUndefined": 0, - "DebugInspectGroupLogTypeMessage": 1, - "DebugInspectGroupLogTypeMetadata": 2, +func (x DebugInspectGroupLogType) Enum() *DebugInspectGroupLogType { + p := new(DebugInspectGroupLogType) + *p = x + return p } func (x DebugInspectGroupLogType) String() string { - return proto.EnumName(DebugInspectGroupLogType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (DebugInspectGroupLogType) Descriptor() protoreflect.EnumDescriptor { + return file_protocoltypes_proto_enumTypes[2].Descriptor() +} + +func (DebugInspectGroupLogType) Type() protoreflect.EnumType { + return &file_protocoltypes_proto_enumTypes[2] } +func (x DebugInspectGroupLogType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use DebugInspectGroupLogType.Descriptor instead. func (DebugInspectGroupLogType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{2} + return file_protocoltypes_proto_rawDescGZIP(), []int{2} } type ContactState int32 const ( - ContactStateUndefined ContactState = 0 - ContactStateToRequest ContactState = 1 - ContactStateReceived ContactState = 2 - ContactStateAdded ContactState = 3 - ContactStateRemoved ContactState = 4 - ContactStateDiscarded ContactState = 5 - ContactStateBlocked ContactState = 6 + ContactState_ContactStateUndefined ContactState = 0 + ContactState_ContactStateToRequest ContactState = 1 + ContactState_ContactStateReceived ContactState = 2 + ContactState_ContactStateAdded ContactState = 3 + ContactState_ContactStateRemoved ContactState = 4 + ContactState_ContactStateDiscarded ContactState = 5 + ContactState_ContactStateBlocked ContactState = 6 ) -var ContactState_name = map[int32]string{ - 0: "ContactStateUndefined", - 1: "ContactStateToRequest", - 2: "ContactStateReceived", - 3: "ContactStateAdded", - 4: "ContactStateRemoved", - 5: "ContactStateDiscarded", - 6: "ContactStateBlocked", -} +// Enum value maps for ContactState. +var ( + ContactState_name = map[int32]string{ + 0: "ContactStateUndefined", + 1: "ContactStateToRequest", + 2: "ContactStateReceived", + 3: "ContactStateAdded", + 4: "ContactStateRemoved", + 5: "ContactStateDiscarded", + 6: "ContactStateBlocked", + } + ContactState_value = map[string]int32{ + "ContactStateUndefined": 0, + "ContactStateToRequest": 1, + "ContactStateReceived": 2, + "ContactStateAdded": 3, + "ContactStateRemoved": 4, + "ContactStateDiscarded": 5, + "ContactStateBlocked": 6, + } +) -var ContactState_value = map[string]int32{ - "ContactStateUndefined": 0, - "ContactStateToRequest": 1, - "ContactStateReceived": 2, - "ContactStateAdded": 3, - "ContactStateRemoved": 4, - "ContactStateDiscarded": 5, - "ContactStateBlocked": 6, +func (x ContactState) Enum() *ContactState { + p := new(ContactState) + *p = x + return p } func (x ContactState) String() string { - return proto.EnumName(ContactState_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ContactState) Descriptor() protoreflect.EnumDescriptor { + return file_protocoltypes_proto_enumTypes[3].Descriptor() } +func (ContactState) Type() protoreflect.EnumType { + return &file_protocoltypes_proto_enumTypes[3] +} + +func (x ContactState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ContactState.Descriptor instead. func (ContactState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{3} + return file_protocoltypes_proto_rawDescGZIP(), []int{3} } type Direction int32 const ( - UnknownDir Direction = 0 - InboundDir Direction = 1 - OutboundDir Direction = 2 - BiDir Direction = 3 + Direction_UnknownDir Direction = 0 + Direction_InboundDir Direction = 1 + Direction_OutboundDir Direction = 2 + Direction_BiDir Direction = 3 ) -var Direction_name = map[int32]string{ - 0: "UnknownDir", - 1: "InboundDir", - 2: "OutboundDir", - 3: "BiDir", -} +// Enum value maps for Direction. +var ( + Direction_name = map[int32]string{ + 0: "UnknownDir", + 1: "InboundDir", + 2: "OutboundDir", + 3: "BiDir", + } + Direction_value = map[string]int32{ + "UnknownDir": 0, + "InboundDir": 1, + "OutboundDir": 2, + "BiDir": 3, + } +) -var Direction_value = map[string]int32{ - "UnknownDir": 0, - "InboundDir": 1, - "OutboundDir": 2, - "BiDir": 3, +func (x Direction) Enum() *Direction { + p := new(Direction) + *p = x + return p } func (x Direction) String() string { - return proto.EnumName(Direction_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (Direction) Descriptor() protoreflect.EnumDescriptor { + return file_protocoltypes_proto_enumTypes[4].Descriptor() +} + +func (Direction) Type() protoreflect.EnumType { + return &file_protocoltypes_proto_enumTypes[4] +} + +func (x Direction) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Direction.Descriptor instead. func (Direction) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{4} + return file_protocoltypes_proto_rawDescGZIP(), []int{4} } type ServiceGetConfiguration_SettingState int32 const ( - Unknown ServiceGetConfiguration_SettingState = 0 - Enabled ServiceGetConfiguration_SettingState = 1 - Disabled ServiceGetConfiguration_SettingState = 2 - Unavailable ServiceGetConfiguration_SettingState = 3 + ServiceGetConfiguration_Unknown ServiceGetConfiguration_SettingState = 0 + ServiceGetConfiguration_Enabled ServiceGetConfiguration_SettingState = 1 + ServiceGetConfiguration_Disabled ServiceGetConfiguration_SettingState = 2 + ServiceGetConfiguration_Unavailable ServiceGetConfiguration_SettingState = 3 ) -var ServiceGetConfiguration_SettingState_name = map[int32]string{ - 0: "Unknown", - 1: "Enabled", - 2: "Disabled", - 3: "Unavailable", -} +// Enum value maps for ServiceGetConfiguration_SettingState. +var ( + ServiceGetConfiguration_SettingState_name = map[int32]string{ + 0: "Unknown", + 1: "Enabled", + 2: "Disabled", + 3: "Unavailable", + } + ServiceGetConfiguration_SettingState_value = map[string]int32{ + "Unknown": 0, + "Enabled": 1, + "Disabled": 2, + "Unavailable": 3, + } +) -var ServiceGetConfiguration_SettingState_value = map[string]int32{ - "Unknown": 0, - "Enabled": 1, - "Disabled": 2, - "Unavailable": 3, +func (x ServiceGetConfiguration_SettingState) Enum() *ServiceGetConfiguration_SettingState { + p := new(ServiceGetConfiguration_SettingState) + *p = x + return p } func (x ServiceGetConfiguration_SettingState) String() string { - return proto.EnumName(ServiceGetConfiguration_SettingState_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ServiceGetConfiguration_SettingState) Descriptor() protoreflect.EnumDescriptor { + return file_protocoltypes_proto_enumTypes[5].Descriptor() +} + +func (ServiceGetConfiguration_SettingState) Type() protoreflect.EnumType { + return &file_protocoltypes_proto_enumTypes[5] +} + +func (x ServiceGetConfiguration_SettingState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use ServiceGetConfiguration_SettingState.Descriptor instead. func (ServiceGetConfiguration_SettingState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{34, 0} + return file_protocoltypes_proto_rawDescGZIP(), []int{34, 0} } type GroupDeviceStatus_Type int32 const ( - TypeUnknown GroupDeviceStatus_Type = 0 - TypePeerDisconnected GroupDeviceStatus_Type = 1 - TypePeerConnected GroupDeviceStatus_Type = 2 - TypePeerReconnecting GroupDeviceStatus_Type = 3 + GroupDeviceStatus_TypeUnknown GroupDeviceStatus_Type = 0 + GroupDeviceStatus_TypePeerDisconnected GroupDeviceStatus_Type = 1 + GroupDeviceStatus_TypePeerConnected GroupDeviceStatus_Type = 2 + GroupDeviceStatus_TypePeerReconnecting GroupDeviceStatus_Type = 3 ) -var GroupDeviceStatus_Type_name = map[int32]string{ - 0: "TypeUnknown", - 1: "TypePeerDisconnected", - 2: "TypePeerConnected", - 3: "TypePeerReconnecting", -} +// Enum value maps for GroupDeviceStatus_Type. +var ( + GroupDeviceStatus_Type_name = map[int32]string{ + 0: "TypeUnknown", + 1: "TypePeerDisconnected", + 2: "TypePeerConnected", + 3: "TypePeerReconnecting", + } + GroupDeviceStatus_Type_value = map[string]int32{ + "TypeUnknown": 0, + "TypePeerDisconnected": 1, + "TypePeerConnected": 2, + "TypePeerReconnecting": 3, + } +) -var GroupDeviceStatus_Type_value = map[string]int32{ - "TypeUnknown": 0, - "TypePeerDisconnected": 1, - "TypePeerConnected": 2, - "TypePeerReconnecting": 3, +func (x GroupDeviceStatus_Type) Enum() *GroupDeviceStatus_Type { + p := new(GroupDeviceStatus_Type) + *p = x + return p } func (x GroupDeviceStatus_Type) String() string { - return proto.EnumName(GroupDeviceStatus_Type_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (GroupDeviceStatus_Type) Descriptor() protoreflect.EnumDescriptor { + return file_protocoltypes_proto_enumTypes[6].Descriptor() +} + +func (GroupDeviceStatus_Type) Type() protoreflect.EnumType { + return &file_protocoltypes_proto_enumTypes[6] } +func (x GroupDeviceStatus_Type) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use GroupDeviceStatus_Type.Descriptor instead. func (GroupDeviceStatus_Type) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{62, 0} + return file_protocoltypes_proto_rawDescGZIP(), []int{62, 0} } type GroupDeviceStatus_Transport int32 const ( - TptUnknown GroupDeviceStatus_Transport = 0 - TptLAN GroupDeviceStatus_Transport = 1 - TptWAN GroupDeviceStatus_Transport = 2 - TptProximity GroupDeviceStatus_Transport = 3 + GroupDeviceStatus_TptUnknown GroupDeviceStatus_Transport = 0 + GroupDeviceStatus_TptLAN GroupDeviceStatus_Transport = 1 + GroupDeviceStatus_TptWAN GroupDeviceStatus_Transport = 2 + GroupDeviceStatus_TptProximity GroupDeviceStatus_Transport = 3 ) -var GroupDeviceStatus_Transport_name = map[int32]string{ - 0: "TptUnknown", - 1: "TptLAN", - 2: "TptWAN", - 3: "TptProximity", -} +// Enum value maps for GroupDeviceStatus_Transport. +var ( + GroupDeviceStatus_Transport_name = map[int32]string{ + 0: "TptUnknown", + 1: "TptLAN", + 2: "TptWAN", + 3: "TptProximity", + } + GroupDeviceStatus_Transport_value = map[string]int32{ + "TptUnknown": 0, + "TptLAN": 1, + "TptWAN": 2, + "TptProximity": 3, + } +) -var GroupDeviceStatus_Transport_value = map[string]int32{ - "TptUnknown": 0, - "TptLAN": 1, - "TptWAN": 2, - "TptProximity": 3, +func (x GroupDeviceStatus_Transport) Enum() *GroupDeviceStatus_Transport { + p := new(GroupDeviceStatus_Transport) + *p = x + return p } func (x GroupDeviceStatus_Transport) String() string { - return proto.EnumName(GroupDeviceStatus_Transport_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (GroupDeviceStatus_Transport) Descriptor() protoreflect.EnumDescriptor { + return file_protocoltypes_proto_enumTypes[7].Descriptor() } +func (GroupDeviceStatus_Transport) Type() protoreflect.EnumType { + return &file_protocoltypes_proto_enumTypes[7] +} + +func (x GroupDeviceStatus_Transport) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use GroupDeviceStatus_Transport.Descriptor instead. func (GroupDeviceStatus_Transport) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{62, 1} + return file_protocoltypes_proto_rawDescGZIP(), []int{62, 1} } type PeerList_Feature int32 const ( - UnknownFeature PeerList_Feature = 0 - WeshFeature PeerList_Feature = 1 - BLEFeature PeerList_Feature = 2 - LocalFeature PeerList_Feature = 3 - TorFeature PeerList_Feature = 4 - QuicFeature PeerList_Feature = 5 + PeerList_UnknownFeature PeerList_Feature = 0 + PeerList_WeshFeature PeerList_Feature = 1 + PeerList_BLEFeature PeerList_Feature = 2 + PeerList_LocalFeature PeerList_Feature = 3 + PeerList_TorFeature PeerList_Feature = 4 + PeerList_QuicFeature PeerList_Feature = 5 ) -var PeerList_Feature_name = map[int32]string{ - 0: "UnknownFeature", - 1: "WeshFeature", - 2: "BLEFeature", - 3: "LocalFeature", - 4: "TorFeature", - 5: "QuicFeature", -} +// Enum value maps for PeerList_Feature. +var ( + PeerList_Feature_name = map[int32]string{ + 0: "UnknownFeature", + 1: "WeshFeature", + 2: "BLEFeature", + 3: "LocalFeature", + 4: "TorFeature", + 5: "QuicFeature", + } + PeerList_Feature_value = map[string]int32{ + "UnknownFeature": 0, + "WeshFeature": 1, + "BLEFeature": 2, + "LocalFeature": 3, + "TorFeature": 4, + "QuicFeature": 5, + } +) -var PeerList_Feature_value = map[string]int32{ - "UnknownFeature": 0, - "WeshFeature": 1, - "BLEFeature": 2, - "LocalFeature": 3, - "TorFeature": 4, - "QuicFeature": 5, +func (x PeerList_Feature) Enum() *PeerList_Feature { + p := new(PeerList_Feature) + *p = x + return p } func (x PeerList_Feature) String() string { - return proto.EnumName(PeerList_Feature_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (PeerList_Feature) Descriptor() protoreflect.EnumDescriptor { + return file_protocoltypes_proto_enumTypes[8].Descriptor() +} + +func (PeerList_Feature) Type() protoreflect.EnumType { + return &file_protocoltypes_proto_enumTypes[8] +} + +func (x PeerList_Feature) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use PeerList_Feature.Descriptor instead. func (PeerList_Feature) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{75, 0} + return file_protocoltypes_proto_rawDescGZIP(), []int{75, 0} } // Account describes all the secrets that identifies an Account type Account struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // group specifies which group is used to manage the account Group *Group `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` // account_private_key, private part is used to signs handshake, signs device, create contacts group keys via ECDH -- public part is used to have a shareable identity @@ -404,75 +593,75 @@ type Account struct { // alias_private_key, private part is use to derive group members private keys, signs alias proofs, public part can be shared to contacts to prove identity AliasPrivateKey []byte `protobuf:"bytes,3,opt,name=alias_private_key,json=aliasPrivateKey,proto3" json:"alias_private_key,omitempty"` // public_rendezvous_seed, rendezvous seed used for direct communication - PublicRendezvousSeed []byte `protobuf:"bytes,4,opt,name=public_rendezvous_seed,json=publicRendezvousSeed,proto3" json:"public_rendezvous_seed,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + PublicRendezvousSeed []byte `protobuf:"bytes,4,opt,name=public_rendezvous_seed,json=publicRendezvousSeed,proto3" json:"public_rendezvous_seed,omitempty"` } -func (m *Account) Reset() { *m = Account{} } -func (m *Account) String() string { return proto.CompactTextString(m) } -func (*Account) ProtoMessage() {} -func (*Account) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{0} +func (x *Account) Reset() { + *x = Account{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Account) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *Account) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Account.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*Account) ProtoMessage() {} + +func (x *Account) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *Account) XXX_Merge(src proto.Message) { - xxx_messageInfo_Account.Merge(m, src) -} -func (m *Account) XXX_Size() int { - return m.Size() -} -func (m *Account) XXX_DiscardUnknown() { - xxx_messageInfo_Account.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_Account proto.InternalMessageInfo +// Deprecated: Use Account.ProtoReflect.Descriptor instead. +func (*Account) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{0} +} -func (m *Account) GetGroup() *Group { - if m != nil { - return m.Group +func (x *Account) GetGroup() *Group { + if x != nil { + return x.Group } return nil } -func (m *Account) GetAccountPrivateKey() []byte { - if m != nil { - return m.AccountPrivateKey +func (x *Account) GetAccountPrivateKey() []byte { + if x != nil { + return x.AccountPrivateKey } return nil } -func (m *Account) GetAliasPrivateKey() []byte { - if m != nil { - return m.AliasPrivateKey +func (x *Account) GetAliasPrivateKey() []byte { + if x != nil { + return x.AliasPrivateKey } return nil } -func (m *Account) GetPublicRendezvousSeed() []byte { - if m != nil { - return m.PublicRendezvousSeed +func (x *Account) GetPublicRendezvousSeed() []byte { + if x != nil { + return x.PublicRendezvousSeed } return nil } // Group define a group and is enough to invite someone to it type Group struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // public_key is the identifier of the group, it signs the group secret and the initial member of a multi-member group PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // secret is the symmetric secret of the group, which is used to encrypt the metadata @@ -486,180 +675,180 @@ type Group struct { // link_key is the secret key used to exchange group updates and links to attachments, useful for replication services LinkKey []byte `protobuf:"bytes,6,opt,name=link_key,json=linkKey,proto3" json:"link_key,omitempty"` // link_key_sig is the signature of the link_key using the group private key - LinkKeySig []byte `protobuf:"bytes,7,opt,name=link_key_sig,json=linkKeySig,proto3" json:"link_key_sig,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + LinkKeySig []byte `protobuf:"bytes,7,opt,name=link_key_sig,json=linkKeySig,proto3" json:"link_key_sig,omitempty"` } -func (m *Group) Reset() { *m = Group{} } -func (m *Group) String() string { return proto.CompactTextString(m) } -func (*Group) ProtoMessage() {} -func (*Group) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{1} +func (x *Group) Reset() { + *x = Group{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *Group) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *Group) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Group) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Group.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*Group) ProtoMessage() {} + +func (x *Group) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *Group) XXX_Merge(src proto.Message) { - xxx_messageInfo_Group.Merge(m, src) -} -func (m *Group) XXX_Size() int { - return m.Size() -} -func (m *Group) XXX_DiscardUnknown() { - xxx_messageInfo_Group.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_Group proto.InternalMessageInfo +// Deprecated: Use Group.ProtoReflect.Descriptor instead. +func (*Group) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{1} +} -func (m *Group) GetPublicKey() []byte { - if m != nil { - return m.PublicKey +func (x *Group) GetPublicKey() []byte { + if x != nil { + return x.PublicKey } return nil } -func (m *Group) GetSecret() []byte { - if m != nil { - return m.Secret +func (x *Group) GetSecret() []byte { + if x != nil { + return x.Secret } return nil } -func (m *Group) GetSecretSig() []byte { - if m != nil { - return m.SecretSig +func (x *Group) GetSecretSig() []byte { + if x != nil { + return x.SecretSig } return nil } -func (m *Group) GetGroupType() GroupType { - if m != nil { - return m.GroupType +func (x *Group) GetGroupType() GroupType { + if x != nil { + return x.GroupType } - return GroupTypeUndefined + return GroupType_GroupTypeUndefined } -func (m *Group) GetSignPub() []byte { - if m != nil { - return m.SignPub +func (x *Group) GetSignPub() []byte { + if x != nil { + return x.SignPub } return nil } -func (m *Group) GetLinkKey() []byte { - if m != nil { - return m.LinkKey +func (x *Group) GetLinkKey() []byte { + if x != nil { + return x.LinkKey } return nil } -func (m *Group) GetLinkKeySig() []byte { - if m != nil { - return m.LinkKeySig +func (x *Group) GetLinkKeySig() []byte { + if x != nil { + return x.LinkKeySig } return nil } type GroupHeadsExport struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // public_key is the identifier of the group, it signs the group secret and the initial member of a multi-member group PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // sign_pub is the signature public key used to verify entries SignPub []byte `protobuf:"bytes,2,opt,name=sign_pub,json=signPub,proto3" json:"sign_pub,omitempty"` // metadata_heads_cids are the heads of the metadata store that should be restored from an export - MetadataHeadsCIDs [][]byte `protobuf:"bytes,3,rep,name=metadata_heads_cids,json=metadataHeadsCids,proto3" json:"metadata_heads_cids,omitempty"` + MetadataHeadsCids [][]byte `protobuf:"bytes,3,rep,name=metadata_heads_cids,json=metadataHeadsCids,proto3" json:"metadata_heads_cids,omitempty"` // messages_heads_cids are the heads of the metadata store that should be restored from an export - MessagesHeadsCIDs [][]byte `protobuf:"bytes,4,rep,name=messages_heads_cids,json=messagesHeadsCids,proto3" json:"messages_heads_cids,omitempty"` + MessagesHeadsCids [][]byte `protobuf:"bytes,4,rep,name=messages_heads_cids,json=messagesHeadsCids,proto3" json:"messages_heads_cids,omitempty"` // link_key - LinkKey []byte `protobuf:"bytes,5,opt,name=link_key,json=linkKey,proto3" json:"link_key,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + LinkKey []byte `protobuf:"bytes,5,opt,name=link_key,json=linkKey,proto3" json:"link_key,omitempty"` } -func (m *GroupHeadsExport) Reset() { *m = GroupHeadsExport{} } -func (m *GroupHeadsExport) String() string { return proto.CompactTextString(m) } -func (*GroupHeadsExport) ProtoMessage() {} -func (*GroupHeadsExport) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{2} +func (x *GroupHeadsExport) Reset() { + *x = GroupHeadsExport{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GroupHeadsExport) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *GroupHeadsExport) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GroupHeadsExport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GroupHeadsExport.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*GroupHeadsExport) ProtoMessage() {} + +func (x *GroupHeadsExport) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *GroupHeadsExport) XXX_Merge(src proto.Message) { - xxx_messageInfo_GroupHeadsExport.Merge(m, src) -} -func (m *GroupHeadsExport) XXX_Size() int { - return m.Size() -} -func (m *GroupHeadsExport) XXX_DiscardUnknown() { - xxx_messageInfo_GroupHeadsExport.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_GroupHeadsExport proto.InternalMessageInfo +// Deprecated: Use GroupHeadsExport.ProtoReflect.Descriptor instead. +func (*GroupHeadsExport) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{2} +} -func (m *GroupHeadsExport) GetPublicKey() []byte { - if m != nil { - return m.PublicKey +func (x *GroupHeadsExport) GetPublicKey() []byte { + if x != nil { + return x.PublicKey } return nil } -func (m *GroupHeadsExport) GetSignPub() []byte { - if m != nil { - return m.SignPub +func (x *GroupHeadsExport) GetSignPub() []byte { + if x != nil { + return x.SignPub } return nil } -func (m *GroupHeadsExport) GetMetadataHeadsCIDs() [][]byte { - if m != nil { - return m.MetadataHeadsCIDs +func (x *GroupHeadsExport) GetMetadataHeadsCids() [][]byte { + if x != nil { + return x.MetadataHeadsCids } return nil } -func (m *GroupHeadsExport) GetMessagesHeadsCIDs() [][]byte { - if m != nil { - return m.MessagesHeadsCIDs +func (x *GroupHeadsExport) GetMessagesHeadsCids() [][]byte { + if x != nil { + return x.MessagesHeadsCids } return nil } -func (m *GroupHeadsExport) GetLinkKey() []byte { - if m != nil { - return m.LinkKey +func (x *GroupHeadsExport) GetLinkKey() []byte { + if x != nil { + return x.LinkKey } return nil } // GroupMetadata is used in GroupEnvelope and only readable by invited group members type GroupMetadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // event_type defines which event type is used EventType EventType `protobuf:"varint,1,opt,name=event_type,json=eventType,proto3,enum=weshnet.protocol.v1.EventType" json:"event_type,omitempty"` // the serialization depends on event_type, event is symmetrically encrypted @@ -667,550 +856,545 @@ type GroupMetadata struct { // sig is the signature of the payload, it depends on the event_type for the used key Sig []byte `protobuf:"bytes,3,opt,name=sig,proto3" json:"sig,omitempty"` // protocol_metadata is protocol layer data - ProtocolMetadata *ProtocolMetadata `protobuf:"bytes,4,opt,name=protocol_metadata,json=protocolMetadata,proto3" json:"protocol_metadata,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ProtocolMetadata *ProtocolMetadata `protobuf:"bytes,4,opt,name=protocol_metadata,json=protocolMetadata,proto3" json:"protocol_metadata,omitempty"` } -func (m *GroupMetadata) Reset() { *m = GroupMetadata{} } -func (m *GroupMetadata) String() string { return proto.CompactTextString(m) } -func (*GroupMetadata) ProtoMessage() {} -func (*GroupMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{3} +func (x *GroupMetadata) Reset() { + *x = GroupMetadata{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GroupMetadata) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *GroupMetadata) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GroupMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GroupMetadata.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*GroupMetadata) ProtoMessage() {} + +func (x *GroupMetadata) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *GroupMetadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_GroupMetadata.Merge(m, src) -} -func (m *GroupMetadata) XXX_Size() int { - return m.Size() -} -func (m *GroupMetadata) XXX_DiscardUnknown() { - xxx_messageInfo_GroupMetadata.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_GroupMetadata proto.InternalMessageInfo +// Deprecated: Use GroupMetadata.ProtoReflect.Descriptor instead. +func (*GroupMetadata) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{3} +} -func (m *GroupMetadata) GetEventType() EventType { - if m != nil { - return m.EventType +func (x *GroupMetadata) GetEventType() EventType { + if x != nil { + return x.EventType } - return EventTypeUndefined + return EventType_EventTypeUndefined } -func (m *GroupMetadata) GetPayload() []byte { - if m != nil { - return m.Payload +func (x *GroupMetadata) GetPayload() []byte { + if x != nil { + return x.Payload } return nil } -func (m *GroupMetadata) GetSig() []byte { - if m != nil { - return m.Sig +func (x *GroupMetadata) GetSig() []byte { + if x != nil { + return x.Sig } return nil } -func (m *GroupMetadata) GetProtocolMetadata() *ProtocolMetadata { - if m != nil { - return m.ProtocolMetadata +func (x *GroupMetadata) GetProtocolMetadata() *ProtocolMetadata { + if x != nil { + return x.ProtocolMetadata } return nil } // GroupEnvelope is a publicly exposed structure containing a group metadata event type GroupEnvelope struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // nonce is used to encrypt the message Nonce []byte `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"` // event is encrypted using a symmetric key shared among group members - Event []byte `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Event []byte `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` } -func (m *GroupEnvelope) Reset() { *m = GroupEnvelope{} } -func (m *GroupEnvelope) String() string { return proto.CompactTextString(m) } -func (*GroupEnvelope) ProtoMessage() {} -func (*GroupEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{4} +func (x *GroupEnvelope) Reset() { + *x = GroupEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GroupEnvelope) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *GroupEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GroupEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GroupEnvelope.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*GroupEnvelope) ProtoMessage() {} + +func (x *GroupEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *GroupEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_GroupEnvelope.Merge(m, src) -} -func (m *GroupEnvelope) XXX_Size() int { - return m.Size() -} -func (m *GroupEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_GroupEnvelope.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_GroupEnvelope proto.InternalMessageInfo +// Deprecated: Use GroupEnvelope.ProtoReflect.Descriptor instead. +func (*GroupEnvelope) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{4} +} -func (m *GroupEnvelope) GetNonce() []byte { - if m != nil { - return m.Nonce +func (x *GroupEnvelope) GetNonce() []byte { + if x != nil { + return x.Nonce } return nil } -func (m *GroupEnvelope) GetEvent() []byte { - if m != nil { - return m.Event +func (x *GroupEnvelope) GetEvent() []byte { + if x != nil { + return x.Event } return nil } // MessageHeaders is used in MessageEnvelope and only readable by invited group members type MessageHeaders struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // counter is the current counter value for the specified device Counter uint64 `protobuf:"varint,1,opt,name=counter,proto3" json:"counter,omitempty"` // device_pk is the public key of the device sending the message - DevicePK []byte `protobuf:"bytes,2,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` + DevicePk []byte `protobuf:"bytes,2,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` // sig is the signature of the encrypted message using the device's private key Sig []byte `protobuf:"bytes,3,opt,name=sig,proto3" json:"sig,omitempty"` // metadata allow to pass custom informations - Metadata map[string]string `protobuf:"bytes,4,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Metadata map[string]string `protobuf:"bytes,4,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } -func (m *MessageHeaders) Reset() { *m = MessageHeaders{} } -func (m *MessageHeaders) String() string { return proto.CompactTextString(m) } -func (*MessageHeaders) ProtoMessage() {} -func (*MessageHeaders) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{5} +func (x *MessageHeaders) Reset() { + *x = MessageHeaders{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *MessageHeaders) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *MessageHeaders) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MessageHeaders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MessageHeaders.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*MessageHeaders) ProtoMessage() {} + +func (x *MessageHeaders) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *MessageHeaders) XXX_Merge(src proto.Message) { - xxx_messageInfo_MessageHeaders.Merge(m, src) -} -func (m *MessageHeaders) XXX_Size() int { - return m.Size() -} -func (m *MessageHeaders) XXX_DiscardUnknown() { - xxx_messageInfo_MessageHeaders.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_MessageHeaders proto.InternalMessageInfo +// Deprecated: Use MessageHeaders.ProtoReflect.Descriptor instead. +func (*MessageHeaders) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{5} +} -func (m *MessageHeaders) GetCounter() uint64 { - if m != nil { - return m.Counter +func (x *MessageHeaders) GetCounter() uint64 { + if x != nil { + return x.Counter } return 0 } -func (m *MessageHeaders) GetDevicePK() []byte { - if m != nil { - return m.DevicePK +func (x *MessageHeaders) GetDevicePk() []byte { + if x != nil { + return x.DevicePk } return nil } -func (m *MessageHeaders) GetSig() []byte { - if m != nil { - return m.Sig +func (x *MessageHeaders) GetSig() []byte { + if x != nil { + return x.Sig } return nil } -func (m *MessageHeaders) GetMetadata() map[string]string { - if m != nil { - return m.Metadata +func (x *MessageHeaders) GetMetadata() map[string]string { + if x != nil { + return x.Metadata } return nil } type ProtocolMetadata struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ProtocolMetadata) Reset() { *m = ProtocolMetadata{} } -func (m *ProtocolMetadata) String() string { return proto.CompactTextString(m) } -func (*ProtocolMetadata) ProtoMessage() {} -func (*ProtocolMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{6} +func (x *ProtocolMetadata) Reset() { + *x = ProtocolMetadata{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ProtocolMetadata) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ProtocolMetadata) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ProtocolMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ProtocolMetadata.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ProtocolMetadata) ProtoMessage() {} + +func (x *ProtocolMetadata) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ProtocolMetadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProtocolMetadata.Merge(m, src) -} -func (m *ProtocolMetadata) XXX_Size() int { - return m.Size() -} -func (m *ProtocolMetadata) XXX_DiscardUnknown() { - xxx_messageInfo_ProtocolMetadata.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ProtocolMetadata proto.InternalMessageInfo +// Deprecated: Use ProtocolMetadata.ProtoReflect.Descriptor instead. +func (*ProtocolMetadata) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{6} +} // EncryptedMessage is used in MessageEnvelope and only readable by groups members that joined before the message was sent type EncryptedMessage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // plaintext is the app layer data Plaintext []byte `protobuf:"bytes,1,opt,name=plaintext,proto3" json:"plaintext,omitempty"` // protocol_metadata is protocol layer data - ProtocolMetadata *ProtocolMetadata `protobuf:"bytes,2,opt,name=protocol_metadata,json=protocolMetadata,proto3" json:"protocol_metadata,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ProtocolMetadata *ProtocolMetadata `protobuf:"bytes,2,opt,name=protocol_metadata,json=protocolMetadata,proto3" json:"protocol_metadata,omitempty"` } -func (m *EncryptedMessage) Reset() { *m = EncryptedMessage{} } -func (m *EncryptedMessage) String() string { return proto.CompactTextString(m) } -func (*EncryptedMessage) ProtoMessage() {} -func (*EncryptedMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{7} +func (x *EncryptedMessage) Reset() { + *x = EncryptedMessage{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *EncryptedMessage) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *EncryptedMessage) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *EncryptedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EncryptedMessage.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*EncryptedMessage) ProtoMessage() {} + +func (x *EncryptedMessage) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *EncryptedMessage) XXX_Merge(src proto.Message) { - xxx_messageInfo_EncryptedMessage.Merge(m, src) -} -func (m *EncryptedMessage) XXX_Size() int { - return m.Size() -} -func (m *EncryptedMessage) XXX_DiscardUnknown() { - xxx_messageInfo_EncryptedMessage.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_EncryptedMessage proto.InternalMessageInfo +// Deprecated: Use EncryptedMessage.ProtoReflect.Descriptor instead. +func (*EncryptedMessage) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{7} +} -func (m *EncryptedMessage) GetPlaintext() []byte { - if m != nil { - return m.Plaintext +func (x *EncryptedMessage) GetPlaintext() []byte { + if x != nil { + return x.Plaintext } return nil } -func (m *EncryptedMessage) GetProtocolMetadata() *ProtocolMetadata { - if m != nil { - return m.ProtocolMetadata +func (x *EncryptedMessage) GetProtocolMetadata() *ProtocolMetadata { + if x != nil { + return x.ProtocolMetadata } return nil } // MessageEnvelope is a publicly exposed structure containing a group secure message type MessageEnvelope struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // message_headers is an encrypted serialization using a symmetric key of a MessageHeaders message MessageHeaders []byte `protobuf:"bytes,1,opt,name=message_headers,json=messageHeaders,proto3" json:"message_headers,omitempty"` // message is an encrypted message, only readable by group members who previously received the appropriate chain key Message []byte `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // nonce is a nonce for message headers - Nonce []byte `protobuf:"bytes,3,opt,name=nonce,proto3" json:"nonce,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Nonce []byte `protobuf:"bytes,3,opt,name=nonce,proto3" json:"nonce,omitempty"` } -func (m *MessageEnvelope) Reset() { *m = MessageEnvelope{} } -func (m *MessageEnvelope) String() string { return proto.CompactTextString(m) } -func (*MessageEnvelope) ProtoMessage() {} -func (*MessageEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{8} +func (x *MessageEnvelope) Reset() { + *x = MessageEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *MessageEnvelope) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *MessageEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MessageEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MessageEnvelope.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*MessageEnvelope) ProtoMessage() {} + +func (x *MessageEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *MessageEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_MessageEnvelope.Merge(m, src) -} -func (m *MessageEnvelope) XXX_Size() int { - return m.Size() -} -func (m *MessageEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_MessageEnvelope.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_MessageEnvelope proto.InternalMessageInfo +// Deprecated: Use MessageEnvelope.ProtoReflect.Descriptor instead. +func (*MessageEnvelope) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{8} +} -func (m *MessageEnvelope) GetMessageHeaders() []byte { - if m != nil { - return m.MessageHeaders +func (x *MessageEnvelope) GetMessageHeaders() []byte { + if x != nil { + return x.MessageHeaders } return nil } -func (m *MessageEnvelope) GetMessage() []byte { - if m != nil { - return m.Message +func (x *MessageEnvelope) GetMessage() []byte { + if x != nil { + return x.Message } return nil } -func (m *MessageEnvelope) GetNonce() []byte { - if m != nil { - return m.Nonce +func (x *MessageEnvelope) GetNonce() []byte { + if x != nil { + return x.Nonce } return nil } // EventContext adds context (its id, its parents and its attachments) to an event type EventContext struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // id is the CID of the underlying OrbitDB event - ID []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // id are the the CIDs of the underlying parents of the OrbitDB event - ParentIDs [][]byte `protobuf:"bytes,2,rep,name=parent_ids,json=parentIds,proto3" json:"parent_ids,omitempty"` + ParentIds [][]byte `protobuf:"bytes,2,rep,name=parent_ids,json=parentIds,proto3" json:"parent_ids,omitempty"` // group_pk receiving the event - GroupPK []byte `protobuf:"bytes,3,opt,name=group_pk,json=groupPk,proto3" json:"group_pk,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + GroupPk []byte `protobuf:"bytes,3,opt,name=group_pk,json=groupPk,proto3" json:"group_pk,omitempty"` } -func (m *EventContext) Reset() { *m = EventContext{} } -func (m *EventContext) String() string { return proto.CompactTextString(m) } -func (*EventContext) ProtoMessage() {} -func (*EventContext) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{9} +func (x *EventContext) Reset() { + *x = EventContext{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *EventContext) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *EventContext) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *EventContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EventContext.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*EventContext) ProtoMessage() {} + +func (x *EventContext) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *EventContext) XXX_Merge(src proto.Message) { - xxx_messageInfo_EventContext.Merge(m, src) -} -func (m *EventContext) XXX_Size() int { - return m.Size() -} -func (m *EventContext) XXX_DiscardUnknown() { - xxx_messageInfo_EventContext.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_EventContext proto.InternalMessageInfo +// Deprecated: Use EventContext.ProtoReflect.Descriptor instead. +func (*EventContext) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{9} +} -func (m *EventContext) GetID() []byte { - if m != nil { - return m.ID +func (x *EventContext) GetId() []byte { + if x != nil { + return x.Id } return nil } -func (m *EventContext) GetParentIDs() [][]byte { - if m != nil { - return m.ParentIDs +func (x *EventContext) GetParentIds() [][]byte { + if x != nil { + return x.ParentIds } return nil } -func (m *EventContext) GetGroupPK() []byte { - if m != nil { - return m.GroupPK +func (x *EventContext) GetGroupPk() []byte { + if x != nil { + return x.GroupPk } return nil } // GroupMetadataPayloadSent is an app defined message, accessible to future group members type GroupMetadataPayloadSent struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // device_pk is the device sending the event, signs the message - DevicePK []byte `protobuf:"bytes,1,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` + DevicePk []byte `protobuf:"bytes,1,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` // message is the payload - Message []byte `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Message []byte `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` } -func (m *GroupMetadataPayloadSent) Reset() { *m = GroupMetadataPayloadSent{} } -func (m *GroupMetadataPayloadSent) String() string { return proto.CompactTextString(m) } -func (*GroupMetadataPayloadSent) ProtoMessage() {} -func (*GroupMetadataPayloadSent) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{10} +func (x *GroupMetadataPayloadSent) Reset() { + *x = GroupMetadataPayloadSent{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GroupMetadataPayloadSent) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *GroupMetadataPayloadSent) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GroupMetadataPayloadSent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GroupMetadataPayloadSent.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*GroupMetadataPayloadSent) ProtoMessage() {} + +func (x *GroupMetadataPayloadSent) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *GroupMetadataPayloadSent) XXX_Merge(src proto.Message) { - xxx_messageInfo_GroupMetadataPayloadSent.Merge(m, src) -} -func (m *GroupMetadataPayloadSent) XXX_Size() int { - return m.Size() -} -func (m *GroupMetadataPayloadSent) XXX_DiscardUnknown() { - xxx_messageInfo_GroupMetadataPayloadSent.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_GroupMetadataPayloadSent proto.InternalMessageInfo +// Deprecated: Use GroupMetadataPayloadSent.ProtoReflect.Descriptor instead. +func (*GroupMetadataPayloadSent) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{10} +} -func (m *GroupMetadataPayloadSent) GetDevicePK() []byte { - if m != nil { - return m.DevicePK +func (x *GroupMetadataPayloadSent) GetDevicePk() []byte { + if x != nil { + return x.DevicePk } return nil } -func (m *GroupMetadataPayloadSent) GetMessage() []byte { - if m != nil { - return m.Message +func (x *GroupMetadataPayloadSent) GetMessage() []byte { + if x != nil { + return x.Message } return nil } // ContactAliasKeyAdded is an event type where ones shares their alias public key type ContactAliasKeyAdded struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // device_pk is the device sending the event, signs the message - DevicePK []byte `protobuf:"bytes,1,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` + DevicePk []byte `protobuf:"bytes,1,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` // alias_pk is the alias key which will be used to verify a contact identity - AliasPK []byte `protobuf:"bytes,2,opt,name=alias_pk,json=aliasPk,proto3" json:"alias_pk,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + AliasPk []byte `protobuf:"bytes,2,opt,name=alias_pk,json=aliasPk,proto3" json:"alias_pk,omitempty"` } -func (m *ContactAliasKeyAdded) Reset() { *m = ContactAliasKeyAdded{} } -func (m *ContactAliasKeyAdded) String() string { return proto.CompactTextString(m) } -func (*ContactAliasKeyAdded) ProtoMessage() {} -func (*ContactAliasKeyAdded) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{11} +func (x *ContactAliasKeyAdded) Reset() { + *x = ContactAliasKeyAdded{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ContactAliasKeyAdded) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ContactAliasKeyAdded) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ContactAliasKeyAdded) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ContactAliasKeyAdded.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ContactAliasKeyAdded) ProtoMessage() {} + +func (x *ContactAliasKeyAdded) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ContactAliasKeyAdded) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactAliasKeyAdded.Merge(m, src) -} -func (m *ContactAliasKeyAdded) XXX_Size() int { - return m.Size() -} -func (m *ContactAliasKeyAdded) XXX_DiscardUnknown() { - xxx_messageInfo_ContactAliasKeyAdded.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ContactAliasKeyAdded proto.InternalMessageInfo +// Deprecated: Use ContactAliasKeyAdded.ProtoReflect.Descriptor instead. +func (*ContactAliasKeyAdded) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{11} +} -func (m *ContactAliasKeyAdded) GetDevicePK() []byte { - if m != nil { - return m.DevicePK +func (x *ContactAliasKeyAdded) GetDevicePk() []byte { + if x != nil { + return x.DevicePk } return nil } -func (m *ContactAliasKeyAdded) GetAliasPK() []byte { - if m != nil { - return m.AliasPK +func (x *ContactAliasKeyAdded) GetAliasPk() []byte { + if x != nil { + return x.AliasPk } return nil } @@ -1218,758 +1402,756 @@ func (m *ContactAliasKeyAdded) GetAliasPK() []byte { // GroupMemberDeviceAdded is an event which indicates to a group a new device (and eventually a new member) is joining it // When added on AccountGroup, this event should be followed by appropriate GroupMemberDeviceAdded and GroupDeviceChainKeyAdded events type GroupMemberDeviceAdded struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // member_pk is the member sending the event - MemberPK []byte `protobuf:"bytes,1,opt,name=member_pk,json=memberPk,proto3" json:"member_pk,omitempty"` + MemberPk []byte `protobuf:"bytes,1,opt,name=member_pk,json=memberPk,proto3" json:"member_pk,omitempty"` // device_pk is the device sending the event, signs the message - DevicePK []byte `protobuf:"bytes,2,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` + DevicePk []byte `protobuf:"bytes,2,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` // member_sig is used to prove the ownership of the member pk - MemberSig []byte `protobuf:"bytes,3,opt,name=member_sig,json=memberSig,proto3" json:"member_sig,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + MemberSig []byte `protobuf:"bytes,3,opt,name=member_sig,json=memberSig,proto3" json:"member_sig,omitempty"` // TODO: signature of what ??? ensure it can't be replayed } -func (m *GroupMemberDeviceAdded) Reset() { *m = GroupMemberDeviceAdded{} } -func (m *GroupMemberDeviceAdded) String() string { return proto.CompactTextString(m) } -func (*GroupMemberDeviceAdded) ProtoMessage() {} -func (*GroupMemberDeviceAdded) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{12} +func (x *GroupMemberDeviceAdded) Reset() { + *x = GroupMemberDeviceAdded{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GroupMemberDeviceAdded) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *GroupMemberDeviceAdded) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GroupMemberDeviceAdded) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GroupMemberDeviceAdded.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*GroupMemberDeviceAdded) ProtoMessage() {} + +func (x *GroupMemberDeviceAdded) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *GroupMemberDeviceAdded) XXX_Merge(src proto.Message) { - xxx_messageInfo_GroupMemberDeviceAdded.Merge(m, src) -} -func (m *GroupMemberDeviceAdded) XXX_Size() int { - return m.Size() -} -func (m *GroupMemberDeviceAdded) XXX_DiscardUnknown() { - xxx_messageInfo_GroupMemberDeviceAdded.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_GroupMemberDeviceAdded proto.InternalMessageInfo +// Deprecated: Use GroupMemberDeviceAdded.ProtoReflect.Descriptor instead. +func (*GroupMemberDeviceAdded) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{12} +} -func (m *GroupMemberDeviceAdded) GetMemberPK() []byte { - if m != nil { - return m.MemberPK +func (x *GroupMemberDeviceAdded) GetMemberPk() []byte { + if x != nil { + return x.MemberPk } return nil } -func (m *GroupMemberDeviceAdded) GetDevicePK() []byte { - if m != nil { - return m.DevicePK +func (x *GroupMemberDeviceAdded) GetDevicePk() []byte { + if x != nil { + return x.DevicePk } return nil } -func (m *GroupMemberDeviceAdded) GetMemberSig() []byte { - if m != nil { - return m.MemberSig +func (x *GroupMemberDeviceAdded) GetMemberSig() []byte { + if x != nil { + return x.MemberSig } return nil } // DeviceChainKey is a chain key, which will be encrypted for a specific member of the group type DeviceChainKey struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // chain_key is the current value of the chain key of the group device ChainKey []byte `protobuf:"bytes,1,opt,name=chain_key,json=chainKey,proto3" json:"chain_key,omitempty"` // counter is the current value of the counter of the group device - Counter uint64 `protobuf:"varint,2,opt,name=counter,proto3" json:"counter,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Counter uint64 `protobuf:"varint,2,opt,name=counter,proto3" json:"counter,omitempty"` } -func (m *DeviceChainKey) Reset() { *m = DeviceChainKey{} } -func (m *DeviceChainKey) String() string { return proto.CompactTextString(m) } -func (*DeviceChainKey) ProtoMessage() {} -func (*DeviceChainKey) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{13} +func (x *DeviceChainKey) Reset() { + *x = DeviceChainKey{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DeviceChainKey) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *DeviceChainKey) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DeviceChainKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DeviceChainKey.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*DeviceChainKey) ProtoMessage() {} + +func (x *DeviceChainKey) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *DeviceChainKey) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeviceChainKey.Merge(m, src) -} -func (m *DeviceChainKey) XXX_Size() int { - return m.Size() -} -func (m *DeviceChainKey) XXX_DiscardUnknown() { - xxx_messageInfo_DeviceChainKey.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_DeviceChainKey proto.InternalMessageInfo +// Deprecated: Use DeviceChainKey.ProtoReflect.Descriptor instead. +func (*DeviceChainKey) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{13} +} -func (m *DeviceChainKey) GetChainKey() []byte { - if m != nil { - return m.ChainKey +func (x *DeviceChainKey) GetChainKey() []byte { + if x != nil { + return x.ChainKey } return nil } -func (m *DeviceChainKey) GetCounter() uint64 { - if m != nil { - return m.Counter +func (x *DeviceChainKey) GetCounter() uint64 { + if x != nil { + return x.Counter } return 0 } // GroupDeviceChainKeyAdded is an event which indicates to a group member a device chain key type GroupDeviceChainKeyAdded struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // device_pk is the device sending the event, signs the message - DevicePK []byte `protobuf:"bytes,1,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` + DevicePk []byte `protobuf:"bytes,1,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` // dest_member_pk is the member who should receive the secret - DestMemberPK []byte `protobuf:"bytes,2,opt,name=dest_member_pk,json=destMemberPk,proto3" json:"dest_member_pk,omitempty"` + DestMemberPk []byte `protobuf:"bytes,2,opt,name=dest_member_pk,json=destMemberPk,proto3" json:"dest_member_pk,omitempty"` // payload is the serialization of Payload encrypted for the specified member - Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` } -func (m *GroupDeviceChainKeyAdded) Reset() { *m = GroupDeviceChainKeyAdded{} } -func (m *GroupDeviceChainKeyAdded) String() string { return proto.CompactTextString(m) } -func (*GroupDeviceChainKeyAdded) ProtoMessage() {} -func (*GroupDeviceChainKeyAdded) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{14} +func (x *GroupDeviceChainKeyAdded) Reset() { + *x = GroupDeviceChainKeyAdded{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GroupDeviceChainKeyAdded) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *GroupDeviceChainKeyAdded) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GroupDeviceChainKeyAdded) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GroupDeviceChainKeyAdded.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*GroupDeviceChainKeyAdded) ProtoMessage() {} + +func (x *GroupDeviceChainKeyAdded) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *GroupDeviceChainKeyAdded) XXX_Merge(src proto.Message) { - xxx_messageInfo_GroupDeviceChainKeyAdded.Merge(m, src) -} -func (m *GroupDeviceChainKeyAdded) XXX_Size() int { - return m.Size() -} -func (m *GroupDeviceChainKeyAdded) XXX_DiscardUnknown() { - xxx_messageInfo_GroupDeviceChainKeyAdded.DiscardUnknown(m) + +// Deprecated: Use GroupDeviceChainKeyAdded.ProtoReflect.Descriptor instead. +func (*GroupDeviceChainKeyAdded) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{14} } -var xxx_messageInfo_GroupDeviceChainKeyAdded proto.InternalMessageInfo - -func (m *GroupDeviceChainKeyAdded) GetDevicePK() []byte { - if m != nil { - return m.DevicePK +func (x *GroupDeviceChainKeyAdded) GetDevicePk() []byte { + if x != nil { + return x.DevicePk } return nil } -func (m *GroupDeviceChainKeyAdded) GetDestMemberPK() []byte { - if m != nil { - return m.DestMemberPK +func (x *GroupDeviceChainKeyAdded) GetDestMemberPk() []byte { + if x != nil { + return x.DestMemberPk } return nil } -func (m *GroupDeviceChainKeyAdded) GetPayload() []byte { - if m != nil { - return m.Payload +func (x *GroupDeviceChainKeyAdded) GetPayload() []byte { + if x != nil { + return x.Payload } return nil } // MultiMemberGroupAliasResolverAdded indicates that a group member want to disclose their presence in the group to their contacts type MultiMemberGroupAliasResolverAdded struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // device_pk is the device sending the event, signs the message - DevicePK []byte `protobuf:"bytes,1,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` + DevicePk []byte `protobuf:"bytes,1,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` // alias_resolver allows contact of an account to resolve the real identity behind an alias (Multi-Member Group Member) // Generated by both contacts and account independently using: hmac(aliasPK, GroupID) AliasResolver []byte `protobuf:"bytes,2,opt,name=alias_resolver,json=aliasResolver,proto3" json:"alias_resolver,omitempty"` // alias_proof ensures that the associated alias_resolver has been issued by the right account // Generated using aliasSKSig(GroupID) - AliasProof []byte `protobuf:"bytes,3,opt,name=alias_proof,json=aliasProof,proto3" json:"alias_proof,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + AliasProof []byte `protobuf:"bytes,3,opt,name=alias_proof,json=aliasProof,proto3" json:"alias_proof,omitempty"` } -func (m *MultiMemberGroupAliasResolverAdded) Reset() { *m = MultiMemberGroupAliasResolverAdded{} } -func (m *MultiMemberGroupAliasResolverAdded) String() string { return proto.CompactTextString(m) } -func (*MultiMemberGroupAliasResolverAdded) ProtoMessage() {} -func (*MultiMemberGroupAliasResolverAdded) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{15} +func (x *MultiMemberGroupAliasResolverAdded) Reset() { + *x = MultiMemberGroupAliasResolverAdded{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *MultiMemberGroupAliasResolverAdded) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *MultiMemberGroupAliasResolverAdded) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MultiMemberGroupAliasResolverAdded) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MultiMemberGroupAliasResolverAdded.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*MultiMemberGroupAliasResolverAdded) ProtoMessage() {} + +func (x *MultiMemberGroupAliasResolverAdded) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *MultiMemberGroupAliasResolverAdded) XXX_Merge(src proto.Message) { - xxx_messageInfo_MultiMemberGroupAliasResolverAdded.Merge(m, src) -} -func (m *MultiMemberGroupAliasResolverAdded) XXX_Size() int { - return m.Size() -} -func (m *MultiMemberGroupAliasResolverAdded) XXX_DiscardUnknown() { - xxx_messageInfo_MultiMemberGroupAliasResolverAdded.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_MultiMemberGroupAliasResolverAdded proto.InternalMessageInfo +// Deprecated: Use MultiMemberGroupAliasResolverAdded.ProtoReflect.Descriptor instead. +func (*MultiMemberGroupAliasResolverAdded) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{15} +} -func (m *MultiMemberGroupAliasResolverAdded) GetDevicePK() []byte { - if m != nil { - return m.DevicePK +func (x *MultiMemberGroupAliasResolverAdded) GetDevicePk() []byte { + if x != nil { + return x.DevicePk } return nil } -func (m *MultiMemberGroupAliasResolverAdded) GetAliasResolver() []byte { - if m != nil { - return m.AliasResolver +func (x *MultiMemberGroupAliasResolverAdded) GetAliasResolver() []byte { + if x != nil { + return x.AliasResolver } return nil } -func (m *MultiMemberGroupAliasResolverAdded) GetAliasProof() []byte { - if m != nil { - return m.AliasProof +func (x *MultiMemberGroupAliasResolverAdded) GetAliasProof() []byte { + if x != nil { + return x.AliasProof } return nil } // MultiMemberGroupAdminRoleGranted indicates that a group admin allows another group member to act as an admin type MultiMemberGroupAdminRoleGranted struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // device_pk is the device sending the event, signs the message, must be the device of an admin of the group - DevicePK []byte `protobuf:"bytes,1,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` + DevicePk []byte `protobuf:"bytes,1,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` // grantee_member_pk is the member public key of the member granted of the admin role - GranteeMemberPK []byte `protobuf:"bytes,2,opt,name=grantee_member_pk,json=granteeMemberPk,proto3" json:"grantee_member_pk,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + GranteeMemberPk []byte `protobuf:"bytes,2,opt,name=grantee_member_pk,json=granteeMemberPk,proto3" json:"grantee_member_pk,omitempty"` } -func (m *MultiMemberGroupAdminRoleGranted) Reset() { *m = MultiMemberGroupAdminRoleGranted{} } -func (m *MultiMemberGroupAdminRoleGranted) String() string { return proto.CompactTextString(m) } -func (*MultiMemberGroupAdminRoleGranted) ProtoMessage() {} -func (*MultiMemberGroupAdminRoleGranted) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{16} +func (x *MultiMemberGroupAdminRoleGranted) Reset() { + *x = MultiMemberGroupAdminRoleGranted{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *MultiMemberGroupAdminRoleGranted) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *MultiMemberGroupAdminRoleGranted) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MultiMemberGroupAdminRoleGranted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MultiMemberGroupAdminRoleGranted.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*MultiMemberGroupAdminRoleGranted) ProtoMessage() {} + +func (x *MultiMemberGroupAdminRoleGranted) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *MultiMemberGroupAdminRoleGranted) XXX_Merge(src proto.Message) { - xxx_messageInfo_MultiMemberGroupAdminRoleGranted.Merge(m, src) -} -func (m *MultiMemberGroupAdminRoleGranted) XXX_Size() int { - return m.Size() -} -func (m *MultiMemberGroupAdminRoleGranted) XXX_DiscardUnknown() { - xxx_messageInfo_MultiMemberGroupAdminRoleGranted.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_MultiMemberGroupAdminRoleGranted proto.InternalMessageInfo +// Deprecated: Use MultiMemberGroupAdminRoleGranted.ProtoReflect.Descriptor instead. +func (*MultiMemberGroupAdminRoleGranted) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{16} +} -func (m *MultiMemberGroupAdminRoleGranted) GetDevicePK() []byte { - if m != nil { - return m.DevicePK +func (x *MultiMemberGroupAdminRoleGranted) GetDevicePk() []byte { + if x != nil { + return x.DevicePk } return nil } -func (m *MultiMemberGroupAdminRoleGranted) GetGranteeMemberPK() []byte { - if m != nil { - return m.GranteeMemberPK +func (x *MultiMemberGroupAdminRoleGranted) GetGranteeMemberPk() []byte { + if x != nil { + return x.GranteeMemberPk } return nil } // MultiMemberGroupInitialMemberAnnounced indicates that a member is the group creator, this event is signed using the group ID private key type MultiMemberGroupInitialMemberAnnounced struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // member_pk is the public key of the member who is the group creator - MemberPK []byte `protobuf:"bytes,1,opt,name=member_pk,json=memberPk,proto3" json:"member_pk,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + MemberPk []byte `protobuf:"bytes,1,opt,name=member_pk,json=memberPk,proto3" json:"member_pk,omitempty"` } -func (m *MultiMemberGroupInitialMemberAnnounced) Reset() { - *m = MultiMemberGroupInitialMemberAnnounced{} -} -func (m *MultiMemberGroupInitialMemberAnnounced) String() string { return proto.CompactTextString(m) } -func (*MultiMemberGroupInitialMemberAnnounced) ProtoMessage() {} -func (*MultiMemberGroupInitialMemberAnnounced) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{17} +func (x *MultiMemberGroupInitialMemberAnnounced) Reset() { + *x = MultiMemberGroupInitialMemberAnnounced{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *MultiMemberGroupInitialMemberAnnounced) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *MultiMemberGroupInitialMemberAnnounced) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MultiMemberGroupInitialMemberAnnounced) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MultiMemberGroupInitialMemberAnnounced.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*MultiMemberGroupInitialMemberAnnounced) ProtoMessage() {} + +func (x *MultiMemberGroupInitialMemberAnnounced) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *MultiMemberGroupInitialMemberAnnounced) XXX_Merge(src proto.Message) { - xxx_messageInfo_MultiMemberGroupInitialMemberAnnounced.Merge(m, src) -} -func (m *MultiMemberGroupInitialMemberAnnounced) XXX_Size() int { - return m.Size() -} -func (m *MultiMemberGroupInitialMemberAnnounced) XXX_DiscardUnknown() { - xxx_messageInfo_MultiMemberGroupInitialMemberAnnounced.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_MultiMemberGroupInitialMemberAnnounced proto.InternalMessageInfo +// Deprecated: Use MultiMemberGroupInitialMemberAnnounced.ProtoReflect.Descriptor instead. +func (*MultiMemberGroupInitialMemberAnnounced) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{17} +} -func (m *MultiMemberGroupInitialMemberAnnounced) GetMemberPK() []byte { - if m != nil { - return m.MemberPK +func (x *MultiMemberGroupInitialMemberAnnounced) GetMemberPk() []byte { + if x != nil { + return x.MemberPk } return nil } // GroupAddAdditionalRendezvousSeed indicates that an additional rendezvous point should be used for data synchronization type GroupAddAdditionalRendezvousSeed struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // device_pk is the device sending the event, signs the message, must be the device of an admin of the group - DevicePK []byte `protobuf:"bytes,1,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` + DevicePk []byte `protobuf:"bytes,1,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` // seed is the additional rendezvous point seed which should be used - Seed []byte `protobuf:"bytes,2,opt,name=seed,proto3" json:"seed,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Seed []byte `protobuf:"bytes,2,opt,name=seed,proto3" json:"seed,omitempty"` } -func (m *GroupAddAdditionalRendezvousSeed) Reset() { *m = GroupAddAdditionalRendezvousSeed{} } -func (m *GroupAddAdditionalRendezvousSeed) String() string { return proto.CompactTextString(m) } -func (*GroupAddAdditionalRendezvousSeed) ProtoMessage() {} -func (*GroupAddAdditionalRendezvousSeed) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{18} +func (x *GroupAddAdditionalRendezvousSeed) Reset() { + *x = GroupAddAdditionalRendezvousSeed{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GroupAddAdditionalRendezvousSeed) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *GroupAddAdditionalRendezvousSeed) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GroupAddAdditionalRendezvousSeed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GroupAddAdditionalRendezvousSeed.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*GroupAddAdditionalRendezvousSeed) ProtoMessage() {} + +func (x *GroupAddAdditionalRendezvousSeed) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *GroupAddAdditionalRendezvousSeed) XXX_Merge(src proto.Message) { - xxx_messageInfo_GroupAddAdditionalRendezvousSeed.Merge(m, src) -} -func (m *GroupAddAdditionalRendezvousSeed) XXX_Size() int { - return m.Size() -} -func (m *GroupAddAdditionalRendezvousSeed) XXX_DiscardUnknown() { - xxx_messageInfo_GroupAddAdditionalRendezvousSeed.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_GroupAddAdditionalRendezvousSeed proto.InternalMessageInfo +// Deprecated: Use GroupAddAdditionalRendezvousSeed.ProtoReflect.Descriptor instead. +func (*GroupAddAdditionalRendezvousSeed) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{18} +} -func (m *GroupAddAdditionalRendezvousSeed) GetDevicePK() []byte { - if m != nil { - return m.DevicePK +func (x *GroupAddAdditionalRendezvousSeed) GetDevicePk() []byte { + if x != nil { + return x.DevicePk } return nil } -func (m *GroupAddAdditionalRendezvousSeed) GetSeed() []byte { - if m != nil { - return m.Seed +func (x *GroupAddAdditionalRendezvousSeed) GetSeed() []byte { + if x != nil { + return x.Seed } return nil } // GroupRemoveAdditionalRendezvousSeed indicates that a previously added rendezvous point should be removed type GroupRemoveAdditionalRendezvousSeed struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // device_pk is the device sending the event, signs the message, must be the device of an admin of the group - DevicePK []byte `protobuf:"bytes,1,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` + DevicePk []byte `protobuf:"bytes,1,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` // seed is the additional rendezvous point seed which should be removed - Seed []byte `protobuf:"bytes,2,opt,name=seed,proto3" json:"seed,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Seed []byte `protobuf:"bytes,2,opt,name=seed,proto3" json:"seed,omitempty"` } -func (m *GroupRemoveAdditionalRendezvousSeed) Reset() { *m = GroupRemoveAdditionalRendezvousSeed{} } -func (m *GroupRemoveAdditionalRendezvousSeed) String() string { return proto.CompactTextString(m) } -func (*GroupRemoveAdditionalRendezvousSeed) ProtoMessage() {} -func (*GroupRemoveAdditionalRendezvousSeed) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{19} +func (x *GroupRemoveAdditionalRendezvousSeed) Reset() { + *x = GroupRemoveAdditionalRendezvousSeed{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GroupRemoveAdditionalRendezvousSeed) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *GroupRemoveAdditionalRendezvousSeed) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GroupRemoveAdditionalRendezvousSeed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GroupRemoveAdditionalRendezvousSeed.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*GroupRemoveAdditionalRendezvousSeed) ProtoMessage() {} + +func (x *GroupRemoveAdditionalRendezvousSeed) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *GroupRemoveAdditionalRendezvousSeed) XXX_Merge(src proto.Message) { - xxx_messageInfo_GroupRemoveAdditionalRendezvousSeed.Merge(m, src) -} -func (m *GroupRemoveAdditionalRendezvousSeed) XXX_Size() int { - return m.Size() -} -func (m *GroupRemoveAdditionalRendezvousSeed) XXX_DiscardUnknown() { - xxx_messageInfo_GroupRemoveAdditionalRendezvousSeed.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_GroupRemoveAdditionalRendezvousSeed proto.InternalMessageInfo +// Deprecated: Use GroupRemoveAdditionalRendezvousSeed.ProtoReflect.Descriptor instead. +func (*GroupRemoveAdditionalRendezvousSeed) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{19} +} -func (m *GroupRemoveAdditionalRendezvousSeed) GetDevicePK() []byte { - if m != nil { - return m.DevicePK +func (x *GroupRemoveAdditionalRendezvousSeed) GetDevicePk() []byte { + if x != nil { + return x.DevicePk } return nil } -func (m *GroupRemoveAdditionalRendezvousSeed) GetSeed() []byte { - if m != nil { - return m.Seed +func (x *GroupRemoveAdditionalRendezvousSeed) GetSeed() []byte { + if x != nil { + return x.Seed } return nil } // AccountGroupJoined indicates that the account is now part of a new group type AccountGroupJoined struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // device_pk is the device sending the event, signs the message - DevicePK []byte `protobuf:"bytes,1,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` + DevicePk []byte `protobuf:"bytes,1,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` // group describe the joined group - Group *Group `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Group *Group `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"` } -func (m *AccountGroupJoined) Reset() { *m = AccountGroupJoined{} } -func (m *AccountGroupJoined) String() string { return proto.CompactTextString(m) } -func (*AccountGroupJoined) ProtoMessage() {} -func (*AccountGroupJoined) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{20} +func (x *AccountGroupJoined) Reset() { + *x = AccountGroupJoined{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *AccountGroupJoined) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *AccountGroupJoined) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AccountGroupJoined) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AccountGroupJoined.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*AccountGroupJoined) ProtoMessage() {} + +func (x *AccountGroupJoined) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[20] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *AccountGroupJoined) XXX_Merge(src proto.Message) { - xxx_messageInfo_AccountGroupJoined.Merge(m, src) -} -func (m *AccountGroupJoined) XXX_Size() int { - return m.Size() -} -func (m *AccountGroupJoined) XXX_DiscardUnknown() { - xxx_messageInfo_AccountGroupJoined.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_AccountGroupJoined proto.InternalMessageInfo +// Deprecated: Use AccountGroupJoined.ProtoReflect.Descriptor instead. +func (*AccountGroupJoined) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{20} +} -func (m *AccountGroupJoined) GetDevicePK() []byte { - if m != nil { - return m.DevicePK +func (x *AccountGroupJoined) GetDevicePk() []byte { + if x != nil { + return x.DevicePk } return nil } -func (m *AccountGroupJoined) GetGroup() *Group { - if m != nil { - return m.Group +func (x *AccountGroupJoined) GetGroup() *Group { + if x != nil { + return x.Group } return nil } // AccountGroupLeft indicates that the account has left a group type AccountGroupLeft struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // device_pk is the device sending the event, signs the message - DevicePK []byte `protobuf:"bytes,1,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` + DevicePk []byte `protobuf:"bytes,1,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` // group_pk references the group left - GroupPK []byte `protobuf:"bytes,2,opt,name=group_pk,json=groupPk,proto3" json:"group_pk,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + GroupPk []byte `protobuf:"bytes,2,opt,name=group_pk,json=groupPk,proto3" json:"group_pk,omitempty"` } -func (m *AccountGroupLeft) Reset() { *m = AccountGroupLeft{} } -func (m *AccountGroupLeft) String() string { return proto.CompactTextString(m) } -func (*AccountGroupLeft) ProtoMessage() {} -func (*AccountGroupLeft) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{21} +func (x *AccountGroupLeft) Reset() { + *x = AccountGroupLeft{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *AccountGroupLeft) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *AccountGroupLeft) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AccountGroupLeft) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AccountGroupLeft.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*AccountGroupLeft) ProtoMessage() {} + +func (x *AccountGroupLeft) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *AccountGroupLeft) XXX_Merge(src proto.Message) { - xxx_messageInfo_AccountGroupLeft.Merge(m, src) -} -func (m *AccountGroupLeft) XXX_Size() int { - return m.Size() -} -func (m *AccountGroupLeft) XXX_DiscardUnknown() { - xxx_messageInfo_AccountGroupLeft.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_AccountGroupLeft proto.InternalMessageInfo +// Deprecated: Use AccountGroupLeft.ProtoReflect.Descriptor instead. +func (*AccountGroupLeft) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{21} +} -func (m *AccountGroupLeft) GetDevicePK() []byte { - if m != nil { - return m.DevicePK +func (x *AccountGroupLeft) GetDevicePk() []byte { + if x != nil { + return x.DevicePk } return nil } -func (m *AccountGroupLeft) GetGroupPK() []byte { - if m != nil { - return m.GroupPK +func (x *AccountGroupLeft) GetGroupPk() []byte { + if x != nil { + return x.GroupPk } return nil } // AccountContactRequestDisabled indicates that the account should not be advertised on a public rendezvous point type AccountContactRequestDisabled struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // device_pk is the device sending the event, signs the message - DevicePK []byte `protobuf:"bytes,1,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + DevicePk []byte `protobuf:"bytes,1,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` } -func (m *AccountContactRequestDisabled) Reset() { *m = AccountContactRequestDisabled{} } -func (m *AccountContactRequestDisabled) String() string { return proto.CompactTextString(m) } -func (*AccountContactRequestDisabled) ProtoMessage() {} -func (*AccountContactRequestDisabled) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{22} +func (x *AccountContactRequestDisabled) Reset() { + *x = AccountContactRequestDisabled{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *AccountContactRequestDisabled) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *AccountContactRequestDisabled) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AccountContactRequestDisabled) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AccountContactRequestDisabled.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*AccountContactRequestDisabled) ProtoMessage() {} + +func (x *AccountContactRequestDisabled) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *AccountContactRequestDisabled) XXX_Merge(src proto.Message) { - xxx_messageInfo_AccountContactRequestDisabled.Merge(m, src) -} -func (m *AccountContactRequestDisabled) XXX_Size() int { - return m.Size() -} -func (m *AccountContactRequestDisabled) XXX_DiscardUnknown() { - xxx_messageInfo_AccountContactRequestDisabled.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_AccountContactRequestDisabled proto.InternalMessageInfo +// Deprecated: Use AccountContactRequestDisabled.ProtoReflect.Descriptor instead. +func (*AccountContactRequestDisabled) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{22} +} -func (m *AccountContactRequestDisabled) GetDevicePK() []byte { - if m != nil { - return m.DevicePK +func (x *AccountContactRequestDisabled) GetDevicePk() []byte { + if x != nil { + return x.DevicePk } return nil } // AccountContactRequestEnabled indicates that the account should be advertised on a public rendezvous point type AccountContactRequestEnabled struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // device_pk is the device sending the event, signs the message - DevicePK []byte `protobuf:"bytes,1,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + DevicePk []byte `protobuf:"bytes,1,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` } -func (m *AccountContactRequestEnabled) Reset() { *m = AccountContactRequestEnabled{} } -func (m *AccountContactRequestEnabled) String() string { return proto.CompactTextString(m) } -func (*AccountContactRequestEnabled) ProtoMessage() {} -func (*AccountContactRequestEnabled) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{23} +func (x *AccountContactRequestEnabled) Reset() { + *x = AccountContactRequestEnabled{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *AccountContactRequestEnabled) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *AccountContactRequestEnabled) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AccountContactRequestEnabled) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AccountContactRequestEnabled.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*AccountContactRequestEnabled) ProtoMessage() {} + +func (x *AccountContactRequestEnabled) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[23] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *AccountContactRequestEnabled) XXX_Merge(src proto.Message) { - xxx_messageInfo_AccountContactRequestEnabled.Merge(m, src) -} -func (m *AccountContactRequestEnabled) XXX_Size() int { - return m.Size() -} -func (m *AccountContactRequestEnabled) XXX_DiscardUnknown() { - xxx_messageInfo_AccountContactRequestEnabled.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_AccountContactRequestEnabled proto.InternalMessageInfo +// Deprecated: Use AccountContactRequestEnabled.ProtoReflect.Descriptor instead. +func (*AccountContactRequestEnabled) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{23} +} -func (m *AccountContactRequestEnabled) GetDevicePK() []byte { - if m != nil { - return m.DevicePK +func (x *AccountContactRequestEnabled) GetDevicePk() []byte { + if x != nil { + return x.DevicePk } return nil } // AccountContactRequestReferenceReset indicates that the account should be advertised on different public rendezvous points type AccountContactRequestReferenceReset struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // device_pk is the device sending the event, signs the message - DevicePK []byte `protobuf:"bytes,1,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` + DevicePk []byte `protobuf:"bytes,1,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` // public_rendezvous_seed is the new rendezvous point seed - PublicRendezvousSeed []byte `protobuf:"bytes,2,opt,name=public_rendezvous_seed,json=publicRendezvousSeed,proto3" json:"public_rendezvous_seed,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + PublicRendezvousSeed []byte `protobuf:"bytes,2,opt,name=public_rendezvous_seed,json=publicRendezvousSeed,proto3" json:"public_rendezvous_seed,omitempty"` } -func (m *AccountContactRequestReferenceReset) Reset() { *m = AccountContactRequestReferenceReset{} } -func (m *AccountContactRequestReferenceReset) String() string { return proto.CompactTextString(m) } -func (*AccountContactRequestReferenceReset) ProtoMessage() {} -func (*AccountContactRequestReferenceReset) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{24} +func (x *AccountContactRequestReferenceReset) Reset() { + *x = AccountContactRequestReferenceReset{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *AccountContactRequestReferenceReset) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *AccountContactRequestReferenceReset) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AccountContactRequestReferenceReset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AccountContactRequestReferenceReset.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*AccountContactRequestReferenceReset) ProtoMessage() {} + +func (x *AccountContactRequestReferenceReset) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[24] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *AccountContactRequestReferenceReset) XXX_Merge(src proto.Message) { - xxx_messageInfo_AccountContactRequestReferenceReset.Merge(m, src) -} -func (m *AccountContactRequestReferenceReset) XXX_Size() int { - return m.Size() -} -func (m *AccountContactRequestReferenceReset) XXX_DiscardUnknown() { - xxx_messageInfo_AccountContactRequestReferenceReset.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_AccountContactRequestReferenceReset proto.InternalMessageInfo +// Deprecated: Use AccountContactRequestReferenceReset.ProtoReflect.Descriptor instead. +func (*AccountContactRequestReferenceReset) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{24} +} -func (m *AccountContactRequestReferenceReset) GetDevicePK() []byte { - if m != nil { - return m.DevicePK +func (x *AccountContactRequestReferenceReset) GetDevicePk() []byte { + if x != nil { + return x.DevicePk } return nil } -func (m *AccountContactRequestReferenceReset) GetPublicRendezvousSeed() []byte { - if m != nil { - return m.PublicRendezvousSeed +func (x *AccountContactRequestReferenceReset) GetPublicRendezvousSeed() []byte { + if x != nil { + return x.PublicRendezvousSeed } return nil } @@ -1979,272 +2161,270 @@ func (m *AccountContactRequestReferenceReset) GetPublicRendezvousSeed() []byte { // This event should be followed by a GroupDeviceChainKeyAdded event within the AccountGroup // AccountContactRequestOutgoingEnqueued indicates that the account will attempt to send a contact request when a matching peer is discovered type AccountContactRequestOutgoingEnqueued struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // device_pk is the device sending the event, signs the message - DevicePK []byte `protobuf:"bytes,1,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` + DevicePk []byte `protobuf:"bytes,1,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` // group_pk is the 1to1 group with the requested user - GroupPK []byte `protobuf:"bytes,2,opt,name=group_pk,json=groupPk,proto3" json:"group_pk,omitempty"` + GroupPk []byte `protobuf:"bytes,2,opt,name=group_pk,json=groupPk,proto3" json:"group_pk,omitempty"` // contact is a message describing how to connect to the other account Contact *ShareableContact `protobuf:"bytes,3,opt,name=contact,proto3" json:"contact,omitempty"` // own_metadata is the identifying metadata that will be shared to the other account - OwnMetadata []byte `protobuf:"bytes,4,opt,name=own_metadata,json=ownMetadata,proto3" json:"own_metadata,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + OwnMetadata []byte `protobuf:"bytes,4,opt,name=own_metadata,json=ownMetadata,proto3" json:"own_metadata,omitempty"` } -func (m *AccountContactRequestOutgoingEnqueued) Reset() { *m = AccountContactRequestOutgoingEnqueued{} } -func (m *AccountContactRequestOutgoingEnqueued) String() string { return proto.CompactTextString(m) } -func (*AccountContactRequestOutgoingEnqueued) ProtoMessage() {} -func (*AccountContactRequestOutgoingEnqueued) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{25} +func (x *AccountContactRequestOutgoingEnqueued) Reset() { + *x = AccountContactRequestOutgoingEnqueued{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *AccountContactRequestOutgoingEnqueued) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *AccountContactRequestOutgoingEnqueued) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AccountContactRequestOutgoingEnqueued) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AccountContactRequestOutgoingEnqueued.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*AccountContactRequestOutgoingEnqueued) ProtoMessage() {} + +func (x *AccountContactRequestOutgoingEnqueued) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[25] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *AccountContactRequestOutgoingEnqueued) XXX_Merge(src proto.Message) { - xxx_messageInfo_AccountContactRequestOutgoingEnqueued.Merge(m, src) -} -func (m *AccountContactRequestOutgoingEnqueued) XXX_Size() int { - return m.Size() -} -func (m *AccountContactRequestOutgoingEnqueued) XXX_DiscardUnknown() { - xxx_messageInfo_AccountContactRequestOutgoingEnqueued.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_AccountContactRequestOutgoingEnqueued proto.InternalMessageInfo +// Deprecated: Use AccountContactRequestOutgoingEnqueued.ProtoReflect.Descriptor instead. +func (*AccountContactRequestOutgoingEnqueued) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{25} +} -func (m *AccountContactRequestOutgoingEnqueued) GetDevicePK() []byte { - if m != nil { - return m.DevicePK +func (x *AccountContactRequestOutgoingEnqueued) GetDevicePk() []byte { + if x != nil { + return x.DevicePk } return nil } -func (m *AccountContactRequestOutgoingEnqueued) GetGroupPK() []byte { - if m != nil { - return m.GroupPK +func (x *AccountContactRequestOutgoingEnqueued) GetGroupPk() []byte { + if x != nil { + return x.GroupPk } return nil } -func (m *AccountContactRequestOutgoingEnqueued) GetContact() *ShareableContact { - if m != nil { - return m.Contact +func (x *AccountContactRequestOutgoingEnqueued) GetContact() *ShareableContact { + if x != nil { + return x.Contact } return nil } -func (m *AccountContactRequestOutgoingEnqueued) GetOwnMetadata() []byte { - if m != nil { - return m.OwnMetadata +func (x *AccountContactRequestOutgoingEnqueued) GetOwnMetadata() []byte { + if x != nil { + return x.OwnMetadata } return nil } // AccountContactRequestOutgoingSent indicates that the account has sent a contact request type AccountContactRequestOutgoingSent struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // device_pk is the device sending the account event, signs the message - DevicePK []byte `protobuf:"bytes,1,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` + DevicePk []byte `protobuf:"bytes,1,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` // contact_pk is the contacted account - ContactPK []byte `protobuf:"bytes,2,opt,name=contact_pk,json=contactPk,proto3" json:"contact_pk,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ContactPk []byte `protobuf:"bytes,2,opt,name=contact_pk,json=contactPk,proto3" json:"contact_pk,omitempty"` } -func (m *AccountContactRequestOutgoingSent) Reset() { *m = AccountContactRequestOutgoingSent{} } -func (m *AccountContactRequestOutgoingSent) String() string { return proto.CompactTextString(m) } -func (*AccountContactRequestOutgoingSent) ProtoMessage() {} -func (*AccountContactRequestOutgoingSent) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{26} +func (x *AccountContactRequestOutgoingSent) Reset() { + *x = AccountContactRequestOutgoingSent{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *AccountContactRequestOutgoingSent) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *AccountContactRequestOutgoingSent) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AccountContactRequestOutgoingSent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AccountContactRequestOutgoingSent.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*AccountContactRequestOutgoingSent) ProtoMessage() {} + +func (x *AccountContactRequestOutgoingSent) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[26] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *AccountContactRequestOutgoingSent) XXX_Merge(src proto.Message) { - xxx_messageInfo_AccountContactRequestOutgoingSent.Merge(m, src) -} -func (m *AccountContactRequestOutgoingSent) XXX_Size() int { - return m.Size() -} -func (m *AccountContactRequestOutgoingSent) XXX_DiscardUnknown() { - xxx_messageInfo_AccountContactRequestOutgoingSent.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_AccountContactRequestOutgoingSent proto.InternalMessageInfo +// Deprecated: Use AccountContactRequestOutgoingSent.ProtoReflect.Descriptor instead. +func (*AccountContactRequestOutgoingSent) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{26} +} -func (m *AccountContactRequestOutgoingSent) GetDevicePK() []byte { - if m != nil { - return m.DevicePK +func (x *AccountContactRequestOutgoingSent) GetDevicePk() []byte { + if x != nil { + return x.DevicePk } return nil } -func (m *AccountContactRequestOutgoingSent) GetContactPK() []byte { - if m != nil { - return m.ContactPK +func (x *AccountContactRequestOutgoingSent) GetContactPk() []byte { + if x != nil { + return x.ContactPk } return nil } // AccountContactRequestIncomingReceived indicates that the account has received a new contact request type AccountContactRequestIncomingReceived struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // device_pk is the device sending the account event (which received the contact request), signs the message - DevicePK []byte `protobuf:"bytes,1,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` + DevicePk []byte `protobuf:"bytes,1,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` // contact_pk is the account sending the request - ContactPK []byte `protobuf:"bytes,2,opt,name=contact_pk,json=contactPk,proto3" json:"contact_pk,omitempty"` + ContactPk []byte `protobuf:"bytes,2,opt,name=contact_pk,json=contactPk,proto3" json:"contact_pk,omitempty"` // TODO: is this necessary? // contact_rendezvous_seed is the rendezvous seed of the contact sending the request ContactRendezvousSeed []byte `protobuf:"bytes,3,opt,name=contact_rendezvous_seed,json=contactRendezvousSeed,proto3" json:"contact_rendezvous_seed,omitempty"` // TODO: is this necessary? // contact_metadata is the metadata specific to the app to identify the contact for the request - ContactMetadata []byte `protobuf:"bytes,4,opt,name=contact_metadata,json=contactMetadata,proto3" json:"contact_metadata,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ContactMetadata []byte `protobuf:"bytes,4,opt,name=contact_metadata,json=contactMetadata,proto3" json:"contact_metadata,omitempty"` } -func (m *AccountContactRequestIncomingReceived) Reset() { *m = AccountContactRequestIncomingReceived{} } -func (m *AccountContactRequestIncomingReceived) String() string { return proto.CompactTextString(m) } -func (*AccountContactRequestIncomingReceived) ProtoMessage() {} -func (*AccountContactRequestIncomingReceived) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{27} +func (x *AccountContactRequestIncomingReceived) Reset() { + *x = AccountContactRequestIncomingReceived{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *AccountContactRequestIncomingReceived) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *AccountContactRequestIncomingReceived) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AccountContactRequestIncomingReceived) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AccountContactRequestIncomingReceived.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*AccountContactRequestIncomingReceived) ProtoMessage() {} + +func (x *AccountContactRequestIncomingReceived) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[27] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *AccountContactRequestIncomingReceived) XXX_Merge(src proto.Message) { - xxx_messageInfo_AccountContactRequestIncomingReceived.Merge(m, src) -} -func (m *AccountContactRequestIncomingReceived) XXX_Size() int { - return m.Size() -} -func (m *AccountContactRequestIncomingReceived) XXX_DiscardUnknown() { - xxx_messageInfo_AccountContactRequestIncomingReceived.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_AccountContactRequestIncomingReceived proto.InternalMessageInfo +// Deprecated: Use AccountContactRequestIncomingReceived.ProtoReflect.Descriptor instead. +func (*AccountContactRequestIncomingReceived) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{27} +} -func (m *AccountContactRequestIncomingReceived) GetDevicePK() []byte { - if m != nil { - return m.DevicePK +func (x *AccountContactRequestIncomingReceived) GetDevicePk() []byte { + if x != nil { + return x.DevicePk } return nil } -func (m *AccountContactRequestIncomingReceived) GetContactPK() []byte { - if m != nil { - return m.ContactPK +func (x *AccountContactRequestIncomingReceived) GetContactPk() []byte { + if x != nil { + return x.ContactPk } return nil } -func (m *AccountContactRequestIncomingReceived) GetContactRendezvousSeed() []byte { - if m != nil { - return m.ContactRendezvousSeed +func (x *AccountContactRequestIncomingReceived) GetContactRendezvousSeed() []byte { + if x != nil { + return x.ContactRendezvousSeed } return nil } -func (m *AccountContactRequestIncomingReceived) GetContactMetadata() []byte { - if m != nil { - return m.ContactMetadata +func (x *AccountContactRequestIncomingReceived) GetContactMetadata() []byte { + if x != nil { + return x.ContactMetadata } return nil } // AccountContactRequestIncomingDiscarded indicates that a contact request has been refused type AccountContactRequestIncomingDiscarded struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // device_pk is the device sending the event, signs the message - DevicePK []byte `protobuf:"bytes,1,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` + DevicePk []byte `protobuf:"bytes,1,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` // contact_pk is the contact whom request is refused - ContactPK []byte `protobuf:"bytes,2,opt,name=contact_pk,json=contactPk,proto3" json:"contact_pk,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ContactPk []byte `protobuf:"bytes,2,opt,name=contact_pk,json=contactPk,proto3" json:"contact_pk,omitempty"` } -func (m *AccountContactRequestIncomingDiscarded) Reset() { - *m = AccountContactRequestIncomingDiscarded{} -} -func (m *AccountContactRequestIncomingDiscarded) String() string { return proto.CompactTextString(m) } -func (*AccountContactRequestIncomingDiscarded) ProtoMessage() {} -func (*AccountContactRequestIncomingDiscarded) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{28} +func (x *AccountContactRequestIncomingDiscarded) Reset() { + *x = AccountContactRequestIncomingDiscarded{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *AccountContactRequestIncomingDiscarded) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *AccountContactRequestIncomingDiscarded) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AccountContactRequestIncomingDiscarded) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AccountContactRequestIncomingDiscarded.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*AccountContactRequestIncomingDiscarded) ProtoMessage() {} + +func (x *AccountContactRequestIncomingDiscarded) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[28] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *AccountContactRequestIncomingDiscarded) XXX_Merge(src proto.Message) { - xxx_messageInfo_AccountContactRequestIncomingDiscarded.Merge(m, src) -} -func (m *AccountContactRequestIncomingDiscarded) XXX_Size() int { - return m.Size() -} -func (m *AccountContactRequestIncomingDiscarded) XXX_DiscardUnknown() { - xxx_messageInfo_AccountContactRequestIncomingDiscarded.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_AccountContactRequestIncomingDiscarded proto.InternalMessageInfo +// Deprecated: Use AccountContactRequestIncomingDiscarded.ProtoReflect.Descriptor instead. +func (*AccountContactRequestIncomingDiscarded) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{28} +} -func (m *AccountContactRequestIncomingDiscarded) GetDevicePK() []byte { - if m != nil { - return m.DevicePK +func (x *AccountContactRequestIncomingDiscarded) GetDevicePk() []byte { + if x != nil { + return x.DevicePk } return nil } -func (m *AccountContactRequestIncomingDiscarded) GetContactPK() []byte { - if m != nil { - return m.ContactPK +func (x *AccountContactRequestIncomingDiscarded) GetContactPk() []byte { + if x != nil { + return x.ContactPk } return nil } @@ -2253,36462 +2433,11278 @@ func (m *AccountContactRequestIncomingDiscarded) GetContactPK() []byte { // This event should be followed by GroupMemberDeviceAdded and GroupDeviceChainKeyAdded events within the AccountGroup // AccountContactRequestIncomingAccepted indicates that a contact request has been accepted type AccountContactRequestIncomingAccepted struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // device_pk is the device sending the event, signs the message - DevicePK []byte `protobuf:"bytes,1,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` + DevicePk []byte `protobuf:"bytes,1,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` // contact_pk is the contact whom request is accepted - ContactPK []byte `protobuf:"bytes,2,opt,name=contact_pk,json=contactPk,proto3" json:"contact_pk,omitempty"` + ContactPk []byte `protobuf:"bytes,2,opt,name=contact_pk,json=contactPk,proto3" json:"contact_pk,omitempty"` // group_pk is the 1to1 group with the requester user - GroupPK []byte `protobuf:"bytes,3,opt,name=group_pk,json=groupPk,proto3" json:"group_pk,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + GroupPk []byte `protobuf:"bytes,3,opt,name=group_pk,json=groupPk,proto3" json:"group_pk,omitempty"` } -func (m *AccountContactRequestIncomingAccepted) Reset() { *m = AccountContactRequestIncomingAccepted{} } -func (m *AccountContactRequestIncomingAccepted) String() string { return proto.CompactTextString(m) } -func (*AccountContactRequestIncomingAccepted) ProtoMessage() {} -func (*AccountContactRequestIncomingAccepted) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{29} +func (x *AccountContactRequestIncomingAccepted) Reset() { + *x = AccountContactRequestIncomingAccepted{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *AccountContactRequestIncomingAccepted) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *AccountContactRequestIncomingAccepted) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AccountContactRequestIncomingAccepted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AccountContactRequestIncomingAccepted.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*AccountContactRequestIncomingAccepted) ProtoMessage() {} + +func (x *AccountContactRequestIncomingAccepted) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[29] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *AccountContactRequestIncomingAccepted) XXX_Merge(src proto.Message) { - xxx_messageInfo_AccountContactRequestIncomingAccepted.Merge(m, src) -} -func (m *AccountContactRequestIncomingAccepted) XXX_Size() int { - return m.Size() -} -func (m *AccountContactRequestIncomingAccepted) XXX_DiscardUnknown() { - xxx_messageInfo_AccountContactRequestIncomingAccepted.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_AccountContactRequestIncomingAccepted proto.InternalMessageInfo +// Deprecated: Use AccountContactRequestIncomingAccepted.ProtoReflect.Descriptor instead. +func (*AccountContactRequestIncomingAccepted) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{29} +} -func (m *AccountContactRequestIncomingAccepted) GetDevicePK() []byte { - if m != nil { - return m.DevicePK +func (x *AccountContactRequestIncomingAccepted) GetDevicePk() []byte { + if x != nil { + return x.DevicePk } return nil } -func (m *AccountContactRequestIncomingAccepted) GetContactPK() []byte { - if m != nil { - return m.ContactPK +func (x *AccountContactRequestIncomingAccepted) GetContactPk() []byte { + if x != nil { + return x.ContactPk } return nil } -func (m *AccountContactRequestIncomingAccepted) GetGroupPK() []byte { - if m != nil { - return m.GroupPK +func (x *AccountContactRequestIncomingAccepted) GetGroupPk() []byte { + if x != nil { + return x.GroupPk } return nil } // AccountContactBlocked indicates that a contact is blocked type AccountContactBlocked struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // device_pk is the device sending the event, signs the message - DevicePK []byte `protobuf:"bytes,1,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` + DevicePk []byte `protobuf:"bytes,1,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` // contact_pk is the contact blocked - ContactPK []byte `protobuf:"bytes,2,opt,name=contact_pk,json=contactPk,proto3" json:"contact_pk,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ContactPk []byte `protobuf:"bytes,2,opt,name=contact_pk,json=contactPk,proto3" json:"contact_pk,omitempty"` } -func (m *AccountContactBlocked) Reset() { *m = AccountContactBlocked{} } -func (m *AccountContactBlocked) String() string { return proto.CompactTextString(m) } -func (*AccountContactBlocked) ProtoMessage() {} -func (*AccountContactBlocked) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{30} +func (x *AccountContactBlocked) Reset() { + *x = AccountContactBlocked{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *AccountContactBlocked) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *AccountContactBlocked) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AccountContactBlocked) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AccountContactBlocked.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*AccountContactBlocked) ProtoMessage() {} + +func (x *AccountContactBlocked) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[30] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *AccountContactBlocked) XXX_Merge(src proto.Message) { - xxx_messageInfo_AccountContactBlocked.Merge(m, src) -} -func (m *AccountContactBlocked) XXX_Size() int { - return m.Size() -} -func (m *AccountContactBlocked) XXX_DiscardUnknown() { - xxx_messageInfo_AccountContactBlocked.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_AccountContactBlocked proto.InternalMessageInfo +// Deprecated: Use AccountContactBlocked.ProtoReflect.Descriptor instead. +func (*AccountContactBlocked) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{30} +} -func (m *AccountContactBlocked) GetDevicePK() []byte { - if m != nil { - return m.DevicePK +func (x *AccountContactBlocked) GetDevicePk() []byte { + if x != nil { + return x.DevicePk } return nil } -func (m *AccountContactBlocked) GetContactPK() []byte { - if m != nil { - return m.ContactPK +func (x *AccountContactBlocked) GetContactPk() []byte { + if x != nil { + return x.ContactPk } return nil } // AccountContactUnblocked indicates that a contact is unblocked type AccountContactUnblocked struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // device_pk is the device sending the event, signs the message - DevicePK []byte `protobuf:"bytes,1,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` + DevicePk []byte `protobuf:"bytes,1,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` // contact_pk is the contact unblocked - ContactPK []byte `protobuf:"bytes,2,opt,name=contact_pk,json=contactPk,proto3" json:"contact_pk,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ContactPk []byte `protobuf:"bytes,2,opt,name=contact_pk,json=contactPk,proto3" json:"contact_pk,omitempty"` } -func (m *AccountContactUnblocked) Reset() { *m = AccountContactUnblocked{} } -func (m *AccountContactUnblocked) String() string { return proto.CompactTextString(m) } -func (*AccountContactUnblocked) ProtoMessage() {} -func (*AccountContactUnblocked) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{31} +func (x *AccountContactUnblocked) Reset() { + *x = AccountContactUnblocked{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *AccountContactUnblocked) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *AccountContactUnblocked) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AccountContactUnblocked) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AccountContactUnblocked.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*AccountContactUnblocked) ProtoMessage() {} + +func (x *AccountContactUnblocked) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[31] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *AccountContactUnblocked) XXX_Merge(src proto.Message) { - xxx_messageInfo_AccountContactUnblocked.Merge(m, src) -} -func (m *AccountContactUnblocked) XXX_Size() int { - return m.Size() -} -func (m *AccountContactUnblocked) XXX_DiscardUnknown() { - xxx_messageInfo_AccountContactUnblocked.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_AccountContactUnblocked proto.InternalMessageInfo +// Deprecated: Use AccountContactUnblocked.ProtoReflect.Descriptor instead. +func (*AccountContactUnblocked) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{31} +} -func (m *AccountContactUnblocked) GetDevicePK() []byte { - if m != nil { - return m.DevicePK +func (x *AccountContactUnblocked) GetDevicePk() []byte { + if x != nil { + return x.DevicePk } return nil } -func (m *AccountContactUnblocked) GetContactPK() []byte { - if m != nil { - return m.ContactPK +func (x *AccountContactUnblocked) GetContactPk() []byte { + if x != nil { + return x.ContactPk } return nil } type GroupReplicating struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // device_pk is the device sending the event, signs the message - DevicePK []byte `protobuf:"bytes,1,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` + DevicePk []byte `protobuf:"bytes,1,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` // authentication_url indicates which server has been used for authentication - AuthenticationURL string `protobuf:"bytes,2,opt,name=authentication_url,json=authenticationUrl,proto3" json:"authentication_url,omitempty"` + AuthenticationUrl string `protobuf:"bytes,2,opt,name=authentication_url,json=authenticationUrl,proto3" json:"authentication_url,omitempty"` // replication_server indicates which server will be used for replication - ReplicationServer string `protobuf:"bytes,3,opt,name=replication_server,json=replicationServer,proto3" json:"replication_server,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ReplicationServer string `protobuf:"bytes,3,opt,name=replication_server,json=replicationServer,proto3" json:"replication_server,omitempty"` } -func (m *GroupReplicating) Reset() { *m = GroupReplicating{} } -func (m *GroupReplicating) String() string { return proto.CompactTextString(m) } -func (*GroupReplicating) ProtoMessage() {} -func (*GroupReplicating) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{32} +func (x *GroupReplicating) Reset() { + *x = GroupReplicating{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GroupReplicating) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *GroupReplicating) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GroupReplicating) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GroupReplicating.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*GroupReplicating) ProtoMessage() {} + +func (x *GroupReplicating) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[32] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *GroupReplicating) XXX_Merge(src proto.Message) { - xxx_messageInfo_GroupReplicating.Merge(m, src) -} -func (m *GroupReplicating) XXX_Size() int { - return m.Size() -} -func (m *GroupReplicating) XXX_DiscardUnknown() { - xxx_messageInfo_GroupReplicating.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_GroupReplicating proto.InternalMessageInfo +// Deprecated: Use GroupReplicating.ProtoReflect.Descriptor instead. +func (*GroupReplicating) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{32} +} -func (m *GroupReplicating) GetDevicePK() []byte { - if m != nil { - return m.DevicePK +func (x *GroupReplicating) GetDevicePk() []byte { + if x != nil { + return x.DevicePk } return nil } -func (m *GroupReplicating) GetAuthenticationURL() string { - if m != nil { - return m.AuthenticationURL +func (x *GroupReplicating) GetAuthenticationUrl() string { + if x != nil { + return x.AuthenticationUrl } return "" } -func (m *GroupReplicating) GetReplicationServer() string { - if m != nil { - return m.ReplicationServer +func (x *GroupReplicating) GetReplicationServer() string { + if x != nil { + return x.ReplicationServer } return "" } type ServiceExportData struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ServiceExportData) Reset() { *m = ServiceExportData{} } -func (m *ServiceExportData) String() string { return proto.CompactTextString(m) } -func (*ServiceExportData) ProtoMessage() {} -func (*ServiceExportData) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{33} +func (x *ServiceExportData) Reset() { + *x = ServiceExportData{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ServiceExportData) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ServiceExportData) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ServiceExportData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ServiceExportData.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ServiceExportData) ProtoMessage() {} + +func (x *ServiceExportData) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[33] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ServiceExportData) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServiceExportData.Merge(m, src) -} -func (m *ServiceExportData) XXX_Size() int { - return m.Size() -} -func (m *ServiceExportData) XXX_DiscardUnknown() { - xxx_messageInfo_ServiceExportData.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ServiceExportData proto.InternalMessageInfo +// Deprecated: Use ServiceExportData.ProtoReflect.Descriptor instead. +func (*ServiceExportData) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{33} +} -type ServiceExportData_Request struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ServiceGetConfiguration struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ServiceExportData_Request) Reset() { *m = ServiceExportData_Request{} } -func (m *ServiceExportData_Request) String() string { return proto.CompactTextString(m) } -func (*ServiceExportData_Request) ProtoMessage() {} -func (*ServiceExportData_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{33, 0} +func (x *ServiceGetConfiguration) Reset() { + *x = ServiceGetConfiguration{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ServiceExportData_Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ServiceGetConfiguration) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ServiceExportData_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ServiceExportData_Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ServiceGetConfiguration) ProtoMessage() {} + +func (x *ServiceGetConfiguration) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[34] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ServiceExportData_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServiceExportData_Request.Merge(m, src) -} -func (m *ServiceExportData_Request) XXX_Size() int { - return m.Size() -} -func (m *ServiceExportData_Request) XXX_DiscardUnknown() { - xxx_messageInfo_ServiceExportData_Request.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ServiceExportData_Request proto.InternalMessageInfo +// Deprecated: Use ServiceGetConfiguration.ProtoReflect.Descriptor instead. +func (*ServiceGetConfiguration) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{34} +} -type ServiceExportData_Reply struct { - ExportedData []byte `protobuf:"bytes,1,opt,name=exported_data,json=exportedData,proto3" json:"exported_data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ContactRequestReference struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ServiceExportData_Reply) Reset() { *m = ServiceExportData_Reply{} } -func (m *ServiceExportData_Reply) String() string { return proto.CompactTextString(m) } -func (*ServiceExportData_Reply) ProtoMessage() {} -func (*ServiceExportData_Reply) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{33, 1} +func (x *ContactRequestReference) Reset() { + *x = ContactRequestReference{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ServiceExportData_Reply) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ContactRequestReference) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ServiceExportData_Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ServiceExportData_Reply.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ContactRequestReference) ProtoMessage() {} + +func (x *ContactRequestReference) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[35] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *ServiceExportData_Reply) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServiceExportData_Reply.Merge(m, src) -} -func (m *ServiceExportData_Reply) XXX_Size() int { - return m.Size() -} -func (m *ServiceExportData_Reply) XXX_DiscardUnknown() { - xxx_messageInfo_ServiceExportData_Reply.DiscardUnknown(m) + +// Deprecated: Use ContactRequestReference.ProtoReflect.Descriptor instead. +func (*ContactRequestReference) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{35} } -var xxx_messageInfo_ServiceExportData_Reply proto.InternalMessageInfo +type ContactRequestDisable struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} -func (m *ServiceExportData_Reply) GetExportedData() []byte { - if m != nil { - return m.ExportedData +func (x *ContactRequestDisable) Reset() { + *x = ContactRequestDisable{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type ServiceGetConfiguration struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *ContactRequestDisable) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ServiceGetConfiguration) Reset() { *m = ServiceGetConfiguration{} } -func (m *ServiceGetConfiguration) String() string { return proto.CompactTextString(m) } -func (*ServiceGetConfiguration) ProtoMessage() {} -func (*ServiceGetConfiguration) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{34} -} -func (m *ServiceGetConfiguration) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ServiceGetConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ServiceGetConfiguration.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*ContactRequestDisable) ProtoMessage() {} + +func (x *ContactRequestDisable) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[36] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) +} + +// Deprecated: Use ContactRequestDisable.ProtoReflect.Descriptor instead. +func (*ContactRequestDisable) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{36} } -func (m *ServiceGetConfiguration) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServiceGetConfiguration.Merge(m, src) + +type ContactRequestEnable struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ServiceGetConfiguration) XXX_Size() int { - return m.Size() + +func (x *ContactRequestEnable) Reset() { + *x = ContactRequestEnable{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ServiceGetConfiguration) XXX_DiscardUnknown() { - xxx_messageInfo_ServiceGetConfiguration.DiscardUnknown(m) + +func (x *ContactRequestEnable) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_ServiceGetConfiguration proto.InternalMessageInfo +func (*ContactRequestEnable) ProtoMessage() {} -type ServiceGetConfiguration_Request struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *ContactRequestEnable) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[37] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *ServiceGetConfiguration_Request) Reset() { *m = ServiceGetConfiguration_Request{} } -func (m *ServiceGetConfiguration_Request) String() string { return proto.CompactTextString(m) } -func (*ServiceGetConfiguration_Request) ProtoMessage() {} -func (*ServiceGetConfiguration_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{34, 0} +// Deprecated: Use ContactRequestEnable.ProtoReflect.Descriptor instead. +func (*ContactRequestEnable) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{37} } -func (m *ServiceGetConfiguration_Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +type ContactRequestResetReference struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ServiceGetConfiguration_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ServiceGetConfiguration_Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil + +func (x *ContactRequestResetReference) Reset() { + *x = ContactRequestResetReference{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ServiceGetConfiguration_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServiceGetConfiguration_Request.Merge(m, src) -} -func (m *ServiceGetConfiguration_Request) XXX_Size() int { - return m.Size() -} -func (m *ServiceGetConfiguration_Request) XXX_DiscardUnknown() { - xxx_messageInfo_ServiceGetConfiguration_Request.DiscardUnknown(m) + +func (x *ContactRequestResetReference) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_ServiceGetConfiguration_Request proto.InternalMessageInfo +func (*ContactRequestResetReference) ProtoMessage() {} -type ServiceGetConfiguration_Reply struct { - // account_pk is the public key of the current account - AccountPK []byte `protobuf:"bytes,1,opt,name=account_pk,json=accountPk,proto3" json:"account_pk,omitempty"` - // device_pk is the public key of the current device - DevicePK []byte `protobuf:"bytes,2,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` - // account_group_pk is the public key of the account group - AccountGroupPK []byte `protobuf:"bytes,3,opt,name=account_group_pk,json=accountGroupPk,proto3" json:"account_group_pk,omitempty"` - // peer_id is the peer ID of the current IPFS node - PeerID string `protobuf:"bytes,4,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` - // listeners is the list of swarm listening addresses of the current IPFS node - Listeners []string `protobuf:"bytes,5,rep,name=listeners,proto3" json:"listeners,omitempty"` - BleEnabled ServiceGetConfiguration_SettingState `protobuf:"varint,6,opt,name=ble_enabled,json=bleEnabled,proto3,enum=weshnet.protocol.v1.ServiceGetConfiguration_SettingState" json:"ble_enabled,omitempty"` - WifiP2PEnabled ServiceGetConfiguration_SettingState `protobuf:"varint,7,opt,name=wifi_p2p_enabled,json=wifiP2pEnabled,proto3,enum=weshnet.protocol.v1.ServiceGetConfiguration_SettingState" json:"wifi_p2p_enabled,omitempty"` - MdnsEnabled ServiceGetConfiguration_SettingState `protobuf:"varint,8,opt,name=mdns_enabled,json=mdnsEnabled,proto3,enum=weshnet.protocol.v1.ServiceGetConfiguration_SettingState" json:"mdns_enabled,omitempty"` - RelayEnabled ServiceGetConfiguration_SettingState `protobuf:"varint,9,opt,name=relay_enabled,json=relayEnabled,proto3,enum=weshnet.protocol.v1.ServiceGetConfiguration_SettingState" json:"relay_enabled,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ServiceGetConfiguration_Reply) Reset() { *m = ServiceGetConfiguration_Reply{} } -func (m *ServiceGetConfiguration_Reply) String() string { return proto.CompactTextString(m) } -func (*ServiceGetConfiguration_Reply) ProtoMessage() {} -func (*ServiceGetConfiguration_Reply) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{34, 1} -} -func (m *ServiceGetConfiguration_Reply) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ServiceGetConfiguration_Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ServiceGetConfiguration_Reply.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *ContactRequestResetReference) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[38] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *ServiceGetConfiguration_Reply) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServiceGetConfiguration_Reply.Merge(m, src) -} -func (m *ServiceGetConfiguration_Reply) XXX_Size() int { - return m.Size() -} -func (m *ServiceGetConfiguration_Reply) XXX_DiscardUnknown() { - xxx_messageInfo_ServiceGetConfiguration_Reply.DiscardUnknown(m) + +// Deprecated: Use ContactRequestResetReference.ProtoReflect.Descriptor instead. +func (*ContactRequestResetReference) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{38} } -var xxx_messageInfo_ServiceGetConfiguration_Reply proto.InternalMessageInfo +type ContactRequestSend struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} -func (m *ServiceGetConfiguration_Reply) GetAccountPK() []byte { - if m != nil { - return m.AccountPK +func (x *ContactRequestSend) Reset() { + *x = ContactRequestSend{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *ServiceGetConfiguration_Reply) GetDevicePK() []byte { - if m != nil { - return m.DevicePK - } - return nil +func (x *ContactRequestSend) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ServiceGetConfiguration_Reply) GetAccountGroupPK() []byte { - if m != nil { - return m.AccountGroupPK +func (*ContactRequestSend) ProtoMessage() {} + +func (x *ContactRequestSend) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[39] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *ServiceGetConfiguration_Reply) GetPeerID() string { - if m != nil { - return m.PeerID - } - return "" +// Deprecated: Use ContactRequestSend.ProtoReflect.Descriptor instead. +func (*ContactRequestSend) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{39} } -func (m *ServiceGetConfiguration_Reply) GetListeners() []string { - if m != nil { - return m.Listeners - } - return nil +type ContactRequestAccept struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ServiceGetConfiguration_Reply) GetBleEnabled() ServiceGetConfiguration_SettingState { - if m != nil { - return m.BleEnabled +func (x *ContactRequestAccept) Reset() { + *x = ContactRequestAccept{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return Unknown } -func (m *ServiceGetConfiguration_Reply) GetWifiP2PEnabled() ServiceGetConfiguration_SettingState { - if m != nil { - return m.WifiP2PEnabled - } - return Unknown +func (x *ContactRequestAccept) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ServiceGetConfiguration_Reply) GetMdnsEnabled() ServiceGetConfiguration_SettingState { - if m != nil { - return m.MdnsEnabled +func (*ContactRequestAccept) ProtoMessage() {} + +func (x *ContactRequestAccept) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[40] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return Unknown + return mi.MessageOf(x) } -func (m *ServiceGetConfiguration_Reply) GetRelayEnabled() ServiceGetConfiguration_SettingState { - if m != nil { - return m.RelayEnabled - } - return Unknown +// Deprecated: Use ContactRequestAccept.ProtoReflect.Descriptor instead. +func (*ContactRequestAccept) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{40} } -type ContactRequestReference struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ContactRequestDiscard struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ContactRequestReference) Reset() { *m = ContactRequestReference{} } -func (m *ContactRequestReference) String() string { return proto.CompactTextString(m) } -func (*ContactRequestReference) ProtoMessage() {} -func (*ContactRequestReference) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{35} +func (x *ContactRequestDiscard) Reset() { + *x = ContactRequestDiscard{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ContactRequestReference) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ContactRequestDiscard) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ContactRequestReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ContactRequestReference.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ContactRequestDiscard) ProtoMessage() {} + +func (x *ContactRequestDiscard) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[41] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ContactRequestReference) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactRequestReference.Merge(m, src) -} -func (m *ContactRequestReference) XXX_Size() int { - return m.Size() -} -func (m *ContactRequestReference) XXX_DiscardUnknown() { - xxx_messageInfo_ContactRequestReference.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ContactRequestReference proto.InternalMessageInfo +// Deprecated: Use ContactRequestDiscard.ProtoReflect.Descriptor instead. +func (*ContactRequestDiscard) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{41} +} -type ContactRequestReference_Request struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ShareContact struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ContactRequestReference_Request) Reset() { *m = ContactRequestReference_Request{} } -func (m *ContactRequestReference_Request) String() string { return proto.CompactTextString(m) } -func (*ContactRequestReference_Request) ProtoMessage() {} -func (*ContactRequestReference_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{35, 0} +func (x *ShareContact) Reset() { + *x = ShareContact{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ContactRequestReference_Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ShareContact) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ContactRequestReference_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ContactRequestReference_Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ShareContact) ProtoMessage() {} + +func (x *ShareContact) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[42] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ContactRequestReference_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactRequestReference_Request.Merge(m, src) -} -func (m *ContactRequestReference_Request) XXX_Size() int { - return m.Size() -} -func (m *ContactRequestReference_Request) XXX_DiscardUnknown() { - xxx_messageInfo_ContactRequestReference_Request.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ContactRequestReference_Request proto.InternalMessageInfo +// Deprecated: Use ShareContact.ProtoReflect.Descriptor instead. +func (*ShareContact) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{42} +} -type ContactRequestReference_Reply struct { - // public_rendezvous_seed is the rendezvous seed used by the current account - PublicRendezvousSeed []byte `protobuf:"bytes,1,opt,name=public_rendezvous_seed,json=publicRendezvousSeed,proto3" json:"public_rendezvous_seed,omitempty"` - // enabled indicates if incoming contact requests are enabled - Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type DecodeContact struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ContactRequestReference_Reply) Reset() { *m = ContactRequestReference_Reply{} } -func (m *ContactRequestReference_Reply) String() string { return proto.CompactTextString(m) } -func (*ContactRequestReference_Reply) ProtoMessage() {} -func (*ContactRequestReference_Reply) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{35, 1} +func (x *DecodeContact) Reset() { + *x = DecodeContact{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ContactRequestReference_Reply) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *DecodeContact) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ContactRequestReference_Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ContactRequestReference_Reply.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*DecodeContact) ProtoMessage() {} + +func (x *DecodeContact) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[43] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) +} + +// Deprecated: Use DecodeContact.ProtoReflect.Descriptor instead. +func (*DecodeContact) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{43} } -func (m *ContactRequestReference_Reply) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactRequestReference_Reply.Merge(m, src) + +type ContactBlock struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ContactRequestReference_Reply) XXX_Size() int { - return m.Size() + +func (x *ContactBlock) Reset() { + *x = ContactBlock{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ContactRequestReference_Reply) XXX_DiscardUnknown() { - xxx_messageInfo_ContactRequestReference_Reply.DiscardUnknown(m) + +func (x *ContactBlock) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_ContactRequestReference_Reply proto.InternalMessageInfo +func (*ContactBlock) ProtoMessage() {} -func (m *ContactRequestReference_Reply) GetPublicRendezvousSeed() []byte { - if m != nil { - return m.PublicRendezvousSeed +func (x *ContactBlock) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[44] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *ContactRequestReference_Reply) GetEnabled() bool { - if m != nil { - return m.Enabled - } - return false +// Deprecated: Use ContactBlock.ProtoReflect.Descriptor instead. +func (*ContactBlock) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{44} } -type ContactRequestDisable struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ContactUnblock struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ContactRequestDisable) Reset() { *m = ContactRequestDisable{} } -func (m *ContactRequestDisable) String() string { return proto.CompactTextString(m) } -func (*ContactRequestDisable) ProtoMessage() {} -func (*ContactRequestDisable) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{36} +func (x *ContactUnblock) Reset() { + *x = ContactUnblock{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[45] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ContactRequestDisable) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ContactUnblock) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ContactRequestDisable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ContactRequestDisable.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ContactUnblock) ProtoMessage() {} + +func (x *ContactUnblock) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[45] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ContactRequestDisable) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactRequestDisable.Merge(m, src) -} -func (m *ContactRequestDisable) XXX_Size() int { - return m.Size() -} -func (m *ContactRequestDisable) XXX_DiscardUnknown() { - xxx_messageInfo_ContactRequestDisable.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ContactRequestDisable proto.InternalMessageInfo +// Deprecated: Use ContactUnblock.ProtoReflect.Descriptor instead. +func (*ContactUnblock) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{45} +} -type ContactRequestDisable_Request struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ContactAliasKeySend struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ContactRequestDisable_Request) Reset() { *m = ContactRequestDisable_Request{} } -func (m *ContactRequestDisable_Request) String() string { return proto.CompactTextString(m) } -func (*ContactRequestDisable_Request) ProtoMessage() {} -func (*ContactRequestDisable_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{36, 0} +func (x *ContactAliasKeySend) Reset() { + *x = ContactAliasKeySend{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[46] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ContactRequestDisable_Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ContactAliasKeySend) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ContactRequestDisable_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ContactRequestDisable_Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ContactAliasKeySend) ProtoMessage() {} + +func (x *ContactAliasKeySend) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[46] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ContactRequestDisable_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactRequestDisable_Request.Merge(m, src) -} -func (m *ContactRequestDisable_Request) XXX_Size() int { - return m.Size() -} -func (m *ContactRequestDisable_Request) XXX_DiscardUnknown() { - xxx_messageInfo_ContactRequestDisable_Request.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ContactRequestDisable_Request proto.InternalMessageInfo +// Deprecated: Use ContactAliasKeySend.ProtoReflect.Descriptor instead. +func (*ContactAliasKeySend) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{46} +} -type ContactRequestDisable_Reply struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type MultiMemberGroupCreate struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ContactRequestDisable_Reply) Reset() { *m = ContactRequestDisable_Reply{} } -func (m *ContactRequestDisable_Reply) String() string { return proto.CompactTextString(m) } -func (*ContactRequestDisable_Reply) ProtoMessage() {} -func (*ContactRequestDisable_Reply) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{36, 1} +func (x *MultiMemberGroupCreate) Reset() { + *x = MultiMemberGroupCreate{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[47] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ContactRequestDisable_Reply) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *MultiMemberGroupCreate) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ContactRequestDisable_Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ContactRequestDisable_Reply.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*MultiMemberGroupCreate) ProtoMessage() {} + +func (x *MultiMemberGroupCreate) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[47] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ContactRequestDisable_Reply) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactRequestDisable_Reply.Merge(m, src) -} -func (m *ContactRequestDisable_Reply) XXX_Size() int { - return m.Size() -} -func (m *ContactRequestDisable_Reply) XXX_DiscardUnknown() { - xxx_messageInfo_ContactRequestDisable_Reply.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ContactRequestDisable_Reply proto.InternalMessageInfo +// Deprecated: Use MultiMemberGroupCreate.ProtoReflect.Descriptor instead. +func (*MultiMemberGroupCreate) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{47} +} -type ContactRequestEnable struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type MultiMemberGroupJoin struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ContactRequestEnable) Reset() { *m = ContactRequestEnable{} } -func (m *ContactRequestEnable) String() string { return proto.CompactTextString(m) } -func (*ContactRequestEnable) ProtoMessage() {} -func (*ContactRequestEnable) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{37} +func (x *MultiMemberGroupJoin) Reset() { + *x = MultiMemberGroupJoin{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[48] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ContactRequestEnable) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *MultiMemberGroupJoin) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ContactRequestEnable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ContactRequestEnable.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*MultiMemberGroupJoin) ProtoMessage() {} + +func (x *MultiMemberGroupJoin) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[48] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ContactRequestEnable) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactRequestEnable.Merge(m, src) -} -func (m *ContactRequestEnable) XXX_Size() int { - return m.Size() -} -func (m *ContactRequestEnable) XXX_DiscardUnknown() { - xxx_messageInfo_ContactRequestEnable.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ContactRequestEnable proto.InternalMessageInfo +// Deprecated: Use MultiMemberGroupJoin.ProtoReflect.Descriptor instead. +func (*MultiMemberGroupJoin) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{48} +} -type ContactRequestEnable_Request struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type MultiMemberGroupLeave struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ContactRequestEnable_Request) Reset() { *m = ContactRequestEnable_Request{} } -func (m *ContactRequestEnable_Request) String() string { return proto.CompactTextString(m) } -func (*ContactRequestEnable_Request) ProtoMessage() {} -func (*ContactRequestEnable_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{37, 0} +func (x *MultiMemberGroupLeave) Reset() { + *x = MultiMemberGroupLeave{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[49] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ContactRequestEnable_Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *MultiMemberGroupLeave) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ContactRequestEnable_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ContactRequestEnable_Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*MultiMemberGroupLeave) ProtoMessage() {} + +func (x *MultiMemberGroupLeave) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[49] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ContactRequestEnable_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactRequestEnable_Request.Merge(m, src) -} -func (m *ContactRequestEnable_Request) XXX_Size() int { - return m.Size() -} -func (m *ContactRequestEnable_Request) XXX_DiscardUnknown() { - xxx_messageInfo_ContactRequestEnable_Request.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ContactRequestEnable_Request proto.InternalMessageInfo +// Deprecated: Use MultiMemberGroupLeave.ProtoReflect.Descriptor instead. +func (*MultiMemberGroupLeave) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{49} +} -type ContactRequestEnable_Reply struct { - // public_rendezvous_seed is the rendezvous seed used by the current account - PublicRendezvousSeed []byte `protobuf:"bytes,1,opt,name=public_rendezvous_seed,json=publicRendezvousSeed,proto3" json:"public_rendezvous_seed,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type MultiMemberGroupAliasResolverDisclose struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ContactRequestEnable_Reply) Reset() { *m = ContactRequestEnable_Reply{} } -func (m *ContactRequestEnable_Reply) String() string { return proto.CompactTextString(m) } -func (*ContactRequestEnable_Reply) ProtoMessage() {} -func (*ContactRequestEnable_Reply) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{37, 1} +func (x *MultiMemberGroupAliasResolverDisclose) Reset() { + *x = MultiMemberGroupAliasResolverDisclose{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[50] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ContactRequestEnable_Reply) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *MultiMemberGroupAliasResolverDisclose) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ContactRequestEnable_Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ContactRequestEnable_Reply.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*MultiMemberGroupAliasResolverDisclose) ProtoMessage() {} + +func (x *MultiMemberGroupAliasResolverDisclose) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[50] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *ContactRequestEnable_Reply) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactRequestEnable_Reply.Merge(m, src) -} -func (m *ContactRequestEnable_Reply) XXX_Size() int { - return m.Size() -} -func (m *ContactRequestEnable_Reply) XXX_DiscardUnknown() { - xxx_messageInfo_ContactRequestEnable_Reply.DiscardUnknown(m) + +// Deprecated: Use MultiMemberGroupAliasResolverDisclose.ProtoReflect.Descriptor instead. +func (*MultiMemberGroupAliasResolverDisclose) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{50} } -var xxx_messageInfo_ContactRequestEnable_Reply proto.InternalMessageInfo +type MultiMemberGroupAdminRoleGrant struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} -func (m *ContactRequestEnable_Reply) GetPublicRendezvousSeed() []byte { - if m != nil { - return m.PublicRendezvousSeed +func (x *MultiMemberGroupAdminRoleGrant) Reset() { + *x = MultiMemberGroupAdminRoleGrant{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[51] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type ContactRequestResetReference struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *MultiMemberGroupAdminRoleGrant) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ContactRequestResetReference) Reset() { *m = ContactRequestResetReference{} } -func (m *ContactRequestResetReference) String() string { return proto.CompactTextString(m) } -func (*ContactRequestResetReference) ProtoMessage() {} -func (*ContactRequestResetReference) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{38} -} -func (m *ContactRequestResetReference) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ContactRequestResetReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ContactRequestResetReference.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*MultiMemberGroupAdminRoleGrant) ProtoMessage() {} + +func (x *MultiMemberGroupAdminRoleGrant) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[51] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ContactRequestResetReference) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactRequestResetReference.Merge(m, src) -} -func (m *ContactRequestResetReference) XXX_Size() int { - return m.Size() -} -func (m *ContactRequestResetReference) XXX_DiscardUnknown() { - xxx_messageInfo_ContactRequestResetReference.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ContactRequestResetReference proto.InternalMessageInfo +// Deprecated: Use MultiMemberGroupAdminRoleGrant.ProtoReflect.Descriptor instead. +func (*MultiMemberGroupAdminRoleGrant) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{51} +} -type ContactRequestResetReference_Request struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type MultiMemberGroupInvitationCreate struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ContactRequestResetReference_Request) Reset() { *m = ContactRequestResetReference_Request{} } -func (m *ContactRequestResetReference_Request) String() string { return proto.CompactTextString(m) } -func (*ContactRequestResetReference_Request) ProtoMessage() {} -func (*ContactRequestResetReference_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{38, 0} +func (x *MultiMemberGroupInvitationCreate) Reset() { + *x = MultiMemberGroupInvitationCreate{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[52] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ContactRequestResetReference_Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *MultiMemberGroupInvitationCreate) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ContactRequestResetReference_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ContactRequestResetReference_Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*MultiMemberGroupInvitationCreate) ProtoMessage() {} + +func (x *MultiMemberGroupInvitationCreate) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[52] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ContactRequestResetReference_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactRequestResetReference_Request.Merge(m, src) -} -func (m *ContactRequestResetReference_Request) XXX_Size() int { - return m.Size() -} -func (m *ContactRequestResetReference_Request) XXX_DiscardUnknown() { - xxx_messageInfo_ContactRequestResetReference_Request.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ContactRequestResetReference_Request proto.InternalMessageInfo +// Deprecated: Use MultiMemberGroupInvitationCreate.ProtoReflect.Descriptor instead. +func (*MultiMemberGroupInvitationCreate) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{52} +} -type ContactRequestResetReference_Reply struct { - // public_rendezvous_seed is the rendezvous seed used by the current account - PublicRendezvousSeed []byte `protobuf:"bytes,1,opt,name=public_rendezvous_seed,json=publicRendezvousSeed,proto3" json:"public_rendezvous_seed,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type AppMetadataSend struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ContactRequestResetReference_Reply) Reset() { *m = ContactRequestResetReference_Reply{} } -func (m *ContactRequestResetReference_Reply) String() string { return proto.CompactTextString(m) } -func (*ContactRequestResetReference_Reply) ProtoMessage() {} -func (*ContactRequestResetReference_Reply) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{38, 1} +func (x *AppMetadataSend) Reset() { + *x = AppMetadataSend{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[53] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ContactRequestResetReference_Reply) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *AppMetadataSend) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ContactRequestResetReference_Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ContactRequestResetReference_Reply.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*AppMetadataSend) ProtoMessage() {} + +func (x *AppMetadataSend) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[53] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *ContactRequestResetReference_Reply) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactRequestResetReference_Reply.Merge(m, src) -} -func (m *ContactRequestResetReference_Reply) XXX_Size() int { - return m.Size() -} -func (m *ContactRequestResetReference_Reply) XXX_DiscardUnknown() { - xxx_messageInfo_ContactRequestResetReference_Reply.DiscardUnknown(m) + +// Deprecated: Use AppMetadataSend.ProtoReflect.Descriptor instead. +func (*AppMetadataSend) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{53} } -var xxx_messageInfo_ContactRequestResetReference_Reply proto.InternalMessageInfo +type AppMessageSend struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} -func (m *ContactRequestResetReference_Reply) GetPublicRendezvousSeed() []byte { - if m != nil { - return m.PublicRendezvousSeed +func (x *AppMessageSend) Reset() { + *x = AppMessageSend{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[54] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type ContactRequestSend struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *AppMessageSend) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ContactRequestSend) Reset() { *m = ContactRequestSend{} } -func (m *ContactRequestSend) String() string { return proto.CompactTextString(m) } -func (*ContactRequestSend) ProtoMessage() {} -func (*ContactRequestSend) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{39} -} -func (m *ContactRequestSend) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ContactRequestSend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ContactRequestSend.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*AppMessageSend) ProtoMessage() {} + +func (x *AppMessageSend) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[54] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *ContactRequestSend) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactRequestSend.Merge(m, src) -} -func (m *ContactRequestSend) XXX_Size() int { - return m.Size() -} -func (m *ContactRequestSend) XXX_DiscardUnknown() { - xxx_messageInfo_ContactRequestSend.DiscardUnknown(m) + +// Deprecated: Use AppMessageSend.ProtoReflect.Descriptor instead. +func (*AppMessageSend) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{54} } -var xxx_messageInfo_ContactRequestSend proto.InternalMessageInfo +type GroupMetadataEvent struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type ContactRequestSend_Request struct { - // contact is a message describing how to connect to the other account - Contact *ShareableContact `protobuf:"bytes,1,opt,name=contact,proto3" json:"contact,omitempty"` - // own_metadata is the identifying metadata that will be shared to the other account - OwnMetadata []byte `protobuf:"bytes,2,opt,name=own_metadata,json=ownMetadata,proto3" json:"own_metadata,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // event_context contains context information about the event + EventContext *EventContext `protobuf:"bytes,1,opt,name=event_context,json=eventContext,proto3" json:"event_context,omitempty"` + // metadata contains the newly available metadata + Metadata *GroupMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` + // event_clear clear bytes for the event + Event []byte `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"` } -func (m *ContactRequestSend_Request) Reset() { *m = ContactRequestSend_Request{} } -func (m *ContactRequestSend_Request) String() string { return proto.CompactTextString(m) } -func (*ContactRequestSend_Request) ProtoMessage() {} -func (*ContactRequestSend_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{39, 0} +func (x *GroupMetadataEvent) Reset() { + *x = GroupMetadataEvent{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[55] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ContactRequestSend_Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *GroupMetadataEvent) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ContactRequestSend_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ContactRequestSend_Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*GroupMetadataEvent) ProtoMessage() {} + +func (x *GroupMetadataEvent) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[55] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *ContactRequestSend_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactRequestSend_Request.Merge(m, src) -} -func (m *ContactRequestSend_Request) XXX_Size() int { - return m.Size() -} -func (m *ContactRequestSend_Request) XXX_DiscardUnknown() { - xxx_messageInfo_ContactRequestSend_Request.DiscardUnknown(m) + +// Deprecated: Use GroupMetadataEvent.ProtoReflect.Descriptor instead. +func (*GroupMetadataEvent) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{55} } -var xxx_messageInfo_ContactRequestSend_Request proto.InternalMessageInfo +func (x *GroupMetadataEvent) GetEventContext() *EventContext { + if x != nil { + return x.EventContext + } + return nil +} -func (m *ContactRequestSend_Request) GetContact() *ShareableContact { - if m != nil { - return m.Contact +func (x *GroupMetadataEvent) GetMetadata() *GroupMetadata { + if x != nil { + return x.Metadata } return nil } -func (m *ContactRequestSend_Request) GetOwnMetadata() []byte { - if m != nil { - return m.OwnMetadata +func (x *GroupMetadataEvent) GetEvent() []byte { + if x != nil { + return x.Event } return nil } -type ContactRequestSend_Reply struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type GroupMessageEvent struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // event_context contains context information about the event + EventContext *EventContext `protobuf:"bytes,1,opt,name=event_context,json=eventContext,proto3" json:"event_context,omitempty"` + // headers contains headers of the secure message + Headers *MessageHeaders `protobuf:"bytes,2,opt,name=headers,proto3" json:"headers,omitempty"` + // message contains the secure message payload + Message []byte `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` } -func (m *ContactRequestSend_Reply) Reset() { *m = ContactRequestSend_Reply{} } -func (m *ContactRequestSend_Reply) String() string { return proto.CompactTextString(m) } -func (*ContactRequestSend_Reply) ProtoMessage() {} -func (*ContactRequestSend_Reply) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{39, 1} +func (x *GroupMessageEvent) Reset() { + *x = GroupMessageEvent{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[56] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ContactRequestSend_Reply) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *GroupMessageEvent) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ContactRequestSend_Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ContactRequestSend_Reply.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*GroupMessageEvent) ProtoMessage() {} + +func (x *GroupMessageEvent) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[56] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *ContactRequestSend_Reply) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactRequestSend_Reply.Merge(m, src) -} -func (m *ContactRequestSend_Reply) XXX_Size() int { - return m.Size() + +// Deprecated: Use GroupMessageEvent.ProtoReflect.Descriptor instead. +func (*GroupMessageEvent) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{56} } -func (m *ContactRequestSend_Reply) XXX_DiscardUnknown() { - xxx_messageInfo_ContactRequestSend_Reply.DiscardUnknown(m) + +func (x *GroupMessageEvent) GetEventContext() *EventContext { + if x != nil { + return x.EventContext + } + return nil } -var xxx_messageInfo_ContactRequestSend_Reply proto.InternalMessageInfo +func (x *GroupMessageEvent) GetHeaders() *MessageHeaders { + if x != nil { + return x.Headers + } + return nil +} -type ContactRequestAccept struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *GroupMessageEvent) GetMessage() []byte { + if x != nil { + return x.Message + } + return nil } -func (m *ContactRequestAccept) Reset() { *m = ContactRequestAccept{} } -func (m *ContactRequestAccept) String() string { return proto.CompactTextString(m) } -func (*ContactRequestAccept) ProtoMessage() {} -func (*ContactRequestAccept) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{40} -} -func (m *ContactRequestAccept) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) +type GroupMetadataList struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ContactRequestAccept) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ContactRequestAccept.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil + +func (x *GroupMetadataList) Reset() { + *x = GroupMetadataList{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[57] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ContactRequestAccept) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactRequestAccept.Merge(m, src) -} -func (m *ContactRequestAccept) XXX_Size() int { - return m.Size() -} -func (m *ContactRequestAccept) XXX_DiscardUnknown() { - xxx_messageInfo_ContactRequestAccept.DiscardUnknown(m) -} -var xxx_messageInfo_ContactRequestAccept proto.InternalMessageInfo - -type ContactRequestAccept_Request struct { - // contact_pk is the identifier of the contact to accept the request from - ContactPK []byte `protobuf:"bytes,1,opt,name=contact_pk,json=contactPk,proto3" json:"contact_pk,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *GroupMetadataList) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ContactRequestAccept_Request) Reset() { *m = ContactRequestAccept_Request{} } -func (m *ContactRequestAccept_Request) String() string { return proto.CompactTextString(m) } -func (*ContactRequestAccept_Request) ProtoMessage() {} -func (*ContactRequestAccept_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{40, 0} -} -func (m *ContactRequestAccept_Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ContactRequestAccept_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ContactRequestAccept_Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*GroupMetadataList) ProtoMessage() {} + +func (x *GroupMetadataList) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[57] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *ContactRequestAccept_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactRequestAccept_Request.Merge(m, src) -} -func (m *ContactRequestAccept_Request) XXX_Size() int { - return m.Size() -} -func (m *ContactRequestAccept_Request) XXX_DiscardUnknown() { - xxx_messageInfo_ContactRequestAccept_Request.DiscardUnknown(m) + +// Deprecated: Use GroupMetadataList.ProtoReflect.Descriptor instead. +func (*GroupMetadataList) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{57} } -var xxx_messageInfo_ContactRequestAccept_Request proto.InternalMessageInfo +type GroupMessageList struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} -func (m *ContactRequestAccept_Request) GetContactPK() []byte { - if m != nil { - return m.ContactPK +func (x *GroupMessageList) Reset() { + *x = GroupMessageList{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[58] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type ContactRequestAccept_Reply struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *GroupMessageList) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ContactRequestAccept_Reply) Reset() { *m = ContactRequestAccept_Reply{} } -func (m *ContactRequestAccept_Reply) String() string { return proto.CompactTextString(m) } -func (*ContactRequestAccept_Reply) ProtoMessage() {} -func (*ContactRequestAccept_Reply) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{40, 1} -} -func (m *ContactRequestAccept_Reply) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ContactRequestAccept_Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ContactRequestAccept_Reply.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*GroupMessageList) ProtoMessage() {} + +func (x *GroupMessageList) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[58] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ContactRequestAccept_Reply) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactRequestAccept_Reply.Merge(m, src) -} -func (m *ContactRequestAccept_Reply) XXX_Size() int { - return m.Size() -} -func (m *ContactRequestAccept_Reply) XXX_DiscardUnknown() { - xxx_messageInfo_ContactRequestAccept_Reply.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ContactRequestAccept_Reply proto.InternalMessageInfo +// Deprecated: Use GroupMessageList.ProtoReflect.Descriptor instead. +func (*GroupMessageList) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{58} +} -type ContactRequestDiscard struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type GroupInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ContactRequestDiscard) Reset() { *m = ContactRequestDiscard{} } -func (m *ContactRequestDiscard) String() string { return proto.CompactTextString(m) } -func (*ContactRequestDiscard) ProtoMessage() {} -func (*ContactRequestDiscard) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{41} +func (x *GroupInfo) Reset() { + *x = GroupInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[59] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ContactRequestDiscard) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *GroupInfo) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ContactRequestDiscard) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ContactRequestDiscard.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*GroupInfo) ProtoMessage() {} + +func (x *GroupInfo) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[59] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ContactRequestDiscard) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactRequestDiscard.Merge(m, src) -} -func (m *ContactRequestDiscard) XXX_Size() int { - return m.Size() -} -func (m *ContactRequestDiscard) XXX_DiscardUnknown() { - xxx_messageInfo_ContactRequestDiscard.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ContactRequestDiscard proto.InternalMessageInfo +// Deprecated: Use GroupInfo.ProtoReflect.Descriptor instead. +func (*GroupInfo) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{59} +} -type ContactRequestDiscard_Request struct { - // contact_pk is the identifier of the contact to ignore the request from - ContactPK []byte `protobuf:"bytes,1,opt,name=contact_pk,json=contactPk,proto3" json:"contact_pk,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ActivateGroup struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ContactRequestDiscard_Request) Reset() { *m = ContactRequestDiscard_Request{} } -func (m *ContactRequestDiscard_Request) String() string { return proto.CompactTextString(m) } -func (*ContactRequestDiscard_Request) ProtoMessage() {} -func (*ContactRequestDiscard_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{41, 0} +func (x *ActivateGroup) Reset() { + *x = ActivateGroup{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[60] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ContactRequestDiscard_Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ActivateGroup) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ContactRequestDiscard_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ContactRequestDiscard_Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ActivateGroup) ProtoMessage() {} + +func (x *ActivateGroup) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[60] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *ContactRequestDiscard_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactRequestDiscard_Request.Merge(m, src) -} -func (m *ContactRequestDiscard_Request) XXX_Size() int { - return m.Size() -} -func (m *ContactRequestDiscard_Request) XXX_DiscardUnknown() { - xxx_messageInfo_ContactRequestDiscard_Request.DiscardUnknown(m) + +// Deprecated: Use ActivateGroup.ProtoReflect.Descriptor instead. +func (*ActivateGroup) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{60} } -var xxx_messageInfo_ContactRequestDiscard_Request proto.InternalMessageInfo +type DeactivateGroup struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} -func (m *ContactRequestDiscard_Request) GetContactPK() []byte { - if m != nil { - return m.ContactPK +func (x *DeactivateGroup) Reset() { + *x = DeactivateGroup{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[61] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type ContactRequestDiscard_Reply struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *DeactivateGroup) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ContactRequestDiscard_Reply) Reset() { *m = ContactRequestDiscard_Reply{} } -func (m *ContactRequestDiscard_Reply) String() string { return proto.CompactTextString(m) } -func (*ContactRequestDiscard_Reply) ProtoMessage() {} -func (*ContactRequestDiscard_Reply) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{41, 1} -} -func (m *ContactRequestDiscard_Reply) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ContactRequestDiscard_Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ContactRequestDiscard_Reply.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*DeactivateGroup) ProtoMessage() {} + +func (x *DeactivateGroup) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[61] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ContactRequestDiscard_Reply) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactRequestDiscard_Reply.Merge(m, src) -} -func (m *ContactRequestDiscard_Reply) XXX_Size() int { - return m.Size() -} -func (m *ContactRequestDiscard_Reply) XXX_DiscardUnknown() { - xxx_messageInfo_ContactRequestDiscard_Reply.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ContactRequestDiscard_Reply proto.InternalMessageInfo +// Deprecated: Use DeactivateGroup.ProtoReflect.Descriptor instead. +func (*DeactivateGroup) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{61} +} -type ShareContact struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type GroupDeviceStatus struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ShareContact) Reset() { *m = ShareContact{} } -func (m *ShareContact) String() string { return proto.CompactTextString(m) } -func (*ShareContact) ProtoMessage() {} -func (*ShareContact) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{42} +func (x *GroupDeviceStatus) Reset() { + *x = GroupDeviceStatus{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[62] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ShareContact) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *GroupDeviceStatus) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ShareContact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ShareContact.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*GroupDeviceStatus) ProtoMessage() {} + +func (x *GroupDeviceStatus) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[62] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ShareContact) XXX_Merge(src proto.Message) { - xxx_messageInfo_ShareContact.Merge(m, src) -} -func (m *ShareContact) XXX_Size() int { - return m.Size() -} -func (m *ShareContact) XXX_DiscardUnknown() { - xxx_messageInfo_ShareContact.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ShareContact proto.InternalMessageInfo +// Deprecated: Use GroupDeviceStatus.ProtoReflect.Descriptor instead. +func (*GroupDeviceStatus) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{62} +} -type ShareContact_Request struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type DebugListGroups struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ShareContact_Request) Reset() { *m = ShareContact_Request{} } -func (m *ShareContact_Request) String() string { return proto.CompactTextString(m) } -func (*ShareContact_Request) ProtoMessage() {} -func (*ShareContact_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{42, 0} +func (x *DebugListGroups) Reset() { + *x = DebugListGroups{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[63] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ShareContact_Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *DebugListGroups) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ShareContact_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ShareContact_Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*DebugListGroups) ProtoMessage() {} + +func (x *DebugListGroups) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[63] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ShareContact_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_ShareContact_Request.Merge(m, src) -} -func (m *ShareContact_Request) XXX_Size() int { - return m.Size() -} -func (m *ShareContact_Request) XXX_DiscardUnknown() { - xxx_messageInfo_ShareContact_Request.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ShareContact_Request proto.InternalMessageInfo +// Deprecated: Use DebugListGroups.ProtoReflect.Descriptor instead. +func (*DebugListGroups) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{63} +} -type ShareContact_Reply struct { - // encoded_contact is the Protobuf encoding of the ShareableContact. You can further encode the bytes for sharing, such as base58 or QR code. - EncodedContact []byte `protobuf:"bytes,1,opt,name=encoded_contact,json=encodedContact,proto3" json:"encoded_contact,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type DebugInspectGroupStore struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ShareContact_Reply) Reset() { *m = ShareContact_Reply{} } -func (m *ShareContact_Reply) String() string { return proto.CompactTextString(m) } -func (*ShareContact_Reply) ProtoMessage() {} -func (*ShareContact_Reply) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{42, 1} +func (x *DebugInspectGroupStore) Reset() { + *x = DebugInspectGroupStore{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[64] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ShareContact_Reply) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *DebugInspectGroupStore) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ShareContact_Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ShareContact_Reply.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*DebugInspectGroupStore) ProtoMessage() {} + +func (x *DebugInspectGroupStore) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[64] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *ShareContact_Reply) XXX_Merge(src proto.Message) { - xxx_messageInfo_ShareContact_Reply.Merge(m, src) -} -func (m *ShareContact_Reply) XXX_Size() int { - return m.Size() -} -func (m *ShareContact_Reply) XXX_DiscardUnknown() { - xxx_messageInfo_ShareContact_Reply.DiscardUnknown(m) + +// Deprecated: Use DebugInspectGroupStore.ProtoReflect.Descriptor instead. +func (*DebugInspectGroupStore) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{64} } -var xxx_messageInfo_ShareContact_Reply proto.InternalMessageInfo +type DebugGroup struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} -func (m *ShareContact_Reply) GetEncodedContact() []byte { - if m != nil { - return m.EncodedContact +func (x *DebugGroup) Reset() { + *x = DebugGroup{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[65] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type DecodeContact struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *DebugGroup) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DecodeContact) Reset() { *m = DecodeContact{} } -func (m *DecodeContact) String() string { return proto.CompactTextString(m) } -func (*DecodeContact) ProtoMessage() {} -func (*DecodeContact) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{43} -} -func (m *DecodeContact) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DecodeContact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DecodeContact.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*DebugGroup) ProtoMessage() {} + +func (x *DebugGroup) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[65] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *DecodeContact) XXX_Merge(src proto.Message) { - xxx_messageInfo_DecodeContact.Merge(m, src) -} -func (m *DecodeContact) XXX_Size() int { - return m.Size() -} -func (m *DecodeContact) XXX_DiscardUnknown() { - xxx_messageInfo_DecodeContact.DiscardUnknown(m) + +// Deprecated: Use DebugGroup.ProtoReflect.Descriptor instead. +func (*DebugGroup) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{65} } -var xxx_messageInfo_DecodeContact proto.InternalMessageInfo +type ShareableContact struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type DecodeContact_Request struct { - // encoded_contact is the Protobuf encoding of the shareable contact (as returned by ShareContact). - EncodedContact []byte `protobuf:"bytes,1,opt,name=encoded_contact,json=encodedContact,proto3" json:"encoded_contact,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // pk is the account to send a contact request to + Pk []byte `protobuf:"bytes,1,opt,name=pk,proto3" json:"pk,omitempty"` + // public_rendezvous_seed is the rendezvous seed used by the account to send a contact request to + PublicRendezvousSeed []byte `protobuf:"bytes,2,opt,name=public_rendezvous_seed,json=publicRendezvousSeed,proto3" json:"public_rendezvous_seed,omitempty"` + // metadata is the metadata specific to the app to identify the contact for the request + Metadata []byte `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` } -func (m *DecodeContact_Request) Reset() { *m = DecodeContact_Request{} } -func (m *DecodeContact_Request) String() string { return proto.CompactTextString(m) } -func (*DecodeContact_Request) ProtoMessage() {} -func (*DecodeContact_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{43, 0} -} -func (m *DecodeContact_Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DecodeContact_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DecodeContact_Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ShareableContact) Reset() { + *x = ShareableContact{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[66] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *DecodeContact_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_DecodeContact_Request.Merge(m, src) -} -func (m *DecodeContact_Request) XXX_Size() int { - return m.Size() -} -func (m *DecodeContact_Request) XXX_DiscardUnknown() { - xxx_messageInfo_DecodeContact_Request.DiscardUnknown(m) + +func (x *ShareableContact) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_DecodeContact_Request proto.InternalMessageInfo +func (*ShareableContact) ProtoMessage() {} -func (m *DecodeContact_Request) GetEncodedContact() []byte { - if m != nil { - return m.EncodedContact +func (x *ShareableContact) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[66] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -type DecodeContact_Reply struct { - // shareable_contact is the decoded shareable contact. - Contact *ShareableContact `protobuf:"bytes,1,opt,name=contact,proto3" json:"contact,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Deprecated: Use ShareableContact.ProtoReflect.Descriptor instead. +func (*ShareableContact) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{66} } -func (m *DecodeContact_Reply) Reset() { *m = DecodeContact_Reply{} } -func (m *DecodeContact_Reply) String() string { return proto.CompactTextString(m) } -func (*DecodeContact_Reply) ProtoMessage() {} -func (*DecodeContact_Reply) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{43, 1} -} -func (m *DecodeContact_Reply) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DecodeContact_Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DecodeContact_Reply.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ShareableContact) GetPk() []byte { + if x != nil { + return x.Pk } -} -func (m *DecodeContact_Reply) XXX_Merge(src proto.Message) { - xxx_messageInfo_DecodeContact_Reply.Merge(m, src) -} -func (m *DecodeContact_Reply) XXX_Size() int { - return m.Size() -} -func (m *DecodeContact_Reply) XXX_DiscardUnknown() { - xxx_messageInfo_DecodeContact_Reply.DiscardUnknown(m) + return nil } -var xxx_messageInfo_DecodeContact_Reply proto.InternalMessageInfo +func (x *ShareableContact) GetPublicRendezvousSeed() []byte { + if x != nil { + return x.PublicRendezvousSeed + } + return nil +} -func (m *DecodeContact_Reply) GetContact() *ShareableContact { - if m != nil { - return m.Contact +func (x *ShareableContact) GetMetadata() []byte { + if x != nil { + return x.Metadata } return nil } -type ContactBlock struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ServiceTokenSupportedService struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ServiceType string `protobuf:"bytes,1,opt,name=service_type,json=serviceType,proto3" json:"service_type,omitempty"` + ServiceEndpoint string `protobuf:"bytes,2,opt,name=service_endpoint,json=serviceEndpoint,proto3" json:"service_endpoint,omitempty"` } -func (m *ContactBlock) Reset() { *m = ContactBlock{} } -func (m *ContactBlock) String() string { return proto.CompactTextString(m) } -func (*ContactBlock) ProtoMessage() {} -func (*ContactBlock) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{44} +func (x *ServiceTokenSupportedService) Reset() { + *x = ServiceTokenSupportedService{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[67] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ContactBlock) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ServiceTokenSupportedService) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ContactBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ContactBlock.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ServiceTokenSupportedService) ProtoMessage() {} + +func (x *ServiceTokenSupportedService) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[67] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *ContactBlock) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactBlock.Merge(m, src) + +// Deprecated: Use ServiceTokenSupportedService.ProtoReflect.Descriptor instead. +func (*ServiceTokenSupportedService) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{67} } -func (m *ContactBlock) XXX_Size() int { - return m.Size() + +func (x *ServiceTokenSupportedService) GetServiceType() string { + if x != nil { + return x.ServiceType + } + return "" } -func (m *ContactBlock) XXX_DiscardUnknown() { - xxx_messageInfo_ContactBlock.DiscardUnknown(m) + +func (x *ServiceTokenSupportedService) GetServiceEndpoint() string { + if x != nil { + return x.ServiceEndpoint + } + return "" } -var xxx_messageInfo_ContactBlock proto.InternalMessageInfo +type ServiceToken struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type ContactBlock_Request struct { - // contact_pk is the identifier of the contact to block - ContactPK []byte `protobuf:"bytes,1,opt,name=contact_pk,json=contactPk,proto3" json:"contact_pk,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` + AuthenticationUrl string `protobuf:"bytes,2,opt,name=authentication_url,json=authenticationUrl,proto3" json:"authentication_url,omitempty"` + SupportedServices []*ServiceTokenSupportedService `protobuf:"bytes,3,rep,name=supported_services,json=supportedServices,proto3" json:"supported_services,omitempty"` + Expiration int64 `protobuf:"varint,4,opt,name=expiration,proto3" json:"expiration,omitempty"` } -func (m *ContactBlock_Request) Reset() { *m = ContactBlock_Request{} } -func (m *ContactBlock_Request) String() string { return proto.CompactTextString(m) } -func (*ContactBlock_Request) ProtoMessage() {} -func (*ContactBlock_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{44, 0} +func (x *ServiceToken) Reset() { + *x = ServiceToken{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[68] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ContactBlock_Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ServiceToken) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ContactBlock_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ContactBlock_Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ServiceToken) ProtoMessage() {} + +func (x *ServiceToken) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[68] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *ContactBlock_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactBlock_Request.Merge(m, src) -} -func (m *ContactBlock_Request) XXX_Size() int { - return m.Size() + +// Deprecated: Use ServiceToken.ProtoReflect.Descriptor instead. +func (*ServiceToken) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{68} } -func (m *ContactBlock_Request) XXX_DiscardUnknown() { - xxx_messageInfo_ContactBlock_Request.DiscardUnknown(m) + +func (x *ServiceToken) GetToken() string { + if x != nil { + return x.Token + } + return "" } -var xxx_messageInfo_ContactBlock_Request proto.InternalMessageInfo +func (x *ServiceToken) GetAuthenticationUrl() string { + if x != nil { + return x.AuthenticationUrl + } + return "" +} -func (m *ContactBlock_Request) GetContactPK() []byte { - if m != nil { - return m.ContactPK +func (x *ServiceToken) GetSupportedServices() []*ServiceTokenSupportedService { + if x != nil { + return x.SupportedServices } return nil } -type ContactBlock_Reply struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *ServiceToken) GetExpiration() int64 { + if x != nil { + return x.Expiration + } + return 0 } -func (m *ContactBlock_Reply) Reset() { *m = ContactBlock_Reply{} } -func (m *ContactBlock_Reply) String() string { return proto.CompactTextString(m) } -func (*ContactBlock_Reply) ProtoMessage() {} -func (*ContactBlock_Reply) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{44, 1} -} -func (m *ContactBlock_Reply) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) +type CredentialVerificationServiceInitFlow struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ContactBlock_Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ContactBlock_Reply.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil + +func (x *CredentialVerificationServiceInitFlow) Reset() { + *x = CredentialVerificationServiceInitFlow{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[69] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ContactBlock_Reply) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactBlock_Reply.Merge(m, src) -} -func (m *ContactBlock_Reply) XXX_Size() int { - return m.Size() -} -func (m *ContactBlock_Reply) XXX_DiscardUnknown() { - xxx_messageInfo_ContactBlock_Reply.DiscardUnknown(m) + +func (x *CredentialVerificationServiceInitFlow) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_ContactBlock_Reply proto.InternalMessageInfo +func (*CredentialVerificationServiceInitFlow) ProtoMessage() {} -type ContactUnblock struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *CredentialVerificationServiceInitFlow) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[69] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *ContactUnblock) Reset() { *m = ContactUnblock{} } -func (m *ContactUnblock) String() string { return proto.CompactTextString(m) } -func (*ContactUnblock) ProtoMessage() {} -func (*ContactUnblock) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{45} +// Deprecated: Use CredentialVerificationServiceInitFlow.ProtoReflect.Descriptor instead. +func (*CredentialVerificationServiceInitFlow) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{69} } -func (m *ContactUnblock) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +type CredentialVerificationServiceCompleteFlow struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ContactUnblock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ContactUnblock.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil + +func (x *CredentialVerificationServiceCompleteFlow) Reset() { + *x = CredentialVerificationServiceCompleteFlow{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[70] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ContactUnblock) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactUnblock.Merge(m, src) -} -func (m *ContactUnblock) XXX_Size() int { - return m.Size() -} -func (m *ContactUnblock) XXX_DiscardUnknown() { - xxx_messageInfo_ContactUnblock.DiscardUnknown(m) + +func (x *CredentialVerificationServiceCompleteFlow) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_ContactUnblock proto.InternalMessageInfo +func (*CredentialVerificationServiceCompleteFlow) ProtoMessage() {} -type ContactUnblock_Request struct { - // contact_pk is the identifier of the contact to unblock - ContactPK []byte `protobuf:"bytes,1,opt,name=contact_pk,json=contactPk,proto3" json:"contact_pk,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *CredentialVerificationServiceCompleteFlow) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[70] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *ContactUnblock_Request) Reset() { *m = ContactUnblock_Request{} } -func (m *ContactUnblock_Request) String() string { return proto.CompactTextString(m) } -func (*ContactUnblock_Request) ProtoMessage() {} -func (*ContactUnblock_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{45, 0} +// Deprecated: Use CredentialVerificationServiceCompleteFlow.ProtoReflect.Descriptor instead. +func (*CredentialVerificationServiceCompleteFlow) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{70} } -func (m *ContactUnblock_Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +type VerifiedCredentialsList struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ContactUnblock_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ContactUnblock_Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil + +func (x *VerifiedCredentialsList) Reset() { + *x = VerifiedCredentialsList{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[71] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ContactUnblock_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactUnblock_Request.Merge(m, src) -} -func (m *ContactUnblock_Request) XXX_Size() int { - return m.Size() -} -func (m *ContactUnblock_Request) XXX_DiscardUnknown() { - xxx_messageInfo_ContactUnblock_Request.DiscardUnknown(m) + +func (x *VerifiedCredentialsList) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_ContactUnblock_Request proto.InternalMessageInfo +func (*VerifiedCredentialsList) ProtoMessage() {} -func (m *ContactUnblock_Request) GetContactPK() []byte { - if m != nil { - return m.ContactPK +func (x *VerifiedCredentialsList) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[71] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -type ContactUnblock_Reply struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Deprecated: Use VerifiedCredentialsList.ProtoReflect.Descriptor instead. +func (*VerifiedCredentialsList) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{71} } -func (m *ContactUnblock_Reply) Reset() { *m = ContactUnblock_Reply{} } -func (m *ContactUnblock_Reply) String() string { return proto.CompactTextString(m) } -func (*ContactUnblock_Reply) ProtoMessage() {} -func (*ContactUnblock_Reply) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{45, 1} -} -func (m *ContactUnblock_Reply) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) +type ReplicationServiceRegisterGroup struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ContactUnblock_Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ContactUnblock_Reply.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil + +func (x *ReplicationServiceRegisterGroup) Reset() { + *x = ReplicationServiceRegisterGroup{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[72] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ContactUnblock_Reply) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactUnblock_Reply.Merge(m, src) -} -func (m *ContactUnblock_Reply) XXX_Size() int { - return m.Size() -} -func (m *ContactUnblock_Reply) XXX_DiscardUnknown() { - xxx_messageInfo_ContactUnblock_Reply.DiscardUnknown(m) + +func (x *ReplicationServiceRegisterGroup) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_ContactUnblock_Reply proto.InternalMessageInfo +func (*ReplicationServiceRegisterGroup) ProtoMessage() {} -type ContactAliasKeySend struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *ReplicationServiceRegisterGroup) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[72] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *ContactAliasKeySend) Reset() { *m = ContactAliasKeySend{} } -func (m *ContactAliasKeySend) String() string { return proto.CompactTextString(m) } -func (*ContactAliasKeySend) ProtoMessage() {} -func (*ContactAliasKeySend) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{46} +// Deprecated: Use ReplicationServiceRegisterGroup.ProtoReflect.Descriptor instead. +func (*ReplicationServiceRegisterGroup) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{72} } -func (m *ContactAliasKeySend) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +type ReplicationServiceReplicateGroup struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ContactAliasKeySend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ContactAliasKeySend.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil + +func (x *ReplicationServiceReplicateGroup) Reset() { + *x = ReplicationServiceReplicateGroup{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[73] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ContactAliasKeySend) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactAliasKeySend.Merge(m, src) -} -func (m *ContactAliasKeySend) XXX_Size() int { - return m.Size() -} -func (m *ContactAliasKeySend) XXX_DiscardUnknown() { - xxx_messageInfo_ContactAliasKeySend.DiscardUnknown(m) + +func (x *ReplicationServiceReplicateGroup) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_ContactAliasKeySend proto.InternalMessageInfo +func (*ReplicationServiceReplicateGroup) ProtoMessage() {} -type ContactAliasKeySend_Request struct { - // contact_pk is the identifier of the contact to send the alias public key to - GroupPK []byte `protobuf:"bytes,1,opt,name=group_pk,json=groupPk,proto3" json:"group_pk,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *ReplicationServiceReplicateGroup) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[73] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *ContactAliasKeySend_Request) Reset() { *m = ContactAliasKeySend_Request{} } -func (m *ContactAliasKeySend_Request) String() string { return proto.CompactTextString(m) } -func (*ContactAliasKeySend_Request) ProtoMessage() {} -func (*ContactAliasKeySend_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{46, 0} +// Deprecated: Use ReplicationServiceReplicateGroup.ProtoReflect.Descriptor instead. +func (*ReplicationServiceReplicateGroup) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{73} } -func (m *ContactAliasKeySend_Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +type SystemInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ContactAliasKeySend_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ContactAliasKeySend_Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil + +func (x *SystemInfo) Reset() { + *x = SystemInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[74] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ContactAliasKeySend_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactAliasKeySend_Request.Merge(m, src) -} -func (m *ContactAliasKeySend_Request) XXX_Size() int { - return m.Size() -} -func (m *ContactAliasKeySend_Request) XXX_DiscardUnknown() { - xxx_messageInfo_ContactAliasKeySend_Request.DiscardUnknown(m) + +func (x *SystemInfo) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_ContactAliasKeySend_Request proto.InternalMessageInfo +func (*SystemInfo) ProtoMessage() {} -func (m *ContactAliasKeySend_Request) GetGroupPK() []byte { - if m != nil { - return m.GroupPK +func (x *SystemInfo) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[74] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -type ContactAliasKeySend_Reply struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Deprecated: Use SystemInfo.ProtoReflect.Descriptor instead. +func (*SystemInfo) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{74} } -func (m *ContactAliasKeySend_Reply) Reset() { *m = ContactAliasKeySend_Reply{} } -func (m *ContactAliasKeySend_Reply) String() string { return proto.CompactTextString(m) } -func (*ContactAliasKeySend_Reply) ProtoMessage() {} -func (*ContactAliasKeySend_Reply) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{46, 1} -} -func (m *ContactAliasKeySend_Reply) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) +type PeerList struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ContactAliasKeySend_Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ContactAliasKeySend_Reply.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil + +func (x *PeerList) Reset() { + *x = PeerList{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[75] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ContactAliasKeySend_Reply) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContactAliasKeySend_Reply.Merge(m, src) -} -func (m *ContactAliasKeySend_Reply) XXX_Size() int { - return m.Size() -} -func (m *ContactAliasKeySend_Reply) XXX_DiscardUnknown() { - xxx_messageInfo_ContactAliasKeySend_Reply.DiscardUnknown(m) -} -var xxx_messageInfo_ContactAliasKeySend_Reply proto.InternalMessageInfo - -type MultiMemberGroupCreate struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *PeerList) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MultiMemberGroupCreate) Reset() { *m = MultiMemberGroupCreate{} } -func (m *MultiMemberGroupCreate) String() string { return proto.CompactTextString(m) } -func (*MultiMemberGroupCreate) ProtoMessage() {} -func (*MultiMemberGroupCreate) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{47} -} -func (m *MultiMemberGroupCreate) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MultiMemberGroupCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MultiMemberGroupCreate.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*PeerList) ProtoMessage() {} + +func (x *PeerList) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[75] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *MultiMemberGroupCreate) XXX_Merge(src proto.Message) { - xxx_messageInfo_MultiMemberGroupCreate.Merge(m, src) -} -func (m *MultiMemberGroupCreate) XXX_Size() int { - return m.Size() -} -func (m *MultiMemberGroupCreate) XXX_DiscardUnknown() { - xxx_messageInfo_MultiMemberGroupCreate.DiscardUnknown(m) + +// Deprecated: Use PeerList.ProtoReflect.Descriptor instead. +func (*PeerList) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{75} } -var xxx_messageInfo_MultiMemberGroupCreate proto.InternalMessageInfo +// Progress define a generic object that can be used to display a progress bar for long-running actions. +type Progress struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type MultiMemberGroupCreate_Request struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + State string `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"` + Doing string `protobuf:"bytes,2,opt,name=doing,proto3" json:"doing,omitempty"` + Progress float32 `protobuf:"fixed32,3,opt,name=progress,proto3" json:"progress,omitempty"` + Completed uint64 `protobuf:"varint,4,opt,name=completed,proto3" json:"completed,omitempty"` + Total uint64 `protobuf:"varint,5,opt,name=total,proto3" json:"total,omitempty"` + Delay uint64 `protobuf:"varint,6,opt,name=delay,proto3" json:"delay,omitempty"` } -func (m *MultiMemberGroupCreate_Request) Reset() { *m = MultiMemberGroupCreate_Request{} } -func (m *MultiMemberGroupCreate_Request) String() string { return proto.CompactTextString(m) } -func (*MultiMemberGroupCreate_Request) ProtoMessage() {} -func (*MultiMemberGroupCreate_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{47, 0} -} -func (m *MultiMemberGroupCreate_Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MultiMemberGroupCreate_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MultiMemberGroupCreate_Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *Progress) Reset() { + *x = Progress{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[76] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *MultiMemberGroupCreate_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_MultiMemberGroupCreate_Request.Merge(m, src) -} -func (m *MultiMemberGroupCreate_Request) XXX_Size() int { - return m.Size() -} -func (m *MultiMemberGroupCreate_Request) XXX_DiscardUnknown() { - xxx_messageInfo_MultiMemberGroupCreate_Request.DiscardUnknown(m) -} -var xxx_messageInfo_MultiMemberGroupCreate_Request proto.InternalMessageInfo - -type MultiMemberGroupCreate_Reply struct { - // group_pk is the identifier of the newly created group - GroupPK []byte `protobuf:"bytes,1,opt,name=group_pk,json=groupPk,proto3" json:"group_pk,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *Progress) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MultiMemberGroupCreate_Reply) Reset() { *m = MultiMemberGroupCreate_Reply{} } -func (m *MultiMemberGroupCreate_Reply) String() string { return proto.CompactTextString(m) } -func (*MultiMemberGroupCreate_Reply) ProtoMessage() {} -func (*MultiMemberGroupCreate_Reply) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{47, 1} -} -func (m *MultiMemberGroupCreate_Reply) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MultiMemberGroupCreate_Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MultiMemberGroupCreate_Reply.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*Progress) ProtoMessage() {} + +func (x *Progress) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[76] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *MultiMemberGroupCreate_Reply) XXX_Merge(src proto.Message) { - xxx_messageInfo_MultiMemberGroupCreate_Reply.Merge(m, src) -} -func (m *MultiMemberGroupCreate_Reply) XXX_Size() int { - return m.Size() -} -func (m *MultiMemberGroupCreate_Reply) XXX_DiscardUnknown() { - xxx_messageInfo_MultiMemberGroupCreate_Reply.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_MultiMemberGroupCreate_Reply proto.InternalMessageInfo +// Deprecated: Use Progress.ProtoReflect.Descriptor instead. +func (*Progress) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{76} +} -func (m *MultiMemberGroupCreate_Reply) GetGroupPK() []byte { - if m != nil { - return m.GroupPK +func (x *Progress) GetState() string { + if x != nil { + return x.State } - return nil + return "" } -type MultiMemberGroupJoin struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *Progress) GetDoing() string { + if x != nil { + return x.Doing + } + return "" } -func (m *MultiMemberGroupJoin) Reset() { *m = MultiMemberGroupJoin{} } -func (m *MultiMemberGroupJoin) String() string { return proto.CompactTextString(m) } -func (*MultiMemberGroupJoin) ProtoMessage() {} -func (*MultiMemberGroupJoin) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{48} -} -func (m *MultiMemberGroupJoin) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MultiMemberGroupJoin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MultiMemberGroupJoin.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *Progress) GetProgress() float32 { + if x != nil { + return x.Progress } + return 0 } -func (m *MultiMemberGroupJoin) XXX_Merge(src proto.Message) { - xxx_messageInfo_MultiMemberGroupJoin.Merge(m, src) + +func (x *Progress) GetCompleted() uint64 { + if x != nil { + return x.Completed + } + return 0 } -func (m *MultiMemberGroupJoin) XXX_Size() int { - return m.Size() + +func (x *Progress) GetTotal() uint64 { + if x != nil { + return x.Total + } + return 0 } -func (m *MultiMemberGroupJoin) XXX_DiscardUnknown() { - xxx_messageInfo_MultiMemberGroupJoin.DiscardUnknown(m) + +func (x *Progress) GetDelay() uint64 { + if x != nil { + return x.Delay + } + return 0 } -var xxx_messageInfo_MultiMemberGroupJoin proto.InternalMessageInfo +type OutOfStoreMessage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type MultiMemberGroupJoin_Request struct { - // group is the information of the group to join - Group *Group `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Cid []byte `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"` + DevicePk []byte `protobuf:"bytes,2,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` + Counter uint64 `protobuf:"fixed64,3,opt,name=counter,proto3" json:"counter,omitempty"` + Sig []byte `protobuf:"bytes,4,opt,name=sig,proto3" json:"sig,omitempty"` + Flags uint32 `protobuf:"fixed32,5,opt,name=flags,proto3" json:"flags,omitempty"` + EncryptedPayload []byte `protobuf:"bytes,6,opt,name=encrypted_payload,json=encryptedPayload,proto3" json:"encrypted_payload,omitempty"` + Nonce []byte `protobuf:"bytes,7,opt,name=nonce,proto3" json:"nonce,omitempty"` } -func (m *MultiMemberGroupJoin_Request) Reset() { *m = MultiMemberGroupJoin_Request{} } -func (m *MultiMemberGroupJoin_Request) String() string { return proto.CompactTextString(m) } -func (*MultiMemberGroupJoin_Request) ProtoMessage() {} -func (*MultiMemberGroupJoin_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{48, 0} +func (x *OutOfStoreMessage) Reset() { + *x = OutOfStoreMessage{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[77] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *MultiMemberGroupJoin_Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *OutOfStoreMessage) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MultiMemberGroupJoin_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MultiMemberGroupJoin_Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*OutOfStoreMessage) ProtoMessage() {} + +func (x *OutOfStoreMessage) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[77] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *MultiMemberGroupJoin_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_MultiMemberGroupJoin_Request.Merge(m, src) -} -func (m *MultiMemberGroupJoin_Request) XXX_Size() int { - return m.Size() -} -func (m *MultiMemberGroupJoin_Request) XXX_DiscardUnknown() { - xxx_messageInfo_MultiMemberGroupJoin_Request.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_MultiMemberGroupJoin_Request proto.InternalMessageInfo +// Deprecated: Use OutOfStoreMessage.ProtoReflect.Descriptor instead. +func (*OutOfStoreMessage) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{77} +} -func (m *MultiMemberGroupJoin_Request) GetGroup() *Group { - if m != nil { - return m.Group +func (x *OutOfStoreMessage) GetCid() []byte { + if x != nil { + return x.Cid } return nil } -type MultiMemberGroupJoin_Reply struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *OutOfStoreMessage) GetDevicePk() []byte { + if x != nil { + return x.DevicePk + } + return nil } -func (m *MultiMemberGroupJoin_Reply) Reset() { *m = MultiMemberGroupJoin_Reply{} } -func (m *MultiMemberGroupJoin_Reply) String() string { return proto.CompactTextString(m) } -func (*MultiMemberGroupJoin_Reply) ProtoMessage() {} -func (*MultiMemberGroupJoin_Reply) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{48, 1} -} -func (m *MultiMemberGroupJoin_Reply) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MultiMemberGroupJoin_Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MultiMemberGroupJoin_Reply.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *OutOfStoreMessage) GetCounter() uint64 { + if x != nil { + return x.Counter } + return 0 } -func (m *MultiMemberGroupJoin_Reply) XXX_Merge(src proto.Message) { - xxx_messageInfo_MultiMemberGroupJoin_Reply.Merge(m, src) -} -func (m *MultiMemberGroupJoin_Reply) XXX_Size() int { - return m.Size() -} -func (m *MultiMemberGroupJoin_Reply) XXX_DiscardUnknown() { - xxx_messageInfo_MultiMemberGroupJoin_Reply.DiscardUnknown(m) -} - -var xxx_messageInfo_MultiMemberGroupJoin_Reply proto.InternalMessageInfo -type MultiMemberGroupLeave struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *OutOfStoreMessage) GetSig() []byte { + if x != nil { + return x.Sig + } + return nil } -func (m *MultiMemberGroupLeave) Reset() { *m = MultiMemberGroupLeave{} } -func (m *MultiMemberGroupLeave) String() string { return proto.CompactTextString(m) } -func (*MultiMemberGroupLeave) ProtoMessage() {} -func (*MultiMemberGroupLeave) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{49} -} -func (m *MultiMemberGroupLeave) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MultiMemberGroupLeave) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MultiMemberGroupLeave.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *OutOfStoreMessage) GetFlags() uint32 { + if x != nil { + return x.Flags } + return 0 } -func (m *MultiMemberGroupLeave) XXX_Merge(src proto.Message) { - xxx_messageInfo_MultiMemberGroupLeave.Merge(m, src) -} -func (m *MultiMemberGroupLeave) XXX_Size() int { - return m.Size() + +func (x *OutOfStoreMessage) GetEncryptedPayload() []byte { + if x != nil { + return x.EncryptedPayload + } + return nil } -func (m *MultiMemberGroupLeave) XXX_DiscardUnknown() { - xxx_messageInfo_MultiMemberGroupLeave.DiscardUnknown(m) + +func (x *OutOfStoreMessage) GetNonce() []byte { + if x != nil { + return x.Nonce + } + return nil } -var xxx_messageInfo_MultiMemberGroupLeave proto.InternalMessageInfo +type OutOfStoreMessageEnvelope struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type MultiMemberGroupLeave_Request struct { - GroupPK []byte `protobuf:"bytes,1,opt,name=group_pk,json=groupPk,proto3" json:"group_pk,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Nonce []byte `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"` + Box []byte `protobuf:"bytes,2,opt,name=box,proto3" json:"box,omitempty"` + GroupReference []byte `protobuf:"bytes,3,opt,name=group_reference,json=groupReference,proto3" json:"group_reference,omitempty"` } -func (m *MultiMemberGroupLeave_Request) Reset() { *m = MultiMemberGroupLeave_Request{} } -func (m *MultiMemberGroupLeave_Request) String() string { return proto.CompactTextString(m) } -func (*MultiMemberGroupLeave_Request) ProtoMessage() {} -func (*MultiMemberGroupLeave_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{49, 0} +func (x *OutOfStoreMessageEnvelope) Reset() { + *x = OutOfStoreMessageEnvelope{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[78] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *MultiMemberGroupLeave_Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *OutOfStoreMessageEnvelope) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MultiMemberGroupLeave_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MultiMemberGroupLeave_Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*OutOfStoreMessageEnvelope) ProtoMessage() {} + +func (x *OutOfStoreMessageEnvelope) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[78] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *MultiMemberGroupLeave_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_MultiMemberGroupLeave_Request.Merge(m, src) -} -func (m *MultiMemberGroupLeave_Request) XXX_Size() int { - return m.Size() + +// Deprecated: Use OutOfStoreMessageEnvelope.ProtoReflect.Descriptor instead. +func (*OutOfStoreMessageEnvelope) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{78} } -func (m *MultiMemberGroupLeave_Request) XXX_DiscardUnknown() { - xxx_messageInfo_MultiMemberGroupLeave_Request.DiscardUnknown(m) + +func (x *OutOfStoreMessageEnvelope) GetNonce() []byte { + if x != nil { + return x.Nonce + } + return nil } -var xxx_messageInfo_MultiMemberGroupLeave_Request proto.InternalMessageInfo +func (x *OutOfStoreMessageEnvelope) GetBox() []byte { + if x != nil { + return x.Box + } + return nil +} -func (m *MultiMemberGroupLeave_Request) GetGroupPK() []byte { - if m != nil { - return m.GroupPK +func (x *OutOfStoreMessageEnvelope) GetGroupReference() []byte { + if x != nil { + return x.GroupReference } return nil } -type MultiMemberGroupLeave_Reply struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type OutOfStoreReceive struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *MultiMemberGroupLeave_Reply) Reset() { *m = MultiMemberGroupLeave_Reply{} } -func (m *MultiMemberGroupLeave_Reply) String() string { return proto.CompactTextString(m) } -func (*MultiMemberGroupLeave_Reply) ProtoMessage() {} -func (*MultiMemberGroupLeave_Reply) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{49, 1} +func (x *OutOfStoreReceive) Reset() { + *x = OutOfStoreReceive{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[79] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *MultiMemberGroupLeave_Reply) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *OutOfStoreReceive) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MultiMemberGroupLeave_Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MultiMemberGroupLeave_Reply.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*OutOfStoreReceive) ProtoMessage() {} + +func (x *OutOfStoreReceive) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[79] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *MultiMemberGroupLeave_Reply) XXX_Merge(src proto.Message) { - xxx_messageInfo_MultiMemberGroupLeave_Reply.Merge(m, src) -} -func (m *MultiMemberGroupLeave_Reply) XXX_Size() int { - return m.Size() -} -func (m *MultiMemberGroupLeave_Reply) XXX_DiscardUnknown() { - xxx_messageInfo_MultiMemberGroupLeave_Reply.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_MultiMemberGroupLeave_Reply proto.InternalMessageInfo +// Deprecated: Use OutOfStoreReceive.ProtoReflect.Descriptor instead. +func (*OutOfStoreReceive) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{79} +} -type MultiMemberGroupAliasResolverDisclose struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type OutOfStoreSeal struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *MultiMemberGroupAliasResolverDisclose) Reset() { *m = MultiMemberGroupAliasResolverDisclose{} } -func (m *MultiMemberGroupAliasResolverDisclose) String() string { return proto.CompactTextString(m) } -func (*MultiMemberGroupAliasResolverDisclose) ProtoMessage() {} -func (*MultiMemberGroupAliasResolverDisclose) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{50} +func (x *OutOfStoreSeal) Reset() { + *x = OutOfStoreSeal{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[80] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *MultiMemberGroupAliasResolverDisclose) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *OutOfStoreSeal) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MultiMemberGroupAliasResolverDisclose) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MultiMemberGroupAliasResolverDisclose.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*OutOfStoreSeal) ProtoMessage() {} + +func (x *OutOfStoreSeal) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[80] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *MultiMemberGroupAliasResolverDisclose) XXX_Merge(src proto.Message) { - xxx_messageInfo_MultiMemberGroupAliasResolverDisclose.Merge(m, src) -} -func (m *MultiMemberGroupAliasResolverDisclose) XXX_Size() int { - return m.Size() -} -func (m *MultiMemberGroupAliasResolverDisclose) XXX_DiscardUnknown() { - xxx_messageInfo_MultiMemberGroupAliasResolverDisclose.DiscardUnknown(m) + +// Deprecated: Use OutOfStoreSeal.ProtoReflect.Descriptor instead. +func (*OutOfStoreSeal) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{80} } -var xxx_messageInfo_MultiMemberGroupAliasResolverDisclose proto.InternalMessageInfo +type AccountVerifiedCredentialRegistered struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type MultiMemberGroupAliasResolverDisclose_Request struct { - // group_pk is the identifier of the group - GroupPK []byte `protobuf:"bytes,1,opt,name=group_pk,json=groupPk,proto3" json:"group_pk,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // device_pk is the public key of the device sending the message + DevicePk []byte `protobuf:"bytes,1,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` + SignedIdentityPublicKey []byte `protobuf:"bytes,2,opt,name=signed_identity_public_key,json=signedIdentityPublicKey,proto3" json:"signed_identity_public_key,omitempty"` + VerifiedCredential string `protobuf:"bytes,3,opt,name=verified_credential,json=verifiedCredential,proto3" json:"verified_credential,omitempty"` + RegistrationDate int64 `protobuf:"varint,4,opt,name=registration_date,json=registrationDate,proto3" json:"registration_date,omitempty"` + ExpirationDate int64 `protobuf:"varint,5,opt,name=expiration_date,json=expirationDate,proto3" json:"expiration_date,omitempty"` + Identifier string `protobuf:"bytes,6,opt,name=identifier,proto3" json:"identifier,omitempty"` + Issuer string `protobuf:"bytes,7,opt,name=issuer,proto3" json:"issuer,omitempty"` } -func (m *MultiMemberGroupAliasResolverDisclose_Request) Reset() { - *m = MultiMemberGroupAliasResolverDisclose_Request{} -} -func (m *MultiMemberGroupAliasResolverDisclose_Request) String() string { - return proto.CompactTextString(m) -} -func (*MultiMemberGroupAliasResolverDisclose_Request) ProtoMessage() {} -func (*MultiMemberGroupAliasResolverDisclose_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{50, 0} +func (x *AccountVerifiedCredentialRegistered) Reset() { + *x = AccountVerifiedCredentialRegistered{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[81] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *MultiMemberGroupAliasResolverDisclose_Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *AccountVerifiedCredentialRegistered) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MultiMemberGroupAliasResolverDisclose_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MultiMemberGroupAliasResolverDisclose_Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*AccountVerifiedCredentialRegistered) ProtoMessage() {} + +func (x *AccountVerifiedCredentialRegistered) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[81] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *MultiMemberGroupAliasResolverDisclose_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_MultiMemberGroupAliasResolverDisclose_Request.Merge(m, src) -} -func (m *MultiMemberGroupAliasResolverDisclose_Request) XXX_Size() int { - return m.Size() -} -func (m *MultiMemberGroupAliasResolverDisclose_Request) XXX_DiscardUnknown() { - xxx_messageInfo_MultiMemberGroupAliasResolverDisclose_Request.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_MultiMemberGroupAliasResolverDisclose_Request proto.InternalMessageInfo +// Deprecated: Use AccountVerifiedCredentialRegistered.ProtoReflect.Descriptor instead. +func (*AccountVerifiedCredentialRegistered) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{81} +} -func (m *MultiMemberGroupAliasResolverDisclose_Request) GetGroupPK() []byte { - if m != nil { - return m.GroupPK +func (x *AccountVerifiedCredentialRegistered) GetDevicePk() []byte { + if x != nil { + return x.DevicePk } return nil } -type MultiMemberGroupAliasResolverDisclose_Reply struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *AccountVerifiedCredentialRegistered) GetSignedIdentityPublicKey() []byte { + if x != nil { + return x.SignedIdentityPublicKey + } + return nil } -func (m *MultiMemberGroupAliasResolverDisclose_Reply) Reset() { - *m = MultiMemberGroupAliasResolverDisclose_Reply{} -} -func (m *MultiMemberGroupAliasResolverDisclose_Reply) String() string { - return proto.CompactTextString(m) -} -func (*MultiMemberGroupAliasResolverDisclose_Reply) ProtoMessage() {} -func (*MultiMemberGroupAliasResolverDisclose_Reply) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{50, 1} -} -func (m *MultiMemberGroupAliasResolverDisclose_Reply) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) +func (x *AccountVerifiedCredentialRegistered) GetVerifiedCredential() string { + if x != nil { + return x.VerifiedCredential + } + return "" } -func (m *MultiMemberGroupAliasResolverDisclose_Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MultiMemberGroupAliasResolverDisclose_Reply.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil + +func (x *AccountVerifiedCredentialRegistered) GetRegistrationDate() int64 { + if x != nil { + return x.RegistrationDate } + return 0 } -func (m *MultiMemberGroupAliasResolverDisclose_Reply) XXX_Merge(src proto.Message) { - xxx_messageInfo_MultiMemberGroupAliasResolverDisclose_Reply.Merge(m, src) + +func (x *AccountVerifiedCredentialRegistered) GetExpirationDate() int64 { + if x != nil { + return x.ExpirationDate + } + return 0 } -func (m *MultiMemberGroupAliasResolverDisclose_Reply) XXX_Size() int { - return m.Size() + +func (x *AccountVerifiedCredentialRegistered) GetIdentifier() string { + if x != nil { + return x.Identifier + } + return "" } -func (m *MultiMemberGroupAliasResolverDisclose_Reply) XXX_DiscardUnknown() { - xxx_messageInfo_MultiMemberGroupAliasResolverDisclose_Reply.DiscardUnknown(m) + +func (x *AccountVerifiedCredentialRegistered) GetIssuer() string { + if x != nil { + return x.Issuer + } + return "" } -var xxx_messageInfo_MultiMemberGroupAliasResolverDisclose_Reply proto.InternalMessageInfo +type FirstLastCounters struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type MultiMemberGroupAdminRoleGrant struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + First uint64 `protobuf:"varint,1,opt,name=first,proto3" json:"first,omitempty"` + Last uint64 `protobuf:"varint,2,opt,name=last,proto3" json:"last,omitempty"` } -func (m *MultiMemberGroupAdminRoleGrant) Reset() { *m = MultiMemberGroupAdminRoleGrant{} } -func (m *MultiMemberGroupAdminRoleGrant) String() string { return proto.CompactTextString(m) } -func (*MultiMemberGroupAdminRoleGrant) ProtoMessage() {} -func (*MultiMemberGroupAdminRoleGrant) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{51} +func (x *FirstLastCounters) Reset() { + *x = FirstLastCounters{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[82] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *MultiMemberGroupAdminRoleGrant) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *FirstLastCounters) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MultiMemberGroupAdminRoleGrant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MultiMemberGroupAdminRoleGrant.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*FirstLastCounters) ProtoMessage() {} + +func (x *FirstLastCounters) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[82] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *MultiMemberGroupAdminRoleGrant) XXX_Merge(src proto.Message) { - xxx_messageInfo_MultiMemberGroupAdminRoleGrant.Merge(m, src) + +// Deprecated: Use FirstLastCounters.ProtoReflect.Descriptor instead. +func (*FirstLastCounters) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{82} } -func (m *MultiMemberGroupAdminRoleGrant) XXX_Size() int { - return m.Size() + +func (x *FirstLastCounters) GetFirst() uint64 { + if x != nil { + return x.First + } + return 0 } -func (m *MultiMemberGroupAdminRoleGrant) XXX_DiscardUnknown() { - xxx_messageInfo_MultiMemberGroupAdminRoleGrant.DiscardUnknown(m) + +func (x *FirstLastCounters) GetLast() uint64 { + if x != nil { + return x.Last + } + return 0 } -var xxx_messageInfo_MultiMemberGroupAdminRoleGrant proto.InternalMessageInfo +// OrbitDBMessageHeads is the payload sent on orbitdb to share peer's heads +type OrbitDBMessageHeads struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type MultiMemberGroupAdminRoleGrant_Request struct { - // group_pk is the identifier of the group - GroupPK []byte `protobuf:"bytes,1,opt,name=group_pk,json=groupPk,proto3" json:"group_pk,omitempty"` - // member_pk is the identifier of the member which will be granted the admin role - MemberPK []byte `protobuf:"bytes,2,opt,name=member_pk,json=memberPk,proto3" json:"member_pk,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // sealed box should contain encrypted Box + SealedBox []byte `protobuf:"bytes,2,opt,name=sealed_box,json=sealedBox,proto3" json:"sealed_box,omitempty"` + // current topic used + RawRotation []byte `protobuf:"bytes,3,opt,name=raw_rotation,json=rawRotation,proto3" json:"raw_rotation,omitempty"` } -func (m *MultiMemberGroupAdminRoleGrant_Request) Reset() { - *m = MultiMemberGroupAdminRoleGrant_Request{} -} -func (m *MultiMemberGroupAdminRoleGrant_Request) String() string { return proto.CompactTextString(m) } -func (*MultiMemberGroupAdminRoleGrant_Request) ProtoMessage() {} -func (*MultiMemberGroupAdminRoleGrant_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{51, 0} +func (x *OrbitDBMessageHeads) Reset() { + *x = OrbitDBMessageHeads{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[83] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *MultiMemberGroupAdminRoleGrant_Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *OrbitDBMessageHeads) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MultiMemberGroupAdminRoleGrant_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MultiMemberGroupAdminRoleGrant_Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*OrbitDBMessageHeads) ProtoMessage() {} + +func (x *OrbitDBMessageHeads) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[83] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *MultiMemberGroupAdminRoleGrant_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_MultiMemberGroupAdminRoleGrant_Request.Merge(m, src) -} -func (m *MultiMemberGroupAdminRoleGrant_Request) XXX_Size() int { - return m.Size() -} -func (m *MultiMemberGroupAdminRoleGrant_Request) XXX_DiscardUnknown() { - xxx_messageInfo_MultiMemberGroupAdminRoleGrant_Request.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_MultiMemberGroupAdminRoleGrant_Request proto.InternalMessageInfo +// Deprecated: Use OrbitDBMessageHeads.ProtoReflect.Descriptor instead. +func (*OrbitDBMessageHeads) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{83} +} -func (m *MultiMemberGroupAdminRoleGrant_Request) GetGroupPK() []byte { - if m != nil { - return m.GroupPK +func (x *OrbitDBMessageHeads) GetSealedBox() []byte { + if x != nil { + return x.SealedBox } return nil } -func (m *MultiMemberGroupAdminRoleGrant_Request) GetMemberPK() []byte { - if m != nil { - return m.MemberPK +func (x *OrbitDBMessageHeads) GetRawRotation() []byte { + if x != nil { + return x.RawRotation } return nil } -type MultiMemberGroupAdminRoleGrant_Reply struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type RefreshContactRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *MultiMemberGroupAdminRoleGrant_Reply) Reset() { *m = MultiMemberGroupAdminRoleGrant_Reply{} } -func (m *MultiMemberGroupAdminRoleGrant_Reply) String() string { return proto.CompactTextString(m) } -func (*MultiMemberGroupAdminRoleGrant_Reply) ProtoMessage() {} -func (*MultiMemberGroupAdminRoleGrant_Reply) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{51, 1} +func (x *RefreshContactRequest) Reset() { + *x = RefreshContactRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[84] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *MultiMemberGroupAdminRoleGrant_Reply) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *RefreshContactRequest) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MultiMemberGroupAdminRoleGrant_Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MultiMemberGroupAdminRoleGrant_Reply.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*RefreshContactRequest) ProtoMessage() {} + +func (x *RefreshContactRequest) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[84] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *MultiMemberGroupAdminRoleGrant_Reply) XXX_Merge(src proto.Message) { - xxx_messageInfo_MultiMemberGroupAdminRoleGrant_Reply.Merge(m, src) -} -func (m *MultiMemberGroupAdminRoleGrant_Reply) XXX_Size() int { - return m.Size() -} -func (m *MultiMemberGroupAdminRoleGrant_Reply) XXX_DiscardUnknown() { - xxx_messageInfo_MultiMemberGroupAdminRoleGrant_Reply.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_MultiMemberGroupAdminRoleGrant_Reply proto.InternalMessageInfo +// Deprecated: Use RefreshContactRequest.ProtoReflect.Descriptor instead. +func (*RefreshContactRequest) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{84} +} -type MultiMemberGroupInvitationCreate struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ServiceExportData_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *MultiMemberGroupInvitationCreate) Reset() { *m = MultiMemberGroupInvitationCreate{} } -func (m *MultiMemberGroupInvitationCreate) String() string { return proto.CompactTextString(m) } -func (*MultiMemberGroupInvitationCreate) ProtoMessage() {} -func (*MultiMemberGroupInvitationCreate) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{52} +func (x *ServiceExportData_Request) Reset() { + *x = ServiceExportData_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[86] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *MultiMemberGroupInvitationCreate) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ServiceExportData_Request) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MultiMemberGroupInvitationCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MultiMemberGroupInvitationCreate.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ServiceExportData_Request) ProtoMessage() {} + +func (x *ServiceExportData_Request) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[86] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *MultiMemberGroupInvitationCreate) XXX_Merge(src proto.Message) { - xxx_messageInfo_MultiMemberGroupInvitationCreate.Merge(m, src) -} -func (m *MultiMemberGroupInvitationCreate) XXX_Size() int { - return m.Size() -} -func (m *MultiMemberGroupInvitationCreate) XXX_DiscardUnknown() { - xxx_messageInfo_MultiMemberGroupInvitationCreate.DiscardUnknown(m) + +// Deprecated: Use ServiceExportData_Request.ProtoReflect.Descriptor instead. +func (*ServiceExportData_Request) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{33, 0} } -var xxx_messageInfo_MultiMemberGroupInvitationCreate proto.InternalMessageInfo +type ServiceExportData_Reply struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type MultiMemberGroupInvitationCreate_Request struct { - // group_pk is the identifier of the group - GroupPK []byte `protobuf:"bytes,1,opt,name=group_pk,json=groupPk,proto3" json:"group_pk,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ExportedData []byte `protobuf:"bytes,1,opt,name=exported_data,json=exportedData,proto3" json:"exported_data,omitempty"` } -func (m *MultiMemberGroupInvitationCreate_Request) Reset() { - *m = MultiMemberGroupInvitationCreate_Request{} -} -func (m *MultiMemberGroupInvitationCreate_Request) String() string { return proto.CompactTextString(m) } -func (*MultiMemberGroupInvitationCreate_Request) ProtoMessage() {} -func (*MultiMemberGroupInvitationCreate_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{52, 0} +func (x *ServiceExportData_Reply) Reset() { + *x = ServiceExportData_Reply{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[87] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *MultiMemberGroupInvitationCreate_Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ServiceExportData_Reply) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MultiMemberGroupInvitationCreate_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MultiMemberGroupInvitationCreate_Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ServiceExportData_Reply) ProtoMessage() {} + +func (x *ServiceExportData_Reply) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[87] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *MultiMemberGroupInvitationCreate_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_MultiMemberGroupInvitationCreate_Request.Merge(m, src) -} -func (m *MultiMemberGroupInvitationCreate_Request) XXX_Size() int { - return m.Size() -} -func (m *MultiMemberGroupInvitationCreate_Request) XXX_DiscardUnknown() { - xxx_messageInfo_MultiMemberGroupInvitationCreate_Request.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_MultiMemberGroupInvitationCreate_Request proto.InternalMessageInfo +// Deprecated: Use ServiceExportData_Reply.ProtoReflect.Descriptor instead. +func (*ServiceExportData_Reply) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{33, 1} +} -func (m *MultiMemberGroupInvitationCreate_Request) GetGroupPK() []byte { - if m != nil { - return m.GroupPK +func (x *ServiceExportData_Reply) GetExportedData() []byte { + if x != nil { + return x.ExportedData } return nil } -type MultiMemberGroupInvitationCreate_Reply struct { - // group is the invitation to the group - Group *Group `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ServiceGetConfiguration_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *MultiMemberGroupInvitationCreate_Reply) Reset() { - *m = MultiMemberGroupInvitationCreate_Reply{} +func (x *ServiceGetConfiguration_Request) Reset() { + *x = ServiceGetConfiguration_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[88] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *MultiMemberGroupInvitationCreate_Reply) String() string { return proto.CompactTextString(m) } -func (*MultiMemberGroupInvitationCreate_Reply) ProtoMessage() {} -func (*MultiMemberGroupInvitationCreate_Reply) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{52, 1} + +func (x *ServiceGetConfiguration_Request) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *MultiMemberGroupInvitationCreate_Reply) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MultiMemberGroupInvitationCreate_Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MultiMemberGroupInvitationCreate_Reply.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ServiceGetConfiguration_Request) ProtoMessage() {} + +func (x *ServiceGetConfiguration_Request) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[88] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *MultiMemberGroupInvitationCreate_Reply) XXX_Merge(src proto.Message) { - xxx_messageInfo_MultiMemberGroupInvitationCreate_Reply.Merge(m, src) -} -func (m *MultiMemberGroupInvitationCreate_Reply) XXX_Size() int { - return m.Size() -} -func (m *MultiMemberGroupInvitationCreate_Reply) XXX_DiscardUnknown() { - xxx_messageInfo_MultiMemberGroupInvitationCreate_Reply.DiscardUnknown(m) + +// Deprecated: Use ServiceGetConfiguration_Request.ProtoReflect.Descriptor instead. +func (*ServiceGetConfiguration_Request) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{34, 0} } -var xxx_messageInfo_MultiMemberGroupInvitationCreate_Reply proto.InternalMessageInfo +type ServiceGetConfiguration_Reply struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *MultiMemberGroupInvitationCreate_Reply) GetGroup() *Group { - if m != nil { - return m.Group - } - return nil + // account_pk is the public key of the current account + AccountPk []byte `protobuf:"bytes,1,opt,name=account_pk,json=accountPk,proto3" json:"account_pk,omitempty"` + // device_pk is the public key of the current device + DevicePk []byte `protobuf:"bytes,2,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` + // account_group_pk is the public key of the account group + AccountGroupPk []byte `protobuf:"bytes,3,opt,name=account_group_pk,json=accountGroupPk,proto3" json:"account_group_pk,omitempty"` + // peer_id is the peer ID of the current IPFS node + PeerId string `protobuf:"bytes,4,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` + // listeners is the list of swarm listening addresses of the current IPFS node + Listeners []string `protobuf:"bytes,5,rep,name=listeners,proto3" json:"listeners,omitempty"` + BleEnabled ServiceGetConfiguration_SettingState `protobuf:"varint,6,opt,name=ble_enabled,json=bleEnabled,proto3,enum=weshnet.protocol.v1.ServiceGetConfiguration_SettingState" json:"ble_enabled,omitempty"` + WifiP2PEnabled ServiceGetConfiguration_SettingState `protobuf:"varint,7,opt,name=wifi_p2p_enabled,json=wifiP2pEnabled,proto3,enum=weshnet.protocol.v1.ServiceGetConfiguration_SettingState" json:"wifi_p2p_enabled,omitempty"` // MultiPeerConnectivity for Darwin and Nearby for Android + MdnsEnabled ServiceGetConfiguration_SettingState `protobuf:"varint,8,opt,name=mdns_enabled,json=mdnsEnabled,proto3,enum=weshnet.protocol.v1.ServiceGetConfiguration_SettingState" json:"mdns_enabled,omitempty"` + RelayEnabled ServiceGetConfiguration_SettingState `protobuf:"varint,9,opt,name=relay_enabled,json=relayEnabled,proto3,enum=weshnet.protocol.v1.ServiceGetConfiguration_SettingState" json:"relay_enabled,omitempty"` } -type AppMetadataSend struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *ServiceGetConfiguration_Reply) Reset() { + *x = ServiceGetConfiguration_Reply{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[89] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *AppMetadataSend) Reset() { *m = AppMetadataSend{} } -func (m *AppMetadataSend) String() string { return proto.CompactTextString(m) } -func (*AppMetadataSend) ProtoMessage() {} -func (*AppMetadataSend) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{53} +func (x *ServiceGetConfiguration_Reply) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AppMetadataSend) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AppMetadataSend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AppMetadataSend.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ServiceGetConfiguration_Reply) ProtoMessage() {} + +func (x *ServiceGetConfiguration_Reply) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[89] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *AppMetadataSend) XXX_Merge(src proto.Message) { - xxx_messageInfo_AppMetadataSend.Merge(m, src) -} -func (m *AppMetadataSend) XXX_Size() int { - return m.Size() -} -func (m *AppMetadataSend) XXX_DiscardUnknown() { - xxx_messageInfo_AppMetadataSend.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_AppMetadataSend proto.InternalMessageInfo - -type AppMetadataSend_Request struct { - // group_pk is the identifier of the group - GroupPK []byte `protobuf:"bytes,1,opt,name=group_pk,json=groupPk,proto3" json:"group_pk,omitempty"` - // payload is the payload to send - Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Deprecated: Use ServiceGetConfiguration_Reply.ProtoReflect.Descriptor instead. +func (*ServiceGetConfiguration_Reply) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{34, 1} } -func (m *AppMetadataSend_Request) Reset() { *m = AppMetadataSend_Request{} } -func (m *AppMetadataSend_Request) String() string { return proto.CompactTextString(m) } -func (*AppMetadataSend_Request) ProtoMessage() {} -func (*AppMetadataSend_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{53, 0} -} -func (m *AppMetadataSend_Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AppMetadataSend_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AppMetadataSend_Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ServiceGetConfiguration_Reply) GetAccountPk() []byte { + if x != nil { + return x.AccountPk } + return nil } -func (m *AppMetadataSend_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_AppMetadataSend_Request.Merge(m, src) -} -func (m *AppMetadataSend_Request) XXX_Size() int { - return m.Size() -} -func (m *AppMetadataSend_Request) XXX_DiscardUnknown() { - xxx_messageInfo_AppMetadataSend_Request.DiscardUnknown(m) -} - -var xxx_messageInfo_AppMetadataSend_Request proto.InternalMessageInfo -func (m *AppMetadataSend_Request) GetGroupPK() []byte { - if m != nil { - return m.GroupPK +func (x *ServiceGetConfiguration_Reply) GetDevicePk() []byte { + if x != nil { + return x.DevicePk } return nil } -func (m *AppMetadataSend_Request) GetPayload() []byte { - if m != nil { - return m.Payload +func (x *ServiceGetConfiguration_Reply) GetAccountGroupPk() []byte { + if x != nil { + return x.AccountGroupPk } return nil } -type AppMetadataSend_Reply struct { - CID []byte `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *ServiceGetConfiguration_Reply) GetPeerId() string { + if x != nil { + return x.PeerId + } + return "" } -func (m *AppMetadataSend_Reply) Reset() { *m = AppMetadataSend_Reply{} } -func (m *AppMetadataSend_Reply) String() string { return proto.CompactTextString(m) } -func (*AppMetadataSend_Reply) ProtoMessage() {} -func (*AppMetadataSend_Reply) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{53, 1} -} -func (m *AppMetadataSend_Reply) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AppMetadataSend_Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AppMetadataSend_Reply.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ServiceGetConfiguration_Reply) GetListeners() []string { + if x != nil { + return x.Listeners } + return nil } -func (m *AppMetadataSend_Reply) XXX_Merge(src proto.Message) { - xxx_messageInfo_AppMetadataSend_Reply.Merge(m, src) -} -func (m *AppMetadataSend_Reply) XXX_Size() int { - return m.Size() + +func (x *ServiceGetConfiguration_Reply) GetBleEnabled() ServiceGetConfiguration_SettingState { + if x != nil { + return x.BleEnabled + } + return ServiceGetConfiguration_Unknown } -func (m *AppMetadataSend_Reply) XXX_DiscardUnknown() { - xxx_messageInfo_AppMetadataSend_Reply.DiscardUnknown(m) + +func (x *ServiceGetConfiguration_Reply) GetWifiP2PEnabled() ServiceGetConfiguration_SettingState { + if x != nil { + return x.WifiP2PEnabled + } + return ServiceGetConfiguration_Unknown } -var xxx_messageInfo_AppMetadataSend_Reply proto.InternalMessageInfo +func (x *ServiceGetConfiguration_Reply) GetMdnsEnabled() ServiceGetConfiguration_SettingState { + if x != nil { + return x.MdnsEnabled + } + return ServiceGetConfiguration_Unknown +} -func (m *AppMetadataSend_Reply) GetCID() []byte { - if m != nil { - return m.CID +func (x *ServiceGetConfiguration_Reply) GetRelayEnabled() ServiceGetConfiguration_SettingState { + if x != nil { + return x.RelayEnabled } - return nil + return ServiceGetConfiguration_Unknown } -type AppMessageSend struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ContactRequestReference_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *AppMessageSend) Reset() { *m = AppMessageSend{} } -func (m *AppMessageSend) String() string { return proto.CompactTextString(m) } -func (*AppMessageSend) ProtoMessage() {} -func (*AppMessageSend) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{54} +func (x *ContactRequestReference_Request) Reset() { + *x = ContactRequestReference_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[90] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *AppMessageSend) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ContactRequestReference_Request) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AppMessageSend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AppMessageSend.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ContactRequestReference_Request) ProtoMessage() {} + +func (x *ContactRequestReference_Request) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[90] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *AppMessageSend) XXX_Merge(src proto.Message) { - xxx_messageInfo_AppMessageSend.Merge(m, src) -} -func (m *AppMessageSend) XXX_Size() int { - return m.Size() -} -func (m *AppMessageSend) XXX_DiscardUnknown() { - xxx_messageInfo_AppMessageSend.DiscardUnknown(m) + +// Deprecated: Use ContactRequestReference_Request.ProtoReflect.Descriptor instead. +func (*ContactRequestReference_Request) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{35, 0} } -var xxx_messageInfo_AppMessageSend proto.InternalMessageInfo +type ContactRequestReference_Reply struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type AppMessageSend_Request struct { - // group_pk is the identifier of the group - GroupPK []byte `protobuf:"bytes,1,opt,name=group_pk,json=groupPk,proto3" json:"group_pk,omitempty"` - // payload is the payload to send - Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // public_rendezvous_seed is the rendezvous seed used by the current account + PublicRendezvousSeed []byte `protobuf:"bytes,1,opt,name=public_rendezvous_seed,json=publicRendezvousSeed,proto3" json:"public_rendezvous_seed,omitempty"` + // enabled indicates if incoming contact requests are enabled + Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"` } -func (m *AppMessageSend_Request) Reset() { *m = AppMessageSend_Request{} } -func (m *AppMessageSend_Request) String() string { return proto.CompactTextString(m) } -func (*AppMessageSend_Request) ProtoMessage() {} -func (*AppMessageSend_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{54, 0} +func (x *ContactRequestReference_Reply) Reset() { + *x = ContactRequestReference_Reply{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[91] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *AppMessageSend_Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ContactRequestReference_Reply) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AppMessageSend_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AppMessageSend_Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ContactRequestReference_Reply) ProtoMessage() {} + +func (x *ContactRequestReference_Reply) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[91] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *AppMessageSend_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_AppMessageSend_Request.Merge(m, src) -} -func (m *AppMessageSend_Request) XXX_Size() int { - return m.Size() -} -func (m *AppMessageSend_Request) XXX_DiscardUnknown() { - xxx_messageInfo_AppMessageSend_Request.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_AppMessageSend_Request proto.InternalMessageInfo +// Deprecated: Use ContactRequestReference_Reply.ProtoReflect.Descriptor instead. +func (*ContactRequestReference_Reply) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{35, 1} +} -func (m *AppMessageSend_Request) GetGroupPK() []byte { - if m != nil { - return m.GroupPK +func (x *ContactRequestReference_Reply) GetPublicRendezvousSeed() []byte { + if x != nil { + return x.PublicRendezvousSeed } return nil } -func (m *AppMessageSend_Request) GetPayload() []byte { - if m != nil { - return m.Payload +func (x *ContactRequestReference_Reply) GetEnabled() bool { + if x != nil { + return x.Enabled } - return nil + return false } -type AppMessageSend_Reply struct { - CID []byte `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ContactRequestDisable_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *AppMessageSend_Reply) Reset() { *m = AppMessageSend_Reply{} } -func (m *AppMessageSend_Reply) String() string { return proto.CompactTextString(m) } -func (*AppMessageSend_Reply) ProtoMessage() {} -func (*AppMessageSend_Reply) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{54, 1} +func (x *ContactRequestDisable_Request) Reset() { + *x = ContactRequestDisable_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[92] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *AppMessageSend_Reply) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ContactRequestDisable_Request) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AppMessageSend_Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AppMessageSend_Reply.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ContactRequestDisable_Request) ProtoMessage() {} + +func (x *ContactRequestDisable_Request) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[92] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *AppMessageSend_Reply) XXX_Merge(src proto.Message) { - xxx_messageInfo_AppMessageSend_Reply.Merge(m, src) -} -func (m *AppMessageSend_Reply) XXX_Size() int { - return m.Size() -} -func (m *AppMessageSend_Reply) XXX_DiscardUnknown() { - xxx_messageInfo_AppMessageSend_Reply.DiscardUnknown(m) + +// Deprecated: Use ContactRequestDisable_Request.ProtoReflect.Descriptor instead. +func (*ContactRequestDisable_Request) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{36, 0} } -var xxx_messageInfo_AppMessageSend_Reply proto.InternalMessageInfo +type ContactRequestDisable_Reply struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} -func (m *AppMessageSend_Reply) GetCID() []byte { - if m != nil { - return m.CID +func (x *ContactRequestDisable_Reply) Reset() { + *x = ContactRequestDisable_Reply{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[93] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type GroupMetadataEvent struct { - // event_context contains context information about the event - EventContext *EventContext `protobuf:"bytes,1,opt,name=event_context,json=eventContext,proto3" json:"event_context,omitempty"` - // metadata contains the newly available metadata - Metadata *GroupMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` - // event_clear clear bytes for the event - Event []byte `protobuf:"bytes,3,opt,name=event,proto3" json:"event,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *ContactRequestDisable_Reply) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GroupMetadataEvent) Reset() { *m = GroupMetadataEvent{} } -func (m *GroupMetadataEvent) String() string { return proto.CompactTextString(m) } -func (*GroupMetadataEvent) ProtoMessage() {} -func (*GroupMetadataEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{55} -} -func (m *GroupMetadataEvent) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GroupMetadataEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GroupMetadataEvent.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*ContactRequestDisable_Reply) ProtoMessage() {} + +func (x *ContactRequestDisable_Reply) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[93] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *GroupMetadataEvent) XXX_Merge(src proto.Message) { - xxx_messageInfo_GroupMetadataEvent.Merge(m, src) -} -func (m *GroupMetadataEvent) XXX_Size() int { - return m.Size() -} -func (m *GroupMetadataEvent) XXX_DiscardUnknown() { - xxx_messageInfo_GroupMetadataEvent.DiscardUnknown(m) + +// Deprecated: Use ContactRequestDisable_Reply.ProtoReflect.Descriptor instead. +func (*ContactRequestDisable_Reply) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{36, 1} } -var xxx_messageInfo_GroupMetadataEvent proto.InternalMessageInfo +type ContactRequestEnable_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} -func (m *GroupMetadataEvent) GetEventContext() *EventContext { - if m != nil { - return m.EventContext +func (x *ContactRequestEnable_Request) Reset() { + *x = ContactRequestEnable_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[94] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *GroupMetadataEvent) GetMetadata() *GroupMetadata { - if m != nil { - return m.Metadata - } - return nil +func (x *ContactRequestEnable_Request) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GroupMetadataEvent) GetEvent() []byte { - if m != nil { - return m.Event +func (*ContactRequestEnable_Request) ProtoMessage() {} + +func (x *ContactRequestEnable_Request) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[94] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -type GroupMessageEvent struct { - // event_context contains context information about the event - EventContext *EventContext `protobuf:"bytes,1,opt,name=event_context,json=eventContext,proto3" json:"event_context,omitempty"` - // headers contains headers of the secure message - Headers *MessageHeaders `protobuf:"bytes,2,opt,name=headers,proto3" json:"headers,omitempty"` - // message contains the secure message payload - Message []byte `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Deprecated: Use ContactRequestEnable_Request.ProtoReflect.Descriptor instead. +func (*ContactRequestEnable_Request) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{37, 0} } -func (m *GroupMessageEvent) Reset() { *m = GroupMessageEvent{} } -func (m *GroupMessageEvent) String() string { return proto.CompactTextString(m) } -func (*GroupMessageEvent) ProtoMessage() {} -func (*GroupMessageEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{56} -} -func (m *GroupMessageEvent) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) +type ContactRequestEnable_Reply struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // public_rendezvous_seed is the rendezvous seed used by the current account + PublicRendezvousSeed []byte `protobuf:"bytes,1,opt,name=public_rendezvous_seed,json=publicRendezvousSeed,proto3" json:"public_rendezvous_seed,omitempty"` } -func (m *GroupMessageEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GroupMessageEvent.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil + +func (x *ContactRequestEnable_Reply) Reset() { + *x = ContactRequestEnable_Reply{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[95] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *GroupMessageEvent) XXX_Merge(src proto.Message) { - xxx_messageInfo_GroupMessageEvent.Merge(m, src) -} -func (m *GroupMessageEvent) XXX_Size() int { - return m.Size() -} -func (m *GroupMessageEvent) XXX_DiscardUnknown() { - xxx_messageInfo_GroupMessageEvent.DiscardUnknown(m) + +func (x *ContactRequestEnable_Reply) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_GroupMessageEvent proto.InternalMessageInfo +func (*ContactRequestEnable_Reply) ProtoMessage() {} -func (m *GroupMessageEvent) GetEventContext() *EventContext { - if m != nil { - return m.EventContext +func (x *ContactRequestEnable_Reply) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[95] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *GroupMessageEvent) GetHeaders() *MessageHeaders { - if m != nil { - return m.Headers - } - return nil +// Deprecated: Use ContactRequestEnable_Reply.ProtoReflect.Descriptor instead. +func (*ContactRequestEnable_Reply) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{37, 1} } -func (m *GroupMessageEvent) GetMessage() []byte { - if m != nil { - return m.Message +func (x *ContactRequestEnable_Reply) GetPublicRendezvousSeed() []byte { + if x != nil { + return x.PublicRendezvousSeed } return nil } -type GroupMetadataList struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ContactRequestResetReference_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *GroupMetadataList) Reset() { *m = GroupMetadataList{} } -func (m *GroupMetadataList) String() string { return proto.CompactTextString(m) } -func (*GroupMetadataList) ProtoMessage() {} -func (*GroupMetadataList) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{57} +func (x *ContactRequestResetReference_Request) Reset() { + *x = ContactRequestResetReference_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[96] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GroupMetadataList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ContactRequestResetReference_Request) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GroupMetadataList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GroupMetadataList.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ContactRequestResetReference_Request) ProtoMessage() {} + +func (x *ContactRequestResetReference_Request) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[96] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *GroupMetadataList) XXX_Merge(src proto.Message) { - xxx_messageInfo_GroupMetadataList.Merge(m, src) -} -func (m *GroupMetadataList) XXX_Size() int { - return m.Size() -} -func (m *GroupMetadataList) XXX_DiscardUnknown() { - xxx_messageInfo_GroupMetadataList.DiscardUnknown(m) + +// Deprecated: Use ContactRequestResetReference_Request.ProtoReflect.Descriptor instead. +func (*ContactRequestResetReference_Request) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{38, 0} } -var xxx_messageInfo_GroupMetadataList proto.InternalMessageInfo +type ContactRequestResetReference_Reply struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type GroupMetadataList_Request struct { - // group_pk is the identifier of the group - GroupPK []byte `protobuf:"bytes,1,opt,name=group_pk,json=groupPk,proto3" json:"group_pk,omitempty"` - // since is the lower ID bound used to filter events - // if not set, will return events since the beginning - SinceID []byte `protobuf:"bytes,2,opt,name=since_id,json=sinceId,proto3" json:"since_id,omitempty"` - // since_now will list only new event to come - // since_id must not be set - SinceNow bool `protobuf:"varint,3,opt,name=since_now,json=sinceNow,proto3" json:"since_now,omitempty"` - // until is the upper ID bound used to filter events - // if not set, will subscribe to new events to come - UntilID []byte `protobuf:"bytes,4,opt,name=until_id,json=untilId,proto3" json:"until_id,omitempty"` - // until_now will not list new event to come - // until_id must not be set - UntilNow bool `protobuf:"varint,5,opt,name=until_now,json=untilNow,proto3" json:"until_now,omitempty"` - // reverse_order indicates whether the previous events should be returned in - // reverse chronological order - ReverseOrder bool `protobuf:"varint,6,opt,name=reverse_order,json=reverseOrder,proto3" json:"reverse_order,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // public_rendezvous_seed is the rendezvous seed used by the current account + PublicRendezvousSeed []byte `protobuf:"bytes,1,opt,name=public_rendezvous_seed,json=publicRendezvousSeed,proto3" json:"public_rendezvous_seed,omitempty"` } -func (m *GroupMetadataList_Request) Reset() { *m = GroupMetadataList_Request{} } -func (m *GroupMetadataList_Request) String() string { return proto.CompactTextString(m) } -func (*GroupMetadataList_Request) ProtoMessage() {} -func (*GroupMetadataList_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{57, 0} +func (x *ContactRequestResetReference_Reply) Reset() { + *x = ContactRequestResetReference_Reply{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[97] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GroupMetadataList_Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ContactRequestResetReference_Reply) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GroupMetadataList_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GroupMetadataList_Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ContactRequestResetReference_Reply) ProtoMessage() {} + +func (x *ContactRequestResetReference_Reply) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[97] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *GroupMetadataList_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_GroupMetadataList_Request.Merge(m, src) -} -func (m *GroupMetadataList_Request) XXX_Size() int { - return m.Size() -} -func (m *GroupMetadataList_Request) XXX_DiscardUnknown() { - xxx_messageInfo_GroupMetadataList_Request.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_GroupMetadataList_Request proto.InternalMessageInfo +// Deprecated: Use ContactRequestResetReference_Reply.ProtoReflect.Descriptor instead. +func (*ContactRequestResetReference_Reply) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{38, 1} +} -func (m *GroupMetadataList_Request) GetGroupPK() []byte { - if m != nil { - return m.GroupPK +func (x *ContactRequestResetReference_Reply) GetPublicRendezvousSeed() []byte { + if x != nil { + return x.PublicRendezvousSeed } return nil } -func (m *GroupMetadataList_Request) GetSinceID() []byte { - if m != nil { - return m.SinceID - } - return nil +type ContactRequestSend_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // contact is a message describing how to connect to the other account + Contact *ShareableContact `protobuf:"bytes,1,opt,name=contact,proto3" json:"contact,omitempty"` + // own_metadata is the identifying metadata that will be shared to the other account + OwnMetadata []byte `protobuf:"bytes,2,opt,name=own_metadata,json=ownMetadata,proto3" json:"own_metadata,omitempty"` } -func (m *GroupMetadataList_Request) GetSinceNow() bool { - if m != nil { - return m.SinceNow +func (x *ContactRequestSend_Request) Reset() { + *x = ContactRequestSend_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[98] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return false } -func (m *GroupMetadataList_Request) GetUntilID() []byte { - if m != nil { - return m.UntilID +func (x *ContactRequestSend_Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ContactRequestSend_Request) ProtoMessage() {} + +func (x *ContactRequestSend_Request) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[98] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) +} + +// Deprecated: Use ContactRequestSend_Request.ProtoReflect.Descriptor instead. +func (*ContactRequestSend_Request) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{39, 0} } -func (m *GroupMetadataList_Request) GetUntilNow() bool { - if m != nil { - return m.UntilNow +func (x *ContactRequestSend_Request) GetContact() *ShareableContact { + if x != nil { + return x.Contact } - return false + return nil } -func (m *GroupMetadataList_Request) GetReverseOrder() bool { - if m != nil { - return m.ReverseOrder +func (x *ContactRequestSend_Request) GetOwnMetadata() []byte { + if x != nil { + return x.OwnMetadata } - return false + return nil } -type GroupMessageList struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ContactRequestSend_Reply struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *GroupMessageList) Reset() { *m = GroupMessageList{} } -func (m *GroupMessageList) String() string { return proto.CompactTextString(m) } -func (*GroupMessageList) ProtoMessage() {} -func (*GroupMessageList) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{58} +func (x *ContactRequestSend_Reply) Reset() { + *x = ContactRequestSend_Reply{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[99] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GroupMessageList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ContactRequestSend_Reply) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GroupMessageList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GroupMessageList.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ContactRequestSend_Reply) ProtoMessage() {} + +func (x *ContactRequestSend_Reply) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[99] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *GroupMessageList) XXX_Merge(src proto.Message) { - xxx_messageInfo_GroupMessageList.Merge(m, src) -} -func (m *GroupMessageList) XXX_Size() int { - return m.Size() -} -func (m *GroupMessageList) XXX_DiscardUnknown() { - xxx_messageInfo_GroupMessageList.DiscardUnknown(m) + +// Deprecated: Use ContactRequestSend_Reply.ProtoReflect.Descriptor instead. +func (*ContactRequestSend_Reply) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{39, 1} } -var xxx_messageInfo_GroupMessageList proto.InternalMessageInfo +type ContactRequestAccept_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type GroupMessageList_Request struct { - // group_pk is the identifier of the group - GroupPK []byte `protobuf:"bytes,1,opt,name=group_pk,json=groupPk,proto3" json:"group_pk,omitempty"` - // since is the lower ID bound used to filter events - // if not set, will return events since the beginning - SinceID []byte `protobuf:"bytes,2,opt,name=since_id,json=sinceId,proto3" json:"since_id,omitempty"` - // since_now will list only new event to come - // since_id must not be set - SinceNow bool `protobuf:"varint,3,opt,name=since_now,json=sinceNow,proto3" json:"since_now,omitempty"` - // until is the upper ID bound used to filter events - // if not set, will subscribe to new events to come - UntilID []byte `protobuf:"bytes,4,opt,name=until_id,json=untilId,proto3" json:"until_id,omitempty"` - // until_now will not list new event to come - // until_id must not be set - UntilNow bool `protobuf:"varint,5,opt,name=until_now,json=untilNow,proto3" json:"until_now,omitempty"` - // reverse_order indicates whether the previous events should be returned in - // reverse chronological order - ReverseOrder bool `protobuf:"varint,6,opt,name=reverse_order,json=reverseOrder,proto3" json:"reverse_order,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // contact_pk is the identifier of the contact to accept the request from + ContactPk []byte `protobuf:"bytes,1,opt,name=contact_pk,json=contactPk,proto3" json:"contact_pk,omitempty"` } -func (m *GroupMessageList_Request) Reset() { *m = GroupMessageList_Request{} } -func (m *GroupMessageList_Request) String() string { return proto.CompactTextString(m) } -func (*GroupMessageList_Request) ProtoMessage() {} -func (*GroupMessageList_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{58, 0} +func (x *ContactRequestAccept_Request) Reset() { + *x = ContactRequestAccept_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[100] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GroupMessageList_Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ContactRequestAccept_Request) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GroupMessageList_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GroupMessageList_Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ContactRequestAccept_Request) ProtoMessage() {} + +func (x *ContactRequestAccept_Request) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[100] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *GroupMessageList_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_GroupMessageList_Request.Merge(m, src) -} -func (m *GroupMessageList_Request) XXX_Size() int { - return m.Size() -} -func (m *GroupMessageList_Request) XXX_DiscardUnknown() { - xxx_messageInfo_GroupMessageList_Request.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_GroupMessageList_Request proto.InternalMessageInfo +// Deprecated: Use ContactRequestAccept_Request.ProtoReflect.Descriptor instead. +func (*ContactRequestAccept_Request) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{40, 0} +} -func (m *GroupMessageList_Request) GetGroupPK() []byte { - if m != nil { - return m.GroupPK +func (x *ContactRequestAccept_Request) GetContactPk() []byte { + if x != nil { + return x.ContactPk } return nil } -func (m *GroupMessageList_Request) GetSinceID() []byte { - if m != nil { - return m.SinceID - } - return nil +type ContactRequestAccept_Reply struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *GroupMessageList_Request) GetSinceNow() bool { - if m != nil { - return m.SinceNow +func (x *ContactRequestAccept_Reply) Reset() { + *x = ContactRequestAccept_Reply{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[101] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return false } -func (m *GroupMessageList_Request) GetUntilID() []byte { - if m != nil { - return m.UntilID - } - return nil +func (x *ContactRequestAccept_Reply) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GroupMessageList_Request) GetUntilNow() bool { - if m != nil { - return m.UntilNow +func (*ContactRequestAccept_Reply) ProtoMessage() {} + +func (x *ContactRequestAccept_Reply) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[101] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return false + return mi.MessageOf(x) } -func (m *GroupMessageList_Request) GetReverseOrder() bool { - if m != nil { - return m.ReverseOrder - } - return false +// Deprecated: Use ContactRequestAccept_Reply.ProtoReflect.Descriptor instead. +func (*ContactRequestAccept_Reply) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{40, 1} } -type GroupInfo struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ContactRequestDiscard_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // contact_pk is the identifier of the contact to ignore the request from + ContactPk []byte `protobuf:"bytes,1,opt,name=contact_pk,json=contactPk,proto3" json:"contact_pk,omitempty"` } -func (m *GroupInfo) Reset() { *m = GroupInfo{} } -func (m *GroupInfo) String() string { return proto.CompactTextString(m) } -func (*GroupInfo) ProtoMessage() {} -func (*GroupInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{59} +func (x *ContactRequestDiscard_Request) Reset() { + *x = ContactRequestDiscard_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[102] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GroupInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ContactRequestDiscard_Request) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GroupInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GroupInfo.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ContactRequestDiscard_Request) ProtoMessage() {} + +func (x *ContactRequestDiscard_Request) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[102] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *GroupInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_GroupInfo.Merge(m, src) -} -func (m *GroupInfo) XXX_Size() int { - return m.Size() -} -func (m *GroupInfo) XXX_DiscardUnknown() { - xxx_messageInfo_GroupInfo.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_GroupInfo proto.InternalMessageInfo - -type GroupInfo_Request struct { - // group_pk is the identifier of the group - GroupPK []byte `protobuf:"bytes,1,opt,name=group_pk,json=groupPk,proto3" json:"group_pk,omitempty"` - // contact_pk is the identifier of the contact - ContactPK []byte `protobuf:"bytes,2,opt,name=contact_pk,json=contactPk,proto3" json:"contact_pk,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Deprecated: Use ContactRequestDiscard_Request.ProtoReflect.Descriptor instead. +func (*ContactRequestDiscard_Request) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{41, 0} } -func (m *GroupInfo_Request) Reset() { *m = GroupInfo_Request{} } -func (m *GroupInfo_Request) String() string { return proto.CompactTextString(m) } -func (*GroupInfo_Request) ProtoMessage() {} -func (*GroupInfo_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{59, 0} -} -func (m *GroupInfo_Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GroupInfo_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GroupInfo_Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ContactRequestDiscard_Request) GetContactPk() []byte { + if x != nil { + return x.ContactPk } + return nil } -func (m *GroupInfo_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_GroupInfo_Request.Merge(m, src) + +type ContactRequestDiscard_Reply struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *GroupInfo_Request) XXX_Size() int { - return m.Size() + +func (x *ContactRequestDiscard_Reply) Reset() { + *x = ContactRequestDiscard_Reply{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[103] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GroupInfo_Request) XXX_DiscardUnknown() { - xxx_messageInfo_GroupInfo_Request.DiscardUnknown(m) + +func (x *ContactRequestDiscard_Reply) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_GroupInfo_Request proto.InternalMessageInfo +func (*ContactRequestDiscard_Reply) ProtoMessage() {} -func (m *GroupInfo_Request) GetGroupPK() []byte { - if m != nil { - return m.GroupPK +func (x *ContactRequestDiscard_Reply) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[103] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *GroupInfo_Request) GetContactPK() []byte { - if m != nil { - return m.ContactPK - } - return nil +// Deprecated: Use ContactRequestDiscard_Reply.ProtoReflect.Descriptor instead. +func (*ContactRequestDiscard_Reply) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{41, 1} } -type GroupInfo_Reply struct { - // group is the group invitation, containing the group pk and its type - Group *Group `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` - // member_pk is the identifier of the current member in the group - MemberPK []byte `protobuf:"bytes,2,opt,name=member_pk,json=memberPk,proto3" json:"member_pk,omitempty"` - // device_pk is the identifier of the current device in the group - DevicePK []byte `protobuf:"bytes,3,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ShareContact_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *GroupInfo_Reply) Reset() { *m = GroupInfo_Reply{} } -func (m *GroupInfo_Reply) String() string { return proto.CompactTextString(m) } -func (*GroupInfo_Reply) ProtoMessage() {} -func (*GroupInfo_Reply) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{59, 1} +func (x *ShareContact_Request) Reset() { + *x = ShareContact_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[104] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GroupInfo_Reply) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ShareContact_Request) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GroupInfo_Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GroupInfo_Reply.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ShareContact_Request) ProtoMessage() {} + +func (x *ShareContact_Request) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[104] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) +} + +// Deprecated: Use ShareContact_Request.ProtoReflect.Descriptor instead. +func (*ShareContact_Request) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{42, 0} } -func (m *GroupInfo_Reply) XXX_Merge(src proto.Message) { - xxx_messageInfo_GroupInfo_Reply.Merge(m, src) + +type ShareContact_Reply struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // encoded_contact is the Protobuf encoding of the ShareableContact. You can further encode the bytes for sharing, such as base58 or QR code. + EncodedContact []byte `protobuf:"bytes,1,opt,name=encoded_contact,json=encodedContact,proto3" json:"encoded_contact,omitempty"` } -func (m *GroupInfo_Reply) XXX_Size() int { - return m.Size() + +func (x *ShareContact_Reply) Reset() { + *x = ShareContact_Reply{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[105] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GroupInfo_Reply) XXX_DiscardUnknown() { - xxx_messageInfo_GroupInfo_Reply.DiscardUnknown(m) + +func (x *ShareContact_Reply) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_GroupInfo_Reply proto.InternalMessageInfo +func (*ShareContact_Reply) ProtoMessage() {} -func (m *GroupInfo_Reply) GetGroup() *Group { - if m != nil { - return m.Group +func (x *ShareContact_Reply) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[105] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -func (m *GroupInfo_Reply) GetMemberPK() []byte { - if m != nil { - return m.MemberPK - } - return nil +// Deprecated: Use ShareContact_Reply.ProtoReflect.Descriptor instead. +func (*ShareContact_Reply) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{42, 1} } -func (m *GroupInfo_Reply) GetDevicePK() []byte { - if m != nil { - return m.DevicePK +func (x *ShareContact_Reply) GetEncodedContact() []byte { + if x != nil { + return x.EncodedContact } return nil } -type ActivateGroup struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type DecodeContact_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // encoded_contact is the Protobuf encoding of the shareable contact (as returned by ShareContact). + EncodedContact []byte `protobuf:"bytes,1,opt,name=encoded_contact,json=encodedContact,proto3" json:"encoded_contact,omitempty"` } -func (m *ActivateGroup) Reset() { *m = ActivateGroup{} } -func (m *ActivateGroup) String() string { return proto.CompactTextString(m) } -func (*ActivateGroup) ProtoMessage() {} -func (*ActivateGroup) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{60} +func (x *DecodeContact_Request) Reset() { + *x = DecodeContact_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[106] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ActivateGroup) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *DecodeContact_Request) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ActivateGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ActivateGroup.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*DecodeContact_Request) ProtoMessage() {} + +func (x *DecodeContact_Request) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[106] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *ActivateGroup) XXX_Merge(src proto.Message) { - xxx_messageInfo_ActivateGroup.Merge(m, src) -} -func (m *ActivateGroup) XXX_Size() int { - return m.Size() + +// Deprecated: Use DecodeContact_Request.ProtoReflect.Descriptor instead. +func (*DecodeContact_Request) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{43, 0} } -func (m *ActivateGroup) XXX_DiscardUnknown() { - xxx_messageInfo_ActivateGroup.DiscardUnknown(m) + +func (x *DecodeContact_Request) GetEncodedContact() []byte { + if x != nil { + return x.EncodedContact + } + return nil } -var xxx_messageInfo_ActivateGroup proto.InternalMessageInfo +type DecodeContact_Reply struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type ActivateGroup_Request struct { - // group_pk is the identifier of the group - GroupPK []byte `protobuf:"bytes,1,opt,name=group_pk,json=groupPk,proto3" json:"group_pk,omitempty"` - // local_only will open the group without enabling network interactions - // with other members - LocalOnly bool `protobuf:"varint,2,opt,name=local_only,json=localOnly,proto3" json:"local_only,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // shareable_contact is the decoded shareable contact. + Contact *ShareableContact `protobuf:"bytes,1,opt,name=contact,proto3" json:"contact,omitempty"` } -func (m *ActivateGroup_Request) Reset() { *m = ActivateGroup_Request{} } -func (m *ActivateGroup_Request) String() string { return proto.CompactTextString(m) } -func (*ActivateGroup_Request) ProtoMessage() {} -func (*ActivateGroup_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{60, 0} +func (x *DecodeContact_Reply) Reset() { + *x = DecodeContact_Reply{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[107] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ActivateGroup_Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *DecodeContact_Reply) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ActivateGroup_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ActivateGroup_Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*DecodeContact_Reply) ProtoMessage() {} + +func (x *DecodeContact_Reply) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[107] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ActivateGroup_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_ActivateGroup_Request.Merge(m, src) -} -func (m *ActivateGroup_Request) XXX_Size() int { - return m.Size() -} -func (m *ActivateGroup_Request) XXX_DiscardUnknown() { - xxx_messageInfo_ActivateGroup_Request.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ActivateGroup_Request proto.InternalMessageInfo +// Deprecated: Use DecodeContact_Reply.ProtoReflect.Descriptor instead. +func (*DecodeContact_Reply) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{43, 1} +} -func (m *ActivateGroup_Request) GetGroupPK() []byte { - if m != nil { - return m.GroupPK +func (x *DecodeContact_Reply) GetContact() *ShareableContact { + if x != nil { + return x.Contact } return nil } -func (m *ActivateGroup_Request) GetLocalOnly() bool { - if m != nil { - return m.LocalOnly - } - return false -} +type ContactBlock_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type ActivateGroup_Reply struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // contact_pk is the identifier of the contact to block + ContactPk []byte `protobuf:"bytes,1,opt,name=contact_pk,json=contactPk,proto3" json:"contact_pk,omitempty"` } -func (m *ActivateGroup_Reply) Reset() { *m = ActivateGroup_Reply{} } -func (m *ActivateGroup_Reply) String() string { return proto.CompactTextString(m) } -func (*ActivateGroup_Reply) ProtoMessage() {} -func (*ActivateGroup_Reply) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{60, 1} +func (x *ContactBlock_Request) Reset() { + *x = ContactBlock_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[108] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ActivateGroup_Reply) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ContactBlock_Request) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ActivateGroup_Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ActivateGroup_Reply.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ContactBlock_Request) ProtoMessage() {} + +func (x *ContactBlock_Request) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[108] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *ActivateGroup_Reply) XXX_Merge(src proto.Message) { - xxx_messageInfo_ActivateGroup_Reply.Merge(m, src) -} -func (m *ActivateGroup_Reply) XXX_Size() int { - return m.Size() -} -func (m *ActivateGroup_Reply) XXX_DiscardUnknown() { - xxx_messageInfo_ActivateGroup_Reply.DiscardUnknown(m) + +// Deprecated: Use ContactBlock_Request.ProtoReflect.Descriptor instead. +func (*ContactBlock_Request) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{44, 0} } -var xxx_messageInfo_ActivateGroup_Reply proto.InternalMessageInfo +func (x *ContactBlock_Request) GetContactPk() []byte { + if x != nil { + return x.ContactPk + } + return nil +} -type DeactivateGroup struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ContactBlock_Reply struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *DeactivateGroup) Reset() { *m = DeactivateGroup{} } -func (m *DeactivateGroup) String() string { return proto.CompactTextString(m) } -func (*DeactivateGroup) ProtoMessage() {} -func (*DeactivateGroup) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{61} +func (x *ContactBlock_Reply) Reset() { + *x = ContactBlock_Reply{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[109] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DeactivateGroup) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ContactBlock_Reply) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DeactivateGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DeactivateGroup.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ContactBlock_Reply) ProtoMessage() {} + +func (x *ContactBlock_Reply) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[109] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *DeactivateGroup) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeactivateGroup.Merge(m, src) -} -func (m *DeactivateGroup) XXX_Size() int { - return m.Size() -} -func (m *DeactivateGroup) XXX_DiscardUnknown() { - xxx_messageInfo_DeactivateGroup.DiscardUnknown(m) + +// Deprecated: Use ContactBlock_Reply.ProtoReflect.Descriptor instead. +func (*ContactBlock_Reply) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{44, 1} } -var xxx_messageInfo_DeactivateGroup proto.InternalMessageInfo +type ContactUnblock_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type DeactivateGroup_Request struct { - // group_pk is the identifier of the group - GroupPK []byte `protobuf:"bytes,1,opt,name=group_pk,json=groupPk,proto3" json:"group_pk,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // contact_pk is the identifier of the contact to unblock + ContactPk []byte `protobuf:"bytes,1,opt,name=contact_pk,json=contactPk,proto3" json:"contact_pk,omitempty"` } -func (m *DeactivateGroup_Request) Reset() { *m = DeactivateGroup_Request{} } -func (m *DeactivateGroup_Request) String() string { return proto.CompactTextString(m) } -func (*DeactivateGroup_Request) ProtoMessage() {} -func (*DeactivateGroup_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{61, 0} +func (x *ContactUnblock_Request) Reset() { + *x = ContactUnblock_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[110] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DeactivateGroup_Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ContactUnblock_Request) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DeactivateGroup_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DeactivateGroup_Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ContactUnblock_Request) ProtoMessage() {} + +func (x *ContactUnblock_Request) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[110] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *DeactivateGroup_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeactivateGroup_Request.Merge(m, src) -} -func (m *DeactivateGroup_Request) XXX_Size() int { - return m.Size() -} -func (m *DeactivateGroup_Request) XXX_DiscardUnknown() { - xxx_messageInfo_DeactivateGroup_Request.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_DeactivateGroup_Request proto.InternalMessageInfo +// Deprecated: Use ContactUnblock_Request.ProtoReflect.Descriptor instead. +func (*ContactUnblock_Request) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{45, 0} +} -func (m *DeactivateGroup_Request) GetGroupPK() []byte { - if m != nil { - return m.GroupPK +func (x *ContactUnblock_Request) GetContactPk() []byte { + if x != nil { + return x.ContactPk } return nil } -type DeactivateGroup_Reply struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ContactUnblock_Reply struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *DeactivateGroup_Reply) Reset() { *m = DeactivateGroup_Reply{} } -func (m *DeactivateGroup_Reply) String() string { return proto.CompactTextString(m) } -func (*DeactivateGroup_Reply) ProtoMessage() {} -func (*DeactivateGroup_Reply) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{61, 1} +func (x *ContactUnblock_Reply) Reset() { + *x = ContactUnblock_Reply{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[111] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DeactivateGroup_Reply) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ContactUnblock_Reply) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DeactivateGroup_Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DeactivateGroup_Reply.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ContactUnblock_Reply) ProtoMessage() {} + +func (x *ContactUnblock_Reply) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[111] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *DeactivateGroup_Reply) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeactivateGroup_Reply.Merge(m, src) -} -func (m *DeactivateGroup_Reply) XXX_Size() int { - return m.Size() -} -func (m *DeactivateGroup_Reply) XXX_DiscardUnknown() { - xxx_messageInfo_DeactivateGroup_Reply.DiscardUnknown(m) + +// Deprecated: Use ContactUnblock_Reply.ProtoReflect.Descriptor instead. +func (*ContactUnblock_Reply) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{45, 1} } -var xxx_messageInfo_DeactivateGroup_Reply proto.InternalMessageInfo +type ContactAliasKeySend_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type GroupDeviceStatus struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // contact_pk is the identifier of the contact to send the alias public key to + GroupPk []byte `protobuf:"bytes,1,opt,name=group_pk,json=groupPk,proto3" json:"group_pk,omitempty"` } -func (m *GroupDeviceStatus) Reset() { *m = GroupDeviceStatus{} } -func (m *GroupDeviceStatus) String() string { return proto.CompactTextString(m) } -func (*GroupDeviceStatus) ProtoMessage() {} -func (*GroupDeviceStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{62} +func (x *ContactAliasKeySend_Request) Reset() { + *x = ContactAliasKeySend_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[112] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GroupDeviceStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ContactAliasKeySend_Request) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GroupDeviceStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GroupDeviceStatus.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ContactAliasKeySend_Request) ProtoMessage() {} + +func (x *ContactAliasKeySend_Request) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[112] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *GroupDeviceStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_GroupDeviceStatus.Merge(m, src) -} -func (m *GroupDeviceStatus) XXX_Size() int { - return m.Size() -} -func (m *GroupDeviceStatus) XXX_DiscardUnknown() { - xxx_messageInfo_GroupDeviceStatus.DiscardUnknown(m) + +// Deprecated: Use ContactAliasKeySend_Request.ProtoReflect.Descriptor instead. +func (*ContactAliasKeySend_Request) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{46, 0} } -var xxx_messageInfo_GroupDeviceStatus proto.InternalMessageInfo +func (x *ContactAliasKeySend_Request) GetGroupPk() []byte { + if x != nil { + return x.GroupPk + } + return nil +} -type GroupDeviceStatus_Request struct { - GroupPK []byte `protobuf:"bytes,1,opt,name=group_pk,json=groupPk,proto3" json:"group_pk,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ContactAliasKeySend_Reply struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *GroupDeviceStatus_Request) Reset() { *m = GroupDeviceStatus_Request{} } -func (m *GroupDeviceStatus_Request) String() string { return proto.CompactTextString(m) } -func (*GroupDeviceStatus_Request) ProtoMessage() {} -func (*GroupDeviceStatus_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{62, 0} +func (x *ContactAliasKeySend_Reply) Reset() { + *x = ContactAliasKeySend_Reply{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[113] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GroupDeviceStatus_Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ContactAliasKeySend_Reply) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GroupDeviceStatus_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GroupDeviceStatus_Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ContactAliasKeySend_Reply) ProtoMessage() {} + +func (x *ContactAliasKeySend_Reply) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[113] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *GroupDeviceStatus_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_GroupDeviceStatus_Request.Merge(m, src) -} -func (m *GroupDeviceStatus_Request) XXX_Size() int { - return m.Size() -} -func (m *GroupDeviceStatus_Request) XXX_DiscardUnknown() { - xxx_messageInfo_GroupDeviceStatus_Request.DiscardUnknown(m) + +// Deprecated: Use ContactAliasKeySend_Reply.ProtoReflect.Descriptor instead. +func (*ContactAliasKeySend_Reply) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{46, 1} } -var xxx_messageInfo_GroupDeviceStatus_Request proto.InternalMessageInfo +type MultiMemberGroupCreate_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} -func (m *GroupDeviceStatus_Request) GetGroupPK() []byte { - if m != nil { - return m.GroupPK +func (x *MultiMemberGroupCreate_Request) Reset() { + *x = MultiMemberGroupCreate_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[114] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type GroupDeviceStatus_Reply struct { - Type GroupDeviceStatus_Type `protobuf:"varint,1,opt,name=type,proto3,enum=weshnet.protocol.v1.GroupDeviceStatus_Type" json:"type,omitempty"` - Event []byte `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *MultiMemberGroupCreate_Request) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GroupDeviceStatus_Reply) Reset() { *m = GroupDeviceStatus_Reply{} } -func (m *GroupDeviceStatus_Reply) String() string { return proto.CompactTextString(m) } -func (*GroupDeviceStatus_Reply) ProtoMessage() {} -func (*GroupDeviceStatus_Reply) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{62, 1} -} -func (m *GroupDeviceStatus_Reply) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GroupDeviceStatus_Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GroupDeviceStatus_Reply.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*MultiMemberGroupCreate_Request) ProtoMessage() {} + +func (x *MultiMemberGroupCreate_Request) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[114] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *GroupDeviceStatus_Reply) XXX_Merge(src proto.Message) { - xxx_messageInfo_GroupDeviceStatus_Reply.Merge(m, src) -} -func (m *GroupDeviceStatus_Reply) XXX_Size() int { - return m.Size() -} -func (m *GroupDeviceStatus_Reply) XXX_DiscardUnknown() { - xxx_messageInfo_GroupDeviceStatus_Reply.DiscardUnknown(m) + +// Deprecated: Use MultiMemberGroupCreate_Request.ProtoReflect.Descriptor instead. +func (*MultiMemberGroupCreate_Request) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{47, 0} } -var xxx_messageInfo_GroupDeviceStatus_Reply proto.InternalMessageInfo +type MultiMemberGroupCreate_Reply struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *GroupDeviceStatus_Reply) GetType() GroupDeviceStatus_Type { - if m != nil { - return m.Type - } - return TypeUnknown + // group_pk is the identifier of the newly created group + GroupPk []byte `protobuf:"bytes,1,opt,name=group_pk,json=groupPk,proto3" json:"group_pk,omitempty"` } -func (m *GroupDeviceStatus_Reply) GetEvent() []byte { - if m != nil { - return m.Event +func (x *MultiMemberGroupCreate_Reply) Reset() { + *x = MultiMemberGroupCreate_Reply{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[115] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type GroupDeviceStatus_Reply_PeerConnected struct { - PeerID string `protobuf:"bytes,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` - DevicePK []byte `protobuf:"bytes,2,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` - Transports []GroupDeviceStatus_Transport `protobuf:"varint,3,rep,packed,name=transports,proto3,enum=weshnet.protocol.v1.GroupDeviceStatus_Transport" json:"transports,omitempty"` - Maddrs []string `protobuf:"bytes,4,rep,name=maddrs,proto3" json:"maddrs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GroupDeviceStatus_Reply_PeerConnected) Reset() { *m = GroupDeviceStatus_Reply_PeerConnected{} } -func (m *GroupDeviceStatus_Reply_PeerConnected) String() string { return proto.CompactTextString(m) } -func (*GroupDeviceStatus_Reply_PeerConnected) ProtoMessage() {} -func (*GroupDeviceStatus_Reply_PeerConnected) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{62, 1, 0} +func (x *MultiMemberGroupCreate_Reply) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GroupDeviceStatus_Reply_PeerConnected) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *GroupDeviceStatus_Reply_PeerConnected) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GroupDeviceStatus_Reply_PeerConnected.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*MultiMemberGroupCreate_Reply) ProtoMessage() {} + +func (x *MultiMemberGroupCreate_Reply) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[115] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *GroupDeviceStatus_Reply_PeerConnected) XXX_Merge(src proto.Message) { - xxx_messageInfo_GroupDeviceStatus_Reply_PeerConnected.Merge(m, src) -} -func (m *GroupDeviceStatus_Reply_PeerConnected) XXX_Size() int { - return m.Size() -} -func (m *GroupDeviceStatus_Reply_PeerConnected) XXX_DiscardUnknown() { - xxx_messageInfo_GroupDeviceStatus_Reply_PeerConnected.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_GroupDeviceStatus_Reply_PeerConnected proto.InternalMessageInfo - -func (m *GroupDeviceStatus_Reply_PeerConnected) GetPeerID() string { - if m != nil { - return m.PeerID - } - return "" +// Deprecated: Use MultiMemberGroupCreate_Reply.ProtoReflect.Descriptor instead. +func (*MultiMemberGroupCreate_Reply) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{47, 1} } -func (m *GroupDeviceStatus_Reply_PeerConnected) GetDevicePK() []byte { - if m != nil { - return m.DevicePK +func (x *MultiMemberGroupCreate_Reply) GetGroupPk() []byte { + if x != nil { + return x.GroupPk } return nil } -func (m *GroupDeviceStatus_Reply_PeerConnected) GetTransports() []GroupDeviceStatus_Transport { - if m != nil { - return m.Transports - } - return nil +type MultiMemberGroupJoin_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // group is the information of the group to join + Group *Group `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` } -func (m *GroupDeviceStatus_Reply_PeerConnected) GetMaddrs() []string { - if m != nil { - return m.Maddrs +func (x *MultiMemberGroupJoin_Request) Reset() { + *x = MultiMemberGroupJoin_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[116] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type GroupDeviceStatus_Reply_PeerReconnecting struct { - PeerID string `protobuf:"bytes,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *MultiMemberGroupJoin_Request) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GroupDeviceStatus_Reply_PeerReconnecting) Reset() { - *m = GroupDeviceStatus_Reply_PeerReconnecting{} -} -func (m *GroupDeviceStatus_Reply_PeerReconnecting) String() string { return proto.CompactTextString(m) } -func (*GroupDeviceStatus_Reply_PeerReconnecting) ProtoMessage() {} -func (*GroupDeviceStatus_Reply_PeerReconnecting) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{62, 1, 1} +func (*MultiMemberGroupJoin_Request) ProtoMessage() {} + +func (x *MultiMemberGroupJoin_Request) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[116] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *GroupDeviceStatus_Reply_PeerReconnecting) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +// Deprecated: Use MultiMemberGroupJoin_Request.ProtoReflect.Descriptor instead. +func (*MultiMemberGroupJoin_Request) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{48, 0} } -func (m *GroupDeviceStatus_Reply_PeerReconnecting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GroupDeviceStatus_Reply_PeerReconnecting.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil + +func (x *MultiMemberGroupJoin_Request) GetGroup() *Group { + if x != nil { + return x.Group } + return nil } -func (m *GroupDeviceStatus_Reply_PeerReconnecting) XXX_Merge(src proto.Message) { - xxx_messageInfo_GroupDeviceStatus_Reply_PeerReconnecting.Merge(m, src) + +type MultiMemberGroupJoin_Reply struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *GroupDeviceStatus_Reply_PeerReconnecting) XXX_Size() int { - return m.Size() + +func (x *MultiMemberGroupJoin_Reply) Reset() { + *x = MultiMemberGroupJoin_Reply{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[117] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GroupDeviceStatus_Reply_PeerReconnecting) XXX_DiscardUnknown() { - xxx_messageInfo_GroupDeviceStatus_Reply_PeerReconnecting.DiscardUnknown(m) + +func (x *MultiMemberGroupJoin_Reply) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_GroupDeviceStatus_Reply_PeerReconnecting proto.InternalMessageInfo +func (*MultiMemberGroupJoin_Reply) ProtoMessage() {} -func (m *GroupDeviceStatus_Reply_PeerReconnecting) GetPeerID() string { - if m != nil { - return m.PeerID +func (x *MultiMemberGroupJoin_Reply) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[117] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -type GroupDeviceStatus_Reply_PeerDisconnected struct { - PeerID string `protobuf:"bytes,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Deprecated: Use MultiMemberGroupJoin_Reply.ProtoReflect.Descriptor instead. +func (*MultiMemberGroupJoin_Reply) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{48, 1} } -func (m *GroupDeviceStatus_Reply_PeerDisconnected) Reset() { - *m = GroupDeviceStatus_Reply_PeerDisconnected{} +type MultiMemberGroupLeave_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + GroupPk []byte `protobuf:"bytes,1,opt,name=group_pk,json=groupPk,proto3" json:"group_pk,omitempty"` } -func (m *GroupDeviceStatus_Reply_PeerDisconnected) String() string { return proto.CompactTextString(m) } -func (*GroupDeviceStatus_Reply_PeerDisconnected) ProtoMessage() {} -func (*GroupDeviceStatus_Reply_PeerDisconnected) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{62, 1, 2} + +func (x *MultiMemberGroupLeave_Request) Reset() { + *x = MultiMemberGroupLeave_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[118] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *GroupDeviceStatus_Reply_PeerDisconnected) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *MultiMemberGroupLeave_Request) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GroupDeviceStatus_Reply_PeerDisconnected) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_GroupDeviceStatus_Reply_PeerDisconnected.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*MultiMemberGroupLeave_Request) ProtoMessage() {} + +func (x *MultiMemberGroupLeave_Request) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[118] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *GroupDeviceStatus_Reply_PeerDisconnected) XXX_Merge(src proto.Message) { - xxx_messageInfo_GroupDeviceStatus_Reply_PeerDisconnected.Merge(m, src) -} -func (m *GroupDeviceStatus_Reply_PeerDisconnected) XXX_Size() int { - return m.Size() -} -func (m *GroupDeviceStatus_Reply_PeerDisconnected) XXX_DiscardUnknown() { - xxx_messageInfo_GroupDeviceStatus_Reply_PeerDisconnected.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_GroupDeviceStatus_Reply_PeerDisconnected proto.InternalMessageInfo +// Deprecated: Use MultiMemberGroupLeave_Request.ProtoReflect.Descriptor instead. +func (*MultiMemberGroupLeave_Request) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{49, 0} +} -func (m *GroupDeviceStatus_Reply_PeerDisconnected) GetPeerID() string { - if m != nil { - return m.PeerID +func (x *MultiMemberGroupLeave_Request) GetGroupPk() []byte { + if x != nil { + return x.GroupPk } - return "" + return nil } -type DebugListGroups struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type MultiMemberGroupLeave_Reply struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *DebugListGroups) Reset() { *m = DebugListGroups{} } -func (m *DebugListGroups) String() string { return proto.CompactTextString(m) } -func (*DebugListGroups) ProtoMessage() {} -func (*DebugListGroups) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{63} +func (x *MultiMemberGroupLeave_Reply) Reset() { + *x = MultiMemberGroupLeave_Reply{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[119] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DebugListGroups) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *MultiMemberGroupLeave_Reply) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DebugListGroups) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DebugListGroups.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*MultiMemberGroupLeave_Reply) ProtoMessage() {} + +func (x *MultiMemberGroupLeave_Reply) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[119] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *DebugListGroups) XXX_Merge(src proto.Message) { - xxx_messageInfo_DebugListGroups.Merge(m, src) -} -func (m *DebugListGroups) XXX_Size() int { - return m.Size() -} -func (m *DebugListGroups) XXX_DiscardUnknown() { - xxx_messageInfo_DebugListGroups.DiscardUnknown(m) + +// Deprecated: Use MultiMemberGroupLeave_Reply.ProtoReflect.Descriptor instead. +func (*MultiMemberGroupLeave_Reply) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{49, 1} } -var xxx_messageInfo_DebugListGroups proto.InternalMessageInfo +type MultiMemberGroupAliasResolverDisclose_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type DebugListGroups_Request struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // group_pk is the identifier of the group + GroupPk []byte `protobuf:"bytes,1,opt,name=group_pk,json=groupPk,proto3" json:"group_pk,omitempty"` } -func (m *DebugListGroups_Request) Reset() { *m = DebugListGroups_Request{} } -func (m *DebugListGroups_Request) String() string { return proto.CompactTextString(m) } -func (*DebugListGroups_Request) ProtoMessage() {} -func (*DebugListGroups_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{63, 0} +func (x *MultiMemberGroupAliasResolverDisclose_Request) Reset() { + *x = MultiMemberGroupAliasResolverDisclose_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[120] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DebugListGroups_Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *MultiMemberGroupAliasResolverDisclose_Request) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DebugListGroups_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DebugListGroups_Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*MultiMemberGroupAliasResolverDisclose_Request) ProtoMessage() {} + +func (x *MultiMemberGroupAliasResolverDisclose_Request) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[120] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *DebugListGroups_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_DebugListGroups_Request.Merge(m, src) -} -func (m *DebugListGroups_Request) XXX_Size() int { - return m.Size() -} -func (m *DebugListGroups_Request) XXX_DiscardUnknown() { - xxx_messageInfo_DebugListGroups_Request.DiscardUnknown(m) + +// Deprecated: Use MultiMemberGroupAliasResolverDisclose_Request.ProtoReflect.Descriptor instead. +func (*MultiMemberGroupAliasResolverDisclose_Request) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{50, 0} } -var xxx_messageInfo_DebugListGroups_Request proto.InternalMessageInfo +func (x *MultiMemberGroupAliasResolverDisclose_Request) GetGroupPk() []byte { + if x != nil { + return x.GroupPk + } + return nil +} -type DebugListGroups_Reply struct { - // group_pk is the public key of the group - GroupPK []byte `protobuf:"bytes,1,opt,name=group_pk,json=groupPk,proto3" json:"group_pk,omitempty"` - // group_type is the type of the group - GroupType GroupType `protobuf:"varint,2,opt,name=group_type,json=groupType,proto3,enum=weshnet.protocol.v1.GroupType" json:"group_type,omitempty"` - // contact_pk is the contact public key if appropriate - ContactPK []byte `protobuf:"bytes,3,opt,name=contact_pk,json=contactPk,proto3" json:"contact_pk,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type MultiMemberGroupAliasResolverDisclose_Reply struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *DebugListGroups_Reply) Reset() { *m = DebugListGroups_Reply{} } -func (m *DebugListGroups_Reply) String() string { return proto.CompactTextString(m) } -func (*DebugListGroups_Reply) ProtoMessage() {} -func (*DebugListGroups_Reply) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{63, 1} +func (x *MultiMemberGroupAliasResolverDisclose_Reply) Reset() { + *x = MultiMemberGroupAliasResolverDisclose_Reply{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[121] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DebugListGroups_Reply) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *MultiMemberGroupAliasResolverDisclose_Reply) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DebugListGroups_Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DebugListGroups_Reply.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*MultiMemberGroupAliasResolverDisclose_Reply) ProtoMessage() {} + +func (x *MultiMemberGroupAliasResolverDisclose_Reply) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[121] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) +} + +// Deprecated: Use MultiMemberGroupAliasResolverDisclose_Reply.ProtoReflect.Descriptor instead. +func (*MultiMemberGroupAliasResolverDisclose_Reply) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{50, 1} } -func (m *DebugListGroups_Reply) XXX_Merge(src proto.Message) { - xxx_messageInfo_DebugListGroups_Reply.Merge(m, src) + +type MultiMemberGroupAdminRoleGrant_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // group_pk is the identifier of the group + GroupPk []byte `protobuf:"bytes,1,opt,name=group_pk,json=groupPk,proto3" json:"group_pk,omitempty"` + // member_pk is the identifier of the member which will be granted the admin role + MemberPk []byte `protobuf:"bytes,2,opt,name=member_pk,json=memberPk,proto3" json:"member_pk,omitempty"` } -func (m *DebugListGroups_Reply) XXX_Size() int { - return m.Size() + +func (x *MultiMemberGroupAdminRoleGrant_Request) Reset() { + *x = MultiMemberGroupAdminRoleGrant_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[122] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DebugListGroups_Reply) XXX_DiscardUnknown() { - xxx_messageInfo_DebugListGroups_Reply.DiscardUnknown(m) + +func (x *MultiMemberGroupAdminRoleGrant_Request) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_DebugListGroups_Reply proto.InternalMessageInfo +func (*MultiMemberGroupAdminRoleGrant_Request) ProtoMessage() {} -func (m *DebugListGroups_Reply) GetGroupPK() []byte { - if m != nil { - return m.GroupPK +func (x *MultiMemberGroupAdminRoleGrant_Request) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[122] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) +} + +// Deprecated: Use MultiMemberGroupAdminRoleGrant_Request.ProtoReflect.Descriptor instead. +func (*MultiMemberGroupAdminRoleGrant_Request) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{51, 0} } -func (m *DebugListGroups_Reply) GetGroupType() GroupType { - if m != nil { - return m.GroupType +func (x *MultiMemberGroupAdminRoleGrant_Request) GetGroupPk() []byte { + if x != nil { + return x.GroupPk } - return GroupTypeUndefined + return nil } -func (m *DebugListGroups_Reply) GetContactPK() []byte { - if m != nil { - return m.ContactPK +func (x *MultiMemberGroupAdminRoleGrant_Request) GetMemberPk() []byte { + if x != nil { + return x.MemberPk } return nil } -type DebugInspectGroupStore struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type MultiMemberGroupAdminRoleGrant_Reply struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *DebugInspectGroupStore) Reset() { *m = DebugInspectGroupStore{} } -func (m *DebugInspectGroupStore) String() string { return proto.CompactTextString(m) } -func (*DebugInspectGroupStore) ProtoMessage() {} -func (*DebugInspectGroupStore) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{64} +func (x *MultiMemberGroupAdminRoleGrant_Reply) Reset() { + *x = MultiMemberGroupAdminRoleGrant_Reply{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[123] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DebugInspectGroupStore) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *MultiMemberGroupAdminRoleGrant_Reply) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DebugInspectGroupStore) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DebugInspectGroupStore.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*MultiMemberGroupAdminRoleGrant_Reply) ProtoMessage() {} + +func (x *MultiMemberGroupAdminRoleGrant_Reply) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[123] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *DebugInspectGroupStore) XXX_Merge(src proto.Message) { - xxx_messageInfo_DebugInspectGroupStore.Merge(m, src) -} -func (m *DebugInspectGroupStore) XXX_Size() int { - return m.Size() -} -func (m *DebugInspectGroupStore) XXX_DiscardUnknown() { - xxx_messageInfo_DebugInspectGroupStore.DiscardUnknown(m) + +// Deprecated: Use MultiMemberGroupAdminRoleGrant_Reply.ProtoReflect.Descriptor instead. +func (*MultiMemberGroupAdminRoleGrant_Reply) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{51, 1} } -var xxx_messageInfo_DebugInspectGroupStore proto.InternalMessageInfo +type MultiMemberGroupInvitationCreate_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type DebugInspectGroupStore_Request struct { // group_pk is the identifier of the group - GroupPK []byte `protobuf:"bytes,1,opt,name=group_pk,json=groupPk,proto3" json:"group_pk,omitempty"` - // log_type is the log to inspect - LogType DebugInspectGroupLogType `protobuf:"varint,2,opt,name=log_type,json=logType,proto3,enum=weshnet.protocol.v1.DebugInspectGroupLogType" json:"log_type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + GroupPk []byte `protobuf:"bytes,1,opt,name=group_pk,json=groupPk,proto3" json:"group_pk,omitempty"` } -func (m *DebugInspectGroupStore_Request) Reset() { *m = DebugInspectGroupStore_Request{} } -func (m *DebugInspectGroupStore_Request) String() string { return proto.CompactTextString(m) } -func (*DebugInspectGroupStore_Request) ProtoMessage() {} -func (*DebugInspectGroupStore_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{64, 0} +func (x *MultiMemberGroupInvitationCreate_Request) Reset() { + *x = MultiMemberGroupInvitationCreate_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[124] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DebugInspectGroupStore_Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *MultiMemberGroupInvitationCreate_Request) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DebugInspectGroupStore_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DebugInspectGroupStore_Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*MultiMemberGroupInvitationCreate_Request) ProtoMessage() {} + +func (x *MultiMemberGroupInvitationCreate_Request) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[124] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *DebugInspectGroupStore_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_DebugInspectGroupStore_Request.Merge(m, src) -} -func (m *DebugInspectGroupStore_Request) XXX_Size() int { - return m.Size() -} -func (m *DebugInspectGroupStore_Request) XXX_DiscardUnknown() { - xxx_messageInfo_DebugInspectGroupStore_Request.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_DebugInspectGroupStore_Request proto.InternalMessageInfo +// Deprecated: Use MultiMemberGroupInvitationCreate_Request.ProtoReflect.Descriptor instead. +func (*MultiMemberGroupInvitationCreate_Request) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{52, 0} +} -func (m *DebugInspectGroupStore_Request) GetGroupPK() []byte { - if m != nil { - return m.GroupPK +func (x *MultiMemberGroupInvitationCreate_Request) GetGroupPk() []byte { + if x != nil { + return x.GroupPk } return nil } -func (m *DebugInspectGroupStore_Request) GetLogType() DebugInspectGroupLogType { - if m != nil { - return m.LogType - } - return DebugInspectGroupLogTypeUndefined -} +type MultiMemberGroupInvitationCreate_Reply struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type DebugInspectGroupStore_Reply struct { - // cid is the CID of the IPFS log entry - CID []byte `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"` - // parent_cids is the list of the parent entries - ParentCIDs [][]byte `protobuf:"bytes,2,rep,name=parent_cids,json=parentCids,proto3" json:"parent_cids,omitempty"` - // event_type metadata event type if subscribed to metadata events - MetadataEventType EventType `protobuf:"varint,3,opt,name=metadata_event_type,json=metadataEventType,proto3,enum=weshnet.protocol.v1.EventType" json:"metadata_event_type,omitempty"` - // device_pk is the public key of the device signing the entry - DevicePK []byte `protobuf:"bytes,4,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` - // payload is the un encrypted entry payload if available - Payload []byte `protobuf:"bytes,6,opt,name=payload,proto3" json:"payload,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // group is the invitation to the group + Group *Group `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` } -func (m *DebugInspectGroupStore_Reply) Reset() { *m = DebugInspectGroupStore_Reply{} } -func (m *DebugInspectGroupStore_Reply) String() string { return proto.CompactTextString(m) } -func (*DebugInspectGroupStore_Reply) ProtoMessage() {} -func (*DebugInspectGroupStore_Reply) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{64, 1} +func (x *MultiMemberGroupInvitationCreate_Reply) Reset() { + *x = MultiMemberGroupInvitationCreate_Reply{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[125] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DebugInspectGroupStore_Reply) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *MultiMemberGroupInvitationCreate_Reply) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DebugInspectGroupStore_Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DebugInspectGroupStore_Reply.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*MultiMemberGroupInvitationCreate_Reply) ProtoMessage() {} + +func (x *MultiMemberGroupInvitationCreate_Reply) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[125] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *DebugInspectGroupStore_Reply) XXX_Merge(src proto.Message) { - xxx_messageInfo_DebugInspectGroupStore_Reply.Merge(m, src) -} -func (m *DebugInspectGroupStore_Reply) XXX_Size() int { - return m.Size() -} -func (m *DebugInspectGroupStore_Reply) XXX_DiscardUnknown() { - xxx_messageInfo_DebugInspectGroupStore_Reply.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_DebugInspectGroupStore_Reply proto.InternalMessageInfo +// Deprecated: Use MultiMemberGroupInvitationCreate_Reply.ProtoReflect.Descriptor instead. +func (*MultiMemberGroupInvitationCreate_Reply) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{52, 1} +} -func (m *DebugInspectGroupStore_Reply) GetCID() []byte { - if m != nil { - return m.CID +func (x *MultiMemberGroupInvitationCreate_Reply) GetGroup() *Group { + if x != nil { + return x.Group } return nil } -func (m *DebugInspectGroupStore_Reply) GetParentCIDs() [][]byte { - if m != nil { - return m.ParentCIDs +type AppMetadataSend_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // group_pk is the identifier of the group + GroupPk []byte `protobuf:"bytes,1,opt,name=group_pk,json=groupPk,proto3" json:"group_pk,omitempty"` + // payload is the payload to send + Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` +} + +func (x *AppMetadataSend_Request) Reset() { + *x = AppMetadataSend_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[126] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *DebugInspectGroupStore_Reply) GetMetadataEventType() EventType { - if m != nil { - return m.MetadataEventType +func (x *AppMetadataSend_Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AppMetadataSend_Request) ProtoMessage() {} + +func (x *AppMetadataSend_Request) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[126] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return EventTypeUndefined + return mi.MessageOf(x) } -func (m *DebugInspectGroupStore_Reply) GetDevicePK() []byte { - if m != nil { - return m.DevicePK +// Deprecated: Use AppMetadataSend_Request.ProtoReflect.Descriptor instead. +func (*AppMetadataSend_Request) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{53, 0} +} + +func (x *AppMetadataSend_Request) GetGroupPk() []byte { + if x != nil { + return x.GroupPk } return nil } -func (m *DebugInspectGroupStore_Reply) GetPayload() []byte { - if m != nil { - return m.Payload +func (x *AppMetadataSend_Request) GetPayload() []byte { + if x != nil { + return x.Payload } return nil } -type DebugGroup struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type AppMetadataSend_Reply struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Cid []byte `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"` } -func (m *DebugGroup) Reset() { *m = DebugGroup{} } -func (m *DebugGroup) String() string { return proto.CompactTextString(m) } -func (*DebugGroup) ProtoMessage() {} -func (*DebugGroup) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{65} +func (x *AppMetadataSend_Reply) Reset() { + *x = AppMetadataSend_Reply{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[127] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DebugGroup) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *AppMetadataSend_Reply) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DebugGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DebugGroup.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*AppMetadataSend_Reply) ProtoMessage() {} + +func (x *AppMetadataSend_Reply) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[127] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *DebugGroup) XXX_Merge(src proto.Message) { - xxx_messageInfo_DebugGroup.Merge(m, src) -} -func (m *DebugGroup) XXX_Size() int { - return m.Size() + +// Deprecated: Use AppMetadataSend_Reply.ProtoReflect.Descriptor instead. +func (*AppMetadataSend_Reply) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{53, 1} } -func (m *DebugGroup) XXX_DiscardUnknown() { - xxx_messageInfo_DebugGroup.DiscardUnknown(m) + +func (x *AppMetadataSend_Reply) GetCid() []byte { + if x != nil { + return x.Cid + } + return nil } -var xxx_messageInfo_DebugGroup proto.InternalMessageInfo +type AppMessageSend_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type DebugGroup_Request struct { // group_pk is the identifier of the group - GroupPK []byte `protobuf:"bytes,1,opt,name=group_pk,json=groupPk,proto3" json:"group_pk,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + GroupPk []byte `protobuf:"bytes,1,opt,name=group_pk,json=groupPk,proto3" json:"group_pk,omitempty"` + // payload is the payload to send + Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` } -func (m *DebugGroup_Request) Reset() { *m = DebugGroup_Request{} } -func (m *DebugGroup_Request) String() string { return proto.CompactTextString(m) } -func (*DebugGroup_Request) ProtoMessage() {} -func (*DebugGroup_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{65, 0} +func (x *AppMessageSend_Request) Reset() { + *x = AppMessageSend_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[128] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DebugGroup_Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *AppMessageSend_Request) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DebugGroup_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DebugGroup_Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*AppMessageSend_Request) ProtoMessage() {} + +func (x *AppMessageSend_Request) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[128] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *DebugGroup_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_DebugGroup_Request.Merge(m, src) -} -func (m *DebugGroup_Request) XXX_Size() int { - return m.Size() -} -func (m *DebugGroup_Request) XXX_DiscardUnknown() { - xxx_messageInfo_DebugGroup_Request.DiscardUnknown(m) + +// Deprecated: Use AppMessageSend_Request.ProtoReflect.Descriptor instead. +func (*AppMessageSend_Request) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{54, 0} } -var xxx_messageInfo_DebugGroup_Request proto.InternalMessageInfo +func (x *AppMessageSend_Request) GetGroupPk() []byte { + if x != nil { + return x.GroupPk + } + return nil +} -func (m *DebugGroup_Request) GetGroupPK() []byte { - if m != nil { - return m.GroupPK +func (x *AppMessageSend_Request) GetPayload() []byte { + if x != nil { + return x.Payload } return nil } -type DebugGroup_Reply struct { - // peer_ids is the list of peer ids connected to the same group - PeerIDs []string `protobuf:"bytes,1,rep,name=peer_ids,json=peerIds,proto3" json:"peer_ids,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type AppMessageSend_Reply struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Cid []byte `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"` } -func (m *DebugGroup_Reply) Reset() { *m = DebugGroup_Reply{} } -func (m *DebugGroup_Reply) String() string { return proto.CompactTextString(m) } -func (*DebugGroup_Reply) ProtoMessage() {} -func (*DebugGroup_Reply) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{65, 1} +func (x *AppMessageSend_Reply) Reset() { + *x = AppMessageSend_Reply{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[129] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *DebugGroup_Reply) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *AppMessageSend_Reply) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *DebugGroup_Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DebugGroup_Reply.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*AppMessageSend_Reply) ProtoMessage() {} + +func (x *AppMessageSend_Reply) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[129] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *DebugGroup_Reply) XXX_Merge(src proto.Message) { - xxx_messageInfo_DebugGroup_Reply.Merge(m, src) -} -func (m *DebugGroup_Reply) XXX_Size() int { - return m.Size() -} -func (m *DebugGroup_Reply) XXX_DiscardUnknown() { - xxx_messageInfo_DebugGroup_Reply.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_DebugGroup_Reply proto.InternalMessageInfo +// Deprecated: Use AppMessageSend_Reply.ProtoReflect.Descriptor instead. +func (*AppMessageSend_Reply) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{54, 1} +} -func (m *DebugGroup_Reply) GetPeerIDs() []string { - if m != nil { - return m.PeerIDs +func (x *AppMessageSend_Reply) GetCid() []byte { + if x != nil { + return x.Cid } return nil } -type ShareableContact struct { - // pk is the account to send a contact request to - PK []byte `protobuf:"bytes,1,opt,name=pk,proto3" json:"pk,omitempty"` - // public_rendezvous_seed is the rendezvous seed used by the account to send a contact request to - PublicRendezvousSeed []byte `protobuf:"bytes,2,opt,name=public_rendezvous_seed,json=publicRendezvousSeed,proto3" json:"public_rendezvous_seed,omitempty"` - // metadata is the metadata specific to the app to identify the contact for the request - Metadata []byte `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type GroupMetadataList_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // group_pk is the identifier of the group + GroupPk []byte `protobuf:"bytes,1,opt,name=group_pk,json=groupPk,proto3" json:"group_pk,omitempty"` + // since is the lower ID bound used to filter events + // if not set, will return events since the beginning + SinceId []byte `protobuf:"bytes,2,opt,name=since_id,json=sinceId,proto3" json:"since_id,omitempty"` + // since_now will list only new event to come + // since_id must not be set + SinceNow bool `protobuf:"varint,3,opt,name=since_now,json=sinceNow,proto3" json:"since_now,omitempty"` + // until is the upper ID bound used to filter events + // if not set, will subscribe to new events to come + UntilId []byte `protobuf:"bytes,4,opt,name=until_id,json=untilId,proto3" json:"until_id,omitempty"` + // until_now will not list new event to come + // until_id must not be set + UntilNow bool `protobuf:"varint,5,opt,name=until_now,json=untilNow,proto3" json:"until_now,omitempty"` + // reverse_order indicates whether the previous events should be returned in + // reverse chronological order + ReverseOrder bool `protobuf:"varint,6,opt,name=reverse_order,json=reverseOrder,proto3" json:"reverse_order,omitempty"` } -func (m *ShareableContact) Reset() { *m = ShareableContact{} } -func (m *ShareableContact) String() string { return proto.CompactTextString(m) } -func (*ShareableContact) ProtoMessage() {} -func (*ShareableContact) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{66} +func (x *GroupMetadataList_Request) Reset() { + *x = GroupMetadataList_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[130] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ShareableContact) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *GroupMetadataList_Request) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ShareableContact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ShareableContact.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*GroupMetadataList_Request) ProtoMessage() {} + +func (x *GroupMetadataList_Request) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[130] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ShareableContact) XXX_Merge(src proto.Message) { - xxx_messageInfo_ShareableContact.Merge(m, src) -} -func (m *ShareableContact) XXX_Size() int { - return m.Size() -} -func (m *ShareableContact) XXX_DiscardUnknown() { - xxx_messageInfo_ShareableContact.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ShareableContact proto.InternalMessageInfo +// Deprecated: Use GroupMetadataList_Request.ProtoReflect.Descriptor instead. +func (*GroupMetadataList_Request) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{57, 0} +} -func (m *ShareableContact) GetPK() []byte { - if m != nil { - return m.PK +func (x *GroupMetadataList_Request) GetGroupPk() []byte { + if x != nil { + return x.GroupPk } return nil } -func (m *ShareableContact) GetPublicRendezvousSeed() []byte { - if m != nil { - return m.PublicRendezvousSeed +func (x *GroupMetadataList_Request) GetSinceId() []byte { + if x != nil { + return x.SinceId } return nil } -func (m *ShareableContact) GetMetadata() []byte { - if m != nil { - return m.Metadata +func (x *GroupMetadataList_Request) GetSinceNow() bool { + if x != nil { + return x.SinceNow } - return nil + return false } -type ServiceTokenSupportedService struct { - ServiceType string `protobuf:"bytes,1,opt,name=service_type,json=serviceType,proto3" json:"service_type,omitempty"` - ServiceEndpoint string `protobuf:"bytes,2,opt,name=service_endpoint,json=serviceEndpoint,proto3" json:"service_endpoint,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *GroupMetadataList_Request) GetUntilId() []byte { + if x != nil { + return x.UntilId + } + return nil } -func (m *ServiceTokenSupportedService) Reset() { *m = ServiceTokenSupportedService{} } -func (m *ServiceTokenSupportedService) String() string { return proto.CompactTextString(m) } -func (*ServiceTokenSupportedService) ProtoMessage() {} -func (*ServiceTokenSupportedService) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{67} -} -func (m *ServiceTokenSupportedService) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ServiceTokenSupportedService) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ServiceTokenSupportedService.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *GroupMetadataList_Request) GetUntilNow() bool { + if x != nil { + return x.UntilNow } + return false } -func (m *ServiceTokenSupportedService) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServiceTokenSupportedService.Merge(m, src) -} -func (m *ServiceTokenSupportedService) XXX_Size() int { - return m.Size() -} -func (m *ServiceTokenSupportedService) XXX_DiscardUnknown() { - xxx_messageInfo_ServiceTokenSupportedService.DiscardUnknown(m) + +func (x *GroupMetadataList_Request) GetReverseOrder() bool { + if x != nil { + return x.ReverseOrder + } + return false } -var xxx_messageInfo_ServiceTokenSupportedService proto.InternalMessageInfo +type GroupMessageList_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ServiceTokenSupportedService) GetServiceType() string { - if m != nil { - return m.ServiceType - } - return "" + // group_pk is the identifier of the group + GroupPk []byte `protobuf:"bytes,1,opt,name=group_pk,json=groupPk,proto3" json:"group_pk,omitempty"` + // since is the lower ID bound used to filter events + // if not set, will return events since the beginning + SinceId []byte `protobuf:"bytes,2,opt,name=since_id,json=sinceId,proto3" json:"since_id,omitempty"` + // since_now will list only new event to come + // since_id must not be set + SinceNow bool `protobuf:"varint,3,opt,name=since_now,json=sinceNow,proto3" json:"since_now,omitempty"` + // until is the upper ID bound used to filter events + // if not set, will subscribe to new events to come + UntilId []byte `protobuf:"bytes,4,opt,name=until_id,json=untilId,proto3" json:"until_id,omitempty"` + // until_now will not list new event to come + // until_id must not be set + UntilNow bool `protobuf:"varint,5,opt,name=until_now,json=untilNow,proto3" json:"until_now,omitempty"` + // reverse_order indicates whether the previous events should be returned in + // reverse chronological order + ReverseOrder bool `protobuf:"varint,6,opt,name=reverse_order,json=reverseOrder,proto3" json:"reverse_order,omitempty"` } -func (m *ServiceTokenSupportedService) GetServiceEndpoint() string { - if m != nil { - return m.ServiceEndpoint +func (x *GroupMessageList_Request) Reset() { + *x = GroupMessageList_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[131] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" } -type ServiceToken struct { - Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` - AuthenticationURL string `protobuf:"bytes,2,opt,name=authentication_url,json=authenticationUrl,proto3" json:"authentication_url,omitempty"` - SupportedServices []*ServiceTokenSupportedService `protobuf:"bytes,3,rep,name=supported_services,json=supportedServices,proto3" json:"supported_services,omitempty"` - Expiration int64 `protobuf:"varint,4,opt,name=expiration,proto3" json:"expiration,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ServiceToken) Reset() { *m = ServiceToken{} } -func (m *ServiceToken) String() string { return proto.CompactTextString(m) } -func (*ServiceToken) ProtoMessage() {} -func (*ServiceToken) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{68} -} -func (m *ServiceToken) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) +func (x *GroupMessageList_Request) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ServiceToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ServiceToken.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*GroupMessageList_Request) ProtoMessage() {} + +func (x *GroupMessageList_Request) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[131] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *ServiceToken) XXX_Merge(src proto.Message) { - xxx_messageInfo_ServiceToken.Merge(m, src) -} -func (m *ServiceToken) XXX_Size() int { - return m.Size() -} -func (m *ServiceToken) XXX_DiscardUnknown() { - xxx_messageInfo_ServiceToken.DiscardUnknown(m) -} - -var xxx_messageInfo_ServiceToken proto.InternalMessageInfo -func (m *ServiceToken) GetToken() string { - if m != nil { - return m.Token - } - return "" +// Deprecated: Use GroupMessageList_Request.ProtoReflect.Descriptor instead. +func (*GroupMessageList_Request) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{58, 0} } -func (m *ServiceToken) GetAuthenticationURL() string { - if m != nil { - return m.AuthenticationURL +func (x *GroupMessageList_Request) GetGroupPk() []byte { + if x != nil { + return x.GroupPk } - return "" + return nil } -func (m *ServiceToken) GetSupportedServices() []*ServiceTokenSupportedService { - if m != nil { - return m.SupportedServices +func (x *GroupMessageList_Request) GetSinceId() []byte { + if x != nil { + return x.SinceId } return nil } -func (m *ServiceToken) GetExpiration() int64 { - if m != nil { - return m.Expiration +func (x *GroupMessageList_Request) GetSinceNow() bool { + if x != nil { + return x.SinceNow } - return 0 + return false } -type CredentialVerificationServiceInitFlow struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *GroupMessageList_Request) GetUntilId() []byte { + if x != nil { + return x.UntilId + } + return nil } -func (m *CredentialVerificationServiceInitFlow) Reset() { *m = CredentialVerificationServiceInitFlow{} } -func (m *CredentialVerificationServiceInitFlow) String() string { return proto.CompactTextString(m) } -func (*CredentialVerificationServiceInitFlow) ProtoMessage() {} -func (*CredentialVerificationServiceInitFlow) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{69} -} -func (m *CredentialVerificationServiceInitFlow) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CredentialVerificationServiceInitFlow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CredentialVerificationServiceInitFlow.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *GroupMessageList_Request) GetUntilNow() bool { + if x != nil { + return x.UntilNow } + return false } -func (m *CredentialVerificationServiceInitFlow) XXX_Merge(src proto.Message) { - xxx_messageInfo_CredentialVerificationServiceInitFlow.Merge(m, src) -} -func (m *CredentialVerificationServiceInitFlow) XXX_Size() int { - return m.Size() -} -func (m *CredentialVerificationServiceInitFlow) XXX_DiscardUnknown() { - xxx_messageInfo_CredentialVerificationServiceInitFlow.DiscardUnknown(m) + +func (x *GroupMessageList_Request) GetReverseOrder() bool { + if x != nil { + return x.ReverseOrder + } + return false } -var xxx_messageInfo_CredentialVerificationServiceInitFlow proto.InternalMessageInfo +type GroupInfo_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type CredentialVerificationServiceInitFlow_Request struct { - ServiceURL string `protobuf:"bytes,1,opt,name=service_url,json=serviceUrl,proto3" json:"service_url,omitempty"` - PublicKey []byte `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` - Link string `protobuf:"bytes,3,opt,name=link,proto3" json:"link,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // group_pk is the identifier of the group + GroupPk []byte `protobuf:"bytes,1,opt,name=group_pk,json=groupPk,proto3" json:"group_pk,omitempty"` + // contact_pk is the identifier of the contact + ContactPk []byte `protobuf:"bytes,2,opt,name=contact_pk,json=contactPk,proto3" json:"contact_pk,omitempty"` } -func (m *CredentialVerificationServiceInitFlow_Request) Reset() { - *m = CredentialVerificationServiceInitFlow_Request{} -} -func (m *CredentialVerificationServiceInitFlow_Request) String() string { - return proto.CompactTextString(m) -} -func (*CredentialVerificationServiceInitFlow_Request) ProtoMessage() {} -func (*CredentialVerificationServiceInitFlow_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{69, 0} -} -func (m *CredentialVerificationServiceInitFlow_Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CredentialVerificationServiceInitFlow_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CredentialVerificationServiceInitFlow_Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *GroupInfo_Request) Reset() { + *x = GroupInfo_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[132] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *CredentialVerificationServiceInitFlow_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_CredentialVerificationServiceInitFlow_Request.Merge(m, src) -} -func (m *CredentialVerificationServiceInitFlow_Request) XXX_Size() int { - return m.Size() -} -func (m *CredentialVerificationServiceInitFlow_Request) XXX_DiscardUnknown() { - xxx_messageInfo_CredentialVerificationServiceInitFlow_Request.DiscardUnknown(m) + +func (x *GroupInfo_Request) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_CredentialVerificationServiceInitFlow_Request proto.InternalMessageInfo +func (*GroupInfo_Request) ProtoMessage() {} -func (m *CredentialVerificationServiceInitFlow_Request) GetServiceURL() string { - if m != nil { - return m.ServiceURL +func (x *GroupInfo_Request) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[132] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) +} + +// Deprecated: Use GroupInfo_Request.ProtoReflect.Descriptor instead. +func (*GroupInfo_Request) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{59, 0} } -func (m *CredentialVerificationServiceInitFlow_Request) GetPublicKey() []byte { - if m != nil { - return m.PublicKey +func (x *GroupInfo_Request) GetGroupPk() []byte { + if x != nil { + return x.GroupPk } return nil } -func (m *CredentialVerificationServiceInitFlow_Request) GetLink() string { - if m != nil { - return m.Link +func (x *GroupInfo_Request) GetContactPk() []byte { + if x != nil { + return x.ContactPk } - return "" + return nil } -type CredentialVerificationServiceInitFlow_Reply struct { - URL string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` - SecureURL bool `protobuf:"varint,2,opt,name=secure_url,json=secureUrl,proto3" json:"secure_url,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +type GroupInfo_Reply struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CredentialVerificationServiceInitFlow_Reply) Reset() { - *m = CredentialVerificationServiceInitFlow_Reply{} -} -func (m *CredentialVerificationServiceInitFlow_Reply) String() string { - return proto.CompactTextString(m) -} -func (*CredentialVerificationServiceInitFlow_Reply) ProtoMessage() {} -func (*CredentialVerificationServiceInitFlow_Reply) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{69, 1} -} -func (m *CredentialVerificationServiceInitFlow_Reply) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + // group is the group invitation, containing the group pk and its type + Group *Group `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` + // member_pk is the identifier of the current member in the group + MemberPk []byte `protobuf:"bytes,2,opt,name=member_pk,json=memberPk,proto3" json:"member_pk,omitempty"` + // device_pk is the identifier of the current device in the group + DevicePk []byte `protobuf:"bytes,3,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` } -func (m *CredentialVerificationServiceInitFlow_Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CredentialVerificationServiceInitFlow_Reply.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil + +func (x *GroupInfo_Reply) Reset() { + *x = GroupInfo_Reply{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[133] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *CredentialVerificationServiceInitFlow_Reply) XXX_Merge(src proto.Message) { - xxx_messageInfo_CredentialVerificationServiceInitFlow_Reply.Merge(m, src) -} -func (m *CredentialVerificationServiceInitFlow_Reply) XXX_Size() int { - return m.Size() -} -func (m *CredentialVerificationServiceInitFlow_Reply) XXX_DiscardUnknown() { - xxx_messageInfo_CredentialVerificationServiceInitFlow_Reply.DiscardUnknown(m) + +func (x *GroupInfo_Reply) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_CredentialVerificationServiceInitFlow_Reply proto.InternalMessageInfo +func (*GroupInfo_Reply) ProtoMessage() {} -func (m *CredentialVerificationServiceInitFlow_Reply) GetURL() string { - if m != nil { - return m.URL +func (x *GroupInfo_Reply) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[133] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -func (m *CredentialVerificationServiceInitFlow_Reply) GetSecureURL() bool { - if m != nil { - return m.SecureURL - } - return false +// Deprecated: Use GroupInfo_Reply.ProtoReflect.Descriptor instead. +func (*GroupInfo_Reply) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{59, 1} } -type CredentialVerificationServiceCompleteFlow struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *GroupInfo_Reply) GetGroup() *Group { + if x != nil { + return x.Group + } + return nil } -func (m *CredentialVerificationServiceCompleteFlow) Reset() { - *m = CredentialVerificationServiceCompleteFlow{} -} -func (m *CredentialVerificationServiceCompleteFlow) String() string { - return proto.CompactTextString(m) -} -func (*CredentialVerificationServiceCompleteFlow) ProtoMessage() {} -func (*CredentialVerificationServiceCompleteFlow) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{70} -} -func (m *CredentialVerificationServiceCompleteFlow) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CredentialVerificationServiceCompleteFlow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CredentialVerificationServiceCompleteFlow.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *GroupInfo_Reply) GetMemberPk() []byte { + if x != nil { + return x.MemberPk } + return nil } -func (m *CredentialVerificationServiceCompleteFlow) XXX_Merge(src proto.Message) { - xxx_messageInfo_CredentialVerificationServiceCompleteFlow.Merge(m, src) -} -func (m *CredentialVerificationServiceCompleteFlow) XXX_Size() int { - return m.Size() -} -func (m *CredentialVerificationServiceCompleteFlow) XXX_DiscardUnknown() { - xxx_messageInfo_CredentialVerificationServiceCompleteFlow.DiscardUnknown(m) + +func (x *GroupInfo_Reply) GetDevicePk() []byte { + if x != nil { + return x.DevicePk + } + return nil } -var xxx_messageInfo_CredentialVerificationServiceCompleteFlow proto.InternalMessageInfo +type ActivateGroup_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type CredentialVerificationServiceCompleteFlow_Request struct { - CallbackURI string `protobuf:"bytes,1,opt,name=callback_uri,json=callbackUri,proto3" json:"callback_uri,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // group_pk is the identifier of the group + GroupPk []byte `protobuf:"bytes,1,opt,name=group_pk,json=groupPk,proto3" json:"group_pk,omitempty"` + // local_only will open the group without enabling network interactions + // with other members + LocalOnly bool `protobuf:"varint,2,opt,name=local_only,json=localOnly,proto3" json:"local_only,omitempty"` } -func (m *CredentialVerificationServiceCompleteFlow_Request) Reset() { - *m = CredentialVerificationServiceCompleteFlow_Request{} -} -func (m *CredentialVerificationServiceCompleteFlow_Request) String() string { - return proto.CompactTextString(m) -} -func (*CredentialVerificationServiceCompleteFlow_Request) ProtoMessage() {} -func (*CredentialVerificationServiceCompleteFlow_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{70, 0} +func (x *ActivateGroup_Request) Reset() { + *x = ActivateGroup_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[134] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CredentialVerificationServiceCompleteFlow_Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ActivateGroup_Request) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CredentialVerificationServiceCompleteFlow_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CredentialVerificationServiceCompleteFlow_Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ActivateGroup_Request) ProtoMessage() {} + +func (x *ActivateGroup_Request) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[134] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *CredentialVerificationServiceCompleteFlow_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_CredentialVerificationServiceCompleteFlow_Request.Merge(m, src) -} -func (m *CredentialVerificationServiceCompleteFlow_Request) XXX_Size() int { - return m.Size() -} -func (m *CredentialVerificationServiceCompleteFlow_Request) XXX_DiscardUnknown() { - xxx_messageInfo_CredentialVerificationServiceCompleteFlow_Request.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_CredentialVerificationServiceCompleteFlow_Request proto.InternalMessageInfo +// Deprecated: Use ActivateGroup_Request.ProtoReflect.Descriptor instead. +func (*ActivateGroup_Request) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{60, 0} +} -func (m *CredentialVerificationServiceCompleteFlow_Request) GetCallbackURI() string { - if m != nil { - return m.CallbackURI +func (x *ActivateGroup_Request) GetGroupPk() []byte { + if x != nil { + return x.GroupPk } - return "" + return nil } -type CredentialVerificationServiceCompleteFlow_Reply struct { - Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *ActivateGroup_Request) GetLocalOnly() bool { + if x != nil { + return x.LocalOnly + } + return false } -func (m *CredentialVerificationServiceCompleteFlow_Reply) Reset() { - *m = CredentialVerificationServiceCompleteFlow_Reply{} -} -func (m *CredentialVerificationServiceCompleteFlow_Reply) String() string { - return proto.CompactTextString(m) +type ActivateGroup_Reply struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (*CredentialVerificationServiceCompleteFlow_Reply) ProtoMessage() {} -func (*CredentialVerificationServiceCompleteFlow_Reply) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{70, 1} + +func (x *ActivateGroup_Reply) Reset() { + *x = ActivateGroup_Reply{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[135] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *CredentialVerificationServiceCompleteFlow_Reply) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ActivateGroup_Reply) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *CredentialVerificationServiceCompleteFlow_Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CredentialVerificationServiceCompleteFlow_Reply.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ActivateGroup_Reply) ProtoMessage() {} + +func (x *ActivateGroup_Reply) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[135] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *CredentialVerificationServiceCompleteFlow_Reply) XXX_Merge(src proto.Message) { - xxx_messageInfo_CredentialVerificationServiceCompleteFlow_Reply.Merge(m, src) -} -func (m *CredentialVerificationServiceCompleteFlow_Reply) XXX_Size() int { - return m.Size() -} -func (m *CredentialVerificationServiceCompleteFlow_Reply) XXX_DiscardUnknown() { - xxx_messageInfo_CredentialVerificationServiceCompleteFlow_Reply.DiscardUnknown(m) + +// Deprecated: Use ActivateGroup_Reply.ProtoReflect.Descriptor instead. +func (*ActivateGroup_Reply) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{60, 1} } -var xxx_messageInfo_CredentialVerificationServiceCompleteFlow_Reply proto.InternalMessageInfo +type DeactivateGroup_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *CredentialVerificationServiceCompleteFlow_Reply) GetIdentifier() string { - if m != nil { - return m.Identifier - } - return "" + // group_pk is the identifier of the group + GroupPk []byte `protobuf:"bytes,1,opt,name=group_pk,json=groupPk,proto3" json:"group_pk,omitempty"` } -type VerifiedCredentialsList struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *DeactivateGroup_Request) Reset() { + *x = DeactivateGroup_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[136] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *VerifiedCredentialsList) Reset() { *m = VerifiedCredentialsList{} } -func (m *VerifiedCredentialsList) String() string { return proto.CompactTextString(m) } -func (*VerifiedCredentialsList) ProtoMessage() {} -func (*VerifiedCredentialsList) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{71} +func (x *DeactivateGroup_Request) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *VerifiedCredentialsList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VerifiedCredentialsList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_VerifiedCredentialsList.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*DeactivateGroup_Request) ProtoMessage() {} + +func (x *DeactivateGroup_Request) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[136] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *VerifiedCredentialsList) XXX_Merge(src proto.Message) { - xxx_messageInfo_VerifiedCredentialsList.Merge(m, src) -} -func (m *VerifiedCredentialsList) XXX_Size() int { - return m.Size() -} -func (m *VerifiedCredentialsList) XXX_DiscardUnknown() { - xxx_messageInfo_VerifiedCredentialsList.DiscardUnknown(m) + +// Deprecated: Use DeactivateGroup_Request.ProtoReflect.Descriptor instead. +func (*DeactivateGroup_Request) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{61, 0} } -var xxx_messageInfo_VerifiedCredentialsList proto.InternalMessageInfo +func (x *DeactivateGroup_Request) GetGroupPk() []byte { + if x != nil { + return x.GroupPk + } + return nil +} -type VerifiedCredentialsList_Request struct { - FilterIdentifier string `protobuf:"bytes,1,opt,name=filter_identifier,json=filterIdentifier,proto3" json:"filter_identifier,omitempty"` - FilterIssuer string `protobuf:"bytes,2,opt,name=filter_issuer,json=filterIssuer,proto3" json:"filter_issuer,omitempty"` - ExcludeExpired bool `protobuf:"varint,3,opt,name=exclude_expired,json=excludeExpired,proto3" json:"exclude_expired,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type DeactivateGroup_Reply struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *VerifiedCredentialsList_Request) Reset() { *m = VerifiedCredentialsList_Request{} } -func (m *VerifiedCredentialsList_Request) String() string { return proto.CompactTextString(m) } -func (*VerifiedCredentialsList_Request) ProtoMessage() {} -func (*VerifiedCredentialsList_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{71, 0} +func (x *DeactivateGroup_Reply) Reset() { + *x = DeactivateGroup_Reply{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[137] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *VerifiedCredentialsList_Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *DeactivateGroup_Reply) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *VerifiedCredentialsList_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_VerifiedCredentialsList_Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*DeactivateGroup_Reply) ProtoMessage() {} + +func (x *DeactivateGroup_Reply) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[137] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *VerifiedCredentialsList_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_VerifiedCredentialsList_Request.Merge(m, src) -} -func (m *VerifiedCredentialsList_Request) XXX_Size() int { - return m.Size() -} -func (m *VerifiedCredentialsList_Request) XXX_DiscardUnknown() { - xxx_messageInfo_VerifiedCredentialsList_Request.DiscardUnknown(m) + +// Deprecated: Use DeactivateGroup_Reply.ProtoReflect.Descriptor instead. +func (*DeactivateGroup_Reply) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{61, 1} } -var xxx_messageInfo_VerifiedCredentialsList_Request proto.InternalMessageInfo +type GroupDeviceStatus_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *VerifiedCredentialsList_Request) GetFilterIdentifier() string { - if m != nil { - return m.FilterIdentifier - } - return "" + GroupPk []byte `protobuf:"bytes,1,opt,name=group_pk,json=groupPk,proto3" json:"group_pk,omitempty"` } -func (m *VerifiedCredentialsList_Request) GetFilterIssuer() string { - if m != nil { - return m.FilterIssuer +func (x *GroupDeviceStatus_Request) Reset() { + *x = GroupDeviceStatus_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[138] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" } -func (m *VerifiedCredentialsList_Request) GetExcludeExpired() bool { - if m != nil { - return m.ExcludeExpired - } - return false +func (x *GroupDeviceStatus_Request) String() string { + return protoimpl.X.MessageStringOf(x) } -type VerifiedCredentialsList_Reply struct { - Credential *AccountVerifiedCredentialRegistered `protobuf:"bytes,1,opt,name=credential,proto3" json:"credential,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +func (*GroupDeviceStatus_Request) ProtoMessage() {} -func (m *VerifiedCredentialsList_Reply) Reset() { *m = VerifiedCredentialsList_Reply{} } -func (m *VerifiedCredentialsList_Reply) String() string { return proto.CompactTextString(m) } -func (*VerifiedCredentialsList_Reply) ProtoMessage() {} -func (*VerifiedCredentialsList_Reply) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{71, 1} -} -func (m *VerifiedCredentialsList_Reply) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VerifiedCredentialsList_Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_VerifiedCredentialsList_Reply.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *GroupDeviceStatus_Request) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[138] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *VerifiedCredentialsList_Reply) XXX_Merge(src proto.Message) { - xxx_messageInfo_VerifiedCredentialsList_Reply.Merge(m, src) -} -func (m *VerifiedCredentialsList_Reply) XXX_Size() int { - return m.Size() -} -func (m *VerifiedCredentialsList_Reply) XXX_DiscardUnknown() { - xxx_messageInfo_VerifiedCredentialsList_Reply.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_VerifiedCredentialsList_Reply proto.InternalMessageInfo +// Deprecated: Use GroupDeviceStatus_Request.ProtoReflect.Descriptor instead. +func (*GroupDeviceStatus_Request) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{62, 0} +} -func (m *VerifiedCredentialsList_Reply) GetCredential() *AccountVerifiedCredentialRegistered { - if m != nil { - return m.Credential +func (x *GroupDeviceStatus_Request) GetGroupPk() []byte { + if x != nil { + return x.GroupPk } return nil } -type ReplicationServiceRegisterGroup struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type GroupDeviceStatus_Reply struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type GroupDeviceStatus_Type `protobuf:"varint,1,opt,name=type,proto3,enum=weshnet.protocol.v1.GroupDeviceStatus_Type" json:"type,omitempty"` + Event []byte `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` } -func (m *ReplicationServiceRegisterGroup) Reset() { *m = ReplicationServiceRegisterGroup{} } -func (m *ReplicationServiceRegisterGroup) String() string { return proto.CompactTextString(m) } -func (*ReplicationServiceRegisterGroup) ProtoMessage() {} -func (*ReplicationServiceRegisterGroup) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{72} +func (x *GroupDeviceStatus_Reply) Reset() { + *x = GroupDeviceStatus_Reply{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[139] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ReplicationServiceRegisterGroup) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *GroupDeviceStatus_Reply) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ReplicationServiceRegisterGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReplicationServiceRegisterGroup.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*GroupDeviceStatus_Reply) ProtoMessage() {} + +func (x *GroupDeviceStatus_Reply) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[139] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *ReplicationServiceRegisterGroup) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicationServiceRegisterGroup.Merge(m, src) + +// Deprecated: Use GroupDeviceStatus_Reply.ProtoReflect.Descriptor instead. +func (*GroupDeviceStatus_Reply) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{62, 1} } -func (m *ReplicationServiceRegisterGroup) XXX_Size() int { - return m.Size() + +func (x *GroupDeviceStatus_Reply) GetType() GroupDeviceStatus_Type { + if x != nil { + return x.Type + } + return GroupDeviceStatus_TypeUnknown } -func (m *ReplicationServiceRegisterGroup) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicationServiceRegisterGroup.DiscardUnknown(m) + +func (x *GroupDeviceStatus_Reply) GetEvent() []byte { + if x != nil { + return x.Event + } + return nil } -var xxx_messageInfo_ReplicationServiceRegisterGroup proto.InternalMessageInfo +type GroupDeviceStatus_Reply_PeerConnected struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type ReplicationServiceRegisterGroup_Request struct { - GroupPK []byte `protobuf:"bytes,1,opt,name=group_pk,json=groupPk,proto3" json:"group_pk,omitempty"` - Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` - AuthenticationURL string `protobuf:"bytes,3,opt,name=authentication_url,json=authenticationUrl,proto3" json:"authentication_url,omitempty"` - ReplicationServer string `protobuf:"bytes,4,opt,name=replication_server,json=replicationServer,proto3" json:"replication_server,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + PeerId string `protobuf:"bytes,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` + DevicePk []byte `protobuf:"bytes,2,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` + Transports []GroupDeviceStatus_Transport `protobuf:"varint,3,rep,packed,name=transports,proto3,enum=weshnet.protocol.v1.GroupDeviceStatus_Transport" json:"transports,omitempty"` + Maddrs []string `protobuf:"bytes,4,rep,name=maddrs,proto3" json:"maddrs,omitempty"` } -func (m *ReplicationServiceRegisterGroup_Request) Reset() { - *m = ReplicationServiceRegisterGroup_Request{} -} -func (m *ReplicationServiceRegisterGroup_Request) String() string { return proto.CompactTextString(m) } -func (*ReplicationServiceRegisterGroup_Request) ProtoMessage() {} -func (*ReplicationServiceRegisterGroup_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{72, 0} +func (x *GroupDeviceStatus_Reply_PeerConnected) Reset() { + *x = GroupDeviceStatus_Reply_PeerConnected{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[140] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ReplicationServiceRegisterGroup_Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *GroupDeviceStatus_Reply_PeerConnected) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ReplicationServiceRegisterGroup_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReplicationServiceRegisterGroup_Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*GroupDeviceStatus_Reply_PeerConnected) ProtoMessage() {} + +func (x *GroupDeviceStatus_Reply_PeerConnected) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[140] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ReplicationServiceRegisterGroup_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicationServiceRegisterGroup_Request.Merge(m, src) -} -func (m *ReplicationServiceRegisterGroup_Request) XXX_Size() int { - return m.Size() -} -func (m *ReplicationServiceRegisterGroup_Request) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicationServiceRegisterGroup_Request.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ReplicationServiceRegisterGroup_Request proto.InternalMessageInfo +// Deprecated: Use GroupDeviceStatus_Reply_PeerConnected.ProtoReflect.Descriptor instead. +func (*GroupDeviceStatus_Reply_PeerConnected) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{62, 1, 0} +} -func (m *ReplicationServiceRegisterGroup_Request) GetGroupPK() []byte { - if m != nil { - return m.GroupPK +func (x *GroupDeviceStatus_Reply_PeerConnected) GetPeerId() string { + if x != nil { + return x.PeerId } - return nil + return "" } -func (m *ReplicationServiceRegisterGroup_Request) GetToken() string { - if m != nil { - return m.Token +func (x *GroupDeviceStatus_Reply_PeerConnected) GetDevicePk() []byte { + if x != nil { + return x.DevicePk } - return "" + return nil } -func (m *ReplicationServiceRegisterGroup_Request) GetAuthenticationURL() string { - if m != nil { - return m.AuthenticationURL +func (x *GroupDeviceStatus_Reply_PeerConnected) GetTransports() []GroupDeviceStatus_Transport { + if x != nil { + return x.Transports } - return "" + return nil } -func (m *ReplicationServiceRegisterGroup_Request) GetReplicationServer() string { - if m != nil { - return m.ReplicationServer +func (x *GroupDeviceStatus_Reply_PeerConnected) GetMaddrs() []string { + if x != nil { + return x.Maddrs } - return "" + return nil } -type ReplicationServiceRegisterGroup_Reply struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type GroupDeviceStatus_Reply_PeerReconnecting struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + PeerId string `protobuf:"bytes,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` } -func (m *ReplicationServiceRegisterGroup_Reply) Reset() { *m = ReplicationServiceRegisterGroup_Reply{} } -func (m *ReplicationServiceRegisterGroup_Reply) String() string { return proto.CompactTextString(m) } -func (*ReplicationServiceRegisterGroup_Reply) ProtoMessage() {} -func (*ReplicationServiceRegisterGroup_Reply) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{72, 1} +func (x *GroupDeviceStatus_Reply_PeerReconnecting) Reset() { + *x = GroupDeviceStatus_Reply_PeerReconnecting{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[141] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ReplicationServiceRegisterGroup_Reply) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *GroupDeviceStatus_Reply_PeerReconnecting) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ReplicationServiceRegisterGroup_Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReplicationServiceRegisterGroup_Reply.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*GroupDeviceStatus_Reply_PeerReconnecting) ProtoMessage() {} + +func (x *GroupDeviceStatus_Reply_PeerReconnecting) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[141] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *ReplicationServiceRegisterGroup_Reply) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicationServiceRegisterGroup_Reply.Merge(m, src) -} -func (m *ReplicationServiceRegisterGroup_Reply) XXX_Size() int { - return m.Size() + +// Deprecated: Use GroupDeviceStatus_Reply_PeerReconnecting.ProtoReflect.Descriptor instead. +func (*GroupDeviceStatus_Reply_PeerReconnecting) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{62, 1, 1} } -func (m *ReplicationServiceRegisterGroup_Reply) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicationServiceRegisterGroup_Reply.DiscardUnknown(m) + +func (x *GroupDeviceStatus_Reply_PeerReconnecting) GetPeerId() string { + if x != nil { + return x.PeerId + } + return "" } -var xxx_messageInfo_ReplicationServiceRegisterGroup_Reply proto.InternalMessageInfo +type GroupDeviceStatus_Reply_PeerDisconnected struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type ReplicationServiceReplicateGroup struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + PeerId string `protobuf:"bytes,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` } -func (m *ReplicationServiceReplicateGroup) Reset() { *m = ReplicationServiceReplicateGroup{} } -func (m *ReplicationServiceReplicateGroup) String() string { return proto.CompactTextString(m) } -func (*ReplicationServiceReplicateGroup) ProtoMessage() {} -func (*ReplicationServiceReplicateGroup) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{73} -} -func (m *ReplicationServiceReplicateGroup) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReplicationServiceReplicateGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReplicationServiceReplicateGroup.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *GroupDeviceStatus_Reply_PeerDisconnected) Reset() { + *x = GroupDeviceStatus_Reply_PeerDisconnected{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[142] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ReplicationServiceReplicateGroup) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicationServiceReplicateGroup.Merge(m, src) -} -func (m *ReplicationServiceReplicateGroup) XXX_Size() int { - return m.Size() -} -func (m *ReplicationServiceReplicateGroup) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicationServiceReplicateGroup.DiscardUnknown(m) + +func (x *GroupDeviceStatus_Reply_PeerDisconnected) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_ReplicationServiceReplicateGroup proto.InternalMessageInfo +func (*GroupDeviceStatus_Reply_PeerDisconnected) ProtoMessage() {} -type ReplicationServiceReplicateGroup_Request struct { - Group *Group `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *GroupDeviceStatus_Reply_PeerDisconnected) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[142] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *ReplicationServiceReplicateGroup_Request) Reset() { - *m = ReplicationServiceReplicateGroup_Request{} -} -func (m *ReplicationServiceReplicateGroup_Request) String() string { return proto.CompactTextString(m) } -func (*ReplicationServiceReplicateGroup_Request) ProtoMessage() {} -func (*ReplicationServiceReplicateGroup_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{73, 0} -} -func (m *ReplicationServiceReplicateGroup_Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) +// Deprecated: Use GroupDeviceStatus_Reply_PeerDisconnected.ProtoReflect.Descriptor instead. +func (*GroupDeviceStatus_Reply_PeerDisconnected) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{62, 1, 2} } -func (m *ReplicationServiceReplicateGroup_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReplicationServiceReplicateGroup_Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil + +func (x *GroupDeviceStatus_Reply_PeerDisconnected) GetPeerId() string { + if x != nil { + return x.PeerId } + return "" } -func (m *ReplicationServiceReplicateGroup_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicationServiceReplicateGroup_Request.Merge(m, src) + +type DebugListGroups_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ReplicationServiceReplicateGroup_Request) XXX_Size() int { - return m.Size() + +func (x *DebugListGroups_Request) Reset() { + *x = DebugListGroups_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[143] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ReplicationServiceReplicateGroup_Request) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicationServiceReplicateGroup_Request.DiscardUnknown(m) + +func (x *DebugListGroups_Request) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_ReplicationServiceReplicateGroup_Request proto.InternalMessageInfo +func (*DebugListGroups_Request) ProtoMessage() {} -func (m *ReplicationServiceReplicateGroup_Request) GetGroup() *Group { - if m != nil { - return m.Group +func (x *DebugListGroups_Request) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[143] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -type ReplicationServiceReplicateGroup_Reply struct { - OK bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Deprecated: Use DebugListGroups_Request.ProtoReflect.Descriptor instead. +func (*DebugListGroups_Request) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{63, 0} } -func (m *ReplicationServiceReplicateGroup_Reply) Reset() { - *m = ReplicationServiceReplicateGroup_Reply{} +type DebugListGroups_Reply struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // group_pk is the public key of the group + GroupPk []byte `protobuf:"bytes,1,opt,name=group_pk,json=groupPk,proto3" json:"group_pk,omitempty"` + // group_type is the type of the group + GroupType GroupType `protobuf:"varint,2,opt,name=group_type,json=groupType,proto3,enum=weshnet.protocol.v1.GroupType" json:"group_type,omitempty"` + // contact_pk is the contact public key if appropriate + ContactPk []byte `protobuf:"bytes,3,opt,name=contact_pk,json=contactPk,proto3" json:"contact_pk,omitempty"` } -func (m *ReplicationServiceReplicateGroup_Reply) String() string { return proto.CompactTextString(m) } -func (*ReplicationServiceReplicateGroup_Reply) ProtoMessage() {} -func (*ReplicationServiceReplicateGroup_Reply) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{73, 1} + +func (x *DebugListGroups_Reply) Reset() { + *x = DebugListGroups_Reply{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[144] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *ReplicationServiceReplicateGroup_Reply) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *DebugListGroups_Reply) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ReplicationServiceReplicateGroup_Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReplicationServiceReplicateGroup_Reply.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*DebugListGroups_Reply) ProtoMessage() {} + +func (x *DebugListGroups_Reply) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[144] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *ReplicationServiceReplicateGroup_Reply) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicationServiceReplicateGroup_Reply.Merge(m, src) -} -func (m *ReplicationServiceReplicateGroup_Reply) XXX_Size() int { - return m.Size() + +// Deprecated: Use DebugListGroups_Reply.ProtoReflect.Descriptor instead. +func (*DebugListGroups_Reply) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{63, 1} } -func (m *ReplicationServiceReplicateGroup_Reply) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicationServiceReplicateGroup_Reply.DiscardUnknown(m) + +func (x *DebugListGroups_Reply) GetGroupPk() []byte { + if x != nil { + return x.GroupPk + } + return nil } -var xxx_messageInfo_ReplicationServiceReplicateGroup_Reply proto.InternalMessageInfo +func (x *DebugListGroups_Reply) GetGroupType() GroupType { + if x != nil { + return x.GroupType + } + return GroupType_GroupTypeUndefined +} -func (m *ReplicationServiceReplicateGroup_Reply) GetOK() bool { - if m != nil { - return m.OK +func (x *DebugListGroups_Reply) GetContactPk() []byte { + if x != nil { + return x.ContactPk } - return false + return nil } -type SystemInfo struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type DebugInspectGroupStore_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // group_pk is the identifier of the group + GroupPk []byte `protobuf:"bytes,1,opt,name=group_pk,json=groupPk,proto3" json:"group_pk,omitempty"` + // log_type is the log to inspect + LogType DebugInspectGroupLogType `protobuf:"varint,2,opt,name=log_type,json=logType,proto3,enum=weshnet.protocol.v1.DebugInspectGroupLogType" json:"log_type,omitempty"` } -func (m *SystemInfo) Reset() { *m = SystemInfo{} } -func (m *SystemInfo) String() string { return proto.CompactTextString(m) } -func (*SystemInfo) ProtoMessage() {} -func (*SystemInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{74} +func (x *DebugInspectGroupStore_Request) Reset() { + *x = DebugInspectGroupStore_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[145] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SystemInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *DebugInspectGroupStore_Request) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SystemInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SystemInfo.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*DebugInspectGroupStore_Request) ProtoMessage() {} + +func (x *DebugInspectGroupStore_Request) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[145] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *SystemInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_SystemInfo.Merge(m, src) + +// Deprecated: Use DebugInspectGroupStore_Request.ProtoReflect.Descriptor instead. +func (*DebugInspectGroupStore_Request) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{64, 0} } -func (m *SystemInfo) XXX_Size() int { - return m.Size() + +func (x *DebugInspectGroupStore_Request) GetGroupPk() []byte { + if x != nil { + return x.GroupPk + } + return nil } -func (m *SystemInfo) XXX_DiscardUnknown() { - xxx_messageInfo_SystemInfo.DiscardUnknown(m) + +func (x *DebugInspectGroupStore_Request) GetLogType() DebugInspectGroupLogType { + if x != nil { + return x.LogType + } + return DebugInspectGroupLogType_DebugInspectGroupLogTypeUndefined } -var xxx_messageInfo_SystemInfo proto.InternalMessageInfo +type DebugInspectGroupStore_Reply struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type SystemInfo_Request struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // cid is the CID of the IPFS log entry + Cid []byte `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"` + // parent_cids is the list of the parent entries + ParentCids [][]byte `protobuf:"bytes,2,rep,name=parent_cids,json=parentCids,proto3" json:"parent_cids,omitempty"` + // event_type metadata event type if subscribed to metadata events + MetadataEventType EventType `protobuf:"varint,3,opt,name=metadata_event_type,json=metadataEventType,proto3,enum=weshnet.protocol.v1.EventType" json:"metadata_event_type,omitempty"` + // device_pk is the public key of the device signing the entry + DevicePk []byte `protobuf:"bytes,4,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` + // payload is the un encrypted entry payload if available + Payload []byte `protobuf:"bytes,6,opt,name=payload,proto3" json:"payload,omitempty"` } -func (m *SystemInfo_Request) Reset() { *m = SystemInfo_Request{} } -func (m *SystemInfo_Request) String() string { return proto.CompactTextString(m) } -func (*SystemInfo_Request) ProtoMessage() {} -func (*SystemInfo_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{74, 0} -} -func (m *SystemInfo_Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SystemInfo_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SystemInfo_Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *DebugInspectGroupStore_Reply) Reset() { + *x = DebugInspectGroupStore_Reply{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[146] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *SystemInfo_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_SystemInfo_Request.Merge(m, src) -} -func (m *SystemInfo_Request) XXX_Size() int { - return m.Size() -} -func (m *SystemInfo_Request) XXX_DiscardUnknown() { - xxx_messageInfo_SystemInfo_Request.DiscardUnknown(m) + +func (x *DebugInspectGroupStore_Reply) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_SystemInfo_Request proto.InternalMessageInfo +func (*DebugInspectGroupStore_Reply) ProtoMessage() {} -type SystemInfo_Reply struct { - Process *SystemInfo_Process `protobuf:"bytes,1,opt,name=process,proto3" json:"process,omitempty"` - P2P *SystemInfo_P2P `protobuf:"bytes,2,opt,name=p2p,proto3" json:"p2p,omitempty"` - OrbitDB *SystemInfo_OrbitDB `protobuf:"bytes,3,opt,name=orbitdb,proto3" json:"orbitdb,omitempty"` - Warns []string `protobuf:"bytes,4,rep,name=warns,proto3" json:"warns,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SystemInfo_Reply) Reset() { *m = SystemInfo_Reply{} } -func (m *SystemInfo_Reply) String() string { return proto.CompactTextString(m) } -func (*SystemInfo_Reply) ProtoMessage() {} -func (*SystemInfo_Reply) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{74, 1} -} -func (m *SystemInfo_Reply) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SystemInfo_Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SystemInfo_Reply.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *DebugInspectGroupStore_Reply) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[146] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *SystemInfo_Reply) XXX_Merge(src proto.Message) { - xxx_messageInfo_SystemInfo_Reply.Merge(m, src) -} -func (m *SystemInfo_Reply) XXX_Size() int { - return m.Size() -} -func (m *SystemInfo_Reply) XXX_DiscardUnknown() { - xxx_messageInfo_SystemInfo_Reply.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_SystemInfo_Reply proto.InternalMessageInfo +// Deprecated: Use DebugInspectGroupStore_Reply.ProtoReflect.Descriptor instead. +func (*DebugInspectGroupStore_Reply) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{64, 1} +} -func (m *SystemInfo_Reply) GetProcess() *SystemInfo_Process { - if m != nil { - return m.Process +func (x *DebugInspectGroupStore_Reply) GetCid() []byte { + if x != nil { + return x.Cid } return nil } -func (m *SystemInfo_Reply) GetP2P() *SystemInfo_P2P { - if m != nil { - return m.P2P +func (x *DebugInspectGroupStore_Reply) GetParentCids() [][]byte { + if x != nil { + return x.ParentCids } return nil } -func (m *SystemInfo_Reply) GetOrbitDB() *SystemInfo_OrbitDB { - if m != nil { - return m.OrbitDB +func (x *DebugInspectGroupStore_Reply) GetMetadataEventType() EventType { + if x != nil { + return x.MetadataEventType } - return nil + return EventType_EventTypeUndefined } -func (m *SystemInfo_Reply) GetWarns() []string { - if m != nil { - return m.Warns +func (x *DebugInspectGroupStore_Reply) GetDevicePk() []byte { + if x != nil { + return x.DevicePk } return nil } -type SystemInfo_OrbitDB struct { - AccountMetadata *SystemInfo_OrbitDB_ReplicationStatus `protobuf:"bytes,1,opt,name=account_metadata,json=accountMetadata,proto3" json:"account_metadata,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *DebugInspectGroupStore_Reply) GetPayload() []byte { + if x != nil { + return x.Payload + } + return nil } -func (m *SystemInfo_OrbitDB) Reset() { *m = SystemInfo_OrbitDB{} } -func (m *SystemInfo_OrbitDB) String() string { return proto.CompactTextString(m) } -func (*SystemInfo_OrbitDB) ProtoMessage() {} -func (*SystemInfo_OrbitDB) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{74, 2} -} -func (m *SystemInfo_OrbitDB) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) +type DebugGroup_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // group_pk is the identifier of the group + GroupPk []byte `protobuf:"bytes,1,opt,name=group_pk,json=groupPk,proto3" json:"group_pk,omitempty"` } -func (m *SystemInfo_OrbitDB) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SystemInfo_OrbitDB.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil + +func (x *DebugGroup_Request) Reset() { + *x = DebugGroup_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[147] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *SystemInfo_OrbitDB) XXX_Merge(src proto.Message) { - xxx_messageInfo_SystemInfo_OrbitDB.Merge(m, src) -} -func (m *SystemInfo_OrbitDB) XXX_Size() int { - return m.Size() -} -func (m *SystemInfo_OrbitDB) XXX_DiscardUnknown() { - xxx_messageInfo_SystemInfo_OrbitDB.DiscardUnknown(m) + +func (x *DebugGroup_Request) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_SystemInfo_OrbitDB proto.InternalMessageInfo +func (*DebugGroup_Request) ProtoMessage() {} -func (m *SystemInfo_OrbitDB) GetAccountMetadata() *SystemInfo_OrbitDB_ReplicationStatus { - if m != nil { - return m.AccountMetadata +func (x *DebugGroup_Request) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[147] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) } -type SystemInfo_OrbitDB_ReplicationStatus struct { - Progress int64 `protobuf:"varint,1,opt,name=progress,proto3" json:"progress,omitempty"` - Maximum int64 `protobuf:"varint,2,opt,name=maximum,proto3" json:"maximum,omitempty"` - Buffered int64 `protobuf:"varint,3,opt,name=buffered,proto3" json:"buffered,omitempty"` - Queued int64 `protobuf:"varint,4,opt,name=queued,proto3" json:"queued,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SystemInfo_OrbitDB_ReplicationStatus) Reset() { *m = SystemInfo_OrbitDB_ReplicationStatus{} } -func (m *SystemInfo_OrbitDB_ReplicationStatus) String() string { return proto.CompactTextString(m) } -func (*SystemInfo_OrbitDB_ReplicationStatus) ProtoMessage() {} -func (*SystemInfo_OrbitDB_ReplicationStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{74, 2, 0} -} -func (m *SystemInfo_OrbitDB_ReplicationStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) +// Deprecated: Use DebugGroup_Request.ProtoReflect.Descriptor instead. +func (*DebugGroup_Request) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{65, 0} } -func (m *SystemInfo_OrbitDB_ReplicationStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SystemInfo_OrbitDB_ReplicationStatus.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil + +func (x *DebugGroup_Request) GetGroupPk() []byte { + if x != nil { + return x.GroupPk } -} -func (m *SystemInfo_OrbitDB_ReplicationStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_SystemInfo_OrbitDB_ReplicationStatus.Merge(m, src) -} -func (m *SystemInfo_OrbitDB_ReplicationStatus) XXX_Size() int { - return m.Size() -} -func (m *SystemInfo_OrbitDB_ReplicationStatus) XXX_DiscardUnknown() { - xxx_messageInfo_SystemInfo_OrbitDB_ReplicationStatus.DiscardUnknown(m) + return nil } -var xxx_messageInfo_SystemInfo_OrbitDB_ReplicationStatus proto.InternalMessageInfo +type DebugGroup_Reply struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *SystemInfo_OrbitDB_ReplicationStatus) GetProgress() int64 { - if m != nil { - return m.Progress - } - return 0 + // peer_ids is the list of peer ids connected to the same group + PeerIds []string `protobuf:"bytes,1,rep,name=peer_ids,json=peerIds,proto3" json:"peer_ids,omitempty"` } -func (m *SystemInfo_OrbitDB_ReplicationStatus) GetMaximum() int64 { - if m != nil { - return m.Maximum +func (x *DebugGroup_Reply) Reset() { + *x = DebugGroup_Reply{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[148] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return 0 } -func (m *SystemInfo_OrbitDB_ReplicationStatus) GetBuffered() int64 { - if m != nil { - return m.Buffered - } - return 0 +func (x *DebugGroup_Reply) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SystemInfo_OrbitDB_ReplicationStatus) GetQueued() int64 { - if m != nil { - return m.Queued +func (*DebugGroup_Reply) ProtoMessage() {} + +func (x *DebugGroup_Reply) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[148] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return 0 + return mi.MessageOf(x) } -type SystemInfo_P2P struct { - ConnectedPeers int64 `protobuf:"varint,1,opt,name=connected_peers,json=connectedPeers,proto3" json:"connected_peers,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +// Deprecated: Use DebugGroup_Reply.ProtoReflect.Descriptor instead. +func (*DebugGroup_Reply) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{65, 1} } -func (m *SystemInfo_P2P) Reset() { *m = SystemInfo_P2P{} } -func (m *SystemInfo_P2P) String() string { return proto.CompactTextString(m) } -func (*SystemInfo_P2P) ProtoMessage() {} -func (*SystemInfo_P2P) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{74, 3} -} -func (m *SystemInfo_P2P) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SystemInfo_P2P) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SystemInfo_P2P.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *DebugGroup_Reply) GetPeerIds() []string { + if x != nil { + return x.PeerIds } -} -func (m *SystemInfo_P2P) XXX_Merge(src proto.Message) { - xxx_messageInfo_SystemInfo_P2P.Merge(m, src) -} -func (m *SystemInfo_P2P) XXX_Size() int { - return m.Size() -} -func (m *SystemInfo_P2P) XXX_DiscardUnknown() { - xxx_messageInfo_SystemInfo_P2P.DiscardUnknown(m) + return nil } -var xxx_messageInfo_SystemInfo_P2P proto.InternalMessageInfo +type CredentialVerificationServiceInitFlow_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *SystemInfo_P2P) GetConnectedPeers() int64 { - if m != nil { - return m.ConnectedPeers - } - return 0 + ServiceUrl string `protobuf:"bytes,1,opt,name=service_url,json=serviceUrl,proto3" json:"service_url,omitempty"` + PublicKey []byte `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` + Link string `protobuf:"bytes,3,opt,name=link,proto3" json:"link,omitempty"` } -type SystemInfo_Process struct { - Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` - VcsRef string `protobuf:"bytes,2,opt,name=vcs_ref,json=vcsRef,proto3" json:"vcs_ref,omitempty"` - UptimeMS int64 `protobuf:"varint,3,opt,name=uptime_ms,json=uptimeMs,proto3" json:"uptime_ms,omitempty"` - UserCPUTimeMS int64 `protobuf:"varint,10,opt,name=user_cpu_time_ms,json=userCpuTimeMs,proto3" json:"user_cpu_time_ms,omitempty"` - SystemCPUTimeMS int64 `protobuf:"varint,11,opt,name=system_cpu_time_ms,json=systemCpuTimeMs,proto3" json:"system_cpu_time_ms,omitempty"` - StartedAt int64 `protobuf:"varint,12,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` - RlimitCur uint64 `protobuf:"varint,13,opt,name=rlimit_cur,json=rlimitCur,proto3" json:"rlimit_cur,omitempty"` - NumGoroutine int64 `protobuf:"varint,14,opt,name=num_goroutine,json=numGoroutine,proto3" json:"num_goroutine,omitempty"` - Nofile int64 `protobuf:"varint,15,opt,name=nofile,proto3" json:"nofile,omitempty"` - TooManyOpenFiles bool `protobuf:"varint,16,opt,name=too_many_open_files,json=tooManyOpenFiles,proto3" json:"too_many_open_files,omitempty"` - NumCPU int64 `protobuf:"varint,17,opt,name=num_cpu,json=numCpu,proto3" json:"num_cpu,omitempty"` - GoVersion string `protobuf:"bytes,18,opt,name=go_version,json=goVersion,proto3" json:"go_version,omitempty"` - OperatingSystem string `protobuf:"bytes,19,opt,name=operating_system,json=operatingSystem,proto3" json:"operating_system,omitempty"` - HostName string `protobuf:"bytes,20,opt,name=host_name,json=hostName,proto3" json:"host_name,omitempty"` - Arch string `protobuf:"bytes,21,opt,name=arch,proto3" json:"arch,omitempty"` - RlimitMax uint64 `protobuf:"varint,22,opt,name=rlimit_max,json=rlimitMax,proto3" json:"rlimit_max,omitempty"` - PID int64 `protobuf:"varint,23,opt,name=pid,proto3" json:"pid,omitempty"` - PPID int64 `protobuf:"varint,24,opt,name=ppid,proto3" json:"ppid,omitempty"` - Priority int64 `protobuf:"varint,25,opt,name=priority,proto3" json:"priority,omitempty"` - UID int64 `protobuf:"varint,26,opt,name=uid,proto3" json:"uid,omitempty"` - WorkingDir string `protobuf:"bytes,27,opt,name=working_dir,json=workingDir,proto3" json:"working_dir,omitempty"` - SystemUsername string `protobuf:"bytes,28,opt,name=system_username,json=systemUsername,proto3" json:"system_username,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SystemInfo_Process) Reset() { *m = SystemInfo_Process{} } -func (m *SystemInfo_Process) String() string { return proto.CompactTextString(m) } -func (*SystemInfo_Process) ProtoMessage() {} -func (*SystemInfo_Process) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{74, 4} +func (x *CredentialVerificationServiceInitFlow_Request) Reset() { + *x = CredentialVerificationServiceInitFlow_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[149] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *SystemInfo_Process) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *CredentialVerificationServiceInitFlow_Request) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SystemInfo_Process) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SystemInfo_Process.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*CredentialVerificationServiceInitFlow_Request) ProtoMessage() {} + +func (x *CredentialVerificationServiceInitFlow_Request) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[149] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *SystemInfo_Process) XXX_Merge(src proto.Message) { - xxx_messageInfo_SystemInfo_Process.Merge(m, src) -} -func (m *SystemInfo_Process) XXX_Size() int { - return m.Size() -} -func (m *SystemInfo_Process) XXX_DiscardUnknown() { - xxx_messageInfo_SystemInfo_Process.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_SystemInfo_Process proto.InternalMessageInfo +// Deprecated: Use CredentialVerificationServiceInitFlow_Request.ProtoReflect.Descriptor instead. +func (*CredentialVerificationServiceInitFlow_Request) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{69, 0} +} -func (m *SystemInfo_Process) GetVersion() string { - if m != nil { - return m.Version +func (x *CredentialVerificationServiceInitFlow_Request) GetServiceUrl() string { + if x != nil { + return x.ServiceUrl } return "" } -func (m *SystemInfo_Process) GetVcsRef() string { - if m != nil { - return m.VcsRef +func (x *CredentialVerificationServiceInitFlow_Request) GetPublicKey() []byte { + if x != nil { + return x.PublicKey } - return "" + return nil } -func (m *SystemInfo_Process) GetUptimeMS() int64 { - if m != nil { - return m.UptimeMS +func (x *CredentialVerificationServiceInitFlow_Request) GetLink() string { + if x != nil { + return x.Link } - return 0 + return "" } -func (m *SystemInfo_Process) GetUserCPUTimeMS() int64 { - if m != nil { - return m.UserCPUTimeMS - } - return 0 +type CredentialVerificationServiceInitFlow_Reply struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` + SecureUrl bool `protobuf:"varint,2,opt,name=secure_url,json=secureUrl,proto3" json:"secure_url,omitempty"` } -func (m *SystemInfo_Process) GetSystemCPUTimeMS() int64 { - if m != nil { - return m.SystemCPUTimeMS +func (x *CredentialVerificationServiceInitFlow_Reply) Reset() { + *x = CredentialVerificationServiceInitFlow_Reply{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[150] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return 0 } -func (m *SystemInfo_Process) GetStartedAt() int64 { - if m != nil { - return m.StartedAt - } - return 0 +func (x *CredentialVerificationServiceInitFlow_Reply) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SystemInfo_Process) GetRlimitCur() uint64 { - if m != nil { - return m.RlimitCur +func (*CredentialVerificationServiceInitFlow_Reply) ProtoMessage() {} + +func (x *CredentialVerificationServiceInitFlow_Reply) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[150] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return 0 + return mi.MessageOf(x) } -func (m *SystemInfo_Process) GetNumGoroutine() int64 { - if m != nil { - return m.NumGoroutine - } - return 0 +// Deprecated: Use CredentialVerificationServiceInitFlow_Reply.ProtoReflect.Descriptor instead. +func (*CredentialVerificationServiceInitFlow_Reply) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{69, 1} } -func (m *SystemInfo_Process) GetNofile() int64 { - if m != nil { - return m.Nofile +func (x *CredentialVerificationServiceInitFlow_Reply) GetUrl() string { + if x != nil { + return x.Url } - return 0 + return "" } -func (m *SystemInfo_Process) GetTooManyOpenFiles() bool { - if m != nil { - return m.TooManyOpenFiles +func (x *CredentialVerificationServiceInitFlow_Reply) GetSecureUrl() bool { + if x != nil { + return x.SecureUrl } return false } -func (m *SystemInfo_Process) GetNumCPU() int64 { - if m != nil { - return m.NumCPU - } - return 0 +type CredentialVerificationServiceCompleteFlow_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CallbackUri string `protobuf:"bytes,1,opt,name=callback_uri,json=callbackUri,proto3" json:"callback_uri,omitempty"` } -func (m *SystemInfo_Process) GetGoVersion() string { - if m != nil { - return m.GoVersion +func (x *CredentialVerificationServiceCompleteFlow_Request) Reset() { + *x = CredentialVerificationServiceCompleteFlow_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[151] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" } -func (m *SystemInfo_Process) GetOperatingSystem() string { - if m != nil { - return m.OperatingSystem - } - return "" +func (x *CredentialVerificationServiceCompleteFlow_Request) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SystemInfo_Process) GetHostName() string { - if m != nil { - return m.HostName +func (*CredentialVerificationServiceCompleteFlow_Request) ProtoMessage() {} + +func (x *CredentialVerificationServiceCompleteFlow_Request) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[151] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -func (m *SystemInfo_Process) GetArch() string { - if m != nil { - return m.Arch - } - return "" +// Deprecated: Use CredentialVerificationServiceCompleteFlow_Request.ProtoReflect.Descriptor instead. +func (*CredentialVerificationServiceCompleteFlow_Request) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{70, 0} } -func (m *SystemInfo_Process) GetRlimitMax() uint64 { - if m != nil { - return m.RlimitMax +func (x *CredentialVerificationServiceCompleteFlow_Request) GetCallbackUri() string { + if x != nil { + return x.CallbackUri } - return 0 + return "" } -func (m *SystemInfo_Process) GetPID() int64 { - if m != nil { - return m.PID - } - return 0 +type CredentialVerificationServiceCompleteFlow_Reply struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` } -func (m *SystemInfo_Process) GetPPID() int64 { - if m != nil { - return m.PPID +func (x *CredentialVerificationServiceCompleteFlow_Reply) Reset() { + *x = CredentialVerificationServiceCompleteFlow_Reply{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[152] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return 0 } -func (m *SystemInfo_Process) GetPriority() int64 { - if m != nil { - return m.Priority - } - return 0 +func (x *CredentialVerificationServiceCompleteFlow_Reply) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *SystemInfo_Process) GetUID() int64 { - if m != nil { - return m.UID +func (*CredentialVerificationServiceCompleteFlow_Reply) ProtoMessage() {} + +func (x *CredentialVerificationServiceCompleteFlow_Reply) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[152] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return 0 + return mi.MessageOf(x) } -func (m *SystemInfo_Process) GetWorkingDir() string { - if m != nil { - return m.WorkingDir - } - return "" +// Deprecated: Use CredentialVerificationServiceCompleteFlow_Reply.ProtoReflect.Descriptor instead. +func (*CredentialVerificationServiceCompleteFlow_Reply) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{70, 1} } -func (m *SystemInfo_Process) GetSystemUsername() string { - if m != nil { - return m.SystemUsername +func (x *CredentialVerificationServiceCompleteFlow_Reply) GetIdentifier() string { + if x != nil { + return x.Identifier } return "" } -type PeerList struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +type VerifiedCredentialsList_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *PeerList) Reset() { *m = PeerList{} } -func (m *PeerList) String() string { return proto.CompactTextString(m) } -func (*PeerList) ProtoMessage() {} -func (*PeerList) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{75} -} -func (m *PeerList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + FilterIdentifier string `protobuf:"bytes,1,opt,name=filter_identifier,json=filterIdentifier,proto3" json:"filter_identifier,omitempty"` + FilterIssuer string `protobuf:"bytes,2,opt,name=filter_issuer,json=filterIssuer,proto3" json:"filter_issuer,omitempty"` + ExcludeExpired bool `protobuf:"varint,3,opt,name=exclude_expired,json=excludeExpired,proto3" json:"exclude_expired,omitempty"` } -func (m *PeerList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PeerList.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil + +func (x *VerifiedCredentialsList_Request) Reset() { + *x = VerifiedCredentialsList_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[153] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *PeerList) XXX_Merge(src proto.Message) { - xxx_messageInfo_PeerList.Merge(m, src) -} -func (m *PeerList) XXX_Size() int { - return m.Size() -} -func (m *PeerList) XXX_DiscardUnknown() { - xxx_messageInfo_PeerList.DiscardUnknown(m) + +func (x *VerifiedCredentialsList_Request) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_PeerList proto.InternalMessageInfo +func (*VerifiedCredentialsList_Request) ProtoMessage() {} -type PeerList_Request struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *VerifiedCredentialsList_Request) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[153] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (m *PeerList_Request) Reset() { *m = PeerList_Request{} } -func (m *PeerList_Request) String() string { return proto.CompactTextString(m) } -func (*PeerList_Request) ProtoMessage() {} -func (*PeerList_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{75, 0} -} -func (m *PeerList_Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) +// Deprecated: Use VerifiedCredentialsList_Request.ProtoReflect.Descriptor instead. +func (*VerifiedCredentialsList_Request) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{71, 0} } -func (m *PeerList_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PeerList_Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil + +func (x *VerifiedCredentialsList_Request) GetFilterIdentifier() string { + if x != nil { + return x.FilterIdentifier } + return "" } -func (m *PeerList_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_PeerList_Request.Merge(m, src) -} -func (m *PeerList_Request) XXX_Size() int { - return m.Size() + +func (x *VerifiedCredentialsList_Request) GetFilterIssuer() string { + if x != nil { + return x.FilterIssuer + } + return "" } -func (m *PeerList_Request) XXX_DiscardUnknown() { - xxx_messageInfo_PeerList_Request.DiscardUnknown(m) + +func (x *VerifiedCredentialsList_Request) GetExcludeExpired() bool { + if x != nil { + return x.ExcludeExpired + } + return false } -var xxx_messageInfo_PeerList_Request proto.InternalMessageInfo +type VerifiedCredentialsList_Reply struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type PeerList_Reply struct { - Peers []*PeerList_Peer `protobuf:"bytes,1,rep,name=peers,proto3" json:"peers,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Credential *AccountVerifiedCredentialRegistered `protobuf:"bytes,1,opt,name=credential,proto3" json:"credential,omitempty"` } -func (m *PeerList_Reply) Reset() { *m = PeerList_Reply{} } -func (m *PeerList_Reply) String() string { return proto.CompactTextString(m) } -func (*PeerList_Reply) ProtoMessage() {} -func (*PeerList_Reply) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{75, 1} +func (x *VerifiedCredentialsList_Reply) Reset() { + *x = VerifiedCredentialsList_Reply{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[154] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *PeerList_Reply) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *VerifiedCredentialsList_Reply) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PeerList_Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PeerList_Reply.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*VerifiedCredentialsList_Reply) ProtoMessage() {} + +func (x *VerifiedCredentialsList_Reply) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[154] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *PeerList_Reply) XXX_Merge(src proto.Message) { - xxx_messageInfo_PeerList_Reply.Merge(m, src) -} -func (m *PeerList_Reply) XXX_Size() int { - return m.Size() -} -func (m *PeerList_Reply) XXX_DiscardUnknown() { - xxx_messageInfo_PeerList_Reply.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_PeerList_Reply proto.InternalMessageInfo +// Deprecated: Use VerifiedCredentialsList_Reply.ProtoReflect.Descriptor instead. +func (*VerifiedCredentialsList_Reply) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{71, 1} +} -func (m *PeerList_Reply) GetPeers() []*PeerList_Peer { - if m != nil { - return m.Peers +func (x *VerifiedCredentialsList_Reply) GetCredential() *AccountVerifiedCredentialRegistered { + if x != nil { + return x.Credential } return nil } -type PeerList_Peer struct { - // id is the libp2p.PeerID. - ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // routes are the list of active and known maddr. - Routes []*PeerList_Route `protobuf:"bytes,2,rep,name=routes,proto3" json:"routes,omitempty"` - // errors is a list of errors related to the peer. - Errors []string `protobuf:"bytes,3,rep,name=errors,proto3" json:"errors,omitempty"` - // Features is a list of available features. - Features []PeerList_Feature `protobuf:"varint,4,rep,packed,name=features,proto3,enum=weshnet.protocol.v1.PeerList_Feature" json:"features,omitempty"` - // MinLatency is the minimum latency across all the peer routes. - MinLatency int64 `protobuf:"varint,5,opt,name=min_latency,json=minLatency,proto3" json:"min_latency,omitempty"` - // IsActive is true if at least one of the route is active. - IsActive bool `protobuf:"varint,6,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"` - // Direction is the aggregate of all the routes's direction. - Direction Direction `protobuf:"varint,7,opt,name=direction,proto3,enum=weshnet.protocol.v1.Direction" json:"direction,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +type ReplicationServiceRegisterGroup_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *PeerList_Peer) Reset() { *m = PeerList_Peer{} } -func (m *PeerList_Peer) String() string { return proto.CompactTextString(m) } -func (*PeerList_Peer) ProtoMessage() {} -func (*PeerList_Peer) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{75, 2} -} -func (m *PeerList_Peer) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + GroupPk []byte `protobuf:"bytes,1,opt,name=group_pk,json=groupPk,proto3" json:"group_pk,omitempty"` + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` + AuthenticationUrl string `protobuf:"bytes,3,opt,name=authentication_url,json=authenticationUrl,proto3" json:"authentication_url,omitempty"` + ReplicationServer string `protobuf:"bytes,4,opt,name=replication_server,json=replicationServer,proto3" json:"replication_server,omitempty"` } -func (m *PeerList_Peer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PeerList_Peer.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil + +func (x *ReplicationServiceRegisterGroup_Request) Reset() { + *x = ReplicationServiceRegisterGroup_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[155] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *PeerList_Peer) XXX_Merge(src proto.Message) { - xxx_messageInfo_PeerList_Peer.Merge(m, src) -} -func (m *PeerList_Peer) XXX_Size() int { - return m.Size() -} -func (m *PeerList_Peer) XXX_DiscardUnknown() { - xxx_messageInfo_PeerList_Peer.DiscardUnknown(m) + +func (x *ReplicationServiceRegisterGroup_Request) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_PeerList_Peer proto.InternalMessageInfo +func (*ReplicationServiceRegisterGroup_Request) ProtoMessage() {} -func (m *PeerList_Peer) GetID() string { - if m != nil { - return m.ID +func (x *ReplicationServiceRegisterGroup_Request) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[155] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return "" + return mi.MessageOf(x) } -func (m *PeerList_Peer) GetRoutes() []*PeerList_Route { - if m != nil { - return m.Routes - } - return nil +// Deprecated: Use ReplicationServiceRegisterGroup_Request.ProtoReflect.Descriptor instead. +func (*ReplicationServiceRegisterGroup_Request) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{72, 0} } -func (m *PeerList_Peer) GetErrors() []string { - if m != nil { - return m.Errors +func (x *ReplicationServiceRegisterGroup_Request) GetGroupPk() []byte { + if x != nil { + return x.GroupPk } return nil } -func (m *PeerList_Peer) GetFeatures() []PeerList_Feature { - if m != nil { - return m.Features +func (x *ReplicationServiceRegisterGroup_Request) GetToken() string { + if x != nil { + return x.Token } - return nil + return "" } -func (m *PeerList_Peer) GetMinLatency() int64 { - if m != nil { - return m.MinLatency +func (x *ReplicationServiceRegisterGroup_Request) GetAuthenticationUrl() string { + if x != nil { + return x.AuthenticationUrl } - return 0 + return "" } -func (m *PeerList_Peer) GetIsActive() bool { - if m != nil { - return m.IsActive +func (x *ReplicationServiceRegisterGroup_Request) GetReplicationServer() string { + if x != nil { + return x.ReplicationServer } - return false + return "" } -func (m *PeerList_Peer) GetDirection() Direction { - if m != nil { - return m.Direction - } - return UnknownDir +type ReplicationServiceRegisterGroup_Reply struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -type PeerList_Route struct { - // IsActive indicates whether the address is currently used or just known. - IsActive bool `protobuf:"varint,1,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"` - // Address is the multiaddress via which we are connected with the peer. - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` - // Direction is which way the connection was established. - Direction Direction `protobuf:"varint,3,opt,name=direction,proto3,enum=weshnet.protocol.v1.Direction" json:"direction,omitempty"` - // Latency is the last known round trip time to the peer in ms. - Latency int64 `protobuf:"varint,4,opt,name=latency,proto3" json:"latency,omitempty"` - // Streams returns list of streams established with the peer. - Streams []*PeerList_Stream `protobuf:"bytes,5,rep,name=streams,proto3" json:"streams,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *ReplicationServiceRegisterGroup_Reply) Reset() { + *x = ReplicationServiceRegisterGroup_Reply{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[156] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *PeerList_Route) Reset() { *m = PeerList_Route{} } -func (m *PeerList_Route) String() string { return proto.CompactTextString(m) } -func (*PeerList_Route) ProtoMessage() {} -func (*PeerList_Route) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{75, 3} +func (x *ReplicationServiceRegisterGroup_Reply) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PeerList_Route) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PeerList_Route) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PeerList_Route.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ReplicationServiceRegisterGroup_Reply) ProtoMessage() {} + +func (x *ReplicationServiceRegisterGroup_Reply) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[156] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *PeerList_Route) XXX_Merge(src proto.Message) { - xxx_messageInfo_PeerList_Route.Merge(m, src) -} -func (m *PeerList_Route) XXX_Size() int { - return m.Size() -} -func (m *PeerList_Route) XXX_DiscardUnknown() { - xxx_messageInfo_PeerList_Route.DiscardUnknown(m) + +// Deprecated: Use ReplicationServiceRegisterGroup_Reply.ProtoReflect.Descriptor instead. +func (*ReplicationServiceRegisterGroup_Reply) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{72, 1} } -var xxx_messageInfo_PeerList_Route proto.InternalMessageInfo +type ReplicationServiceReplicateGroup_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *PeerList_Route) GetIsActive() bool { - if m != nil { - return m.IsActive - } - return false + Group *Group `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` } -func (m *PeerList_Route) GetAddress() string { - if m != nil { - return m.Address +func (x *ReplicationServiceReplicateGroup_Request) Reset() { + *x = ReplicationServiceReplicateGroup_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[157] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" } -func (m *PeerList_Route) GetDirection() Direction { - if m != nil { - return m.Direction - } - return UnknownDir +func (x *ReplicationServiceReplicateGroup_Request) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PeerList_Route) GetLatency() int64 { - if m != nil { - return m.Latency +func (*ReplicationServiceReplicateGroup_Request) ProtoMessage() {} + +func (x *ReplicationServiceReplicateGroup_Request) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[157] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return 0 + return mi.MessageOf(x) +} + +// Deprecated: Use ReplicationServiceReplicateGroup_Request.ProtoReflect.Descriptor instead. +func (*ReplicationServiceReplicateGroup_Request) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{73, 0} } -func (m *PeerList_Route) GetStreams() []*PeerList_Stream { - if m != nil { - return m.Streams +func (x *ReplicationServiceReplicateGroup_Request) GetGroup() *Group { + if x != nil { + return x.Group } return nil } -type PeerList_Stream struct { - // id is an identifier used to write protocol headers in streams. - ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type ReplicationServiceReplicateGroup_Reply struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` } -func (m *PeerList_Stream) Reset() { *m = PeerList_Stream{} } -func (m *PeerList_Stream) String() string { return proto.CompactTextString(m) } -func (*PeerList_Stream) ProtoMessage() {} -func (*PeerList_Stream) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{75, 4} +func (x *ReplicationServiceReplicateGroup_Reply) Reset() { + *x = ReplicationServiceReplicateGroup_Reply{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[158] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *PeerList_Stream) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *ReplicationServiceReplicateGroup_Reply) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *PeerList_Stream) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PeerList_Stream.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*ReplicationServiceReplicateGroup_Reply) ProtoMessage() {} + +func (x *ReplicationServiceReplicateGroup_Reply) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[158] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *PeerList_Stream) XXX_Merge(src proto.Message) { - xxx_messageInfo_PeerList_Stream.Merge(m, src) -} -func (m *PeerList_Stream) XXX_Size() int { - return m.Size() + +// Deprecated: Use ReplicationServiceReplicateGroup_Reply.ProtoReflect.Descriptor instead. +func (*ReplicationServiceReplicateGroup_Reply) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{73, 1} } -func (m *PeerList_Stream) XXX_DiscardUnknown() { - xxx_messageInfo_PeerList_Stream.DiscardUnknown(m) + +func (x *ReplicationServiceReplicateGroup_Reply) GetOk() bool { + if x != nil { + return x.Ok + } + return false } -var xxx_messageInfo_PeerList_Stream proto.InternalMessageInfo +type SystemInfo_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} -func (m *PeerList_Stream) GetID() string { - if m != nil { - return m.ID +func (x *SystemInfo_Request) Reset() { + *x = SystemInfo_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[159] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" } -// Progress define a generic object that can be used to display a progress bar for long-running actions. -type Progress struct { - State string `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"` - Doing string `protobuf:"bytes,2,opt,name=doing,proto3" json:"doing,omitempty"` - Progress float32 `protobuf:"fixed32,3,opt,name=progress,proto3" json:"progress,omitempty"` - Completed uint64 `protobuf:"varint,4,opt,name=completed,proto3" json:"completed,omitempty"` - Total uint64 `protobuf:"varint,5,opt,name=total,proto3" json:"total,omitempty"` - Delay uint64 `protobuf:"varint,6,opt,name=delay,proto3" json:"delay,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Progress) Reset() { *m = Progress{} } -func (m *Progress) String() string { return proto.CompactTextString(m) } -func (*Progress) ProtoMessage() {} -func (*Progress) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{76} +func (x *SystemInfo_Request) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Progress) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Progress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Progress.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*SystemInfo_Request) ProtoMessage() {} + +func (x *SystemInfo_Request) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[159] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *Progress) XXX_Merge(src proto.Message) { - xxx_messageInfo_Progress.Merge(m, src) -} -func (m *Progress) XXX_Size() int { - return m.Size() -} -func (m *Progress) XXX_DiscardUnknown() { - xxx_messageInfo_Progress.DiscardUnknown(m) + +// Deprecated: Use SystemInfo_Request.ProtoReflect.Descriptor instead. +func (*SystemInfo_Request) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{74, 0} } -var xxx_messageInfo_Progress proto.InternalMessageInfo +type SystemInfo_Reply struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Progress) GetState() string { - if m != nil { - return m.State - } - return "" + Process *SystemInfo_Process `protobuf:"bytes,1,opt,name=process,proto3" json:"process,omitempty"` + P2P *SystemInfo_P2P `protobuf:"bytes,2,opt,name=p2p,proto3" json:"p2p,omitempty"` + Orbitdb *SystemInfo_OrbitDB `protobuf:"bytes,3,opt,name=orbitdb,proto3" json:"orbitdb,omitempty"` + Warns []string `protobuf:"bytes,4,rep,name=warns,proto3" json:"warns,omitempty"` } -func (m *Progress) GetDoing() string { - if m != nil { - return m.Doing +func (x *SystemInfo_Reply) Reset() { + *x = SystemInfo_Reply{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[160] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" } -func (m *Progress) GetProgress() float32 { - if m != nil { - return m.Progress - } - return 0 +func (x *SystemInfo_Reply) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Progress) GetCompleted() uint64 { - if m != nil { - return m.Completed +func (*SystemInfo_Reply) ProtoMessage() {} + +func (x *SystemInfo_Reply) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[160] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return 0 + return mi.MessageOf(x) } -func (m *Progress) GetTotal() uint64 { - if m != nil { - return m.Total - } - return 0 +// Deprecated: Use SystemInfo_Reply.ProtoReflect.Descriptor instead. +func (*SystemInfo_Reply) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{74, 1} } -func (m *Progress) GetDelay() uint64 { - if m != nil { - return m.Delay +func (x *SystemInfo_Reply) GetProcess() *SystemInfo_Process { + if x != nil { + return x.Process } - return 0 + return nil } -type OutOfStoreMessage struct { - CID []byte `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"` - DevicePK []byte `protobuf:"bytes,2,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` - Counter uint64 `protobuf:"fixed64,3,opt,name=counter,proto3" json:"counter,omitempty"` - Sig []byte `protobuf:"bytes,4,opt,name=sig,proto3" json:"sig,omitempty"` - Flags uint32 `protobuf:"fixed32,5,opt,name=flags,proto3" json:"flags,omitempty"` - EncryptedPayload []byte `protobuf:"bytes,6,opt,name=encrypted_payload,json=encryptedPayload,proto3" json:"encrypted_payload,omitempty"` - Nonce []byte `protobuf:"bytes,7,opt,name=nonce,proto3" json:"nonce,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *OutOfStoreMessage) Reset() { *m = OutOfStoreMessage{} } -func (m *OutOfStoreMessage) String() string { return proto.CompactTextString(m) } -func (*OutOfStoreMessage) ProtoMessage() {} -func (*OutOfStoreMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{77} -} -func (m *OutOfStoreMessage) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *OutOfStoreMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_OutOfStoreMessage.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *OutOfStoreMessage) XXX_Merge(src proto.Message) { - xxx_messageInfo_OutOfStoreMessage.Merge(m, src) -} -func (m *OutOfStoreMessage) XXX_Size() int { - return m.Size() -} -func (m *OutOfStoreMessage) XXX_DiscardUnknown() { - xxx_messageInfo_OutOfStoreMessage.DiscardUnknown(m) -} - -var xxx_messageInfo_OutOfStoreMessage proto.InternalMessageInfo - -func (m *OutOfStoreMessage) GetCID() []byte { - if m != nil { - return m.CID +func (x *SystemInfo_Reply) GetP2P() *SystemInfo_P2P { + if x != nil { + return x.P2P } return nil } -func (m *OutOfStoreMessage) GetDevicePK() []byte { - if m != nil { - return m.DevicePK +func (x *SystemInfo_Reply) GetOrbitdb() *SystemInfo_OrbitDB { + if x != nil { + return x.Orbitdb } return nil } -func (m *OutOfStoreMessage) GetCounter() uint64 { - if m != nil { - return m.Counter - } - return 0 -} - -func (m *OutOfStoreMessage) GetSig() []byte { - if m != nil { - return m.Sig +func (x *SystemInfo_Reply) GetWarns() []string { + if x != nil { + return x.Warns } return nil } -func (m *OutOfStoreMessage) GetFlags() uint32 { - if m != nil { - return m.Flags - } - return 0 -} +type SystemInfo_OrbitDB struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *OutOfStoreMessage) GetEncryptedPayload() []byte { - if m != nil { - return m.EncryptedPayload - } - return nil + AccountMetadata *SystemInfo_OrbitDB_ReplicationStatus `protobuf:"bytes,1,opt,name=account_metadata,json=accountMetadata,proto3" json:"account_metadata,omitempty"` } -func (m *OutOfStoreMessage) GetNonce() []byte { - if m != nil { - return m.Nonce +func (x *SystemInfo_OrbitDB) Reset() { + *x = SystemInfo_OrbitDB{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[161] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type OutOfStoreMessageEnvelope struct { - Nonce []byte `protobuf:"bytes,1,opt,name=nonce,proto3" json:"nonce,omitempty"` - Box []byte `protobuf:"bytes,2,opt,name=box,proto3" json:"box,omitempty"` - GroupReference []byte `protobuf:"bytes,3,opt,name=group_reference,json=groupReference,proto3" json:"group_reference,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *SystemInfo_OrbitDB) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *OutOfStoreMessageEnvelope) Reset() { *m = OutOfStoreMessageEnvelope{} } -func (m *OutOfStoreMessageEnvelope) String() string { return proto.CompactTextString(m) } -func (*OutOfStoreMessageEnvelope) ProtoMessage() {} -func (*OutOfStoreMessageEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{78} -} -func (m *OutOfStoreMessageEnvelope) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *OutOfStoreMessageEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_OutOfStoreMessageEnvelope.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*SystemInfo_OrbitDB) ProtoMessage() {} + +func (x *SystemInfo_OrbitDB) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[161] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *OutOfStoreMessageEnvelope) XXX_Merge(src proto.Message) { - xxx_messageInfo_OutOfStoreMessageEnvelope.Merge(m, src) -} -func (m *OutOfStoreMessageEnvelope) XXX_Size() int { - return m.Size() -} -func (m *OutOfStoreMessageEnvelope) XXX_DiscardUnknown() { - xxx_messageInfo_OutOfStoreMessageEnvelope.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_OutOfStoreMessageEnvelope proto.InternalMessageInfo - -func (m *OutOfStoreMessageEnvelope) GetNonce() []byte { - if m != nil { - return m.Nonce - } - return nil +// Deprecated: Use SystemInfo_OrbitDB.ProtoReflect.Descriptor instead. +func (*SystemInfo_OrbitDB) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{74, 2} } -func (m *OutOfStoreMessageEnvelope) GetBox() []byte { - if m != nil { - return m.Box +func (x *SystemInfo_OrbitDB) GetAccountMetadata() *SystemInfo_OrbitDB_ReplicationStatus { + if x != nil { + return x.AccountMetadata } return nil } -func (m *OutOfStoreMessageEnvelope) GetGroupReference() []byte { - if m != nil { - return m.GroupReference - } - return nil -} +type SystemInfo_P2P struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type OutOfStoreReceive struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ConnectedPeers int64 `protobuf:"varint,1,opt,name=connected_peers,json=connectedPeers,proto3" json:"connected_peers,omitempty"` } -func (m *OutOfStoreReceive) Reset() { *m = OutOfStoreReceive{} } -func (m *OutOfStoreReceive) String() string { return proto.CompactTextString(m) } -func (*OutOfStoreReceive) ProtoMessage() {} -func (*OutOfStoreReceive) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{79} -} -func (m *OutOfStoreReceive) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *OutOfStoreReceive) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_OutOfStoreReceive.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *SystemInfo_P2P) Reset() { + *x = SystemInfo_P2P{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[162] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *OutOfStoreReceive) XXX_Merge(src proto.Message) { - xxx_messageInfo_OutOfStoreReceive.Merge(m, src) -} -func (m *OutOfStoreReceive) XXX_Size() int { - return m.Size() -} -func (m *OutOfStoreReceive) XXX_DiscardUnknown() { - xxx_messageInfo_OutOfStoreReceive.DiscardUnknown(m) -} -var xxx_messageInfo_OutOfStoreReceive proto.InternalMessageInfo - -type OutOfStoreReceive_Request struct { - Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *SystemInfo_P2P) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *OutOfStoreReceive_Request) Reset() { *m = OutOfStoreReceive_Request{} } -func (m *OutOfStoreReceive_Request) String() string { return proto.CompactTextString(m) } -func (*OutOfStoreReceive_Request) ProtoMessage() {} -func (*OutOfStoreReceive_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{79, 0} -} -func (m *OutOfStoreReceive_Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *OutOfStoreReceive_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_OutOfStoreReceive_Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*SystemInfo_P2P) ProtoMessage() {} + +func (x *SystemInfo_P2P) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[162] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *OutOfStoreReceive_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_OutOfStoreReceive_Request.Merge(m, src) -} -func (m *OutOfStoreReceive_Request) XXX_Size() int { - return m.Size() -} -func (m *OutOfStoreReceive_Request) XXX_DiscardUnknown() { - xxx_messageInfo_OutOfStoreReceive_Request.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_OutOfStoreReceive_Request proto.InternalMessageInfo +// Deprecated: Use SystemInfo_P2P.ProtoReflect.Descriptor instead. +func (*SystemInfo_P2P) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{74, 3} +} -func (m *OutOfStoreReceive_Request) GetPayload() []byte { - if m != nil { - return m.Payload +func (x *SystemInfo_P2P) GetConnectedPeers() int64 { + if x != nil { + return x.ConnectedPeers } - return nil + return 0 } -type OutOfStoreReceive_Reply struct { - Message *OutOfStoreMessage `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` - Cleartext []byte `protobuf:"bytes,2,opt,name=cleartext,proto3" json:"cleartext,omitempty"` - GroupPublicKey []byte `protobuf:"bytes,3,opt,name=group_public_key,json=groupPublicKey,proto3" json:"group_public_key,omitempty"` - AlreadyReceived bool `protobuf:"varint,4,opt,name=already_received,json=alreadyReceived,proto3" json:"already_received,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *OutOfStoreReceive_Reply) Reset() { *m = OutOfStoreReceive_Reply{} } -func (m *OutOfStoreReceive_Reply) String() string { return proto.CompactTextString(m) } -func (*OutOfStoreReceive_Reply) ProtoMessage() {} -func (*OutOfStoreReceive_Reply) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{79, 1} -} -func (m *OutOfStoreReceive_Reply) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) +type SystemInfo_Process struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` + VcsRef string `protobuf:"bytes,2,opt,name=vcs_ref,json=vcsRef,proto3" json:"vcs_ref,omitempty"` + UptimeMs int64 `protobuf:"varint,3,opt,name=uptime_ms,json=uptimeMs,proto3" json:"uptime_ms,omitempty"` + UserCpuTimeMs int64 `protobuf:"varint,10,opt,name=user_cpu_time_ms,json=userCpuTimeMs,proto3" json:"user_cpu_time_ms,omitempty"` + SystemCpuTimeMs int64 `protobuf:"varint,11,opt,name=system_cpu_time_ms,json=systemCpuTimeMs,proto3" json:"system_cpu_time_ms,omitempty"` + StartedAt int64 `protobuf:"varint,12,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` + RlimitCur uint64 `protobuf:"varint,13,opt,name=rlimit_cur,json=rlimitCur,proto3" json:"rlimit_cur,omitempty"` + NumGoroutine int64 `protobuf:"varint,14,opt,name=num_goroutine,json=numGoroutine,proto3" json:"num_goroutine,omitempty"` + Nofile int64 `protobuf:"varint,15,opt,name=nofile,proto3" json:"nofile,omitempty"` + TooManyOpenFiles bool `protobuf:"varint,16,opt,name=too_many_open_files,json=tooManyOpenFiles,proto3" json:"too_many_open_files,omitempty"` + NumCpu int64 `protobuf:"varint,17,opt,name=num_cpu,json=numCpu,proto3" json:"num_cpu,omitempty"` + GoVersion string `protobuf:"bytes,18,opt,name=go_version,json=goVersion,proto3" json:"go_version,omitempty"` + OperatingSystem string `protobuf:"bytes,19,opt,name=operating_system,json=operatingSystem,proto3" json:"operating_system,omitempty"` + HostName string `protobuf:"bytes,20,opt,name=host_name,json=hostName,proto3" json:"host_name,omitempty"` + Arch string `protobuf:"bytes,21,opt,name=arch,proto3" json:"arch,omitempty"` + RlimitMax uint64 `protobuf:"varint,22,opt,name=rlimit_max,json=rlimitMax,proto3" json:"rlimit_max,omitempty"` + Pid int64 `protobuf:"varint,23,opt,name=pid,proto3" json:"pid,omitempty"` + Ppid int64 `protobuf:"varint,24,opt,name=ppid,proto3" json:"ppid,omitempty"` + Priority int64 `protobuf:"varint,25,opt,name=priority,proto3" json:"priority,omitempty"` + Uid int64 `protobuf:"varint,26,opt,name=uid,proto3" json:"uid,omitempty"` + WorkingDir string `protobuf:"bytes,27,opt,name=working_dir,json=workingDir,proto3" json:"working_dir,omitempty"` + SystemUsername string `protobuf:"bytes,28,opt,name=system_username,json=systemUsername,proto3" json:"system_username,omitempty"` +} + +func (x *SystemInfo_Process) Reset() { + *x = SystemInfo_Process{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[163] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SystemInfo_Process) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SystemInfo_Process) ProtoMessage() {} + +func (x *SystemInfo_Process) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[163] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SystemInfo_Process.ProtoReflect.Descriptor instead. +func (*SystemInfo_Process) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{74, 4} } -func (m *OutOfStoreReceive_Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_OutOfStoreReceive_Reply.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil + +func (x *SystemInfo_Process) GetVersion() string { + if x != nil { + return x.Version } -} -func (m *OutOfStoreReceive_Reply) XXX_Merge(src proto.Message) { - xxx_messageInfo_OutOfStoreReceive_Reply.Merge(m, src) -} -func (m *OutOfStoreReceive_Reply) XXX_Size() int { - return m.Size() -} -func (m *OutOfStoreReceive_Reply) XXX_DiscardUnknown() { - xxx_messageInfo_OutOfStoreReceive_Reply.DiscardUnknown(m) + return "" } -var xxx_messageInfo_OutOfStoreReceive_Reply proto.InternalMessageInfo - -func (m *OutOfStoreReceive_Reply) GetMessage() *OutOfStoreMessage { - if m != nil { - return m.Message +func (x *SystemInfo_Process) GetVcsRef() string { + if x != nil { + return x.VcsRef } - return nil + return "" } -func (m *OutOfStoreReceive_Reply) GetCleartext() []byte { - if m != nil { - return m.Cleartext +func (x *SystemInfo_Process) GetUptimeMs() int64 { + if x != nil { + return x.UptimeMs } - return nil + return 0 } -func (m *OutOfStoreReceive_Reply) GetGroupPublicKey() []byte { - if m != nil { - return m.GroupPublicKey +func (x *SystemInfo_Process) GetUserCpuTimeMs() int64 { + if x != nil { + return x.UserCpuTimeMs } - return nil + return 0 } -func (m *OutOfStoreReceive_Reply) GetAlreadyReceived() bool { - if m != nil { - return m.AlreadyReceived +func (x *SystemInfo_Process) GetSystemCpuTimeMs() int64 { + if x != nil { + return x.SystemCpuTimeMs } - return false + return 0 } -type OutOfStoreSeal struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *SystemInfo_Process) GetStartedAt() int64 { + if x != nil { + return x.StartedAt + } + return 0 } -func (m *OutOfStoreSeal) Reset() { *m = OutOfStoreSeal{} } -func (m *OutOfStoreSeal) String() string { return proto.CompactTextString(m) } -func (*OutOfStoreSeal) ProtoMessage() {} -func (*OutOfStoreSeal) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{80} -} -func (m *OutOfStoreSeal) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *OutOfStoreSeal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_OutOfStoreSeal.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *SystemInfo_Process) GetRlimitCur() uint64 { + if x != nil { + return x.RlimitCur } -} -func (m *OutOfStoreSeal) XXX_Merge(src proto.Message) { - xxx_messageInfo_OutOfStoreSeal.Merge(m, src) -} -func (m *OutOfStoreSeal) XXX_Size() int { - return m.Size() -} -func (m *OutOfStoreSeal) XXX_DiscardUnknown() { - xxx_messageInfo_OutOfStoreSeal.DiscardUnknown(m) + return 0 } -var xxx_messageInfo_OutOfStoreSeal proto.InternalMessageInfo - -type OutOfStoreSeal_Request struct { - CID []byte `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"` - GroupPublicKey []byte `protobuf:"bytes,2,opt,name=group_public_key,json=groupPublicKey,proto3" json:"group_public_key,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *SystemInfo_Process) GetNumGoroutine() int64 { + if x != nil { + return x.NumGoroutine + } + return 0 } -func (m *OutOfStoreSeal_Request) Reset() { *m = OutOfStoreSeal_Request{} } -func (m *OutOfStoreSeal_Request) String() string { return proto.CompactTextString(m) } -func (*OutOfStoreSeal_Request) ProtoMessage() {} -func (*OutOfStoreSeal_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{80, 0} -} -func (m *OutOfStoreSeal_Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *OutOfStoreSeal_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_OutOfStoreSeal_Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *SystemInfo_Process) GetNofile() int64 { + if x != nil { + return x.Nofile } -} -func (m *OutOfStoreSeal_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_OutOfStoreSeal_Request.Merge(m, src) -} -func (m *OutOfStoreSeal_Request) XXX_Size() int { - return m.Size() -} -func (m *OutOfStoreSeal_Request) XXX_DiscardUnknown() { - xxx_messageInfo_OutOfStoreSeal_Request.DiscardUnknown(m) + return 0 } -var xxx_messageInfo_OutOfStoreSeal_Request proto.InternalMessageInfo - -func (m *OutOfStoreSeal_Request) GetCID() []byte { - if m != nil { - return m.CID +func (x *SystemInfo_Process) GetTooManyOpenFiles() bool { + if x != nil { + return x.TooManyOpenFiles } - return nil + return false } -func (m *OutOfStoreSeal_Request) GetGroupPublicKey() []byte { - if m != nil { - return m.GroupPublicKey +func (x *SystemInfo_Process) GetNumCpu() int64 { + if x != nil { + return x.NumCpu } - return nil + return 0 } -type OutOfStoreSeal_Reply struct { - Encrypted []byte `protobuf:"bytes,1,opt,name=encrypted,proto3" json:"encrypted,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *SystemInfo_Process) GetGoVersion() string { + if x != nil { + return x.GoVersion + } + return "" } -func (m *OutOfStoreSeal_Reply) Reset() { *m = OutOfStoreSeal_Reply{} } -func (m *OutOfStoreSeal_Reply) String() string { return proto.CompactTextString(m) } -func (*OutOfStoreSeal_Reply) ProtoMessage() {} -func (*OutOfStoreSeal_Reply) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{80, 1} -} -func (m *OutOfStoreSeal_Reply) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *OutOfStoreSeal_Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_OutOfStoreSeal_Reply.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *SystemInfo_Process) GetOperatingSystem() string { + if x != nil { + return x.OperatingSystem } -} -func (m *OutOfStoreSeal_Reply) XXX_Merge(src proto.Message) { - xxx_messageInfo_OutOfStoreSeal_Reply.Merge(m, src) -} -func (m *OutOfStoreSeal_Reply) XXX_Size() int { - return m.Size() -} -func (m *OutOfStoreSeal_Reply) XXX_DiscardUnknown() { - xxx_messageInfo_OutOfStoreSeal_Reply.DiscardUnknown(m) + return "" } -var xxx_messageInfo_OutOfStoreSeal_Reply proto.InternalMessageInfo - -func (m *OutOfStoreSeal_Reply) GetEncrypted() []byte { - if m != nil { - return m.Encrypted +func (x *SystemInfo_Process) GetHostName() string { + if x != nil { + return x.HostName } - return nil + return "" } -type AccountVerifiedCredentialRegistered struct { - // device_pk is the public key of the device sending the message - DevicePK []byte `protobuf:"bytes,1,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` - SignedIdentityPublicKey []byte `protobuf:"bytes,2,opt,name=signed_identity_public_key,json=signedIdentityPublicKey,proto3" json:"signed_identity_public_key,omitempty"` - VerifiedCredential string `protobuf:"bytes,3,opt,name=verified_credential,json=verifiedCredential,proto3" json:"verified_credential,omitempty"` - RegistrationDate int64 `protobuf:"varint,4,opt,name=registration_date,json=registrationDate,proto3" json:"registration_date,omitempty"` - ExpirationDate int64 `protobuf:"varint,5,opt,name=expiration_date,json=expirationDate,proto3" json:"expiration_date,omitempty"` - Identifier string `protobuf:"bytes,6,opt,name=identifier,proto3" json:"identifier,omitempty"` - Issuer string `protobuf:"bytes,7,opt,name=issuer,proto3" json:"issuer,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AccountVerifiedCredentialRegistered) Reset() { *m = AccountVerifiedCredentialRegistered{} } -func (m *AccountVerifiedCredentialRegistered) String() string { return proto.CompactTextString(m) } -func (*AccountVerifiedCredentialRegistered) ProtoMessage() {} -func (*AccountVerifiedCredentialRegistered) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{81} -} -func (m *AccountVerifiedCredentialRegistered) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AccountVerifiedCredentialRegistered) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AccountVerifiedCredentialRegistered.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *SystemInfo_Process) GetArch() string { + if x != nil { + return x.Arch } + return "" } -func (m *AccountVerifiedCredentialRegistered) XXX_Merge(src proto.Message) { - xxx_messageInfo_AccountVerifiedCredentialRegistered.Merge(m, src) -} -func (m *AccountVerifiedCredentialRegistered) XXX_Size() int { - return m.Size() -} -func (m *AccountVerifiedCredentialRegistered) XXX_DiscardUnknown() { - xxx_messageInfo_AccountVerifiedCredentialRegistered.DiscardUnknown(m) -} - -var xxx_messageInfo_AccountVerifiedCredentialRegistered proto.InternalMessageInfo -func (m *AccountVerifiedCredentialRegistered) GetDevicePK() []byte { - if m != nil { - return m.DevicePK +func (x *SystemInfo_Process) GetRlimitMax() uint64 { + if x != nil { + return x.RlimitMax } - return nil + return 0 } -func (m *AccountVerifiedCredentialRegistered) GetSignedIdentityPublicKey() []byte { - if m != nil { - return m.SignedIdentityPublicKey +func (x *SystemInfo_Process) GetPid() int64 { + if x != nil { + return x.Pid } - return nil + return 0 } -func (m *AccountVerifiedCredentialRegistered) GetVerifiedCredential() string { - if m != nil { - return m.VerifiedCredential +func (x *SystemInfo_Process) GetPpid() int64 { + if x != nil { + return x.Ppid } - return "" + return 0 } -func (m *AccountVerifiedCredentialRegistered) GetRegistrationDate() int64 { - if m != nil { - return m.RegistrationDate +func (x *SystemInfo_Process) GetPriority() int64 { + if x != nil { + return x.Priority } return 0 } -func (m *AccountVerifiedCredentialRegistered) GetExpirationDate() int64 { - if m != nil { - return m.ExpirationDate +func (x *SystemInfo_Process) GetUid() int64 { + if x != nil { + return x.Uid } return 0 } -func (m *AccountVerifiedCredentialRegistered) GetIdentifier() string { - if m != nil { - return m.Identifier +func (x *SystemInfo_Process) GetWorkingDir() string { + if x != nil { + return x.WorkingDir } return "" } -func (m *AccountVerifiedCredentialRegistered) GetIssuer() string { - if m != nil { - return m.Issuer +func (x *SystemInfo_Process) GetSystemUsername() string { + if x != nil { + return x.SystemUsername } return "" } -type FirstLastCounters struct { - First uint64 `protobuf:"varint,1,opt,name=first,proto3" json:"first,omitempty"` - Last uint64 `protobuf:"varint,2,opt,name=last,proto3" json:"last,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type SystemInfo_OrbitDB_ReplicationStatus struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Progress int64 `protobuf:"varint,1,opt,name=progress,proto3" json:"progress,omitempty"` + Maximum int64 `protobuf:"varint,2,opt,name=maximum,proto3" json:"maximum,omitempty"` + Buffered int64 `protobuf:"varint,3,opt,name=buffered,proto3" json:"buffered,omitempty"` + Queued int64 `protobuf:"varint,4,opt,name=queued,proto3" json:"queued,omitempty"` } -func (m *FirstLastCounters) Reset() { *m = FirstLastCounters{} } -func (m *FirstLastCounters) String() string { return proto.CompactTextString(m) } -func (*FirstLastCounters) ProtoMessage() {} -func (*FirstLastCounters) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{82} +func (x *SystemInfo_OrbitDB_ReplicationStatus) Reset() { + *x = SystemInfo_OrbitDB_ReplicationStatus{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[164] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *FirstLastCounters) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *SystemInfo_OrbitDB_ReplicationStatus) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *FirstLastCounters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_FirstLastCounters.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*SystemInfo_OrbitDB_ReplicationStatus) ProtoMessage() {} + +func (x *SystemInfo_OrbitDB_ReplicationStatus) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[164] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *FirstLastCounters) XXX_Merge(src proto.Message) { - xxx_messageInfo_FirstLastCounters.Merge(m, src) -} -func (m *FirstLastCounters) XXX_Size() int { - return m.Size() + +// Deprecated: Use SystemInfo_OrbitDB_ReplicationStatus.ProtoReflect.Descriptor instead. +func (*SystemInfo_OrbitDB_ReplicationStatus) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{74, 2, 0} } -func (m *FirstLastCounters) XXX_DiscardUnknown() { - xxx_messageInfo_FirstLastCounters.DiscardUnknown(m) + +func (x *SystemInfo_OrbitDB_ReplicationStatus) GetProgress() int64 { + if x != nil { + return x.Progress + } + return 0 } -var xxx_messageInfo_FirstLastCounters proto.InternalMessageInfo +func (x *SystemInfo_OrbitDB_ReplicationStatus) GetMaximum() int64 { + if x != nil { + return x.Maximum + } + return 0 +} -func (m *FirstLastCounters) GetFirst() uint64 { - if m != nil { - return m.First +func (x *SystemInfo_OrbitDB_ReplicationStatus) GetBuffered() int64 { + if x != nil { + return x.Buffered } return 0 } -func (m *FirstLastCounters) GetLast() uint64 { - if m != nil { - return m.Last +func (x *SystemInfo_OrbitDB_ReplicationStatus) GetQueued() int64 { + if x != nil { + return x.Queued } return 0 } -// OrbitDBMessageHeads is the payload sent on orbitdb to share peer's heads -type OrbitDBMessageHeads struct { - // sealed box should contain encrypted Box - SealedBox []byte `protobuf:"bytes,2,opt,name=sealed_box,json=sealedBox,proto3" json:"sealed_box,omitempty"` - // current topic used - RawRotation []byte `protobuf:"bytes,3,opt,name=raw_rotation,json=rawRotation,proto3" json:"raw_rotation,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type PeerList_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *OrbitDBMessageHeads) Reset() { *m = OrbitDBMessageHeads{} } -func (m *OrbitDBMessageHeads) String() string { return proto.CompactTextString(m) } -func (*OrbitDBMessageHeads) ProtoMessage() {} -func (*OrbitDBMessageHeads) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{83} +func (x *PeerList_Request) Reset() { + *x = PeerList_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[165] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *OrbitDBMessageHeads) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *PeerList_Request) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *OrbitDBMessageHeads) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_OrbitDBMessageHeads.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*PeerList_Request) ProtoMessage() {} + +func (x *PeerList_Request) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[165] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) +} + +// Deprecated: Use PeerList_Request.ProtoReflect.Descriptor instead. +func (*PeerList_Request) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{75, 0} } -func (m *OrbitDBMessageHeads) XXX_Merge(src proto.Message) { - xxx_messageInfo_OrbitDBMessageHeads.Merge(m, src) + +type PeerList_Reply struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Peers []*PeerList_Peer `protobuf:"bytes,1,rep,name=peers,proto3" json:"peers,omitempty"` } -func (m *OrbitDBMessageHeads) XXX_Size() int { - return m.Size() + +func (x *PeerList_Reply) Reset() { + *x = PeerList_Reply{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[166] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *OrbitDBMessageHeads) XXX_DiscardUnknown() { - xxx_messageInfo_OrbitDBMessageHeads.DiscardUnknown(m) + +func (x *PeerList_Reply) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_OrbitDBMessageHeads proto.InternalMessageInfo +func (*PeerList_Reply) ProtoMessage() {} -func (m *OrbitDBMessageHeads) GetSealedBox() []byte { - if m != nil { - return m.SealedBox +func (x *PeerList_Reply) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[166] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return nil + return mi.MessageOf(x) +} + +// Deprecated: Use PeerList_Reply.ProtoReflect.Descriptor instead. +func (*PeerList_Reply) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{75, 1} } -func (m *OrbitDBMessageHeads) GetRawRotation() []byte { - if m != nil { - return m.RawRotation +func (x *PeerList_Reply) GetPeers() []*PeerList_Peer { + if x != nil { + return x.Peers } return nil } -type OrbitDBMessageHeads_Box struct { - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - Heads []byte `protobuf:"bytes,2,opt,name=heads,proto3" json:"heads,omitempty"` - DevicePK []byte `protobuf:"bytes,3,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` - PeerID []byte `protobuf:"bytes,4,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *OrbitDBMessageHeads_Box) Reset() { *m = OrbitDBMessageHeads_Box{} } -func (m *OrbitDBMessageHeads_Box) String() string { return proto.CompactTextString(m) } -func (*OrbitDBMessageHeads_Box) ProtoMessage() {} -func (*OrbitDBMessageHeads_Box) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{83, 0} -} -func (m *OrbitDBMessageHeads_Box) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) +type PeerList_Peer struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // id is the libp2p.PeerID. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // routes are the list of active and known maddr. + Routes []*PeerList_Route `protobuf:"bytes,2,rep,name=routes,proto3" json:"routes,omitempty"` + // errors is a list of errors related to the peer. + Errors []string `protobuf:"bytes,3,rep,name=errors,proto3" json:"errors,omitempty"` + // Features is a list of available features. + Features []PeerList_Feature `protobuf:"varint,4,rep,packed,name=features,proto3,enum=weshnet.protocol.v1.PeerList_Feature" json:"features,omitempty"` + // MinLatency is the minimum latency across all the peer routes. + MinLatency int64 `protobuf:"varint,5,opt,name=min_latency,json=minLatency,proto3" json:"min_latency,omitempty"` + // IsActive is true if at least one of the route is active. + IsActive bool `protobuf:"varint,6,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"` + // Direction is the aggregate of all the routes's direction. + Direction Direction `protobuf:"varint,7,opt,name=direction,proto3,enum=weshnet.protocol.v1.Direction" json:"direction,omitempty"` } -func (m *OrbitDBMessageHeads_Box) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_OrbitDBMessageHeads_Box.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil + +func (x *PeerList_Peer) Reset() { + *x = PeerList_Peer{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[167] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *OrbitDBMessageHeads_Box) XXX_Merge(src proto.Message) { - xxx_messageInfo_OrbitDBMessageHeads_Box.Merge(m, src) -} -func (m *OrbitDBMessageHeads_Box) XXX_Size() int { - return m.Size() + +func (x *PeerList_Peer) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *OrbitDBMessageHeads_Box) XXX_DiscardUnknown() { - xxx_messageInfo_OrbitDBMessageHeads_Box.DiscardUnknown(m) + +func (*PeerList_Peer) ProtoMessage() {} + +func (x *PeerList_Peer) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[167] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_OrbitDBMessageHeads_Box proto.InternalMessageInfo +// Deprecated: Use PeerList_Peer.ProtoReflect.Descriptor instead. +func (*PeerList_Peer) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{75, 2} +} -func (m *OrbitDBMessageHeads_Box) GetAddress() string { - if m != nil { - return m.Address +func (x *PeerList_Peer) GetId() string { + if x != nil { + return x.Id } return "" } -func (m *OrbitDBMessageHeads_Box) GetHeads() []byte { - if m != nil { - return m.Heads +func (x *PeerList_Peer) GetRoutes() []*PeerList_Route { + if x != nil { + return x.Routes } return nil } -func (m *OrbitDBMessageHeads_Box) GetDevicePK() []byte { - if m != nil { - return m.DevicePK +func (x *PeerList_Peer) GetErrors() []string { + if x != nil { + return x.Errors } return nil } -func (m *OrbitDBMessageHeads_Box) GetPeerID() []byte { - if m != nil { - return m.PeerID +func (x *PeerList_Peer) GetFeatures() []PeerList_Feature { + if x != nil { + return x.Features } return nil } -type RefreshContactRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *PeerList_Peer) GetMinLatency() int64 { + if x != nil { + return x.MinLatency + } + return 0 } -func (m *RefreshContactRequest) Reset() { *m = RefreshContactRequest{} } -func (m *RefreshContactRequest) String() string { return proto.CompactTextString(m) } -func (*RefreshContactRequest) ProtoMessage() {} -func (*RefreshContactRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{84} -} -func (m *RefreshContactRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RefreshContactRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RefreshContactRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *PeerList_Peer) GetIsActive() bool { + if x != nil { + return x.IsActive } + return false } -func (m *RefreshContactRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RefreshContactRequest.Merge(m, src) -} -func (m *RefreshContactRequest) XXX_Size() int { - return m.Size() -} -func (m *RefreshContactRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RefreshContactRequest.DiscardUnknown(m) + +func (x *PeerList_Peer) GetDirection() Direction { + if x != nil { + return x.Direction + } + return Direction_UnknownDir } -var xxx_messageInfo_RefreshContactRequest proto.InternalMessageInfo +type PeerList_Route struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -type RefreshContactRequest_Peer struct { - // id is the libp2p.PeerID. - ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // list of peers multiaddrs. - Addrs []string `protobuf:"bytes,2,rep,name=addrs,proto3" json:"addrs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // IsActive indicates whether the address is currently used or just known. + IsActive bool `protobuf:"varint,1,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"` + // Address is the multiaddress via which we are connected with the peer. + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + // Direction is which way the connection was established. + Direction Direction `protobuf:"varint,3,opt,name=direction,proto3,enum=weshnet.protocol.v1.Direction" json:"direction,omitempty"` + // Latency is the last known round trip time to the peer in ms. + Latency int64 `protobuf:"varint,4,opt,name=latency,proto3" json:"latency,omitempty"` + // Streams returns list of streams established with the peer. + Streams []*PeerList_Stream `protobuf:"bytes,5,rep,name=streams,proto3" json:"streams,omitempty"` } -func (m *RefreshContactRequest_Peer) Reset() { *m = RefreshContactRequest_Peer{} } -func (m *RefreshContactRequest_Peer) String() string { return proto.CompactTextString(m) } -func (*RefreshContactRequest_Peer) ProtoMessage() {} -func (*RefreshContactRequest_Peer) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{84, 0} +func (x *PeerList_Route) Reset() { + *x = PeerList_Route{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[168] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *RefreshContactRequest_Peer) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *PeerList_Route) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *RefreshContactRequest_Peer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RefreshContactRequest_Peer.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*PeerList_Route) ProtoMessage() {} + +func (x *PeerList_Route) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[168] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *RefreshContactRequest_Peer) XXX_Merge(src proto.Message) { - xxx_messageInfo_RefreshContactRequest_Peer.Merge(m, src) + +// Deprecated: Use PeerList_Route.ProtoReflect.Descriptor instead. +func (*PeerList_Route) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{75, 3} } -func (m *RefreshContactRequest_Peer) XXX_Size() int { - return m.Size() + +func (x *PeerList_Route) GetIsActive() bool { + if x != nil { + return x.IsActive + } + return false } -func (m *RefreshContactRequest_Peer) XXX_DiscardUnknown() { - xxx_messageInfo_RefreshContactRequest_Peer.DiscardUnknown(m) + +func (x *PeerList_Route) GetAddress() string { + if x != nil { + return x.Address + } + return "" } -var xxx_messageInfo_RefreshContactRequest_Peer proto.InternalMessageInfo +func (x *PeerList_Route) GetDirection() Direction { + if x != nil { + return x.Direction + } + return Direction_UnknownDir +} -func (m *RefreshContactRequest_Peer) GetID() string { - if m != nil { - return m.ID +func (x *PeerList_Route) GetLatency() int64 { + if x != nil { + return x.Latency } - return "" + return 0 } -func (m *RefreshContactRequest_Peer) GetAddrs() []string { - if m != nil { - return m.Addrs +func (x *PeerList_Route) GetStreams() []*PeerList_Stream { + if x != nil { + return x.Streams } return nil } -type RefreshContactRequest_Request struct { - ContactPK []byte `protobuf:"bytes,1,opt,name=contact_pk,json=contactPk,proto3" json:"contact_pk,omitempty"` - // timeout in second - Timeout int64 `protobuf:"varint,2,opt,name=timeout,proto3" json:"timeout,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +type PeerList_Stream struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // id is an identifier used to write protocol headers in streams. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` } -func (m *RefreshContactRequest_Request) Reset() { *m = RefreshContactRequest_Request{} } -func (m *RefreshContactRequest_Request) String() string { return proto.CompactTextString(m) } -func (*RefreshContactRequest_Request) ProtoMessage() {} -func (*RefreshContactRequest_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{84, 1} +func (x *PeerList_Stream) Reset() { + *x = PeerList_Stream{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[169] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *RefreshContactRequest_Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RefreshContactRequest_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RefreshContactRequest_Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RefreshContactRequest_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_RefreshContactRequest_Request.Merge(m, src) -} -func (m *RefreshContactRequest_Request) XXX_Size() int { - return m.Size() -} -func (m *RefreshContactRequest_Request) XXX_DiscardUnknown() { - xxx_messageInfo_RefreshContactRequest_Request.DiscardUnknown(m) -} - -var xxx_messageInfo_RefreshContactRequest_Request proto.InternalMessageInfo -func (m *RefreshContactRequest_Request) GetContactPK() []byte { - if m != nil { - return m.ContactPK - } - return nil -} - -func (m *RefreshContactRequest_Request) GetTimeout() int64 { - if m != nil { - return m.Timeout - } - return 0 +func (x *PeerList_Stream) String() string { + return protoimpl.X.MessageStringOf(x) } -type RefreshContactRequest_Reply struct { - // peers found and successfully connected. - PeersFound []*RefreshContactRequest_Peer `protobuf:"bytes,1,rep,name=peers_found,json=peersFound,proto3" json:"peers_found,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} +func (*PeerList_Stream) ProtoMessage() {} -func (m *RefreshContactRequest_Reply) Reset() { *m = RefreshContactRequest_Reply{} } -func (m *RefreshContactRequest_Reply) String() string { return proto.CompactTextString(m) } -func (*RefreshContactRequest_Reply) ProtoMessage() {} -func (*RefreshContactRequest_Reply) Descriptor() ([]byte, []int) { - return fileDescriptor_8aa93e54ccb19003, []int{84, 2} -} -func (m *RefreshContactRequest_Reply) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RefreshContactRequest_Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RefreshContactRequest_Reply.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *PeerList_Stream) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[169] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil - } -} -func (m *RefreshContactRequest_Reply) XXX_Merge(src proto.Message) { - xxx_messageInfo_RefreshContactRequest_Reply.Merge(m, src) -} -func (m *RefreshContactRequest_Reply) XXX_Size() int { - return m.Size() -} -func (m *RefreshContactRequest_Reply) XXX_DiscardUnknown() { - xxx_messageInfo_RefreshContactRequest_Reply.DiscardUnknown(m) -} - -var xxx_messageInfo_RefreshContactRequest_Reply proto.InternalMessageInfo - -func (m *RefreshContactRequest_Reply) GetPeersFound() []*RefreshContactRequest_Peer { - if m != nil { - return m.PeersFound - } - return nil -} - -func init() { - proto.RegisterEnum("weshnet.protocol.v1.GroupType", GroupType_name, GroupType_value) - proto.RegisterEnum("weshnet.protocol.v1.EventType", EventType_name, EventType_value) - proto.RegisterEnum("weshnet.protocol.v1.DebugInspectGroupLogType", DebugInspectGroupLogType_name, DebugInspectGroupLogType_value) - proto.RegisterEnum("weshnet.protocol.v1.ContactState", ContactState_name, ContactState_value) - proto.RegisterEnum("weshnet.protocol.v1.Direction", Direction_name, Direction_value) - proto.RegisterEnum("weshnet.protocol.v1.ServiceGetConfiguration_SettingState", ServiceGetConfiguration_SettingState_name, ServiceGetConfiguration_SettingState_value) - proto.RegisterEnum("weshnet.protocol.v1.GroupDeviceStatus_Type", GroupDeviceStatus_Type_name, GroupDeviceStatus_Type_value) - proto.RegisterEnum("weshnet.protocol.v1.GroupDeviceStatus_Transport", GroupDeviceStatus_Transport_name, GroupDeviceStatus_Transport_value) - proto.RegisterEnum("weshnet.protocol.v1.PeerList_Feature", PeerList_Feature_name, PeerList_Feature_value) - proto.RegisterType((*Account)(nil), "weshnet.protocol.v1.Account") - proto.RegisterType((*Group)(nil), "weshnet.protocol.v1.Group") - proto.RegisterType((*GroupHeadsExport)(nil), "weshnet.protocol.v1.GroupHeadsExport") - proto.RegisterType((*GroupMetadata)(nil), "weshnet.protocol.v1.GroupMetadata") - proto.RegisterType((*GroupEnvelope)(nil), "weshnet.protocol.v1.GroupEnvelope") - proto.RegisterType((*MessageHeaders)(nil), "weshnet.protocol.v1.MessageHeaders") - proto.RegisterMapType((map[string]string)(nil), "weshnet.protocol.v1.MessageHeaders.MetadataEntry") - proto.RegisterType((*ProtocolMetadata)(nil), "weshnet.protocol.v1.ProtocolMetadata") - proto.RegisterType((*EncryptedMessage)(nil), "weshnet.protocol.v1.EncryptedMessage") - proto.RegisterType((*MessageEnvelope)(nil), "weshnet.protocol.v1.MessageEnvelope") - proto.RegisterType((*EventContext)(nil), "weshnet.protocol.v1.EventContext") - proto.RegisterType((*GroupMetadataPayloadSent)(nil), "weshnet.protocol.v1.GroupMetadataPayloadSent") - proto.RegisterType((*ContactAliasKeyAdded)(nil), "weshnet.protocol.v1.ContactAliasKeyAdded") - proto.RegisterType((*GroupMemberDeviceAdded)(nil), "weshnet.protocol.v1.GroupMemberDeviceAdded") - proto.RegisterType((*DeviceChainKey)(nil), "weshnet.protocol.v1.DeviceChainKey") - proto.RegisterType((*GroupDeviceChainKeyAdded)(nil), "weshnet.protocol.v1.GroupDeviceChainKeyAdded") - proto.RegisterType((*MultiMemberGroupAliasResolverAdded)(nil), "weshnet.protocol.v1.MultiMemberGroupAliasResolverAdded") - proto.RegisterType((*MultiMemberGroupAdminRoleGranted)(nil), "weshnet.protocol.v1.MultiMemberGroupAdminRoleGranted") - proto.RegisterType((*MultiMemberGroupInitialMemberAnnounced)(nil), "weshnet.protocol.v1.MultiMemberGroupInitialMemberAnnounced") - proto.RegisterType((*GroupAddAdditionalRendezvousSeed)(nil), "weshnet.protocol.v1.GroupAddAdditionalRendezvousSeed") - proto.RegisterType((*GroupRemoveAdditionalRendezvousSeed)(nil), "weshnet.protocol.v1.GroupRemoveAdditionalRendezvousSeed") - proto.RegisterType((*AccountGroupJoined)(nil), "weshnet.protocol.v1.AccountGroupJoined") - proto.RegisterType((*AccountGroupLeft)(nil), "weshnet.protocol.v1.AccountGroupLeft") - proto.RegisterType((*AccountContactRequestDisabled)(nil), "weshnet.protocol.v1.AccountContactRequestDisabled") - proto.RegisterType((*AccountContactRequestEnabled)(nil), "weshnet.protocol.v1.AccountContactRequestEnabled") - proto.RegisterType((*AccountContactRequestReferenceReset)(nil), "weshnet.protocol.v1.AccountContactRequestReferenceReset") - proto.RegisterType((*AccountContactRequestOutgoingEnqueued)(nil), "weshnet.protocol.v1.AccountContactRequestOutgoingEnqueued") - proto.RegisterType((*AccountContactRequestOutgoingSent)(nil), "weshnet.protocol.v1.AccountContactRequestOutgoingSent") - proto.RegisterType((*AccountContactRequestIncomingReceived)(nil), "weshnet.protocol.v1.AccountContactRequestIncomingReceived") - proto.RegisterType((*AccountContactRequestIncomingDiscarded)(nil), "weshnet.protocol.v1.AccountContactRequestIncomingDiscarded") - proto.RegisterType((*AccountContactRequestIncomingAccepted)(nil), "weshnet.protocol.v1.AccountContactRequestIncomingAccepted") - proto.RegisterType((*AccountContactBlocked)(nil), "weshnet.protocol.v1.AccountContactBlocked") - proto.RegisterType((*AccountContactUnblocked)(nil), "weshnet.protocol.v1.AccountContactUnblocked") - proto.RegisterType((*GroupReplicating)(nil), "weshnet.protocol.v1.GroupReplicating") - proto.RegisterType((*ServiceExportData)(nil), "weshnet.protocol.v1.ServiceExportData") - proto.RegisterType((*ServiceExportData_Request)(nil), "weshnet.protocol.v1.ServiceExportData.Request") - proto.RegisterType((*ServiceExportData_Reply)(nil), "weshnet.protocol.v1.ServiceExportData.Reply") - proto.RegisterType((*ServiceGetConfiguration)(nil), "weshnet.protocol.v1.ServiceGetConfiguration") - proto.RegisterType((*ServiceGetConfiguration_Request)(nil), "weshnet.protocol.v1.ServiceGetConfiguration.Request") - proto.RegisterType((*ServiceGetConfiguration_Reply)(nil), "weshnet.protocol.v1.ServiceGetConfiguration.Reply") - proto.RegisterType((*ContactRequestReference)(nil), "weshnet.protocol.v1.ContactRequestReference") - proto.RegisterType((*ContactRequestReference_Request)(nil), "weshnet.protocol.v1.ContactRequestReference.Request") - proto.RegisterType((*ContactRequestReference_Reply)(nil), "weshnet.protocol.v1.ContactRequestReference.Reply") - proto.RegisterType((*ContactRequestDisable)(nil), "weshnet.protocol.v1.ContactRequestDisable") - proto.RegisterType((*ContactRequestDisable_Request)(nil), "weshnet.protocol.v1.ContactRequestDisable.Request") - proto.RegisterType((*ContactRequestDisable_Reply)(nil), "weshnet.protocol.v1.ContactRequestDisable.Reply") - proto.RegisterType((*ContactRequestEnable)(nil), "weshnet.protocol.v1.ContactRequestEnable") - proto.RegisterType((*ContactRequestEnable_Request)(nil), "weshnet.protocol.v1.ContactRequestEnable.Request") - proto.RegisterType((*ContactRequestEnable_Reply)(nil), "weshnet.protocol.v1.ContactRequestEnable.Reply") - proto.RegisterType((*ContactRequestResetReference)(nil), "weshnet.protocol.v1.ContactRequestResetReference") - proto.RegisterType((*ContactRequestResetReference_Request)(nil), "weshnet.protocol.v1.ContactRequestResetReference.Request") - proto.RegisterType((*ContactRequestResetReference_Reply)(nil), "weshnet.protocol.v1.ContactRequestResetReference.Reply") - proto.RegisterType((*ContactRequestSend)(nil), "weshnet.protocol.v1.ContactRequestSend") - proto.RegisterType((*ContactRequestSend_Request)(nil), "weshnet.protocol.v1.ContactRequestSend.Request") - proto.RegisterType((*ContactRequestSend_Reply)(nil), "weshnet.protocol.v1.ContactRequestSend.Reply") - proto.RegisterType((*ContactRequestAccept)(nil), "weshnet.protocol.v1.ContactRequestAccept") - proto.RegisterType((*ContactRequestAccept_Request)(nil), "weshnet.protocol.v1.ContactRequestAccept.Request") - proto.RegisterType((*ContactRequestAccept_Reply)(nil), "weshnet.protocol.v1.ContactRequestAccept.Reply") - proto.RegisterType((*ContactRequestDiscard)(nil), "weshnet.protocol.v1.ContactRequestDiscard") - proto.RegisterType((*ContactRequestDiscard_Request)(nil), "weshnet.protocol.v1.ContactRequestDiscard.Request") - proto.RegisterType((*ContactRequestDiscard_Reply)(nil), "weshnet.protocol.v1.ContactRequestDiscard.Reply") - proto.RegisterType((*ShareContact)(nil), "weshnet.protocol.v1.ShareContact") - proto.RegisterType((*ShareContact_Request)(nil), "weshnet.protocol.v1.ShareContact.Request") - proto.RegisterType((*ShareContact_Reply)(nil), "weshnet.protocol.v1.ShareContact.Reply") - proto.RegisterType((*DecodeContact)(nil), "weshnet.protocol.v1.DecodeContact") - proto.RegisterType((*DecodeContact_Request)(nil), "weshnet.protocol.v1.DecodeContact.Request") - proto.RegisterType((*DecodeContact_Reply)(nil), "weshnet.protocol.v1.DecodeContact.Reply") - proto.RegisterType((*ContactBlock)(nil), "weshnet.protocol.v1.ContactBlock") - proto.RegisterType((*ContactBlock_Request)(nil), "weshnet.protocol.v1.ContactBlock.Request") - proto.RegisterType((*ContactBlock_Reply)(nil), "weshnet.protocol.v1.ContactBlock.Reply") - proto.RegisterType((*ContactUnblock)(nil), "weshnet.protocol.v1.ContactUnblock") - proto.RegisterType((*ContactUnblock_Request)(nil), "weshnet.protocol.v1.ContactUnblock.Request") - proto.RegisterType((*ContactUnblock_Reply)(nil), "weshnet.protocol.v1.ContactUnblock.Reply") - proto.RegisterType((*ContactAliasKeySend)(nil), "weshnet.protocol.v1.ContactAliasKeySend") - proto.RegisterType((*ContactAliasKeySend_Request)(nil), "weshnet.protocol.v1.ContactAliasKeySend.Request") - proto.RegisterType((*ContactAliasKeySend_Reply)(nil), "weshnet.protocol.v1.ContactAliasKeySend.Reply") - proto.RegisterType((*MultiMemberGroupCreate)(nil), "weshnet.protocol.v1.MultiMemberGroupCreate") - proto.RegisterType((*MultiMemberGroupCreate_Request)(nil), "weshnet.protocol.v1.MultiMemberGroupCreate.Request") - proto.RegisterType((*MultiMemberGroupCreate_Reply)(nil), "weshnet.protocol.v1.MultiMemberGroupCreate.Reply") - proto.RegisterType((*MultiMemberGroupJoin)(nil), "weshnet.protocol.v1.MultiMemberGroupJoin") - proto.RegisterType((*MultiMemberGroupJoin_Request)(nil), "weshnet.protocol.v1.MultiMemberGroupJoin.Request") - proto.RegisterType((*MultiMemberGroupJoin_Reply)(nil), "weshnet.protocol.v1.MultiMemberGroupJoin.Reply") - proto.RegisterType((*MultiMemberGroupLeave)(nil), "weshnet.protocol.v1.MultiMemberGroupLeave") - proto.RegisterType((*MultiMemberGroupLeave_Request)(nil), "weshnet.protocol.v1.MultiMemberGroupLeave.Request") - proto.RegisterType((*MultiMemberGroupLeave_Reply)(nil), "weshnet.protocol.v1.MultiMemberGroupLeave.Reply") - proto.RegisterType((*MultiMemberGroupAliasResolverDisclose)(nil), "weshnet.protocol.v1.MultiMemberGroupAliasResolverDisclose") - proto.RegisterType((*MultiMemberGroupAliasResolverDisclose_Request)(nil), "weshnet.protocol.v1.MultiMemberGroupAliasResolverDisclose.Request") - proto.RegisterType((*MultiMemberGroupAliasResolverDisclose_Reply)(nil), "weshnet.protocol.v1.MultiMemberGroupAliasResolverDisclose.Reply") - proto.RegisterType((*MultiMemberGroupAdminRoleGrant)(nil), "weshnet.protocol.v1.MultiMemberGroupAdminRoleGrant") - proto.RegisterType((*MultiMemberGroupAdminRoleGrant_Request)(nil), "weshnet.protocol.v1.MultiMemberGroupAdminRoleGrant.Request") - proto.RegisterType((*MultiMemberGroupAdminRoleGrant_Reply)(nil), "weshnet.protocol.v1.MultiMemberGroupAdminRoleGrant.Reply") - proto.RegisterType((*MultiMemberGroupInvitationCreate)(nil), "weshnet.protocol.v1.MultiMemberGroupInvitationCreate") - proto.RegisterType((*MultiMemberGroupInvitationCreate_Request)(nil), "weshnet.protocol.v1.MultiMemberGroupInvitationCreate.Request") - proto.RegisterType((*MultiMemberGroupInvitationCreate_Reply)(nil), "weshnet.protocol.v1.MultiMemberGroupInvitationCreate.Reply") - proto.RegisterType((*AppMetadataSend)(nil), "weshnet.protocol.v1.AppMetadataSend") - proto.RegisterType((*AppMetadataSend_Request)(nil), "weshnet.protocol.v1.AppMetadataSend.Request") - proto.RegisterType((*AppMetadataSend_Reply)(nil), "weshnet.protocol.v1.AppMetadataSend.Reply") - proto.RegisterType((*AppMessageSend)(nil), "weshnet.protocol.v1.AppMessageSend") - proto.RegisterType((*AppMessageSend_Request)(nil), "weshnet.protocol.v1.AppMessageSend.Request") - proto.RegisterType((*AppMessageSend_Reply)(nil), "weshnet.protocol.v1.AppMessageSend.Reply") - proto.RegisterType((*GroupMetadataEvent)(nil), "weshnet.protocol.v1.GroupMetadataEvent") - proto.RegisterType((*GroupMessageEvent)(nil), "weshnet.protocol.v1.GroupMessageEvent") - proto.RegisterType((*GroupMetadataList)(nil), "weshnet.protocol.v1.GroupMetadataList") - proto.RegisterType((*GroupMetadataList_Request)(nil), "weshnet.protocol.v1.GroupMetadataList.Request") - proto.RegisterType((*GroupMessageList)(nil), "weshnet.protocol.v1.GroupMessageList") - proto.RegisterType((*GroupMessageList_Request)(nil), "weshnet.protocol.v1.GroupMessageList.Request") - proto.RegisterType((*GroupInfo)(nil), "weshnet.protocol.v1.GroupInfo") - proto.RegisterType((*GroupInfo_Request)(nil), "weshnet.protocol.v1.GroupInfo.Request") - proto.RegisterType((*GroupInfo_Reply)(nil), "weshnet.protocol.v1.GroupInfo.Reply") - proto.RegisterType((*ActivateGroup)(nil), "weshnet.protocol.v1.ActivateGroup") - proto.RegisterType((*ActivateGroup_Request)(nil), "weshnet.protocol.v1.ActivateGroup.Request") - proto.RegisterType((*ActivateGroup_Reply)(nil), "weshnet.protocol.v1.ActivateGroup.Reply") - proto.RegisterType((*DeactivateGroup)(nil), "weshnet.protocol.v1.DeactivateGroup") - proto.RegisterType((*DeactivateGroup_Request)(nil), "weshnet.protocol.v1.DeactivateGroup.Request") - proto.RegisterType((*DeactivateGroup_Reply)(nil), "weshnet.protocol.v1.DeactivateGroup.Reply") - proto.RegisterType((*GroupDeviceStatus)(nil), "weshnet.protocol.v1.GroupDeviceStatus") - proto.RegisterType((*GroupDeviceStatus_Request)(nil), "weshnet.protocol.v1.GroupDeviceStatus.Request") - proto.RegisterType((*GroupDeviceStatus_Reply)(nil), "weshnet.protocol.v1.GroupDeviceStatus.Reply") - proto.RegisterType((*GroupDeviceStatus_Reply_PeerConnected)(nil), "weshnet.protocol.v1.GroupDeviceStatus.Reply.PeerConnected") - proto.RegisterType((*GroupDeviceStatus_Reply_PeerReconnecting)(nil), "weshnet.protocol.v1.GroupDeviceStatus.Reply.PeerReconnecting") - proto.RegisterType((*GroupDeviceStatus_Reply_PeerDisconnected)(nil), "weshnet.protocol.v1.GroupDeviceStatus.Reply.PeerDisconnected") - proto.RegisterType((*DebugListGroups)(nil), "weshnet.protocol.v1.DebugListGroups") - proto.RegisterType((*DebugListGroups_Request)(nil), "weshnet.protocol.v1.DebugListGroups.Request") - proto.RegisterType((*DebugListGroups_Reply)(nil), "weshnet.protocol.v1.DebugListGroups.Reply") - proto.RegisterType((*DebugInspectGroupStore)(nil), "weshnet.protocol.v1.DebugInspectGroupStore") - proto.RegisterType((*DebugInspectGroupStore_Request)(nil), "weshnet.protocol.v1.DebugInspectGroupStore.Request") - proto.RegisterType((*DebugInspectGroupStore_Reply)(nil), "weshnet.protocol.v1.DebugInspectGroupStore.Reply") - proto.RegisterType((*DebugGroup)(nil), "weshnet.protocol.v1.DebugGroup") - proto.RegisterType((*DebugGroup_Request)(nil), "weshnet.protocol.v1.DebugGroup.Request") - proto.RegisterType((*DebugGroup_Reply)(nil), "weshnet.protocol.v1.DebugGroup.Reply") - proto.RegisterType((*ShareableContact)(nil), "weshnet.protocol.v1.ShareableContact") - proto.RegisterType((*ServiceTokenSupportedService)(nil), "weshnet.protocol.v1.ServiceTokenSupportedService") - proto.RegisterType((*ServiceToken)(nil), "weshnet.protocol.v1.ServiceToken") - proto.RegisterType((*CredentialVerificationServiceInitFlow)(nil), "weshnet.protocol.v1.CredentialVerificationServiceInitFlow") - proto.RegisterType((*CredentialVerificationServiceInitFlow_Request)(nil), "weshnet.protocol.v1.CredentialVerificationServiceInitFlow.Request") - proto.RegisterType((*CredentialVerificationServiceInitFlow_Reply)(nil), "weshnet.protocol.v1.CredentialVerificationServiceInitFlow.Reply") - proto.RegisterType((*CredentialVerificationServiceCompleteFlow)(nil), "weshnet.protocol.v1.CredentialVerificationServiceCompleteFlow") - proto.RegisterType((*CredentialVerificationServiceCompleteFlow_Request)(nil), "weshnet.protocol.v1.CredentialVerificationServiceCompleteFlow.Request") - proto.RegisterType((*CredentialVerificationServiceCompleteFlow_Reply)(nil), "weshnet.protocol.v1.CredentialVerificationServiceCompleteFlow.Reply") - proto.RegisterType((*VerifiedCredentialsList)(nil), "weshnet.protocol.v1.VerifiedCredentialsList") - proto.RegisterType((*VerifiedCredentialsList_Request)(nil), "weshnet.protocol.v1.VerifiedCredentialsList.Request") - proto.RegisterType((*VerifiedCredentialsList_Reply)(nil), "weshnet.protocol.v1.VerifiedCredentialsList.Reply") - proto.RegisterType((*ReplicationServiceRegisterGroup)(nil), "weshnet.protocol.v1.ReplicationServiceRegisterGroup") - proto.RegisterType((*ReplicationServiceRegisterGroup_Request)(nil), "weshnet.protocol.v1.ReplicationServiceRegisterGroup.Request") - proto.RegisterType((*ReplicationServiceRegisterGroup_Reply)(nil), "weshnet.protocol.v1.ReplicationServiceRegisterGroup.Reply") - proto.RegisterType((*ReplicationServiceReplicateGroup)(nil), "weshnet.protocol.v1.ReplicationServiceReplicateGroup") - proto.RegisterType((*ReplicationServiceReplicateGroup_Request)(nil), "weshnet.protocol.v1.ReplicationServiceReplicateGroup.Request") - proto.RegisterType((*ReplicationServiceReplicateGroup_Reply)(nil), "weshnet.protocol.v1.ReplicationServiceReplicateGroup.Reply") - proto.RegisterType((*SystemInfo)(nil), "weshnet.protocol.v1.SystemInfo") - proto.RegisterType((*SystemInfo_Request)(nil), "weshnet.protocol.v1.SystemInfo.Request") - proto.RegisterType((*SystemInfo_Reply)(nil), "weshnet.protocol.v1.SystemInfo.Reply") - proto.RegisterType((*SystemInfo_OrbitDB)(nil), "weshnet.protocol.v1.SystemInfo.OrbitDB") - proto.RegisterType((*SystemInfo_OrbitDB_ReplicationStatus)(nil), "weshnet.protocol.v1.SystemInfo.OrbitDB.ReplicationStatus") - proto.RegisterType((*SystemInfo_P2P)(nil), "weshnet.protocol.v1.SystemInfo.P2P") - proto.RegisterType((*SystemInfo_Process)(nil), "weshnet.protocol.v1.SystemInfo.Process") - proto.RegisterType((*PeerList)(nil), "weshnet.protocol.v1.PeerList") - proto.RegisterType((*PeerList_Request)(nil), "weshnet.protocol.v1.PeerList.Request") - proto.RegisterType((*PeerList_Reply)(nil), "weshnet.protocol.v1.PeerList.Reply") - proto.RegisterType((*PeerList_Peer)(nil), "weshnet.protocol.v1.PeerList.Peer") - proto.RegisterType((*PeerList_Route)(nil), "weshnet.protocol.v1.PeerList.Route") - proto.RegisterType((*PeerList_Stream)(nil), "weshnet.protocol.v1.PeerList.Stream") - proto.RegisterType((*Progress)(nil), "weshnet.protocol.v1.Progress") - proto.RegisterType((*OutOfStoreMessage)(nil), "weshnet.protocol.v1.OutOfStoreMessage") - proto.RegisterType((*OutOfStoreMessageEnvelope)(nil), "weshnet.protocol.v1.OutOfStoreMessageEnvelope") - proto.RegisterType((*OutOfStoreReceive)(nil), "weshnet.protocol.v1.OutOfStoreReceive") - proto.RegisterType((*OutOfStoreReceive_Request)(nil), "weshnet.protocol.v1.OutOfStoreReceive.Request") - proto.RegisterType((*OutOfStoreReceive_Reply)(nil), "weshnet.protocol.v1.OutOfStoreReceive.Reply") - proto.RegisterType((*OutOfStoreSeal)(nil), "weshnet.protocol.v1.OutOfStoreSeal") - proto.RegisterType((*OutOfStoreSeal_Request)(nil), "weshnet.protocol.v1.OutOfStoreSeal.Request") - proto.RegisterType((*OutOfStoreSeal_Reply)(nil), "weshnet.protocol.v1.OutOfStoreSeal.Reply") - proto.RegisterType((*AccountVerifiedCredentialRegistered)(nil), "weshnet.protocol.v1.AccountVerifiedCredentialRegistered") - proto.RegisterType((*FirstLastCounters)(nil), "weshnet.protocol.v1.FirstLastCounters") - proto.RegisterType((*OrbitDBMessageHeads)(nil), "weshnet.protocol.v1.OrbitDBMessageHeads") - proto.RegisterType((*OrbitDBMessageHeads_Box)(nil), "weshnet.protocol.v1.OrbitDBMessageHeads.Box") - proto.RegisterType((*RefreshContactRequest)(nil), "weshnet.protocol.v1.RefreshContactRequest") - proto.RegisterType((*RefreshContactRequest_Peer)(nil), "weshnet.protocol.v1.RefreshContactRequest.Peer") - proto.RegisterType((*RefreshContactRequest_Request)(nil), "weshnet.protocol.v1.RefreshContactRequest.Request") - proto.RegisterType((*RefreshContactRequest_Reply)(nil), "weshnet.protocol.v1.RefreshContactRequest.Reply") -} - -func init() { proto.RegisterFile("protocoltypes.proto", fileDescriptor_8aa93e54ccb19003) } - -var fileDescriptor_8aa93e54ccb19003 = []byte{ - // 5760 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x7c, 0x4b, 0x6c, 0x1c, 0xc9, - 0x79, 0xf0, 0xf6, 0xcc, 0x90, 0x33, 0xf3, 0x71, 0x38, 0x6c, 0x96, 0x28, 0x6a, 0x76, 0x56, 0x12, - 0xb5, 0xad, 0x95, 0x56, 0xd2, 0xee, 0x52, 0x5a, 0x7a, 0x61, 0x7b, 0x2d, 0xcb, 0x36, 0x5f, 0x92, - 0xb9, 0xa2, 0xa4, 0xd9, 0xa6, 0xe8, 0x17, 0x16, 0x7f, 0xbb, 0xd9, 0x5d, 0x33, 0x6c, 0xb3, 0xa7, - 0xbb, 0xb7, 0xbb, 0x87, 0x14, 0x0d, 0x1b, 0xf0, 0xef, 0x47, 0xe2, 0x83, 0xed, 0x18, 0xf1, 0x21, - 0x01, 0x62, 0xe4, 0x1c, 0x20, 0x70, 0x02, 0x18, 0x41, 0x80, 0x04, 0x39, 0xe5, 0x14, 0x07, 0x49, - 0xb0, 0xa7, 0xdc, 0xc2, 0x38, 0xcc, 0xc5, 0x06, 0x82, 0x20, 0x40, 0x9c, 0xe4, 0x60, 0x20, 0x08, - 0xea, 0xd5, 0x8f, 0x61, 0xf7, 0x3c, 0x48, 0x2d, 0x72, 0xc8, 0x89, 0x53, 0x5f, 0x7d, 0xef, 0xaa, - 0xfa, 0xea, 0xab, 0xaa, 0xaf, 0x09, 0xe7, 0x3c, 0xdf, 0x0d, 0x5d, 0xc3, 0xb5, 0xc3, 0x43, 0x0f, - 0x07, 0x8b, 0xb4, 0x85, 0xce, 0x1d, 0xe0, 0x60, 0xd7, 0xc1, 0xe1, 0xa2, 0xe8, 0x5c, 0xdc, 0x7f, - 0xb3, 0x39, 0xd7, 0x71, 0x3b, 0x2e, 0x05, 0xdc, 0x26, 0xbf, 0x58, 0x9f, 0xf2, 0xb7, 0x12, 0x94, - 0x97, 0x0d, 0xc3, 0xed, 0x39, 0x21, 0xba, 0x03, 0x13, 0x1d, 0xdf, 0xed, 0x79, 0x0d, 0xe9, 0x8a, - 0x74, 0x63, 0x6a, 0xa9, 0xb9, 0x98, 0xc1, 0x66, 0xf1, 0x01, 0xc1, 0x50, 0x19, 0x22, 0x5a, 0x84, - 0x73, 0x3a, 0x23, 0xd6, 0x3c, 0xdf, 0xda, 0xd7, 0x43, 0xac, 0xed, 0xe1, 0xc3, 0x46, 0xe1, 0x8a, - 0x74, 0xa3, 0xa6, 0xce, 0xf2, 0xae, 0x16, 0xeb, 0x79, 0x88, 0x0f, 0xd1, 0x2d, 0x98, 0xd5, 0x6d, - 0x4b, 0x0f, 0x52, 0xd8, 0x45, 0x8a, 0x3d, 0x43, 0x3b, 0x12, 0xb8, 0x6f, 0xc1, 0xbc, 0xd7, 0xdb, - 0xb1, 0x2d, 0x43, 0xf3, 0xb1, 0x63, 0xe2, 0xaf, 0xee, 0xbb, 0xbd, 0x40, 0x0b, 0x30, 0x36, 0x1b, - 0x25, 0x4a, 0x30, 0xc7, 0x7a, 0xd5, 0xa8, 0x73, 0x0b, 0x63, 0x53, 0xf9, 0x95, 0x04, 0x13, 0x54, - 0x45, 0x74, 0x09, 0x80, 0xd3, 0x13, 0x21, 0x12, 0xa5, 0xa9, 0x32, 0x08, 0x61, 0x3f, 0x0f, 0x93, - 0x01, 0x36, 0x7c, 0x1c, 0x72, 0x6d, 0x79, 0x8b, 0x90, 0xb1, 0x5f, 0x5a, 0x60, 0x75, 0xb8, 0x6e, - 0x55, 0x06, 0xd9, 0xb2, 0x3a, 0xe8, 0x1e, 0x00, 0x35, 0x5d, 0x23, 0xfe, 0xa6, 0x9a, 0xd4, 0x97, - 0x2e, 0xe7, 0x3b, 0xea, 0xe9, 0xa1, 0x87, 0xd5, 0x6a, 0x47, 0xfc, 0x44, 0x2f, 0x42, 0x25, 0xb0, - 0x3a, 0x8e, 0xe6, 0xf5, 0x76, 0x1a, 0x13, 0x94, 0x77, 0x99, 0xb4, 0x5b, 0xbd, 0x1d, 0xd2, 0x65, - 0x5b, 0xce, 0x1e, 0xd5, 0x76, 0x92, 0x75, 0x91, 0x36, 0xd1, 0xf5, 0x0a, 0xd4, 0x44, 0x17, 0xd5, - 0xaa, 0x4c, 0xbb, 0x81, 0x77, 0x6f, 0x59, 0x1d, 0xe5, 0x3f, 0x24, 0x90, 0xa9, 0xc0, 0xcf, 0x62, - 0xdd, 0x0c, 0xd6, 0x9f, 0x79, 0xae, 0x1f, 0x0e, 0xf3, 0x40, 0x52, 0x97, 0x42, 0x5a, 0x97, 0x75, - 0x38, 0xd7, 0xc5, 0xa1, 0x6e, 0xea, 0xa1, 0xae, 0xed, 0x12, 0x8e, 0x9a, 0x61, 0x99, 0x41, 0xa3, - 0x78, 0xa5, 0x78, 0xa3, 0xb6, 0x72, 0xfe, 0xf8, 0x68, 0x61, 0xf6, 0x11, 0xef, 0xa6, 0xf2, 0x56, - 0x37, 0xd6, 0x02, 0x75, 0xb6, 0x9b, 0x02, 0x59, 0x66, 0xc0, 0xd8, 0x04, 0x81, 0xde, 0xc1, 0x41, - 0x92, 0x4d, 0x29, 0xc9, 0x86, 0x75, 0xa7, 0xd8, 0x24, 0x41, 0x84, 0x4d, 0xd2, 0x33, 0x13, 0x29, - 0xcf, 0x28, 0x7f, 0x27, 0xc1, 0x34, 0xb5, 0x5b, 0xe8, 0x43, 0x06, 0x08, 0xef, 0x63, 0x27, 0x64, - 0x03, 0x24, 0x0d, 0x18, 0xa0, 0x75, 0x82, 0xc6, 0x06, 0x08, 0x8b, 0x9f, 0xa8, 0x01, 0x65, 0x4f, - 0x3f, 0xb4, 0x5d, 0xdd, 0x14, 0x3e, 0xe1, 0x4d, 0x24, 0x43, 0x31, 0x9e, 0x11, 0xe4, 0x27, 0x52, - 0x61, 0x56, 0xf0, 0xd3, 0x84, 0xf1, 0x74, 0x4a, 0x4c, 0x2d, 0x5d, 0xcb, 0x94, 0xd8, 0xe2, 0xbf, - 0x85, 0xb2, 0xaa, 0xec, 0xf5, 0x41, 0x94, 0x65, 0x6e, 0xcf, 0xba, 0xb3, 0x8f, 0x6d, 0xd7, 0xc3, - 0x68, 0x0e, 0x26, 0x1c, 0xd7, 0x31, 0x30, 0x1f, 0x3f, 0xd6, 0x20, 0x50, 0xaa, 0x33, 0x57, 0x92, - 0x35, 0xde, 0x29, 0x55, 0x8a, 0x72, 0x49, 0xf9, 0x77, 0x09, 0xea, 0xdc, 0xaf, 0xc4, 0x87, 0xd8, - 0x0f, 0x88, 0x55, 0x74, 0x29, 0x62, 0x9f, 0xb2, 0x29, 0xa9, 0xa2, 0x89, 0x6e, 0x42, 0xd5, 0xc4, - 0xfb, 0x96, 0x81, 0x35, 0x6f, 0x8f, 0x31, 0x5b, 0xa9, 0x1d, 0x1f, 0x2d, 0x54, 0xd6, 0x28, 0xb0, - 0xf5, 0x50, 0xad, 0xb0, 0xee, 0xd6, 0x5e, 0x86, 0x03, 0x1e, 0x41, 0x25, 0x61, 0x77, 0xf1, 0xc6, - 0xd4, 0xd2, 0x9b, 0x99, 0x76, 0xa7, 0xb5, 0x59, 0x14, 0xc6, 0xae, 0x3b, 0xa1, 0x7f, 0xa8, 0x46, - 0x2c, 0x9a, 0x77, 0x61, 0x3a, 0xd5, 0x45, 0x24, 0x8a, 0x99, 0x5b, 0x55, 0xc9, 0x4f, 0x62, 0xf7, - 0xbe, 0x6e, 0xf7, 0x30, 0x55, 0xb5, 0xaa, 0xb2, 0xc6, 0x27, 0x0a, 0x1f, 0x97, 0x94, 0x06, 0xc8, - 0xfd, 0xee, 0x7d, 0xa7, 0x54, 0x91, 0xe4, 0x82, 0xf2, 0x6d, 0x09, 0xe4, 0x75, 0xc7, 0xf0, 0x0f, - 0xbd, 0x10, 0x9b, 0x5c, 0x15, 0x74, 0x11, 0xaa, 0x9e, 0xad, 0x5b, 0x4e, 0x88, 0x9f, 0x85, 0xd1, - 0xd2, 0x10, 0x80, 0xec, 0x91, 0x2d, 0x9c, 0x6d, 0x64, 0x3d, 0x98, 0xe1, 0xc2, 0xa3, 0xb1, 0x7d, - 0x15, 0x66, 0xf8, 0x6c, 0xa7, 0xcb, 0x03, 0xfb, 0x01, 0x57, 0xa5, 0xde, 0x3d, 0x31, 0x7e, 0x1c, - 0x22, 0x66, 0x25, 0x6f, 0xc6, 0xd3, 0xa3, 0x98, 0x98, 0x1e, 0xef, 0x94, 0x2a, 0x25, 0x79, 0x42, - 0xf9, 0xa6, 0x04, 0x35, 0x3a, 0xc9, 0x57, 0x5d, 0x66, 0xd6, 0x3c, 0x14, 0x2c, 0x93, 0x89, 0x58, - 0x99, 0x3c, 0x3e, 0x5a, 0x28, 0x6c, 0xac, 0xa9, 0x05, 0xcb, 0x44, 0xaf, 0x03, 0x78, 0xba, 0x4f, - 0x16, 0x0d, 0x59, 0x9e, 0x05, 0xba, 0x3c, 0xa7, 0x8f, 0x8f, 0x16, 0xaa, 0x2d, 0x0a, 0x25, 0xcb, - 0xb2, 0xca, 0x10, 0x36, 0xcc, 0x00, 0x5d, 0x87, 0x0a, 0x0b, 0x81, 0xde, 0x1e, 0x93, 0xba, 0x32, - 0x75, 0x7c, 0xb4, 0x50, 0xa6, 0xd3, 0xb6, 0xf5, 0x50, 0x2d, 0xd3, 0xce, 0xd6, 0x1e, 0x57, 0x42, - 0x83, 0x46, 0x6a, 0x81, 0xb6, 0xd8, 0x72, 0xda, 0xc2, 0x4e, 0x98, 0x9e, 0x7c, 0xd2, 0xc0, 0xc9, - 0x97, 0xeb, 0x01, 0xc5, 0x82, 0x39, 0x62, 0x9f, 0x6e, 0x84, 0xcb, 0x64, 0x07, 0x79, 0x88, 0x0f, - 0x97, 0x4d, 0x13, 0x9b, 0xe3, 0x30, 0xbf, 0x0e, 0x15, 0xbe, 0x2d, 0x89, 0x35, 0x40, 0x2d, 0xa2, - 0xfc, 0x88, 0x45, 0x6c, 0x6b, 0xda, 0x53, 0xbe, 0x2f, 0xc1, 0x3c, 0x37, 0xa6, 0xbb, 0x83, 0x7d, - 0xc6, 0x29, 0x92, 0xd6, 0xa5, 0xc0, 0x3e, 0x69, 0x0c, 0x93, 0x48, 0x63, 0xdd, 0xad, 0xbd, 0x71, - 0x96, 0xdc, 0x25, 0x00, 0xce, 0x35, 0xb1, 0x19, 0x31, 0x08, 0x89, 0xfa, 0x0f, 0xa0, 0xce, 0x88, - 0x56, 0x77, 0x75, 0xcb, 0x21, 0x31, 0xfd, 0x25, 0xa8, 0x1a, 0xe4, 0x77, 0x22, 0xe2, 0x57, 0x0c, - 0xd1, 0x99, 0x88, 0x02, 0x85, 0x54, 0x14, 0x50, 0x7e, 0x47, 0xe2, 0xa3, 0x94, 0x66, 0x37, 0xb6, - 0x23, 0x3f, 0x0a, 0x75, 0x13, 0x07, 0xa1, 0x16, 0xbb, 0x82, 0xd9, 0x27, 0x1f, 0x1f, 0x2d, 0xd4, - 0xd6, 0x70, 0x10, 0x46, 0xee, 0xa8, 0x99, 0x71, 0x6b, 0x2f, 0x19, 0x75, 0x8b, 0xa9, 0xa8, 0x4b, - 0x34, 0x53, 0x1e, 0xf5, 0xec, 0xd0, 0x62, 0xb8, 0x54, 0x49, 0x3a, 0x2e, 0x2a, 0x0e, 0x5c, 0x7b, - 0x1f, 0xfb, 0x63, 0xeb, 0x78, 0x0d, 0xea, 0x6c, 0xb0, 0x7d, 0xce, 0x81, 0x4f, 0xa8, 0x69, 0x3d, - 0xc9, 0x16, 0x2d, 0xc0, 0x94, 0x48, 0x55, 0x5c, 0xb7, 0xcd, 0xd5, 0x02, 0x9e, 0xa4, 0xb8, 0x6e, - 0x5b, 0xf9, 0x81, 0x04, 0x57, 0x4e, 0x68, 0x66, 0x76, 0x2d, 0x47, 0x75, 0x6d, 0xfc, 0xc0, 0xd7, - 0x9d, 0x70, 0x3c, 0xbd, 0x3e, 0x0d, 0xb3, 0x1d, 0x4a, 0x85, 0x4f, 0xb8, 0xef, 0xdc, 0xf1, 0xd1, - 0xc2, 0x0c, 0x63, 0x89, 0x23, 0x0f, 0xce, 0x74, 0x52, 0x80, 0x3d, 0x65, 0x0b, 0xae, 0xf7, 0xeb, - 0xb3, 0xe1, 0x58, 0xa1, 0xa5, 0xdb, 0x0c, 0xb2, 0xec, 0x38, 0x6e, 0xcf, 0x31, 0xc6, 0x9a, 0xac, - 0x8a, 0x0e, 0x57, 0xb8, 0x65, 0xe6, 0xb2, 0x69, 0x5a, 0xa1, 0xe5, 0x3a, 0xba, 0x9d, 0xce, 0xb9, - 0xc6, 0x31, 0x12, 0x41, 0x89, 0xa6, 0x70, 0xcc, 0xe5, 0xf4, 0xb7, 0x62, 0xc2, 0x55, 0x96, 0x54, - 0xe2, 0xae, 0xbb, 0x8f, 0x3f, 0x2c, 0x29, 0xef, 0x03, 0xe2, 0x79, 0x2e, 0x15, 0xf6, 0x8e, 0x6b, - 0x39, 0xe3, 0x31, 0x8d, 0xb2, 0xe3, 0xc2, 0x88, 0xd9, 0xb1, 0x82, 0x41, 0x4e, 0x8a, 0xdc, 0xc4, - 0xed, 0x70, 0xcc, 0xa8, 0x14, 0xc5, 0xd9, 0x42, 0x7e, 0x9c, 0x55, 0xde, 0x81, 0x4b, 0x5c, 0x0c, - 0x8f, 0x83, 0x2a, 0x7e, 0xbf, 0x87, 0x83, 0x70, 0xcd, 0x0a, 0xf4, 0x1d, 0x7b, 0x2c, 0x23, 0x95, - 0x0d, 0xb8, 0x98, 0xc9, 0x6b, 0xdd, 0x19, 0x9b, 0xd5, 0x6f, 0x48, 0x70, 0x35, 0x93, 0x97, 0x8a, - 0xdb, 0xd8, 0xc7, 0x8e, 0x81, 0x55, 0x1c, 0xe0, 0xb1, 0x3c, 0x92, 0x7f, 0x24, 0x28, 0x0c, 0x38, - 0x12, 0x1c, 0x49, 0x70, 0x2d, 0x53, 0x91, 0x27, 0xbd, 0xb0, 0xe3, 0x5a, 0x4e, 0x67, 0xdd, 0x79, - 0xbf, 0x87, 0x7b, 0x63, 0x6f, 0x19, 0xa3, 0x0c, 0x0e, 0xfa, 0x34, 0x89, 0xb9, 0x54, 0x28, 0x0d, - 0x21, 0x79, 0xf9, 0xc3, 0xd6, 0xae, 0xee, 0x63, 0xe2, 0x62, 0xa1, 0xa1, 0xa0, 0x42, 0x2f, 0x43, - 0xcd, 0x3d, 0x70, 0xd2, 0xf9, 0x65, 0x4d, 0x9d, 0x72, 0x0f, 0x9c, 0x28, 0xb3, 0xf8, 0x1a, 0xbc, - 0x3c, 0xd0, 0xbe, 0x71, 0xf7, 0xda, 0xd7, 0x01, 0xb8, 0xf4, 0xd8, 0x3a, 0x9a, 0x0e, 0x70, 0xf6, - 0xad, 0x87, 0x6a, 0x95, 0x23, 0xb4, 0xf6, 0x94, 0x7f, 0xce, 0x73, 0xef, 0x86, 0x63, 0xb8, 0x5d, - 0xcb, 0xe9, 0xa8, 0xd8, 0xc0, 0xd6, 0xfe, 0x78, 0xee, 0x1d, 0x4b, 0x05, 0xf4, 0x51, 0xb8, 0x20, - 0xb0, 0xfb, 0x27, 0x06, 0x8b, 0xdb, 0xe7, 0x0d, 0xa1, 0x59, 0x5f, 0x48, 0x91, 0x05, 0x5d, 0x9f, - 0x7f, 0x67, 0x38, 0x3c, 0xf2, 0xf1, 0xff, 0x97, 0xe0, 0xfa, 0x40, 0x2b, 0xd7, 0xac, 0xc0, 0xd0, - 0x7d, 0xf3, 0x43, 0x34, 0x53, 0xf9, 0x83, 0x61, 0x9e, 0x5e, 0x36, 0x0c, 0xec, 0x85, 0x1f, 0xa6, - 0xa7, 0x47, 0xcc, 0xfd, 0x14, 0x0f, 0xce, 0xa7, 0x35, 0x5d, 0xb1, 0x5d, 0x63, 0xef, 0xc3, 0x74, - 0x8e, 0x0f, 0x17, 0xd2, 0x12, 0xb7, 0x9d, 0x9d, 0x0f, 0x5b, 0xe6, 0x4f, 0xc5, 0xa9, 0x5b, 0xc5, - 0x9e, 0x6d, 0x19, 0x7a, 0x68, 0x39, 0x9d, 0x71, 0xa4, 0xad, 0x01, 0xd2, 0x7b, 0xe1, 0x2e, 0x76, - 0x42, 0x4a, 0xec, 0x3a, 0x5a, 0xcf, 0xb7, 0xd9, 0xd1, 0x86, 0x1d, 0x8f, 0x97, 0x53, 0xbd, 0xdb, - 0xea, 0xa6, 0x3a, 0x9b, 0x26, 0xd8, 0xf6, 0x6d, 0xf4, 0x06, 0x20, 0x5f, 0xc8, 0x77, 0x1d, 0x2d, - 0xc0, 0x3e, 0x49, 0x6a, 0x8a, 0xf4, 0x80, 0x34, 0x9b, 0xe8, 0xd9, 0xa2, 0x1d, 0xca, 0x26, 0xcc, - 0x92, 0x5f, 0x96, 0x81, 0xd9, 0x35, 0xc1, 0x1a, 0x39, 0x7a, 0x55, 0xa1, 0xcc, 0xe7, 0x52, 0xf3, - 0x75, 0x98, 0x20, 0xe6, 0x1c, 0xa2, 0xab, 0x30, 0x8d, 0x29, 0x06, 0x36, 0x35, 0xba, 0x34, 0x58, - 0x3e, 0x59, 0x13, 0x40, 0x42, 0xa8, 0x7c, 0x30, 0x01, 0x17, 0x38, 0xbb, 0x07, 0x98, 0xb8, 0xbe, - 0x6d, 0x75, 0x7a, 0x3e, 0x95, 0x97, 0x64, 0xfa, 0xf3, 0x92, 0xe0, 0xfa, 0x3a, 0x40, 0x74, 0x65, - 0x24, 0xfc, 0x43, 0x3d, 0xcc, 0x47, 0x8f, 0x78, 0x58, 0x5c, 0x1c, 0x8d, 0x95, 0x2b, 0x7f, 0x12, - 0x64, 0xc1, 0xb8, 0x6f, 0x8a, 0xa2, 0xe3, 0xa3, 0x85, 0x7a, 0x72, 0x27, 0x6e, 0x3d, 0x54, 0xeb, - 0x7a, 0xb2, 0xbd, 0x87, 0xae, 0x42, 0xd9, 0xc3, 0xd8, 0xd7, 0x2c, 0x76, 0xbd, 0x54, 0x5d, 0x81, - 0xe3, 0xa3, 0x85, 0xc9, 0x16, 0xc6, 0xfe, 0xc6, 0x9a, 0x3a, 0x49, 0xba, 0x36, 0x4c, 0x72, 0x68, - 0xb4, 0xad, 0x20, 0xc4, 0x0e, 0x39, 0xa9, 0x4d, 0x5c, 0x29, 0xde, 0xa8, 0xaa, 0x31, 0x00, 0x7d, - 0x09, 0xa6, 0x76, 0x6c, 0xac, 0x61, 0xb6, 0x55, 0xd2, 0x3b, 0x9c, 0xfa, 0xd2, 0xdb, 0xd9, 0xe1, - 0x3e, 0xdb, 0x63, 0x8b, 0x5b, 0x38, 0x24, 0x73, 0x68, 0x2b, 0xd4, 0x43, 0xac, 0xc2, 0x8e, 0x8d, - 0xc5, 0xbe, 0x6b, 0x80, 0x7c, 0x60, 0xb5, 0x2d, 0xcd, 0x5b, 0xf2, 0x22, 0x01, 0xe5, 0xb3, 0x0a, - 0xa8, 0x13, 0x96, 0xad, 0x25, 0x4f, 0x08, 0x79, 0x0f, 0x6a, 0x5d, 0xd3, 0x09, 0x22, 0x01, 0x95, - 0xb3, 0x0a, 0x98, 0x22, 0xec, 0x04, 0xf7, 0xff, 0x07, 0xd3, 0x3e, 0xb6, 0xf5, 0xc3, 0x88, 0x7d, - 0xf5, 0xac, 0xec, 0x6b, 0x94, 0x1f, 0xe7, 0xaf, 0x3c, 0x80, 0x5a, 0xb2, 0x17, 0x4d, 0x41, 0x79, - 0xdb, 0xd9, 0x73, 0xdc, 0x03, 0x47, 0x7e, 0x81, 0x34, 0x38, 0x9e, 0x2c, 0xa1, 0x1a, 0x54, 0x44, - 0x6e, 0x24, 0x17, 0xd0, 0x0c, 0x4c, 0x6d, 0x3b, 0xfa, 0xbe, 0x6e, 0xd9, 0x04, 0x22, 0x17, 0x95, - 0xaf, 0xc3, 0x85, 0x9c, 0x84, 0x25, 0x39, 0xa3, 0x3f, 0x2f, 0x26, 0x74, 0x7e, 0x52, 0x22, 0xe5, - 0x27, 0x25, 0xe4, 0xc4, 0x23, 0xfc, 0x40, 0xa6, 0x75, 0x45, 0x15, 0x4d, 0xe5, 0x35, 0x38, 0x9f, - 0x99, 0xc7, 0x25, 0x85, 0x97, 0xb9, 0x70, 0xe5, 0xcb, 0xd1, 0xe1, 0x37, 0x95, 0xa8, 0x25, 0x71, - 0xef, 0x9d, 0x49, 0x51, 0x65, 0x17, 0x2e, 0xf6, 0x7b, 0x23, 0xc0, 0xd9, 0x2e, 0x39, 0xa3, 0xa4, - 0xef, 0x49, 0x80, 0xd2, 0xa2, 0xb6, 0xb0, 0x63, 0x36, 0xbb, 0x91, 0x80, 0x64, 0x32, 0x25, 0x3d, - 0x97, 0x64, 0xaa, 0x70, 0x22, 0x99, 0x8a, 0x5d, 0xfb, 0x85, 0x7e, 0xd7, 0xb2, 0xdd, 0xb5, 0xf9, - 0xb1, 0x58, 0x9f, 0xf4, 0x6e, 0x21, 0x0d, 0xde, 0x2d, 0x62, 0xce, 0x5f, 0xcc, 0x18, 0x61, 0x92, - 0x3b, 0x3c, 0x07, 0xd6, 0x0f, 0xa1, 0x46, 0xad, 0xe7, 0x58, 0xc9, 0xd1, 0xb9, 0x23, 0x46, 0xe7, - 0x55, 0x98, 0xc1, 0x8e, 0xe1, 0x9a, 0xd8, 0xd4, 0x92, 0xde, 0xac, 0xa9, 0x75, 0x0e, 0xe6, 0xc4, - 0xca, 0xf7, 0x25, 0x98, 0x5e, 0xc3, 0x04, 0x24, 0xd8, 0x2d, 0xc5, 0x0a, 0x8e, 0xca, 0xa5, 0xf9, - 0x59, 0x21, 0xf7, 0xac, 0xa3, 0xa7, 0xb4, 0xa0, 0x96, 0xcc, 0x26, 0x9e, 0x83, 0xbb, 0x54, 0xa8, - 0xa7, 0xb3, 0x85, 0xe7, 0xc0, 0xf3, 0x5d, 0x38, 0xd7, 0x77, 0x1f, 0x45, 0xa7, 0xf1, 0x9b, 0x31, - 0xe3, 0x64, 0x12, 0x25, 0xe5, 0x27, 0x51, 0x31, 0xcb, 0xa7, 0x30, 0xdf, 0x7f, 0xb2, 0x5f, 0xf5, - 0xb1, 0x1e, 0xa6, 0x56, 0xdf, 0x6d, 0xe1, 0xe7, 0x11, 0xd9, 0x2b, 0xef, 0xc1, 0x5c, 0x3f, 0x57, - 0x72, 0x2a, 0x6e, 0xde, 0x8d, 0x35, 0x1d, 0xfb, 0x45, 0x28, 0xd6, 0x79, 0x0b, 0xce, 0xf7, 0x73, - 0xdf, 0xc4, 0xfa, 0x3e, 0x3e, 0x93, 0x23, 0x0c, 0xb8, 0x36, 0xf0, 0x32, 0x88, 0x2c, 0x24, 0xdb, - 0x0d, 0xce, 0x26, 0xe4, 0x37, 0x25, 0xb8, 0x3c, 0xf8, 0x62, 0xa7, 0xf9, 0xde, 0xd8, 0xec, 0xd3, - 0x77, 0x2e, 0x85, 0x41, 0x77, 0x2e, 0xb1, 0x26, 0x3f, 0xcc, 0xb8, 0x62, 0xda, 0x70, 0xf6, 0xad, - 0x90, 0x6e, 0x86, 0x7c, 0x0a, 0x9c, 0xc2, 0xd4, 0xb7, 0xc5, 0x54, 0x19, 0x7b, 0x7c, 0x95, 0xef, - 0x4a, 0x30, 0xb3, 0xec, 0x45, 0xb7, 0xb9, 0x74, 0x6a, 0xbf, 0x3b, 0xbe, 0x37, 0x72, 0x9f, 0x59, - 0xd8, 0x1b, 0x46, 0x53, 0x11, 0x1a, 0xbe, 0x08, 0x45, 0x23, 0xba, 0xb3, 0x2e, 0x1f, 0x1f, 0x2d, - 0x14, 0x57, 0x37, 0xd6, 0x54, 0x02, 0x23, 0xe3, 0x54, 0xa7, 0xaa, 0xd0, 0x7b, 0xe0, 0xff, 0x4d, - 0x4d, 0x7e, 0x2a, 0x01, 0x4a, 0x5d, 0x72, 0xd3, 0x5b, 0x77, 0x74, 0x1f, 0xa6, 0xd9, 0x53, 0x94, - 0xe1, 0xc6, 0xef, 0x0c, 0x53, 0x4b, 0x2f, 0xe7, 0xbf, 0x46, 0xf1, 0x8b, 0x7a, 0xb5, 0x86, 0x93, - 0xd7, 0xf6, 0x9f, 0x4a, 0x3c, 0xb3, 0xb0, 0xcb, 0x27, 0x25, 0x7f, 0xa0, 0xa2, 0x17, 0x88, 0x88, - 0x26, 0x7e, 0x2c, 0x2a, 0x26, 0x1e, 0x8b, 0x94, 0x3f, 0x91, 0x60, 0x96, 0x53, 0xb0, 0x57, 0x89, - 0xe7, 0xaa, 0xf3, 0x3d, 0x28, 0x8b, 0x27, 0x0d, 0xa6, 0xf2, 0xd5, 0x11, 0x5e, 0x86, 0x54, 0x41, - 0x93, 0xbc, 0xee, 0x2f, 0xa6, 0xaf, 0xfb, 0xff, 0x33, 0x56, 0x9b, 0x99, 0xb7, 0x69, 0x91, 0xf3, - 0x85, 0x34, 0xfe, 0xc8, 0x5f, 0x87, 0x4a, 0x60, 0x39, 0x06, 0x26, 0x39, 0x7f, 0xe2, 0x0a, 0x67, - 0x8b, 0xc0, 0x36, 0xd6, 0xd4, 0x32, 0xed, 0xdc, 0x30, 0xd1, 0x4b, 0x50, 0x65, 0x78, 0x8e, 0x7b, - 0x40, 0xb5, 0xa9, 0xa8, 0x8c, 0xf0, 0xb1, 0x7b, 0x40, 0x98, 0xf4, 0x9c, 0xd0, 0xb2, 0xc5, 0xc1, - 0x81, 0x33, 0xd9, 0x26, 0x30, 0xc2, 0x84, 0x76, 0x32, 0x26, 0x0c, 0x8f, 0x30, 0x99, 0x60, 0x4c, - 0x28, 0x80, 0x30, 0xb9, 0x4a, 0x52, 0xe3, 0x7d, 0xec, 0x07, 0x58, 0x73, 0x7d, 0x13, 0xfb, 0xf4, - 0xec, 0x50, 0x21, 0xf9, 0x2d, 0x05, 0x3e, 0x21, 0xb0, 0xf8, 0x89, 0x97, 0xfb, 0xec, 0xff, 0x8a, - 0xdd, 0xff, 0x2d, 0x41, 0x95, 0x47, 0xbe, 0xb6, 0xdb, 0xd4, 0xc6, 0xb7, 0x77, 0xac, 0x33, 0x7d, - 0xf3, 0xb7, 0xa4, 0x53, 0x07, 0xc7, 0x31, 0x62, 0x7c, 0xfa, 0x60, 0x5b, 0x1c, 0x78, 0x91, 0xfa, - 0x15, 0x98, 0x5e, 0x36, 0x42, 0x5a, 0x17, 0x41, 0xa5, 0x35, 0x5b, 0xe3, 0xfb, 0xe0, 0x12, 0x80, - 0xed, 0x1a, 0xba, 0xad, 0xb9, 0x8e, 0x7d, 0xc8, 0x4f, 0x1c, 0x55, 0x0a, 0x79, 0xe2, 0xd8, 0x87, - 0xf1, 0x8e, 0xf3, 0x08, 0x66, 0xd6, 0xb0, 0x9e, 0x92, 0x76, 0x96, 0xad, 0xf4, 0x87, 0x13, 0x7c, - 0xb1, 0x32, 0xb3, 0xc8, 0xc1, 0xac, 0x17, 0x9c, 0x86, 0xe3, 0x8f, 0x8b, 0x71, 0x16, 0x59, 0x4a, - 0xbc, 0xec, 0xbf, 0x96, 0x3f, 0x28, 0x49, 0x91, 0x8b, 0xf4, 0x99, 0x9f, 0x12, 0x66, 0x3f, 0x9d, - 0x37, 0x7f, 0x26, 0xc1, 0x34, 0x39, 0xed, 0xaf, 0xba, 0x8e, 0x83, 0x8d, 0x10, 0x9b, 0xc9, 0x1b, - 0x01, 0x29, 0xf7, 0x46, 0x60, 0x8c, 0xfb, 0x89, 0x16, 0x40, 0xe8, 0xeb, 0x4e, 0xe0, 0xb9, 0x7e, - 0xc8, 0x4a, 0x29, 0xea, 0x4b, 0x77, 0x46, 0x55, 0x5f, 0x10, 0xaa, 0x09, 0x1e, 0x68, 0x1e, 0x26, - 0xbb, 0xba, 0x69, 0xfa, 0xac, 0xa2, 0xa2, 0xaa, 0xf2, 0x56, 0xf3, 0x63, 0x20, 0x13, 0x35, 0x55, - 0x6c, 0x30, 0x63, 0x2c, 0xa7, 0x33, 0x92, 0x35, 0x82, 0x90, 0x64, 0x51, 0x63, 0xb9, 0x41, 0xd9, - 0x81, 0x12, 0xad, 0x9e, 0x98, 0x81, 0x29, 0xf2, 0x37, 0x3e, 0x77, 0x37, 0x60, 0x8e, 0x00, 0xfa, - 0xb9, 0xca, 0x12, 0x3a, 0x0f, 0xb3, 0xa2, 0x27, 0xf2, 0xb9, 0x5c, 0x48, 0x12, 0x24, 0xf5, 0x97, - 0x8b, 0xca, 0x3a, 0x54, 0x23, 0x37, 0xa0, 0x3a, 0xc0, 0x53, 0x2f, 0x8c, 0xe5, 0x00, 0x4c, 0x3e, - 0xf5, 0xc2, 0xcd, 0xe5, 0xc7, 0xb2, 0xc4, 0x7f, 0x7f, 0x7e, 0xf9, 0xb1, 0x5c, 0x40, 0x32, 0xd4, - 0x9e, 0x7a, 0x61, 0xcb, 0x77, 0x9f, 0x59, 0x5d, 0x2b, 0x3c, 0x94, 0x8b, 0xca, 0x5f, 0x4b, 0x64, - 0x8a, 0xef, 0xf4, 0x3a, 0x24, 0x7e, 0x52, 0x4f, 0x07, 0xc9, 0x2c, 0xfa, 0x0f, 0xa5, 0x31, 0xd3, - 0x68, 0xb4, 0x99, 0xaa, 0x08, 0x2a, 0x8c, 0x52, 0x11, 0xc4, 0xc2, 0x4f, 0x66, 0x81, 0x50, 0x3a, - 0x58, 0x15, 0x87, 0x5c, 0x40, 0xfe, 0xa0, 0x08, 0xf3, 0xd4, 0x98, 0x0d, 0x27, 0xf0, 0xb0, 0xc1, - 0xec, 0xd9, 0x0a, 0x5d, 0x1f, 0x37, 0xbf, 0x7b, 0x8a, 0x9d, 0x61, 0x1b, 0x2a, 0xb6, 0xdb, 0x49, - 0x1a, 0xf2, 0x46, 0xa6, 0x21, 0x27, 0x44, 0x6e, 0xba, 0x1d, 0x6a, 0x17, 0x65, 0xcb, 0x1b, 0x6a, - 0xd9, 0x66, 0x3f, 0x9a, 0xbf, 0x90, 0x86, 0xe7, 0x50, 0xe8, 0x36, 0x4c, 0xf1, 0x1a, 0x04, 0x23, - 0x2e, 0x42, 0xa8, 0x1f, 0x1f, 0x2d, 0x00, 0x2b, 0x42, 0xa0, 0xc5, 0x41, 0xbc, 0x4c, 0x81, 0x56, - 0x05, 0x3d, 0x4e, 0xd4, 0x28, 0x25, 0x2a, 0x7e, 0x8a, 0x23, 0x55, 0xfc, 0x44, 0xc5, 0x4a, 0x11, - 0x28, 0xbd, 0x94, 0x4b, 0xc3, 0x8a, 0x11, 0x44, 0xce, 0x38, 0x99, 0x7e, 0xae, 0xf6, 0x00, 0xa8, - 0x73, 0x4e, 0x1d, 0x3a, 0x93, 0xa7, 0x38, 0xbe, 0xee, 0x82, 0x86, 0x44, 0x96, 0x37, 0x23, 0x60, - 0x0b, 0x2f, 0x50, 0xcb, 0x6c, 0xe5, 0x05, 0xca, 0xd7, 0x40, 0xee, 0x3f, 0x31, 0xa3, 0x79, 0x28, - 0x44, 0x62, 0x68, 0x9d, 0x47, 0xeb, 0xa1, 0x5a, 0xf0, 0x4e, 0xf9, 0x7e, 0x86, 0x9a, 0x89, 0xf4, - 0x93, 0x25, 0x63, 0x51, 0x5b, 0xb1, 0xe1, 0x22, 0xbf, 0xaa, 0x7b, 0xea, 0xee, 0x61, 0x67, 0xab, - 0xe7, 0xb1, 0xbb, 0x61, 0x0e, 0x44, 0x2f, 0x43, 0x2d, 0x60, 0x3f, 0xe3, 0x7a, 0xac, 0xaa, 0x3a, - 0xc5, 0x61, 0xdc, 0xef, 0xb2, 0x40, 0xc1, 0x8e, 0xe9, 0xb9, 0x16, 0x0f, 0xcd, 0x55, 0x75, 0x86, - 0xc3, 0xd7, 0x39, 0x58, 0xf9, 0x17, 0x09, 0x6a, 0x49, 0x71, 0x24, 0x96, 0x87, 0xe4, 0x07, 0xe7, - 0xcb, 0x1a, 0xcf, 0xe9, 0x5a, 0xfd, 0xcb, 0x80, 0x02, 0x61, 0x8e, 0xc6, 0x35, 0x61, 0x71, 0x3b, - 0xaf, 0xcc, 0x69, 0x90, 0x27, 0xd4, 0xd9, 0xa0, 0x0f, 0x12, 0xa0, 0xcb, 0x00, 0xf8, 0x99, 0x67, - 0xb1, 0xab, 0x4d, 0x3a, 0xe5, 0x8a, 0x6a, 0x02, 0xa2, 0xfc, 0x42, 0x82, 0x6b, 0xab, 0x3e, 0x36, - 0x89, 0x5e, 0xba, 0xfd, 0x39, 0xec, 0x5b, 0xed, 0xc4, 0x55, 0xbe, 0x65, 0xe0, 0x0d, 0xc7, 0x0a, - 0xef, 0xdb, 0xee, 0x41, 0xf2, 0x8e, 0xec, 0x36, 0x08, 0xef, 0x52, 0xab, 0x59, 0xcc, 0xa6, 0xeb, - 0x88, 0x13, 0x11, 0x73, 0x81, 0xa3, 0x10, 0x3b, 0xd3, 0x55, 0x82, 0x85, 0xfe, 0x2a, 0x41, 0x04, - 0x25, 0xdb, 0x72, 0xf6, 0xf8, 0x7b, 0x02, 0xfd, 0xdd, 0x6c, 0x25, 0xd6, 0x73, 0x2c, 0x84, 0xae, - 0x67, 0xc2, 0x9d, 0xc0, 0x48, 0x20, 0x0b, 0xb0, 0xd1, 0xf3, 0x71, 0xe4, 0xfc, 0x0a, 0x0b, 0x64, - 0x5b, 0x14, 0x4a, 0xf0, 0xaa, 0x0c, 0x61, 0xdb, 0xb7, 0x95, 0x1f, 0x49, 0x70, 0x73, 0xa0, 0xa9, - 0xab, 0x6e, 0xd7, 0xb3, 0x71, 0x88, 0xa9, 0xb9, 0xf7, 0x62, 0x73, 0x97, 0xa0, 0x66, 0xe8, 0xb6, - 0xbd, 0xa3, 0x1b, 0x7b, 0x5a, 0xcf, 0xb7, 0xb8, 0x2a, 0x33, 0xc7, 0x47, 0x0b, 0x53, 0xab, 0x1c, - 0xbe, 0xad, 0x6e, 0xa8, 0x53, 0x02, 0x69, 0xdb, 0xb7, 0x9a, 0xaf, 0x0a, 0xf5, 0x2f, 0x03, 0x58, - 0x54, 0x64, 0xdb, 0xe2, 0x95, 0x71, 0x55, 0x35, 0x01, 0x51, 0xbe, 0x55, 0x80, 0x0b, 0x4c, 0x17, - 0x6c, 0xc6, 0xda, 0x05, 0x34, 0xf3, 0xfe, 0x76, 0x22, 0xbe, 0xbe, 0x06, 0xb3, 0x6d, 0xcb, 0x0e, - 0xe9, 0x6a, 0xed, 0x63, 0x27, 0xb3, 0x8e, 0x8d, 0x08, 0x4e, 0x92, 0x5e, 0x81, 0x1c, 0x04, 0x3d, - 0x5e, 0x7e, 0x52, 0x55, 0x6b, 0x1c, 0x91, 0xc2, 0xe8, 0xed, 0xda, 0x33, 0xc3, 0xee, 0x99, 0x58, - 0xa3, 0x13, 0x82, 0xbf, 0x64, 0x56, 0xd4, 0x3a, 0x07, 0xaf, 0x33, 0x68, 0x53, 0x17, 0xb6, 0x7c, - 0x01, 0xc0, 0x88, 0x54, 0xe4, 0x29, 0xeb, 0xc7, 0x33, 0xa7, 0x29, 0x7f, 0x09, 0x39, 0x69, 0x98, - 0x8a, 0x3b, 0x56, 0x10, 0x62, 0x1f, 0x9b, 0x6a, 0x82, 0x97, 0xf2, 0x4b, 0x09, 0x16, 0xd4, 0xf4, - 0x33, 0x12, 0x99, 0xd0, 0x1c, 0x99, 0x45, 0xba, 0xbf, 0x38, 0xc5, 0x6e, 0x13, 0x2d, 0xde, 0xc2, - 0xf0, 0xc5, 0x5b, 0x7c, 0x2e, 0x6f, 0x62, 0xa5, 0x9c, 0x37, 0xb1, 0x38, 0x61, 0xfd, 0x86, 0x04, - 0x57, 0xb2, 0x6c, 0x65, 0x10, 0x9e, 0x11, 0x9f, 0xe9, 0x82, 0x6c, 0x41, 0x0c, 0xd8, 0x3c, 0x14, - 0x5c, 0xe6, 0xa0, 0x0a, 0x0b, 0xd2, 0x4f, 0x1e, 0xaa, 0x05, 0x77, 0x4f, 0xf9, 0x53, 0x00, 0xd8, - 0x3a, 0x0c, 0x42, 0xdc, 0xa5, 0x07, 0x9e, 0x44, 0x6e, 0xf2, 0x6f, 0xd1, 0x3e, 0xba, 0x0c, 0x65, - 0xcf, 0x77, 0x0d, 0x1c, 0x04, 0x5c, 0xf0, 0xab, 0xd9, 0x01, 0x29, 0x62, 0xb3, 0xd8, 0x62, 0xe8, - 0xaa, 0xa0, 0x43, 0x9f, 0x82, 0xa2, 0xb7, 0xe4, 0x0d, 0x3c, 0x9c, 0x27, 0xc9, 0x97, 0x5a, 0x6c, - 0x7d, 0xb7, 0x96, 0x5a, 0x2a, 0x21, 0x44, 0x8f, 0xa1, 0xec, 0xfa, 0x3b, 0x56, 0x68, 0xee, 0xf0, - 0xc2, 0x86, 0xa1, 0x2a, 0x3c, 0x21, 0xe8, 0x6b, 0x2b, 0x6c, 0x36, 0xf0, 0x86, 0x2a, 0x98, 0x90, - 0xd9, 0x70, 0xa0, 0xfb, 0x8e, 0xc8, 0x65, 0x59, 0xa3, 0xf9, 0xaf, 0x12, 0x08, 0x54, 0x64, 0xc6, - 0x0f, 0x7c, 0xd1, 0x7e, 0xc4, 0xac, 0x7f, 0x7b, 0x44, 0xd1, 0x8b, 0xc9, 0xa1, 0xa5, 0x99, 0xb5, - 0x3a, 0xc3, 0x59, 0x46, 0xf7, 0xff, 0x5f, 0x87, 0xd9, 0x13, 0x58, 0x64, 0x0b, 0xf4, 0x7c, 0xb7, - 0xe3, 0x0b, 0x87, 0x17, 0xd5, 0xa8, 0x4d, 0xaf, 0x2a, 0xf4, 0x67, 0x56, 0xb7, 0xd7, 0xa5, 0xce, - 0x2c, 0xaa, 0xa2, 0x49, 0xa8, 0x76, 0x7a, 0xed, 0x36, 0x16, 0xab, 0xb7, 0xa8, 0x46, 0x6d, 0x92, - 0xbb, 0xb3, 0xa2, 0x13, 0x1e, 0xf7, 0x79, 0xab, 0xb9, 0x08, 0xc4, 0xc5, 0x64, 0xfd, 0x47, 0xc9, - 0xb2, 0x46, 0xb6, 0x7a, 0x21, 0xb7, 0x1e, 0x81, 0x49, 0x26, 0x10, 0x34, 0xbf, 0x3b, 0x09, 0x65, - 0x3e, 0xb6, 0x44, 0x13, 0x72, 0x6e, 0x26, 0x9b, 0x09, 0x0b, 0x3e, 0xa2, 0x89, 0x2e, 0x40, 0x79, - 0xdf, 0x08, 0x34, 0x1f, 0xb7, 0xf9, 0x62, 0x9b, 0xdc, 0x37, 0x02, 0x15, 0xb7, 0x49, 0xd2, 0xd3, - 0xf3, 0x42, 0xab, 0x8b, 0xb5, 0x6e, 0xc0, 0x74, 0x64, 0x49, 0xcf, 0x36, 0x05, 0x3e, 0xda, 0x52, - 0x2b, 0xac, 0xfb, 0x51, 0x80, 0x3e, 0x01, 0x72, 0x2f, 0xc0, 0xbe, 0x66, 0x78, 0x3d, 0x4d, 0x50, - 0x00, 0xa5, 0x98, 0x3d, 0x3e, 0x5a, 0x98, 0xde, 0x0e, 0xb0, 0xbf, 0xda, 0xda, 0x7e, 0xca, 0xc8, - 0xa6, 0x09, 0xea, 0xaa, 0xd7, 0x7b, 0xca, 0x68, 0x3f, 0x03, 0x28, 0xa0, 0xa3, 0x91, 0xa2, 0x9e, - 0xa2, 0xd4, 0xb4, 0xb8, 0x8d, 0x8d, 0x55, 0x4c, 0x3f, 0xc3, 0xd0, 0x63, 0x0e, 0x97, 0x00, 0x82, - 0x50, 0xa7, 0x7b, 0xb1, 0x1e, 0x36, 0x6a, 0xd4, 0x17, 0x55, 0x0e, 0x59, 0xa6, 0xa5, 0xee, 0xbe, - 0x4d, 0x52, 0x7c, 0xcd, 0xe8, 0xf9, 0x8d, 0x69, 0x5a, 0xdd, 0x58, 0x65, 0x90, 0xd5, 0x1e, 0x8d, - 0xb9, 0x4e, 0xaf, 0xab, 0x75, 0x5c, 0xdf, 0xed, 0x85, 0x96, 0x83, 0x1b, 0x75, 0xca, 0xa0, 0xe6, - 0xf4, 0xba, 0x0f, 0x04, 0x8c, 0x0c, 0x89, 0xe3, 0xb6, 0x2d, 0x1b, 0x37, 0x66, 0xd8, 0x90, 0xb0, - 0x16, 0x7a, 0x03, 0xce, 0x85, 0xae, 0xab, 0x75, 0x75, 0xe7, 0x50, 0x73, 0x3d, 0xec, 0x68, 0x04, - 0x1a, 0x34, 0x64, 0x1a, 0x8f, 0xe5, 0xd0, 0x75, 0x1f, 0xe9, 0xce, 0xe1, 0x13, 0x0f, 0x3b, 0xf7, - 0x09, 0x9c, 0x1c, 0x98, 0x88, 0x2c, 0xc3, 0xeb, 0x35, 0x66, 0xa9, 0x81, 0xf4, 0xc0, 0xf4, 0xb8, - 0x47, 0xac, 0x53, 0x27, 0x9d, 0x1e, 0x31, 0x8a, 0xe8, 0xdb, 0x71, 0x35, 0x31, 0x5a, 0x88, 0x8e, - 0x49, 0xb5, 0xe3, 0x7e, 0x8e, 0x8f, 0xd7, 0x4d, 0x90, 0x5d, 0x0f, 0xfb, 0xb4, 0xa0, 0x40, 0x63, - 0xae, 0x68, 0x9c, 0x63, 0x39, 0x51, 0x04, 0x67, 0x2e, 0x43, 0x2f, 0x41, 0x75, 0xd7, 0x0d, 0x42, - 0xcd, 0xd1, 0xbb, 0xb8, 0x31, 0x47, 0x71, 0x2a, 0x04, 0xf0, 0x58, 0xef, 0x62, 0xb2, 0x79, 0xeb, - 0xbe, 0xb1, 0xdb, 0x38, 0xcf, 0x36, 0x6f, 0xf2, 0x3b, 0xe1, 0xaa, 0xae, 0xfe, 0xac, 0x31, 0x9f, - 0x74, 0xd5, 0x23, 0xfd, 0x19, 0xd9, 0xd2, 0x3d, 0xcb, 0x6c, 0x5c, 0xa0, 0xaa, 0xb3, 0x25, 0x4f, - 0x52, 0x74, 0xcf, 0x32, 0xd1, 0x45, 0x28, 0x79, 0xa4, 0xaf, 0x41, 0xfb, 0x2a, 0xc7, 0x47, 0x0b, - 0xa5, 0x16, 0xe9, 0xa4, 0x50, 0xb6, 0x46, 0x2c, 0xd7, 0xb7, 0xc2, 0xc3, 0xc6, 0x8b, 0x62, 0x8d, - 0xb0, 0x36, 0xcd, 0x13, 0x2c, 0xb3, 0xd1, 0x8c, 0x99, 0x6e, 0x13, 0xa6, 0x3d, 0xcb, 0x44, 0x0b, - 0x30, 0x75, 0xe0, 0xfa, 0x7b, 0xc4, 0x50, 0xd3, 0xf2, 0x1b, 0x2f, 0xb1, 0x4d, 0x98, 0x83, 0xd6, - 0x2c, 0xba, 0x15, 0xf2, 0xb9, 0x43, 0xe6, 0x14, 0x35, 0xf3, 0x22, 0x45, 0xaa, 0x33, 0xf0, 0x36, - 0x87, 0x2a, 0xbf, 0x9e, 0x80, 0x0a, 0x59, 0x14, 0x74, 0x7b, 0x4e, 0x84, 0xcd, 0x65, 0x11, 0x35, - 0x3f, 0x0e, 0x13, 0x62, 0x29, 0x15, 0x73, 0x2f, 0x51, 0x05, 0x07, 0xfa, 0x43, 0x65, 0x04, 0xcd, - 0x9f, 0x16, 0xa0, 0x44, 0xda, 0x89, 0x0a, 0xea, 0x6a, 0xaa, 0x82, 0xfa, 0x2e, 0x4c, 0x92, 0x69, - 0x84, 0xd9, 0xc1, 0x25, 0x2f, 0xa0, 0x46, 0xbc, 0x55, 0x82, 0xab, 0x72, 0x12, 0x32, 0xf1, 0xb0, - 0xef, 0xbb, 0x3e, 0xcb, 0x2e, 0xab, 0x2a, 0x6f, 0xa1, 0x65, 0xa8, 0xb4, 0xb1, 0x1e, 0xf6, 0x7c, - 0xcc, 0xa2, 0x62, 0x3d, 0xaf, 0xf8, 0x5c, 0xb0, 0xbd, 0xcf, 0xb0, 0xd5, 0x88, 0x8c, 0x78, 0xb7, - 0x6b, 0x39, 0x9a, 0xad, 0x87, 0xd8, 0x31, 0xd8, 0xd7, 0x13, 0x45, 0x15, 0xba, 0x96, 0xb3, 0xc9, - 0x20, 0x64, 0xfa, 0x58, 0x81, 0x46, 0x6f, 0x7c, 0x30, 0xbf, 0x7e, 0xab, 0x58, 0x01, 0xbd, 0x6f, - 0xc2, 0xe8, 0x93, 0x50, 0x35, 0x2d, 0x9f, 0x9c, 0xc0, 0x5d, 0x87, 0x97, 0x1b, 0x64, 0x1f, 0xac, - 0xd6, 0x04, 0x96, 0x1a, 0x13, 0x34, 0xff, 0x9e, 0x6c, 0x57, 0xc4, 0xc2, 0xb4, 0x10, 0xa9, 0x4f, - 0x48, 0x03, 0xca, 0xba, 0x69, 0xd2, 0xd0, 0xca, 0x62, 0x93, 0x68, 0xa6, 0xc5, 0x17, 0xc7, 0x14, - 0x4f, 0xf8, 0x0a, 0xb3, 0x59, 0x88, 0x15, 0x4d, 0xf4, 0x29, 0x28, 0x07, 0xa1, 0x8f, 0xf5, 0x2e, - 0x2b, 0xe2, 0x98, 0x5a, 0x7a, 0x65, 0xb0, 0x5b, 0xb7, 0x28, 0xb2, 0x2a, 0x88, 0x9a, 0x57, 0x60, - 0x92, 0x81, 0xf2, 0xa6, 0x83, 0xf2, 0x3e, 0x94, 0xf9, 0x58, 0x20, 0x04, 0x75, 0x7e, 0x4d, 0xc1, - 0x21, 0xf2, 0x0b, 0x68, 0x06, 0xa6, 0x3e, 0x8f, 0x83, 0x5d, 0x01, 0x90, 0x50, 0x1d, 0x60, 0x65, - 0x73, 0x5d, 0xb4, 0xe9, 0xb5, 0xc5, 0xa6, 0x6b, 0xe8, 0xb6, 0x80, 0x14, 0xe9, 0x85, 0x87, 0xeb, - 0x8b, 0x76, 0x89, 0xb0, 0x78, 0xb7, 0x67, 0x19, 0x02, 0x30, 0xa1, 0xfc, 0x58, 0x82, 0x4a, 0x4b, - 0xec, 0x49, 0x73, 0x30, 0x11, 0x84, 0x7a, 0x28, 0xce, 0x5b, 0xac, 0x41, 0xa0, 0xa6, 0x6b, 0x39, - 0x1d, 0x91, 0x70, 0xd1, 0x46, 0x6a, 0x6f, 0x23, 0x4e, 0x2e, 0x24, 0xf6, 0xb6, 0x8b, 0x50, 0x35, - 0x78, 0xe2, 0xcd, 0x36, 0xaa, 0x92, 0x1a, 0x03, 0x58, 0x02, 0x17, 0xea, 0x36, 0x9d, 0x56, 0x25, - 0x95, 0x35, 0xa8, 0x14, 0x6c, 0xeb, 0xec, 0x23, 0xa6, 0x92, 0xca, 0x1a, 0xca, 0x91, 0x04, 0xb3, - 0x4f, 0x7a, 0xe1, 0x93, 0x36, 0xbd, 0x9d, 0x10, 0x5f, 0x61, 0x0c, 0xb8, 0x0f, 0x18, 0xe3, 0x66, - 0x2d, 0x51, 0xd7, 0x4e, 0x0c, 0x98, 0x8c, 0xbf, 0x6e, 0xe1, 0x9f, 0xac, 0x94, 0xe2, 0x4f, 0x56, - 0xe6, 0x60, 0xa2, 0x6d, 0xeb, 0x9d, 0x80, 0xea, 0x5c, 0x56, 0x59, 0x83, 0x24, 0xf0, 0x58, 0x7c, - 0x21, 0xa2, 0xa5, 0x8f, 0xf6, 0x72, 0xd4, 0xc1, 0xbf, 0x5c, 0x88, 0x3f, 0xb9, 0x28, 0x27, 0x3e, - 0xb9, 0x50, 0x6c, 0x78, 0xf1, 0x84, 0x7d, 0x43, 0x3e, 0xe2, 0x91, 0xa1, 0xb8, 0xe3, 0x3e, 0xe3, - 0x47, 0x2e, 0xf2, 0x93, 0xc4, 0x3a, 0x96, 0x3a, 0xfb, 0xa2, 0xbe, 0x82, 0x9f, 0xb8, 0xeb, 0x1d, - 0x56, 0x66, 0xc6, 0xa1, 0xca, 0x7f, 0xa5, 0xdc, 0xc9, 0x2b, 0x2c, 0x9b, 0x57, 0xe3, 0xc4, 0x34, - 0x71, 0x45, 0x21, 0xa5, 0xae, 0x28, 0x48, 0xaa, 0xce, 0xe3, 0xe1, 0x67, 0xe2, 0x47, 0x16, 0x96, - 0x47, 0x5d, 0xcf, 0x5c, 0x07, 0x27, 0xcc, 0x8a, 0xbf, 0x3e, 0x21, 0xf3, 0xc3, 0xc6, 0x64, 0x13, - 0x7e, 0x26, 0xee, 0x53, 0x63, 0x00, 0xba, 0x01, 0x32, 0x3f, 0x08, 0xc4, 0xe7, 0xcb, 0xa4, 0x39, - 0xad, 0xe8, 0x90, 0x79, 0x13, 0x64, 0xdd, 0xf6, 0xb1, 0x6e, 0x1e, 0x6a, 0x3e, 0xaf, 0x16, 0xa5, - 0x83, 0x56, 0x51, 0x67, 0x38, 0x5c, 0x14, 0x91, 0xd2, 0x57, 0xbf, 0x58, 0xa3, 0x2d, 0xac, 0xdb, - 0xcd, 0xc7, 0xb1, 0xd9, 0x03, 0x26, 0x54, 0x96, 0x36, 0x85, 0x2c, 0x6d, 0x9a, 0xd7, 0x84, 0x83, - 0x2e, 0x42, 0x35, 0x1a, 0x7d, 0xf1, 0x91, 0x50, 0x04, 0x50, 0xfe, 0xa6, 0x10, 0x15, 0x38, 0x0f, - 0x3a, 0x4b, 0x8d, 0x53, 0x10, 0x78, 0x17, 0x9a, 0x81, 0xd5, 0x71, 0xb0, 0xc9, 0x0f, 0x92, 0xe1, - 0xe1, 0x49, 0x6d, 0x2f, 0x30, 0x8c, 0x0d, 0x8e, 0x10, 0x3b, 0xf1, 0x36, 0x9c, 0xdb, 0xe7, 0x7a, - 0x68, 0x89, 0xa3, 0x20, 0x3b, 0xb8, 0xa3, 0xfd, 0x13, 0x2a, 0x92, 0x59, 0xef, 0x53, 0x35, 0xd9, - 0x7d, 0x83, 0x66, 0x92, 0x88, 0xc1, 0x62, 0xa5, 0x9c, 0xec, 0x58, 0x23, 0xc1, 0x83, 0x9e, 0x48, - 0xc5, 0xd5, 0x04, 0x43, 0x65, 0xbb, 0x49, 0x3d, 0x06, 0x53, 0xc4, 0xf4, 0xa1, 0x7a, 0xb2, 0xff, - 0x50, 0x4d, 0x76, 0x3b, 0x7e, 0xf0, 0x2d, 0xb3, 0x54, 0x94, 0xb5, 0x94, 0x7b, 0x30, 0x7b, 0xdf, - 0xf2, 0x83, 0x70, 0x53, 0x0f, 0xc2, 0x55, 0xb6, 0x7e, 0x69, 0x20, 0x6b, 0x13, 0x20, 0xff, 0x6c, - 0x8d, 0x35, 0xe8, 0x9d, 0x84, 0x1e, 0x84, 0xfc, 0x2b, 0x16, 0xfa, 0x5b, 0xf9, 0x47, 0x09, 0xce, - 0xf1, 0x34, 0x3f, 0xf1, 0xa8, 0xc8, 0x12, 0x47, 0xac, 0xdb, 0xd8, 0xd4, 0xe2, 0xb5, 0x56, 0x65, - 0x90, 0x15, 0xf7, 0x19, 0x7a, 0x19, 0x6a, 0xbe, 0x7e, 0xa0, 0xf9, 0x2e, 0x7b, 0x53, 0xe7, 0xf3, - 0x73, 0xca, 0xd7, 0x0f, 0x54, 0x0e, 0x6a, 0x7e, 0x47, 0x82, 0x22, 0x41, 0x4d, 0x6c, 0x54, 0x52, - 0x7a, 0xa3, 0x9a, 0x83, 0x09, 0xfa, 0x79, 0xa3, 0x78, 0x52, 0xa0, 0x8d, 0x31, 0x9e, 0x78, 0xfa, - 0xab, 0x0f, 0x6b, 0x99, 0x97, 0xec, 0xbf, 0x96, 0xe0, 0xbc, 0x8a, 0xdb, 0x3e, 0x0e, 0x76, 0xd3, - 0xe5, 0x43, 0xcd, 0xb7, 0x86, 0x64, 0x27, 0x73, 0x30, 0xc1, 0xde, 0x09, 0x0a, 0xec, 0x6c, 0xc5, - 0x9e, 0x09, 0xde, 0x3d, 0x65, 0xa9, 0x0b, 0x71, 0x04, 0x49, 0xe1, 0xdd, 0x5e, 0x28, 0x4e, 0x3c, - 0xbc, 0xd9, 0xfc, 0xa2, 0x58, 0x39, 0x2d, 0x98, 0xa2, 0x99, 0x93, 0xd6, 0x76, 0x7b, 0x8e, 0xc9, - 0x13, 0xae, 0xdb, 0x99, 0xe1, 0x25, 0xd3, 0x24, 0x96, 0x7d, 0x01, 0xe5, 0x71, 0x9f, 0xb0, 0xb8, - 0x65, 0x41, 0x7c, 0x61, 0x8e, 0xe6, 0xf9, 0x7b, 0x3b, 0x7b, 0x6c, 0x30, 0x71, 0xdb, 0x72, 0xb0, - 0x29, 0xbf, 0x80, 0xe6, 0xf8, 0x13, 0x29, 0x81, 0xf3, 0xa5, 0x29, 0x4b, 0x29, 0x28, 0x17, 0xc3, - 0x5e, 0x1a, 0x22, 0x68, 0xa2, 0xc8, 0x42, 0x2e, 0xde, 0xfa, 0xf3, 0x32, 0x54, 0xe3, 0x7b, 0xe1, - 0x79, 0x40, 0x51, 0x23, 0x29, 0xeb, 0x2a, 0x2c, 0x44, 0xf0, 0xec, 0x8f, 0xc2, 0x64, 0x09, 0x5d, - 0x83, 0x97, 0xd3, 0x48, 0x19, 0x1f, 0x58, 0xc9, 0x05, 0xb4, 0x00, 0x2f, 0x45, 0x68, 0x27, 0xbf, - 0x52, 0x91, 0x31, 0xba, 0x04, 0x2f, 0x66, 0x22, 0x6c, 0xe2, 0x76, 0x28, 0xb7, 0xd1, 0x2d, 0xb8, - 0xde, 0xdf, 0x9d, 0xfd, 0x2d, 0x88, 0xdc, 0x41, 0x37, 0xe1, 0xda, 0x60, 0x5c, 0x51, 0x28, 0xb9, - 0x8b, 0xee, 0xc0, 0xeb, 0x83, 0x51, 0xd3, 0x9f, 0x72, 0xc8, 0x16, 0x5a, 0x82, 0xc5, 0xc1, 0x14, - 0xfd, 0xdf, 0x5c, 0xc8, 0x5f, 0x41, 0x8b, 0x70, 0x6b, 0x34, 0x9a, 0x2d, 0xec, 0x84, 0xf2, 0xde, - 0x70, 0x19, 0xfd, 0x1f, 0x1e, 0xc8, 0x36, 0xfa, 0x08, 0xdc, 0x1e, 0x8d, 0x26, 0x2a, 0xe3, 0x97, - 0xbb, 0xa3, 0x0b, 0x12, 0x75, 0xf7, 0xb2, 0x83, 0x14, 0xb8, 0x9c, 0x43, 0xc3, 0x2b, 0xe0, 0x65, - 0x17, 0xbd, 0x02, 0x57, 0x72, 0x70, 0xa2, 0x9a, 0x75, 0xd9, 0x43, 0x0a, 0x5c, 0x8a, 0xb0, 0xb2, - 0x3e, 0x70, 0x94, 0x7f, 0x26, 0xa1, 0x3b, 0xf0, 0x5a, 0x84, 0x33, 0xfc, 0x2b, 0x39, 0xf9, 0x27, - 0x05, 0xf4, 0x56, 0xc2, 0x11, 0xa3, 0x7d, 0x2d, 0x26, 0xff, 0x51, 0x01, 0x2d, 0xc2, 0xcd, 0x7c, - 0x39, 0x7d, 0xdf, 0xbc, 0xc9, 0x7f, 0x5c, 0x40, 0x97, 0x13, 0xd3, 0xb5, 0xbf, 0x40, 0x5e, 0xfe, - 0x51, 0x11, 0xbd, 0x79, 0x72, 0x62, 0x0d, 0xda, 0x42, 0xe5, 0x5f, 0x15, 0xd1, 0xf5, 0xfe, 0x95, - 0x94, 0xf1, 0x41, 0xa9, 0xfc, 0xcb, 0xf2, 0xad, 0xef, 0x49, 0xd0, 0xc8, 0x7b, 0x9f, 0x22, 0xcb, - 0x31, 0xaf, 0xaf, 0x6f, 0x69, 0xe7, 0xa1, 0xf1, 0xbd, 0x45, 0x96, 0xc8, 0x28, 0xe6, 0x23, 0x31, - 0xd5, 0xe4, 0xc2, 0xad, 0xbf, 0x94, 0xa2, 0xa2, 0x45, 0x56, 0x96, 0xfc, 0x62, 0x54, 0xfc, 0x49, - 0xdb, 0x49, 0xb1, 0x7d, 0x5d, 0x4f, 0x5d, 0x3e, 0xcd, 0x64, 0x89, 0x04, 0xab, 0x64, 0x57, 0x34, - 0xb3, 0x0b, 0xe8, 0x3c, 0xcc, 0x26, 0x7b, 0xd8, 0x40, 0x17, 0xd1, 0x85, 0xa8, 0x0a, 0x91, 0x13, - 0x74, 0x5d, 0x82, 0x5f, 0xea, 0x17, 0x12, 0xcf, 0xf7, 0x89, 0x7e, 0x1a, 0x31, 0x61, 0x27, 0x6f, - 0x3d, 0x80, 0x6a, 0x74, 0xc4, 0x22, 0x27, 0x11, 0x7e, 0xa0, 0x59, 0xb3, 0x7c, 0xf9, 0x05, 0xd2, - 0xde, 0x70, 0x76, 0x48, 0x8c, 0x26, 0x6d, 0x89, 0x9c, 0x4c, 0x9e, 0xf4, 0xc2, 0x08, 0x50, 0x40, - 0x55, 0x98, 0x58, 0xb1, 0xc8, 0xcf, 0xe2, 0xd2, 0x3f, 0x5c, 0x87, 0x19, 0xf1, 0xa9, 0xb4, 0x78, - 0x22, 0x0a, 0x32, 0xbe, 0x47, 0x40, 0x8b, 0x83, 0x1e, 0x58, 0x62, 0xbc, 0xc5, 0xe8, 0xa3, 0x85, - 0x91, 0xf1, 0x3d, 0xfb, 0xf0, 0x8e, 0x84, 0xbe, 0x25, 0xe5, 0x7e, 0xb6, 0x80, 0xde, 0x1a, 0xab, - 0x22, 0x5d, 0x68, 0xb0, 0x34, 0x26, 0x15, 0xd9, 0x25, 0x89, 0x16, 0x39, 0x01, 0x35, 0x47, 0x8b, - 0x1c, 0xec, 0x21, 0x5a, 0xe4, 0x53, 0x11, 0x2d, 0xbe, 0x9e, 0x53, 0x70, 0x8e, 0x46, 0x61, 0xc6, - 0x71, 0x23, 0x05, 0xee, 0x8c, 0x45, 0x43, 0xc4, 0x7f, 0x35, 0xbb, 0x84, 0x1d, 0xbd, 0x39, 0x02, - 0x27, 0x86, 0x1a, 0x09, 0xbf, 0x3d, 0x0e, 0x09, 0x91, 0xfd, 0xdb, 0xd2, 0xe0, 0xea, 0x76, 0xf4, - 0xf6, 0x48, 0xfe, 0x4c, 0x92, 0x44, 0xca, 0x7c, 0xec, 0x34, 0xa4, 0x44, 0xa9, 0x30, 0xab, 0x0c, - 0x1e, 0x8d, 0x62, 0x1b, 0x41, 0x8c, 0xe4, 0xbf, 0x31, 0x3a, 0x41, 0xe6, 0x30, 0xb0, 0x4d, 0x6d, - 0xa4, 0x61, 0x60, 0xa8, 0x63, 0x0d, 0x43, 0x44, 0x92, 0x37, 0x03, 0x49, 0x54, 0x1a, 0x75, 0x06, - 0x12, 0xdc, 0x71, 0x67, 0x20, 0xa7, 0x21, 0xe2, 0x77, 0xd2, 0x45, 0xf3, 0xe8, 0x66, 0x7e, 0x5d, - 0x3a, 0x47, 0x89, 0x84, 0xbd, 0x3a, 0x0a, 0x2a, 0x91, 0x81, 0xfb, 0x4a, 0xe9, 0xd1, 0xad, 0x9c, - 0xca, 0x8a, 0x04, 0x4e, 0x24, 0xe5, 0xc6, 0x48, 0xb8, 0xdc, 0x94, 0x64, 0xba, 0x91, 0x63, 0x4a, - 0x12, 0x65, 0x88, 0x29, 0x7d, 0xa8, 0x44, 0xc6, 0x6e, 0x7f, 0xd1, 0x3c, 0x7a, 0x6d, 0x10, 0x29, - 0x47, 0x8a, 0xe4, 0xdc, 0x1c, 0x0d, 0x99, 0x48, 0x3a, 0xc8, 0x2c, 0xa5, 0x47, 0x03, 0x47, 0x38, - 0x89, 0x19, 0xc9, 0x5c, 0x1c, 0x83, 0x82, 0x08, 0xfe, 0x86, 0x94, 0x57, 0x71, 0x8f, 0x3e, 0x92, - 0x5d, 0xc7, 0x9a, 0x89, 0x1c, 0xc9, 0x7f, 0x73, 0x3c, 0x22, 0xbe, 0x1e, 0xb3, 0xaa, 0xf3, 0xd1, - 0x68, 0xac, 0x08, 0xea, 0x90, 0xf5, 0x98, 0x43, 0xc2, 0xd7, 0x63, 0x66, 0xed, 0x7e, 0xce, 0x7a, - 0xcc, 0xc4, 0x1d, 0xb2, 0x1e, 0xf3, 0x68, 0x88, 0xf8, 0x9f, 0x48, 0x23, 0x96, 0xf9, 0xa3, 0x95, - 0x91, 0x78, 0x67, 0xd2, 0x46, 0xfa, 0x7d, 0xe6, 0x4c, 0x3c, 0x88, 0xbe, 0xbf, 0x3b, 0xf4, 0x83, - 0x01, 0x74, 0x77, 0x34, 0x21, 0x29, 0xa2, 0x48, 0xc3, 0xb7, 0x4f, 0x47, 0x4c, 0x54, 0xfb, 0xfd, - 0x11, 0xbe, 0x20, 0x40, 0xf7, 0x46, 0xe2, 0xdf, 0x4f, 0x16, 0xa9, 0x77, 0xf7, 0xb4, 0xe4, 0x44, - 0xc1, 0xbd, 0x13, 0x9f, 0x13, 0xa0, 0xec, 0x5c, 0xae, 0x0f, 0x2b, 0x92, 0x7e, 0x6b, 0x44, 0x6c, - 0x1e, 0xb9, 0xd2, 0x1f, 0x0c, 0xe4, 0x44, 0xae, 0x34, 0xd2, 0x90, 0xc8, 0x75, 0x02, 0x99, 0x48, - 0x72, 0x32, 0x8a, 0xd4, 0x73, 0x92, 0xda, 0x13, 0x78, 0x43, 0x22, 0xf2, 0xc9, 0x0f, 0x0d, 0xee, - 0x48, 0x68, 0xef, 0x64, 0x6d, 0x38, 0x7a, 0x63, 0x10, 0x79, 0x84, 0x16, 0x49, 0xbb, 0x3e, 0x14, - 0x5d, 0x08, 0xfb, 0x62, 0xa2, 0x20, 0x1b, 0x0d, 0x20, 0xa3, 0x4f, 0xef, 0x82, 0xfd, 0x2b, 0x43, - 0xf1, 0xf8, 0x36, 0x99, 0xaa, 0x75, 0xce, 0xd9, 0x26, 0x53, 0x38, 0x43, 0xb6, 0xc9, 0x7e, 0x5c, - 0x3e, 0xeb, 0xfa, 0xca, 0x9c, 0x73, 0x66, 0x5d, 0x1f, 0xd6, 0x90, 0x59, 0x77, 0x12, 0x9b, 0x08, - 0x0b, 0x32, 0x6a, 0xa0, 0x07, 0xcd, 0x85, 0x54, 0xe5, 0xef, 0xe0, 0x03, 0x4e, 0x16, 0x3e, 0x3b, - 0xe0, 0x74, 0x4f, 0x54, 0xb9, 0xe6, 0x5a, 0x98, 0xc2, 0x1a, 0x6a, 0x61, 0x3f, 0x36, 0x13, 0xf7, - 0x4d, 0x29, 0xaf, 0x10, 0x35, 0x67, 0xc3, 0xcc, 0x46, 0x1e, 0xb2, 0x61, 0xe6, 0x12, 0x31, 0x25, - 0xde, 0x4b, 0x16, 0x5f, 0xa2, 0x57, 0xf3, 0x59, 0xa4, 0xc7, 0xf2, 0xda, 0x70, 0x44, 0x32, 0x8c, - 0xef, 0x25, 0xcb, 0x72, 0xd0, 0xd0, 0x6a, 0x97, 0xc1, 0xdc, 0x53, 0x88, 0x62, 0xcf, 0x1b, 0xa9, - 0xd6, 0x2f, 0x67, 0xcf, 0x1b, 0x89, 0x76, 0xc8, 0x9e, 0x37, 0x2a, 0x0f, 0xa2, 0xef, 0x9f, 0x8d, - 0x53, 0xb0, 0x87, 0xee, 0x8f, 0x2f, 0x2f, 0x49, 0x1f, 0xe9, 0xbd, 0x76, 0x66, 0x3e, 0x44, 0xf7, - 0xef, 0x48, 0xb9, 0x65, 0x7d, 0x39, 0xc7, 0xee, 0x1c, 0xec, 0x21, 0xc7, 0xee, 0x7c, 0x2a, 0x36, - 0x5f, 0x7f, 0x6f, 0x78, 0x61, 0x1d, 0xfa, 0x64, 0xce, 0x9d, 0xf9, 0x40, 0xaa, 0x48, 0xaf, 0x4f, - 0x9c, 0x92, 0x9a, 0x78, 0xe9, 0x73, 0x71, 0x35, 0x05, 0x1a, 0x52, 0x77, 0x20, 0xc4, 0x0d, 0xab, - 0x7a, 0xa0, 0x7c, 0xdf, 0xcf, 0x78, 0xb9, 0xcc, 0x09, 0x87, 0x27, 0xf0, 0x86, 0x84, 0xc3, 0x2c, - 0x7c, 0xbe, 0xef, 0xa7, 0x9f, 0x0c, 0x73, 0xf6, 0xfd, 0x34, 0xd2, 0x90, 0x7d, 0xff, 0x04, 0x32, - 0xcf, 0x9c, 0x33, 0xdf, 0x33, 0x72, 0x32, 0xe7, 0xec, 0xb7, 0x8f, 0xc1, 0x99, 0x73, 0x1e, 0x8d, - 0x67, 0x1f, 0xae, 0x7c, 0xf4, 0x83, 0x7f, 0xba, 0xfc, 0xc2, 0x5f, 0x1d, 0x5f, 0x96, 0x3e, 0x38, - 0xbe, 0x2c, 0xfd, 0xfc, 0xf8, 0xb2, 0xf4, 0xa5, 0x57, 0x76, 0xb0, 0x1f, 0x1e, 0x2e, 0x86, 0xd8, - 0xd8, 0xbd, 0xcd, 0xb9, 0xdd, 0xf6, 0xf6, 0x3a, 0xb7, 0x53, 0xff, 0x36, 0x76, 0x67, 0x92, 0x36, - 0x3f, 0xf2, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x88, 0xd3, 0x9d, 0xd9, 0x4e, 0x56, 0x00, 0x00, -} - -func (m *Account) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Account) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Account) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.PublicRendezvousSeed) > 0 { - i -= len(m.PublicRendezvousSeed) - copy(dAtA[i:], m.PublicRendezvousSeed) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.PublicRendezvousSeed))) - i-- - dAtA[i] = 0x22 - } - if len(m.AliasPrivateKey) > 0 { - i -= len(m.AliasPrivateKey) - copy(dAtA[i:], m.AliasPrivateKey) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.AliasPrivateKey))) - i-- - dAtA[i] = 0x1a - } - if len(m.AccountPrivateKey) > 0 { - i -= len(m.AccountPrivateKey) - copy(dAtA[i:], m.AccountPrivateKey) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.AccountPrivateKey))) - i-- - dAtA[i] = 0x12 - } - if m.Group != nil { - { - size, err := m.Group.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintProtocoltypes(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Group) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Group) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Group) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.LinkKeySig) > 0 { - i -= len(m.LinkKeySig) - copy(dAtA[i:], m.LinkKeySig) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.LinkKeySig))) - i-- - dAtA[i] = 0x3a - } - if len(m.LinkKey) > 0 { - i -= len(m.LinkKey) - copy(dAtA[i:], m.LinkKey) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.LinkKey))) - i-- - dAtA[i] = 0x32 - } - if len(m.SignPub) > 0 { - i -= len(m.SignPub) - copy(dAtA[i:], m.SignPub) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.SignPub))) - i-- - dAtA[i] = 0x2a - } - if m.GroupType != 0 { - i = encodeVarintProtocoltypes(dAtA, i, uint64(m.GroupType)) - i-- - dAtA[i] = 0x20 - } - if len(m.SecretSig) > 0 { - i -= len(m.SecretSig) - copy(dAtA[i:], m.SecretSig) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.SecretSig))) - i-- - dAtA[i] = 0x1a - } - if len(m.Secret) > 0 { - i -= len(m.Secret) - copy(dAtA[i:], m.Secret) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.Secret))) - i-- - dAtA[i] = 0x12 - } - if len(m.PublicKey) > 0 { - i -= len(m.PublicKey) - copy(dAtA[i:], m.PublicKey) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.PublicKey))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *GroupHeadsExport) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GroupHeadsExport) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GroupHeadsExport) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.LinkKey) > 0 { - i -= len(m.LinkKey) - copy(dAtA[i:], m.LinkKey) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.LinkKey))) - i-- - dAtA[i] = 0x2a - } - if len(m.MessagesHeadsCIDs) > 0 { - for iNdEx := len(m.MessagesHeadsCIDs) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.MessagesHeadsCIDs[iNdEx]) - copy(dAtA[i:], m.MessagesHeadsCIDs[iNdEx]) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.MessagesHeadsCIDs[iNdEx]))) - i-- - dAtA[i] = 0x22 - } - } - if len(m.MetadataHeadsCIDs) > 0 { - for iNdEx := len(m.MetadataHeadsCIDs) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.MetadataHeadsCIDs[iNdEx]) - copy(dAtA[i:], m.MetadataHeadsCIDs[iNdEx]) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.MetadataHeadsCIDs[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if len(m.SignPub) > 0 { - i -= len(m.SignPub) - copy(dAtA[i:], m.SignPub) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.SignPub))) - i-- - dAtA[i] = 0x12 - } - if len(m.PublicKey) > 0 { - i -= len(m.PublicKey) - copy(dAtA[i:], m.PublicKey) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.PublicKey))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *GroupMetadata) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GroupMetadata) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GroupMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ProtocolMetadata != nil { - { - size, err := m.ProtocolMetadata.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintProtocoltypes(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if len(m.Sig) > 0 { - i -= len(m.Sig) - copy(dAtA[i:], m.Sig) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.Sig))) - i-- - dAtA[i] = 0x1a - } - if len(m.Payload) > 0 { - i -= len(m.Payload) - copy(dAtA[i:], m.Payload) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.Payload))) - i-- - dAtA[i] = 0x12 - } - if m.EventType != 0 { - i = encodeVarintProtocoltypes(dAtA, i, uint64(m.EventType)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *GroupEnvelope) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GroupEnvelope) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GroupEnvelope) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Event) > 0 { - i -= len(m.Event) - copy(dAtA[i:], m.Event) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.Event))) - i-- - dAtA[i] = 0x12 - } - if len(m.Nonce) > 0 { - i -= len(m.Nonce) - copy(dAtA[i:], m.Nonce) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.Nonce))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MessageHeaders) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MessageHeaders) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MessageHeaders) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Metadata) > 0 { - for k := range m.Metadata { - v := m.Metadata[k] - baseI := i - i -= len(v) - copy(dAtA[i:], v) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(v))) - i-- - dAtA[i] = 0x12 - i -= len(k) - copy(dAtA[i:], k) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(k))) - i-- - dAtA[i] = 0xa - i = encodeVarintProtocoltypes(dAtA, i, uint64(baseI-i)) - i-- - dAtA[i] = 0x22 - } - } - if len(m.Sig) > 0 { - i -= len(m.Sig) - copy(dAtA[i:], m.Sig) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.Sig))) - i-- - dAtA[i] = 0x1a - } - if len(m.DevicePK) > 0 { - i -= len(m.DevicePK) - copy(dAtA[i:], m.DevicePK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.DevicePK))) - i-- - dAtA[i] = 0x12 - } - if m.Counter != 0 { - i = encodeVarintProtocoltypes(dAtA, i, uint64(m.Counter)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *ProtocolMetadata) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ProtocolMetadata) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ProtocolMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *EncryptedMessage) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EncryptedMessage) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EncryptedMessage) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ProtocolMetadata != nil { - { - size, err := m.ProtocolMetadata.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintProtocoltypes(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Plaintext) > 0 { - i -= len(m.Plaintext) - copy(dAtA[i:], m.Plaintext) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.Plaintext))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MessageEnvelope) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MessageEnvelope) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MessageEnvelope) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Nonce) > 0 { - i -= len(m.Nonce) - copy(dAtA[i:], m.Nonce) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.Nonce))) - i-- - dAtA[i] = 0x1a - } - if len(m.Message) > 0 { - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x12 - } - if len(m.MessageHeaders) > 0 { - i -= len(m.MessageHeaders) - copy(dAtA[i:], m.MessageHeaders) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.MessageHeaders))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *EventContext) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EventContext) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EventContext) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.GroupPK) > 0 { - i -= len(m.GroupPK) - copy(dAtA[i:], m.GroupPK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.GroupPK))) - i-- - dAtA[i] = 0x1a - } - if len(m.ParentIDs) > 0 { - for iNdEx := len(m.ParentIDs) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.ParentIDs[iNdEx]) - copy(dAtA[i:], m.ParentIDs[iNdEx]) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.ParentIDs[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(m.ID) > 0 { - i -= len(m.ID) - copy(dAtA[i:], m.ID) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.ID))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *GroupMetadataPayloadSent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GroupMetadataPayloadSent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GroupMetadataPayloadSent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Message) > 0 { - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x12 - } - if len(m.DevicePK) > 0 { - i -= len(m.DevicePK) - copy(dAtA[i:], m.DevicePK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.DevicePK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ContactAliasKeyAdded) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + return ms } - return dAtA[:n], nil -} - -func (m *ContactAliasKeyAdded) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ContactAliasKeyAdded) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.AliasPK) > 0 { - i -= len(m.AliasPK) - copy(dAtA[i:], m.AliasPK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.AliasPK))) - i-- - dAtA[i] = 0x12 - } - if len(m.DevicePK) > 0 { - i -= len(m.DevicePK) - copy(dAtA[i:], m.DevicePK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.DevicePK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *GroupMemberDeviceAdded) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GroupMemberDeviceAdded) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GroupMemberDeviceAdded) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.MemberSig) > 0 { - i -= len(m.MemberSig) - copy(dAtA[i:], m.MemberSig) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.MemberSig))) - i-- - dAtA[i] = 0x1a - } - if len(m.DevicePK) > 0 { - i -= len(m.DevicePK) - copy(dAtA[i:], m.DevicePK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.DevicePK))) - i-- - dAtA[i] = 0x12 - } - if len(m.MemberPK) > 0 { - i -= len(m.MemberPK) - copy(dAtA[i:], m.MemberPK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.MemberPK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DeviceChainKey) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeviceChainKey) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeviceChainKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Counter != 0 { - i = encodeVarintProtocoltypes(dAtA, i, uint64(m.Counter)) - i-- - dAtA[i] = 0x10 - } - if len(m.ChainKey) > 0 { - i -= len(m.ChainKey) - copy(dAtA[i:], m.ChainKey) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.ChainKey))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *GroupDeviceChainKeyAdded) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil + return mi.MessageOf(x) } -func (m *GroupDeviceChainKeyAdded) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GroupDeviceChainKeyAdded) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Payload) > 0 { - i -= len(m.Payload) - copy(dAtA[i:], m.Payload) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.Payload))) - i-- - dAtA[i] = 0x1a - } - if len(m.DestMemberPK) > 0 { - i -= len(m.DestMemberPK) - copy(dAtA[i:], m.DestMemberPK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.DestMemberPK))) - i-- - dAtA[i] = 0x12 - } - if len(m.DevicePK) > 0 { - i -= len(m.DevicePK) - copy(dAtA[i:], m.DevicePK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.DevicePK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MultiMemberGroupAliasResolverAdded) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +// Deprecated: Use PeerList_Stream.ProtoReflect.Descriptor instead. +func (*PeerList_Stream) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{75, 4} } -func (m *MultiMemberGroupAliasResolverAdded) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MultiMemberGroupAliasResolverAdded) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.AliasProof) > 0 { - i -= len(m.AliasProof) - copy(dAtA[i:], m.AliasProof) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.AliasProof))) - i-- - dAtA[i] = 0x1a - } - if len(m.AliasResolver) > 0 { - i -= len(m.AliasResolver) - copy(dAtA[i:], m.AliasResolver) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.AliasResolver))) - i-- - dAtA[i] = 0x12 +func (x *PeerList_Stream) GetId() string { + if x != nil { + return x.Id } - if len(m.DevicePK) > 0 { - i -= len(m.DevicePK) - copy(dAtA[i:], m.DevicePK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.DevicePK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return "" } -func (m *MultiMemberGroupAdminRoleGranted) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MultiMemberGroupAdminRoleGranted) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MultiMemberGroupAdminRoleGranted) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.GranteeMemberPK) > 0 { - i -= len(m.GranteeMemberPK) - copy(dAtA[i:], m.GranteeMemberPK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.GranteeMemberPK))) - i-- - dAtA[i] = 0x12 - } - if len(m.DevicePK) > 0 { - i -= len(m.DevicePK) - copy(dAtA[i:], m.DevicePK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.DevicePK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} +type OutOfStoreReceive_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *MultiMemberGroupInitialMemberAnnounced) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MultiMemberGroupInitialMemberAnnounced) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MultiMemberGroupInitialMemberAnnounced) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.MemberPK) > 0 { - i -= len(m.MemberPK) - copy(dAtA[i:], m.MemberPK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.MemberPK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` } -func (m *GroupAddAdditionalRendezvousSeed) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *OutOfStoreReceive_Request) Reset() { + *x = OutOfStoreReceive_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[170] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return dAtA[:n], nil -} - -func (m *GroupAddAdditionalRendezvousSeed) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *GroupAddAdditionalRendezvousSeed) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Seed) > 0 { - i -= len(m.Seed) - copy(dAtA[i:], m.Seed) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.Seed))) - i-- - dAtA[i] = 0x12 - } - if len(m.DevicePK) > 0 { - i -= len(m.DevicePK) - copy(dAtA[i:], m.DevicePK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.DevicePK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *GroupRemoveAdditionalRendezvousSeed) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GroupRemoveAdditionalRendezvousSeed) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *OutOfStoreReceive_Request) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *GroupRemoveAdditionalRendezvousSeed) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Seed) > 0 { - i -= len(m.Seed) - copy(dAtA[i:], m.Seed) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.Seed))) - i-- - dAtA[i] = 0x12 - } - if len(m.DevicePK) > 0 { - i -= len(m.DevicePK) - copy(dAtA[i:], m.DevicePK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.DevicePK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *AccountGroupJoined) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AccountGroupJoined) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*OutOfStoreReceive_Request) ProtoMessage() {} -func (m *AccountGroupJoined) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Group != nil { - { - size, err := m.Group.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintProtocoltypes(dAtA, i, uint64(size)) +func (x *OutOfStoreReceive_Request) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[170] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - i-- - dAtA[i] = 0x12 - } - if len(m.DevicePK) > 0 { - i -= len(m.DevicePK) - copy(dAtA[i:], m.DevicePK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.DevicePK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *AccountGroupLeft) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + return ms } - return dAtA[:n], nil -} - -func (m *AccountGroupLeft) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return mi.MessageOf(x) } -func (m *AccountGroupLeft) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.GroupPK) > 0 { - i -= len(m.GroupPK) - copy(dAtA[i:], m.GroupPK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.GroupPK))) - i-- - dAtA[i] = 0x12 - } - if len(m.DevicePK) > 0 { - i -= len(m.DevicePK) - copy(dAtA[i:], m.DevicePK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.DevicePK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +// Deprecated: Use OutOfStoreReceive_Request.ProtoReflect.Descriptor instead. +func (*OutOfStoreReceive_Request) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{79, 0} } -func (m *AccountContactRequestDisabled) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *OutOfStoreReceive_Request) GetPayload() []byte { + if x != nil { + return x.Payload } - return dAtA[:n], nil + return nil } -func (m *AccountContactRequestDisabled) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +type OutOfStoreReceive_Reply struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *AccountContactRequestDisabled) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.DevicePK) > 0 { - i -= len(m.DevicePK) - copy(dAtA[i:], m.DevicePK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.DevicePK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + Message *OutOfStoreMessage `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` + Cleartext []byte `protobuf:"bytes,2,opt,name=cleartext,proto3" json:"cleartext,omitempty"` + GroupPublicKey []byte `protobuf:"bytes,3,opt,name=group_public_key,json=groupPublicKey,proto3" json:"group_public_key,omitempty"` + AlreadyReceived bool `protobuf:"varint,4,opt,name=already_received,json=alreadyReceived,proto3" json:"already_received,omitempty"` } -func (m *AccountContactRequestEnabled) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *OutOfStoreReceive_Reply) Reset() { + *x = OutOfStoreReceive_Reply{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[171] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return dAtA[:n], nil } -func (m *AccountContactRequestEnabled) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AccountContactRequestEnabled) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.DevicePK) > 0 { - i -= len(m.DevicePK) - copy(dAtA[i:], m.DevicePK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.DevicePK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +func (x *OutOfStoreReceive_Reply) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *AccountContactRequestReferenceReset) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AccountContactRequestReferenceReset) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*OutOfStoreReceive_Reply) ProtoMessage() {} -func (m *AccountContactRequestReferenceReset) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.PublicRendezvousSeed) > 0 { - i -= len(m.PublicRendezvousSeed) - copy(dAtA[i:], m.PublicRendezvousSeed) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.PublicRendezvousSeed))) - i-- - dAtA[i] = 0x12 - } - if len(m.DevicePK) > 0 { - i -= len(m.DevicePK) - copy(dAtA[i:], m.DevicePK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.DevicePK))) - i-- - dAtA[i] = 0xa +func (x *OutOfStoreReceive_Reply) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[171] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return len(dAtA) - i, nil -} - -func (m *AccountContactRequestOutgoingEnqueued) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AccountContactRequestOutgoingEnqueued) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return mi.MessageOf(x) } -func (m *AccountContactRequestOutgoingEnqueued) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.OwnMetadata) > 0 { - i -= len(m.OwnMetadata) - copy(dAtA[i:], m.OwnMetadata) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.OwnMetadata))) - i-- - dAtA[i] = 0x22 - } - if m.Contact != nil { - { - size, err := m.Contact.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintProtocoltypes(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.GroupPK) > 0 { - i -= len(m.GroupPK) - copy(dAtA[i:], m.GroupPK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.GroupPK))) - i-- - dAtA[i] = 0x12 - } - if len(m.DevicePK) > 0 { - i -= len(m.DevicePK) - copy(dAtA[i:], m.DevicePK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.DevicePK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *AccountContactRequestOutgoingSent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AccountContactRequestOutgoingSent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AccountContactRequestOutgoingSent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.ContactPK) > 0 { - i -= len(m.ContactPK) - copy(dAtA[i:], m.ContactPK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.ContactPK))) - i-- - dAtA[i] = 0x12 - } - if len(m.DevicePK) > 0 { - i -= len(m.DevicePK) - copy(dAtA[i:], m.DevicePK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.DevicePK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *AccountContactRequestIncomingReceived) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AccountContactRequestIncomingReceived) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AccountContactRequestIncomingReceived) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.ContactMetadata) > 0 { - i -= len(m.ContactMetadata) - copy(dAtA[i:], m.ContactMetadata) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.ContactMetadata))) - i-- - dAtA[i] = 0x22 - } - if len(m.ContactRendezvousSeed) > 0 { - i -= len(m.ContactRendezvousSeed) - copy(dAtA[i:], m.ContactRendezvousSeed) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.ContactRendezvousSeed))) - i-- - dAtA[i] = 0x1a - } - if len(m.ContactPK) > 0 { - i -= len(m.ContactPK) - copy(dAtA[i:], m.ContactPK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.ContactPK))) - i-- - dAtA[i] = 0x12 - } - if len(m.DevicePK) > 0 { - i -= len(m.DevicePK) - copy(dAtA[i:], m.DevicePK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.DevicePK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *AccountContactRequestIncomingDiscarded) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AccountContactRequestIncomingDiscarded) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AccountContactRequestIncomingDiscarded) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.ContactPK) > 0 { - i -= len(m.ContactPK) - copy(dAtA[i:], m.ContactPK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.ContactPK))) - i-- - dAtA[i] = 0x12 - } - if len(m.DevicePK) > 0 { - i -= len(m.DevicePK) - copy(dAtA[i:], m.DevicePK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.DevicePK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *AccountContactRequestIncomingAccepted) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AccountContactRequestIncomingAccepted) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AccountContactRequestIncomingAccepted) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.GroupPK) > 0 { - i -= len(m.GroupPK) - copy(dAtA[i:], m.GroupPK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.GroupPK))) - i-- - dAtA[i] = 0x1a - } - if len(m.ContactPK) > 0 { - i -= len(m.ContactPK) - copy(dAtA[i:], m.ContactPK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.ContactPK))) - i-- - dAtA[i] = 0x12 - } - if len(m.DevicePK) > 0 { - i -= len(m.DevicePK) - copy(dAtA[i:], m.DevicePK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.DevicePK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +// Deprecated: Use OutOfStoreReceive_Reply.ProtoReflect.Descriptor instead. +func (*OutOfStoreReceive_Reply) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{79, 1} } -func (m *AccountContactBlocked) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AccountContactBlocked) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AccountContactBlocked) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.ContactPK) > 0 { - i -= len(m.ContactPK) - copy(dAtA[i:], m.ContactPK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.ContactPK))) - i-- - dAtA[i] = 0x12 - } - if len(m.DevicePK) > 0 { - i -= len(m.DevicePK) - copy(dAtA[i:], m.DevicePK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.DevicePK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *AccountContactUnblocked) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AccountContactUnblocked) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AccountContactUnblocked) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.ContactPK) > 0 { - i -= len(m.ContactPK) - copy(dAtA[i:], m.ContactPK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.ContactPK))) - i-- - dAtA[i] = 0x12 +func (x *OutOfStoreReceive_Reply) GetMessage() *OutOfStoreMessage { + if x != nil { + return x.Message } - if len(m.DevicePK) > 0 { - i -= len(m.DevicePK) - copy(dAtA[i:], m.DevicePK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.DevicePK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return nil } -func (m *GroupReplicating) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *OutOfStoreReceive_Reply) GetCleartext() []byte { + if x != nil { + return x.Cleartext } - return dAtA[:n], nil -} - -func (m *GroupReplicating) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return nil } -func (m *GroupReplicating) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +func (x *OutOfStoreReceive_Reply) GetGroupPublicKey() []byte { + if x != nil { + return x.GroupPublicKey } - if len(m.ReplicationServer) > 0 { - i -= len(m.ReplicationServer) - copy(dAtA[i:], m.ReplicationServer) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.ReplicationServer))) - i-- - dAtA[i] = 0x1a - } - if len(m.AuthenticationURL) > 0 { - i -= len(m.AuthenticationURL) - copy(dAtA[i:], m.AuthenticationURL) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.AuthenticationURL))) - i-- - dAtA[i] = 0x12 - } - if len(m.DevicePK) > 0 { - i -= len(m.DevicePK) - copy(dAtA[i:], m.DevicePK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.DevicePK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + return nil } -func (m *ServiceExportData) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *OutOfStoreReceive_Reply) GetAlreadyReceived() bool { + if x != nil { + return x.AlreadyReceived } - return dAtA[:n], nil + return false } -func (m *ServiceExportData) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +type OutOfStoreSeal_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ServiceExportData) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + Cid []byte `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"` + GroupPublicKey []byte `protobuf:"bytes,2,opt,name=group_public_key,json=groupPublicKey,proto3" json:"group_public_key,omitempty"` } -func (m *ServiceExportData_Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *OutOfStoreSeal_Request) Reset() { + *x = OutOfStoreSeal_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[172] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return dAtA[:n], nil } -func (m *ServiceExportData_Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *OutOfStoreSeal_Request) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ServiceExportData_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} +func (*OutOfStoreSeal_Request) ProtoMessage() {} -func (m *ServiceExportData_Reply) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *OutOfStoreSeal_Request) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[172] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return dAtA[:n], nil -} - -func (m *ServiceExportData_Reply) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return mi.MessageOf(x) } -func (m *ServiceExportData_Reply) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.ExportedData) > 0 { - i -= len(m.ExportedData) - copy(dAtA[i:], m.ExportedData) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.ExportedData))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +// Deprecated: Use OutOfStoreSeal_Request.ProtoReflect.Descriptor instead. +func (*OutOfStoreSeal_Request) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{80, 0} } -func (m *ServiceGetConfiguration) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *OutOfStoreSeal_Request) GetCid() []byte { + if x != nil { + return x.Cid } - return dAtA[:n], nil -} - -func (m *ServiceGetConfiguration) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return nil } -func (m *ServiceGetConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +func (x *OutOfStoreSeal_Request) GetGroupPublicKey() []byte { + if x != nil { + return x.GroupPublicKey } - return len(dAtA) - i, nil + return nil } -func (m *ServiceGetConfiguration_Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} +type OutOfStoreSeal_Reply struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ServiceGetConfiguration_Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + Encrypted []byte `protobuf:"bytes,1,opt,name=encrypted,proto3" json:"encrypted,omitempty"` } -func (m *ServiceGetConfiguration_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +func (x *OutOfStoreSeal_Reply) Reset() { + *x = OutOfStoreSeal_Reply{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[173] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return len(dAtA) - i, nil } -func (m *ServiceGetConfiguration_Reply) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (x *OutOfStoreSeal_Reply) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ServiceGetConfiguration_Reply) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*OutOfStoreSeal_Reply) ProtoMessage() {} -func (m *ServiceGetConfiguration_Reply) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.RelayEnabled != 0 { - i = encodeVarintProtocoltypes(dAtA, i, uint64(m.RelayEnabled)) - i-- - dAtA[i] = 0x48 - } - if m.MdnsEnabled != 0 { - i = encodeVarintProtocoltypes(dAtA, i, uint64(m.MdnsEnabled)) - i-- - dAtA[i] = 0x40 - } - if m.WifiP2PEnabled != 0 { - i = encodeVarintProtocoltypes(dAtA, i, uint64(m.WifiP2PEnabled)) - i-- - dAtA[i] = 0x38 - } - if m.BleEnabled != 0 { - i = encodeVarintProtocoltypes(dAtA, i, uint64(m.BleEnabled)) - i-- - dAtA[i] = 0x30 - } - if len(m.Listeners) > 0 { - for iNdEx := len(m.Listeners) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Listeners[iNdEx]) - copy(dAtA[i:], m.Listeners[iNdEx]) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.Listeners[iNdEx]))) - i-- - dAtA[i] = 0x2a +func (x *OutOfStoreSeal_Reply) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[173] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - if len(m.PeerID) > 0 { - i -= len(m.PeerID) - copy(dAtA[i:], m.PeerID) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.PeerID))) - i-- - dAtA[i] = 0x22 - } - if len(m.AccountGroupPK) > 0 { - i -= len(m.AccountGroupPK) - copy(dAtA[i:], m.AccountGroupPK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.AccountGroupPK))) - i-- - dAtA[i] = 0x1a - } - if len(m.DevicePK) > 0 { - i -= len(m.DevicePK) - copy(dAtA[i:], m.DevicePK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.DevicePK))) - i-- - dAtA[i] = 0x12 - } - if len(m.AccountPK) > 0 { - i -= len(m.AccountPK) - copy(dAtA[i:], m.AccountPK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.AccountPK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ContactRequestReference) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil + return mi.MessageOf(x) } -func (m *ContactRequestReference) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Deprecated: Use OutOfStoreSeal_Reply.ProtoReflect.Descriptor instead. +func (*OutOfStoreSeal_Reply) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{80, 1} } -func (m *ContactRequestReference) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +func (x *OutOfStoreSeal_Reply) GetEncrypted() []byte { + if x != nil { + return x.Encrypted } - return len(dAtA) - i, nil + return nil } -func (m *ContactRequestReference_Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} +type OrbitDBMessageHeads_Box struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ContactRequestReference_Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + Heads []byte `protobuf:"bytes,2,opt,name=heads,proto3" json:"heads,omitempty"` + DevicePk []byte `protobuf:"bytes,3,opt,name=device_pk,json=devicePk,proto3" json:"device_pk,omitempty"` + PeerId []byte `protobuf:"bytes,4,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` } -func (m *ContactRequestReference_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +func (x *OrbitDBMessageHeads_Box) Reset() { + *x = OrbitDBMessageHeads_Box{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[174] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return len(dAtA) - i, nil } -func (m *ContactRequestReference_Reply) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (x *OrbitDBMessageHeads_Box) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ContactRequestReference_Reply) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*OrbitDBMessageHeads_Box) ProtoMessage() {} -func (m *ContactRequestReference_Reply) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Enabled { - i-- - if m.Enabled { - dAtA[i] = 1 - } else { - dAtA[i] = 0 +func (x *OrbitDBMessageHeads_Box) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[174] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - i-- - dAtA[i] = 0x10 - } - if len(m.PublicRendezvousSeed) > 0 { - i -= len(m.PublicRendezvousSeed) - copy(dAtA[i:], m.PublicRendezvousSeed) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.PublicRendezvousSeed))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ContactRequestDisable) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ContactRequestDisable) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ContactRequestDisable) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *ContactRequestDisable_Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ContactRequestDisable_Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ContactRequestDisable_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *ContactRequestDisable_Reply) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ContactRequestDisable_Reply) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ContactRequestDisable_Reply) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *ContactRequestEnable) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ContactRequestEnable) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ContactRequestEnable) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *ContactRequestEnable_Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ContactRequestEnable_Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ContactRequestEnable_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *ContactRequestEnable_Reply) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ContactRequestEnable_Reply) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ContactRequestEnable_Reply) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.PublicRendezvousSeed) > 0 { - i -= len(m.PublicRendezvousSeed) - copy(dAtA[i:], m.PublicRendezvousSeed) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.PublicRendezvousSeed))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ContactRequestResetReference) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + return ms } - return dAtA[:n], nil -} - -func (m *ContactRequestResetReference) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return mi.MessageOf(x) } -func (m *ContactRequestResetReference) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil +// Deprecated: Use OrbitDBMessageHeads_Box.ProtoReflect.Descriptor instead. +func (*OrbitDBMessageHeads_Box) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{83, 0} } -func (m *ContactRequestResetReference_Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *OrbitDBMessageHeads_Box) GetAddress() string { + if x != nil { + return x.Address } - return dAtA[:n], nil -} - -func (m *ContactRequestResetReference_Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return "" } -func (m *ContactRequestResetReference_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +func (x *OrbitDBMessageHeads_Box) GetHeads() []byte { + if x != nil { + return x.Heads } - return len(dAtA) - i, nil + return nil } -func (m *ContactRequestResetReference_Reply) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *OrbitDBMessageHeads_Box) GetDevicePk() []byte { + if x != nil { + return x.DevicePk } - return dAtA[:n], nil -} - -func (m *ContactRequestResetReference_Reply) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return nil } -func (m *ContactRequestResetReference_Reply) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.PublicRendezvousSeed) > 0 { - i -= len(m.PublicRendezvousSeed) - copy(dAtA[i:], m.PublicRendezvousSeed) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.PublicRendezvousSeed))) - i-- - dAtA[i] = 0xa +func (x *OrbitDBMessageHeads_Box) GetPeerId() []byte { + if x != nil { + return x.PeerId } - return len(dAtA) - i, nil + return nil } -func (m *ContactRequestSend) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} +type RefreshContactRequest_Peer struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ContactRequestSend) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + // id is the libp2p.PeerID. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // list of peers multiaddrs. + Addrs []string `protobuf:"bytes,2,rep,name=addrs,proto3" json:"addrs,omitempty"` } -func (m *ContactRequestSend) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +func (x *RefreshContactRequest_Peer) Reset() { + *x = RefreshContactRequest_Peer{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[175] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return len(dAtA) - i, nil } -func (m *ContactRequestSend_Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (x *RefreshContactRequest_Peer) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ContactRequestSend_Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*RefreshContactRequest_Peer) ProtoMessage() {} -func (m *ContactRequestSend_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.OwnMetadata) > 0 { - i -= len(m.OwnMetadata) - copy(dAtA[i:], m.OwnMetadata) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.OwnMetadata))) - i-- - dAtA[i] = 0x12 - } - if m.Contact != nil { - { - size, err := m.Contact.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintProtocoltypes(dAtA, i, uint64(size)) +func (x *RefreshContactRequest_Peer) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[175] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ContactRequestSend_Reply) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + return ms } - return dAtA[:n], nil + return mi.MessageOf(x) } -func (m *ContactRequestSend_Reply) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Deprecated: Use RefreshContactRequest_Peer.ProtoReflect.Descriptor instead. +func (*RefreshContactRequest_Peer) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{84, 0} } -func (m *ContactRequestSend_Reply) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +func (x *RefreshContactRequest_Peer) GetId() string { + if x != nil { + return x.Id } - return len(dAtA) - i, nil + return "" } -func (m *ContactRequestAccept) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *RefreshContactRequest_Peer) GetAddrs() []string { + if x != nil { + return x.Addrs } - return dAtA[:n], nil + return nil } -func (m *ContactRequestAccept) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +type RefreshContactRequest_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ContactRequestAccept) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + ContactPk []byte `protobuf:"bytes,1,opt,name=contact_pk,json=contactPk,proto3" json:"contact_pk,omitempty"` + // timeout in second + Timeout int64 `protobuf:"varint,2,opt,name=timeout,proto3" json:"timeout,omitempty"` } -func (m *ContactRequestAccept_Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *RefreshContactRequest_Request) Reset() { + *x = RefreshContactRequest_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[176] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return dAtA[:n], nil } -func (m *ContactRequestAccept_Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *RefreshContactRequest_Request) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ContactRequestAccept_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.ContactPK) > 0 { - i -= len(m.ContactPK) - copy(dAtA[i:], m.ContactPK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.ContactPK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} +func (*RefreshContactRequest_Request) ProtoMessage() {} -func (m *ContactRequestAccept_Reply) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *RefreshContactRequest_Request) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[176] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return dAtA[:n], nil + return mi.MessageOf(x) } -func (m *ContactRequestAccept_Reply) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Deprecated: Use RefreshContactRequest_Request.ProtoReflect.Descriptor instead. +func (*RefreshContactRequest_Request) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{84, 1} } -func (m *ContactRequestAccept_Reply) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) +func (x *RefreshContactRequest_Request) GetContactPk() []byte { + if x != nil { + return x.ContactPk } - return len(dAtA) - i, nil + return nil } -func (m *ContactRequestDiscard) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *RefreshContactRequest_Request) GetTimeout() int64 { + if x != nil { + return x.Timeout } - return dAtA[:n], nil + return 0 } -func (m *ContactRequestDiscard) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +type RefreshContactRequest_Reply struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ContactRequestDiscard) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil + // peers found and successfully connected. + PeersFound []*RefreshContactRequest_Peer `protobuf:"bytes,1,rep,name=peers_found,json=peersFound,proto3" json:"peers_found,omitempty"` } -func (m *ContactRequestDiscard_Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *RefreshContactRequest_Reply) Reset() { + *x = RefreshContactRequest_Reply{} + if protoimpl.UnsafeEnabled { + mi := &file_protocoltypes_proto_msgTypes[177] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return dAtA[:n], nil } -func (m *ContactRequestDiscard_Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *RefreshContactRequest_Reply) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ContactRequestDiscard_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.ContactPK) > 0 { - i -= len(m.ContactPK) - copy(dAtA[i:], m.ContactPK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.ContactPK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} +func (*RefreshContactRequest_Reply) ProtoMessage() {} -func (m *ContactRequestDiscard_Reply) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *RefreshContactRequest_Reply) ProtoReflect() protoreflect.Message { + mi := &file_protocoltypes_proto_msgTypes[177] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return dAtA[:n], nil + return mi.MessageOf(x) } -func (m *ContactRequestDiscard_Reply) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +// Deprecated: Use RefreshContactRequest_Reply.ProtoReflect.Descriptor instead. +func (*RefreshContactRequest_Reply) Descriptor() ([]byte, []int) { + return file_protocoltypes_proto_rawDescGZIP(), []int{84, 2} +} + +func (x *RefreshContactRequest_Reply) GetPeersFound() []*RefreshContactRequest_Peer { + if x != nil { + return x.PeersFound + } + return nil +} + +var File_protocoltypes_proto protoreflect.FileDescriptor + +var file_protocoltypes_proto_rawDesc = []byte{ + 0x0a, 0x13, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x22, 0xcd, 0x01, 0x0a, 0x07, 0x41, + 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x30, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, + 0x70, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x2e, 0x0a, 0x13, 0x61, 0x63, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x11, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x72, + 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x6c, 0x69, 0x61, + 0x73, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, + 0x65, 0x4b, 0x65, 0x79, 0x12, 0x34, 0x0a, 0x16, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x72, + 0x65, 0x6e, 0x64, 0x65, 0x7a, 0x76, 0x6f, 0x75, 0x73, 0x5f, 0x73, 0x65, 0x65, 0x64, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x14, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x52, 0x65, 0x6e, 0x64, + 0x65, 0x7a, 0x76, 0x6f, 0x75, 0x73, 0x53, 0x65, 0x65, 0x64, 0x22, 0xf4, 0x01, 0x0a, 0x05, 0x47, + 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, + 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, + 0x4b, 0x65, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73, + 0x65, 0x63, 0x72, 0x65, 0x74, 0x5f, 0x73, 0x69, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x09, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x53, 0x69, 0x67, 0x12, 0x3d, 0x0a, 0x0a, 0x67, 0x72, + 0x6f, 0x75, 0x70, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, + 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, + 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, + 0x67, 0x72, 0x6f, 0x75, 0x70, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x69, 0x67, + 0x6e, 0x5f, 0x70, 0x75, 0x62, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x73, 0x69, 0x67, + 0x6e, 0x50, 0x75, 0x62, 0x12, 0x19, 0x0a, 0x08, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x6b, 0x65, 0x79, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6c, 0x69, 0x6e, 0x6b, 0x4b, 0x65, 0x79, 0x12, + 0x20, 0x0a, 0x0c, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x69, 0x67, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x6c, 0x69, 0x6e, 0x6b, 0x4b, 0x65, 0x79, 0x53, 0x69, + 0x67, 0x22, 0xc7, 0x01, 0x0a, 0x10, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x48, 0x65, 0x61, 0x64, 0x73, + 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, + 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, + 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x70, 0x75, + 0x62, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x73, 0x69, 0x67, 0x6e, 0x50, 0x75, 0x62, + 0x12, 0x2e, 0x0a, 0x13, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x68, 0x65, 0x61, + 0x64, 0x73, 0x5f, 0x63, 0x69, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x11, 0x6d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x48, 0x65, 0x61, 0x64, 0x73, 0x43, 0x69, 0x64, 0x73, + 0x12, 0x2e, 0x0a, 0x13, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x5f, 0x68, 0x65, 0x61, + 0x64, 0x73, 0x5f, 0x63, 0x69, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x11, 0x6d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x48, 0x65, 0x61, 0x64, 0x73, 0x43, 0x69, 0x64, 0x73, + 0x12, 0x19, 0x0a, 0x08, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x07, 0x6c, 0x69, 0x6e, 0x6b, 0x4b, 0x65, 0x79, 0x22, 0xce, 0x01, 0x0a, 0x0d, + 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3d, 0x0a, + 0x0a, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x1e, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, + 0x65, 0x52, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, + 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, + 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x69, 0x67, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x03, 0x73, 0x69, 0x67, 0x12, 0x52, 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, + 0x6f, 0x6c, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x10, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x63, 0x6f, 0x6c, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x41, 0x0a, 0x0d, + 0x47, 0x72, 0x6f, 0x75, 0x70, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x14, 0x0a, + 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x6e, 0x6f, + 0x6e, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x22, + 0xe5, 0x01, 0x0a, 0x0e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, + 0x72, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, + 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x70, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x50, 0x6b, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x69, 0x67, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x73, 0x69, 0x67, 0x12, 0x4d, 0x0a, 0x08, 0x6d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, + 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, + 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, + 0x72, 0x73, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x3b, 0x0a, 0x0d, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, + 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x18, 0x0a, 0x10, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x63, 0x6f, 0x6c, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x4a, 0x04, 0x08, 0x01, 0x10, + 0x02, 0x22, 0x84, 0x01, 0x0a, 0x10, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x74, + 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x70, 0x6c, 0x61, 0x69, 0x6e, + 0x74, 0x65, 0x78, 0x74, 0x12, 0x52, 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, + 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x25, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, + 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x10, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x70, 0x0a, 0x0f, 0x4d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x6d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x14, + 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x6e, + 0x6f, 0x6e, 0x63, 0x65, 0x4a, 0x04, 0x08, 0x04, 0x10, 0x05, 0x22, 0x5e, 0x0a, 0x0c, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, + 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x09, + 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, + 0x75, 0x70, 0x5f, 0x70, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x67, 0x72, 0x6f, + 0x75, 0x70, 0x50, 0x6b, 0x4a, 0x04, 0x08, 0x04, 0x10, 0x05, 0x22, 0x51, 0x0a, 0x18, 0x47, 0x72, + 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x50, 0x61, 0x79, 0x6c, 0x6f, + 0x61, 0x64, 0x53, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, + 0x5f, 0x70, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, + 0x65, 0x50, 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x4e, 0x0a, + 0x14, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x4b, 0x65, 0x79, + 0x41, 0x64, 0x64, 0x65, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, + 0x70, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, + 0x50, 0x6b, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x5f, 0x70, 0x6b, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x50, 0x6b, 0x22, 0x71, 0x0a, + 0x16, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x44, 0x65, 0x76, 0x69, + 0x63, 0x65, 0x41, 0x64, 0x64, 0x65, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x65, 0x6d, 0x62, 0x65, + 0x72, 0x5f, 0x70, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x6d, 0x65, 0x6d, 0x62, + 0x65, 0x72, 0x50, 0x6b, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x70, + 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x50, + 0x6b, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x73, 0x69, 0x67, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x53, 0x69, 0x67, + 0x22, 0x47, 0x0a, 0x0e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x4b, + 0x65, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x4b, 0x65, 0x79, 0x12, + 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x22, 0x77, 0x0a, 0x18, 0x47, 0x72, 0x6f, + 0x75, 0x70, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x4b, 0x65, 0x79, + 0x41, 0x64, 0x64, 0x65, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, + 0x70, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, + 0x50, 0x6b, 0x12, 0x24, 0x0a, 0x0e, 0x64, 0x65, 0x73, 0x74, 0x5f, 0x6d, 0x65, 0x6d, 0x62, 0x65, + 0x72, 0x5f, 0x70, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x64, 0x65, 0x73, 0x74, + 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x50, 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, + 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, + 0x61, 0x64, 0x22, 0x89, 0x01, 0x0a, 0x22, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x4d, 0x65, 0x6d, 0x62, + 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x65, 0x73, 0x6f, + 0x6c, 0x76, 0x65, 0x72, 0x41, 0x64, 0x64, 0x65, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, + 0x69, 0x63, 0x65, 0x5f, 0x70, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x64, 0x65, + 0x76, 0x69, 0x63, 0x65, 0x50, 0x6b, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x5f, + 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, + 0x61, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x12, 0x1f, 0x0a, + 0x0b, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x0a, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x22, 0x6b, + 0x0a, 0x20, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x47, 0x72, 0x6f, + 0x75, 0x70, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, + 0x65, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x70, 0x6b, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x50, 0x6b, 0x12, + 0x2a, 0x0a, 0x11, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x65, 0x65, 0x5f, 0x6d, 0x65, 0x6d, 0x62, 0x65, + 0x72, 0x5f, 0x70, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x67, 0x72, 0x61, 0x6e, + 0x74, 0x65, 0x65, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x50, 0x6b, 0x22, 0x45, 0x0a, 0x26, 0x4d, + 0x75, 0x6c, 0x74, 0x69, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, + 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x41, 0x6e, 0x6e, 0x6f, + 0x75, 0x6e, 0x63, 0x65, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x5f, + 0x70, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, + 0x50, 0x6b, 0x22, 0x53, 0x0a, 0x20, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x64, 0x64, 0x41, 0x64, + 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x6e, 0x64, 0x65, 0x7a, 0x76, 0x6f, + 0x75, 0x73, 0x53, 0x65, 0x65, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, + 0x5f, 0x70, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, + 0x65, 0x50, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x65, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x04, 0x73, 0x65, 0x65, 0x64, 0x22, 0x56, 0x0a, 0x23, 0x47, 0x72, 0x6f, 0x75, 0x70, + 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x41, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, + 0x52, 0x65, 0x6e, 0x64, 0x65, 0x7a, 0x76, 0x6f, 0x75, 0x73, 0x53, 0x65, 0x65, 0x64, 0x12, 0x1b, + 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x70, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x50, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x73, + 0x65, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x73, 0x65, 0x65, 0x64, 0x22, + 0x63, 0x0a, 0x12, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4a, + 0x6f, 0x69, 0x6e, 0x65, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, + 0x70, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, + 0x50, 0x6b, 0x12, 0x30, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x05, 0x67, + 0x72, 0x6f, 0x75, 0x70, 0x22, 0x4a, 0x0a, 0x10, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x47, + 0x72, 0x6f, 0x75, 0x70, 0x4c, 0x65, 0x66, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, + 0x63, 0x65, 0x5f, 0x70, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x64, 0x65, 0x76, + 0x69, 0x63, 0x65, 0x50, 0x6b, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x70, + 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6b, + 0x22, 0x3c, 0x0a, 0x1d, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, + 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, + 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x70, 0x6b, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x50, 0x6b, 0x22, 0x3b, + 0x0a, 0x1c, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x1b, + 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x70, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x50, 0x6b, 0x22, 0x78, 0x0a, 0x23, 0x41, + 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, + 0x65, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x70, 0x6b, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x50, 0x6b, 0x12, + 0x34, 0x0a, 0x16, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x72, 0x65, 0x6e, 0x64, 0x65, 0x7a, + 0x76, 0x6f, 0x75, 0x73, 0x5f, 0x73, 0x65, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x14, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x52, 0x65, 0x6e, 0x64, 0x65, 0x7a, 0x76, 0x6f, 0x75, + 0x73, 0x53, 0x65, 0x65, 0x64, 0x22, 0xc3, 0x01, 0x0a, 0x25, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4f, + 0x75, 0x74, 0x67, 0x6f, 0x69, 0x6e, 0x67, 0x45, 0x6e, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, 0x12, + 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x70, 0x6b, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x50, 0x6b, 0x12, 0x19, 0x0a, 0x08, + 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x70, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, + 0x67, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6b, 0x12, 0x3f, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x61, + 0x63, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, + 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x53, + 0x68, 0x61, 0x72, 0x65, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, + 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x6f, 0x77, 0x6e, 0x5f, + 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, + 0x6f, 0x77, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x5f, 0x0a, 0x21, 0x41, + 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x4f, 0x75, 0x74, 0x67, 0x6f, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x6e, 0x74, + 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x70, 0x6b, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x50, 0x6b, 0x12, 0x1d, 0x0a, + 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x5f, 0x70, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x50, 0x6b, 0x22, 0xc6, 0x01, 0x0a, + 0x25, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x63, 0x6f, 0x6d, 0x69, 0x6e, 0x67, 0x52, 0x65, + 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, + 0x5f, 0x70, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, + 0x65, 0x50, 0x6b, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x5f, 0x70, + 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, + 0x50, 0x6b, 0x12, 0x36, 0x0a, 0x17, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x5f, 0x72, 0x65, + 0x6e, 0x64, 0x65, 0x7a, 0x76, 0x6f, 0x75, 0x73, 0x5f, 0x73, 0x65, 0x65, 0x64, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x15, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, 0x6e, 0x64, + 0x65, 0x7a, 0x76, 0x6f, 0x75, 0x73, 0x53, 0x65, 0x65, 0x64, 0x12, 0x29, 0x0a, 0x10, 0x63, 0x6f, + 0x6e, 0x74, 0x61, 0x63, 0x74, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x64, 0x0a, 0x26, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x6e, + 0x63, 0x6f, 0x6d, 0x69, 0x6e, 0x67, 0x44, 0x69, 0x73, 0x63, 0x61, 0x72, 0x64, 0x65, 0x64, 0x12, + 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x70, 0x6b, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x50, 0x6b, 0x12, 0x1d, 0x0a, 0x0a, + 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x5f, 0x70, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x50, 0x6b, 0x22, 0x7e, 0x0a, 0x25, 0x41, + 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x63, 0x6f, 0x6d, 0x69, 0x6e, 0x67, 0x41, 0x63, 0x63, 0x65, + 0x70, 0x74, 0x65, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x70, + 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x50, + 0x6b, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x5f, 0x70, 0x6b, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x50, 0x6b, + 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x70, 0x6b, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6b, 0x22, 0x53, 0x0a, 0x15, 0x41, + 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x42, 0x6c, 0x6f, + 0x63, 0x6b, 0x65, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x70, + 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x50, + 0x6b, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x5f, 0x70, 0x6b, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x50, 0x6b, + 0x22, 0x55, 0x0a, 0x17, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, + 0x63, 0x74, 0x55, 0x6e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x64, + 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x70, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, + 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x50, 0x6b, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x74, + 0x61, 0x63, 0x74, 0x5f, 0x70, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x63, 0x6f, + 0x6e, 0x74, 0x61, 0x63, 0x74, 0x50, 0x6b, 0x22, 0x8d, 0x01, 0x0a, 0x10, 0x47, 0x72, 0x6f, 0x75, + 0x70, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x1b, 0x0a, 0x09, + 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x70, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x50, 0x6b, 0x12, 0x2d, 0x0a, 0x12, 0x61, 0x75, 0x74, + 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x75, 0x72, 0x6c, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x72, 0x6c, 0x12, 0x2d, 0x0a, 0x12, 0x72, 0x65, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x22, 0x4c, 0x0a, 0x11, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x1a, 0x09, 0x0a, 0x07, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x0a, 0x05, 0x52, 0x65, 0x70, 0x6c, 0x79, + 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x64, 0x61, 0x74, + 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, + 0x64, 0x44, 0x61, 0x74, 0x61, 0x22, 0x93, 0x05, 0x0a, 0x17, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x1a, 0x09, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0xa3, 0x04, 0x0a, + 0x05, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x5f, 0x70, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x50, 0x6b, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, + 0x70, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, + 0x50, 0x6b, 0x12, 0x28, 0x0a, 0x10, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x67, 0x72, + 0x6f, 0x75, 0x70, 0x5f, 0x70, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x61, 0x63, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6b, 0x12, 0x17, 0x0a, 0x07, + 0x70, 0x65, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, + 0x65, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x65, + 0x72, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, + 0x65, 0x72, 0x73, 0x12, 0x5a, 0x0a, 0x0b, 0x62, 0x6c, 0x65, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, + 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x39, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, + 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x74, + 0x61, 0x74, 0x65, 0x52, 0x0a, 0x62, 0x6c, 0x65, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, + 0x63, 0x0a, 0x10, 0x77, 0x69, 0x66, 0x69, 0x5f, 0x70, 0x32, 0x70, 0x5f, 0x65, 0x6e, 0x61, 0x62, + 0x6c, 0x65, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x39, 0x2e, 0x77, 0x65, 0x73, 0x68, + 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x53, + 0x74, 0x61, 0x74, 0x65, 0x52, 0x0e, 0x77, 0x69, 0x66, 0x69, 0x50, 0x32, 0x70, 0x45, 0x6e, 0x61, + 0x62, 0x6c, 0x65, 0x64, 0x12, 0x5c, 0x0a, 0x0c, 0x6d, 0x64, 0x6e, 0x73, 0x5f, 0x65, 0x6e, 0x61, + 0x62, 0x6c, 0x65, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x39, 0x2e, 0x77, 0x65, 0x73, + 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, + 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x0b, 0x6d, 0x64, 0x6e, 0x73, 0x45, 0x6e, 0x61, 0x62, 0x6c, + 0x65, 0x64, 0x12, 0x5e, 0x0a, 0x0d, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x5f, 0x65, 0x6e, 0x61, 0x62, + 0x6c, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x39, 0x2e, 0x77, 0x65, 0x73, 0x68, + 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x53, + 0x74, 0x61, 0x74, 0x65, 0x52, 0x0c, 0x72, 0x65, 0x6c, 0x61, 0x79, 0x45, 0x6e, 0x61, 0x62, 0x6c, + 0x65, 0x64, 0x22, 0x47, 0x0a, 0x0c, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x10, 0x00, 0x12, + 0x0b, 0x0a, 0x07, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, + 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x6e, + 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x10, 0x03, 0x22, 0x7d, 0x0a, 0x17, 0x43, + 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x66, + 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x1a, 0x09, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x57, 0x0a, 0x05, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x34, 0x0a, 0x16, 0x70, 0x75, + 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x72, 0x65, 0x6e, 0x64, 0x65, 0x7a, 0x76, 0x6f, 0x75, 0x73, 0x5f, + 0x73, 0x65, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x14, 0x70, 0x75, 0x62, 0x6c, + 0x69, 0x63, 0x52, 0x65, 0x6e, 0x64, 0x65, 0x7a, 0x76, 0x6f, 0x75, 0x73, 0x53, 0x65, 0x65, 0x64, + 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x22, 0x2b, 0x0a, 0x15, 0x43, 0x6f, + 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x44, 0x69, 0x73, 0x61, + 0x62, 0x6c, 0x65, 0x1a, 0x09, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x07, + 0x0a, 0x05, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x60, 0x0a, 0x14, 0x43, 0x6f, 0x6e, 0x74, 0x61, + 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x1a, + 0x09, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3d, 0x0a, 0x05, 0x52, 0x65, + 0x70, 0x6c, 0x79, 0x12, 0x34, 0x0a, 0x16, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x72, 0x65, + 0x6e, 0x64, 0x65, 0x7a, 0x76, 0x6f, 0x75, 0x73, 0x5f, 0x73, 0x65, 0x65, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x14, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x52, 0x65, 0x6e, 0x64, 0x65, + 0x7a, 0x76, 0x6f, 0x75, 0x73, 0x53, 0x65, 0x65, 0x64, 0x22, 0x68, 0x0a, 0x1c, 0x43, 0x6f, 0x6e, + 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x65, 0x74, + 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x1a, 0x09, 0x0a, 0x07, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3d, 0x0a, 0x05, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x34, 0x0a, + 0x16, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x72, 0x65, 0x6e, 0x64, 0x65, 0x7a, 0x76, 0x6f, + 0x75, 0x73, 0x5f, 0x73, 0x65, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x14, 0x70, + 0x75, 0x62, 0x6c, 0x69, 0x63, 0x52, 0x65, 0x6e, 0x64, 0x65, 0x7a, 0x76, 0x6f, 0x75, 0x73, 0x53, + 0x65, 0x65, 0x64, 0x22, 0x8c, 0x01, 0x0a, 0x12, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x53, 0x65, 0x6e, 0x64, 0x1a, 0x6d, 0x0a, 0x07, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3f, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x68, 0x61, + 0x72, 0x65, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x07, 0x63, + 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x6f, 0x77, 0x6e, 0x5f, 0x6d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x6f, 0x77, + 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x07, 0x0a, 0x05, 0x52, 0x65, 0x70, + 0x6c, 0x79, 0x22, 0x49, 0x0a, 0x14, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x1a, 0x28, 0x0a, 0x07, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, + 0x5f, 0x70, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x61, + 0x63, 0x74, 0x50, 0x6b, 0x1a, 0x07, 0x0a, 0x05, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x4a, 0x0a, + 0x15, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x44, + 0x69, 0x73, 0x63, 0x61, 0x72, 0x64, 0x1a, 0x28, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x5f, 0x70, 0x6b, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x50, 0x6b, + 0x1a, 0x07, 0x0a, 0x05, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x4b, 0x0a, 0x0c, 0x53, 0x68, 0x61, + 0x72, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x1a, 0x09, 0x0a, 0x07, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x0a, 0x05, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x27, 0x0a, + 0x0f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x64, 0x43, + 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x22, 0x8d, 0x01, 0x0a, 0x0d, 0x44, 0x65, 0x63, 0x6f, 0x64, + 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x1a, 0x32, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x64, 0x5f, 0x63, + 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x65, 0x6e, + 0x63, 0x6f, 0x64, 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x1a, 0x48, 0x0a, 0x05, + 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x3f, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x68, 0x61, + 0x72, 0x65, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x07, 0x63, + 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x22, 0x41, 0x0a, 0x0c, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, + 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x1a, 0x28, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x5f, 0x70, 0x6b, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x50, 0x6b, + 0x1a, 0x07, 0x0a, 0x05, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x43, 0x0a, 0x0e, 0x43, 0x6f, 0x6e, + 0x74, 0x61, 0x63, 0x74, 0x55, 0x6e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x1a, 0x28, 0x0a, 0x07, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, + 0x74, 0x5f, 0x70, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x74, + 0x61, 0x63, 0x74, 0x50, 0x6b, 0x1a, 0x07, 0x0a, 0x05, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x44, + 0x0a, 0x13, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x4b, 0x65, + 0x79, 0x53, 0x65, 0x6e, 0x64, 0x1a, 0x24, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x70, 0x6b, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6b, 0x1a, 0x07, 0x0a, 0x05, 0x52, + 0x65, 0x70, 0x6c, 0x79, 0x22, 0x47, 0x0a, 0x16, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x4d, 0x65, 0x6d, + 0x62, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x1a, 0x09, + 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x0a, 0x05, 0x52, 0x65, 0x70, + 0x6c, 0x79, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x70, 0x6b, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6b, 0x22, 0x5c, 0x0a, + 0x14, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, + 0x70, 0x4a, 0x6f, 0x69, 0x6e, 0x1a, 0x3b, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x30, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, + 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x05, 0x67, 0x72, 0x6f, + 0x75, 0x70, 0x1a, 0x07, 0x0a, 0x05, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x46, 0x0a, 0x15, 0x4d, + 0x75, 0x6c, 0x74, 0x69, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4c, + 0x65, 0x61, 0x76, 0x65, 0x1a, 0x24, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x70, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6b, 0x1a, 0x07, 0x0a, 0x05, 0x52, 0x65, + 0x70, 0x6c, 0x79, 0x22, 0x56, 0x0a, 0x25, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x4d, 0x65, 0x6d, 0x62, + 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x65, 0x73, 0x6f, + 0x6c, 0x76, 0x65, 0x72, 0x44, 0x69, 0x73, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x1a, 0x24, 0x0a, 0x07, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, + 0x5f, 0x70, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, + 0x50, 0x6b, 0x1a, 0x07, 0x0a, 0x05, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x6c, 0x0a, 0x1e, 0x4d, + 0x75, 0x6c, 0x74, 0x69, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, + 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x1a, 0x41, 0x0a, + 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, + 0x70, 0x5f, 0x70, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, + 0x70, 0x50, 0x6b, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x70, 0x6b, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x50, 0x6b, + 0x1a, 0x07, 0x0a, 0x05, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x83, 0x01, 0x0a, 0x20, 0x4d, 0x75, + 0x6c, 0x74, 0x69, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x6e, + 0x76, 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x1a, 0x24, + 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, + 0x75, 0x70, 0x5f, 0x70, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x67, 0x72, 0x6f, + 0x75, 0x70, 0x50, 0x6b, 0x1a, 0x39, 0x0a, 0x05, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x30, 0x0a, + 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x77, + 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, + 0x76, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x22, + 0x72, 0x0a, 0x0f, 0x41, 0x70, 0x70, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x53, 0x65, + 0x6e, 0x64, 0x1a, 0x44, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, + 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x70, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, + 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, + 0x61, 0x64, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x1a, 0x19, 0x0a, 0x05, 0x52, 0x65, 0x70, 0x6c, + 0x79, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, + 0x63, 0x69, 0x64, 0x22, 0x71, 0x0a, 0x0e, 0x41, 0x70, 0x70, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x53, 0x65, 0x6e, 0x64, 0x1a, 0x44, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x70, 0x6b, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x70, + 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, + 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x1a, 0x19, 0x0a, 0x05, 0x52, + 0x65, 0x70, 0x6c, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x03, 0x63, 0x69, 0x64, 0x22, 0xb2, 0x01, 0x0a, 0x12, 0x47, 0x72, 0x6f, 0x75, 0x70, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x46, 0x0a, + 0x0d, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x52, 0x0c, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x43, 0x6f, + 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x3e, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, + 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, + 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x22, 0xb4, 0x01, 0x0a, 0x11, + 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x12, 0x46, 0x0a, 0x0d, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, + 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, + 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x52, 0x0c, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x3d, 0x0a, 0x07, 0x68, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x77, 0x65, 0x73, + 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, + 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x52, + 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x22, 0xcf, 0x01, 0x0a, 0x11, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x4c, 0x69, 0x73, 0x74, 0x1a, 0xb9, 0x01, 0x0a, 0x07, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x70, 0x6b, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6b, 0x12, + 0x19, 0x0a, 0x08, 0x73, 0x69, 0x6e, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x07, 0x73, 0x69, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x69, + 0x6e, 0x63, 0x65, 0x5f, 0x6e, 0x6f, 0x77, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x73, + 0x69, 0x6e, 0x63, 0x65, 0x4e, 0x6f, 0x77, 0x12, 0x19, 0x0a, 0x08, 0x75, 0x6e, 0x74, 0x69, 0x6c, + 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x75, 0x6e, 0x74, 0x69, 0x6c, + 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x5f, 0x6e, 0x6f, 0x77, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x4e, 0x6f, 0x77, 0x12, + 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x4f, + 0x72, 0x64, 0x65, 0x72, 0x22, 0xce, 0x01, 0x0a, 0x10, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x1a, 0xb9, 0x01, 0x0a, 0x07, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x70, + 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6b, + 0x12, 0x19, 0x0a, 0x08, 0x73, 0x69, 0x6e, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x07, 0x73, 0x69, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x73, + 0x69, 0x6e, 0x63, 0x65, 0x5f, 0x6e, 0x6f, 0x77, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, + 0x73, 0x69, 0x6e, 0x63, 0x65, 0x4e, 0x6f, 0x77, 0x12, 0x19, 0x0a, 0x08, 0x75, 0x6e, 0x74, 0x69, + 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x75, 0x6e, 0x74, 0x69, + 0x6c, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x5f, 0x6e, 0x6f, 0x77, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x4e, 0x6f, 0x77, + 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x5f, 0x6f, 0x72, 0x64, 0x65, + 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, + 0x4f, 0x72, 0x64, 0x65, 0x72, 0x22, 0xc5, 0x01, 0x0a, 0x09, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, + 0x6e, 0x66, 0x6f, 0x1a, 0x43, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, + 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x70, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6b, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, + 0x74, 0x61, 0x63, 0x74, 0x5f, 0x70, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x63, + 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x50, 0x6b, 0x1a, 0x73, 0x0a, 0x05, 0x52, 0x65, 0x70, 0x6c, + 0x79, 0x12, 0x30, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x05, 0x67, 0x72, + 0x6f, 0x75, 0x70, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x70, 0x6b, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x50, 0x6b, + 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x70, 0x6b, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x50, 0x6b, 0x22, 0x5d, 0x0a, + 0x0d, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x1a, 0x43, + 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, + 0x75, 0x70, 0x5f, 0x70, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x67, 0x72, 0x6f, + 0x75, 0x70, 0x50, 0x6b, 0x12, 0x1d, 0x0a, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x6f, 0x6e, + 0x6c, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x4f, + 0x6e, 0x6c, 0x79, 0x1a, 0x07, 0x0a, 0x05, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x40, 0x0a, 0x0f, + 0x44, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x1a, + 0x24, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, + 0x6f, 0x75, 0x70, 0x5f, 0x70, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x67, 0x72, + 0x6f, 0x75, 0x70, 0x50, 0x6b, 0x1a, 0x07, 0x0a, 0x05, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0xd1, + 0x04, 0x0a, 0x11, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x1a, 0x24, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x70, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6b, 0x1a, 0xea, 0x02, 0x0a, 0x05, 0x52, + 0x65, 0x70, 0x6c, 0x79, 0x12, 0x3f, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x44, 0x65, + 0x76, 0x69, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, + 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x1a, 0xaf, 0x01, 0x0a, 0x0d, + 0x50, 0x65, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65, 0x64, 0x12, 0x17, 0x0a, + 0x07, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x70, 0x65, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, + 0x5f, 0x70, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, + 0x65, 0x50, 0x6b, 0x12, 0x50, 0x0a, 0x0a, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, + 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, + 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, + 0x6f, 0x75, 0x70, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, + 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x0a, 0x74, 0x72, 0x61, 0x6e, 0x73, + 0x70, 0x6f, 0x72, 0x74, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x61, 0x64, 0x64, 0x72, 0x73, 0x18, + 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x61, 0x64, 0x64, 0x72, 0x73, 0x1a, 0x2b, 0x0a, + 0x10, 0x50, 0x65, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6e, + 0x67, 0x12, 0x17, 0x0a, 0x07, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x06, 0x70, 0x65, 0x65, 0x72, 0x49, 0x64, 0x1a, 0x2b, 0x0a, 0x10, 0x50, 0x65, + 0x65, 0x72, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65, 0x64, 0x12, 0x17, + 0x0a, 0x07, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x70, 0x65, 0x65, 0x72, 0x49, 0x64, 0x22, 0x62, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, + 0x0f, 0x0a, 0x0b, 0x54, 0x79, 0x70, 0x65, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x10, 0x00, + 0x12, 0x18, 0x0a, 0x14, 0x54, 0x79, 0x70, 0x65, 0x50, 0x65, 0x65, 0x72, 0x44, 0x69, 0x73, 0x63, + 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65, 0x64, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x54, 0x79, + 0x70, 0x65, 0x50, 0x65, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65, 0x64, 0x10, + 0x02, 0x12, 0x18, 0x0a, 0x14, 0x54, 0x79, 0x70, 0x65, 0x50, 0x65, 0x65, 0x72, 0x52, 0x65, 0x63, + 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6e, 0x67, 0x10, 0x03, 0x22, 0x45, 0x0a, 0x09, 0x54, + 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x70, 0x74, 0x55, + 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x54, 0x70, 0x74, 0x4c, + 0x41, 0x4e, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x54, 0x70, 0x74, 0x57, 0x41, 0x4e, 0x10, 0x02, + 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x70, 0x74, 0x50, 0x72, 0x6f, 0x78, 0x69, 0x6d, 0x69, 0x74, 0x79, + 0x10, 0x03, 0x22, 0x9f, 0x01, 0x0a, 0x0f, 0x44, 0x65, 0x62, 0x75, 0x67, 0x4c, 0x69, 0x73, 0x74, + 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x1a, 0x09, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x80, 0x01, 0x0a, 0x05, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x19, 0x0a, 0x08, 0x67, + 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x70, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x67, + 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6b, 0x12, 0x3d, 0x0a, 0x0a, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, + 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x77, 0x65, 0x73, + 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, + 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x67, 0x72, 0x6f, 0x75, + 0x70, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, + 0x5f, 0x70, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x61, + 0x63, 0x74, 0x50, 0x6b, 0x22, 0xcc, 0x02, 0x0a, 0x16, 0x44, 0x65, 0x62, 0x75, 0x67, 0x49, 0x6e, + 0x73, 0x70, 0x65, 0x63, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x1a, + 0x6e, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, + 0x6f, 0x75, 0x70, 0x5f, 0x70, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x67, 0x72, + 0x6f, 0x75, 0x70, 0x50, 0x6b, 0x12, 0x48, 0x0a, 0x08, 0x6c, 0x6f, 0x67, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, + 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, + 0x62, 0x75, 0x67, 0x49, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4c, + 0x6f, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x6c, 0x6f, 0x67, 0x54, 0x79, 0x70, 0x65, 0x1a, + 0xc1, 0x01, 0x0a, 0x05, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x63, 0x69, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x70, + 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0c, + 0x52, 0x0a, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x43, 0x69, 0x64, 0x73, 0x12, 0x4e, 0x0a, 0x13, + 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x77, 0x65, 0x73, 0x68, + 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x11, 0x6d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x09, + 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x70, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x50, 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, + 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, + 0x6f, 0x61, 0x64, 0x22, 0x56, 0x0a, 0x0a, 0x44, 0x65, 0x62, 0x75, 0x67, 0x47, 0x72, 0x6f, 0x75, + 0x70, 0x1a, 0x24, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, + 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x70, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, + 0x67, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6b, 0x1a, 0x22, 0x0a, 0x05, 0x52, 0x65, 0x70, 0x6c, 0x79, + 0x12, 0x19, 0x0a, 0x08, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x07, 0x70, 0x65, 0x65, 0x72, 0x49, 0x64, 0x73, 0x22, 0x74, 0x0a, 0x10, 0x53, + 0x68, 0x61, 0x72, 0x65, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x12, + 0x0e, 0x0a, 0x02, 0x70, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x70, 0x6b, 0x12, + 0x34, 0x0a, 0x16, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x72, 0x65, 0x6e, 0x64, 0x65, 0x7a, + 0x76, 0x6f, 0x75, 0x73, 0x5f, 0x73, 0x65, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x14, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x52, 0x65, 0x6e, 0x64, 0x65, 0x7a, 0x76, 0x6f, 0x75, + 0x73, 0x53, 0x65, 0x65, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x22, 0x6c, 0x0a, 0x1c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x54, 0x6f, 0x6b, 0x65, + 0x6e, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, + 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x22, + 0xd5, 0x01, 0x0a, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, + 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x2d, 0x0a, 0x12, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, + 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x11, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x55, 0x72, 0x6c, 0x12, 0x60, 0x0a, 0x12, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, + 0x65, 0x64, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x31, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x54, + 0x6f, 0x6b, 0x65, 0x6e, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x53, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x52, 0x11, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x65, 0x78, 0x70, + 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xc0, 0x01, 0x0a, 0x25, 0x43, 0x72, 0x65, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x49, 0x6e, 0x69, 0x74, 0x46, 0x6c, 0x6f, + 0x77, 0x1a, 0x5d, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x1d, 0x0a, + 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x12, 0x0a, 0x04, + 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x6b, + 0x1a, 0x38, 0x0a, 0x05, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x1d, 0x0a, 0x0a, 0x73, + 0x65, 0x63, 0x75, 0x72, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x09, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x55, 0x72, 0x6c, 0x22, 0x82, 0x01, 0x0a, 0x29, 0x43, + 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x43, 0x6f, 0x6d, 0x70, + 0x6c, 0x65, 0x74, 0x65, 0x46, 0x6c, 0x6f, 0x77, 0x1a, 0x2c, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, + 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x6c, 0x6c, 0x62, + 0x61, 0x63, 0x6b, 0x55, 0x72, 0x69, 0x1a, 0x27, 0x0a, 0x05, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, + 0x1e, 0x0a, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x22, + 0x83, 0x02, 0x0a, 0x17, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x43, 0x72, 0x65, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x1a, 0x84, 0x01, 0x0a, 0x07, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x11, 0x66, 0x69, 0x6c, 0x74, 0x65, + 0x72, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x10, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x66, 0x69, 0x65, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x69, + 0x73, 0x73, 0x75, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x66, 0x69, 0x6c, + 0x74, 0x65, 0x72, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x78, 0x63, + 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x0e, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x45, 0x78, 0x70, 0x69, 0x72, + 0x65, 0x64, 0x1a, 0x61, 0x0a, 0x05, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x58, 0x0a, 0x0a, 0x63, + 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x38, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, + 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x56, 0x65, 0x72, + 0x69, 0x66, 0x69, 0x65, 0x64, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x52, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x65, 0x64, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x22, 0xc5, 0x01, 0x0a, 0x1f, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x1a, 0x98, 0x01, 0x0a, 0x07, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x70, + 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x6b, + 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x2d, 0x0a, 0x12, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, + 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x11, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x55, 0x72, 0x6c, 0x12, 0x2d, 0x0a, 0x12, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x11, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, + 0x72, 0x76, 0x65, 0x72, 0x1a, 0x07, 0x0a, 0x05, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x78, 0x0a, + 0x20, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, + 0x70, 0x1a, 0x3b, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x30, 0x0a, 0x05, + 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x77, 0x65, + 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, + 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x1a, 0x17, + 0x0a, 0x05, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x6f, 0x6b, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x02, 0x6f, 0x6b, 0x22, 0xc2, 0x09, 0x0a, 0x0a, 0x53, 0x79, 0x73, 0x74, + 0x65, 0x6d, 0x49, 0x6e, 0x66, 0x6f, 0x1a, 0x09, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0xda, 0x01, 0x0a, 0x05, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x41, 0x0a, 0x07, 0x70, + 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, + 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, + 0x76, 0x31, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x50, 0x72, + 0x6f, 0x63, 0x65, 0x73, 0x73, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x12, 0x35, + 0x0a, 0x03, 0x70, 0x32, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x77, 0x65, + 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, + 0x31, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x50, 0x32, 0x50, + 0x52, 0x03, 0x70, 0x32, 0x70, 0x12, 0x41, 0x0a, 0x07, 0x6f, 0x72, 0x62, 0x69, 0x74, 0x64, 0x62, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x73, + 0x74, 0x65, 0x6d, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x4f, 0x72, 0x62, 0x69, 0x74, 0x44, 0x42, 0x52, + 0x07, 0x6f, 0x72, 0x62, 0x69, 0x74, 0x64, 0x62, 0x12, 0x14, 0x0a, 0x05, 0x77, 0x61, 0x72, 0x6e, + 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x77, 0x61, 0x72, 0x6e, 0x73, 0x1a, 0xee, + 0x01, 0x0a, 0x07, 0x4f, 0x72, 0x62, 0x69, 0x74, 0x44, 0x42, 0x12, 0x64, 0x0a, 0x10, 0x61, 0x63, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, + 0x6d, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x4f, 0x72, 0x62, 0x69, 0x74, 0x44, 0x42, 0x2e, 0x52, 0x65, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, + 0x0f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x1a, 0x7d, 0x0a, 0x11, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, + 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x07, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x12, 0x1a, 0x0a, 0x08, 0x62, + 0x75, 0x66, 0x66, 0x65, 0x72, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x62, + 0x75, 0x66, 0x66, 0x65, 0x72, 0x65, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x71, 0x75, 0x65, 0x75, 0x65, + 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, 0x1a, + 0x2e, 0x0a, 0x03, 0x50, 0x32, 0x50, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, + 0x74, 0x65, 0x64, 0x5f, 0x70, 0x65, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x0e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65, 0x64, 0x50, 0x65, 0x65, 0x72, 0x73, 0x1a, + 0xaa, 0x05, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x17, 0x0a, 0x07, 0x76, 0x63, 0x73, 0x5f, 0x72, 0x65, 0x66, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x76, 0x63, 0x73, 0x52, 0x65, 0x66, 0x12, 0x1b, + 0x0a, 0x09, 0x75, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x08, 0x75, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x4d, 0x73, 0x12, 0x27, 0x0a, 0x10, 0x75, + 0x73, 0x65, 0x72, 0x5f, 0x63, 0x70, 0x75, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x73, 0x18, + 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x75, 0x73, 0x65, 0x72, 0x43, 0x70, 0x75, 0x54, 0x69, + 0x6d, 0x65, 0x4d, 0x73, 0x12, 0x2b, 0x0a, 0x12, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x5f, 0x63, + 0x70, 0x75, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x0f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x43, 0x70, 0x75, 0x54, 0x69, 0x6d, 0x65, 0x4d, + 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, + 0x0c, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x41, 0x74, + 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x5f, 0x63, 0x75, 0x72, 0x18, 0x0d, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x72, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x43, 0x75, 0x72, 0x12, + 0x23, 0x0a, 0x0d, 0x6e, 0x75, 0x6d, 0x5f, 0x67, 0x6f, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x65, + 0x18, 0x0e, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x6e, 0x75, 0x6d, 0x47, 0x6f, 0x72, 0x6f, 0x75, + 0x74, 0x69, 0x6e, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x0f, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6e, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x2d, 0x0a, 0x13, + 0x74, 0x6f, 0x6f, 0x5f, 0x6d, 0x61, 0x6e, 0x79, 0x5f, 0x6f, 0x70, 0x65, 0x6e, 0x5f, 0x66, 0x69, + 0x6c, 0x65, 0x73, 0x18, 0x10, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x74, 0x6f, 0x6f, 0x4d, 0x61, + 0x6e, 0x79, 0x4f, 0x70, 0x65, 0x6e, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x6e, + 0x75, 0x6d, 0x5f, 0x63, 0x70, 0x75, 0x18, 0x11, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6e, 0x75, + 0x6d, 0x43, 0x70, 0x75, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x6f, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x18, 0x12, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x6f, 0x56, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a, 0x10, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, + 0x5f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x18, 0x13, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x6f, + 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x12, 0x1b, + 0x0a, 0x09, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x14, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x61, + 0x72, 0x63, 0x68, 0x18, 0x15, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x72, 0x63, 0x68, 0x12, + 0x1d, 0x0a, 0x0a, 0x72, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x5f, 0x6d, 0x61, 0x78, 0x18, 0x16, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x09, 0x72, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x4d, 0x61, 0x78, 0x12, 0x10, + 0x0a, 0x03, 0x70, 0x69, 0x64, 0x18, 0x17, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x70, 0x69, 0x64, + 0x12, 0x12, 0x0a, 0x04, 0x70, 0x70, 0x69, 0x64, 0x18, 0x18, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, + 0x70, 0x70, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, + 0x18, 0x19, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, + 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x75, + 0x69, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x64, 0x69, + 0x72, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, + 0x44, 0x69, 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x5f, 0x75, 0x73, + 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x79, + 0x73, 0x74, 0x65, 0x6d, 0x55, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xeb, 0x05, 0x0a, + 0x08, 0x50, 0x65, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x1a, 0x09, 0x0a, 0x07, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x41, 0x0a, 0x05, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x38, 0x0a, + 0x05, 0x70, 0x65, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x77, + 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, + 0x76, 0x31, 0x2e, 0x50, 0x65, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x2e, 0x50, 0x65, 0x65, 0x72, + 0x52, 0x05, 0x70, 0x65, 0x65, 0x72, 0x73, 0x1a, 0xaa, 0x02, 0x0a, 0x04, 0x50, 0x65, 0x65, 0x72, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x3b, 0x0a, 0x06, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x23, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x65, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x2e, + 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x06, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x12, 0x16, 0x0a, + 0x06, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x65, + 0x72, 0x72, 0x6f, 0x72, 0x73, 0x12, 0x41, 0x0a, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, + 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, + 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x65, + 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x08, + 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x6d, 0x69, 0x6e, 0x5f, + 0x6c, 0x61, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6d, + 0x69, 0x6e, 0x4c, 0x61, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x73, 0x5f, + 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x73, + 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x12, 0x3c, 0x0a, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x77, 0x65, 0x73, 0x68, + 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, + 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0xd6, 0x01, 0x0a, 0x05, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x1b, + 0x0a, 0x09, 0x69, 0x73, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x08, 0x69, 0x73, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x3c, 0x0a, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, + 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x44, + 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x6c, 0x61, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6c, 0x61, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x3e, 0x0a, + 0x07, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, + 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, + 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x65, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x2e, 0x53, 0x74, + 0x72, 0x65, 0x61, 0x6d, 0x52, 0x07, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x1a, 0x18, 0x0a, + 0x06, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x71, 0x0a, 0x07, 0x46, 0x65, 0x61, 0x74, 0x75, + 0x72, 0x65, 0x12, 0x12, 0x0a, 0x0e, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x46, 0x65, 0x61, + 0x74, 0x75, 0x72, 0x65, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x57, 0x65, 0x73, 0x68, 0x46, 0x65, + 0x61, 0x74, 0x75, 0x72, 0x65, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x42, 0x4c, 0x45, 0x46, 0x65, + 0x61, 0x74, 0x75, 0x72, 0x65, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x4c, 0x6f, 0x63, 0x61, 0x6c, + 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x10, 0x03, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x6f, 0x72, + 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x10, 0x04, 0x12, 0x0f, 0x0a, 0x0b, 0x51, 0x75, 0x69, + 0x63, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x10, 0x05, 0x22, 0x9c, 0x01, 0x0a, 0x08, 0x50, + 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x14, 0x0a, + 0x05, 0x64, 0x6f, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x64, 0x6f, + 0x69, 0x6e, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, + 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x12, 0x14, 0x0a, + 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x74, 0x6f, + 0x74, 0x61, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x05, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x22, 0xc7, 0x01, 0x0a, 0x11, 0x4f, 0x75, + 0x74, 0x4f, 0x66, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, + 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x63, 0x69, + 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x70, 0x6b, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x50, 0x6b, 0x12, 0x18, + 0x0a, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x06, 0x52, + 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x69, 0x67, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x73, 0x69, 0x67, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6c, + 0x61, 0x67, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x07, 0x52, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, + 0x12, 0x2b, 0x0a, 0x11, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x70, 0x61, + 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x10, 0x65, 0x6e, 0x63, + 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x14, 0x0a, + 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x6e, 0x6f, + 0x6e, 0x63, 0x65, 0x22, 0x6c, 0x0a, 0x19, 0x4f, 0x75, 0x74, 0x4f, 0x66, 0x53, 0x74, 0x6f, 0x72, + 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, + 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x62, 0x6f, 0x78, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x03, 0x62, 0x6f, 0x78, 0x12, 0x27, 0x0a, 0x0f, 0x67, 0x72, 0x6f, 0x75, + 0x70, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x0e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, + 0x65, 0x22, 0xf7, 0x01, 0x0a, 0x11, 0x4f, 0x75, 0x74, 0x4f, 0x66, 0x53, 0x74, 0x6f, 0x72, 0x65, + 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x1a, 0x23, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x1a, 0xbc, 0x01, 0x0a, + 0x05, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x40, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, + 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x75, + 0x74, 0x4f, 0x66, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, + 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6c, 0x65, 0x61, + 0x72, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x63, 0x6c, 0x65, + 0x61, 0x72, 0x74, 0x65, 0x78, 0x74, 0x12, 0x28, 0x0a, 0x10, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, + 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x0e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, + 0x12, 0x29, 0x0a, 0x10, 0x61, 0x6c, 0x72, 0x65, 0x61, 0x64, 0x79, 0x5f, 0x72, 0x65, 0x63, 0x65, + 0x69, 0x76, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x61, 0x6c, 0x72, 0x65, + 0x61, 0x64, 0x79, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x22, 0x7e, 0x0a, 0x0e, 0x4f, + 0x75, 0x74, 0x4f, 0x66, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x53, 0x65, 0x61, 0x6c, 0x1a, 0x45, 0x0a, + 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x63, 0x69, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x67, 0x72, + 0x6f, 0x75, 0x70, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x75, 0x62, 0x6c, 0x69, + 0x63, 0x4b, 0x65, 0x79, 0x1a, 0x25, 0x0a, 0x05, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x1c, 0x0a, + 0x09, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x09, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x22, 0xbe, 0x02, 0x0a, 0x23, + 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x43, + 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, + 0x72, 0x65, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x70, 0x6b, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x50, 0x6b, + 0x12, 0x3b, 0x0a, 0x1a, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x74, 0x79, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x17, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x49, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x74, 0x79, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x2f, 0x0a, + 0x13, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x5f, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x76, 0x65, 0x72, 0x69, + 0x66, 0x69, 0x65, 0x64, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x12, 0x2b, + 0x0a, 0x11, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, + 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x65, + 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x44, 0x61, 0x74, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, + 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x66, 0x69, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x22, 0x3d, 0x0a, 0x11, + 0x46, 0x69, 0x72, 0x73, 0x74, 0x4c, 0x61, 0x73, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, + 0x73, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x69, 0x72, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x05, 0x66, 0x69, 0x72, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x61, 0x73, 0x74, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x6c, 0x61, 0x73, 0x74, 0x22, 0xc4, 0x01, 0x0a, 0x13, + 0x4f, 0x72, 0x62, 0x69, 0x74, 0x44, 0x42, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x65, + 0x61, 0x64, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x61, 0x6c, 0x65, 0x64, 0x5f, 0x62, 0x6f, + 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x65, 0x61, 0x6c, 0x65, 0x64, 0x42, + 0x6f, 0x78, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x61, 0x77, 0x5f, 0x72, 0x6f, 0x74, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x72, 0x61, 0x77, 0x52, 0x6f, 0x74, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x6b, 0x0a, 0x03, 0x42, 0x6f, 0x78, 0x12, 0x18, 0x0a, 0x07, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x68, 0x65, 0x61, 0x64, 0x73, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x68, 0x65, 0x61, 0x64, 0x73, 0x12, 0x1b, 0x0a, 0x09, + 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x70, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x50, 0x6b, 0x12, 0x17, 0x0a, 0x07, 0x70, 0x65, 0x65, + 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x70, 0x65, 0x65, 0x72, + 0x49, 0x64, 0x22, 0xe4, 0x01, 0x0a, 0x15, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x43, 0x6f, + 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x0a, 0x04, + 0x50, 0x65, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x64, 0x64, 0x72, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x05, 0x61, 0x64, 0x64, 0x72, 0x73, 0x1a, 0x42, 0x0a, 0x07, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, + 0x5f, 0x70, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x61, + 0x63, 0x74, 0x50, 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x1a, 0x59, + 0x0a, 0x05, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x50, 0x0a, 0x0b, 0x70, 0x65, 0x65, 0x72, 0x73, + 0x5f, 0x66, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x77, + 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, + 0x76, 0x31, 0x2e, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x50, 0x65, 0x65, 0x72, 0x52, 0x0a, 0x70, + 0x65, 0x65, 0x72, 0x73, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x2a, 0x69, 0x0a, 0x09, 0x47, 0x72, 0x6f, + 0x75, 0x70, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x12, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x54, + 0x79, 0x70, 0x65, 0x55, 0x6e, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x64, 0x10, 0x00, 0x12, 0x14, + 0x0a, 0x10, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x54, 0x79, 0x70, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x54, 0x79, 0x70, + 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x10, 0x02, 0x12, 0x18, 0x0a, 0x14, 0x47, 0x72, + 0x6f, 0x75, 0x70, 0x54, 0x79, 0x70, 0x65, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x4d, 0x65, 0x6d, 0x62, + 0x65, 0x72, 0x10, 0x03, 0x2a, 0xba, 0x07, 0x0a, 0x09, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, + 0x70, 0x65, 0x12, 0x16, 0x0a, 0x12, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x55, + 0x6e, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x64, 0x10, 0x00, 0x12, 0x23, 0x0a, 0x1f, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, + 0x65, 0x72, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x41, 0x64, 0x64, 0x65, 0x64, 0x10, 0x01, 0x12, + 0x25, 0x0a, 0x21, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x47, 0x72, 0x6f, 0x75, + 0x70, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x4b, 0x65, 0x79, 0x41, + 0x64, 0x64, 0x65, 0x64, 0x10, 0x02, 0x12, 0x1f, 0x0a, 0x1b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, + 0x79, 0x70, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4a, + 0x6f, 0x69, 0x6e, 0x65, 0x64, 0x10, 0x65, 0x12, 0x1d, 0x0a, 0x19, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x54, 0x79, 0x70, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, + 0x4c, 0x65, 0x66, 0x74, 0x10, 0x66, 0x12, 0x2a, 0x0a, 0x26, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, + 0x79, 0x70, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, + 0x10, 0x67, 0x12, 0x29, 0x0a, 0x25, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x41, + 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x10, 0x68, 0x12, 0x30, 0x0a, + 0x2c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, + 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x65, 0x74, 0x10, 0x69, 0x12, + 0x32, 0x0a, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x41, 0x63, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x4f, 0x75, 0x74, 0x67, 0x6f, 0x69, 0x6e, 0x67, 0x45, 0x6e, 0x71, 0x75, 0x65, 0x75, 0x65, + 0x64, 0x10, 0x6a, 0x12, 0x2e, 0x0a, 0x2a, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, + 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x4f, 0x75, 0x74, 0x67, 0x6f, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x6e, + 0x74, 0x10, 0x6b, 0x12, 0x32, 0x0a, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, + 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x63, 0x6f, 0x6d, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x63, + 0x65, 0x69, 0x76, 0x65, 0x64, 0x10, 0x6c, 0x12, 0x33, 0x0a, 0x2f, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x54, 0x79, 0x70, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, + 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x63, 0x6f, 0x6d, 0x69, 0x6e, + 0x67, 0x44, 0x69, 0x73, 0x63, 0x61, 0x72, 0x64, 0x65, 0x64, 0x10, 0x6d, 0x12, 0x32, 0x0a, 0x2e, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x6e, + 0x63, 0x6f, 0x6d, 0x69, 0x6e, 0x67, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x65, 0x64, 0x10, 0x6e, + 0x12, 0x22, 0x0a, 0x1e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x41, 0x63, 0x63, + 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x65, 0x64, 0x10, 0x6f, 0x12, 0x24, 0x0a, 0x20, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, + 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x55, + 0x6e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x10, 0x70, 0x12, 0x22, 0x0a, 0x1d, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x41, 0x6c, + 0x69, 0x61, 0x73, 0x4b, 0x65, 0x79, 0x41, 0x64, 0x64, 0x65, 0x64, 0x10, 0xc9, 0x01, 0x12, 0x30, + 0x0a, 0x2b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x4d, 0x75, 0x6c, 0x74, 0x69, + 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x6c, 0x69, 0x61, 0x73, + 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x41, 0x64, 0x64, 0x65, 0x64, 0x10, 0xad, 0x02, + 0x12, 0x34, 0x0a, 0x2f, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x4d, 0x75, 0x6c, + 0x74, 0x69, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x6e, 0x69, + 0x74, 0x69, 0x61, 0x6c, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x41, 0x6e, 0x6e, 0x6f, 0x75, 0x6e, + 0x63, 0x65, 0x64, 0x10, 0xae, 0x02, 0x12, 0x2e, 0x0a, 0x29, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, + 0x79, 0x70, 0x65, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x47, 0x72, + 0x6f, 0x75, 0x70, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x47, 0x72, 0x61, 0x6e, + 0x74, 0x65, 0x64, 0x10, 0xaf, 0x02, 0x12, 0x1e, 0x0a, 0x19, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, + 0x79, 0x70, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6e, 0x67, 0x10, 0x93, 0x03, 0x12, 0x31, 0x0a, 0x2c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, + 0x79, 0x70, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, + 0x65, 0x64, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x52, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x65, 0x72, 0x65, 0x64, 0x10, 0xf4, 0x03, 0x12, 0x26, 0x0a, 0x21, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x65, 0x6e, 0x74, 0x10, 0xe9, + 0x07, 0x2a, 0x8c, 0x01, 0x0a, 0x18, 0x44, 0x65, 0x62, 0x75, 0x67, 0x49, 0x6e, 0x73, 0x70, 0x65, + 0x63, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4c, 0x6f, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x25, + 0x0a, 0x21, 0x44, 0x65, 0x62, 0x75, 0x67, 0x49, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x74, 0x47, 0x72, + 0x6f, 0x75, 0x70, 0x4c, 0x6f, 0x67, 0x54, 0x79, 0x70, 0x65, 0x55, 0x6e, 0x64, 0x65, 0x66, 0x69, + 0x6e, 0x65, 0x64, 0x10, 0x00, 0x12, 0x23, 0x0a, 0x1f, 0x44, 0x65, 0x62, 0x75, 0x67, 0x49, 0x6e, + 0x73, 0x70, 0x65, 0x63, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4c, 0x6f, 0x67, 0x54, 0x79, 0x70, + 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x10, 0x01, 0x12, 0x24, 0x0a, 0x20, 0x44, 0x65, + 0x62, 0x75, 0x67, 0x49, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4c, + 0x6f, 0x67, 0x54, 0x79, 0x70, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x10, 0x02, + 0x2a, 0xc2, 0x01, 0x0a, 0x0c, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x12, 0x19, 0x0a, 0x15, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x55, 0x6e, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x64, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, + 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x54, 0x6f, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x43, 0x6f, 0x6e, 0x74, 0x61, + 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x10, + 0x02, 0x12, 0x15, 0x0a, 0x11, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x41, 0x64, 0x64, 0x65, 0x64, 0x10, 0x03, 0x12, 0x17, 0x0a, 0x13, 0x43, 0x6f, 0x6e, 0x74, + 0x61, 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x10, + 0x04, 0x12, 0x19, 0x0a, 0x15, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x44, 0x69, 0x73, 0x63, 0x61, 0x72, 0x64, 0x65, 0x64, 0x10, 0x05, 0x12, 0x17, 0x0a, 0x13, + 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x65, 0x64, 0x10, 0x06, 0x2a, 0x47, 0x0a, 0x09, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x0a, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x44, 0x69, 0x72, + 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x49, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x44, 0x69, 0x72, + 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x44, 0x69, + 0x72, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x42, 0x69, 0x44, 0x69, 0x72, 0x10, 0x03, 0x32, 0xdd, + 0x26, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x12, 0x73, 0x0a, 0x11, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x45, 0x78, 0x70, + 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x2e, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, + 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x2e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, + 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x44, 0x61, 0x74, 0x61, 0x2e, + 0x52, 0x65, 0x70, 0x6c, 0x79, 0x30, 0x01, 0x12, 0x83, 0x01, 0x0a, 0x17, 0x53, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x34, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x77, 0x65, 0x73, 0x68, + 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x83, 0x01, + 0x0a, 0x17, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x34, 0x2e, 0x77, 0x65, 0x73, 0x68, + 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, + 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, + 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x32, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, + 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x52, 0x65, + 0x70, 0x6c, 0x79, 0x12, 0x7d, 0x0a, 0x15, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x32, 0x2e, 0x77, + 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, + 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x30, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x52, 0x65, 0x70, + 0x6c, 0x79, 0x12, 0x7a, 0x0a, 0x14, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x31, 0x2e, 0x77, 0x65, 0x73, + 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, + 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x45, + 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, + 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, + 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x92, + 0x01, 0x0a, 0x1c, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x52, 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, + 0x39, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, + 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x77, 0x65, 0x73, + 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, + 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, + 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x52, 0x65, + 0x70, 0x6c, 0x79, 0x12, 0x74, 0x0a, 0x12, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x53, 0x65, 0x6e, 0x64, 0x12, 0x2f, 0x2e, 0x77, 0x65, 0x73, 0x68, + 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, + 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x53, 0x65, + 0x6e, 0x64, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x77, 0x65, 0x73, + 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, + 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x53, + 0x65, 0x6e, 0x64, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x7a, 0x0a, 0x14, 0x43, 0x6f, 0x6e, + 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x41, 0x63, 0x63, 0x65, 0x70, + 0x74, 0x12, 0x31, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x2e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, + 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x2e, + 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x7d, 0x0a, 0x15, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x44, 0x69, 0x73, 0x63, 0x61, 0x72, 0x64, 0x12, 0x32, + 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, + 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x44, 0x69, 0x73, 0x63, 0x61, 0x72, 0x64, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x44, 0x69, 0x73, 0x63, 0x61, 0x72, 0x64, 0x2e, 0x52, + 0x65, 0x70, 0x6c, 0x79, 0x12, 0x62, 0x0a, 0x0c, 0x53, 0x68, 0x61, 0x72, 0x65, 0x43, 0x6f, 0x6e, + 0x74, 0x61, 0x63, 0x74, 0x12, 0x29, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, + 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x27, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, + 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x68, 0x61, 0x72, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, + 0x63, 0x74, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x65, 0x0a, 0x0d, 0x44, 0x65, 0x63, 0x6f, + 0x64, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x12, 0x2a, 0x2e, 0x77, 0x65, 0x73, 0x68, + 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, + 0x44, 0x65, 0x63, 0x6f, 0x64, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x2e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x63, 0x6f, + 0x64, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, + 0x62, 0x0a, 0x0c, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, + 0x29, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, + 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x42, 0x6c, 0x6f, + 0x63, 0x6b, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x77, 0x65, 0x73, + 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, + 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x52, 0x65, + 0x70, 0x6c, 0x79, 0x12, 0x68, 0x0a, 0x0e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x55, 0x6e, + 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x2b, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, + 0x61, 0x63, 0x74, 0x55, 0x6e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, + 0x55, 0x6e, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x77, 0x0a, + 0x13, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x4b, 0x65, 0x79, + 0x53, 0x65, 0x6e, 0x64, 0x12, 0x30, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, + 0x63, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x4b, 0x65, 0x79, 0x53, 0x65, 0x6e, 0x64, 0x2e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, + 0x74, 0x61, 0x63, 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x4b, 0x65, 0x79, 0x53, 0x65, 0x6e, 0x64, + 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x80, 0x01, 0x0a, 0x16, 0x4d, 0x75, 0x6c, 0x74, 0x69, + 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x12, 0x33, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x4d, 0x65, 0x6d, + 0x62, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x2e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x75, 0x6c, + 0x74, 0x69, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x7a, 0x0a, 0x14, 0x4d, 0x75, 0x6c, + 0x74, 0x69, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4a, 0x6f, 0x69, + 0x6e, 0x12, 0x31, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x4d, 0x65, 0x6d, + 0x62, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4a, 0x6f, 0x69, 0x6e, 0x2e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x75, 0x6c, 0x74, 0x69, + 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4a, 0x6f, 0x69, 0x6e, 0x2e, + 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x7d, 0x0a, 0x15, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x4d, 0x65, + 0x6d, 0x62, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4c, 0x65, 0x61, 0x76, 0x65, 0x12, 0x32, + 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, + 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, + 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4c, 0x65, 0x61, 0x76, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x4d, 0x65, + 0x6d, 0x62, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4c, 0x65, 0x61, 0x76, 0x65, 0x2e, 0x52, + 0x65, 0x70, 0x6c, 0x79, 0x12, 0xad, 0x01, 0x0a, 0x25, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x4d, 0x65, + 0x6d, 0x62, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x65, + 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x44, 0x69, 0x73, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x12, 0x42, + 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, + 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, + 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, + 0x65, 0x72, 0x44, 0x69, 0x73, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x40, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x4d, 0x65, + 0x6d, 0x62, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x65, + 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x44, 0x69, 0x73, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x2e, 0x52, + 0x65, 0x70, 0x6c, 0x79, 0x12, 0x98, 0x01, 0x0a, 0x1e, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x4d, 0x65, + 0x6d, 0x62, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x6f, + 0x6c, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x3b, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, + 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x75, + 0x6c, 0x74, 0x69, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x64, + 0x6d, 0x69, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x2e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x75, 0x6c, 0x74, 0x69, + 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x64, 0x6d, 0x69, 0x6e, + 0x52, 0x6f, 0x6c, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, + 0x9e, 0x01, 0x0a, 0x20, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x47, + 0x72, 0x6f, 0x75, 0x70, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x12, 0x3d, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x75, 0x6c, 0x74, 0x69, + 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x6e, 0x76, 0x69, 0x74, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x3b, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x4d, + 0x65, 0x6d, 0x62, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, + 0x12, 0x6b, 0x0a, 0x0f, 0x41, 0x70, 0x70, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x53, + 0x65, 0x6e, 0x64, 0x12, 0x2c, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x53, 0x65, 0x6e, 0x64, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x2a, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x53, 0x65, 0x6e, 0x64, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x68, 0x0a, + 0x0e, 0x41, 0x70, 0x70, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x65, 0x6e, 0x64, 0x12, + 0x2b, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, + 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x53, 0x65, 0x6e, 0x64, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x77, + 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, + 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x65, 0x6e, + 0x64, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x6e, 0x0a, 0x11, 0x47, 0x72, 0x6f, 0x75, 0x70, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2e, 0x2e, 0x77, + 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, + 0x76, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x4c, 0x69, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x77, + 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, + 0x76, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x30, 0x01, 0x12, 0x6b, 0x0a, 0x10, 0x47, 0x72, 0x6f, 0x75, 0x70, + 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2d, 0x2e, 0x77, 0x65, + 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, + 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4c, 0x69, + 0x73, 0x74, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x77, 0x65, 0x73, + 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, + 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x30, 0x01, 0x12, 0x59, 0x0a, 0x09, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x6e, 0x66, + 0x6f, 0x12, 0x26, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x6e, 0x66, + 0x6f, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x77, 0x65, 0x73, 0x68, + 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, + 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, + 0x65, 0x0a, 0x0d, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, + 0x12, 0x2a, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x47, + 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x77, + 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, + 0x76, 0x31, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, + 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x6b, 0x0a, 0x0f, 0x44, 0x65, 0x61, 0x63, 0x74, 0x69, + 0x76, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x2c, 0x2e, 0x77, 0x65, 0x73, 0x68, + 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, + 0x44, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x2e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, + 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, + 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x52, 0x65, + 0x70, 0x6c, 0x79, 0x12, 0x73, 0x0a, 0x11, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x44, 0x65, 0x76, 0x69, + 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2e, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, + 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, + 0x72, 0x6f, 0x75, 0x70, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, + 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, + 0x72, 0x6f, 0x75, 0x70, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x30, 0x01, 0x12, 0x6d, 0x0a, 0x0f, 0x44, 0x65, 0x62, 0x75, + 0x67, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x2c, 0x2e, 0x77, 0x65, + 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, + 0x31, 0x2e, 0x44, 0x65, 0x62, 0x75, 0x67, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, + 0x73, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x77, 0x65, 0x73, 0x68, + 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, + 0x44, 0x65, 0x62, 0x75, 0x67, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2e, + 0x52, 0x65, 0x70, 0x6c, 0x79, 0x30, 0x01, 0x12, 0x82, 0x01, 0x0a, 0x16, 0x44, 0x65, 0x62, 0x75, + 0x67, 0x49, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x74, 0x6f, + 0x72, 0x65, 0x12, 0x33, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x62, 0x75, 0x67, 0x49, 0x6e, + 0x73, 0x70, 0x65, 0x63, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x2e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, + 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, + 0x62, 0x75, 0x67, 0x49, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, + 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x30, 0x01, 0x12, 0x5c, 0x0a, 0x0a, + 0x44, 0x65, 0x62, 0x75, 0x67, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x27, 0x2e, 0x77, 0x65, 0x73, + 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, + 0x2e, 0x44, 0x65, 0x62, 0x75, 0x67, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x62, 0x75, 0x67, 0x47, + 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x5c, 0x0a, 0x0a, 0x53, 0x79, + 0x73, 0x74, 0x65, 0x6d, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x27, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, + 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x53, + 0x79, 0x73, 0x74, 0x65, 0x6d, 0x49, 0x6e, 0x66, 0x6f, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x25, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x49, 0x6e, + 0x66, 0x6f, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0xad, 0x01, 0x0a, 0x25, 0x43, 0x72, 0x65, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x49, 0x6e, 0x69, 0x74, 0x46, 0x6c, + 0x6f, 0x77, 0x12, 0x42, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x61, 0x6c, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x49, 0x6e, 0x69, 0x74, 0x46, 0x6c, 0x6f, 0x77, 0x2e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x40, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x49, 0x6e, 0x69, 0x74, 0x46, 0x6c, + 0x6f, 0x77, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0xb9, 0x01, 0x0a, 0x29, 0x43, 0x72, 0x65, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, + 0x74, 0x65, 0x46, 0x6c, 0x6f, 0x77, 0x12, 0x46, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, + 0x74, 0x65, 0x46, 0x6c, 0x6f, 0x77, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x44, + 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, + 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x56, + 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x46, 0x6c, 0x6f, 0x77, 0x2e, 0x52, + 0x65, 0x70, 0x6c, 0x79, 0x12, 0x85, 0x01, 0x0a, 0x17, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, + 0x64, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x4c, 0x69, 0x73, 0x74, + 0x12, 0x34, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x43, + 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x2e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x65, 0x72, + 0x69, 0x66, 0x69, 0x65, 0x64, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, + 0x4c, 0x69, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x30, 0x01, 0x12, 0x9b, 0x01, 0x0a, + 0x1f, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, + 0x12, 0x3c, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, + 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3a, + 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, + 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x47, + 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x56, 0x0a, 0x08, 0x50, 0x65, + 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x25, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x65, 0x65, + 0x72, 0x4c, 0x69, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, + 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, + 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x65, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x70, + 0x6c, 0x79, 0x12, 0x71, 0x0a, 0x11, 0x4f, 0x75, 0x74, 0x4f, 0x66, 0x53, 0x74, 0x6f, 0x72, 0x65, + 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x12, 0x2e, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, + 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x75, + 0x74, 0x4f, 0x66, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x2e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, + 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x75, + 0x74, 0x4f, 0x66, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x2e, + 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x68, 0x0a, 0x0e, 0x4f, 0x75, 0x74, 0x4f, 0x66, 0x53, 0x74, + 0x6f, 0x72, 0x65, 0x53, 0x65, 0x61, 0x6c, 0x12, 0x2b, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, + 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x75, + 0x74, 0x4f, 0x66, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x53, 0x65, 0x61, 0x6c, 0x2e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x75, 0x74, 0x4f, 0x66, + 0x53, 0x74, 0x6f, 0x72, 0x65, 0x53, 0x65, 0x61, 0x6c, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, + 0x7d, 0x0a, 0x15, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, + 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x52, + 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x77, + 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, + 0x76, 0x31, 0x2e, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x42, 0x26, + 0x5a, 0x24, 0x62, 0x65, 0x72, 0x74, 0x79, 0x2e, 0x74, 0x65, 0x63, 0x68, 0x2f, 0x77, 0x65, 0x73, + 0x68, 0x6e, 0x65, 0x74, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, + 0x6c, 0x74, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func (m *ContactRequestDiscard_Reply) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} +var ( + file_protocoltypes_proto_rawDescOnce sync.Once + file_protocoltypes_proto_rawDescData = file_protocoltypes_proto_rawDesc +) -func (m *ShareContact) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func file_protocoltypes_proto_rawDescGZIP() []byte { + file_protocoltypes_proto_rawDescOnce.Do(func() { + file_protocoltypes_proto_rawDescData = protoimpl.X.CompressGZIP(file_protocoltypes_proto_rawDescData) + }) + return file_protocoltypes_proto_rawDescData +} + +var file_protocoltypes_proto_enumTypes = make([]protoimpl.EnumInfo, 9) +var file_protocoltypes_proto_msgTypes = make([]protoimpl.MessageInfo, 178) +var file_protocoltypes_proto_goTypes = []interface{}{ + (GroupType)(0), // 0: weshnet.protocol.v1.GroupType + (EventType)(0), // 1: weshnet.protocol.v1.EventType + (DebugInspectGroupLogType)(0), // 2: weshnet.protocol.v1.DebugInspectGroupLogType + (ContactState)(0), // 3: weshnet.protocol.v1.ContactState + (Direction)(0), // 4: weshnet.protocol.v1.Direction + (ServiceGetConfiguration_SettingState)(0), // 5: weshnet.protocol.v1.ServiceGetConfiguration.SettingState + (GroupDeviceStatus_Type)(0), // 6: weshnet.protocol.v1.GroupDeviceStatus.Type + (GroupDeviceStatus_Transport)(0), // 7: weshnet.protocol.v1.GroupDeviceStatus.Transport + (PeerList_Feature)(0), // 8: weshnet.protocol.v1.PeerList.Feature + (*Account)(nil), // 9: weshnet.protocol.v1.Account + (*Group)(nil), // 10: weshnet.protocol.v1.Group + (*GroupHeadsExport)(nil), // 11: weshnet.protocol.v1.GroupHeadsExport + (*GroupMetadata)(nil), // 12: weshnet.protocol.v1.GroupMetadata + (*GroupEnvelope)(nil), // 13: weshnet.protocol.v1.GroupEnvelope + (*MessageHeaders)(nil), // 14: weshnet.protocol.v1.MessageHeaders + (*ProtocolMetadata)(nil), // 15: weshnet.protocol.v1.ProtocolMetadata + (*EncryptedMessage)(nil), // 16: weshnet.protocol.v1.EncryptedMessage + (*MessageEnvelope)(nil), // 17: weshnet.protocol.v1.MessageEnvelope + (*EventContext)(nil), // 18: weshnet.protocol.v1.EventContext + (*GroupMetadataPayloadSent)(nil), // 19: weshnet.protocol.v1.GroupMetadataPayloadSent + (*ContactAliasKeyAdded)(nil), // 20: weshnet.protocol.v1.ContactAliasKeyAdded + (*GroupMemberDeviceAdded)(nil), // 21: weshnet.protocol.v1.GroupMemberDeviceAdded + (*DeviceChainKey)(nil), // 22: weshnet.protocol.v1.DeviceChainKey + (*GroupDeviceChainKeyAdded)(nil), // 23: weshnet.protocol.v1.GroupDeviceChainKeyAdded + (*MultiMemberGroupAliasResolverAdded)(nil), // 24: weshnet.protocol.v1.MultiMemberGroupAliasResolverAdded + (*MultiMemberGroupAdminRoleGranted)(nil), // 25: weshnet.protocol.v1.MultiMemberGroupAdminRoleGranted + (*MultiMemberGroupInitialMemberAnnounced)(nil), // 26: weshnet.protocol.v1.MultiMemberGroupInitialMemberAnnounced + (*GroupAddAdditionalRendezvousSeed)(nil), // 27: weshnet.protocol.v1.GroupAddAdditionalRendezvousSeed + (*GroupRemoveAdditionalRendezvousSeed)(nil), // 28: weshnet.protocol.v1.GroupRemoveAdditionalRendezvousSeed + (*AccountGroupJoined)(nil), // 29: weshnet.protocol.v1.AccountGroupJoined + (*AccountGroupLeft)(nil), // 30: weshnet.protocol.v1.AccountGroupLeft + (*AccountContactRequestDisabled)(nil), // 31: weshnet.protocol.v1.AccountContactRequestDisabled + (*AccountContactRequestEnabled)(nil), // 32: weshnet.protocol.v1.AccountContactRequestEnabled + (*AccountContactRequestReferenceReset)(nil), // 33: weshnet.protocol.v1.AccountContactRequestReferenceReset + (*AccountContactRequestOutgoingEnqueued)(nil), // 34: weshnet.protocol.v1.AccountContactRequestOutgoingEnqueued + (*AccountContactRequestOutgoingSent)(nil), // 35: weshnet.protocol.v1.AccountContactRequestOutgoingSent + (*AccountContactRequestIncomingReceived)(nil), // 36: weshnet.protocol.v1.AccountContactRequestIncomingReceived + (*AccountContactRequestIncomingDiscarded)(nil), // 37: weshnet.protocol.v1.AccountContactRequestIncomingDiscarded + (*AccountContactRequestIncomingAccepted)(nil), // 38: weshnet.protocol.v1.AccountContactRequestIncomingAccepted + (*AccountContactBlocked)(nil), // 39: weshnet.protocol.v1.AccountContactBlocked + (*AccountContactUnblocked)(nil), // 40: weshnet.protocol.v1.AccountContactUnblocked + (*GroupReplicating)(nil), // 41: weshnet.protocol.v1.GroupReplicating + (*ServiceExportData)(nil), // 42: weshnet.protocol.v1.ServiceExportData + (*ServiceGetConfiguration)(nil), // 43: weshnet.protocol.v1.ServiceGetConfiguration + (*ContactRequestReference)(nil), // 44: weshnet.protocol.v1.ContactRequestReference + (*ContactRequestDisable)(nil), // 45: weshnet.protocol.v1.ContactRequestDisable + (*ContactRequestEnable)(nil), // 46: weshnet.protocol.v1.ContactRequestEnable + (*ContactRequestResetReference)(nil), // 47: weshnet.protocol.v1.ContactRequestResetReference + (*ContactRequestSend)(nil), // 48: weshnet.protocol.v1.ContactRequestSend + (*ContactRequestAccept)(nil), // 49: weshnet.protocol.v1.ContactRequestAccept + (*ContactRequestDiscard)(nil), // 50: weshnet.protocol.v1.ContactRequestDiscard + (*ShareContact)(nil), // 51: weshnet.protocol.v1.ShareContact + (*DecodeContact)(nil), // 52: weshnet.protocol.v1.DecodeContact + (*ContactBlock)(nil), // 53: weshnet.protocol.v1.ContactBlock + (*ContactUnblock)(nil), // 54: weshnet.protocol.v1.ContactUnblock + (*ContactAliasKeySend)(nil), // 55: weshnet.protocol.v1.ContactAliasKeySend + (*MultiMemberGroupCreate)(nil), // 56: weshnet.protocol.v1.MultiMemberGroupCreate + (*MultiMemberGroupJoin)(nil), // 57: weshnet.protocol.v1.MultiMemberGroupJoin + (*MultiMemberGroupLeave)(nil), // 58: weshnet.protocol.v1.MultiMemberGroupLeave + (*MultiMemberGroupAliasResolverDisclose)(nil), // 59: weshnet.protocol.v1.MultiMemberGroupAliasResolverDisclose + (*MultiMemberGroupAdminRoleGrant)(nil), // 60: weshnet.protocol.v1.MultiMemberGroupAdminRoleGrant + (*MultiMemberGroupInvitationCreate)(nil), // 61: weshnet.protocol.v1.MultiMemberGroupInvitationCreate + (*AppMetadataSend)(nil), // 62: weshnet.protocol.v1.AppMetadataSend + (*AppMessageSend)(nil), // 63: weshnet.protocol.v1.AppMessageSend + (*GroupMetadataEvent)(nil), // 64: weshnet.protocol.v1.GroupMetadataEvent + (*GroupMessageEvent)(nil), // 65: weshnet.protocol.v1.GroupMessageEvent + (*GroupMetadataList)(nil), // 66: weshnet.protocol.v1.GroupMetadataList + (*GroupMessageList)(nil), // 67: weshnet.protocol.v1.GroupMessageList + (*GroupInfo)(nil), // 68: weshnet.protocol.v1.GroupInfo + (*ActivateGroup)(nil), // 69: weshnet.protocol.v1.ActivateGroup + (*DeactivateGroup)(nil), // 70: weshnet.protocol.v1.DeactivateGroup + (*GroupDeviceStatus)(nil), // 71: weshnet.protocol.v1.GroupDeviceStatus + (*DebugListGroups)(nil), // 72: weshnet.protocol.v1.DebugListGroups + (*DebugInspectGroupStore)(nil), // 73: weshnet.protocol.v1.DebugInspectGroupStore + (*DebugGroup)(nil), // 74: weshnet.protocol.v1.DebugGroup + (*ShareableContact)(nil), // 75: weshnet.protocol.v1.ShareableContact + (*ServiceTokenSupportedService)(nil), // 76: weshnet.protocol.v1.ServiceTokenSupportedService + (*ServiceToken)(nil), // 77: weshnet.protocol.v1.ServiceToken + (*CredentialVerificationServiceInitFlow)(nil), // 78: weshnet.protocol.v1.CredentialVerificationServiceInitFlow + (*CredentialVerificationServiceCompleteFlow)(nil), // 79: weshnet.protocol.v1.CredentialVerificationServiceCompleteFlow + (*VerifiedCredentialsList)(nil), // 80: weshnet.protocol.v1.VerifiedCredentialsList + (*ReplicationServiceRegisterGroup)(nil), // 81: weshnet.protocol.v1.ReplicationServiceRegisterGroup + (*ReplicationServiceReplicateGroup)(nil), // 82: weshnet.protocol.v1.ReplicationServiceReplicateGroup + (*SystemInfo)(nil), // 83: weshnet.protocol.v1.SystemInfo + (*PeerList)(nil), // 84: weshnet.protocol.v1.PeerList + (*Progress)(nil), // 85: weshnet.protocol.v1.Progress + (*OutOfStoreMessage)(nil), // 86: weshnet.protocol.v1.OutOfStoreMessage + (*OutOfStoreMessageEnvelope)(nil), // 87: weshnet.protocol.v1.OutOfStoreMessageEnvelope + (*OutOfStoreReceive)(nil), // 88: weshnet.protocol.v1.OutOfStoreReceive + (*OutOfStoreSeal)(nil), // 89: weshnet.protocol.v1.OutOfStoreSeal + (*AccountVerifiedCredentialRegistered)(nil), // 90: weshnet.protocol.v1.AccountVerifiedCredentialRegistered + (*FirstLastCounters)(nil), // 91: weshnet.protocol.v1.FirstLastCounters + (*OrbitDBMessageHeads)(nil), // 92: weshnet.protocol.v1.OrbitDBMessageHeads + (*RefreshContactRequest)(nil), // 93: weshnet.protocol.v1.RefreshContactRequest + nil, // 94: weshnet.protocol.v1.MessageHeaders.MetadataEntry + (*ServiceExportData_Request)(nil), // 95: weshnet.protocol.v1.ServiceExportData.Request + (*ServiceExportData_Reply)(nil), // 96: weshnet.protocol.v1.ServiceExportData.Reply + (*ServiceGetConfiguration_Request)(nil), // 97: weshnet.protocol.v1.ServiceGetConfiguration.Request + (*ServiceGetConfiguration_Reply)(nil), // 98: weshnet.protocol.v1.ServiceGetConfiguration.Reply + (*ContactRequestReference_Request)(nil), // 99: weshnet.protocol.v1.ContactRequestReference.Request + (*ContactRequestReference_Reply)(nil), // 100: weshnet.protocol.v1.ContactRequestReference.Reply + (*ContactRequestDisable_Request)(nil), // 101: weshnet.protocol.v1.ContactRequestDisable.Request + (*ContactRequestDisable_Reply)(nil), // 102: weshnet.protocol.v1.ContactRequestDisable.Reply + (*ContactRequestEnable_Request)(nil), // 103: weshnet.protocol.v1.ContactRequestEnable.Request + (*ContactRequestEnable_Reply)(nil), // 104: weshnet.protocol.v1.ContactRequestEnable.Reply + (*ContactRequestResetReference_Request)(nil), // 105: weshnet.protocol.v1.ContactRequestResetReference.Request + (*ContactRequestResetReference_Reply)(nil), // 106: weshnet.protocol.v1.ContactRequestResetReference.Reply + (*ContactRequestSend_Request)(nil), // 107: weshnet.protocol.v1.ContactRequestSend.Request + (*ContactRequestSend_Reply)(nil), // 108: weshnet.protocol.v1.ContactRequestSend.Reply + (*ContactRequestAccept_Request)(nil), // 109: weshnet.protocol.v1.ContactRequestAccept.Request + (*ContactRequestAccept_Reply)(nil), // 110: weshnet.protocol.v1.ContactRequestAccept.Reply + (*ContactRequestDiscard_Request)(nil), // 111: weshnet.protocol.v1.ContactRequestDiscard.Request + (*ContactRequestDiscard_Reply)(nil), // 112: weshnet.protocol.v1.ContactRequestDiscard.Reply + (*ShareContact_Request)(nil), // 113: weshnet.protocol.v1.ShareContact.Request + (*ShareContact_Reply)(nil), // 114: weshnet.protocol.v1.ShareContact.Reply + (*DecodeContact_Request)(nil), // 115: weshnet.protocol.v1.DecodeContact.Request + (*DecodeContact_Reply)(nil), // 116: weshnet.protocol.v1.DecodeContact.Reply + (*ContactBlock_Request)(nil), // 117: weshnet.protocol.v1.ContactBlock.Request + (*ContactBlock_Reply)(nil), // 118: weshnet.protocol.v1.ContactBlock.Reply + (*ContactUnblock_Request)(nil), // 119: weshnet.protocol.v1.ContactUnblock.Request + (*ContactUnblock_Reply)(nil), // 120: weshnet.protocol.v1.ContactUnblock.Reply + (*ContactAliasKeySend_Request)(nil), // 121: weshnet.protocol.v1.ContactAliasKeySend.Request + (*ContactAliasKeySend_Reply)(nil), // 122: weshnet.protocol.v1.ContactAliasKeySend.Reply + (*MultiMemberGroupCreate_Request)(nil), // 123: weshnet.protocol.v1.MultiMemberGroupCreate.Request + (*MultiMemberGroupCreate_Reply)(nil), // 124: weshnet.protocol.v1.MultiMemberGroupCreate.Reply + (*MultiMemberGroupJoin_Request)(nil), // 125: weshnet.protocol.v1.MultiMemberGroupJoin.Request + (*MultiMemberGroupJoin_Reply)(nil), // 126: weshnet.protocol.v1.MultiMemberGroupJoin.Reply + (*MultiMemberGroupLeave_Request)(nil), // 127: weshnet.protocol.v1.MultiMemberGroupLeave.Request + (*MultiMemberGroupLeave_Reply)(nil), // 128: weshnet.protocol.v1.MultiMemberGroupLeave.Reply + (*MultiMemberGroupAliasResolverDisclose_Request)(nil), // 129: weshnet.protocol.v1.MultiMemberGroupAliasResolverDisclose.Request + (*MultiMemberGroupAliasResolverDisclose_Reply)(nil), // 130: weshnet.protocol.v1.MultiMemberGroupAliasResolverDisclose.Reply + (*MultiMemberGroupAdminRoleGrant_Request)(nil), // 131: weshnet.protocol.v1.MultiMemberGroupAdminRoleGrant.Request + (*MultiMemberGroupAdminRoleGrant_Reply)(nil), // 132: weshnet.protocol.v1.MultiMemberGroupAdminRoleGrant.Reply + (*MultiMemberGroupInvitationCreate_Request)(nil), // 133: weshnet.protocol.v1.MultiMemberGroupInvitationCreate.Request + (*MultiMemberGroupInvitationCreate_Reply)(nil), // 134: weshnet.protocol.v1.MultiMemberGroupInvitationCreate.Reply + (*AppMetadataSend_Request)(nil), // 135: weshnet.protocol.v1.AppMetadataSend.Request + (*AppMetadataSend_Reply)(nil), // 136: weshnet.protocol.v1.AppMetadataSend.Reply + (*AppMessageSend_Request)(nil), // 137: weshnet.protocol.v1.AppMessageSend.Request + (*AppMessageSend_Reply)(nil), // 138: weshnet.protocol.v1.AppMessageSend.Reply + (*GroupMetadataList_Request)(nil), // 139: weshnet.protocol.v1.GroupMetadataList.Request + (*GroupMessageList_Request)(nil), // 140: weshnet.protocol.v1.GroupMessageList.Request + (*GroupInfo_Request)(nil), // 141: weshnet.protocol.v1.GroupInfo.Request + (*GroupInfo_Reply)(nil), // 142: weshnet.protocol.v1.GroupInfo.Reply + (*ActivateGroup_Request)(nil), // 143: weshnet.protocol.v1.ActivateGroup.Request + (*ActivateGroup_Reply)(nil), // 144: weshnet.protocol.v1.ActivateGroup.Reply + (*DeactivateGroup_Request)(nil), // 145: weshnet.protocol.v1.DeactivateGroup.Request + (*DeactivateGroup_Reply)(nil), // 146: weshnet.protocol.v1.DeactivateGroup.Reply + (*GroupDeviceStatus_Request)(nil), // 147: weshnet.protocol.v1.GroupDeviceStatus.Request + (*GroupDeviceStatus_Reply)(nil), // 148: weshnet.protocol.v1.GroupDeviceStatus.Reply + (*GroupDeviceStatus_Reply_PeerConnected)(nil), // 149: weshnet.protocol.v1.GroupDeviceStatus.Reply.PeerConnected + (*GroupDeviceStatus_Reply_PeerReconnecting)(nil), // 150: weshnet.protocol.v1.GroupDeviceStatus.Reply.PeerReconnecting + (*GroupDeviceStatus_Reply_PeerDisconnected)(nil), // 151: weshnet.protocol.v1.GroupDeviceStatus.Reply.PeerDisconnected + (*DebugListGroups_Request)(nil), // 152: weshnet.protocol.v1.DebugListGroups.Request + (*DebugListGroups_Reply)(nil), // 153: weshnet.protocol.v1.DebugListGroups.Reply + (*DebugInspectGroupStore_Request)(nil), // 154: weshnet.protocol.v1.DebugInspectGroupStore.Request + (*DebugInspectGroupStore_Reply)(nil), // 155: weshnet.protocol.v1.DebugInspectGroupStore.Reply + (*DebugGroup_Request)(nil), // 156: weshnet.protocol.v1.DebugGroup.Request + (*DebugGroup_Reply)(nil), // 157: weshnet.protocol.v1.DebugGroup.Reply + (*CredentialVerificationServiceInitFlow_Request)(nil), // 158: weshnet.protocol.v1.CredentialVerificationServiceInitFlow.Request + (*CredentialVerificationServiceInitFlow_Reply)(nil), // 159: weshnet.protocol.v1.CredentialVerificationServiceInitFlow.Reply + (*CredentialVerificationServiceCompleteFlow_Request)(nil), // 160: weshnet.protocol.v1.CredentialVerificationServiceCompleteFlow.Request + (*CredentialVerificationServiceCompleteFlow_Reply)(nil), // 161: weshnet.protocol.v1.CredentialVerificationServiceCompleteFlow.Reply + (*VerifiedCredentialsList_Request)(nil), // 162: weshnet.protocol.v1.VerifiedCredentialsList.Request + (*VerifiedCredentialsList_Reply)(nil), // 163: weshnet.protocol.v1.VerifiedCredentialsList.Reply + (*ReplicationServiceRegisterGroup_Request)(nil), // 164: weshnet.protocol.v1.ReplicationServiceRegisterGroup.Request + (*ReplicationServiceRegisterGroup_Reply)(nil), // 165: weshnet.protocol.v1.ReplicationServiceRegisterGroup.Reply + (*ReplicationServiceReplicateGroup_Request)(nil), // 166: weshnet.protocol.v1.ReplicationServiceReplicateGroup.Request + (*ReplicationServiceReplicateGroup_Reply)(nil), // 167: weshnet.protocol.v1.ReplicationServiceReplicateGroup.Reply + (*SystemInfo_Request)(nil), // 168: weshnet.protocol.v1.SystemInfo.Request + (*SystemInfo_Reply)(nil), // 169: weshnet.protocol.v1.SystemInfo.Reply + (*SystemInfo_OrbitDB)(nil), // 170: weshnet.protocol.v1.SystemInfo.OrbitDB + (*SystemInfo_P2P)(nil), // 171: weshnet.protocol.v1.SystemInfo.P2P + (*SystemInfo_Process)(nil), // 172: weshnet.protocol.v1.SystemInfo.Process + (*SystemInfo_OrbitDB_ReplicationStatus)(nil), // 173: weshnet.protocol.v1.SystemInfo.OrbitDB.ReplicationStatus + (*PeerList_Request)(nil), // 174: weshnet.protocol.v1.PeerList.Request + (*PeerList_Reply)(nil), // 175: weshnet.protocol.v1.PeerList.Reply + (*PeerList_Peer)(nil), // 176: weshnet.protocol.v1.PeerList.Peer + (*PeerList_Route)(nil), // 177: weshnet.protocol.v1.PeerList.Route + (*PeerList_Stream)(nil), // 178: weshnet.protocol.v1.PeerList.Stream + (*OutOfStoreReceive_Request)(nil), // 179: weshnet.protocol.v1.OutOfStoreReceive.Request + (*OutOfStoreReceive_Reply)(nil), // 180: weshnet.protocol.v1.OutOfStoreReceive.Reply + (*OutOfStoreSeal_Request)(nil), // 181: weshnet.protocol.v1.OutOfStoreSeal.Request + (*OutOfStoreSeal_Reply)(nil), // 182: weshnet.protocol.v1.OutOfStoreSeal.Reply + (*OrbitDBMessageHeads_Box)(nil), // 183: weshnet.protocol.v1.OrbitDBMessageHeads.Box + (*RefreshContactRequest_Peer)(nil), // 184: weshnet.protocol.v1.RefreshContactRequest.Peer + (*RefreshContactRequest_Request)(nil), // 185: weshnet.protocol.v1.RefreshContactRequest.Request + (*RefreshContactRequest_Reply)(nil), // 186: weshnet.protocol.v1.RefreshContactRequest.Reply +} +var file_protocoltypes_proto_depIdxs = []int32{ + 10, // 0: weshnet.protocol.v1.Account.group:type_name -> weshnet.protocol.v1.Group + 0, // 1: weshnet.protocol.v1.Group.group_type:type_name -> weshnet.protocol.v1.GroupType + 1, // 2: weshnet.protocol.v1.GroupMetadata.event_type:type_name -> weshnet.protocol.v1.EventType + 15, // 3: weshnet.protocol.v1.GroupMetadata.protocol_metadata:type_name -> weshnet.protocol.v1.ProtocolMetadata + 94, // 4: weshnet.protocol.v1.MessageHeaders.metadata:type_name -> weshnet.protocol.v1.MessageHeaders.MetadataEntry + 15, // 5: weshnet.protocol.v1.EncryptedMessage.protocol_metadata:type_name -> weshnet.protocol.v1.ProtocolMetadata + 10, // 6: weshnet.protocol.v1.AccountGroupJoined.group:type_name -> weshnet.protocol.v1.Group + 75, // 7: weshnet.protocol.v1.AccountContactRequestOutgoingEnqueued.contact:type_name -> weshnet.protocol.v1.ShareableContact + 18, // 8: weshnet.protocol.v1.GroupMetadataEvent.event_context:type_name -> weshnet.protocol.v1.EventContext + 12, // 9: weshnet.protocol.v1.GroupMetadataEvent.metadata:type_name -> weshnet.protocol.v1.GroupMetadata + 18, // 10: weshnet.protocol.v1.GroupMessageEvent.event_context:type_name -> weshnet.protocol.v1.EventContext + 14, // 11: weshnet.protocol.v1.GroupMessageEvent.headers:type_name -> weshnet.protocol.v1.MessageHeaders + 76, // 12: weshnet.protocol.v1.ServiceToken.supported_services:type_name -> weshnet.protocol.v1.ServiceTokenSupportedService + 5, // 13: weshnet.protocol.v1.ServiceGetConfiguration.Reply.ble_enabled:type_name -> weshnet.protocol.v1.ServiceGetConfiguration.SettingState + 5, // 14: weshnet.protocol.v1.ServiceGetConfiguration.Reply.wifi_p2p_enabled:type_name -> weshnet.protocol.v1.ServiceGetConfiguration.SettingState + 5, // 15: weshnet.protocol.v1.ServiceGetConfiguration.Reply.mdns_enabled:type_name -> weshnet.protocol.v1.ServiceGetConfiguration.SettingState + 5, // 16: weshnet.protocol.v1.ServiceGetConfiguration.Reply.relay_enabled:type_name -> weshnet.protocol.v1.ServiceGetConfiguration.SettingState + 75, // 17: weshnet.protocol.v1.ContactRequestSend.Request.contact:type_name -> weshnet.protocol.v1.ShareableContact + 75, // 18: weshnet.protocol.v1.DecodeContact.Reply.contact:type_name -> weshnet.protocol.v1.ShareableContact + 10, // 19: weshnet.protocol.v1.MultiMemberGroupJoin.Request.group:type_name -> weshnet.protocol.v1.Group + 10, // 20: weshnet.protocol.v1.MultiMemberGroupInvitationCreate.Reply.group:type_name -> weshnet.protocol.v1.Group + 10, // 21: weshnet.protocol.v1.GroupInfo.Reply.group:type_name -> weshnet.protocol.v1.Group + 6, // 22: weshnet.protocol.v1.GroupDeviceStatus.Reply.type:type_name -> weshnet.protocol.v1.GroupDeviceStatus.Type + 7, // 23: weshnet.protocol.v1.GroupDeviceStatus.Reply.PeerConnected.transports:type_name -> weshnet.protocol.v1.GroupDeviceStatus.Transport + 0, // 24: weshnet.protocol.v1.DebugListGroups.Reply.group_type:type_name -> weshnet.protocol.v1.GroupType + 2, // 25: weshnet.protocol.v1.DebugInspectGroupStore.Request.log_type:type_name -> weshnet.protocol.v1.DebugInspectGroupLogType + 1, // 26: weshnet.protocol.v1.DebugInspectGroupStore.Reply.metadata_event_type:type_name -> weshnet.protocol.v1.EventType + 90, // 27: weshnet.protocol.v1.VerifiedCredentialsList.Reply.credential:type_name -> weshnet.protocol.v1.AccountVerifiedCredentialRegistered + 10, // 28: weshnet.protocol.v1.ReplicationServiceReplicateGroup.Request.group:type_name -> weshnet.protocol.v1.Group + 172, // 29: weshnet.protocol.v1.SystemInfo.Reply.process:type_name -> weshnet.protocol.v1.SystemInfo.Process + 171, // 30: weshnet.protocol.v1.SystemInfo.Reply.p2p:type_name -> weshnet.protocol.v1.SystemInfo.P2P + 170, // 31: weshnet.protocol.v1.SystemInfo.Reply.orbitdb:type_name -> weshnet.protocol.v1.SystemInfo.OrbitDB + 173, // 32: weshnet.protocol.v1.SystemInfo.OrbitDB.account_metadata:type_name -> weshnet.protocol.v1.SystemInfo.OrbitDB.ReplicationStatus + 176, // 33: weshnet.protocol.v1.PeerList.Reply.peers:type_name -> weshnet.protocol.v1.PeerList.Peer + 177, // 34: weshnet.protocol.v1.PeerList.Peer.routes:type_name -> weshnet.protocol.v1.PeerList.Route + 8, // 35: weshnet.protocol.v1.PeerList.Peer.features:type_name -> weshnet.protocol.v1.PeerList.Feature + 4, // 36: weshnet.protocol.v1.PeerList.Peer.direction:type_name -> weshnet.protocol.v1.Direction + 4, // 37: weshnet.protocol.v1.PeerList.Route.direction:type_name -> weshnet.protocol.v1.Direction + 178, // 38: weshnet.protocol.v1.PeerList.Route.streams:type_name -> weshnet.protocol.v1.PeerList.Stream + 86, // 39: weshnet.protocol.v1.OutOfStoreReceive.Reply.message:type_name -> weshnet.protocol.v1.OutOfStoreMessage + 184, // 40: weshnet.protocol.v1.RefreshContactRequest.Reply.peers_found:type_name -> weshnet.protocol.v1.RefreshContactRequest.Peer + 95, // 41: weshnet.protocol.v1.ProtocolService.ServiceExportData:input_type -> weshnet.protocol.v1.ServiceExportData.Request + 97, // 42: weshnet.protocol.v1.ProtocolService.ServiceGetConfiguration:input_type -> weshnet.protocol.v1.ServiceGetConfiguration.Request + 99, // 43: weshnet.protocol.v1.ProtocolService.ContactRequestReference:input_type -> weshnet.protocol.v1.ContactRequestReference.Request + 101, // 44: weshnet.protocol.v1.ProtocolService.ContactRequestDisable:input_type -> weshnet.protocol.v1.ContactRequestDisable.Request + 103, // 45: weshnet.protocol.v1.ProtocolService.ContactRequestEnable:input_type -> weshnet.protocol.v1.ContactRequestEnable.Request + 105, // 46: weshnet.protocol.v1.ProtocolService.ContactRequestResetReference:input_type -> weshnet.protocol.v1.ContactRequestResetReference.Request + 107, // 47: weshnet.protocol.v1.ProtocolService.ContactRequestSend:input_type -> weshnet.protocol.v1.ContactRequestSend.Request + 109, // 48: weshnet.protocol.v1.ProtocolService.ContactRequestAccept:input_type -> weshnet.protocol.v1.ContactRequestAccept.Request + 111, // 49: weshnet.protocol.v1.ProtocolService.ContactRequestDiscard:input_type -> weshnet.protocol.v1.ContactRequestDiscard.Request + 113, // 50: weshnet.protocol.v1.ProtocolService.ShareContact:input_type -> weshnet.protocol.v1.ShareContact.Request + 115, // 51: weshnet.protocol.v1.ProtocolService.DecodeContact:input_type -> weshnet.protocol.v1.DecodeContact.Request + 117, // 52: weshnet.protocol.v1.ProtocolService.ContactBlock:input_type -> weshnet.protocol.v1.ContactBlock.Request + 119, // 53: weshnet.protocol.v1.ProtocolService.ContactUnblock:input_type -> weshnet.protocol.v1.ContactUnblock.Request + 121, // 54: weshnet.protocol.v1.ProtocolService.ContactAliasKeySend:input_type -> weshnet.protocol.v1.ContactAliasKeySend.Request + 123, // 55: weshnet.protocol.v1.ProtocolService.MultiMemberGroupCreate:input_type -> weshnet.protocol.v1.MultiMemberGroupCreate.Request + 125, // 56: weshnet.protocol.v1.ProtocolService.MultiMemberGroupJoin:input_type -> weshnet.protocol.v1.MultiMemberGroupJoin.Request + 127, // 57: weshnet.protocol.v1.ProtocolService.MultiMemberGroupLeave:input_type -> weshnet.protocol.v1.MultiMemberGroupLeave.Request + 129, // 58: weshnet.protocol.v1.ProtocolService.MultiMemberGroupAliasResolverDisclose:input_type -> weshnet.protocol.v1.MultiMemberGroupAliasResolverDisclose.Request + 131, // 59: weshnet.protocol.v1.ProtocolService.MultiMemberGroupAdminRoleGrant:input_type -> weshnet.protocol.v1.MultiMemberGroupAdminRoleGrant.Request + 133, // 60: weshnet.protocol.v1.ProtocolService.MultiMemberGroupInvitationCreate:input_type -> weshnet.protocol.v1.MultiMemberGroupInvitationCreate.Request + 135, // 61: weshnet.protocol.v1.ProtocolService.AppMetadataSend:input_type -> weshnet.protocol.v1.AppMetadataSend.Request + 137, // 62: weshnet.protocol.v1.ProtocolService.AppMessageSend:input_type -> weshnet.protocol.v1.AppMessageSend.Request + 139, // 63: weshnet.protocol.v1.ProtocolService.GroupMetadataList:input_type -> weshnet.protocol.v1.GroupMetadataList.Request + 140, // 64: weshnet.protocol.v1.ProtocolService.GroupMessageList:input_type -> weshnet.protocol.v1.GroupMessageList.Request + 141, // 65: weshnet.protocol.v1.ProtocolService.GroupInfo:input_type -> weshnet.protocol.v1.GroupInfo.Request + 143, // 66: weshnet.protocol.v1.ProtocolService.ActivateGroup:input_type -> weshnet.protocol.v1.ActivateGroup.Request + 145, // 67: weshnet.protocol.v1.ProtocolService.DeactivateGroup:input_type -> weshnet.protocol.v1.DeactivateGroup.Request + 147, // 68: weshnet.protocol.v1.ProtocolService.GroupDeviceStatus:input_type -> weshnet.protocol.v1.GroupDeviceStatus.Request + 152, // 69: weshnet.protocol.v1.ProtocolService.DebugListGroups:input_type -> weshnet.protocol.v1.DebugListGroups.Request + 154, // 70: weshnet.protocol.v1.ProtocolService.DebugInspectGroupStore:input_type -> weshnet.protocol.v1.DebugInspectGroupStore.Request + 156, // 71: weshnet.protocol.v1.ProtocolService.DebugGroup:input_type -> weshnet.protocol.v1.DebugGroup.Request + 168, // 72: weshnet.protocol.v1.ProtocolService.SystemInfo:input_type -> weshnet.protocol.v1.SystemInfo.Request + 158, // 73: weshnet.protocol.v1.ProtocolService.CredentialVerificationServiceInitFlow:input_type -> weshnet.protocol.v1.CredentialVerificationServiceInitFlow.Request + 160, // 74: weshnet.protocol.v1.ProtocolService.CredentialVerificationServiceCompleteFlow:input_type -> weshnet.protocol.v1.CredentialVerificationServiceCompleteFlow.Request + 162, // 75: weshnet.protocol.v1.ProtocolService.VerifiedCredentialsList:input_type -> weshnet.protocol.v1.VerifiedCredentialsList.Request + 164, // 76: weshnet.protocol.v1.ProtocolService.ReplicationServiceRegisterGroup:input_type -> weshnet.protocol.v1.ReplicationServiceRegisterGroup.Request + 174, // 77: weshnet.protocol.v1.ProtocolService.PeerList:input_type -> weshnet.protocol.v1.PeerList.Request + 179, // 78: weshnet.protocol.v1.ProtocolService.OutOfStoreReceive:input_type -> weshnet.protocol.v1.OutOfStoreReceive.Request + 181, // 79: weshnet.protocol.v1.ProtocolService.OutOfStoreSeal:input_type -> weshnet.protocol.v1.OutOfStoreSeal.Request + 185, // 80: weshnet.protocol.v1.ProtocolService.RefreshContactRequest:input_type -> weshnet.protocol.v1.RefreshContactRequest.Request + 96, // 81: weshnet.protocol.v1.ProtocolService.ServiceExportData:output_type -> weshnet.protocol.v1.ServiceExportData.Reply + 98, // 82: weshnet.protocol.v1.ProtocolService.ServiceGetConfiguration:output_type -> weshnet.protocol.v1.ServiceGetConfiguration.Reply + 100, // 83: weshnet.protocol.v1.ProtocolService.ContactRequestReference:output_type -> weshnet.protocol.v1.ContactRequestReference.Reply + 102, // 84: weshnet.protocol.v1.ProtocolService.ContactRequestDisable:output_type -> weshnet.protocol.v1.ContactRequestDisable.Reply + 104, // 85: weshnet.protocol.v1.ProtocolService.ContactRequestEnable:output_type -> weshnet.protocol.v1.ContactRequestEnable.Reply + 106, // 86: weshnet.protocol.v1.ProtocolService.ContactRequestResetReference:output_type -> weshnet.protocol.v1.ContactRequestResetReference.Reply + 108, // 87: weshnet.protocol.v1.ProtocolService.ContactRequestSend:output_type -> weshnet.protocol.v1.ContactRequestSend.Reply + 110, // 88: weshnet.protocol.v1.ProtocolService.ContactRequestAccept:output_type -> weshnet.protocol.v1.ContactRequestAccept.Reply + 112, // 89: weshnet.protocol.v1.ProtocolService.ContactRequestDiscard:output_type -> weshnet.protocol.v1.ContactRequestDiscard.Reply + 114, // 90: weshnet.protocol.v1.ProtocolService.ShareContact:output_type -> weshnet.protocol.v1.ShareContact.Reply + 116, // 91: weshnet.protocol.v1.ProtocolService.DecodeContact:output_type -> weshnet.protocol.v1.DecodeContact.Reply + 118, // 92: weshnet.protocol.v1.ProtocolService.ContactBlock:output_type -> weshnet.protocol.v1.ContactBlock.Reply + 120, // 93: weshnet.protocol.v1.ProtocolService.ContactUnblock:output_type -> weshnet.protocol.v1.ContactUnblock.Reply + 122, // 94: weshnet.protocol.v1.ProtocolService.ContactAliasKeySend:output_type -> weshnet.protocol.v1.ContactAliasKeySend.Reply + 124, // 95: weshnet.protocol.v1.ProtocolService.MultiMemberGroupCreate:output_type -> weshnet.protocol.v1.MultiMemberGroupCreate.Reply + 126, // 96: weshnet.protocol.v1.ProtocolService.MultiMemberGroupJoin:output_type -> weshnet.protocol.v1.MultiMemberGroupJoin.Reply + 128, // 97: weshnet.protocol.v1.ProtocolService.MultiMemberGroupLeave:output_type -> weshnet.protocol.v1.MultiMemberGroupLeave.Reply + 130, // 98: weshnet.protocol.v1.ProtocolService.MultiMemberGroupAliasResolverDisclose:output_type -> weshnet.protocol.v1.MultiMemberGroupAliasResolverDisclose.Reply + 132, // 99: weshnet.protocol.v1.ProtocolService.MultiMemberGroupAdminRoleGrant:output_type -> weshnet.protocol.v1.MultiMemberGroupAdminRoleGrant.Reply + 134, // 100: weshnet.protocol.v1.ProtocolService.MultiMemberGroupInvitationCreate:output_type -> weshnet.protocol.v1.MultiMemberGroupInvitationCreate.Reply + 136, // 101: weshnet.protocol.v1.ProtocolService.AppMetadataSend:output_type -> weshnet.protocol.v1.AppMetadataSend.Reply + 138, // 102: weshnet.protocol.v1.ProtocolService.AppMessageSend:output_type -> weshnet.protocol.v1.AppMessageSend.Reply + 64, // 103: weshnet.protocol.v1.ProtocolService.GroupMetadataList:output_type -> weshnet.protocol.v1.GroupMetadataEvent + 65, // 104: weshnet.protocol.v1.ProtocolService.GroupMessageList:output_type -> weshnet.protocol.v1.GroupMessageEvent + 142, // 105: weshnet.protocol.v1.ProtocolService.GroupInfo:output_type -> weshnet.protocol.v1.GroupInfo.Reply + 144, // 106: weshnet.protocol.v1.ProtocolService.ActivateGroup:output_type -> weshnet.protocol.v1.ActivateGroup.Reply + 146, // 107: weshnet.protocol.v1.ProtocolService.DeactivateGroup:output_type -> weshnet.protocol.v1.DeactivateGroup.Reply + 148, // 108: weshnet.protocol.v1.ProtocolService.GroupDeviceStatus:output_type -> weshnet.protocol.v1.GroupDeviceStatus.Reply + 153, // 109: weshnet.protocol.v1.ProtocolService.DebugListGroups:output_type -> weshnet.protocol.v1.DebugListGroups.Reply + 155, // 110: weshnet.protocol.v1.ProtocolService.DebugInspectGroupStore:output_type -> weshnet.protocol.v1.DebugInspectGroupStore.Reply + 157, // 111: weshnet.protocol.v1.ProtocolService.DebugGroup:output_type -> weshnet.protocol.v1.DebugGroup.Reply + 169, // 112: weshnet.protocol.v1.ProtocolService.SystemInfo:output_type -> weshnet.protocol.v1.SystemInfo.Reply + 159, // 113: weshnet.protocol.v1.ProtocolService.CredentialVerificationServiceInitFlow:output_type -> weshnet.protocol.v1.CredentialVerificationServiceInitFlow.Reply + 161, // 114: weshnet.protocol.v1.ProtocolService.CredentialVerificationServiceCompleteFlow:output_type -> weshnet.protocol.v1.CredentialVerificationServiceCompleteFlow.Reply + 163, // 115: weshnet.protocol.v1.ProtocolService.VerifiedCredentialsList:output_type -> weshnet.protocol.v1.VerifiedCredentialsList.Reply + 165, // 116: weshnet.protocol.v1.ProtocolService.ReplicationServiceRegisterGroup:output_type -> weshnet.protocol.v1.ReplicationServiceRegisterGroup.Reply + 175, // 117: weshnet.protocol.v1.ProtocolService.PeerList:output_type -> weshnet.protocol.v1.PeerList.Reply + 180, // 118: weshnet.protocol.v1.ProtocolService.OutOfStoreReceive:output_type -> weshnet.protocol.v1.OutOfStoreReceive.Reply + 182, // 119: weshnet.protocol.v1.ProtocolService.OutOfStoreSeal:output_type -> weshnet.protocol.v1.OutOfStoreSeal.Reply + 186, // 120: weshnet.protocol.v1.ProtocolService.RefreshContactRequest:output_type -> weshnet.protocol.v1.RefreshContactRequest.Reply + 81, // [81:121] is the sub-list for method output_type + 41, // [41:81] is the sub-list for method input_type + 41, // [41:41] is the sub-list for extension type_name + 41, // [41:41] is the sub-list for extension extendee + 0, // [0:41] is the sub-list for field type_name +} + +func init() { file_protocoltypes_proto_init() } +func file_protocoltypes_proto_init() { + if File_protocoltypes_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_protocoltypes_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Account); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Group); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GroupHeadsExport); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GroupMetadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GroupEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MessageHeaders); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProtocolMetadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EncryptedMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MessageEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventContext); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GroupMetadataPayloadSent); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContactAliasKeyAdded); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GroupMemberDeviceAdded); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeviceChainKey); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GroupDeviceChainKeyAdded); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MultiMemberGroupAliasResolverAdded); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MultiMemberGroupAdminRoleGranted); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MultiMemberGroupInitialMemberAnnounced); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GroupAddAdditionalRendezvousSeed); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GroupRemoveAdditionalRendezvousSeed); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AccountGroupJoined); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AccountGroupLeft); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AccountContactRequestDisabled); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AccountContactRequestEnabled); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AccountContactRequestReferenceReset); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AccountContactRequestOutgoingEnqueued); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AccountContactRequestOutgoingSent); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AccountContactRequestIncomingReceived); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AccountContactRequestIncomingDiscarded); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AccountContactRequestIncomingAccepted); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AccountContactBlocked); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AccountContactUnblocked); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GroupReplicating); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServiceExportData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServiceGetConfiguration); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContactRequestReference); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContactRequestDisable); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContactRequestEnable); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContactRequestResetReference); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContactRequestSend); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContactRequestAccept); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContactRequestDiscard); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ShareContact); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DecodeContact); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContactBlock); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContactUnblock); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContactAliasKeySend); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MultiMemberGroupCreate); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MultiMemberGroupJoin); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MultiMemberGroupLeave); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MultiMemberGroupAliasResolverDisclose); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MultiMemberGroupAdminRoleGrant); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MultiMemberGroupInvitationCreate); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AppMetadataSend); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AppMessageSend); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GroupMetadataEvent); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GroupMessageEvent); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GroupMetadataList); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GroupMessageList); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GroupInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ActivateGroup); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeactivateGroup); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GroupDeviceStatus); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DebugListGroups); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DebugInspectGroupStore); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DebugGroup); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ShareableContact); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServiceTokenSupportedService); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServiceToken); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CredentialVerificationServiceInitFlow); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CredentialVerificationServiceCompleteFlow); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VerifiedCredentialsList); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReplicationServiceRegisterGroup); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[73].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReplicationServiceReplicateGroup); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[74].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SystemInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[75].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PeerList); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[76].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Progress); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[77].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OutOfStoreMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[78].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OutOfStoreMessageEnvelope); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[79].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OutOfStoreReceive); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[80].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OutOfStoreSeal); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[81].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AccountVerifiedCredentialRegistered); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[82].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FirstLastCounters); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[83].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OrbitDBMessageHeads); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[84].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RefreshContactRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[86].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServiceExportData_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[87].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServiceExportData_Reply); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[88].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServiceGetConfiguration_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[89].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServiceGetConfiguration_Reply); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[90].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContactRequestReference_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[91].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContactRequestReference_Reply); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[92].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContactRequestDisable_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[93].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContactRequestDisable_Reply); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[94].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContactRequestEnable_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[95].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContactRequestEnable_Reply); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[96].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContactRequestResetReference_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[97].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContactRequestResetReference_Reply); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[98].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContactRequestSend_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[99].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContactRequestSend_Reply); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[100].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContactRequestAccept_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[101].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContactRequestAccept_Reply); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[102].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContactRequestDiscard_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[103].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContactRequestDiscard_Reply); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[104].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ShareContact_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[105].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ShareContact_Reply); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[106].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DecodeContact_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[107].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DecodeContact_Reply); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[108].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContactBlock_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[109].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContactBlock_Reply); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[110].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContactUnblock_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[111].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContactUnblock_Reply); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[112].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContactAliasKeySend_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[113].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContactAliasKeySend_Reply); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[114].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MultiMemberGroupCreate_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[115].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MultiMemberGroupCreate_Reply); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[116].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MultiMemberGroupJoin_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[117].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MultiMemberGroupJoin_Reply); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[118].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MultiMemberGroupLeave_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[119].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MultiMemberGroupLeave_Reply); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[120].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MultiMemberGroupAliasResolverDisclose_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[121].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MultiMemberGroupAliasResolverDisclose_Reply); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[122].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MultiMemberGroupAdminRoleGrant_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[123].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MultiMemberGroupAdminRoleGrant_Reply); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[124].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MultiMemberGroupInvitationCreate_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[125].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MultiMemberGroupInvitationCreate_Reply); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[126].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AppMetadataSend_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[127].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AppMetadataSend_Reply); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[128].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AppMessageSend_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[129].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AppMessageSend_Reply); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[130].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GroupMetadataList_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[131].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GroupMessageList_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[132].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GroupInfo_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[133].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GroupInfo_Reply); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[134].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ActivateGroup_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[135].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ActivateGroup_Reply); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[136].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeactivateGroup_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[137].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeactivateGroup_Reply); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[138].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GroupDeviceStatus_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[139].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GroupDeviceStatus_Reply); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[140].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GroupDeviceStatus_Reply_PeerConnected); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[141].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GroupDeviceStatus_Reply_PeerReconnecting); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[142].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GroupDeviceStatus_Reply_PeerDisconnected); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[143].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DebugListGroups_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[144].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DebugListGroups_Reply); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[145].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DebugInspectGroupStore_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[146].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DebugInspectGroupStore_Reply); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[147].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DebugGroup_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[148].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DebugGroup_Reply); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[149].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CredentialVerificationServiceInitFlow_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[150].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CredentialVerificationServiceInitFlow_Reply); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[151].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CredentialVerificationServiceCompleteFlow_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[152].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CredentialVerificationServiceCompleteFlow_Reply); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[153].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VerifiedCredentialsList_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[154].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VerifiedCredentialsList_Reply); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[155].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReplicationServiceRegisterGroup_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[156].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReplicationServiceRegisterGroup_Reply); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[157].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReplicationServiceReplicateGroup_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[158].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReplicationServiceReplicateGroup_Reply); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[159].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SystemInfo_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[160].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SystemInfo_Reply); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[161].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SystemInfo_OrbitDB); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[162].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SystemInfo_P2P); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[163].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SystemInfo_Process); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[164].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SystemInfo_OrbitDB_ReplicationStatus); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[165].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PeerList_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[166].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PeerList_Reply); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[167].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PeerList_Peer); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[168].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PeerList_Route); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[169].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PeerList_Stream); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[170].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OutOfStoreReceive_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[171].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OutOfStoreReceive_Reply); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[172].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OutOfStoreSeal_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[173].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OutOfStoreSeal_Reply); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[174].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OrbitDBMessageHeads_Box); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[175].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RefreshContactRequest_Peer); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[176].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RefreshContactRequest_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_protocoltypes_proto_msgTypes[177].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RefreshContactRequest_Reply); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_protocoltypes_proto_rawDesc, + NumEnums: 9, + NumMessages: 178, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_protocoltypes_proto_goTypes, + DependencyIndexes: file_protocoltypes_proto_depIdxs, + EnumInfos: file_protocoltypes_proto_enumTypes, + MessageInfos: file_protocoltypes_proto_msgTypes, + }.Build() + File_protocoltypes_proto = out.File + file_protocoltypes_proto_rawDesc = nil + file_protocoltypes_proto_goTypes = nil + file_protocoltypes_proto_depIdxs = nil } - -func (m *ShareContact) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ShareContact) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *ShareContact_Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ShareContact_Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ShareContact_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *ShareContact_Reply) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ShareContact_Reply) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ShareContact_Reply) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.EncodedContact) > 0 { - i -= len(m.EncodedContact) - copy(dAtA[i:], m.EncodedContact) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.EncodedContact))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DecodeContact) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DecodeContact) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DecodeContact) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *DecodeContact_Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DecodeContact_Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DecodeContact_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.EncodedContact) > 0 { - i -= len(m.EncodedContact) - copy(dAtA[i:], m.EncodedContact) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.EncodedContact))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DecodeContact_Reply) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DecodeContact_Reply) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DecodeContact_Reply) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Contact != nil { - { - size, err := m.Contact.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintProtocoltypes(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ContactBlock) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ContactBlock) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ContactBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *ContactBlock_Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ContactBlock_Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ContactBlock_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.ContactPK) > 0 { - i -= len(m.ContactPK) - copy(dAtA[i:], m.ContactPK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.ContactPK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ContactBlock_Reply) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ContactBlock_Reply) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ContactBlock_Reply) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *ContactUnblock) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ContactUnblock) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ContactUnblock) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *ContactUnblock_Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ContactUnblock_Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ContactUnblock_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.ContactPK) > 0 { - i -= len(m.ContactPK) - copy(dAtA[i:], m.ContactPK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.ContactPK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ContactUnblock_Reply) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ContactUnblock_Reply) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ContactUnblock_Reply) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *ContactAliasKeySend) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ContactAliasKeySend) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ContactAliasKeySend) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *ContactAliasKeySend_Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ContactAliasKeySend_Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ContactAliasKeySend_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.GroupPK) > 0 { - i -= len(m.GroupPK) - copy(dAtA[i:], m.GroupPK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.GroupPK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ContactAliasKeySend_Reply) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ContactAliasKeySend_Reply) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ContactAliasKeySend_Reply) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *MultiMemberGroupCreate) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MultiMemberGroupCreate) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MultiMemberGroupCreate) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *MultiMemberGroupCreate_Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MultiMemberGroupCreate_Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MultiMemberGroupCreate_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *MultiMemberGroupCreate_Reply) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MultiMemberGroupCreate_Reply) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MultiMemberGroupCreate_Reply) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.GroupPK) > 0 { - i -= len(m.GroupPK) - copy(dAtA[i:], m.GroupPK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.GroupPK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MultiMemberGroupJoin) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MultiMemberGroupJoin) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MultiMemberGroupJoin) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *MultiMemberGroupJoin_Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MultiMemberGroupJoin_Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MultiMemberGroupJoin_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Group != nil { - { - size, err := m.Group.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintProtocoltypes(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MultiMemberGroupJoin_Reply) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MultiMemberGroupJoin_Reply) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MultiMemberGroupJoin_Reply) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *MultiMemberGroupLeave) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MultiMemberGroupLeave) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MultiMemberGroupLeave) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *MultiMemberGroupLeave_Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MultiMemberGroupLeave_Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MultiMemberGroupLeave_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.GroupPK) > 0 { - i -= len(m.GroupPK) - copy(dAtA[i:], m.GroupPK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.GroupPK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MultiMemberGroupLeave_Reply) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MultiMemberGroupLeave_Reply) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MultiMemberGroupLeave_Reply) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *MultiMemberGroupAliasResolverDisclose) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MultiMemberGroupAliasResolverDisclose) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MultiMemberGroupAliasResolverDisclose) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *MultiMemberGroupAliasResolverDisclose_Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MultiMemberGroupAliasResolverDisclose_Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MultiMemberGroupAliasResolverDisclose_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.GroupPK) > 0 { - i -= len(m.GroupPK) - copy(dAtA[i:], m.GroupPK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.GroupPK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MultiMemberGroupAliasResolverDisclose_Reply) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MultiMemberGroupAliasResolverDisclose_Reply) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MultiMemberGroupAliasResolverDisclose_Reply) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *MultiMemberGroupAdminRoleGrant) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MultiMemberGroupAdminRoleGrant) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MultiMemberGroupAdminRoleGrant) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *MultiMemberGroupAdminRoleGrant_Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MultiMemberGroupAdminRoleGrant_Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MultiMemberGroupAdminRoleGrant_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.MemberPK) > 0 { - i -= len(m.MemberPK) - copy(dAtA[i:], m.MemberPK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.MemberPK))) - i-- - dAtA[i] = 0x12 - } - if len(m.GroupPK) > 0 { - i -= len(m.GroupPK) - copy(dAtA[i:], m.GroupPK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.GroupPK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MultiMemberGroupAdminRoleGrant_Reply) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MultiMemberGroupAdminRoleGrant_Reply) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MultiMemberGroupAdminRoleGrant_Reply) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *MultiMemberGroupInvitationCreate) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MultiMemberGroupInvitationCreate) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MultiMemberGroupInvitationCreate) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *MultiMemberGroupInvitationCreate_Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MultiMemberGroupInvitationCreate_Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MultiMemberGroupInvitationCreate_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.GroupPK) > 0 { - i -= len(m.GroupPK) - copy(dAtA[i:], m.GroupPK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.GroupPK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MultiMemberGroupInvitationCreate_Reply) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MultiMemberGroupInvitationCreate_Reply) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MultiMemberGroupInvitationCreate_Reply) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Group != nil { - { - size, err := m.Group.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintProtocoltypes(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *AppMetadataSend) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AppMetadataSend) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AppMetadataSend) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *AppMetadataSend_Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AppMetadataSend_Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AppMetadataSend_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Payload) > 0 { - i -= len(m.Payload) - copy(dAtA[i:], m.Payload) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.Payload))) - i-- - dAtA[i] = 0x12 - } - if len(m.GroupPK) > 0 { - i -= len(m.GroupPK) - copy(dAtA[i:], m.GroupPK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.GroupPK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *AppMetadataSend_Reply) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AppMetadataSend_Reply) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AppMetadataSend_Reply) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.CID) > 0 { - i -= len(m.CID) - copy(dAtA[i:], m.CID) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.CID))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *AppMessageSend) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AppMessageSend) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AppMessageSend) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *AppMessageSend_Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AppMessageSend_Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AppMessageSend_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Payload) > 0 { - i -= len(m.Payload) - copy(dAtA[i:], m.Payload) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.Payload))) - i-- - dAtA[i] = 0x12 - } - if len(m.GroupPK) > 0 { - i -= len(m.GroupPK) - copy(dAtA[i:], m.GroupPK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.GroupPK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *AppMessageSend_Reply) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AppMessageSend_Reply) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AppMessageSend_Reply) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.CID) > 0 { - i -= len(m.CID) - copy(dAtA[i:], m.CID) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.CID))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *GroupMetadataEvent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GroupMetadataEvent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GroupMetadataEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Event) > 0 { - i -= len(m.Event) - copy(dAtA[i:], m.Event) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.Event))) - i-- - dAtA[i] = 0x1a - } - if m.Metadata != nil { - { - size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintProtocoltypes(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.EventContext != nil { - { - size, err := m.EventContext.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintProtocoltypes(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *GroupMessageEvent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GroupMessageEvent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GroupMessageEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Message) > 0 { - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x1a - } - if m.Headers != nil { - { - size, err := m.Headers.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintProtocoltypes(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.EventContext != nil { - { - size, err := m.EventContext.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintProtocoltypes(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *GroupMetadataList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GroupMetadataList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GroupMetadataList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *GroupMetadataList_Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GroupMetadataList_Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GroupMetadataList_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ReverseOrder { - i-- - if m.ReverseOrder { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x30 - } - if m.UntilNow { - i-- - if m.UntilNow { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x28 - } - if len(m.UntilID) > 0 { - i -= len(m.UntilID) - copy(dAtA[i:], m.UntilID) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.UntilID))) - i-- - dAtA[i] = 0x22 - } - if m.SinceNow { - i-- - if m.SinceNow { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if len(m.SinceID) > 0 { - i -= len(m.SinceID) - copy(dAtA[i:], m.SinceID) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.SinceID))) - i-- - dAtA[i] = 0x12 - } - if len(m.GroupPK) > 0 { - i -= len(m.GroupPK) - copy(dAtA[i:], m.GroupPK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.GroupPK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *GroupMessageList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GroupMessageList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GroupMessageList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *GroupMessageList_Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GroupMessageList_Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GroupMessageList_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ReverseOrder { - i-- - if m.ReverseOrder { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x30 - } - if m.UntilNow { - i-- - if m.UntilNow { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x28 - } - if len(m.UntilID) > 0 { - i -= len(m.UntilID) - copy(dAtA[i:], m.UntilID) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.UntilID))) - i-- - dAtA[i] = 0x22 - } - if m.SinceNow { - i-- - if m.SinceNow { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if len(m.SinceID) > 0 { - i -= len(m.SinceID) - copy(dAtA[i:], m.SinceID) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.SinceID))) - i-- - dAtA[i] = 0x12 - } - if len(m.GroupPK) > 0 { - i -= len(m.GroupPK) - copy(dAtA[i:], m.GroupPK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.GroupPK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *GroupInfo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GroupInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GroupInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *GroupInfo_Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GroupInfo_Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GroupInfo_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.ContactPK) > 0 { - i -= len(m.ContactPK) - copy(dAtA[i:], m.ContactPK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.ContactPK))) - i-- - dAtA[i] = 0x12 - } - if len(m.GroupPK) > 0 { - i -= len(m.GroupPK) - copy(dAtA[i:], m.GroupPK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.GroupPK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *GroupInfo_Reply) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GroupInfo_Reply) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GroupInfo_Reply) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.DevicePK) > 0 { - i -= len(m.DevicePK) - copy(dAtA[i:], m.DevicePK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.DevicePK))) - i-- - dAtA[i] = 0x1a - } - if len(m.MemberPK) > 0 { - i -= len(m.MemberPK) - copy(dAtA[i:], m.MemberPK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.MemberPK))) - i-- - dAtA[i] = 0x12 - } - if m.Group != nil { - { - size, err := m.Group.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintProtocoltypes(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ActivateGroup) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ActivateGroup) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ActivateGroup) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *ActivateGroup_Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ActivateGroup_Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ActivateGroup_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.LocalOnly { - i-- - if m.LocalOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } - if len(m.GroupPK) > 0 { - i -= len(m.GroupPK) - copy(dAtA[i:], m.GroupPK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.GroupPK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ActivateGroup_Reply) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ActivateGroup_Reply) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ActivateGroup_Reply) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *DeactivateGroup) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeactivateGroup) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeactivateGroup) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *DeactivateGroup_Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeactivateGroup_Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeactivateGroup_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.GroupPK) > 0 { - i -= len(m.GroupPK) - copy(dAtA[i:], m.GroupPK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.GroupPK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DeactivateGroup_Reply) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeactivateGroup_Reply) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeactivateGroup_Reply) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *GroupDeviceStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GroupDeviceStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GroupDeviceStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *GroupDeviceStatus_Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GroupDeviceStatus_Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GroupDeviceStatus_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.GroupPK) > 0 { - i -= len(m.GroupPK) - copy(dAtA[i:], m.GroupPK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.GroupPK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *GroupDeviceStatus_Reply) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GroupDeviceStatus_Reply) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GroupDeviceStatus_Reply) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Event) > 0 { - i -= len(m.Event) - copy(dAtA[i:], m.Event) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.Event))) - i-- - dAtA[i] = 0x12 - } - if m.Type != 0 { - i = encodeVarintProtocoltypes(dAtA, i, uint64(m.Type)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *GroupDeviceStatus_Reply_PeerConnected) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GroupDeviceStatus_Reply_PeerConnected) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GroupDeviceStatus_Reply_PeerConnected) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Maddrs) > 0 { - for iNdEx := len(m.Maddrs) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Maddrs[iNdEx]) - copy(dAtA[i:], m.Maddrs[iNdEx]) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.Maddrs[iNdEx]))) - i-- - dAtA[i] = 0x22 - } - } - if len(m.Transports) > 0 { - dAtA16 := make([]byte, len(m.Transports)*10) - var j15 int - for _, num := range m.Transports { - for num >= 1<<7 { - dAtA16[j15] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j15++ - } - dAtA16[j15] = uint8(num) - j15++ - } - i -= j15 - copy(dAtA[i:], dAtA16[:j15]) - i = encodeVarintProtocoltypes(dAtA, i, uint64(j15)) - i-- - dAtA[i] = 0x1a - } - if len(m.DevicePK) > 0 { - i -= len(m.DevicePK) - copy(dAtA[i:], m.DevicePK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.DevicePK))) - i-- - dAtA[i] = 0x12 - } - if len(m.PeerID) > 0 { - i -= len(m.PeerID) - copy(dAtA[i:], m.PeerID) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.PeerID))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *GroupDeviceStatus_Reply_PeerReconnecting) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GroupDeviceStatus_Reply_PeerReconnecting) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GroupDeviceStatus_Reply_PeerReconnecting) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.PeerID) > 0 { - i -= len(m.PeerID) - copy(dAtA[i:], m.PeerID) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.PeerID))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *GroupDeviceStatus_Reply_PeerDisconnected) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *GroupDeviceStatus_Reply_PeerDisconnected) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *GroupDeviceStatus_Reply_PeerDisconnected) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.PeerID) > 0 { - i -= len(m.PeerID) - copy(dAtA[i:], m.PeerID) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.PeerID))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DebugListGroups) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DebugListGroups) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DebugListGroups) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *DebugListGroups_Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DebugListGroups_Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DebugListGroups_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *DebugListGroups_Reply) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DebugListGroups_Reply) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DebugListGroups_Reply) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.ContactPK) > 0 { - i -= len(m.ContactPK) - copy(dAtA[i:], m.ContactPK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.ContactPK))) - i-- - dAtA[i] = 0x1a - } - if m.GroupType != 0 { - i = encodeVarintProtocoltypes(dAtA, i, uint64(m.GroupType)) - i-- - dAtA[i] = 0x10 - } - if len(m.GroupPK) > 0 { - i -= len(m.GroupPK) - copy(dAtA[i:], m.GroupPK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.GroupPK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DebugInspectGroupStore) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DebugInspectGroupStore) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DebugInspectGroupStore) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *DebugInspectGroupStore_Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DebugInspectGroupStore_Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DebugInspectGroupStore_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.LogType != 0 { - i = encodeVarintProtocoltypes(dAtA, i, uint64(m.LogType)) - i-- - dAtA[i] = 0x10 - } - if len(m.GroupPK) > 0 { - i -= len(m.GroupPK) - copy(dAtA[i:], m.GroupPK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.GroupPK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DebugInspectGroupStore_Reply) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DebugInspectGroupStore_Reply) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DebugInspectGroupStore_Reply) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Payload) > 0 { - i -= len(m.Payload) - copy(dAtA[i:], m.Payload) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.Payload))) - i-- - dAtA[i] = 0x32 - } - if len(m.DevicePK) > 0 { - i -= len(m.DevicePK) - copy(dAtA[i:], m.DevicePK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.DevicePK))) - i-- - dAtA[i] = 0x22 - } - if m.MetadataEventType != 0 { - i = encodeVarintProtocoltypes(dAtA, i, uint64(m.MetadataEventType)) - i-- - dAtA[i] = 0x18 - } - if len(m.ParentCIDs) > 0 { - for iNdEx := len(m.ParentCIDs) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.ParentCIDs[iNdEx]) - copy(dAtA[i:], m.ParentCIDs[iNdEx]) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.ParentCIDs[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(m.CID) > 0 { - i -= len(m.CID) - copy(dAtA[i:], m.CID) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.CID))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DebugGroup) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DebugGroup) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DebugGroup) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *DebugGroup_Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DebugGroup_Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DebugGroup_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.GroupPK) > 0 { - i -= len(m.GroupPK) - copy(dAtA[i:], m.GroupPK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.GroupPK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DebugGroup_Reply) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DebugGroup_Reply) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DebugGroup_Reply) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.PeerIDs) > 0 { - for iNdEx := len(m.PeerIDs) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.PeerIDs[iNdEx]) - copy(dAtA[i:], m.PeerIDs[iNdEx]) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.PeerIDs[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *ShareableContact) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ShareableContact) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ShareableContact) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Metadata) > 0 { - i -= len(m.Metadata) - copy(dAtA[i:], m.Metadata) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.Metadata))) - i-- - dAtA[i] = 0x1a - } - if len(m.PublicRendezvousSeed) > 0 { - i -= len(m.PublicRendezvousSeed) - copy(dAtA[i:], m.PublicRendezvousSeed) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.PublicRendezvousSeed))) - i-- - dAtA[i] = 0x12 - } - if len(m.PK) > 0 { - i -= len(m.PK) - copy(dAtA[i:], m.PK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.PK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ServiceTokenSupportedService) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ServiceTokenSupportedService) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ServiceTokenSupportedService) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.ServiceEndpoint) > 0 { - i -= len(m.ServiceEndpoint) - copy(dAtA[i:], m.ServiceEndpoint) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.ServiceEndpoint))) - i-- - dAtA[i] = 0x12 - } - if len(m.ServiceType) > 0 { - i -= len(m.ServiceType) - copy(dAtA[i:], m.ServiceType) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.ServiceType))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ServiceToken) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ServiceToken) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ServiceToken) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Expiration != 0 { - i = encodeVarintProtocoltypes(dAtA, i, uint64(m.Expiration)) - i-- - dAtA[i] = 0x20 - } - if len(m.SupportedServices) > 0 { - for iNdEx := len(m.SupportedServices) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.SupportedServices[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintProtocoltypes(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if len(m.AuthenticationURL) > 0 { - i -= len(m.AuthenticationURL) - copy(dAtA[i:], m.AuthenticationURL) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.AuthenticationURL))) - i-- - dAtA[i] = 0x12 - } - if len(m.Token) > 0 { - i -= len(m.Token) - copy(dAtA[i:], m.Token) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.Token))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *CredentialVerificationServiceInitFlow) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CredentialVerificationServiceInitFlow) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CredentialVerificationServiceInitFlow) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *CredentialVerificationServiceInitFlow_Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CredentialVerificationServiceInitFlow_Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CredentialVerificationServiceInitFlow_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Link) > 0 { - i -= len(m.Link) - copy(dAtA[i:], m.Link) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.Link))) - i-- - dAtA[i] = 0x1a - } - if len(m.PublicKey) > 0 { - i -= len(m.PublicKey) - copy(dAtA[i:], m.PublicKey) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.PublicKey))) - i-- - dAtA[i] = 0x12 - } - if len(m.ServiceURL) > 0 { - i -= len(m.ServiceURL) - copy(dAtA[i:], m.ServiceURL) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.ServiceURL))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *CredentialVerificationServiceInitFlow_Reply) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CredentialVerificationServiceInitFlow_Reply) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CredentialVerificationServiceInitFlow_Reply) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.SecureURL { - i-- - if m.SecureURL { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } - if len(m.URL) > 0 { - i -= len(m.URL) - copy(dAtA[i:], m.URL) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.URL))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *CredentialVerificationServiceCompleteFlow) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CredentialVerificationServiceCompleteFlow) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CredentialVerificationServiceCompleteFlow) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *CredentialVerificationServiceCompleteFlow_Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CredentialVerificationServiceCompleteFlow_Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CredentialVerificationServiceCompleteFlow_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.CallbackURI) > 0 { - i -= len(m.CallbackURI) - copy(dAtA[i:], m.CallbackURI) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.CallbackURI))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *CredentialVerificationServiceCompleteFlow_Reply) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CredentialVerificationServiceCompleteFlow_Reply) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CredentialVerificationServiceCompleteFlow_Reply) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Identifier) > 0 { - i -= len(m.Identifier) - copy(dAtA[i:], m.Identifier) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.Identifier))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *VerifiedCredentialsList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VerifiedCredentialsList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VerifiedCredentialsList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *VerifiedCredentialsList_Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VerifiedCredentialsList_Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VerifiedCredentialsList_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ExcludeExpired { - i-- - if m.ExcludeExpired { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if len(m.FilterIssuer) > 0 { - i -= len(m.FilterIssuer) - copy(dAtA[i:], m.FilterIssuer) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.FilterIssuer))) - i-- - dAtA[i] = 0x12 - } - if len(m.FilterIdentifier) > 0 { - i -= len(m.FilterIdentifier) - copy(dAtA[i:], m.FilterIdentifier) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.FilterIdentifier))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *VerifiedCredentialsList_Reply) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VerifiedCredentialsList_Reply) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VerifiedCredentialsList_Reply) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Credential != nil { - { - size, err := m.Credential.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintProtocoltypes(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ReplicationServiceRegisterGroup) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReplicationServiceRegisterGroup) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReplicationServiceRegisterGroup) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *ReplicationServiceRegisterGroup_Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReplicationServiceRegisterGroup_Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReplicationServiceRegisterGroup_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.ReplicationServer) > 0 { - i -= len(m.ReplicationServer) - copy(dAtA[i:], m.ReplicationServer) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.ReplicationServer))) - i-- - dAtA[i] = 0x22 - } - if len(m.AuthenticationURL) > 0 { - i -= len(m.AuthenticationURL) - copy(dAtA[i:], m.AuthenticationURL) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.AuthenticationURL))) - i-- - dAtA[i] = 0x1a - } - if len(m.Token) > 0 { - i -= len(m.Token) - copy(dAtA[i:], m.Token) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.Token))) - i-- - dAtA[i] = 0x12 - } - if len(m.GroupPK) > 0 { - i -= len(m.GroupPK) - copy(dAtA[i:], m.GroupPK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.GroupPK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ReplicationServiceRegisterGroup_Reply) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReplicationServiceRegisterGroup_Reply) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReplicationServiceRegisterGroup_Reply) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *ReplicationServiceReplicateGroup) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReplicationServiceReplicateGroup) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReplicationServiceReplicateGroup) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *ReplicationServiceReplicateGroup_Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReplicationServiceReplicateGroup_Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReplicationServiceReplicateGroup_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Group != nil { - { - size, err := m.Group.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintProtocoltypes(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ReplicationServiceReplicateGroup_Reply) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReplicationServiceReplicateGroup_Reply) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReplicationServiceReplicateGroup_Reply) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.OK { - i-- - if m.OK { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *SystemInfo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SystemInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SystemInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *SystemInfo_Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SystemInfo_Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SystemInfo_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *SystemInfo_Reply) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SystemInfo_Reply) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SystemInfo_Reply) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Warns) > 0 { - for iNdEx := len(m.Warns) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Warns[iNdEx]) - copy(dAtA[i:], m.Warns[iNdEx]) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.Warns[iNdEx]))) - i-- - dAtA[i] = 0x22 - } - } - if m.OrbitDB != nil { - { - size, err := m.OrbitDB.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintProtocoltypes(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.P2P != nil { - { - size, err := m.P2P.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintProtocoltypes(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Process != nil { - { - size, err := m.Process.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintProtocoltypes(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *SystemInfo_OrbitDB) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SystemInfo_OrbitDB) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SystemInfo_OrbitDB) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.AccountMetadata != nil { - { - size, err := m.AccountMetadata.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintProtocoltypes(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *SystemInfo_OrbitDB_ReplicationStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SystemInfo_OrbitDB_ReplicationStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SystemInfo_OrbitDB_ReplicationStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Queued != 0 { - i = encodeVarintProtocoltypes(dAtA, i, uint64(m.Queued)) - i-- - dAtA[i] = 0x20 - } - if m.Buffered != 0 { - i = encodeVarintProtocoltypes(dAtA, i, uint64(m.Buffered)) - i-- - dAtA[i] = 0x18 - } - if m.Maximum != 0 { - i = encodeVarintProtocoltypes(dAtA, i, uint64(m.Maximum)) - i-- - dAtA[i] = 0x10 - } - if m.Progress != 0 { - i = encodeVarintProtocoltypes(dAtA, i, uint64(m.Progress)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *SystemInfo_P2P) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SystemInfo_P2P) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SystemInfo_P2P) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ConnectedPeers != 0 { - i = encodeVarintProtocoltypes(dAtA, i, uint64(m.ConnectedPeers)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *SystemInfo_Process) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SystemInfo_Process) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SystemInfo_Process) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.SystemUsername) > 0 { - i -= len(m.SystemUsername) - copy(dAtA[i:], m.SystemUsername) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.SystemUsername))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xe2 - } - if len(m.WorkingDir) > 0 { - i -= len(m.WorkingDir) - copy(dAtA[i:], m.WorkingDir) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.WorkingDir))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xda - } - if m.UID != 0 { - i = encodeVarintProtocoltypes(dAtA, i, uint64(m.UID)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xd0 - } - if m.Priority != 0 { - i = encodeVarintProtocoltypes(dAtA, i, uint64(m.Priority)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xc8 - } - if m.PPID != 0 { - i = encodeVarintProtocoltypes(dAtA, i, uint64(m.PPID)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xc0 - } - if m.PID != 0 { - i = encodeVarintProtocoltypes(dAtA, i, uint64(m.PID)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xb8 - } - if m.RlimitMax != 0 { - i = encodeVarintProtocoltypes(dAtA, i, uint64(m.RlimitMax)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xb0 - } - if len(m.Arch) > 0 { - i -= len(m.Arch) - copy(dAtA[i:], m.Arch) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.Arch))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xaa - } - if len(m.HostName) > 0 { - i -= len(m.HostName) - copy(dAtA[i:], m.HostName) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.HostName))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xa2 - } - if len(m.OperatingSystem) > 0 { - i -= len(m.OperatingSystem) - copy(dAtA[i:], m.OperatingSystem) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.OperatingSystem))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x9a - } - if len(m.GoVersion) > 0 { - i -= len(m.GoVersion) - copy(dAtA[i:], m.GoVersion) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.GoVersion))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x92 - } - if m.NumCPU != 0 { - i = encodeVarintProtocoltypes(dAtA, i, uint64(m.NumCPU)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x88 - } - if m.TooManyOpenFiles { - i-- - if m.TooManyOpenFiles { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x80 - } - if m.Nofile != 0 { - i = encodeVarintProtocoltypes(dAtA, i, uint64(m.Nofile)) - i-- - dAtA[i] = 0x78 - } - if m.NumGoroutine != 0 { - i = encodeVarintProtocoltypes(dAtA, i, uint64(m.NumGoroutine)) - i-- - dAtA[i] = 0x70 - } - if m.RlimitCur != 0 { - i = encodeVarintProtocoltypes(dAtA, i, uint64(m.RlimitCur)) - i-- - dAtA[i] = 0x68 - } - if m.StartedAt != 0 { - i = encodeVarintProtocoltypes(dAtA, i, uint64(m.StartedAt)) - i-- - dAtA[i] = 0x60 - } - if m.SystemCPUTimeMS != 0 { - i = encodeVarintProtocoltypes(dAtA, i, uint64(m.SystemCPUTimeMS)) - i-- - dAtA[i] = 0x58 - } - if m.UserCPUTimeMS != 0 { - i = encodeVarintProtocoltypes(dAtA, i, uint64(m.UserCPUTimeMS)) - i-- - dAtA[i] = 0x50 - } - if m.UptimeMS != 0 { - i = encodeVarintProtocoltypes(dAtA, i, uint64(m.UptimeMS)) - i-- - dAtA[i] = 0x18 - } - if len(m.VcsRef) > 0 { - i -= len(m.VcsRef) - copy(dAtA[i:], m.VcsRef) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.VcsRef))) - i-- - dAtA[i] = 0x12 - } - if len(m.Version) > 0 { - i -= len(m.Version) - copy(dAtA[i:], m.Version) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.Version))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *PeerList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PeerList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PeerList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *PeerList_Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PeerList_Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PeerList_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *PeerList_Reply) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PeerList_Reply) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PeerList_Reply) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Peers) > 0 { - for iNdEx := len(m.Peers) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Peers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintProtocoltypes(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *PeerList_Peer) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PeerList_Peer) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PeerList_Peer) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Direction != 0 { - i = encodeVarintProtocoltypes(dAtA, i, uint64(m.Direction)) - i-- - dAtA[i] = 0x38 - } - if m.IsActive { - i-- - if m.IsActive { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x30 - } - if m.MinLatency != 0 { - i = encodeVarintProtocoltypes(dAtA, i, uint64(m.MinLatency)) - i-- - dAtA[i] = 0x28 - } - if len(m.Features) > 0 { - dAtA24 := make([]byte, len(m.Features)*10) - var j23 int - for _, num := range m.Features { - for num >= 1<<7 { - dAtA24[j23] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j23++ - } - dAtA24[j23] = uint8(num) - j23++ - } - i -= j23 - copy(dAtA[i:], dAtA24[:j23]) - i = encodeVarintProtocoltypes(dAtA, i, uint64(j23)) - i-- - dAtA[i] = 0x22 - } - if len(m.Errors) > 0 { - for iNdEx := len(m.Errors) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Errors[iNdEx]) - copy(dAtA[i:], m.Errors[iNdEx]) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.Errors[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if len(m.Routes) > 0 { - for iNdEx := len(m.Routes) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Routes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintProtocoltypes(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - if len(m.ID) > 0 { - i -= len(m.ID) - copy(dAtA[i:], m.ID) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.ID))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *PeerList_Route) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PeerList_Route) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PeerList_Route) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Streams) > 0 { - for iNdEx := len(m.Streams) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Streams[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintProtocoltypes(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - } - if m.Latency != 0 { - i = encodeVarintProtocoltypes(dAtA, i, uint64(m.Latency)) - i-- - dAtA[i] = 0x20 - } - if m.Direction != 0 { - i = encodeVarintProtocoltypes(dAtA, i, uint64(m.Direction)) - i-- - dAtA[i] = 0x18 - } - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0x12 - } - if m.IsActive { - i-- - if m.IsActive { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *PeerList_Stream) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PeerList_Stream) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PeerList_Stream) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.ID) > 0 { - i -= len(m.ID) - copy(dAtA[i:], m.ID) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.ID))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Progress) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Progress) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Progress) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Delay != 0 { - i = encodeVarintProtocoltypes(dAtA, i, uint64(m.Delay)) - i-- - dAtA[i] = 0x30 - } - if m.Total != 0 { - i = encodeVarintProtocoltypes(dAtA, i, uint64(m.Total)) - i-- - dAtA[i] = 0x28 - } - if m.Completed != 0 { - i = encodeVarintProtocoltypes(dAtA, i, uint64(m.Completed)) - i-- - dAtA[i] = 0x20 - } - if m.Progress != 0 { - i -= 4 - encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(math.Float32bits(float32(m.Progress)))) - i-- - dAtA[i] = 0x1d - } - if len(m.Doing) > 0 { - i -= len(m.Doing) - copy(dAtA[i:], m.Doing) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.Doing))) - i-- - dAtA[i] = 0x12 - } - if len(m.State) > 0 { - i -= len(m.State) - copy(dAtA[i:], m.State) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.State))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *OutOfStoreMessage) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *OutOfStoreMessage) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *OutOfStoreMessage) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Nonce) > 0 { - i -= len(m.Nonce) - copy(dAtA[i:], m.Nonce) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.Nonce))) - i-- - dAtA[i] = 0x3a - } - if len(m.EncryptedPayload) > 0 { - i -= len(m.EncryptedPayload) - copy(dAtA[i:], m.EncryptedPayload) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.EncryptedPayload))) - i-- - dAtA[i] = 0x32 - } - if m.Flags != 0 { - i -= 4 - encoding_binary.LittleEndian.PutUint32(dAtA[i:], uint32(m.Flags)) - i-- - dAtA[i] = 0x2d - } - if len(m.Sig) > 0 { - i -= len(m.Sig) - copy(dAtA[i:], m.Sig) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.Sig))) - i-- - dAtA[i] = 0x22 - } - if m.Counter != 0 { - i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(m.Counter)) - i-- - dAtA[i] = 0x19 - } - if len(m.DevicePK) > 0 { - i -= len(m.DevicePK) - copy(dAtA[i:], m.DevicePK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.DevicePK))) - i-- - dAtA[i] = 0x12 - } - if len(m.CID) > 0 { - i -= len(m.CID) - copy(dAtA[i:], m.CID) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.CID))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *OutOfStoreMessageEnvelope) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *OutOfStoreMessageEnvelope) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *OutOfStoreMessageEnvelope) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.GroupReference) > 0 { - i -= len(m.GroupReference) - copy(dAtA[i:], m.GroupReference) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.GroupReference))) - i-- - dAtA[i] = 0x1a - } - if len(m.Box) > 0 { - i -= len(m.Box) - copy(dAtA[i:], m.Box) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.Box))) - i-- - dAtA[i] = 0x12 - } - if len(m.Nonce) > 0 { - i -= len(m.Nonce) - copy(dAtA[i:], m.Nonce) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.Nonce))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *OutOfStoreReceive) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *OutOfStoreReceive) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *OutOfStoreReceive) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *OutOfStoreReceive_Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *OutOfStoreReceive_Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *OutOfStoreReceive_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Payload) > 0 { - i -= len(m.Payload) - copy(dAtA[i:], m.Payload) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.Payload))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *OutOfStoreReceive_Reply) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *OutOfStoreReceive_Reply) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *OutOfStoreReceive_Reply) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.AlreadyReceived { - i-- - if m.AlreadyReceived { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if len(m.GroupPublicKey) > 0 { - i -= len(m.GroupPublicKey) - copy(dAtA[i:], m.GroupPublicKey) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.GroupPublicKey))) - i-- - dAtA[i] = 0x1a - } - if len(m.Cleartext) > 0 { - i -= len(m.Cleartext) - copy(dAtA[i:], m.Cleartext) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.Cleartext))) - i-- - dAtA[i] = 0x12 - } - if m.Message != nil { - { - size, err := m.Message.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintProtocoltypes(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *OutOfStoreSeal) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *OutOfStoreSeal) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *OutOfStoreSeal) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *OutOfStoreSeal_Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *OutOfStoreSeal_Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *OutOfStoreSeal_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.GroupPublicKey) > 0 { - i -= len(m.GroupPublicKey) - copy(dAtA[i:], m.GroupPublicKey) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.GroupPublicKey))) - i-- - dAtA[i] = 0x12 - } - if len(m.CID) > 0 { - i -= len(m.CID) - copy(dAtA[i:], m.CID) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.CID))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *OutOfStoreSeal_Reply) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *OutOfStoreSeal_Reply) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *OutOfStoreSeal_Reply) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Encrypted) > 0 { - i -= len(m.Encrypted) - copy(dAtA[i:], m.Encrypted) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.Encrypted))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *AccountVerifiedCredentialRegistered) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AccountVerifiedCredentialRegistered) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AccountVerifiedCredentialRegistered) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Issuer) > 0 { - i -= len(m.Issuer) - copy(dAtA[i:], m.Issuer) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.Issuer))) - i-- - dAtA[i] = 0x3a - } - if len(m.Identifier) > 0 { - i -= len(m.Identifier) - copy(dAtA[i:], m.Identifier) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.Identifier))) - i-- - dAtA[i] = 0x32 - } - if m.ExpirationDate != 0 { - i = encodeVarintProtocoltypes(dAtA, i, uint64(m.ExpirationDate)) - i-- - dAtA[i] = 0x28 - } - if m.RegistrationDate != 0 { - i = encodeVarintProtocoltypes(dAtA, i, uint64(m.RegistrationDate)) - i-- - dAtA[i] = 0x20 - } - if len(m.VerifiedCredential) > 0 { - i -= len(m.VerifiedCredential) - copy(dAtA[i:], m.VerifiedCredential) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.VerifiedCredential))) - i-- - dAtA[i] = 0x1a - } - if len(m.SignedIdentityPublicKey) > 0 { - i -= len(m.SignedIdentityPublicKey) - copy(dAtA[i:], m.SignedIdentityPublicKey) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.SignedIdentityPublicKey))) - i-- - dAtA[i] = 0x12 - } - if len(m.DevicePK) > 0 { - i -= len(m.DevicePK) - copy(dAtA[i:], m.DevicePK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.DevicePK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *FirstLastCounters) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *FirstLastCounters) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *FirstLastCounters) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Last != 0 { - i = encodeVarintProtocoltypes(dAtA, i, uint64(m.Last)) - i-- - dAtA[i] = 0x10 - } - if m.First != 0 { - i = encodeVarintProtocoltypes(dAtA, i, uint64(m.First)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *OrbitDBMessageHeads) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *OrbitDBMessageHeads) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *OrbitDBMessageHeads) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.RawRotation) > 0 { - i -= len(m.RawRotation) - copy(dAtA[i:], m.RawRotation) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.RawRotation))) - i-- - dAtA[i] = 0x1a - } - if len(m.SealedBox) > 0 { - i -= len(m.SealedBox) - copy(dAtA[i:], m.SealedBox) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.SealedBox))) - i-- - dAtA[i] = 0x12 - } - return len(dAtA) - i, nil -} - -func (m *OrbitDBMessageHeads_Box) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *OrbitDBMessageHeads_Box) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *OrbitDBMessageHeads_Box) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.PeerID) > 0 { - i -= len(m.PeerID) - copy(dAtA[i:], m.PeerID) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.PeerID))) - i-- - dAtA[i] = 0x22 - } - if len(m.DevicePK) > 0 { - i -= len(m.DevicePK) - copy(dAtA[i:], m.DevicePK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.DevicePK))) - i-- - dAtA[i] = 0x1a - } - if len(m.Heads) > 0 { - i -= len(m.Heads) - copy(dAtA[i:], m.Heads) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.Heads))) - i-- - dAtA[i] = 0x12 - } - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RefreshContactRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RefreshContactRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RefreshContactRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *RefreshContactRequest_Peer) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RefreshContactRequest_Peer) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RefreshContactRequest_Peer) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Addrs) > 0 { - for iNdEx := len(m.Addrs) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Addrs[iNdEx]) - copy(dAtA[i:], m.Addrs[iNdEx]) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.Addrs[iNdEx]))) - i-- - dAtA[i] = 0x12 - } - } - if len(m.ID) > 0 { - i -= len(m.ID) - copy(dAtA[i:], m.ID) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.ID))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RefreshContactRequest_Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RefreshContactRequest_Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RefreshContactRequest_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Timeout != 0 { - i = encodeVarintProtocoltypes(dAtA, i, uint64(m.Timeout)) - i-- - dAtA[i] = 0x10 - } - if len(m.ContactPK) > 0 { - i -= len(m.ContactPK) - copy(dAtA[i:], m.ContactPK) - i = encodeVarintProtocoltypes(dAtA, i, uint64(len(m.ContactPK))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RefreshContactRequest_Reply) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RefreshContactRequest_Reply) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RefreshContactRequest_Reply) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.PeersFound) > 0 { - for iNdEx := len(m.PeersFound) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.PeersFound[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintProtocoltypes(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func encodeVarintProtocoltypes(dAtA []byte, offset int, v uint64) int { - offset -= sovProtocoltypes(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Account) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Group != nil { - l = m.Group.Size() - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.AccountPrivateKey) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.AliasPrivateKey) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.PublicRendezvousSeed) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *Group) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.PublicKey) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.Secret) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.SecretSig) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.GroupType != 0 { - n += 1 + sovProtocoltypes(uint64(m.GroupType)) - } - l = len(m.SignPub) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.LinkKey) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.LinkKeySig) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *GroupHeadsExport) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.PublicKey) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.SignPub) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if len(m.MetadataHeadsCIDs) > 0 { - for _, b := range m.MetadataHeadsCIDs { - l = len(b) - n += 1 + l + sovProtocoltypes(uint64(l)) - } - } - if len(m.MessagesHeadsCIDs) > 0 { - for _, b := range m.MessagesHeadsCIDs { - l = len(b) - n += 1 + l + sovProtocoltypes(uint64(l)) - } - } - l = len(m.LinkKey) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *GroupMetadata) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.EventType != 0 { - n += 1 + sovProtocoltypes(uint64(m.EventType)) - } - l = len(m.Payload) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.Sig) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.ProtocolMetadata != nil { - l = m.ProtocolMetadata.Size() - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *GroupEnvelope) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Nonce) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.Event) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *MessageHeaders) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Counter != 0 { - n += 1 + sovProtocoltypes(uint64(m.Counter)) - } - l = len(m.DevicePK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.Sig) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if len(m.Metadata) > 0 { - for k, v := range m.Metadata { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovProtocoltypes(uint64(len(k))) + 1 + len(v) + sovProtocoltypes(uint64(len(v))) - n += mapEntrySize + 1 + sovProtocoltypes(uint64(mapEntrySize)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ProtocolMetadata) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *EncryptedMessage) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Plaintext) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.ProtocolMetadata != nil { - l = m.ProtocolMetadata.Size() - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *MessageEnvelope) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.MessageHeaders) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.Message) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.Nonce) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *EventContext) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ID) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if len(m.ParentIDs) > 0 { - for _, b := range m.ParentIDs { - l = len(b) - n += 1 + l + sovProtocoltypes(uint64(l)) - } - } - l = len(m.GroupPK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *GroupMetadataPayloadSent) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DevicePK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.Message) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ContactAliasKeyAdded) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DevicePK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.AliasPK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *GroupMemberDeviceAdded) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.MemberPK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.DevicePK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.MemberSig) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *DeviceChainKey) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ChainKey) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.Counter != 0 { - n += 1 + sovProtocoltypes(uint64(m.Counter)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *GroupDeviceChainKeyAdded) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DevicePK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.DestMemberPK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.Payload) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *MultiMemberGroupAliasResolverAdded) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DevicePK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.AliasResolver) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.AliasProof) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *MultiMemberGroupAdminRoleGranted) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DevicePK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.GranteeMemberPK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *MultiMemberGroupInitialMemberAnnounced) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.MemberPK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *GroupAddAdditionalRendezvousSeed) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DevicePK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.Seed) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *GroupRemoveAdditionalRendezvousSeed) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DevicePK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.Seed) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *AccountGroupJoined) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DevicePK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.Group != nil { - l = m.Group.Size() - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *AccountGroupLeft) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DevicePK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.GroupPK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *AccountContactRequestDisabled) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DevicePK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *AccountContactRequestEnabled) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DevicePK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *AccountContactRequestReferenceReset) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DevicePK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.PublicRendezvousSeed) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *AccountContactRequestOutgoingEnqueued) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DevicePK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.GroupPK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.Contact != nil { - l = m.Contact.Size() - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.OwnMetadata) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *AccountContactRequestOutgoingSent) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DevicePK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.ContactPK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *AccountContactRequestIncomingReceived) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DevicePK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.ContactPK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.ContactRendezvousSeed) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.ContactMetadata) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *AccountContactRequestIncomingDiscarded) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DevicePK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.ContactPK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *AccountContactRequestIncomingAccepted) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DevicePK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.ContactPK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.GroupPK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *AccountContactBlocked) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DevicePK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.ContactPK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *AccountContactUnblocked) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DevicePK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.ContactPK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *GroupReplicating) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DevicePK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.AuthenticationURL) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.ReplicationServer) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ServiceExportData) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ServiceExportData_Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ServiceExportData_Reply) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ExportedData) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ServiceGetConfiguration) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ServiceGetConfiguration_Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ServiceGetConfiguration_Reply) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.AccountPK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.DevicePK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.AccountGroupPK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.PeerID) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if len(m.Listeners) > 0 { - for _, s := range m.Listeners { - l = len(s) - n += 1 + l + sovProtocoltypes(uint64(l)) - } - } - if m.BleEnabled != 0 { - n += 1 + sovProtocoltypes(uint64(m.BleEnabled)) - } - if m.WifiP2PEnabled != 0 { - n += 1 + sovProtocoltypes(uint64(m.WifiP2PEnabled)) - } - if m.MdnsEnabled != 0 { - n += 1 + sovProtocoltypes(uint64(m.MdnsEnabled)) - } - if m.RelayEnabled != 0 { - n += 1 + sovProtocoltypes(uint64(m.RelayEnabled)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ContactRequestReference) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ContactRequestReference_Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ContactRequestReference_Reply) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.PublicRendezvousSeed) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.Enabled { - n += 2 - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ContactRequestDisable) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ContactRequestDisable_Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ContactRequestDisable_Reply) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ContactRequestEnable) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ContactRequestEnable_Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ContactRequestEnable_Reply) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.PublicRendezvousSeed) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ContactRequestResetReference) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ContactRequestResetReference_Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ContactRequestResetReference_Reply) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.PublicRendezvousSeed) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ContactRequestSend) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ContactRequestSend_Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Contact != nil { - l = m.Contact.Size() - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.OwnMetadata) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ContactRequestSend_Reply) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ContactRequestAccept) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ContactRequestAccept_Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContactPK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ContactRequestAccept_Reply) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ContactRequestDiscard) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ContactRequestDiscard_Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContactPK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ContactRequestDiscard_Reply) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ShareContact) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ShareContact_Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ShareContact_Reply) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.EncodedContact) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *DecodeContact) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *DecodeContact_Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.EncodedContact) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *DecodeContact_Reply) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Contact != nil { - l = m.Contact.Size() - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ContactBlock) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ContactBlock_Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContactPK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ContactBlock_Reply) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ContactUnblock) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ContactUnblock_Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContactPK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ContactUnblock_Reply) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ContactAliasKeySend) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ContactAliasKeySend_Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.GroupPK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ContactAliasKeySend_Reply) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *MultiMemberGroupCreate) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *MultiMemberGroupCreate_Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *MultiMemberGroupCreate_Reply) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.GroupPK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *MultiMemberGroupJoin) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *MultiMemberGroupJoin_Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Group != nil { - l = m.Group.Size() - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *MultiMemberGroupJoin_Reply) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *MultiMemberGroupLeave) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *MultiMemberGroupLeave_Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.GroupPK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *MultiMemberGroupLeave_Reply) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *MultiMemberGroupAliasResolverDisclose) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *MultiMemberGroupAliasResolverDisclose_Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.GroupPK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *MultiMemberGroupAliasResolverDisclose_Reply) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *MultiMemberGroupAdminRoleGrant) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *MultiMemberGroupAdminRoleGrant_Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.GroupPK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.MemberPK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *MultiMemberGroupAdminRoleGrant_Reply) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *MultiMemberGroupInvitationCreate) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *MultiMemberGroupInvitationCreate_Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.GroupPK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *MultiMemberGroupInvitationCreate_Reply) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Group != nil { - l = m.Group.Size() - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *AppMetadataSend) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *AppMetadataSend_Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.GroupPK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.Payload) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *AppMetadataSend_Reply) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.CID) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *AppMessageSend) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *AppMessageSend_Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.GroupPK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.Payload) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *AppMessageSend_Reply) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.CID) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *GroupMetadataEvent) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.EventContext != nil { - l = m.EventContext.Size() - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.Metadata != nil { - l = m.Metadata.Size() - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.Event) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *GroupMessageEvent) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.EventContext != nil { - l = m.EventContext.Size() - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.Headers != nil { - l = m.Headers.Size() - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.Message) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *GroupMetadataList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *GroupMetadataList_Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.GroupPK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.SinceID) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.SinceNow { - n += 2 - } - l = len(m.UntilID) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.UntilNow { - n += 2 - } - if m.ReverseOrder { - n += 2 - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *GroupMessageList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *GroupMessageList_Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.GroupPK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.SinceID) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.SinceNow { - n += 2 - } - l = len(m.UntilID) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.UntilNow { - n += 2 - } - if m.ReverseOrder { - n += 2 - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *GroupInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *GroupInfo_Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.GroupPK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.ContactPK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *GroupInfo_Reply) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Group != nil { - l = m.Group.Size() - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.MemberPK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.DevicePK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ActivateGroup) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ActivateGroup_Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.GroupPK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.LocalOnly { - n += 2 - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ActivateGroup_Reply) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *DeactivateGroup) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *DeactivateGroup_Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.GroupPK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *DeactivateGroup_Reply) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *GroupDeviceStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *GroupDeviceStatus_Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.GroupPK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *GroupDeviceStatus_Reply) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Type != 0 { - n += 1 + sovProtocoltypes(uint64(m.Type)) - } - l = len(m.Event) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *GroupDeviceStatus_Reply_PeerConnected) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.PeerID) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.DevicePK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if len(m.Transports) > 0 { - l = 0 - for _, e := range m.Transports { - l += sovProtocoltypes(uint64(e)) - } - n += 1 + sovProtocoltypes(uint64(l)) + l - } - if len(m.Maddrs) > 0 { - for _, s := range m.Maddrs { - l = len(s) - n += 1 + l + sovProtocoltypes(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *GroupDeviceStatus_Reply_PeerReconnecting) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.PeerID) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *GroupDeviceStatus_Reply_PeerDisconnected) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.PeerID) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *DebugListGroups) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *DebugListGroups_Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *DebugListGroups_Reply) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.GroupPK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.GroupType != 0 { - n += 1 + sovProtocoltypes(uint64(m.GroupType)) - } - l = len(m.ContactPK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *DebugInspectGroupStore) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *DebugInspectGroupStore_Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.GroupPK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.LogType != 0 { - n += 1 + sovProtocoltypes(uint64(m.LogType)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *DebugInspectGroupStore_Reply) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.CID) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if len(m.ParentCIDs) > 0 { - for _, b := range m.ParentCIDs { - l = len(b) - n += 1 + l + sovProtocoltypes(uint64(l)) - } - } - if m.MetadataEventType != 0 { - n += 1 + sovProtocoltypes(uint64(m.MetadataEventType)) - } - l = len(m.DevicePK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.Payload) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *DebugGroup) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *DebugGroup_Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.GroupPK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *DebugGroup_Reply) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.PeerIDs) > 0 { - for _, s := range m.PeerIDs { - l = len(s) - n += 1 + l + sovProtocoltypes(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ShareableContact) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.PK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.PublicRendezvousSeed) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.Metadata) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ServiceTokenSupportedService) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ServiceType) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.ServiceEndpoint) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ServiceToken) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Token) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.AuthenticationURL) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if len(m.SupportedServices) > 0 { - for _, e := range m.SupportedServices { - l = e.Size() - n += 1 + l + sovProtocoltypes(uint64(l)) - } - } - if m.Expiration != 0 { - n += 1 + sovProtocoltypes(uint64(m.Expiration)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *CredentialVerificationServiceInitFlow) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *CredentialVerificationServiceInitFlow_Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ServiceURL) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.PublicKey) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.Link) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *CredentialVerificationServiceInitFlow_Reply) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.URL) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.SecureURL { - n += 2 - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *CredentialVerificationServiceCompleteFlow) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *CredentialVerificationServiceCompleteFlow_Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.CallbackURI) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *CredentialVerificationServiceCompleteFlow_Reply) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Identifier) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *VerifiedCredentialsList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *VerifiedCredentialsList_Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.FilterIdentifier) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.FilterIssuer) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.ExcludeExpired { - n += 2 - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *VerifiedCredentialsList_Reply) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Credential != nil { - l = m.Credential.Size() - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ReplicationServiceRegisterGroup) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ReplicationServiceRegisterGroup_Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.GroupPK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.Token) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.AuthenticationURL) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.ReplicationServer) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ReplicationServiceRegisterGroup_Reply) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ReplicationServiceReplicateGroup) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ReplicationServiceReplicateGroup_Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Group != nil { - l = m.Group.Size() - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ReplicationServiceReplicateGroup_Reply) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.OK { - n += 2 - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *SystemInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *SystemInfo_Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *SystemInfo_Reply) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Process != nil { - l = m.Process.Size() - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.P2P != nil { - l = m.P2P.Size() - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.OrbitDB != nil { - l = m.OrbitDB.Size() - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if len(m.Warns) > 0 { - for _, s := range m.Warns { - l = len(s) - n += 1 + l + sovProtocoltypes(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *SystemInfo_OrbitDB) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.AccountMetadata != nil { - l = m.AccountMetadata.Size() - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *SystemInfo_OrbitDB_ReplicationStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Progress != 0 { - n += 1 + sovProtocoltypes(uint64(m.Progress)) - } - if m.Maximum != 0 { - n += 1 + sovProtocoltypes(uint64(m.Maximum)) - } - if m.Buffered != 0 { - n += 1 + sovProtocoltypes(uint64(m.Buffered)) - } - if m.Queued != 0 { - n += 1 + sovProtocoltypes(uint64(m.Queued)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *SystemInfo_P2P) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ConnectedPeers != 0 { - n += 1 + sovProtocoltypes(uint64(m.ConnectedPeers)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *SystemInfo_Process) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Version) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.VcsRef) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.UptimeMS != 0 { - n += 1 + sovProtocoltypes(uint64(m.UptimeMS)) - } - if m.UserCPUTimeMS != 0 { - n += 1 + sovProtocoltypes(uint64(m.UserCPUTimeMS)) - } - if m.SystemCPUTimeMS != 0 { - n += 1 + sovProtocoltypes(uint64(m.SystemCPUTimeMS)) - } - if m.StartedAt != 0 { - n += 1 + sovProtocoltypes(uint64(m.StartedAt)) - } - if m.RlimitCur != 0 { - n += 1 + sovProtocoltypes(uint64(m.RlimitCur)) - } - if m.NumGoroutine != 0 { - n += 1 + sovProtocoltypes(uint64(m.NumGoroutine)) - } - if m.Nofile != 0 { - n += 1 + sovProtocoltypes(uint64(m.Nofile)) - } - if m.TooManyOpenFiles { - n += 3 - } - if m.NumCPU != 0 { - n += 2 + sovProtocoltypes(uint64(m.NumCPU)) - } - l = len(m.GoVersion) - if l > 0 { - n += 2 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.OperatingSystem) - if l > 0 { - n += 2 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.HostName) - if l > 0 { - n += 2 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.Arch) - if l > 0 { - n += 2 + l + sovProtocoltypes(uint64(l)) - } - if m.RlimitMax != 0 { - n += 2 + sovProtocoltypes(uint64(m.RlimitMax)) - } - if m.PID != 0 { - n += 2 + sovProtocoltypes(uint64(m.PID)) - } - if m.PPID != 0 { - n += 2 + sovProtocoltypes(uint64(m.PPID)) - } - if m.Priority != 0 { - n += 2 + sovProtocoltypes(uint64(m.Priority)) - } - if m.UID != 0 { - n += 2 + sovProtocoltypes(uint64(m.UID)) - } - l = len(m.WorkingDir) - if l > 0 { - n += 2 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.SystemUsername) - if l > 0 { - n += 2 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *PeerList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *PeerList_Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *PeerList_Reply) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Peers) > 0 { - for _, e := range m.Peers { - l = e.Size() - n += 1 + l + sovProtocoltypes(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *PeerList_Peer) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ID) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if len(m.Routes) > 0 { - for _, e := range m.Routes { - l = e.Size() - n += 1 + l + sovProtocoltypes(uint64(l)) - } - } - if len(m.Errors) > 0 { - for _, s := range m.Errors { - l = len(s) - n += 1 + l + sovProtocoltypes(uint64(l)) - } - } - if len(m.Features) > 0 { - l = 0 - for _, e := range m.Features { - l += sovProtocoltypes(uint64(e)) - } - n += 1 + sovProtocoltypes(uint64(l)) + l - } - if m.MinLatency != 0 { - n += 1 + sovProtocoltypes(uint64(m.MinLatency)) - } - if m.IsActive { - n += 2 - } - if m.Direction != 0 { - n += 1 + sovProtocoltypes(uint64(m.Direction)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *PeerList_Route) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.IsActive { - n += 2 - } - l = len(m.Address) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.Direction != 0 { - n += 1 + sovProtocoltypes(uint64(m.Direction)) - } - if m.Latency != 0 { - n += 1 + sovProtocoltypes(uint64(m.Latency)) - } - if len(m.Streams) > 0 { - for _, e := range m.Streams { - l = e.Size() - n += 1 + l + sovProtocoltypes(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *PeerList_Stream) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ID) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *Progress) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.State) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.Doing) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.Progress != 0 { - n += 5 - } - if m.Completed != 0 { - n += 1 + sovProtocoltypes(uint64(m.Completed)) - } - if m.Total != 0 { - n += 1 + sovProtocoltypes(uint64(m.Total)) - } - if m.Delay != 0 { - n += 1 + sovProtocoltypes(uint64(m.Delay)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *OutOfStoreMessage) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.CID) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.DevicePK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.Counter != 0 { - n += 9 - } - l = len(m.Sig) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.Flags != 0 { - n += 5 - } - l = len(m.EncryptedPayload) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.Nonce) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *OutOfStoreMessageEnvelope) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Nonce) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.Box) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.GroupReference) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *OutOfStoreReceive) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *OutOfStoreReceive_Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Payload) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *OutOfStoreReceive_Reply) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Message != nil { - l = m.Message.Size() - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.Cleartext) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.GroupPublicKey) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.AlreadyReceived { - n += 2 - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *OutOfStoreSeal) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *OutOfStoreSeal_Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.CID) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.GroupPublicKey) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *OutOfStoreSeal_Reply) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Encrypted) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *AccountVerifiedCredentialRegistered) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DevicePK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.SignedIdentityPublicKey) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.VerifiedCredential) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.RegistrationDate != 0 { - n += 1 + sovProtocoltypes(uint64(m.RegistrationDate)) - } - if m.ExpirationDate != 0 { - n += 1 + sovProtocoltypes(uint64(m.ExpirationDate)) - } - l = len(m.Identifier) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.Issuer) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *FirstLastCounters) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.First != 0 { - n += 1 + sovProtocoltypes(uint64(m.First)) - } - if m.Last != 0 { - n += 1 + sovProtocoltypes(uint64(m.Last)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *OrbitDBMessageHeads) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.SealedBox) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.RawRotation) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *OrbitDBMessageHeads_Box) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Address) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.Heads) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.DevicePK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - l = len(m.PeerID) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *RefreshContactRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *RefreshContactRequest_Peer) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ID) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if len(m.Addrs) > 0 { - for _, s := range m.Addrs { - l = len(s) - n += 1 + l + sovProtocoltypes(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *RefreshContactRequest_Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ContactPK) - if l > 0 { - n += 1 + l + sovProtocoltypes(uint64(l)) - } - if m.Timeout != 0 { - n += 1 + sovProtocoltypes(uint64(m.Timeout)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *RefreshContactRequest_Reply) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.PeersFound) > 0 { - for _, e := range m.PeersFound { - l = e.Size() - n += 1 + l + sovProtocoltypes(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func sovProtocoltypes(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozProtocoltypes(x uint64) (n int) { - return sovProtocoltypes(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *Account) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Account: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Account: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Group == nil { - m.Group = &Group{} - } - if err := m.Group.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AccountPrivateKey", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AccountPrivateKey = append(m.AccountPrivateKey[:0], dAtA[iNdEx:postIndex]...) - if m.AccountPrivateKey == nil { - m.AccountPrivateKey = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AliasPrivateKey", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AliasPrivateKey = append(m.AliasPrivateKey[:0], dAtA[iNdEx:postIndex]...) - if m.AliasPrivateKey == nil { - m.AliasPrivateKey = []byte{} - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PublicRendezvousSeed", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PublicRendezvousSeed = append(m.PublicRendezvousSeed[:0], dAtA[iNdEx:postIndex]...) - if m.PublicRendezvousSeed == nil { - m.PublicRendezvousSeed = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Group) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Group: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Group: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PublicKey", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PublicKey = append(m.PublicKey[:0], dAtA[iNdEx:postIndex]...) - if m.PublicKey == nil { - m.PublicKey = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Secret", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Secret = append(m.Secret[:0], dAtA[iNdEx:postIndex]...) - if m.Secret == nil { - m.Secret = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SecretSig", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SecretSig = append(m.SecretSig[:0], dAtA[iNdEx:postIndex]...) - if m.SecretSig == nil { - m.SecretSig = []byte{} - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupType", wireType) - } - m.GroupType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.GroupType |= GroupType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SignPub", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SignPub = append(m.SignPub[:0], dAtA[iNdEx:postIndex]...) - if m.SignPub == nil { - m.SignPub = []byte{} - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LinkKey", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.LinkKey = append(m.LinkKey[:0], dAtA[iNdEx:postIndex]...) - if m.LinkKey == nil { - m.LinkKey = []byte{} - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LinkKeySig", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.LinkKeySig = append(m.LinkKeySig[:0], dAtA[iNdEx:postIndex]...) - if m.LinkKeySig == nil { - m.LinkKeySig = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GroupHeadsExport) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GroupHeadsExport: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GroupHeadsExport: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PublicKey", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PublicKey = append(m.PublicKey[:0], dAtA[iNdEx:postIndex]...) - if m.PublicKey == nil { - m.PublicKey = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SignPub", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SignPub = append(m.SignPub[:0], dAtA[iNdEx:postIndex]...) - if m.SignPub == nil { - m.SignPub = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MetadataHeadsCIDs", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MetadataHeadsCIDs = append(m.MetadataHeadsCIDs, make([]byte, postIndex-iNdEx)) - copy(m.MetadataHeadsCIDs[len(m.MetadataHeadsCIDs)-1], dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MessagesHeadsCIDs", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MessagesHeadsCIDs = append(m.MessagesHeadsCIDs, make([]byte, postIndex-iNdEx)) - copy(m.MessagesHeadsCIDs[len(m.MessagesHeadsCIDs)-1], dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LinkKey", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.LinkKey = append(m.LinkKey[:0], dAtA[iNdEx:postIndex]...) - if m.LinkKey == nil { - m.LinkKey = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GroupMetadata) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GroupMetadata: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GroupMetadata: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EventType", wireType) - } - m.EventType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.EventType |= EventType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Payload = append(m.Payload[:0], dAtA[iNdEx:postIndex]...) - if m.Payload == nil { - m.Payload = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Sig", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Sig = append(m.Sig[:0], dAtA[iNdEx:postIndex]...) - if m.Sig == nil { - m.Sig = []byte{} - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ProtocolMetadata", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ProtocolMetadata == nil { - m.ProtocolMetadata = &ProtocolMetadata{} - } - if err := m.ProtocolMetadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GroupEnvelope) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GroupEnvelope: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GroupEnvelope: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Nonce = append(m.Nonce[:0], dAtA[iNdEx:postIndex]...) - if m.Nonce == nil { - m.Nonce = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Event", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Event = append(m.Event[:0], dAtA[iNdEx:postIndex]...) - if m.Event == nil { - m.Event = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MessageHeaders) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MessageHeaders: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MessageHeaders: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Counter", wireType) - } - m.Counter = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Counter |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DevicePK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DevicePK = append(m.DevicePK[:0], dAtA[iNdEx:postIndex]...) - if m.DevicePK == nil { - m.DevicePK = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Sig", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Sig = append(m.Sig[:0], dAtA[iNdEx:postIndex]...) - if m.Sig == nil { - m.Sig = []byte{} - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Metadata == nil { - m.Metadata = make(map[string]string) - } - var mapkey string - var mapvalue string - for iNdEx < postIndex { - entryPreIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - if fieldNum == 1 { - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthProtocoltypes - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey < 0 { - return ErrInvalidLengthProtocoltypes - } - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - } else if fieldNum == 2 { - var stringLenmapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapvalue |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapvalue := int(stringLenmapvalue) - if intStringLenmapvalue < 0 { - return ErrInvalidLengthProtocoltypes - } - postStringIndexmapvalue := iNdEx + intStringLenmapvalue - if postStringIndexmapvalue < 0 { - return ErrInvalidLengthProtocoltypes - } - if postStringIndexmapvalue > l { - return io.ErrUnexpectedEOF - } - mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) - iNdEx = postStringIndexmapvalue - } else { - iNdEx = entryPreIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > postIndex { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - m.Metadata[mapkey] = mapvalue - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ProtocolMetadata) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ProtocolMetadata: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ProtocolMetadata: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EncryptedMessage) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EncryptedMessage: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EncryptedMessage: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Plaintext", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Plaintext = append(m.Plaintext[:0], dAtA[iNdEx:postIndex]...) - if m.Plaintext == nil { - m.Plaintext = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ProtocolMetadata", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ProtocolMetadata == nil { - m.ProtocolMetadata = &ProtocolMetadata{} - } - if err := m.ProtocolMetadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MessageEnvelope) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MessageEnvelope: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MessageEnvelope: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MessageHeaders", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MessageHeaders = append(m.MessageHeaders[:0], dAtA[iNdEx:postIndex]...) - if m.MessageHeaders == nil { - m.MessageHeaders = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = append(m.Message[:0], dAtA[iNdEx:postIndex]...) - if m.Message == nil { - m.Message = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Nonce = append(m.Nonce[:0], dAtA[iNdEx:postIndex]...) - if m.Nonce == nil { - m.Nonce = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EventContext) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: EventContext: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EventContext: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ID = append(m.ID[:0], dAtA[iNdEx:postIndex]...) - if m.ID == nil { - m.ID = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ParentIDs", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ParentIDs = append(m.ParentIDs, make([]byte, postIndex-iNdEx)) - copy(m.ParentIDs[len(m.ParentIDs)-1], dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupPK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GroupPK = append(m.GroupPK[:0], dAtA[iNdEx:postIndex]...) - if m.GroupPK == nil { - m.GroupPK = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GroupMetadataPayloadSent) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GroupMetadataPayloadSent: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GroupMetadataPayloadSent: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DevicePK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DevicePK = append(m.DevicePK[:0], dAtA[iNdEx:postIndex]...) - if m.DevicePK == nil { - m.DevicePK = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = append(m.Message[:0], dAtA[iNdEx:postIndex]...) - if m.Message == nil { - m.Message = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ContactAliasKeyAdded) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ContactAliasKeyAdded: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ContactAliasKeyAdded: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DevicePK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DevicePK = append(m.DevicePK[:0], dAtA[iNdEx:postIndex]...) - if m.DevicePK == nil { - m.DevicePK = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AliasPK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AliasPK = append(m.AliasPK[:0], dAtA[iNdEx:postIndex]...) - if m.AliasPK == nil { - m.AliasPK = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GroupMemberDeviceAdded) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GroupMemberDeviceAdded: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GroupMemberDeviceAdded: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MemberPK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MemberPK = append(m.MemberPK[:0], dAtA[iNdEx:postIndex]...) - if m.MemberPK == nil { - m.MemberPK = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DevicePK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DevicePK = append(m.DevicePK[:0], dAtA[iNdEx:postIndex]...) - if m.DevicePK == nil { - m.DevicePK = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MemberSig", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MemberSig = append(m.MemberSig[:0], dAtA[iNdEx:postIndex]...) - if m.MemberSig == nil { - m.MemberSig = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeviceChainKey) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeviceChainKey: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeviceChainKey: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChainKey", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ChainKey = append(m.ChainKey[:0], dAtA[iNdEx:postIndex]...) - if m.ChainKey == nil { - m.ChainKey = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Counter", wireType) - } - m.Counter = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Counter |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GroupDeviceChainKeyAdded) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GroupDeviceChainKeyAdded: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GroupDeviceChainKeyAdded: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DevicePK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DevicePK = append(m.DevicePK[:0], dAtA[iNdEx:postIndex]...) - if m.DevicePK == nil { - m.DevicePK = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DestMemberPK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DestMemberPK = append(m.DestMemberPK[:0], dAtA[iNdEx:postIndex]...) - if m.DestMemberPK == nil { - m.DestMemberPK = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Payload = append(m.Payload[:0], dAtA[iNdEx:postIndex]...) - if m.Payload == nil { - m.Payload = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MultiMemberGroupAliasResolverAdded) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MultiMemberGroupAliasResolverAdded: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MultiMemberGroupAliasResolverAdded: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DevicePK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DevicePK = append(m.DevicePK[:0], dAtA[iNdEx:postIndex]...) - if m.DevicePK == nil { - m.DevicePK = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AliasResolver", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AliasResolver = append(m.AliasResolver[:0], dAtA[iNdEx:postIndex]...) - if m.AliasResolver == nil { - m.AliasResolver = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AliasProof", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AliasProof = append(m.AliasProof[:0], dAtA[iNdEx:postIndex]...) - if m.AliasProof == nil { - m.AliasProof = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MultiMemberGroupAdminRoleGranted) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MultiMemberGroupAdminRoleGranted: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MultiMemberGroupAdminRoleGranted: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DevicePK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DevicePK = append(m.DevicePK[:0], dAtA[iNdEx:postIndex]...) - if m.DevicePK == nil { - m.DevicePK = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GranteeMemberPK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GranteeMemberPK = append(m.GranteeMemberPK[:0], dAtA[iNdEx:postIndex]...) - if m.GranteeMemberPK == nil { - m.GranteeMemberPK = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MultiMemberGroupInitialMemberAnnounced) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MultiMemberGroupInitialMemberAnnounced: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MultiMemberGroupInitialMemberAnnounced: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MemberPK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MemberPK = append(m.MemberPK[:0], dAtA[iNdEx:postIndex]...) - if m.MemberPK == nil { - m.MemberPK = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GroupAddAdditionalRendezvousSeed) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GroupAddAdditionalRendezvousSeed: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GroupAddAdditionalRendezvousSeed: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DevicePK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DevicePK = append(m.DevicePK[:0], dAtA[iNdEx:postIndex]...) - if m.DevicePK == nil { - m.DevicePK = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Seed", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Seed = append(m.Seed[:0], dAtA[iNdEx:postIndex]...) - if m.Seed == nil { - m.Seed = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GroupRemoveAdditionalRendezvousSeed) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GroupRemoveAdditionalRendezvousSeed: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GroupRemoveAdditionalRendezvousSeed: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DevicePK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DevicePK = append(m.DevicePK[:0], dAtA[iNdEx:postIndex]...) - if m.DevicePK == nil { - m.DevicePK = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Seed", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Seed = append(m.Seed[:0], dAtA[iNdEx:postIndex]...) - if m.Seed == nil { - m.Seed = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AccountGroupJoined) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AccountGroupJoined: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AccountGroupJoined: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DevicePK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DevicePK = append(m.DevicePK[:0], dAtA[iNdEx:postIndex]...) - if m.DevicePK == nil { - m.DevicePK = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Group == nil { - m.Group = &Group{} - } - if err := m.Group.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AccountGroupLeft) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AccountGroupLeft: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AccountGroupLeft: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DevicePK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DevicePK = append(m.DevicePK[:0], dAtA[iNdEx:postIndex]...) - if m.DevicePK == nil { - m.DevicePK = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupPK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GroupPK = append(m.GroupPK[:0], dAtA[iNdEx:postIndex]...) - if m.GroupPK == nil { - m.GroupPK = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AccountContactRequestDisabled) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AccountContactRequestDisabled: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AccountContactRequestDisabled: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DevicePK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DevicePK = append(m.DevicePK[:0], dAtA[iNdEx:postIndex]...) - if m.DevicePK == nil { - m.DevicePK = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AccountContactRequestEnabled) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AccountContactRequestEnabled: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AccountContactRequestEnabled: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DevicePK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DevicePK = append(m.DevicePK[:0], dAtA[iNdEx:postIndex]...) - if m.DevicePK == nil { - m.DevicePK = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AccountContactRequestReferenceReset) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AccountContactRequestReferenceReset: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AccountContactRequestReferenceReset: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DevicePK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DevicePK = append(m.DevicePK[:0], dAtA[iNdEx:postIndex]...) - if m.DevicePK == nil { - m.DevicePK = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PublicRendezvousSeed", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PublicRendezvousSeed = append(m.PublicRendezvousSeed[:0], dAtA[iNdEx:postIndex]...) - if m.PublicRendezvousSeed == nil { - m.PublicRendezvousSeed = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AccountContactRequestOutgoingEnqueued) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AccountContactRequestOutgoingEnqueued: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AccountContactRequestOutgoingEnqueued: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DevicePK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DevicePK = append(m.DevicePK[:0], dAtA[iNdEx:postIndex]...) - if m.DevicePK == nil { - m.DevicePK = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupPK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GroupPK = append(m.GroupPK[:0], dAtA[iNdEx:postIndex]...) - if m.GroupPK == nil { - m.GroupPK = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Contact", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Contact == nil { - m.Contact = &ShareableContact{} - } - if err := m.Contact.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OwnMetadata", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.OwnMetadata = append(m.OwnMetadata[:0], dAtA[iNdEx:postIndex]...) - if m.OwnMetadata == nil { - m.OwnMetadata = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AccountContactRequestOutgoingSent) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AccountContactRequestOutgoingSent: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AccountContactRequestOutgoingSent: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DevicePK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DevicePK = append(m.DevicePK[:0], dAtA[iNdEx:postIndex]...) - if m.DevicePK == nil { - m.DevicePK = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContactPK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContactPK = append(m.ContactPK[:0], dAtA[iNdEx:postIndex]...) - if m.ContactPK == nil { - m.ContactPK = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AccountContactRequestIncomingReceived) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AccountContactRequestIncomingReceived: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AccountContactRequestIncomingReceived: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DevicePK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DevicePK = append(m.DevicePK[:0], dAtA[iNdEx:postIndex]...) - if m.DevicePK == nil { - m.DevicePK = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContactPK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContactPK = append(m.ContactPK[:0], dAtA[iNdEx:postIndex]...) - if m.ContactPK == nil { - m.ContactPK = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContactRendezvousSeed", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContactRendezvousSeed = append(m.ContactRendezvousSeed[:0], dAtA[iNdEx:postIndex]...) - if m.ContactRendezvousSeed == nil { - m.ContactRendezvousSeed = []byte{} - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContactMetadata", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContactMetadata = append(m.ContactMetadata[:0], dAtA[iNdEx:postIndex]...) - if m.ContactMetadata == nil { - m.ContactMetadata = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AccountContactRequestIncomingDiscarded) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AccountContactRequestIncomingDiscarded: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AccountContactRequestIncomingDiscarded: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DevicePK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DevicePK = append(m.DevicePK[:0], dAtA[iNdEx:postIndex]...) - if m.DevicePK == nil { - m.DevicePK = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContactPK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContactPK = append(m.ContactPK[:0], dAtA[iNdEx:postIndex]...) - if m.ContactPK == nil { - m.ContactPK = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AccountContactRequestIncomingAccepted) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AccountContactRequestIncomingAccepted: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AccountContactRequestIncomingAccepted: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DevicePK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DevicePK = append(m.DevicePK[:0], dAtA[iNdEx:postIndex]...) - if m.DevicePK == nil { - m.DevicePK = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContactPK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContactPK = append(m.ContactPK[:0], dAtA[iNdEx:postIndex]...) - if m.ContactPK == nil { - m.ContactPK = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupPK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GroupPK = append(m.GroupPK[:0], dAtA[iNdEx:postIndex]...) - if m.GroupPK == nil { - m.GroupPK = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AccountContactBlocked) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AccountContactBlocked: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AccountContactBlocked: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DevicePK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DevicePK = append(m.DevicePK[:0], dAtA[iNdEx:postIndex]...) - if m.DevicePK == nil { - m.DevicePK = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContactPK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContactPK = append(m.ContactPK[:0], dAtA[iNdEx:postIndex]...) - if m.ContactPK == nil { - m.ContactPK = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AccountContactUnblocked) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AccountContactUnblocked: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AccountContactUnblocked: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DevicePK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DevicePK = append(m.DevicePK[:0], dAtA[iNdEx:postIndex]...) - if m.DevicePK == nil { - m.DevicePK = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContactPK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContactPK = append(m.ContactPK[:0], dAtA[iNdEx:postIndex]...) - if m.ContactPK == nil { - m.ContactPK = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GroupReplicating) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GroupReplicating: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GroupReplicating: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DevicePK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DevicePK = append(m.DevicePK[:0], dAtA[iNdEx:postIndex]...) - if m.DevicePK == nil { - m.DevicePK = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AuthenticationURL", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AuthenticationURL = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReplicationServer", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ReplicationServer = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ServiceExportData) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ServiceExportData: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ServiceExportData: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ServiceExportData_Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ServiceExportData_Reply) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Reply: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Reply: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ExportedData", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ExportedData = append(m.ExportedData[:0], dAtA[iNdEx:postIndex]...) - if m.ExportedData == nil { - m.ExportedData = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ServiceGetConfiguration) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ServiceGetConfiguration: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ServiceGetConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ServiceGetConfiguration_Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ServiceGetConfiguration_Reply) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Reply: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Reply: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AccountPK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AccountPK = append(m.AccountPK[:0], dAtA[iNdEx:postIndex]...) - if m.AccountPK == nil { - m.AccountPK = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DevicePK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DevicePK = append(m.DevicePK[:0], dAtA[iNdEx:postIndex]...) - if m.DevicePK == nil { - m.DevicePK = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AccountGroupPK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AccountGroupPK = append(m.AccountGroupPK[:0], dAtA[iNdEx:postIndex]...) - if m.AccountGroupPK == nil { - m.AccountGroupPK = []byte{} - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PeerID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PeerID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Listeners", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Listeners = append(m.Listeners, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field BleEnabled", wireType) - } - m.BleEnabled = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.BleEnabled |= ServiceGetConfiguration_SettingState(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field WifiP2PEnabled", wireType) - } - m.WifiP2PEnabled = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.WifiP2PEnabled |= ServiceGetConfiguration_SettingState(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MdnsEnabled", wireType) - } - m.MdnsEnabled = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MdnsEnabled |= ServiceGetConfiguration_SettingState(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 9: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RelayEnabled", wireType) - } - m.RelayEnabled = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.RelayEnabled |= ServiceGetConfiguration_SettingState(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ContactRequestReference) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ContactRequestReference: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ContactRequestReference: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ContactRequestReference_Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ContactRequestReference_Reply) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Reply: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Reply: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PublicRendezvousSeed", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PublicRendezvousSeed = append(m.PublicRendezvousSeed[:0], dAtA[iNdEx:postIndex]...) - if m.PublicRendezvousSeed == nil { - m.PublicRendezvousSeed = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Enabled = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ContactRequestDisable) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ContactRequestDisable: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ContactRequestDisable: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ContactRequestDisable_Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ContactRequestDisable_Reply) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Reply: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Reply: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ContactRequestEnable) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ContactRequestEnable: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ContactRequestEnable: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ContactRequestEnable_Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ContactRequestEnable_Reply) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Reply: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Reply: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PublicRendezvousSeed", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PublicRendezvousSeed = append(m.PublicRendezvousSeed[:0], dAtA[iNdEx:postIndex]...) - if m.PublicRendezvousSeed == nil { - m.PublicRendezvousSeed = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ContactRequestResetReference) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ContactRequestResetReference: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ContactRequestResetReference: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ContactRequestResetReference_Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ContactRequestResetReference_Reply) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Reply: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Reply: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PublicRendezvousSeed", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PublicRendezvousSeed = append(m.PublicRendezvousSeed[:0], dAtA[iNdEx:postIndex]...) - if m.PublicRendezvousSeed == nil { - m.PublicRendezvousSeed = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ContactRequestSend) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ContactRequestSend: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ContactRequestSend: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ContactRequestSend_Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Contact", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Contact == nil { - m.Contact = &ShareableContact{} - } - if err := m.Contact.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OwnMetadata", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.OwnMetadata = append(m.OwnMetadata[:0], dAtA[iNdEx:postIndex]...) - if m.OwnMetadata == nil { - m.OwnMetadata = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ContactRequestSend_Reply) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Reply: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Reply: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ContactRequestAccept) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ContactRequestAccept: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ContactRequestAccept: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ContactRequestAccept_Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContactPK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContactPK = append(m.ContactPK[:0], dAtA[iNdEx:postIndex]...) - if m.ContactPK == nil { - m.ContactPK = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ContactRequestAccept_Reply) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Reply: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Reply: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ContactRequestDiscard) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ContactRequestDiscard: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ContactRequestDiscard: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ContactRequestDiscard_Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContactPK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContactPK = append(m.ContactPK[:0], dAtA[iNdEx:postIndex]...) - if m.ContactPK == nil { - m.ContactPK = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ContactRequestDiscard_Reply) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Reply: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Reply: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ShareContact) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ShareContact: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ShareContact: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ShareContact_Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ShareContact_Reply) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Reply: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Reply: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EncodedContact", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EncodedContact = append(m.EncodedContact[:0], dAtA[iNdEx:postIndex]...) - if m.EncodedContact == nil { - m.EncodedContact = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DecodeContact) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DecodeContact: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DecodeContact: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DecodeContact_Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EncodedContact", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EncodedContact = append(m.EncodedContact[:0], dAtA[iNdEx:postIndex]...) - if m.EncodedContact == nil { - m.EncodedContact = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DecodeContact_Reply) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Reply: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Reply: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Contact", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Contact == nil { - m.Contact = &ShareableContact{} - } - if err := m.Contact.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ContactBlock) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ContactBlock: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ContactBlock: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ContactBlock_Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContactPK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContactPK = append(m.ContactPK[:0], dAtA[iNdEx:postIndex]...) - if m.ContactPK == nil { - m.ContactPK = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ContactBlock_Reply) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Reply: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Reply: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ContactUnblock) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ContactUnblock: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ContactUnblock: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ContactUnblock_Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContactPK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContactPK = append(m.ContactPK[:0], dAtA[iNdEx:postIndex]...) - if m.ContactPK == nil { - m.ContactPK = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ContactUnblock_Reply) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Reply: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Reply: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ContactAliasKeySend) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ContactAliasKeySend: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ContactAliasKeySend: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ContactAliasKeySend_Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupPK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GroupPK = append(m.GroupPK[:0], dAtA[iNdEx:postIndex]...) - if m.GroupPK == nil { - m.GroupPK = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ContactAliasKeySend_Reply) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Reply: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Reply: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MultiMemberGroupCreate) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MultiMemberGroupCreate: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MultiMemberGroupCreate: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MultiMemberGroupCreate_Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MultiMemberGroupCreate_Reply) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Reply: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Reply: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupPK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GroupPK = append(m.GroupPK[:0], dAtA[iNdEx:postIndex]...) - if m.GroupPK == nil { - m.GroupPK = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MultiMemberGroupJoin) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MultiMemberGroupJoin: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MultiMemberGroupJoin: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MultiMemberGroupJoin_Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Group == nil { - m.Group = &Group{} - } - if err := m.Group.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MultiMemberGroupJoin_Reply) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Reply: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Reply: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MultiMemberGroupLeave) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MultiMemberGroupLeave: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MultiMemberGroupLeave: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MultiMemberGroupLeave_Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupPK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GroupPK = append(m.GroupPK[:0], dAtA[iNdEx:postIndex]...) - if m.GroupPK == nil { - m.GroupPK = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MultiMemberGroupLeave_Reply) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Reply: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Reply: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MultiMemberGroupAliasResolverDisclose) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MultiMemberGroupAliasResolverDisclose: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MultiMemberGroupAliasResolverDisclose: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MultiMemberGroupAliasResolverDisclose_Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupPK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GroupPK = append(m.GroupPK[:0], dAtA[iNdEx:postIndex]...) - if m.GroupPK == nil { - m.GroupPK = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MultiMemberGroupAliasResolverDisclose_Reply) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Reply: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Reply: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MultiMemberGroupAdminRoleGrant) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MultiMemberGroupAdminRoleGrant: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MultiMemberGroupAdminRoleGrant: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MultiMemberGroupAdminRoleGrant_Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupPK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GroupPK = append(m.GroupPK[:0], dAtA[iNdEx:postIndex]...) - if m.GroupPK == nil { - m.GroupPK = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MemberPK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MemberPK = append(m.MemberPK[:0], dAtA[iNdEx:postIndex]...) - if m.MemberPK == nil { - m.MemberPK = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MultiMemberGroupAdminRoleGrant_Reply) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Reply: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Reply: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MultiMemberGroupInvitationCreate) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: MultiMemberGroupInvitationCreate: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MultiMemberGroupInvitationCreate: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MultiMemberGroupInvitationCreate_Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupPK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GroupPK = append(m.GroupPK[:0], dAtA[iNdEx:postIndex]...) - if m.GroupPK == nil { - m.GroupPK = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MultiMemberGroupInvitationCreate_Reply) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Reply: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Reply: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Group == nil { - m.Group = &Group{} - } - if err := m.Group.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AppMetadataSend) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AppMetadataSend: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AppMetadataSend: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AppMetadataSend_Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupPK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GroupPK = append(m.GroupPK[:0], dAtA[iNdEx:postIndex]...) - if m.GroupPK == nil { - m.GroupPK = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Payload = append(m.Payload[:0], dAtA[iNdEx:postIndex]...) - if m.Payload == nil { - m.Payload = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AppMetadataSend_Reply) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Reply: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Reply: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CID", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CID = append(m.CID[:0], dAtA[iNdEx:postIndex]...) - if m.CID == nil { - m.CID = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AppMessageSend) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AppMessageSend: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AppMessageSend: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AppMessageSend_Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupPK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GroupPK = append(m.GroupPK[:0], dAtA[iNdEx:postIndex]...) - if m.GroupPK == nil { - m.GroupPK = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Payload = append(m.Payload[:0], dAtA[iNdEx:postIndex]...) - if m.Payload == nil { - m.Payload = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AppMessageSend_Reply) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Reply: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Reply: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CID", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CID = append(m.CID[:0], dAtA[iNdEx:postIndex]...) - if m.CID == nil { - m.CID = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GroupMetadataEvent) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GroupMetadataEvent: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GroupMetadataEvent: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EventContext", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.EventContext == nil { - m.EventContext = &EventContext{} - } - if err := m.EventContext.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Metadata == nil { - m.Metadata = &GroupMetadata{} - } - if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Event", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Event = append(m.Event[:0], dAtA[iNdEx:postIndex]...) - if m.Event == nil { - m.Event = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GroupMessageEvent) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GroupMessageEvent: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GroupMessageEvent: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EventContext", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.EventContext == nil { - m.EventContext = &EventContext{} - } - if err := m.EventContext.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Headers", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Headers == nil { - m.Headers = &MessageHeaders{} - } - if err := m.Headers.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = append(m.Message[:0], dAtA[iNdEx:postIndex]...) - if m.Message == nil { - m.Message = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GroupMetadataList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GroupMetadataList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GroupMetadataList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GroupMetadataList_Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupPK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GroupPK = append(m.GroupPK[:0], dAtA[iNdEx:postIndex]...) - if m.GroupPK == nil { - m.GroupPK = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SinceID", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SinceID = append(m.SinceID[:0], dAtA[iNdEx:postIndex]...) - if m.SinceID == nil { - m.SinceID = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SinceNow", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.SinceNow = bool(v != 0) - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UntilID", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UntilID = append(m.UntilID[:0], dAtA[iNdEx:postIndex]...) - if m.UntilID == nil { - m.UntilID = []byte{} - } - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UntilNow", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.UntilNow = bool(v != 0) - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReverseOrder", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ReverseOrder = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GroupMessageList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GroupMessageList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GroupMessageList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GroupMessageList_Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupPK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GroupPK = append(m.GroupPK[:0], dAtA[iNdEx:postIndex]...) - if m.GroupPK == nil { - m.GroupPK = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SinceID", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SinceID = append(m.SinceID[:0], dAtA[iNdEx:postIndex]...) - if m.SinceID == nil { - m.SinceID = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SinceNow", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.SinceNow = bool(v != 0) - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UntilID", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UntilID = append(m.UntilID[:0], dAtA[iNdEx:postIndex]...) - if m.UntilID == nil { - m.UntilID = []byte{} - } - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UntilNow", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.UntilNow = bool(v != 0) - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReverseOrder", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ReverseOrder = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GroupInfo) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GroupInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GroupInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GroupInfo_Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupPK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GroupPK = append(m.GroupPK[:0], dAtA[iNdEx:postIndex]...) - if m.GroupPK == nil { - m.GroupPK = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContactPK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContactPK = append(m.ContactPK[:0], dAtA[iNdEx:postIndex]...) - if m.ContactPK == nil { - m.ContactPK = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GroupInfo_Reply) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Reply: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Reply: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Group == nil { - m.Group = &Group{} - } - if err := m.Group.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MemberPK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MemberPK = append(m.MemberPK[:0], dAtA[iNdEx:postIndex]...) - if m.MemberPK == nil { - m.MemberPK = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DevicePK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DevicePK = append(m.DevicePK[:0], dAtA[iNdEx:postIndex]...) - if m.DevicePK == nil { - m.DevicePK = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ActivateGroup) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ActivateGroup: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ActivateGroup: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ActivateGroup_Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupPK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GroupPK = append(m.GroupPK[:0], dAtA[iNdEx:postIndex]...) - if m.GroupPK == nil { - m.GroupPK = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LocalOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.LocalOnly = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ActivateGroup_Reply) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Reply: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Reply: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeactivateGroup) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeactivateGroup: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeactivateGroup: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeactivateGroup_Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupPK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GroupPK = append(m.GroupPK[:0], dAtA[iNdEx:postIndex]...) - if m.GroupPK == nil { - m.GroupPK = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeactivateGroup_Reply) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Reply: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Reply: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GroupDeviceStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: GroupDeviceStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: GroupDeviceStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GroupDeviceStatus_Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupPK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GroupPK = append(m.GroupPK[:0], dAtA[iNdEx:postIndex]...) - if m.GroupPK == nil { - m.GroupPK = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GroupDeviceStatus_Reply) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Reply: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Reply: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) - } - m.Type = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Type |= GroupDeviceStatus_Type(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Event", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Event = append(m.Event[:0], dAtA[iNdEx:postIndex]...) - if m.Event == nil { - m.Event = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GroupDeviceStatus_Reply_PeerConnected) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PeerConnected: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PeerConnected: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PeerID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PeerID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DevicePK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DevicePK = append(m.DevicePK[:0], dAtA[iNdEx:postIndex]...) - if m.DevicePK == nil { - m.DevicePK = []byte{} - } - iNdEx = postIndex - case 3: - if wireType == 0 { - var v GroupDeviceStatus_Transport - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= GroupDeviceStatus_Transport(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Transports = append(m.Transports, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - if elementCount != 0 && len(m.Transports) == 0 { - m.Transports = make([]GroupDeviceStatus_Transport, 0, elementCount) - } - for iNdEx < postIndex { - var v GroupDeviceStatus_Transport - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= GroupDeviceStatus_Transport(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Transports = append(m.Transports, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field Transports", wireType) - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Maddrs", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Maddrs = append(m.Maddrs, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GroupDeviceStatus_Reply_PeerReconnecting) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PeerReconnecting: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PeerReconnecting: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PeerID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PeerID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *GroupDeviceStatus_Reply_PeerDisconnected) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PeerDisconnected: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PeerDisconnected: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PeerID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PeerID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DebugListGroups) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DebugListGroups: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DebugListGroups: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DebugListGroups_Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DebugListGroups_Reply) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Reply: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Reply: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupPK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GroupPK = append(m.GroupPK[:0], dAtA[iNdEx:postIndex]...) - if m.GroupPK == nil { - m.GroupPK = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupType", wireType) - } - m.GroupType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.GroupType |= GroupType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContactPK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContactPK = append(m.ContactPK[:0], dAtA[iNdEx:postIndex]...) - if m.ContactPK == nil { - m.ContactPK = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DebugInspectGroupStore) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DebugInspectGroupStore: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DebugInspectGroupStore: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DebugInspectGroupStore_Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupPK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GroupPK = append(m.GroupPK[:0], dAtA[iNdEx:postIndex]...) - if m.GroupPK == nil { - m.GroupPK = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LogType", wireType) - } - m.LogType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.LogType |= DebugInspectGroupLogType(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DebugInspectGroupStore_Reply) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Reply: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Reply: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CID", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CID = append(m.CID[:0], dAtA[iNdEx:postIndex]...) - if m.CID == nil { - m.CID = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ParentCIDs", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ParentCIDs = append(m.ParentCIDs, make([]byte, postIndex-iNdEx)) - copy(m.ParentCIDs[len(m.ParentCIDs)-1], dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MetadataEventType", wireType) - } - m.MetadataEventType = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MetadataEventType |= EventType(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DevicePK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DevicePK = append(m.DevicePK[:0], dAtA[iNdEx:postIndex]...) - if m.DevicePK == nil { - m.DevicePK = []byte{} - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Payload = append(m.Payload[:0], dAtA[iNdEx:postIndex]...) - if m.Payload == nil { - m.Payload = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DebugGroup) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DebugGroup: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DebugGroup: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DebugGroup_Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupPK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GroupPK = append(m.GroupPK[:0], dAtA[iNdEx:postIndex]...) - if m.GroupPK == nil { - m.GroupPK = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DebugGroup_Reply) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Reply: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Reply: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PeerIDs", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PeerIDs = append(m.PeerIDs, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ShareableContact) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ShareableContact: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ShareableContact: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PK = append(m.PK[:0], dAtA[iNdEx:postIndex]...) - if m.PK == nil { - m.PK = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PublicRendezvousSeed", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PublicRendezvousSeed = append(m.PublicRendezvousSeed[:0], dAtA[iNdEx:postIndex]...) - if m.PublicRendezvousSeed == nil { - m.PublicRendezvousSeed = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Metadata = append(m.Metadata[:0], dAtA[iNdEx:postIndex]...) - if m.Metadata == nil { - m.Metadata = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ServiceTokenSupportedService) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ServiceTokenSupportedService: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ServiceTokenSupportedService: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ServiceType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ServiceType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ServiceEndpoint", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ServiceEndpoint = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ServiceToken) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ServiceToken: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ServiceToken: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Token = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AuthenticationURL", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AuthenticationURL = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SupportedServices", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SupportedServices = append(m.SupportedServices, &ServiceTokenSupportedService{}) - if err := m.SupportedServices[len(m.SupportedServices)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Expiration", wireType) - } - m.Expiration = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Expiration |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CredentialVerificationServiceInitFlow) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CredentialVerificationServiceInitFlow: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CredentialVerificationServiceInitFlow: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CredentialVerificationServiceInitFlow_Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ServiceURL", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ServiceURL = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PublicKey", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PublicKey = append(m.PublicKey[:0], dAtA[iNdEx:postIndex]...) - if m.PublicKey == nil { - m.PublicKey = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Link", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Link = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CredentialVerificationServiceInitFlow_Reply) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Reply: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Reply: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field URL", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.URL = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SecureURL", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.SecureURL = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CredentialVerificationServiceCompleteFlow) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: CredentialVerificationServiceCompleteFlow: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CredentialVerificationServiceCompleteFlow: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CredentialVerificationServiceCompleteFlow_Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CallbackURI", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CallbackURI = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *CredentialVerificationServiceCompleteFlow_Reply) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Reply: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Reply: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identifier", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identifier = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VerifiedCredentialsList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: VerifiedCredentialsList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VerifiedCredentialsList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VerifiedCredentialsList_Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FilterIdentifier", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FilterIdentifier = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FilterIssuer", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FilterIssuer = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ExcludeExpired", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ExcludeExpired = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VerifiedCredentialsList_Reply) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Reply: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Reply: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Credential", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Credential == nil { - m.Credential = &AccountVerifiedCredentialRegistered{} - } - if err := m.Credential.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReplicationServiceRegisterGroup) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReplicationServiceRegisterGroup: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReplicationServiceRegisterGroup: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReplicationServiceRegisterGroup_Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupPK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GroupPK = append(m.GroupPK[:0], dAtA[iNdEx:postIndex]...) - if m.GroupPK == nil { - m.GroupPK = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Token = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AuthenticationURL", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AuthenticationURL = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReplicationServer", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ReplicationServer = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReplicationServiceRegisterGroup_Reply) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Reply: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Reply: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReplicationServiceReplicateGroup) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReplicationServiceReplicateGroup: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReplicationServiceReplicateGroup: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReplicationServiceReplicateGroup_Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Group == nil { - m.Group = &Group{} - } - if err := m.Group.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReplicationServiceReplicateGroup_Reply) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Reply: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Reply: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field OK", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.OK = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SystemInfo) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: SystemInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SystemInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SystemInfo_Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SystemInfo_Reply) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Reply: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Reply: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Process", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Process == nil { - m.Process = &SystemInfo_Process{} - } - if err := m.Process.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field P2P", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.P2P == nil { - m.P2P = &SystemInfo_P2P{} - } - if err := m.P2P.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OrbitDB", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.OrbitDB == nil { - m.OrbitDB = &SystemInfo_OrbitDB{} - } - if err := m.OrbitDB.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Warns", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Warns = append(m.Warns, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SystemInfo_OrbitDB) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: OrbitDB: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: OrbitDB: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AccountMetadata", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AccountMetadata == nil { - m.AccountMetadata = &SystemInfo_OrbitDB_ReplicationStatus{} - } - if err := m.AccountMetadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SystemInfo_OrbitDB_ReplicationStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReplicationStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReplicationStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Progress", wireType) - } - m.Progress = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Progress |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Maximum", wireType) - } - m.Maximum = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Maximum |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Buffered", wireType) - } - m.Buffered = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Buffered |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Queued", wireType) - } - m.Queued = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Queued |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SystemInfo_P2P) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: P2P: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: P2P: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ConnectedPeers", wireType) - } - m.ConnectedPeers = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ConnectedPeers |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SystemInfo_Process) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Process: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Process: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Version = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VcsRef", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VcsRef = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UptimeMS", wireType) - } - m.UptimeMS = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.UptimeMS |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 10: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UserCPUTimeMS", wireType) - } - m.UserCPUTimeMS = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.UserCPUTimeMS |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 11: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SystemCPUTimeMS", wireType) - } - m.SystemCPUTimeMS = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.SystemCPUTimeMS |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 12: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartedAt", wireType) - } - m.StartedAt = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartedAt |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 13: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RlimitCur", wireType) - } - m.RlimitCur = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.RlimitCur |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 14: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumGoroutine", wireType) - } - m.NumGoroutine = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NumGoroutine |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 15: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Nofile", wireType) - } - m.Nofile = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Nofile |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 16: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TooManyOpenFiles", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.TooManyOpenFiles = bool(v != 0) - case 17: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NumCPU", wireType) - } - m.NumCPU = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NumCPU |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 18: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GoVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GoVersion = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 19: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field OperatingSystem", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.OperatingSystem = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 20: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field HostName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.HostName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 21: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Arch", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Arch = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 22: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RlimitMax", wireType) - } - m.RlimitMax = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.RlimitMax |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 23: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PID", wireType) - } - m.PID = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PID |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 24: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PPID", wireType) - } - m.PPID = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PPID |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 25: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Priority", wireType) - } - m.Priority = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Priority |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 26: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UID", wireType) - } - m.UID = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.UID |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 27: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkingDir", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.WorkingDir = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 28: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SystemUsername", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SystemUsername = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PeerList) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: PeerList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PeerList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PeerList_Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PeerList_Reply) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Reply: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Reply: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Peers", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Peers = append(m.Peers, &PeerList_Peer{}) - if err := m.Peers[len(m.Peers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PeerList_Peer) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Peer: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Peer: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Routes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Routes = append(m.Routes, &PeerList_Route{}) - if err := m.Routes[len(m.Routes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Errors", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Errors = append(m.Errors, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType == 0 { - var v PeerList_Feature - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= PeerList_Feature(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Features = append(m.Features, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - var elementCount int - if elementCount != 0 && len(m.Features) == 0 { - m.Features = make([]PeerList_Feature, 0, elementCount) - } - for iNdEx < postIndex { - var v PeerList_Feature - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= PeerList_Feature(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Features = append(m.Features, v) - } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field Features", wireType) - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MinLatency", wireType) - } - m.MinLatency = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MinLatency |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsActive", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IsActive = bool(v != 0) - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Direction", wireType) - } - m.Direction = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Direction |= Direction(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PeerList_Route) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Route: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Route: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field IsActive", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.IsActive = bool(v != 0) - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Direction", wireType) - } - m.Direction = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Direction |= Direction(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Latency", wireType) - } - m.Latency = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Latency |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Streams", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Streams = append(m.Streams, &PeerList_Stream{}) - if err := m.Streams[len(m.Streams)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PeerList_Stream) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Stream: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Stream: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Progress) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Progress: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Progress: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.State = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Doing", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Doing = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field Progress", wireType) - } - var v uint32 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - v = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) - iNdEx += 4 - m.Progress = float32(math.Float32frombits(v)) - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Completed", wireType) - } - m.Completed = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Completed |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Total", wireType) - } - m.Total = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Total |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Delay", wireType) - } - m.Delay = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Delay |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *OutOfStoreMessage) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: OutOfStoreMessage: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: OutOfStoreMessage: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CID", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CID = append(m.CID[:0], dAtA[iNdEx:postIndex]...) - if m.CID == nil { - m.CID = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DevicePK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DevicePK = append(m.DevicePK[:0], dAtA[iNdEx:postIndex]...) - if m.DevicePK == nil { - m.DevicePK = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 1 { - return fmt.Errorf("proto: wrong wireType = %d for field Counter", wireType) - } - m.Counter = 0 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF - } - m.Counter = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Sig", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Sig = append(m.Sig[:0], dAtA[iNdEx:postIndex]...) - if m.Sig == nil { - m.Sig = []byte{} - } - iNdEx = postIndex - case 5: - if wireType != 5 { - return fmt.Errorf("proto: wrong wireType = %d for field Flags", wireType) - } - m.Flags = 0 - if (iNdEx + 4) > l { - return io.ErrUnexpectedEOF - } - m.Flags = uint32(encoding_binary.LittleEndian.Uint32(dAtA[iNdEx:])) - iNdEx += 4 - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EncryptedPayload", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EncryptedPayload = append(m.EncryptedPayload[:0], dAtA[iNdEx:postIndex]...) - if m.EncryptedPayload == nil { - m.EncryptedPayload = []byte{} - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Nonce = append(m.Nonce[:0], dAtA[iNdEx:postIndex]...) - if m.Nonce == nil { - m.Nonce = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *OutOfStoreMessageEnvelope) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: OutOfStoreMessageEnvelope: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: OutOfStoreMessageEnvelope: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Nonce = append(m.Nonce[:0], dAtA[iNdEx:postIndex]...) - if m.Nonce == nil { - m.Nonce = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Box", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Box = append(m.Box[:0], dAtA[iNdEx:postIndex]...) - if m.Box == nil { - m.Box = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupReference", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GroupReference = append(m.GroupReference[:0], dAtA[iNdEx:postIndex]...) - if m.GroupReference == nil { - m.GroupReference = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *OutOfStoreReceive) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: OutOfStoreReceive: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: OutOfStoreReceive: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *OutOfStoreReceive_Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Payload = append(m.Payload[:0], dAtA[iNdEx:postIndex]...) - if m.Payload == nil { - m.Payload = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *OutOfStoreReceive_Reply) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Reply: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Reply: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Message == nil { - m.Message = &OutOfStoreMessage{} - } - if err := m.Message.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cleartext", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Cleartext = append(m.Cleartext[:0], dAtA[iNdEx:postIndex]...) - if m.Cleartext == nil { - m.Cleartext = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupPublicKey", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GroupPublicKey = append(m.GroupPublicKey[:0], dAtA[iNdEx:postIndex]...) - if m.GroupPublicKey == nil { - m.GroupPublicKey = []byte{} - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AlreadyReceived", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.AlreadyReceived = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *OutOfStoreSeal) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: OutOfStoreSeal: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: OutOfStoreSeal: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *OutOfStoreSeal_Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CID", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CID = append(m.CID[:0], dAtA[iNdEx:postIndex]...) - if m.CID == nil { - m.CID = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupPublicKey", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GroupPublicKey = append(m.GroupPublicKey[:0], dAtA[iNdEx:postIndex]...) - if m.GroupPublicKey == nil { - m.GroupPublicKey = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *OutOfStoreSeal_Reply) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Reply: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Reply: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Encrypted", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Encrypted = append(m.Encrypted[:0], dAtA[iNdEx:postIndex]...) - if m.Encrypted == nil { - m.Encrypted = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AccountVerifiedCredentialRegistered) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AccountVerifiedCredentialRegistered: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AccountVerifiedCredentialRegistered: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DevicePK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DevicePK = append(m.DevicePK[:0], dAtA[iNdEx:postIndex]...) - if m.DevicePK == nil { - m.DevicePK = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SignedIdentityPublicKey", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SignedIdentityPublicKey = append(m.SignedIdentityPublicKey[:0], dAtA[iNdEx:postIndex]...) - if m.SignedIdentityPublicKey == nil { - m.SignedIdentityPublicKey = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VerifiedCredential", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VerifiedCredential = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RegistrationDate", wireType) - } - m.RegistrationDate = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.RegistrationDate |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ExpirationDate", wireType) - } - m.ExpirationDate = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ExpirationDate |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identifier", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identifier = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Issuer", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Issuer = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *FirstLastCounters) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: FirstLastCounters: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: FirstLastCounters: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field First", wireType) - } - m.First = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.First |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Last", wireType) - } - m.Last = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Last |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *OrbitDBMessageHeads) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: OrbitDBMessageHeads: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: OrbitDBMessageHeads: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SealedBox", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SealedBox = append(m.SealedBox[:0], dAtA[iNdEx:postIndex]...) - if m.SealedBox == nil { - m.SealedBox = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RawRotation", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RawRotation = append(m.RawRotation[:0], dAtA[iNdEx:postIndex]...) - if m.RawRotation == nil { - m.RawRotation = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *OrbitDBMessageHeads_Box) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Box: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Box: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Heads", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Heads = append(m.Heads[:0], dAtA[iNdEx:postIndex]...) - if m.Heads == nil { - m.Heads = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DevicePK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DevicePK = append(m.DevicePK[:0], dAtA[iNdEx:postIndex]...) - if m.DevicePK == nil { - m.DevicePK = []byte{} - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PeerID", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PeerID = append(m.PeerID[:0], dAtA[iNdEx:postIndex]...) - if m.PeerID == nil { - m.PeerID = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RefreshContactRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RefreshContactRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RefreshContactRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RefreshContactRequest_Peer) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Peer: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Peer: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Addrs", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Addrs = append(m.Addrs, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RefreshContactRequest_Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ContactPK", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ContactPK = append(m.ContactPK[:0], dAtA[iNdEx:postIndex]...) - if m.ContactPK == nil { - m.ContactPK = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Timeout", wireType) - } - m.Timeout = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Timeout |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RefreshContactRequest_Reply) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Reply: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Reply: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PeersFound", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthProtocoltypes - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthProtocoltypes - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PeersFound = append(m.PeersFound, &RefreshContactRequest_Peer{}) - if err := m.PeersFound[len(m.PeersFound)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipProtocoltypes(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthProtocoltypes - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipProtocoltypes(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowProtocoltypes - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthProtocoltypes - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupProtocoltypes - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthProtocoltypes - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthProtocoltypes = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowProtocoltypes = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupProtocoltypes = fmt.Errorf("proto: unexpected end of group") -) diff --git a/pkg/replicationtypes/bertyreplication.pb.go b/pkg/replicationtypes/bertyreplication.pb.go index 8e70fcee..c6fc8b98 100644 --- a/pkg/replicationtypes/bertyreplication.pb.go +++ b/pkg/replicationtypes/bertyreplication.pb.go @@ -1,30 +1,32 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.34.1 +// protoc (unknown) // source: replicationtypes/bertyreplication.proto package replicationtypes import ( protocoltypes "berty.tech/weshnet/pkg/protocoltypes" - fmt "fmt" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" - io "io" - math "math" - math_bits "math/bits" + _ "github.com/srikrsna/protoc-gen-gotag/tagger" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type ReplicatedGroup struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + PublicKey string `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty" gorm:"primaryKey"` SignPub string `protobuf:"bytes,2,opt,name=sign_pub,json=signPub,proto3" json:"sign_pub,omitempty"` LinkKey string `protobuf:"bytes,3,opt,name=link_key,json=linkKey,proto3" json:"link_key,omitempty"` @@ -36,2472 +38,913 @@ type ReplicatedGroup struct { MessageLatestHead string `protobuf:"bytes,105,opt,name=message_latest_head,json=messageLatestHead,proto3" json:"message_latest_head,omitempty"` } -func (m *ReplicatedGroup) Reset() { *m = ReplicatedGroup{} } -func (m *ReplicatedGroup) String() string { return proto.CompactTextString(m) } -func (*ReplicatedGroup) ProtoMessage() {} -func (*ReplicatedGroup) Descriptor() ([]byte, []int) { - return fileDescriptor_e51f26e5bd1c3ec3, []int{0} -} -func (m *ReplicatedGroup) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReplicatedGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReplicatedGroup.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ReplicatedGroup) Reset() { + *x = ReplicatedGroup{} + if protoimpl.UnsafeEnabled { + mi := &file_replicationtypes_bertyreplication_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ReplicatedGroup) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicatedGroup.Merge(m, src) -} -func (m *ReplicatedGroup) XXX_Size() int { - return m.Size() + +func (x *ReplicatedGroup) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ReplicatedGroup) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicatedGroup.DiscardUnknown(m) + +func (*ReplicatedGroup) ProtoMessage() {} + +func (x *ReplicatedGroup) ProtoReflect() protoreflect.Message { + mi := &file_replicationtypes_bertyreplication_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ReplicatedGroup proto.InternalMessageInfo +// Deprecated: Use ReplicatedGroup.ProtoReflect.Descriptor instead. +func (*ReplicatedGroup) Descriptor() ([]byte, []int) { + return file_replicationtypes_bertyreplication_proto_rawDescGZIP(), []int{0} +} -func (m *ReplicatedGroup) GetPublicKey() string { - if m != nil { - return m.PublicKey +func (x *ReplicatedGroup) GetPublicKey() string { + if x != nil { + return x.PublicKey } return "" } -func (m *ReplicatedGroup) GetSignPub() string { - if m != nil { - return m.SignPub +func (x *ReplicatedGroup) GetSignPub() string { + if x != nil { + return x.SignPub } return "" } -func (m *ReplicatedGroup) GetLinkKey() string { - if m != nil { - return m.LinkKey +func (x *ReplicatedGroup) GetLinkKey() string { + if x != nil { + return x.LinkKey } return "" } -func (m *ReplicatedGroup) GetCreatedAt() int64 { - if m != nil { - return m.CreatedAt +func (x *ReplicatedGroup) GetCreatedAt() int64 { + if x != nil { + return x.CreatedAt } return 0 } -func (m *ReplicatedGroup) GetUpdatedAt() int64 { - if m != nil { - return m.UpdatedAt +func (x *ReplicatedGroup) GetUpdatedAt() int64 { + if x != nil { + return x.UpdatedAt } return 0 } -func (m *ReplicatedGroup) GetMetadataEntriesCount() int64 { - if m != nil { - return m.MetadataEntriesCount +func (x *ReplicatedGroup) GetMetadataEntriesCount() int64 { + if x != nil { + return x.MetadataEntriesCount } return 0 } -func (m *ReplicatedGroup) GetMetadataLatestHead() string { - if m != nil { - return m.MetadataLatestHead +func (x *ReplicatedGroup) GetMetadataLatestHead() string { + if x != nil { + return x.MetadataLatestHead } return "" } -func (m *ReplicatedGroup) GetMessageEntriesCount() int64 { - if m != nil { - return m.MessageEntriesCount +func (x *ReplicatedGroup) GetMessageEntriesCount() int64 { + if x != nil { + return x.MessageEntriesCount } return 0 } -func (m *ReplicatedGroup) GetMessageLatestHead() string { - if m != nil { - return m.MessageLatestHead +func (x *ReplicatedGroup) GetMessageLatestHead() string { + if x != nil { + return x.MessageLatestHead } return "" } type ReplicatedGroupToken struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + ReplicatedGroupPublicKey string `protobuf:"bytes,1,opt,name=replicated_group_public_key,json=replicatedGroupPublicKey,proto3" json:"replicated_group_public_key,omitempty" gorm:"index;primaryKey;autoIncrement:false"` ReplicatedGroup *ReplicatedGroup `protobuf:"bytes,2,opt,name=replicated_group,json=replicatedGroup,proto3" json:"replicated_group,omitempty"` TokenIssuer string `protobuf:"bytes,3,opt,name=token_issuer,json=tokenIssuer,proto3" json:"token_issuer,omitempty" gorm:"primaryKey;autoIncrement:false"` - TokenID string `protobuf:"bytes,4,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty" gorm:"primaryKey;autoIncrement:false"` + TokenId string `protobuf:"bytes,4,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty" gorm:"primaryKey;autoIncrement:false"` CreatedAt int64 `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` } -func (m *ReplicatedGroupToken) Reset() { *m = ReplicatedGroupToken{} } -func (m *ReplicatedGroupToken) String() string { return proto.CompactTextString(m) } -func (*ReplicatedGroupToken) ProtoMessage() {} -func (*ReplicatedGroupToken) Descriptor() ([]byte, []int) { - return fileDescriptor_e51f26e5bd1c3ec3, []int{1} -} -func (m *ReplicatedGroupToken) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReplicatedGroupToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReplicatedGroupToken.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ReplicatedGroupToken) Reset() { + *x = ReplicatedGroupToken{} + if protoimpl.UnsafeEnabled { + mi := &file_replicationtypes_bertyreplication_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ReplicatedGroupToken) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicatedGroupToken.Merge(m, src) -} -func (m *ReplicatedGroupToken) XXX_Size() int { - return m.Size() + +func (x *ReplicatedGroupToken) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ReplicatedGroupToken) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicatedGroupToken.DiscardUnknown(m) + +func (*ReplicatedGroupToken) ProtoMessage() {} + +func (x *ReplicatedGroupToken) ProtoReflect() protoreflect.Message { + mi := &file_replicationtypes_bertyreplication_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -var xxx_messageInfo_ReplicatedGroupToken proto.InternalMessageInfo +// Deprecated: Use ReplicatedGroupToken.ProtoReflect.Descriptor instead. +func (*ReplicatedGroupToken) Descriptor() ([]byte, []int) { + return file_replicationtypes_bertyreplication_proto_rawDescGZIP(), []int{1} +} -func (m *ReplicatedGroupToken) GetReplicatedGroupPublicKey() string { - if m != nil { - return m.ReplicatedGroupPublicKey +func (x *ReplicatedGroupToken) GetReplicatedGroupPublicKey() string { + if x != nil { + return x.ReplicatedGroupPublicKey } return "" } -func (m *ReplicatedGroupToken) GetReplicatedGroup() *ReplicatedGroup { - if m != nil { - return m.ReplicatedGroup +func (x *ReplicatedGroupToken) GetReplicatedGroup() *ReplicatedGroup { + if x != nil { + return x.ReplicatedGroup } return nil } -func (m *ReplicatedGroupToken) GetTokenIssuer() string { - if m != nil { - return m.TokenIssuer +func (x *ReplicatedGroupToken) GetTokenIssuer() string { + if x != nil { + return x.TokenIssuer } return "" } -func (m *ReplicatedGroupToken) GetTokenID() string { - if m != nil { - return m.TokenID +func (x *ReplicatedGroupToken) GetTokenId() string { + if x != nil { + return x.TokenId } return "" } -func (m *ReplicatedGroupToken) GetCreatedAt() int64 { - if m != nil { - return m.CreatedAt +func (x *ReplicatedGroupToken) GetCreatedAt() int64 { + if x != nil { + return x.CreatedAt } return 0 } type ReplicationServiceReplicateGroup struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ReplicationServiceReplicateGroup) Reset() { *m = ReplicationServiceReplicateGroup{} } -func (m *ReplicationServiceReplicateGroup) String() string { return proto.CompactTextString(m) } -func (*ReplicationServiceReplicateGroup) ProtoMessage() {} -func (*ReplicationServiceReplicateGroup) Descriptor() ([]byte, []int) { - return fileDescriptor_e51f26e5bd1c3ec3, []int{2} -} -func (m *ReplicationServiceReplicateGroup) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReplicationServiceReplicateGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReplicationServiceReplicateGroup.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ReplicationServiceReplicateGroup) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicationServiceReplicateGroup.Merge(m, src) -} -func (m *ReplicationServiceReplicateGroup) XXX_Size() int { - return m.Size() -} -func (m *ReplicationServiceReplicateGroup) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicationServiceReplicateGroup.DiscardUnknown(m) -} - -var xxx_messageInfo_ReplicationServiceReplicateGroup proto.InternalMessageInfo - -type ReplicationServiceReplicateGroup_Request struct { - Group *protocoltypes.Group `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` -} - -func (m *ReplicationServiceReplicateGroup_Request) Reset() { - *m = ReplicationServiceReplicateGroup_Request{} -} -func (m *ReplicationServiceReplicateGroup_Request) String() string { return proto.CompactTextString(m) } -func (*ReplicationServiceReplicateGroup_Request) ProtoMessage() {} -func (*ReplicationServiceReplicateGroup_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_e51f26e5bd1c3ec3, []int{2, 0} -} -func (m *ReplicationServiceReplicateGroup_Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReplicationServiceReplicateGroup_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReplicationServiceReplicateGroup_Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ReplicationServiceReplicateGroup) Reset() { + *x = ReplicationServiceReplicateGroup{} + if protoimpl.UnsafeEnabled { + mi := &file_replicationtypes_bertyreplication_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ReplicationServiceReplicateGroup_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicationServiceReplicateGroup_Request.Merge(m, src) -} -func (m *ReplicationServiceReplicateGroup_Request) XXX_Size() int { - return m.Size() -} -func (m *ReplicationServiceReplicateGroup_Request) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicationServiceReplicateGroup_Request.DiscardUnknown(m) -} - -var xxx_messageInfo_ReplicationServiceReplicateGroup_Request proto.InternalMessageInfo -func (m *ReplicationServiceReplicateGroup_Request) GetGroup() *protocoltypes.Group { - if m != nil { - return m.Group - } - return nil +func (x *ReplicationServiceReplicateGroup) String() string { + return protoimpl.X.MessageStringOf(x) } -type ReplicationServiceReplicateGroup_Reply struct { - OK bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` -} +func (*ReplicationServiceReplicateGroup) ProtoMessage() {} -func (m *ReplicationServiceReplicateGroup_Reply) Reset() { - *m = ReplicationServiceReplicateGroup_Reply{} -} -func (m *ReplicationServiceReplicateGroup_Reply) String() string { return proto.CompactTextString(m) } -func (*ReplicationServiceReplicateGroup_Reply) ProtoMessage() {} -func (*ReplicationServiceReplicateGroup_Reply) Descriptor() ([]byte, []int) { - return fileDescriptor_e51f26e5bd1c3ec3, []int{2, 1} -} -func (m *ReplicationServiceReplicateGroup_Reply) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReplicationServiceReplicateGroup_Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReplicationServiceReplicateGroup_Reply.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *ReplicationServiceReplicateGroup) ProtoReflect() protoreflect.Message { + mi := &file_replicationtypes_bertyreplication_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *ReplicationServiceReplicateGroup_Reply) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicationServiceReplicateGroup_Reply.Merge(m, src) -} -func (m *ReplicationServiceReplicateGroup_Reply) XXX_Size() int { - return m.Size() -} -func (m *ReplicationServiceReplicateGroup_Reply) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicationServiceReplicateGroup_Reply.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_ReplicationServiceReplicateGroup_Reply proto.InternalMessageInfo - -func (m *ReplicationServiceReplicateGroup_Reply) GetOK() bool { - if m != nil { - return m.OK - } - return false +// Deprecated: Use ReplicationServiceReplicateGroup.ProtoReflect.Descriptor instead. +func (*ReplicationServiceReplicateGroup) Descriptor() ([]byte, []int) { + return file_replicationtypes_bertyreplication_proto_rawDescGZIP(), []int{2} } type ReplicateGlobalStats struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ReplicateGlobalStats) Reset() { *m = ReplicateGlobalStats{} } -func (m *ReplicateGlobalStats) String() string { return proto.CompactTextString(m) } -func (*ReplicateGlobalStats) ProtoMessage() {} -func (*ReplicateGlobalStats) Descriptor() ([]byte, []int) { - return fileDescriptor_e51f26e5bd1c3ec3, []int{3} -} -func (m *ReplicateGlobalStats) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReplicateGlobalStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReplicateGlobalStats.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ReplicateGlobalStats) Reset() { + *x = ReplicateGlobalStats{} + if protoimpl.UnsafeEnabled { + mi := &file_replicationtypes_bertyreplication_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ReplicateGlobalStats) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicateGlobalStats.Merge(m, src) -} -func (m *ReplicateGlobalStats) XXX_Size() int { - return m.Size() -} -func (m *ReplicateGlobalStats) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicateGlobalStats.DiscardUnknown(m) -} -var xxx_messageInfo_ReplicateGlobalStats proto.InternalMessageInfo - -type ReplicateGlobalStats_Request struct { +func (x *ReplicateGlobalStats) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ReplicateGlobalStats_Request) Reset() { *m = ReplicateGlobalStats_Request{} } -func (m *ReplicateGlobalStats_Request) String() string { return proto.CompactTextString(m) } -func (*ReplicateGlobalStats_Request) ProtoMessage() {} -func (*ReplicateGlobalStats_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_e51f26e5bd1c3ec3, []int{3, 0} -} -func (m *ReplicateGlobalStats_Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReplicateGlobalStats_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReplicateGlobalStats_Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ReplicateGlobalStats_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicateGlobalStats_Request.Merge(m, src) -} -func (m *ReplicateGlobalStats_Request) XXX_Size() int { - return m.Size() -} -func (m *ReplicateGlobalStats_Request) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicateGlobalStats_Request.DiscardUnknown(m) -} - -var xxx_messageInfo_ReplicateGlobalStats_Request proto.InternalMessageInfo - -type ReplicateGlobalStats_Reply struct { - StartedAt int64 `protobuf:"varint,1,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` - ReplicatedGroups int64 `protobuf:"varint,2,opt,name=replicated_groups,json=replicatedGroups,proto3" json:"replicated_groups,omitempty"` - TotalMetadataEntries int64 `protobuf:"varint,3,opt,name=total_metadata_entries,json=totalMetadataEntries,proto3" json:"total_metadata_entries,omitempty"` - TotalMessageEntries int64 `protobuf:"varint,4,opt,name=total_message_entries,json=totalMessageEntries,proto3" json:"total_message_entries,omitempty"` -} +func (*ReplicateGlobalStats) ProtoMessage() {} -func (m *ReplicateGlobalStats_Reply) Reset() { *m = ReplicateGlobalStats_Reply{} } -func (m *ReplicateGlobalStats_Reply) String() string { return proto.CompactTextString(m) } -func (*ReplicateGlobalStats_Reply) ProtoMessage() {} -func (*ReplicateGlobalStats_Reply) Descriptor() ([]byte, []int) { - return fileDescriptor_e51f26e5bd1c3ec3, []int{3, 1} -} -func (m *ReplicateGlobalStats_Reply) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReplicateGlobalStats_Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReplicateGlobalStats_Reply.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *ReplicateGlobalStats) ProtoReflect() protoreflect.Message { + mi := &file_replicationtypes_bertyreplication_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil - } -} -func (m *ReplicateGlobalStats_Reply) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicateGlobalStats_Reply.Merge(m, src) -} -func (m *ReplicateGlobalStats_Reply) XXX_Size() int { - return m.Size() -} -func (m *ReplicateGlobalStats_Reply) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicateGlobalStats_Reply.DiscardUnknown(m) -} - -var xxx_messageInfo_ReplicateGlobalStats_Reply proto.InternalMessageInfo - -func (m *ReplicateGlobalStats_Reply) GetStartedAt() int64 { - if m != nil { - return m.StartedAt - } - return 0 -} - -func (m *ReplicateGlobalStats_Reply) GetReplicatedGroups() int64 { - if m != nil { - return m.ReplicatedGroups - } - return 0 -} - -func (m *ReplicateGlobalStats_Reply) GetTotalMetadataEntries() int64 { - if m != nil { - return m.TotalMetadataEntries + return ms } - return 0 + return mi.MessageOf(x) } -func (m *ReplicateGlobalStats_Reply) GetTotalMessageEntries() int64 { - if m != nil { - return m.TotalMessageEntries - } - return 0 +// Deprecated: Use ReplicateGlobalStats.ProtoReflect.Descriptor instead. +func (*ReplicateGlobalStats) Descriptor() ([]byte, []int) { + return file_replicationtypes_bertyreplication_proto_rawDescGZIP(), []int{3} } type ReplicateGroupStats struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ReplicateGroupStats) Reset() { *m = ReplicateGroupStats{} } -func (m *ReplicateGroupStats) String() string { return proto.CompactTextString(m) } -func (*ReplicateGroupStats) ProtoMessage() {} -func (*ReplicateGroupStats) Descriptor() ([]byte, []int) { - return fileDescriptor_e51f26e5bd1c3ec3, []int{4} -} -func (m *ReplicateGroupStats) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReplicateGroupStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReplicateGroupStats.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *ReplicateGroupStats) Reset() { + *x = ReplicateGroupStats{} + if protoimpl.UnsafeEnabled { + mi := &file_replicationtypes_bertyreplication_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *ReplicateGroupStats) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicateGroupStats.Merge(m, src) -} -func (m *ReplicateGroupStats) XXX_Size() int { - return m.Size() -} -func (m *ReplicateGroupStats) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicateGroupStats.DiscardUnknown(m) -} - -var xxx_messageInfo_ReplicateGroupStats proto.InternalMessageInfo - -type ReplicateGroupStats_Request struct { - GroupPublicKey string `protobuf:"bytes,1,opt,name=group_public_key,json=groupPublicKey,proto3" json:"group_public_key,omitempty"` -} -func (m *ReplicateGroupStats_Request) Reset() { *m = ReplicateGroupStats_Request{} } -func (m *ReplicateGroupStats_Request) String() string { return proto.CompactTextString(m) } -func (*ReplicateGroupStats_Request) ProtoMessage() {} -func (*ReplicateGroupStats_Request) Descriptor() ([]byte, []int) { - return fileDescriptor_e51f26e5bd1c3ec3, []int{4, 0} -} -func (m *ReplicateGroupStats_Request) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReplicateGroupStats_Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReplicateGroupStats_Request.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ReplicateGroupStats_Request) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicateGroupStats_Request.Merge(m, src) -} -func (m *ReplicateGroupStats_Request) XXX_Size() int { - return m.Size() -} -func (m *ReplicateGroupStats_Request) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicateGroupStats_Request.DiscardUnknown(m) +func (x *ReplicateGroupStats) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_ReplicateGroupStats_Request proto.InternalMessageInfo +func (*ReplicateGroupStats) ProtoMessage() {} -func (m *ReplicateGroupStats_Request) GetGroupPublicKey() string { - if m != nil { - return m.GroupPublicKey - } - return "" -} - -type ReplicateGroupStats_Reply struct { - Group *ReplicatedGroup `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` -} - -func (m *ReplicateGroupStats_Reply) Reset() { *m = ReplicateGroupStats_Reply{} } -func (m *ReplicateGroupStats_Reply) String() string { return proto.CompactTextString(m) } -func (*ReplicateGroupStats_Reply) ProtoMessage() {} -func (*ReplicateGroupStats_Reply) Descriptor() ([]byte, []int) { - return fileDescriptor_e51f26e5bd1c3ec3, []int{4, 1} -} -func (m *ReplicateGroupStats_Reply) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReplicateGroupStats_Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReplicateGroupStats_Reply.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (x *ReplicateGroupStats) ProtoReflect() protoreflect.Message { + mi := &file_replicationtypes_bertyreplication_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } + return mi.MessageOf(x) } -func (m *ReplicateGroupStats_Reply) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicateGroupStats_Reply.Merge(m, src) -} -func (m *ReplicateGroupStats_Reply) XXX_Size() int { - return m.Size() -} -func (m *ReplicateGroupStats_Reply) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicateGroupStats_Reply.DiscardUnknown(m) + +// Deprecated: Use ReplicateGroupStats.ProtoReflect.Descriptor instead. +func (*ReplicateGroupStats) Descriptor() ([]byte, []int) { + return file_replicationtypes_bertyreplication_proto_rawDescGZIP(), []int{4} } -var xxx_messageInfo_ReplicateGroupStats_Reply proto.InternalMessageInfo +type ReplicationServiceReplicateGroup_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ReplicateGroupStats_Reply) GetGroup() *ReplicatedGroup { - if m != nil { - return m.Group - } - return nil + Group *protocoltypes.Group `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` } -func init() { - proto.RegisterType((*ReplicatedGroup)(nil), "weshnet.replication.v1.ReplicatedGroup") - proto.RegisterType((*ReplicatedGroupToken)(nil), "weshnet.replication.v1.ReplicatedGroupToken") - proto.RegisterType((*ReplicationServiceReplicateGroup)(nil), "weshnet.replication.v1.ReplicationServiceReplicateGroup") - proto.RegisterType((*ReplicationServiceReplicateGroup_Request)(nil), "weshnet.replication.v1.ReplicationServiceReplicateGroup.Request") - proto.RegisterType((*ReplicationServiceReplicateGroup_Reply)(nil), "weshnet.replication.v1.ReplicationServiceReplicateGroup.Reply") - proto.RegisterType((*ReplicateGlobalStats)(nil), "weshnet.replication.v1.ReplicateGlobalStats") - proto.RegisterType((*ReplicateGlobalStats_Request)(nil), "weshnet.replication.v1.ReplicateGlobalStats.Request") - proto.RegisterType((*ReplicateGlobalStats_Reply)(nil), "weshnet.replication.v1.ReplicateGlobalStats.Reply") - proto.RegisterType((*ReplicateGroupStats)(nil), "weshnet.replication.v1.ReplicateGroupStats") - proto.RegisterType((*ReplicateGroupStats_Request)(nil), "weshnet.replication.v1.ReplicateGroupStats.Request") - proto.RegisterType((*ReplicateGroupStats_Reply)(nil), "weshnet.replication.v1.ReplicateGroupStats.Reply") -} - -func init() { - proto.RegisterFile("replicationtypes/bertyreplication.proto", fileDescriptor_e51f26e5bd1c3ec3) -} - -var fileDescriptor_e51f26e5bd1c3ec3 = []byte{ - // 783 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0xcd, 0x4e, 0xdb, 0x4a, - 0x14, 0xc6, 0xf1, 0x85, 0x90, 0xe1, 0x8a, 0x9f, 0x49, 0x40, 0xb9, 0xbe, 0x22, 0x41, 0x96, 0xae, - 0xe0, 0x0a, 0x29, 0x29, 0x21, 0x2b, 0x50, 0xab, 0x26, 0xfd, 0xa1, 0x08, 0x2a, 0x90, 0xe9, 0xaa, - 0x1b, 0x6b, 0x62, 0x0f, 0x8e, 0x15, 0xc7, 0x76, 0xed, 0x31, 0xad, 0x17, 0x95, 0xd8, 0x75, 0x5b, - 0xb1, 0xea, 0x3b, 0xf4, 0x19, 0xba, 0xef, 0x92, 0x65, 0x57, 0x51, 0x1b, 0xde, 0x80, 0x27, 0xa8, - 0x66, 0xc6, 0x76, 0x62, 0x13, 0x04, 0xa8, 0xab, 0xc4, 0xe7, 0x3b, 0xe7, 0x3b, 0x3f, 0xdf, 0x39, - 0x1a, 0xb0, 0xee, 0x61, 0xd7, 0x32, 0x35, 0x44, 0x4c, 0xc7, 0x26, 0xa1, 0x8b, 0xfd, 0x7a, 0x07, - 0x7b, 0x24, 0x1c, 0xb3, 0xd6, 0x5c, 0xcf, 0x21, 0x0e, 0x5c, 0x79, 0x8f, 0xfd, 0xae, 0x8d, 0x49, - 0x6d, 0x1c, 0x3a, 0xdb, 0x92, 0x4a, 0x86, 0x63, 0x38, 0xcc, 0xa5, 0x4e, 0xff, 0x71, 0x6f, 0xa9, - 0xc8, 0x7e, 0x34, 0xc7, 0x62, 0x9c, 0xdc, 0x28, 0x7f, 0x12, 0xc1, 0x82, 0x12, 0x45, 0x63, 0x7d, - 0xcf, 0x73, 0x02, 0x17, 0x36, 0x01, 0x70, 0x83, 0x8e, 0x65, 0x6a, 0x6a, 0x0f, 0x87, 0x65, 0x61, - 0x4d, 0xd8, 0x28, 0xb4, 0x97, 0xaf, 0x07, 0xd5, 0x25, 0xc3, 0xf1, 0xfa, 0x3b, 0xb2, 0xeb, 0x99, - 0x7d, 0xe4, 0x85, 0x07, 0x38, 0x94, 0x95, 0x02, 0x77, 0x3c, 0xc0, 0x21, 0xfc, 0x07, 0xcc, 0xfa, - 0xa6, 0x61, 0xab, 0x6e, 0xd0, 0x29, 0xe7, 0x68, 0x8c, 0x92, 0xa7, 0xdf, 0xc7, 0x41, 0x87, 0x42, - 0x96, 0x69, 0xf7, 0x18, 0x9d, 0xc8, 0x21, 0xfa, 0x4d, 0xa3, 0x56, 0x01, 0xd0, 0x3c, 0x4c, 0x73, - 0xab, 0x88, 0x94, 0xf5, 0x35, 0x61, 0x43, 0x54, 0x0a, 0x91, 0xa5, 0x45, 0x28, 0x1c, 0xb8, 0x7a, - 0x0c, 0x63, 0x0e, 0x47, 0x96, 0x16, 0x81, 0x4d, 0xb0, 0xd2, 0xc7, 0x04, 0xe9, 0x88, 0x20, 0x15, - 0xdb, 0xc4, 0x33, 0xb1, 0xaf, 0x6a, 0x4e, 0x60, 0x93, 0xf2, 0x29, 0x73, 0x2d, 0xc5, 0xe8, 0x0b, - 0x0e, 0x3e, 0xa3, 0x18, 0x7c, 0x04, 0x12, 0xbb, 0x6a, 0x21, 0x82, 0x7d, 0xa2, 0x76, 0x31, 0xd2, - 0xcb, 0x06, 0x2b, 0x0d, 0xc6, 0xd8, 0x21, 0x83, 0x5e, 0x61, 0xa4, 0xc3, 0x06, 0x58, 0xee, 0x63, - 0xdf, 0x47, 0x06, 0xce, 0xa4, 0xe9, 0xb2, 0x34, 0xc5, 0x08, 0x4c, 0x65, 0xa9, 0x81, 0xd8, 0x9c, - 0x4a, 0x62, 0xb2, 0x24, 0x4b, 0x11, 0x34, 0xca, 0x21, 0x7f, 0x11, 0x41, 0x29, 0xa3, 0xc4, 0x1b, - 0xa7, 0x87, 0x6d, 0x68, 0x83, 0x7f, 0xbd, 0xc4, 0xae, 0x1a, 0x14, 0x50, 0x6f, 0xe8, 0x53, 0xbf, - 0x1e, 0x54, 0x37, 0xb9, 0x3e, 0xa6, 0xad, 0xe3, 0x0f, 0xbb, 0x23, 0x95, 0x76, 0x51, 0x40, 0x9c, - 0x7d, 0x5b, 0xf3, 0x70, 0x1f, 0xdb, 0x64, 0xe7, 0x14, 0x59, 0x3e, 0x96, 0x95, 0xb2, 0x97, 0xce, - 0x75, 0x9c, 0x08, 0xa9, 0x80, 0xc5, 0x6c, 0x3e, 0x26, 0xe8, 0x5c, 0x63, 0xbd, 0x36, 0x79, 0xe1, - 0x6a, 0x99, 0xba, 0x95, 0x85, 0x0c, 0x39, 0x3c, 0x04, 0x7f, 0x13, 0xda, 0x8c, 0x6a, 0xfa, 0x7e, - 0x80, 0x3d, 0xbe, 0x05, 0xed, 0xff, 0xaf, 0x07, 0xd5, 0xff, 0xb2, 0x4b, 0x35, 0xb9, 0xdc, 0x39, - 0x16, 0xbe, 0xcf, 0xa2, 0xe1, 0x11, 0x98, 0x8d, 0xd8, 0xf4, 0xf2, 0x5f, 0x8c, 0xa9, 0x39, 0x1c, - 0x54, 0xf3, 0x6c, 0x5c, 0xfb, 0xcf, 0xef, 0x4f, 0x9a, 0xe7, 0xa4, 0x7a, 0x66, 0x0b, 0xa7, 0x33, - 0x5b, 0x28, 0x9f, 0x0b, 0x60, 0x4d, 0x19, 0x75, 0x7c, 0x82, 0xbd, 0x33, 0x53, 0xc3, 0x49, 0xd3, - 0xac, 0x45, 0x69, 0x17, 0xe4, 0x15, 0xfc, 0x2e, 0xc0, 0x3e, 0x5d, 0xb0, 0x69, 0x3e, 0x36, 0x81, - 0x8d, 0x4d, 0x4a, 0xc6, 0x16, 0x5f, 0x20, 0x9d, 0x19, 0x9f, 0x14, 0x77, 0x94, 0xaa, 0x60, 0x9a, - 0xd2, 0x85, 0x70, 0x05, 0xe4, 0x9c, 0x1e, 0x8b, 0x9b, 0x6d, 0xcf, 0x0c, 0x07, 0xd5, 0xdc, 0xd1, - 0x81, 0x92, 0x73, 0x7a, 0xf2, 0x2f, 0x61, 0x6c, 0x3b, 0xf6, 0x2c, 0xa7, 0x83, 0xac, 0x13, 0x82, - 0x88, 0x2f, 0x15, 0x92, 0xb4, 0xd2, 0x37, 0x21, 0x66, 0x59, 0x05, 0xc0, 0x27, 0xc8, 0x8b, 0xfa, - 0x11, 0x78, 0x3f, 0x91, 0xa5, 0x45, 0xe0, 0x26, 0x58, 0xca, 0x2a, 0xec, 0x33, 0x89, 0x45, 0x65, - 0x31, 0xa3, 0x9c, 0x4f, 0x6f, 0x8c, 0x38, 0x04, 0x59, 0x6a, 0xf6, 0xd2, 0x98, 0x88, 0xa2, 0x52, - 0x62, 0xe8, 0xeb, 0xf4, 0xa1, 0xd1, 0x8b, 0x89, 0xa3, 0x52, 0x77, 0xc3, 0xf4, 0x12, 0x95, 0x62, - 0x14, 0x34, 0x7e, 0x36, 0xf2, 0x85, 0x00, 0x8a, 0xe9, 0xa1, 0xf2, 0x16, 0xb7, 0x47, 0x93, 0xdd, - 0x00, 0x8b, 0x93, 0x0f, 0x40, 0x99, 0x37, 0x52, 0x5b, 0x2c, 0xbd, 0x8c, 0x67, 0xf1, 0x38, 0x2d, - 0xc6, 0xbd, 0x77, 0x98, 0x47, 0x35, 0xbe, 0x8a, 0x00, 0xde, 0xd4, 0x1e, 0x5e, 0x08, 0x60, 0x3e, - 0x5d, 0x2b, 0x7c, 0x7a, 0x17, 0xf3, 0x6d, 0xab, 0x53, 0x8b, 0x05, 0x7c, 0xf2, 0x07, 0x0c, 0xb4, - 0xd5, 0xf3, 0x5b, 0x96, 0x04, 0x36, 0xef, 0x6c, 0x7a, 0xcc, 0x3b, 0x29, 0xa7, 0xf1, 0xc0, 0x28, - 0x5a, 0xc2, 0xc7, 0x89, 0x12, 0xc2, 0xed, 0xbb, 0xa9, 0x12, 0xe7, 0x24, 0xff, 0xd6, 0xc3, 0x82, - 0x5c, 0x2b, 0x6c, 0xb7, 0xbe, 0x0f, 0x2b, 0xc2, 0xe5, 0xb0, 0x22, 0xfc, 0x1c, 0x56, 0x84, 0xcf, - 0x57, 0x95, 0xa9, 0xcb, 0xab, 0xca, 0xd4, 0x8f, 0xab, 0xca, 0xd4, 0xdb, 0x75, 0xf6, 0x86, 0xd6, - 0x08, 0xd6, 0xba, 0xf5, 0x88, 0xb6, 0xee, 0xf6, 0x8c, 0x7a, 0xf6, 0xad, 0xed, 0xcc, 0xb0, 0x23, - 0xdd, 0xfe, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x12, 0xc4, 0xd3, 0xed, 0x86, 0x07, 0x00, 0x00, -} - -func (m *ReplicatedGroup) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReplicatedGroup) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReplicatedGroup) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.MessageLatestHead) > 0 { - i -= len(m.MessageLatestHead) - copy(dAtA[i:], m.MessageLatestHead) - i = encodeVarintBertyreplication(dAtA, i, uint64(len(m.MessageLatestHead))) - i-- - dAtA[i] = 0x6 - i-- - dAtA[i] = 0xca - } - if m.MessageEntriesCount != 0 { - i = encodeVarintBertyreplication(dAtA, i, uint64(m.MessageEntriesCount)) - i-- - dAtA[i] = 0x6 - i-- - dAtA[i] = 0xc0 - } - if len(m.MetadataLatestHead) > 0 { - i -= len(m.MetadataLatestHead) - copy(dAtA[i:], m.MetadataLatestHead) - i = encodeVarintBertyreplication(dAtA, i, uint64(len(m.MetadataLatestHead))) - i-- - dAtA[i] = 0x6 - i-- - dAtA[i] = 0xba +func (x *ReplicationServiceReplicateGroup_Request) Reset() { + *x = ReplicationServiceReplicateGroup_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_replicationtypes_bertyreplication_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if m.MetadataEntriesCount != 0 { - i = encodeVarintBertyreplication(dAtA, i, uint64(m.MetadataEntriesCount)) - i-- - dAtA[i] = 0x6 - i-- - dAtA[i] = 0xb0 - } - if m.UpdatedAt != 0 { - i = encodeVarintBertyreplication(dAtA, i, uint64(m.UpdatedAt)) - i-- - dAtA[i] = 0x6 - i-- - dAtA[i] = 0xa8 - } - if m.CreatedAt != 0 { - i = encodeVarintBertyreplication(dAtA, i, uint64(m.CreatedAt)) - i-- - dAtA[i] = 0x6 - i-- - dAtA[i] = 0xa0 - } - if len(m.LinkKey) > 0 { - i -= len(m.LinkKey) - copy(dAtA[i:], m.LinkKey) - i = encodeVarintBertyreplication(dAtA, i, uint64(len(m.LinkKey))) - i-- - dAtA[i] = 0x1a - } - if len(m.SignPub) > 0 { - i -= len(m.SignPub) - copy(dAtA[i:], m.SignPub) - i = encodeVarintBertyreplication(dAtA, i, uint64(len(m.SignPub))) - i-- - dAtA[i] = 0x12 - } - if len(m.PublicKey) > 0 { - i -= len(m.PublicKey) - copy(dAtA[i:], m.PublicKey) - i = encodeVarintBertyreplication(dAtA, i, uint64(len(m.PublicKey))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil } -func (m *ReplicatedGroupToken) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (x *ReplicationServiceReplicateGroup_Request) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ReplicatedGroupToken) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*ReplicationServiceReplicateGroup_Request) ProtoMessage() {} -func (m *ReplicatedGroupToken) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.CreatedAt != 0 { - i = encodeVarintBertyreplication(dAtA, i, uint64(m.CreatedAt)) - i-- - dAtA[i] = 0x28 - } - if len(m.TokenID) > 0 { - i -= len(m.TokenID) - copy(dAtA[i:], m.TokenID) - i = encodeVarintBertyreplication(dAtA, i, uint64(len(m.TokenID))) - i-- - dAtA[i] = 0x22 - } - if len(m.TokenIssuer) > 0 { - i -= len(m.TokenIssuer) - copy(dAtA[i:], m.TokenIssuer) - i = encodeVarintBertyreplication(dAtA, i, uint64(len(m.TokenIssuer))) - i-- - dAtA[i] = 0x1a - } - if m.ReplicatedGroup != nil { - { - size, err := m.ReplicatedGroup.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBertyreplication(dAtA, i, uint64(size)) +func (x *ReplicationServiceReplicateGroup_Request) ProtoReflect() protoreflect.Message { + mi := &file_replicationtypes_bertyreplication_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - i-- - dAtA[i] = 0x12 - } - if len(m.ReplicatedGroupPublicKey) > 0 { - i -= len(m.ReplicatedGroupPublicKey) - copy(dAtA[i:], m.ReplicatedGroupPublicKey) - i = encodeVarintBertyreplication(dAtA, i, uint64(len(m.ReplicatedGroupPublicKey))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ReplicationServiceReplicateGroup) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + return ms } - return dAtA[:n], nil -} - -func (m *ReplicationServiceReplicateGroup) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return mi.MessageOf(x) } -func (m *ReplicationServiceReplicateGroup) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil +// Deprecated: Use ReplicationServiceReplicateGroup_Request.ProtoReflect.Descriptor instead. +func (*ReplicationServiceReplicateGroup_Request) Descriptor() ([]byte, []int) { + return file_replicationtypes_bertyreplication_proto_rawDescGZIP(), []int{2, 0} } -func (m *ReplicationServiceReplicateGroup_Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *ReplicationServiceReplicateGroup_Request) GetGroup() *protocoltypes.Group { + if x != nil { + return x.Group } - return dAtA[:n], nil + return nil } -func (m *ReplicationServiceReplicateGroup_Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +type ReplicationServiceReplicateGroup_Reply struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ReplicationServiceReplicateGroup_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Group != nil { - { - size, err := m.Group.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBertyreplication(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil + Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` } -func (m *ReplicationServiceReplicateGroup_Reply) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *ReplicationServiceReplicateGroup_Reply) Reset() { + *x = ReplicationServiceReplicateGroup_Reply{} + if protoimpl.UnsafeEnabled { + mi := &file_replicationtypes_bertyreplication_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return dAtA[:n], nil } -func (m *ReplicationServiceReplicateGroup_Reply) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *ReplicationServiceReplicateGroup_Reply) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ReplicationServiceReplicateGroup_Reply) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.OK { - i-- - if m.OK { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} +func (*ReplicationServiceReplicateGroup_Reply) ProtoMessage() {} -func (m *ReplicateGlobalStats) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *ReplicationServiceReplicateGroup_Reply) ProtoReflect() protoreflect.Message { + mi := &file_replicationtypes_bertyreplication_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return dAtA[:n], nil -} - -func (m *ReplicateGlobalStats) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return mi.MessageOf(x) } -func (m *ReplicateGlobalStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil +// Deprecated: Use ReplicationServiceReplicateGroup_Reply.ProtoReflect.Descriptor instead. +func (*ReplicationServiceReplicateGroup_Reply) Descriptor() ([]byte, []int) { + return file_replicationtypes_bertyreplication_proto_rawDescGZIP(), []int{2, 1} } -func (m *ReplicateGlobalStats_Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *ReplicationServiceReplicateGroup_Reply) GetOk() bool { + if x != nil { + return x.Ok } - return dAtA[:n], nil -} - -func (m *ReplicateGlobalStats_Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return false } -func (m *ReplicateGlobalStats_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil +type ReplicateGlobalStats_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } -func (m *ReplicateGlobalStats_Reply) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *ReplicateGlobalStats_Request) Reset() { + *x = ReplicateGlobalStats_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_replicationtypes_bertyreplication_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return dAtA[:n], nil } -func (m *ReplicateGlobalStats_Reply) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *ReplicateGlobalStats_Request) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ReplicateGlobalStats_Reply) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.TotalMessageEntries != 0 { - i = encodeVarintBertyreplication(dAtA, i, uint64(m.TotalMessageEntries)) - i-- - dAtA[i] = 0x20 - } - if m.TotalMetadataEntries != 0 { - i = encodeVarintBertyreplication(dAtA, i, uint64(m.TotalMetadataEntries)) - i-- - dAtA[i] = 0x18 - } - if m.ReplicatedGroups != 0 { - i = encodeVarintBertyreplication(dAtA, i, uint64(m.ReplicatedGroups)) - i-- - dAtA[i] = 0x10 - } - if m.StartedAt != 0 { - i = encodeVarintBertyreplication(dAtA, i, uint64(m.StartedAt)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} +func (*ReplicateGlobalStats_Request) ProtoMessage() {} -func (m *ReplicateGroupStats) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *ReplicateGlobalStats_Request) ProtoReflect() protoreflect.Message { + mi := &file_replicationtypes_bertyreplication_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return dAtA[:n], nil + return mi.MessageOf(x) } -func (m *ReplicateGroupStats) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReplicateGroupStats) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil +// Deprecated: Use ReplicateGlobalStats_Request.ProtoReflect.Descriptor instead. +func (*ReplicateGlobalStats_Request) Descriptor() ([]byte, []int) { + return file_replicationtypes_bertyreplication_proto_rawDescGZIP(), []int{3, 0} } -func (m *ReplicateGroupStats_Request) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} +type ReplicateGlobalStats_Reply struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ReplicateGroupStats_Request) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + StartedAt int64 `protobuf:"varint,1,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` + ReplicatedGroups int64 `protobuf:"varint,2,opt,name=replicated_groups,json=replicatedGroups,proto3" json:"replicated_groups,omitempty"` + TotalMetadataEntries int64 `protobuf:"varint,3,opt,name=total_metadata_entries,json=totalMetadataEntries,proto3" json:"total_metadata_entries,omitempty"` + TotalMessageEntries int64 `protobuf:"varint,4,opt,name=total_message_entries,json=totalMessageEntries,proto3" json:"total_message_entries,omitempty"` } -func (m *ReplicateGroupStats_Request) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.GroupPublicKey) > 0 { - i -= len(m.GroupPublicKey) - copy(dAtA[i:], m.GroupPublicKey) - i = encodeVarintBertyreplication(dAtA, i, uint64(len(m.GroupPublicKey))) - i-- - dAtA[i] = 0xa +func (x *ReplicateGlobalStats_Reply) Reset() { + *x = ReplicateGlobalStats_Reply{} + if protoimpl.UnsafeEnabled { + mi := &file_replicationtypes_bertyreplication_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return len(dAtA) - i, nil } -func (m *ReplicateGroupStats_Reply) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil +func (x *ReplicateGlobalStats_Reply) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ReplicateGroupStats_Reply) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} +func (*ReplicateGlobalStats_Reply) ProtoMessage() {} -func (m *ReplicateGroupStats_Reply) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Group != nil { - { - size, err := m.Group.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintBertyreplication(dAtA, i, uint64(size)) +func (x *ReplicateGlobalStats_Reply) ProtoReflect() protoreflect.Message { + mi := &file_replicationtypes_bertyreplication_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - i-- - dAtA[i] = 0xa + return ms } - return len(dAtA) - i, nil + return mi.MessageOf(x) } -func encodeVarintBertyreplication(dAtA []byte, offset int, v uint64) int { - offset -= sovBertyreplication(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *ReplicatedGroup) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.PublicKey) - if l > 0 { - n += 1 + l + sovBertyreplication(uint64(l)) - } - l = len(m.SignPub) - if l > 0 { - n += 1 + l + sovBertyreplication(uint64(l)) - } - l = len(m.LinkKey) - if l > 0 { - n += 1 + l + sovBertyreplication(uint64(l)) - } - if m.CreatedAt != 0 { - n += 2 + sovBertyreplication(uint64(m.CreatedAt)) - } - if m.UpdatedAt != 0 { - n += 2 + sovBertyreplication(uint64(m.UpdatedAt)) - } - if m.MetadataEntriesCount != 0 { - n += 2 + sovBertyreplication(uint64(m.MetadataEntriesCount)) - } - l = len(m.MetadataLatestHead) - if l > 0 { - n += 2 + l + sovBertyreplication(uint64(l)) - } - if m.MessageEntriesCount != 0 { - n += 2 + sovBertyreplication(uint64(m.MessageEntriesCount)) - } - l = len(m.MessageLatestHead) - if l > 0 { - n += 2 + l + sovBertyreplication(uint64(l)) - } - return n +// Deprecated: Use ReplicateGlobalStats_Reply.ProtoReflect.Descriptor instead. +func (*ReplicateGlobalStats_Reply) Descriptor() ([]byte, []int) { + return file_replicationtypes_bertyreplication_proto_rawDescGZIP(), []int{3, 1} } -func (m *ReplicatedGroupToken) Size() (n int) { - if m == nil { - return 0 +func (x *ReplicateGlobalStats_Reply) GetStartedAt() int64 { + if x != nil { + return x.StartedAt } - var l int - _ = l - l = len(m.ReplicatedGroupPublicKey) - if l > 0 { - n += 1 + l + sovBertyreplication(uint64(l)) - } - if m.ReplicatedGroup != nil { - l = m.ReplicatedGroup.Size() - n += 1 + l + sovBertyreplication(uint64(l)) - } - l = len(m.TokenIssuer) - if l > 0 { - n += 1 + l + sovBertyreplication(uint64(l)) - } - l = len(m.TokenID) - if l > 0 { - n += 1 + l + sovBertyreplication(uint64(l)) - } - if m.CreatedAt != 0 { - n += 1 + sovBertyreplication(uint64(m.CreatedAt)) - } - return n + return 0 } -func (m *ReplicationServiceReplicateGroup) Size() (n int) { - if m == nil { - return 0 +func (x *ReplicateGlobalStats_Reply) GetReplicatedGroups() int64 { + if x != nil { + return x.ReplicatedGroups } - var l int - _ = l - return n + return 0 } -func (m *ReplicationServiceReplicateGroup_Request) Size() (n int) { - if m == nil { - return 0 +func (x *ReplicateGlobalStats_Reply) GetTotalMetadataEntries() int64 { + if x != nil { + return x.TotalMetadataEntries } - var l int - _ = l - if m.Group != nil { - l = m.Group.Size() - n += 1 + l + sovBertyreplication(uint64(l)) - } - return n + return 0 } -func (m *ReplicationServiceReplicateGroup_Reply) Size() (n int) { - if m == nil { - return 0 +func (x *ReplicateGlobalStats_Reply) GetTotalMessageEntries() int64 { + if x != nil { + return x.TotalMessageEntries } - var l int - _ = l - if m.OK { - n += 2 - } - return n + return 0 } -func (m *ReplicateGlobalStats) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} +type ReplicateGroupStats_Request struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *ReplicateGlobalStats_Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n + GroupPublicKey string `protobuf:"bytes,1,opt,name=group_public_key,json=groupPublicKey,proto3" json:"group_public_key,omitempty"` } -func (m *ReplicateGlobalStats_Reply) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.StartedAt != 0 { - n += 1 + sovBertyreplication(uint64(m.StartedAt)) - } - if m.ReplicatedGroups != 0 { - n += 1 + sovBertyreplication(uint64(m.ReplicatedGroups)) - } - if m.TotalMetadataEntries != 0 { - n += 1 + sovBertyreplication(uint64(m.TotalMetadataEntries)) +func (x *ReplicateGroupStats_Request) Reset() { + *x = ReplicateGroupStats_Request{} + if protoimpl.UnsafeEnabled { + mi := &file_replicationtypes_bertyreplication_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - if m.TotalMessageEntries != 0 { - n += 1 + sovBertyreplication(uint64(m.TotalMessageEntries)) - } - return n } -func (m *ReplicateGroupStats) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n +func (x *ReplicateGroupStats_Request) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ReplicateGroupStats_Request) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.GroupPublicKey) - if l > 0 { - n += 1 + l + sovBertyreplication(uint64(l)) - } - return n -} +func (*ReplicateGroupStats_Request) ProtoMessage() {} -func (m *ReplicateGroupStats_Reply) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Group != nil { - l = m.Group.Size() - n += 1 + l + sovBertyreplication(uint64(l)) +func (x *ReplicateGroupStats_Request) ProtoReflect() protoreflect.Message { + mi := &file_replicationtypes_bertyreplication_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return n + return mi.MessageOf(x) } -func sovBertyreplication(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozBertyreplication(x uint64) (n int) { - return sovBertyreplication(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +// Deprecated: Use ReplicateGroupStats_Request.ProtoReflect.Descriptor instead. +func (*ReplicateGroupStats_Request) Descriptor() ([]byte, []int) { + return file_replicationtypes_bertyreplication_proto_rawDescGZIP(), []int{4, 0} } -func (m *ReplicatedGroup) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyreplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReplicatedGroup: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReplicatedGroup: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PublicKey", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyreplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBertyreplication - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBertyreplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PublicKey = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SignPub", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyreplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBertyreplication - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBertyreplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.SignPub = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LinkKey", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyreplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBertyreplication - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBertyreplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.LinkKey = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 100: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CreatedAt", wireType) - } - m.CreatedAt = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyreplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CreatedAt |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 101: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field UpdatedAt", wireType) - } - m.UpdatedAt = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyreplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.UpdatedAt |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 102: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MetadataEntriesCount", wireType) - } - m.MetadataEntriesCount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyreplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MetadataEntriesCount |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 103: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MetadataLatestHead", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyreplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBertyreplication - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBertyreplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MetadataLatestHead = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 104: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MessageEntriesCount", wireType) - } - m.MessageEntriesCount = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyreplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MessageEntriesCount |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 105: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MessageLatestHead", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyreplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBertyreplication - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBertyreplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MessageLatestHead = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBertyreplication(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthBertyreplication - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ReplicateGroupStats_Request) GetGroupPublicKey() string { + if x != nil { + return x.GroupPublicKey } - return nil + return "" } -func (m *ReplicatedGroupToken) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyreplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReplicatedGroupToken: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReplicatedGroupToken: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReplicatedGroupPublicKey", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyreplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBertyreplication - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBertyreplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ReplicatedGroupPublicKey = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReplicatedGroup", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyreplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBertyreplication - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBertyreplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ReplicatedGroup == nil { - m.ReplicatedGroup = &ReplicatedGroup{} - } - if err := m.ReplicatedGroup.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TokenIssuer", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyreplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBertyreplication - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBertyreplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TokenIssuer = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TokenID", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyreplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBertyreplication - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBertyreplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TokenID = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CreatedAt", wireType) - } - m.CreatedAt = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyreplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CreatedAt |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipBertyreplication(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthBertyreplication - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReplicationServiceReplicateGroup) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyreplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReplicationServiceReplicateGroup: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReplicationServiceReplicateGroup: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipBertyreplication(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthBertyreplication - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } +type ReplicateGroupStats_Reply struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil + Group *ReplicatedGroup `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` } -func (m *ReplicationServiceReplicateGroup_Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyreplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyreplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBertyreplication - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBertyreplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Group == nil { - m.Group = &protocoltypes.Group{} - } - if err := m.Group.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBertyreplication(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthBertyreplication - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ReplicateGroupStats_Reply) Reset() { + *x = ReplicateGroupStats_Reply{} + if protoimpl.UnsafeEnabled { + mi := &file_replicationtypes_bertyreplication_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -func (m *ReplicationServiceReplicateGroup_Reply) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyreplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Reply: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Reply: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field OK", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyreplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.OK = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipBertyreplication(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthBertyreplication - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +func (x *ReplicateGroupStats_Reply) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *ReplicateGlobalStats) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyreplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReplicateGlobalStats: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReplicateGlobalStats: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipBertyreplication(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthBertyreplication - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReplicateGlobalStats_Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyreplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipBertyreplication(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthBertyreplication - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } +func (*ReplicateGroupStats_Reply) ProtoMessage() {} - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReplicateGlobalStats_Reply) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyreplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Reply: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Reply: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StartedAt", wireType) - } - m.StartedAt = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyreplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StartedAt |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ReplicatedGroups", wireType) - } - m.ReplicatedGroups = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyreplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ReplicatedGroups |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TotalMetadataEntries", wireType) - } - m.TotalMetadataEntries = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyreplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TotalMetadataEntries |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TotalMessageEntries", wireType) - } - m.TotalMessageEntries = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyreplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TotalMessageEntries |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipBertyreplication(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthBertyreplication - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy +func (x *ReplicateGroupStats_Reply) ProtoReflect() protoreflect.Message { + mi := &file_replicationtypes_bertyreplication_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } + return ms } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil + return mi.MessageOf(x) } -func (m *ReplicateGroupStats) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyreplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReplicateGroupStats: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReplicateGroupStats: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipBertyreplication(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthBertyreplication - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +// Deprecated: Use ReplicateGroupStats_Reply.ProtoReflect.Descriptor instead. +func (*ReplicateGroupStats_Reply) Descriptor() ([]byte, []int) { + return file_replicationtypes_bertyreplication_proto_rawDescGZIP(), []int{4, 1} } -func (m *ReplicateGroupStats_Request) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyreplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Request: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field GroupPublicKey", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyreplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBertyreplication - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBertyreplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.GroupPublicKey = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBertyreplication(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthBertyreplication - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF +func (x *ReplicateGroupStats_Reply) GetGroup() *ReplicatedGroup { + if x != nil { + return x.Group } return nil } -func (m *ReplicateGroupStats_Reply) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyreplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Reply: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Reply: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyreplication - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthBertyreplication - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthBertyreplication - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Group == nil { - m.Group = &ReplicatedGroup{} - } - if err := m.Group.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBertyreplication(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthBertyreplication - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipBertyreplication(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowBertyreplication - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowBertyreplication - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowBertyreplication - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthBertyreplication - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupBertyreplication - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthBertyreplication - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF +var File_replicationtypes_bertyreplication_proto protoreflect.FileDescriptor + +var file_replicationtypes_bertyreplication_proto_rawDesc = []byte{ + 0x0a, 0x27, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2f, 0x62, 0x65, 0x72, 0x74, 0x79, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x77, 0x65, 0x73, 0x68, 0x6e, + 0x65, 0x74, 0x2e, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, + 0x31, 0x1a, 0x13, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x13, 0x74, 0x61, 0x67, 0x67, 0x65, 0x72, 0x2f, 0x74, + 0x61, 0x67, 0x67, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x88, 0x03, 0x0a, 0x0f, + 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, + 0x35, 0x0a, 0x0a, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x16, 0x9a, 0x84, 0x9e, 0x03, 0x11, 0x67, 0x6f, 0x72, 0x6d, 0x3a, 0x22, + 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x22, 0x52, 0x09, 0x70, 0x75, 0x62, + 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x70, + 0x75, 0x62, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x69, 0x67, 0x6e, 0x50, 0x75, + 0x62, 0x12, 0x19, 0x0a, 0x08, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x6c, 0x69, 0x6e, 0x6b, 0x4b, 0x65, 0x79, 0x12, 0x1d, 0x0a, 0x0a, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x64, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x65, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x34, 0x0a, 0x16, 0x6d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x5f, 0x63, + 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x66, 0x20, 0x01, 0x28, 0x03, 0x52, 0x14, 0x6d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, + 0x12, 0x30, 0x0a, 0x14, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6c, 0x61, 0x74, + 0x65, 0x73, 0x74, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x18, 0x67, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, + 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x48, 0x65, + 0x61, 0x64, 0x12, 0x32, 0x0a, 0x15, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x6e, + 0x74, 0x72, 0x69, 0x65, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x68, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x13, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, + 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x2e, 0x0a, 0x13, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x5f, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x18, 0x69, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x11, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4c, 0x61, 0x74, 0x65, + 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x22, 0x90, 0x03, 0x0a, 0x14, 0x52, 0x65, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x74, 0x65, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, + 0x6f, 0x0a, 0x1b, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x67, 0x72, + 0x6f, 0x75, 0x70, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0x9a, 0x84, 0x9e, 0x03, 0x2b, 0x67, 0x6f, 0x72, 0x6d, 0x3a, + 0x22, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x3b, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x4b, 0x65, + 0x79, 0x3b, 0x61, 0x75, 0x74, 0x6f, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x3a, + 0x66, 0x61, 0x6c, 0x73, 0x65, 0x22, 0x52, 0x18, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, + 0x65, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, + 0x12, 0x52, 0x0a, 0x10, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x67, + 0x72, 0x6f, 0x75, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, 0x65, 0x73, + 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x47, 0x72, + 0x6f, 0x75, 0x70, 0x52, 0x0f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x47, + 0x72, 0x6f, 0x75, 0x70, 0x12, 0x4d, 0x0a, 0x0c, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x73, + 0x73, 0x75, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2a, 0x9a, 0x84, 0x9e, 0x03, + 0x25, 0x67, 0x6f, 0x72, 0x6d, 0x3a, 0x22, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x4b, 0x65, + 0x79, 0x3b, 0x61, 0x75, 0x74, 0x6f, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x3a, + 0x66, 0x61, 0x6c, 0x73, 0x65, 0x22, 0x52, 0x0b, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x73, 0x73, + 0x75, 0x65, 0x72, 0x12, 0x45, 0x0a, 0x08, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x69, 0x64, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2a, 0x9a, 0x84, 0x9e, 0x03, 0x25, 0x67, 0x6f, 0x72, 0x6d, + 0x3a, 0x22, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x3b, 0x61, 0x75, 0x74, + 0x6f, 0x49, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x3a, 0x66, 0x61, 0x6c, 0x73, 0x65, + 0x22, 0x52, 0x07, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0x78, 0x0a, 0x20, 0x52, 0x65, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, + 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x1a, 0x3b, 0x0a, + 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x30, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, + 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, + 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, + 0x6f, 0x75, 0x70, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x1a, 0x17, 0x0a, 0x05, 0x52, 0x65, + 0x70, 0x6c, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x6f, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x02, 0x6f, 0x6b, 0x22, 0xe1, 0x01, 0x0a, 0x14, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, + 0x65, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x73, 0x1a, 0x09, 0x0a, 0x07, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0xbd, 0x01, 0x0a, 0x05, 0x52, 0x65, 0x70, 0x6c, + 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x41, 0x74, + 0x12, 0x2b, 0x0a, 0x11, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x67, + 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x72, 0x65, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x34, 0x0a, + 0x16, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, + 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x14, 0x74, + 0x6f, 0x74, 0x61, 0x6c, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, + 0x69, 0x65, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x6d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x13, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x22, 0x92, 0x01, 0x0a, 0x13, 0x52, 0x65, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x74, 0x61, 0x74, 0x73, 0x1a, + 0x33, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x10, 0x67, 0x72, + 0x6f, 0x75, 0x70, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x50, 0x75, 0x62, 0x6c, 0x69, + 0x63, 0x4b, 0x65, 0x79, 0x1a, 0x46, 0x0a, 0x05, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x3d, 0x0a, + 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x77, + 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, + 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x32, 0xab, 0x03, 0x0a, + 0x12, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x12, 0x92, 0x01, 0x0a, 0x0e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, + 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x40, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, + 0x2e, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, + 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, + 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3e, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, + 0x65, 0x74, 0x2e, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, + 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, + 0x75, 0x70, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x80, 0x01, 0x0a, 0x14, 0x52, 0x65, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x74, + 0x73, 0x12, 0x34, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x72, 0x65, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x74, 0x65, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x73, 0x2e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, + 0x74, 0x2e, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, + 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, + 0x53, 0x74, 0x61, 0x74, 0x73, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x7d, 0x0a, 0x13, 0x52, + 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x74, 0x61, + 0x74, 0x73, 0x12, 0x33, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x72, 0x65, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x74, 0x61, 0x74, 0x73, 0x2e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, + 0x74, 0x2e, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, + 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, + 0x74, 0x61, 0x74, 0x73, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x42, 0x29, 0x5a, 0x27, 0x62, 0x65, + 0x72, 0x74, 0x79, 0x2e, 0x74, 0x65, 0x63, 0x68, 0x2f, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, + 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - ErrInvalidLengthBertyreplication = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowBertyreplication = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupBertyreplication = fmt.Errorf("proto: unexpected end of group") + file_replicationtypes_bertyreplication_proto_rawDescOnce sync.Once + file_replicationtypes_bertyreplication_proto_rawDescData = file_replicationtypes_bertyreplication_proto_rawDesc ) + +func file_replicationtypes_bertyreplication_proto_rawDescGZIP() []byte { + file_replicationtypes_bertyreplication_proto_rawDescOnce.Do(func() { + file_replicationtypes_bertyreplication_proto_rawDescData = protoimpl.X.CompressGZIP(file_replicationtypes_bertyreplication_proto_rawDescData) + }) + return file_replicationtypes_bertyreplication_proto_rawDescData +} + +var file_replicationtypes_bertyreplication_proto_msgTypes = make([]protoimpl.MessageInfo, 11) +var file_replicationtypes_bertyreplication_proto_goTypes = []interface{}{ + (*ReplicatedGroup)(nil), // 0: weshnet.replication.v1.ReplicatedGroup + (*ReplicatedGroupToken)(nil), // 1: weshnet.replication.v1.ReplicatedGroupToken + (*ReplicationServiceReplicateGroup)(nil), // 2: weshnet.replication.v1.ReplicationServiceReplicateGroup + (*ReplicateGlobalStats)(nil), // 3: weshnet.replication.v1.ReplicateGlobalStats + (*ReplicateGroupStats)(nil), // 4: weshnet.replication.v1.ReplicateGroupStats + (*ReplicationServiceReplicateGroup_Request)(nil), // 5: weshnet.replication.v1.ReplicationServiceReplicateGroup.Request + (*ReplicationServiceReplicateGroup_Reply)(nil), // 6: weshnet.replication.v1.ReplicationServiceReplicateGroup.Reply + (*ReplicateGlobalStats_Request)(nil), // 7: weshnet.replication.v1.ReplicateGlobalStats.Request + (*ReplicateGlobalStats_Reply)(nil), // 8: weshnet.replication.v1.ReplicateGlobalStats.Reply + (*ReplicateGroupStats_Request)(nil), // 9: weshnet.replication.v1.ReplicateGroupStats.Request + (*ReplicateGroupStats_Reply)(nil), // 10: weshnet.replication.v1.ReplicateGroupStats.Reply + (*protocoltypes.Group)(nil), // 11: weshnet.protocol.v1.Group +} +var file_replicationtypes_bertyreplication_proto_depIdxs = []int32{ + 0, // 0: weshnet.replication.v1.ReplicatedGroupToken.replicated_group:type_name -> weshnet.replication.v1.ReplicatedGroup + 11, // 1: weshnet.replication.v1.ReplicationServiceReplicateGroup.Request.group:type_name -> weshnet.protocol.v1.Group + 0, // 2: weshnet.replication.v1.ReplicateGroupStats.Reply.group:type_name -> weshnet.replication.v1.ReplicatedGroup + 5, // 3: weshnet.replication.v1.ReplicationService.ReplicateGroup:input_type -> weshnet.replication.v1.ReplicationServiceReplicateGroup.Request + 7, // 4: weshnet.replication.v1.ReplicationService.ReplicateGlobalStats:input_type -> weshnet.replication.v1.ReplicateGlobalStats.Request + 9, // 5: weshnet.replication.v1.ReplicationService.ReplicateGroupStats:input_type -> weshnet.replication.v1.ReplicateGroupStats.Request + 6, // 6: weshnet.replication.v1.ReplicationService.ReplicateGroup:output_type -> weshnet.replication.v1.ReplicationServiceReplicateGroup.Reply + 8, // 7: weshnet.replication.v1.ReplicationService.ReplicateGlobalStats:output_type -> weshnet.replication.v1.ReplicateGlobalStats.Reply + 10, // 8: weshnet.replication.v1.ReplicationService.ReplicateGroupStats:output_type -> weshnet.replication.v1.ReplicateGroupStats.Reply + 6, // [6:9] is the sub-list for method output_type + 3, // [3:6] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_replicationtypes_bertyreplication_proto_init() } +func file_replicationtypes_bertyreplication_proto_init() { + if File_replicationtypes_bertyreplication_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_replicationtypes_bertyreplication_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReplicatedGroup); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_replicationtypes_bertyreplication_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReplicatedGroupToken); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_replicationtypes_bertyreplication_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReplicationServiceReplicateGroup); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_replicationtypes_bertyreplication_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReplicateGlobalStats); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_replicationtypes_bertyreplication_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReplicateGroupStats); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_replicationtypes_bertyreplication_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReplicationServiceReplicateGroup_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_replicationtypes_bertyreplication_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReplicationServiceReplicateGroup_Reply); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_replicationtypes_bertyreplication_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReplicateGlobalStats_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_replicationtypes_bertyreplication_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReplicateGlobalStats_Reply); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_replicationtypes_bertyreplication_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReplicateGroupStats_Request); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_replicationtypes_bertyreplication_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReplicateGroupStats_Reply); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_replicationtypes_bertyreplication_proto_rawDesc, + NumEnums: 0, + NumMessages: 11, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_replicationtypes_bertyreplication_proto_goTypes, + DependencyIndexes: file_replicationtypes_bertyreplication_proto_depIdxs, + MessageInfos: file_replicationtypes_bertyreplication_proto_msgTypes, + }.Build() + File_replicationtypes_bertyreplication_proto = out.File + file_replicationtypes_bertyreplication_proto_rawDesc = nil + file_replicationtypes_bertyreplication_proto_goTypes = nil + file_replicationtypes_bertyreplication_proto_depIdxs = nil +} diff --git a/pkg/tinder/records.pb.go b/pkg/tinder/records.pb.go index 5a3b5cc2..4efc17ad 100644 --- a/pkg/tinder/records.pb.go +++ b/pkg/tinder/records.pb.go @@ -1,555 +1,216 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.34.1 +// protoc (unknown) // source: tinder/records.proto package tinder import ( - fmt "fmt" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" - io "io" - math "math" - math_bits "math/bits" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type Records struct { - Records []*Record `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *Records) Reset() { *m = Records{} } -func (m *Records) String() string { return proto.CompactTextString(m) } -func (*Records) ProtoMessage() {} -func (*Records) Descriptor() ([]byte, []int) { - return fileDescriptor_1bf1d691fe9c34fc, []int{0} -} -func (m *Records) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Records) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Records.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Records) XXX_Merge(src proto.Message) { - xxx_messageInfo_Records.Merge(m, src) -} -func (m *Records) XXX_Size() int { - return m.Size() -} -func (m *Records) XXX_DiscardUnknown() { - xxx_messageInfo_Records.DiscardUnknown(m) + Records []*Record `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"` } -var xxx_messageInfo_Records proto.InternalMessageInfo - -func (m *Records) GetRecords() []*Record { - if m != nil { - return m.Records +func (x *Records) Reset() { + *x = Records{} + if protoimpl.UnsafeEnabled { + mi := &file_tinder_records_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return nil } -type Record struct { - Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"` - Expire int64 `protobuf:"varint,2,opt,name=expire,proto3" json:"expire,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` +func (x *Records) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Record) Reset() { *m = Record{} } -func (m *Record) String() string { return proto.CompactTextString(m) } -func (*Record) ProtoMessage() {} -func (*Record) Descriptor() ([]byte, []int) { - return fileDescriptor_1bf1d691fe9c34fc, []int{1} -} -func (m *Record) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Record) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Record.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err +func (*Records) ProtoMessage() {} + +func (x *Records) ProtoReflect() protoreflect.Message { + mi := &file_tinder_records_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *Record) XXX_Merge(src proto.Message) { - xxx_messageInfo_Record.Merge(m, src) -} -func (m *Record) XXX_Size() int { - return m.Size() -} -func (m *Record) XXX_DiscardUnknown() { - xxx_messageInfo_Record.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_Record proto.InternalMessageInfo - -func (m *Record) GetCid() string { - if m != nil { - return m.Cid - } - return "" +// Deprecated: Use Records.ProtoReflect.Descriptor instead. +func (*Records) Descriptor() ([]byte, []int) { + return file_tinder_records_proto_rawDescGZIP(), []int{0} } -func (m *Record) GetExpire() int64 { - if m != nil { - return m.Expire +func (x *Records) GetRecords() []*Record { + if x != nil { + return x.Records } - return 0 -} - -func init() { - proto.RegisterType((*Records)(nil), "tinder.Records") - proto.RegisterType((*Record)(nil), "tinder.Record") + return nil } -func init() { proto.RegisterFile("tinder/records.proto", fileDescriptor_1bf1d691fe9c34fc) } +type Record struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -var fileDescriptor_1bf1d691fe9c34fc = []byte{ - // 184 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x29, 0xc9, 0xcc, 0x4b, - 0x49, 0x2d, 0xd2, 0x2f, 0x4a, 0x4d, 0xce, 0x2f, 0x4a, 0x29, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, - 0x17, 0x62, 0x83, 0x88, 0x4a, 0x89, 0xa4, 0xe7, 0xa7, 0xe7, 0x83, 0x85, 0xf4, 0x41, 0x2c, 0x88, - 0xac, 0x92, 0x31, 0x17, 0x7b, 0x10, 0x44, 0xb9, 0x90, 0x06, 0x17, 0x3b, 0x54, 0xa7, 0x04, 0xa3, - 0x02, 0xb3, 0x06, 0xb7, 0x11, 0x9f, 0x1e, 0x44, 0xab, 0x1e, 0x44, 0x45, 0x10, 0x4c, 0x5a, 0xc9, - 0x88, 0x8b, 0x0d, 0x22, 0x24, 0x24, 0xc0, 0xc5, 0x9c, 0x9c, 0x99, 0x22, 0xc1, 0xa8, 0xc0, 0xa8, - 0xc1, 0x19, 0x04, 0x62, 0x0a, 0x89, 0x71, 0xb1, 0xa5, 0x56, 0x14, 0x64, 0x16, 0xa5, 0x4a, 0x30, - 0x29, 0x30, 0x6a, 0x30, 0x07, 0x41, 0x79, 0x4e, 0xfa, 0x17, 0x1e, 0xca, 0x31, 0x9c, 0x78, 0x24, - 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, 0x51, 0xb2, 0x49, 0xa9, 0x45, 0x25, - 0x95, 0x7a, 0x25, 0xa9, 0xc9, 0x19, 0xfa, 0xe5, 0xa9, 0xc5, 0x19, 0x79, 0xa9, 0x25, 0xfa, 0x05, - 0xd9, 0xe9, 0xfa, 0x10, 0x4b, 0x93, 0xd8, 0xc0, 0x0e, 0x34, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, - 0x30, 0x32, 0x98, 0x08, 0xd6, 0x00, 0x00, 0x00, + Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"` + Expire int64 `protobuf:"varint,2,opt,name=expire,proto3" json:"expire,omitempty"` } -func (m *Records) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *Record) Reset() { + *x = Record{} + if protoimpl.UnsafeEnabled { + mi := &file_tinder_records_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return dAtA[:n], nil } -func (m *Records) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (x *Record) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *Records) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Records) > 0 { - for iNdEx := len(m.Records) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Records[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintRecords(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} +func (*Record) ProtoMessage() {} -func (m *Record) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (x *Record) ProtoReflect() protoreflect.Message { + mi := &file_tinder_records_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return dAtA[:n], nil -} - -func (m *Record) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + return mi.MessageOf(x) } -func (m *Record) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Expire != 0 { - i = encodeVarintRecords(dAtA, i, uint64(m.Expire)) - i-- - dAtA[i] = 0x10 - } - if len(m.Cid) > 0 { - i -= len(m.Cid) - copy(dAtA[i:], m.Cid) - i = encodeVarintRecords(dAtA, i, uint64(len(m.Cid))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil +// Deprecated: Use Record.ProtoReflect.Descriptor instead. +func (*Record) Descriptor() ([]byte, []int) { + return file_tinder_records_proto_rawDescGZIP(), []int{1} } -func encodeVarintRecords(dAtA []byte, offset int, v uint64) int { - offset -= sovRecords(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ +func (x *Record) GetCid() string { + if x != nil { + return x.Cid } - dAtA[offset] = uint8(v) - return base -} -func (m *Records) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Records) > 0 { - for _, e := range m.Records { - l = e.Size() - n += 1 + l + sovRecords(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + return "" } -func (m *Record) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Cid) - if l > 0 { - n += 1 + l + sovRecords(uint64(l)) +func (x *Record) GetExpire() int64 { + if x != nil { + return x.Expire } - if m.Expire != 0 { - n += 1 + sovRecords(uint64(m.Expire)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func sovRecords(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozRecords(x uint64) (n int) { - return sovRecords(uint64((x << 1) ^ uint64((int64(x) >> 63)))) + return 0 } -func (m *Records) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRecords - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Records: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Records: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Records", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRecords - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthRecords - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthRecords - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Records = append(m.Records, &Record{}) - if err := m.Records[len(m.Records)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipRecords(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthRecords - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Record) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRecords - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: Record: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Record: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Cid", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRecords - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthRecords - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthRecords - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Cid = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Expire", wireType) - } - m.Expire = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowRecords - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Expire |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipRecords(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthRecords - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } +var File_tinder_records_proto protoreflect.FileDescriptor - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipRecords(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowRecords - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowRecords - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowRecords - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthRecords - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupRecords - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthRecords - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF +var file_tinder_records_proto_rawDesc = []byte{ + 0x0a, 0x14, 0x74, 0x69, 0x6e, 0x64, 0x65, 0x72, 0x2f, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x74, 0x69, 0x6e, 0x64, 0x65, 0x72, 0x22, 0x33, + 0x0a, 0x07, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x28, 0x0a, 0x07, 0x72, 0x65, 0x63, + 0x6f, 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x74, 0x69, 0x6e, + 0x64, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x07, 0x72, 0x65, 0x63, 0x6f, + 0x72, 0x64, 0x73, 0x22, 0x32, 0x0a, 0x06, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x10, 0x0a, + 0x03, 0x63, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x63, 0x69, 0x64, 0x12, + 0x16, 0x0a, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x42, 0x1f, 0x5a, 0x1d, 0x62, 0x65, 0x72, 0x74, 0x79, + 0x2e, 0x74, 0x65, 0x63, 0x68, 0x2f, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2f, 0x70, 0x6b, + 0x67, 0x2f, 0x74, 0x69, 0x6e, 0x64, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - ErrInvalidLengthRecords = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowRecords = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupRecords = fmt.Errorf("proto: unexpected end of group") + file_tinder_records_proto_rawDescOnce sync.Once + file_tinder_records_proto_rawDescData = file_tinder_records_proto_rawDesc ) + +func file_tinder_records_proto_rawDescGZIP() []byte { + file_tinder_records_proto_rawDescOnce.Do(func() { + file_tinder_records_proto_rawDescData = protoimpl.X.CompressGZIP(file_tinder_records_proto_rawDescData) + }) + return file_tinder_records_proto_rawDescData +} + +var file_tinder_records_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_tinder_records_proto_goTypes = []interface{}{ + (*Records)(nil), // 0: tinder.Records + (*Record)(nil), // 1: tinder.Record +} +var file_tinder_records_proto_depIdxs = []int32{ + 1, // 0: tinder.Records.records:type_name -> tinder.Record + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_tinder_records_proto_init() } +func file_tinder_records_proto_init() { + if File_tinder_records_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_tinder_records_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Records); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_tinder_records_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Record); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_tinder_records_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_tinder_records_proto_goTypes, + DependencyIndexes: file_tinder_records_proto_depIdxs, + MessageInfos: file_tinder_records_proto_msgTypes, + }.Build() + File_tinder_records_proto = out.File + file_tinder_records_proto_rawDesc = nil + file_tinder_records_proto_goTypes = nil + file_tinder_records_proto_depIdxs = nil +} diff --git a/pkg/verifiablecredstypes/bertyverifiablecreds.pb.go b/pkg/verifiablecredstypes/bertyverifiablecreds.pb.go index c194377d..db423796 100644 --- a/pkg/verifiablecredstypes/bertyverifiablecreds.pb.go +++ b/pkg/verifiablecredstypes/bertyverifiablecreds.pb.go @@ -1,27 +1,24 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.34.1 +// protoc (unknown) // source: verifiablecredstypes/bertyverifiablecreds.proto package verifiablecredstypes import ( - fmt "fmt" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" - io "io" - math "math" - math_bits "math/bits" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type FlowType int32 @@ -35,26 +32,47 @@ const ( FlowType_FlowTypeProof FlowType = 3 ) -var FlowType_name = map[int32]string{ - 0: "FlowTypeUndefined", - 1: "FlowTypeCode", - 2: "FlowTypeAuth", - 3: "FlowTypeProof", -} +// Enum value maps for FlowType. +var ( + FlowType_name = map[int32]string{ + 0: "FlowTypeUndefined", + 1: "FlowTypeCode", + 2: "FlowTypeAuth", + 3: "FlowTypeProof", + } + FlowType_value = map[string]int32{ + "FlowTypeUndefined": 0, + "FlowTypeCode": 1, + "FlowTypeAuth": 2, + "FlowTypeProof": 3, + } +) -var FlowType_value = map[string]int32{ - "FlowTypeUndefined": 0, - "FlowTypeCode": 1, - "FlowTypeAuth": 2, - "FlowTypeProof": 3, +func (x FlowType) Enum() *FlowType { + p := new(FlowType) + *p = x + return p } func (x FlowType) String() string { - return proto.EnumName(FlowType_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (FlowType) Descriptor() protoreflect.EnumDescriptor { + return file_verifiablecredstypes_bertyverifiablecreds_proto_enumTypes[0].Descriptor() +} + +func (FlowType) Type() protoreflect.EnumType { + return &file_verifiablecredstypes_bertyverifiablecreds_proto_enumTypes[0] +} + +func (x FlowType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use FlowType.Descriptor instead. func (FlowType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_7839fe931fda6b3a, []int{0} + return file_verifiablecredstypes_bertyverifiablecreds_proto_rawDescGZIP(), []int{0} } type CodeStrategy int32 @@ -69,1214 +87,418 @@ const ( CodeStrategy_CodeStrategyMocked6Zeroes CodeStrategy = 999 ) -var CodeStrategy_name = map[int32]string{ - 0: "CodeStrategyUndefined", - 1: "CodeStrategy6Digits", - 2: "CodeStrategy10Chars", - 999: "CodeStrategyMocked6Zeroes", -} +// Enum value maps for CodeStrategy. +var ( + CodeStrategy_name = map[int32]string{ + 0: "CodeStrategyUndefined", + 1: "CodeStrategy6Digits", + 2: "CodeStrategy10Chars", + 999: "CodeStrategyMocked6Zeroes", + } + CodeStrategy_value = map[string]int32{ + "CodeStrategyUndefined": 0, + "CodeStrategy6Digits": 1, + "CodeStrategy10Chars": 2, + "CodeStrategyMocked6Zeroes": 999, + } +) -var CodeStrategy_value = map[string]int32{ - "CodeStrategyUndefined": 0, - "CodeStrategy6Digits": 1, - "CodeStrategy10Chars": 2, - "CodeStrategyMocked6Zeroes": 999, +func (x CodeStrategy) Enum() *CodeStrategy { + p := new(CodeStrategy) + *p = x + return p } func (x CodeStrategy) String() string { - return proto.EnumName(CodeStrategy_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (CodeStrategy) Descriptor() protoreflect.EnumDescriptor { + return file_verifiablecredstypes_bertyverifiablecreds_proto_enumTypes[1].Descriptor() +} + +func (CodeStrategy) Type() protoreflect.EnumType { + return &file_verifiablecredstypes_bertyverifiablecreds_proto_enumTypes[1] +} + +func (x CodeStrategy) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } +// Deprecated: Use CodeStrategy.Descriptor instead. func (CodeStrategy) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_7839fe931fda6b3a, []int{1} + return file_verifiablecredstypes_bertyverifiablecreds_proto_rawDescGZIP(), []int{1} } // StateChallenge serialized and signed state used when requesting a challenge type StateChallenge struct { - Timestamp []byte `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - Nonce []byte `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"` - BertyLink string `protobuf:"bytes,3,opt,name=berty_link,json=bertyLink,proto3" json:"berty_link,omitempty"` - RedirectURI string `protobuf:"bytes,4,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"` - State string `protobuf:"bytes,5,opt,name=state,proto3" json:"state,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Timestamp []byte `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + Nonce []byte `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"` + BertyLink string `protobuf:"bytes,3,opt,name=berty_link,json=bertyLink,proto3" json:"berty_link,omitempty"` + RedirectUri string `protobuf:"bytes,4,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"` + State string `protobuf:"bytes,5,opt,name=state,proto3" json:"state,omitempty"` } -func (m *StateChallenge) Reset() { *m = StateChallenge{} } -func (m *StateChallenge) String() string { return proto.CompactTextString(m) } -func (*StateChallenge) ProtoMessage() {} -func (*StateChallenge) Descriptor() ([]byte, []int) { - return fileDescriptor_7839fe931fda6b3a, []int{0} +func (x *StateChallenge) Reset() { + *x = StateChallenge{} + if protoimpl.UnsafeEnabled { + mi := &file_verifiablecredstypes_bertyverifiablecreds_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *StateChallenge) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *StateChallenge) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *StateChallenge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StateChallenge.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*StateChallenge) ProtoMessage() {} + +func (x *StateChallenge) ProtoReflect() protoreflect.Message { + mi := &file_verifiablecredstypes_bertyverifiablecreds_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *StateChallenge) XXX_Merge(src proto.Message) { - xxx_messageInfo_StateChallenge.Merge(m, src) -} -func (m *StateChallenge) XXX_Size() int { - return m.Size() -} -func (m *StateChallenge) XXX_DiscardUnknown() { - xxx_messageInfo_StateChallenge.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_StateChallenge proto.InternalMessageInfo +// Deprecated: Use StateChallenge.ProtoReflect.Descriptor instead. +func (*StateChallenge) Descriptor() ([]byte, []int) { + return file_verifiablecredstypes_bertyverifiablecreds_proto_rawDescGZIP(), []int{0} +} -func (m *StateChallenge) GetTimestamp() []byte { - if m != nil { - return m.Timestamp +func (x *StateChallenge) GetTimestamp() []byte { + if x != nil { + return x.Timestamp } return nil } -func (m *StateChallenge) GetNonce() []byte { - if m != nil { - return m.Nonce +func (x *StateChallenge) GetNonce() []byte { + if x != nil { + return x.Nonce } return nil } -func (m *StateChallenge) GetBertyLink() string { - if m != nil { - return m.BertyLink +func (x *StateChallenge) GetBertyLink() string { + if x != nil { + return x.BertyLink } return "" } -func (m *StateChallenge) GetRedirectURI() string { - if m != nil { - return m.RedirectURI +func (x *StateChallenge) GetRedirectUri() string { + if x != nil { + return x.RedirectUri } return "" } -func (m *StateChallenge) GetState() string { - if m != nil { - return m.State +func (x *StateChallenge) GetState() string { + if x != nil { + return x.State } return "" } // StateCode serialized and signed state used when requesting a code type StateCode struct { - Timestamp []byte `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - BertyLink string `protobuf:"bytes,2,opt,name=berty_link,json=bertyLink,proto3" json:"berty_link,omitempty"` - CodeStrategy CodeStrategy `protobuf:"varint,3,opt,name=code_strategy,json=codeStrategy,proto3,enum=weshnet.account.v1.CodeStrategy" json:"code_strategy,omitempty"` - Identifier string `protobuf:"bytes,4,opt,name=identifier,proto3" json:"identifier,omitempty"` - Code string `protobuf:"bytes,5,opt,name=code,proto3" json:"code,omitempty"` - RedirectURI string `protobuf:"bytes,6,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"` - State string `protobuf:"bytes,7,opt,name=state,proto3" json:"state,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Timestamp []byte `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + BertyLink string `protobuf:"bytes,2,opt,name=berty_link,json=bertyLink,proto3" json:"berty_link,omitempty"` + CodeStrategy CodeStrategy `protobuf:"varint,3,opt,name=code_strategy,json=codeStrategy,proto3,enum=weshnet.account.v1.CodeStrategy" json:"code_strategy,omitempty"` + Identifier string `protobuf:"bytes,4,opt,name=identifier,proto3" json:"identifier,omitempty"` + Code string `protobuf:"bytes,5,opt,name=code,proto3" json:"code,omitempty"` + RedirectUri string `protobuf:"bytes,6,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"` + State string `protobuf:"bytes,7,opt,name=state,proto3" json:"state,omitempty"` } -func (m *StateCode) Reset() { *m = StateCode{} } -func (m *StateCode) String() string { return proto.CompactTextString(m) } -func (*StateCode) ProtoMessage() {} -func (*StateCode) Descriptor() ([]byte, []int) { - return fileDescriptor_7839fe931fda6b3a, []int{1} +func (x *StateCode) Reset() { + *x = StateCode{} + if protoimpl.UnsafeEnabled { + mi := &file_verifiablecredstypes_bertyverifiablecreds_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -func (m *StateCode) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) + +func (x *StateCode) String() string { + return protoimpl.X.MessageStringOf(x) } -func (m *StateCode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_StateCode.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err + +func (*StateCode) ProtoMessage() {} + +func (x *StateCode) ProtoReflect() protoreflect.Message { + mi := &file_verifiablecredstypes_bertyverifiablecreds_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) } - return b[:n], nil + return ms } -} -func (m *StateCode) XXX_Merge(src proto.Message) { - xxx_messageInfo_StateCode.Merge(m, src) -} -func (m *StateCode) XXX_Size() int { - return m.Size() -} -func (m *StateCode) XXX_DiscardUnknown() { - xxx_messageInfo_StateCode.DiscardUnknown(m) + return mi.MessageOf(x) } -var xxx_messageInfo_StateCode proto.InternalMessageInfo +// Deprecated: Use StateCode.ProtoReflect.Descriptor instead. +func (*StateCode) Descriptor() ([]byte, []int) { + return file_verifiablecredstypes_bertyverifiablecreds_proto_rawDescGZIP(), []int{1} +} -func (m *StateCode) GetTimestamp() []byte { - if m != nil { - return m.Timestamp +func (x *StateCode) GetTimestamp() []byte { + if x != nil { + return x.Timestamp } return nil } -func (m *StateCode) GetBertyLink() string { - if m != nil { - return m.BertyLink +func (x *StateCode) GetBertyLink() string { + if x != nil { + return x.BertyLink } return "" } -func (m *StateCode) GetCodeStrategy() CodeStrategy { - if m != nil { - return m.CodeStrategy +func (x *StateCode) GetCodeStrategy() CodeStrategy { + if x != nil { + return x.CodeStrategy } return CodeStrategy_CodeStrategyUndefined } -func (m *StateCode) GetIdentifier() string { - if m != nil { - return m.Identifier +func (x *StateCode) GetIdentifier() string { + if x != nil { + return x.Identifier } return "" } -func (m *StateCode) GetCode() string { - if m != nil { - return m.Code +func (x *StateCode) GetCode() string { + if x != nil { + return x.Code } return "" } -func (m *StateCode) GetRedirectURI() string { - if m != nil { - return m.RedirectURI +func (x *StateCode) GetRedirectUri() string { + if x != nil { + return x.RedirectUri } return "" } -func (m *StateCode) GetState() string { - if m != nil { - return m.State +func (x *StateCode) GetState() string { + if x != nil { + return x.State } return "" } type AccountCryptoChallenge struct { - Challenge string `protobuf:"bytes,1,opt,name=challenge,proto3" json:"challenge,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields -func (m *AccountCryptoChallenge) Reset() { *m = AccountCryptoChallenge{} } -func (m *AccountCryptoChallenge) String() string { return proto.CompactTextString(m) } -func (*AccountCryptoChallenge) ProtoMessage() {} -func (*AccountCryptoChallenge) Descriptor() ([]byte, []int) { - return fileDescriptor_7839fe931fda6b3a, []int{2} -} -func (m *AccountCryptoChallenge) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AccountCryptoChallenge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AccountCryptoChallenge.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *AccountCryptoChallenge) XXX_Merge(src proto.Message) { - xxx_messageInfo_AccountCryptoChallenge.Merge(m, src) -} -func (m *AccountCryptoChallenge) XXX_Size() int { - return m.Size() + Challenge string `protobuf:"bytes,1,opt,name=challenge,proto3" json:"challenge,omitempty"` } -func (m *AccountCryptoChallenge) XXX_DiscardUnknown() { - xxx_messageInfo_AccountCryptoChallenge.DiscardUnknown(m) -} - -var xxx_messageInfo_AccountCryptoChallenge proto.InternalMessageInfo -func (m *AccountCryptoChallenge) GetChallenge() string { - if m != nil { - return m.Challenge +func (x *AccountCryptoChallenge) Reset() { + *x = AccountCryptoChallenge{} + if protoimpl.UnsafeEnabled { + mi := &file_verifiablecredstypes_bertyverifiablecreds_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } - return "" } -func init() { - proto.RegisterEnum("weshnet.account.v1.FlowType", FlowType_name, FlowType_value) - proto.RegisterEnum("weshnet.account.v1.CodeStrategy", CodeStrategy_name, CodeStrategy_value) - proto.RegisterType((*StateChallenge)(nil), "weshnet.account.v1.StateChallenge") - proto.RegisterType((*StateCode)(nil), "weshnet.account.v1.StateCode") - proto.RegisterType((*AccountCryptoChallenge)(nil), "weshnet.account.v1.AccountCryptoChallenge") +func (x *AccountCryptoChallenge) String() string { + return protoimpl.X.MessageStringOf(x) } -func init() { - proto.RegisterFile("verifiablecredstypes/bertyverifiablecreds.proto", fileDescriptor_7839fe931fda6b3a) -} +func (*AccountCryptoChallenge) ProtoMessage() {} -var fileDescriptor_7839fe931fda6b3a = []byte{ - // 474 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0xdf, 0x6a, 0xd4, 0x4e, - 0x14, 0xfe, 0x25, 0xfd, 0xf7, 0xcb, 0x69, 0x5a, 0xd3, 0xb1, 0xd5, 0x54, 0x34, 0x2e, 0xbd, 0x2a, - 0x15, 0x12, 0x5b, 0x61, 0xc1, 0xcb, 0x76, 0x55, 0x10, 0x14, 0x24, 0x75, 0x41, 0x7a, 0xb3, 0x64, - 0x27, 0x67, 0x93, 0x61, 0xd3, 0x99, 0x30, 0x99, 0x6d, 0x09, 0x3e, 0x83, 0x8f, 0xe2, 0x7b, 0x78, - 0xe9, 0x13, 0x88, 0xec, 0x8d, 0xaf, 0x21, 0x99, 0x6c, 0xe8, 0x74, 0x2b, 0x88, 0x77, 0xe7, 0x7c, - 0xdf, 0xc7, 0x9c, 0xef, 0x7c, 0x87, 0x81, 0xe8, 0x0a, 0x25, 0x9b, 0xb0, 0x64, 0x5c, 0x20, 0x95, - 0x98, 0x56, 0xaa, 0x2e, 0xb1, 0x8a, 0xc6, 0x28, 0x55, 0xbd, 0xc4, 0x84, 0xa5, 0x14, 0x4a, 0x10, - 0x72, 0x8d, 0x55, 0xce, 0x51, 0x85, 0x09, 0xa5, 0x62, 0xc6, 0x55, 0x78, 0x75, 0xfc, 0x68, 0x37, - 0x13, 0x99, 0xd0, 0x74, 0xd4, 0x54, 0xad, 0xf2, 0xe0, 0xab, 0x05, 0xdb, 0xe7, 0x2a, 0x51, 0x38, - 0xc8, 0x93, 0xa2, 0x40, 0x9e, 0x21, 0x79, 0x0c, 0x8e, 0x62, 0x97, 0x58, 0xa9, 0xe4, 0xb2, 0xf4, - 0xad, 0x9e, 0x75, 0xe8, 0xc6, 0x37, 0x00, 0xd9, 0x85, 0x35, 0x2e, 0x38, 0x45, 0xdf, 0xd6, 0x4c, - 0xdb, 0x90, 0x27, 0x00, 0xda, 0xce, 0xa8, 0x60, 0x7c, 0xea, 0xaf, 0xf4, 0xac, 0x43, 0x27, 0x76, - 0x34, 0xf2, 0x8e, 0xf1, 0x29, 0x39, 0x01, 0x57, 0x62, 0xca, 0x24, 0x52, 0x35, 0x9a, 0x49, 0xe6, - 0xaf, 0x36, 0x82, 0xb3, 0x7b, 0xf3, 0x1f, 0x4f, 0x37, 0xe3, 0x05, 0x3e, 0x8c, 0xdf, 0xc6, 0x9b, - 0x9d, 0x68, 0x28, 0x59, 0x33, 0xa8, 0x6a, 0x8c, 0xf9, 0x6b, 0xfa, 0xb5, 0xb6, 0x39, 0xf8, 0x62, - 0x83, 0xd3, 0xfa, 0x15, 0xe9, 0xdf, 0xac, 0xde, 0x36, 0x65, 0x2f, 0x9b, 0x7a, 0x0d, 0x5b, 0x54, - 0xa4, 0x38, 0xaa, 0x94, 0x4c, 0x14, 0x66, 0xb5, 0xb6, 0xbd, 0x7d, 0xd2, 0x0b, 0xef, 0x86, 0x17, - 0x36, 0xd3, 0xce, 0x17, 0xba, 0xd8, 0xa5, 0x46, 0x47, 0x02, 0x00, 0x96, 0x22, 0x57, 0x6c, 0xc2, - 0x50, 0xb6, 0x9b, 0xc5, 0x06, 0x42, 0x08, 0xac, 0x36, 0xfa, 0xc5, 0x1a, 0xba, 0xbe, 0x93, 0xc7, - 0xfa, 0xbf, 0xe4, 0xb1, 0x61, 0xe6, 0xd1, 0x87, 0x07, 0xa7, 0xad, 0xcd, 0x81, 0xac, 0x4b, 0x25, - 0x6e, 0x9d, 0x91, 0x76, 0x8d, 0xce, 0xc6, 0x89, 0x6f, 0x80, 0xa3, 0x4f, 0xf0, 0xff, 0x9b, 0x42, - 0x5c, 0x7f, 0xac, 0x4b, 0x24, 0x7b, 0xb0, 0xd3, 0xd5, 0x43, 0x9e, 0xe2, 0x84, 0x71, 0x4c, 0xbd, - 0xff, 0x88, 0x07, 0x6e, 0x07, 0x37, 0xeb, 0x7b, 0x96, 0x89, 0x9c, 0xce, 0x54, 0xee, 0xd9, 0x64, - 0x07, 0xb6, 0x3a, 0xe4, 0x83, 0x14, 0x62, 0xe2, 0xad, 0x1c, 0x7d, 0x06, 0xd7, 0x4c, 0x8b, 0xec, - 0xc3, 0x9e, 0xd9, 0x9b, 0x13, 0x1e, 0xc2, 0x7d, 0x93, 0xea, 0xbf, 0x62, 0x19, 0x53, 0x95, 0x67, - 0x2d, 0x13, 0xc7, 0xcf, 0x07, 0x79, 0x22, 0x2b, 0xcf, 0x26, 0x01, 0xec, 0x9b, 0xc4, 0x7b, 0x41, - 0xa7, 0x98, 0xf6, 0x2f, 0x50, 0x0a, 0xac, 0xbc, 0x5f, 0x1b, 0x67, 0x2f, 0xbf, 0xcd, 0x03, 0xeb, - 0xfb, 0x3c, 0xb0, 0x7e, 0xce, 0x03, 0xeb, 0xe2, 0x99, 0x3e, 0x76, 0xa8, 0x90, 0xe6, 0xd1, 0xe2, - 0xa8, 0x51, 0x39, 0xcd, 0xfe, 0xf8, 0x9d, 0xc6, 0xeb, 0xfa, 0x43, 0xbc, 0xf8, 0x1d, 0x00, 0x00, - 0xff, 0xff, 0x66, 0xbc, 0xb2, 0xb9, 0x6d, 0x03, 0x00, 0x00, -} - -func (m *StateChallenge) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StateChallenge) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StateChallenge) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.State) > 0 { - i -= len(m.State) - copy(dAtA[i:], m.State) - i = encodeVarintBertyverifiablecreds(dAtA, i, uint64(len(m.State))) - i-- - dAtA[i] = 0x2a - } - if len(m.RedirectURI) > 0 { - i -= len(m.RedirectURI) - copy(dAtA[i:], m.RedirectURI) - i = encodeVarintBertyverifiablecreds(dAtA, i, uint64(len(m.RedirectURI))) - i-- - dAtA[i] = 0x22 - } - if len(m.BertyLink) > 0 { - i -= len(m.BertyLink) - copy(dAtA[i:], m.BertyLink) - i = encodeVarintBertyverifiablecreds(dAtA, i, uint64(len(m.BertyLink))) - i-- - dAtA[i] = 0x1a - } - if len(m.Nonce) > 0 { - i -= len(m.Nonce) - copy(dAtA[i:], m.Nonce) - i = encodeVarintBertyverifiablecreds(dAtA, i, uint64(len(m.Nonce))) - i-- - dAtA[i] = 0x12 - } - if len(m.Timestamp) > 0 { - i -= len(m.Timestamp) - copy(dAtA[i:], m.Timestamp) - i = encodeVarintBertyverifiablecreds(dAtA, i, uint64(len(m.Timestamp))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *StateCode) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StateCode) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StateCode) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.State) > 0 { - i -= len(m.State) - copy(dAtA[i:], m.State) - i = encodeVarintBertyverifiablecreds(dAtA, i, uint64(len(m.State))) - i-- - dAtA[i] = 0x3a - } - if len(m.RedirectURI) > 0 { - i -= len(m.RedirectURI) - copy(dAtA[i:], m.RedirectURI) - i = encodeVarintBertyverifiablecreds(dAtA, i, uint64(len(m.RedirectURI))) - i-- - dAtA[i] = 0x32 - } - if len(m.Code) > 0 { - i -= len(m.Code) - copy(dAtA[i:], m.Code) - i = encodeVarintBertyverifiablecreds(dAtA, i, uint64(len(m.Code))) - i-- - dAtA[i] = 0x2a - } - if len(m.Identifier) > 0 { - i -= len(m.Identifier) - copy(dAtA[i:], m.Identifier) - i = encodeVarintBertyverifiablecreds(dAtA, i, uint64(len(m.Identifier))) - i-- - dAtA[i] = 0x22 - } - if m.CodeStrategy != 0 { - i = encodeVarintBertyverifiablecreds(dAtA, i, uint64(m.CodeStrategy)) - i-- - dAtA[i] = 0x18 - } - if len(m.BertyLink) > 0 { - i -= len(m.BertyLink) - copy(dAtA[i:], m.BertyLink) - i = encodeVarintBertyverifiablecreds(dAtA, i, uint64(len(m.BertyLink))) - i-- - dAtA[i] = 0x12 - } - if len(m.Timestamp) > 0 { - i -= len(m.Timestamp) - copy(dAtA[i:], m.Timestamp) - i = encodeVarintBertyverifiablecreds(dAtA, i, uint64(len(m.Timestamp))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *AccountCryptoChallenge) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AccountCryptoChallenge) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AccountCryptoChallenge) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Challenge) > 0 { - i -= len(m.Challenge) - copy(dAtA[i:], m.Challenge) - i = encodeVarintBertyverifiablecreds(dAtA, i, uint64(len(m.Challenge))) - i-- - dAtA[i] = 0xa +func (x *AccountCryptoChallenge) ProtoReflect() protoreflect.Message { + mi := &file_verifiablecredstypes_bertyverifiablecreds_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms } - return len(dAtA) - i, nil + return mi.MessageOf(x) } -func encodeVarintBertyverifiablecreds(dAtA []byte, offset int, v uint64) int { - offset -= sovBertyverifiablecreds(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *StateChallenge) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Timestamp) - if l > 0 { - n += 1 + l + sovBertyverifiablecreds(uint64(l)) - } - l = len(m.Nonce) - if l > 0 { - n += 1 + l + sovBertyverifiablecreds(uint64(l)) - } - l = len(m.BertyLink) - if l > 0 { - n += 1 + l + sovBertyverifiablecreds(uint64(l)) - } - l = len(m.RedirectURI) - if l > 0 { - n += 1 + l + sovBertyverifiablecreds(uint64(l)) - } - l = len(m.State) - if l > 0 { - n += 1 + l + sovBertyverifiablecreds(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +// Deprecated: Use AccountCryptoChallenge.ProtoReflect.Descriptor instead. +func (*AccountCryptoChallenge) Descriptor() ([]byte, []int) { + return file_verifiablecredstypes_bertyverifiablecreds_proto_rawDescGZIP(), []int{2} } -func (m *StateCode) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Timestamp) - if l > 0 { - n += 1 + l + sovBertyverifiablecreds(uint64(l)) +func (x *AccountCryptoChallenge) GetChallenge() string { + if x != nil { + return x.Challenge } - l = len(m.BertyLink) - if l > 0 { - n += 1 + l + sovBertyverifiablecreds(uint64(l)) - } - if m.CodeStrategy != 0 { - n += 1 + sovBertyverifiablecreds(uint64(m.CodeStrategy)) - } - l = len(m.Identifier) - if l > 0 { - n += 1 + l + sovBertyverifiablecreds(uint64(l)) - } - l = len(m.Code) - if l > 0 { - n += 1 + l + sovBertyverifiablecreds(uint64(l)) - } - l = len(m.RedirectURI) - if l > 0 { - n += 1 + l + sovBertyverifiablecreds(uint64(l)) - } - l = len(m.State) - if l > 0 { - n += 1 + l + sovBertyverifiablecreds(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n + return "" } -func (m *AccountCryptoChallenge) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Challenge) - if l > 0 { - n += 1 + l + sovBertyverifiablecreds(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n +var File_verifiablecredstypes_bertyverifiablecreds_proto protoreflect.FileDescriptor + +var file_verifiablecredstypes_bertyverifiablecreds_proto_rawDesc = []byte{ + 0x0a, 0x2f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x63, 0x72, 0x65, 0x64, + 0x73, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x62, 0x65, 0x72, 0x74, 0x79, 0x76, 0x65, 0x72, 0x69, + 0x66, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x63, 0x72, 0x65, 0x64, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x12, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x22, 0x9c, 0x01, 0x0a, 0x0e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x43, + 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x74, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x0a, + 0x62, 0x65, 0x72, 0x74, 0x79, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x62, 0x65, 0x72, 0x74, 0x79, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x21, 0x0a, 0x0c, 0x72, + 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0b, 0x72, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x55, 0x72, 0x69, 0x12, 0x14, + 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, + 0x74, 0x61, 0x74, 0x65, 0x22, 0xfc, 0x01, 0x0a, 0x09, 0x53, 0x74, 0x61, 0x74, 0x65, 0x43, 0x6f, + 0x64, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x65, 0x72, 0x74, 0x79, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x62, 0x65, 0x72, 0x74, 0x79, 0x4c, 0x69, 0x6e, 0x6b, 0x12, + 0x45, 0x0a, 0x0d, 0x63, 0x6f, 0x64, 0x65, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, + 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x64, 0x65, + 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x0c, 0x63, 0x6f, 0x64, 0x65, 0x53, 0x74, + 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x66, 0x69, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, + 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0b, 0x72, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x55, 0x72, 0x69, 0x12, 0x14, 0x0a, + 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x74, + 0x61, 0x74, 0x65, 0x22, 0x36, 0x0a, 0x16, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x72, + 0x79, 0x70, 0x74, 0x6f, 0x43, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x12, 0x1c, 0x0a, + 0x09, 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x2a, 0x58, 0x0a, 0x08, 0x46, + 0x6c, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x46, 0x6c, 0x6f, 0x77, 0x54, + 0x79, 0x70, 0x65, 0x55, 0x6e, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x64, 0x10, 0x00, 0x12, 0x10, + 0x0a, 0x0c, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x10, 0x01, + 0x12, 0x10, 0x0a, 0x0c, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x41, 0x75, 0x74, 0x68, + 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x50, 0x72, + 0x6f, 0x6f, 0x66, 0x10, 0x03, 0x2a, 0x7b, 0x0a, 0x0c, 0x43, 0x6f, 0x64, 0x65, 0x53, 0x74, 0x72, + 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x19, 0x0a, 0x15, 0x43, 0x6f, 0x64, 0x65, 0x53, 0x74, 0x72, + 0x61, 0x74, 0x65, 0x67, 0x79, 0x55, 0x6e, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x64, 0x10, 0x00, + 0x12, 0x17, 0x0a, 0x13, 0x43, 0x6f, 0x64, 0x65, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, + 0x36, 0x44, 0x69, 0x67, 0x69, 0x74, 0x73, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x43, 0x6f, 0x64, + 0x65, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x31, 0x30, 0x43, 0x68, 0x61, 0x72, 0x73, + 0x10, 0x02, 0x12, 0x1e, 0x0a, 0x19, 0x43, 0x6f, 0x64, 0x65, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, + 0x67, 0x79, 0x4d, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x36, 0x5a, 0x65, 0x72, 0x6f, 0x65, 0x73, 0x10, + 0xe7, 0x07, 0x42, 0x2d, 0x5a, 0x2b, 0x62, 0x65, 0x72, 0x74, 0x79, 0x2e, 0x74, 0x65, 0x63, 0x68, + 0x2f, 0x77, 0x65, 0x73, 0x68, 0x6e, 0x65, 0x74, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x76, 0x65, 0x72, + 0x69, 0x66, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x63, 0x72, 0x65, 0x64, 0x73, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func sovBertyverifiablecreds(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozBertyverifiablecreds(x uint64) (n int) { - return sovBertyverifiablecreds(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *StateChallenge) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyverifiablecreds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StateChallenge: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StateChallenge: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyverifiablecreds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthBertyverifiablecreds - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBertyverifiablecreds - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Timestamp = append(m.Timestamp[:0], dAtA[iNdEx:postIndex]...) - if m.Timestamp == nil { - m.Timestamp = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyverifiablecreds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthBertyverifiablecreds - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBertyverifiablecreds - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Nonce = append(m.Nonce[:0], dAtA[iNdEx:postIndex]...) - if m.Nonce == nil { - m.Nonce = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BertyLink", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyverifiablecreds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBertyverifiablecreds - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBertyverifiablecreds - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BertyLink = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RedirectURI", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyverifiablecreds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBertyverifiablecreds - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBertyverifiablecreds - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RedirectURI = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyverifiablecreds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBertyverifiablecreds - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBertyverifiablecreds - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.State = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBertyverifiablecreds(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthBertyverifiablecreds - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StateCode) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyverifiablecreds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: StateCode: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StateCode: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyverifiablecreds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthBertyverifiablecreds - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthBertyverifiablecreds - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Timestamp = append(m.Timestamp[:0], dAtA[iNdEx:postIndex]...) - if m.Timestamp == nil { - m.Timestamp = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BertyLink", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyverifiablecreds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBertyverifiablecreds - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBertyverifiablecreds - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BertyLink = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field CodeStrategy", wireType) - } - m.CodeStrategy = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyverifiablecreds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.CodeStrategy |= CodeStrategy(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identifier", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyverifiablecreds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBertyverifiablecreds - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBertyverifiablecreds - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identifier = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyverifiablecreds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBertyverifiablecreds - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBertyverifiablecreds - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Code = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RedirectURI", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyverifiablecreds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBertyverifiablecreds - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBertyverifiablecreds - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RedirectURI = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyverifiablecreds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBertyverifiablecreds - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBertyverifiablecreds - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.State = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBertyverifiablecreds(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthBertyverifiablecreds - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } +var ( + file_verifiablecredstypes_bertyverifiablecreds_proto_rawDescOnce sync.Once + file_verifiablecredstypes_bertyverifiablecreds_proto_rawDescData = file_verifiablecredstypes_bertyverifiablecreds_proto_rawDesc +) - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AccountCryptoChallenge) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyverifiablecreds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF +func file_verifiablecredstypes_bertyverifiablecreds_proto_rawDescGZIP() []byte { + file_verifiablecredstypes_bertyverifiablecreds_proto_rawDescOnce.Do(func() { + file_verifiablecredstypes_bertyverifiablecreds_proto_rawDescData = protoimpl.X.CompressGZIP(file_verifiablecredstypes_bertyverifiablecreds_proto_rawDescData) + }) + return file_verifiablecredstypes_bertyverifiablecreds_proto_rawDescData +} + +var file_verifiablecredstypes_bertyverifiablecreds_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_verifiablecredstypes_bertyverifiablecreds_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_verifiablecredstypes_bertyverifiablecreds_proto_goTypes = []interface{}{ + (FlowType)(0), // 0: weshnet.account.v1.FlowType + (CodeStrategy)(0), // 1: weshnet.account.v1.CodeStrategy + (*StateChallenge)(nil), // 2: weshnet.account.v1.StateChallenge + (*StateCode)(nil), // 3: weshnet.account.v1.StateCode + (*AccountCryptoChallenge)(nil), // 4: weshnet.account.v1.AccountCryptoChallenge +} +var file_verifiablecredstypes_bertyverifiablecreds_proto_depIdxs = []int32{ + 1, // 0: weshnet.account.v1.StateCode.code_strategy:type_name -> weshnet.account.v1.CodeStrategy + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_verifiablecredstypes_bertyverifiablecreds_proto_init() } +func file_verifiablecredstypes_bertyverifiablecreds_proto_init() { + if File_verifiablecredstypes_bertyverifiablecreds_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_verifiablecredstypes_bertyverifiablecreds_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StateChallenge); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: AccountCryptoChallenge: wiretype end group for non-group") } - if fieldNum <= 0 { - return fmt.Errorf("proto: AccountCryptoChallenge: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Challenge", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowBertyverifiablecreds - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthBertyverifiablecreds - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthBertyverifiablecreds + file_verifiablecredstypes_bertyverifiablecreds_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StateCode); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Challenge = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipBertyverifiablecreds(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthBertyverifiablecreds - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipBertyverifiablecreds(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowBertyverifiablecreds - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowBertyverifiablecreds - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowBertyverifiablecreds - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } + file_verifiablecredstypes_bertyverifiablecreds_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AccountCryptoChallenge); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil } - if length < 0 { - return 0, ErrInvalidLengthBertyverifiablecreds - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupBertyverifiablecreds - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthBertyverifiablecreds - } - if depth == 0 { - return iNdEx, nil } } - return 0, io.ErrUnexpectedEOF + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_verifiablecredstypes_bertyverifiablecreds_proto_rawDesc, + NumEnums: 2, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_verifiablecredstypes_bertyverifiablecreds_proto_goTypes, + DependencyIndexes: file_verifiablecredstypes_bertyverifiablecreds_proto_depIdxs, + EnumInfos: file_verifiablecredstypes_bertyverifiablecreds_proto_enumTypes, + MessageInfos: file_verifiablecredstypes_bertyverifiablecreds_proto_msgTypes, + }.Build() + File_verifiablecredstypes_bertyverifiablecreds_proto = out.File + file_verifiablecredstypes_bertyverifiablecreds_proto_rawDesc = nil + file_verifiablecredstypes_bertyverifiablecreds_proto_goTypes = nil + file_verifiablecredstypes_bertyverifiablecreds_proto_depIdxs = nil } - -var ( - ErrInvalidLengthBertyverifiablecreds = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowBertyverifiablecreds = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupBertyverifiablecreds = fmt.Errorf("proto: unexpected end of group") -) diff --git a/tool/docker-protoc/Dockerfile b/tool/docker-protoc/Dockerfile index 1cedf00b..12022247 100644 --- a/tool/docker-protoc/Dockerfile +++ b/tool/docker-protoc/Dockerfile @@ -1,7 +1,7 @@ FROM moul/protoc-gen-gotemplate:latest as pgg # build image -FROM golang:1.19-alpine as builder +FROM golang:1.22-alpine as builder # install deps RUN apk --no-cache add make git go rsync libc-dev openssh docker npm bash curl # ensure we use bash for all RUN commands @@ -16,7 +16,7 @@ ENV BASH_ENV=~/.bashrc # @TODO(gfanton): use asdf version RUN go install -mod=readonly \ google.golang.org/protobuf/cmd/protoc-gen-go \ - github.com/gogo/protobuf/protoc-gen-gogo \ + github.com/srikrsna/protoc-gen-gotag \ google.golang.org/grpc/cmd/protoc-gen-go-grpc \ github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway \ github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger \ @@ -26,7 +26,7 @@ RUN asdf plugin add buf && asdf install buf && \ cp $(asdf which buf) /go/bin/buf # runtime -FROM golang:1.19-alpine +FROM golang:1.22-alpine RUN apk --no-cache add git openssh make protobuf gcc libc-dev nodejs npm yarn sudo perl-utils tar sed grep \ && mkdir -p /.cache/go-build \ && chmod -R 777 /.cache \ diff --git a/tool/docker-protoc/Makefile b/tool/docker-protoc/Makefile index 772bd8e3..73f1484a 100644 --- a/tool/docker-protoc/Makefile +++ b/tool/docker-protoc/Makefile @@ -1,5 +1,5 @@ IMAGE ?= bertytech/buf -VERSION ?= 2 +VERSION ?= 3 build: cd ../../ && docker build -f ./tool/docker-protoc/Dockerfile -t $(IMAGE):$(VERSION) -t $(IMAGE):latest . From f8c89c3517a4aec020aa5a2336df0cabb3615af3 Mon Sep 17 00:00:00 2001 From: D4ryl00 Date: Wed, 31 Jul 2024 11:12:18 +0200 Subject: [PATCH 04/20] chore: remove gogo Signed-off-by: D4ryl00 --- account_export.go | 115 ++++---- account_export_test.go | 16 +- api_app.go | 33 +-- api_client.go | 24 +- api_contact.go | 28 +- api_contact_request_test.go | 2 +- api_contactrequest.go | 50 ++-- api_debug.go | 100 +++---- api_event.go | 28 +- api_group.go | 79 ++--- api_multimember.go | 42 +-- api_replication.go | 30 +- api_verified_credentials.go | 22 +- blackbox_test.go | 4 +- contact_request_manager.go | 93 +++--- contact_request_manager_test.go | 39 +-- deactivate_test.go | 20 +- docs/Makefile | 2 +- events.go | 84 +++--- events_sig_checkers.go | 26 +- go.mod | 2 + group.go | 19 +- group_context.go | 19 +- internal/handshake/handshake.go | 37 ++- internal/handshake/handshake_test.go | 149 ++++++---- internal/handshake/handshake_util_test.go | 5 +- internal/handshake/request.go | 73 +++-- internal/handshake/response.go | 76 +++-- internal/sysutil/sysutil.go | 8 +- internal/sysutil/sysutil_unix.go | 4 +- internal/tools/tools.go | 2 - message_marshaler.go | 12 +- orbitdb.go | 70 ++--- orbitdb_signed_entry_accesscontroller.go | 6 +- orbitdb_signed_entry_identity_provider.go | 4 +- orbitdb_signed_entry_keystore.go | 6 +- orbitdb_utils_test.go | 9 +- outofstoremessage_test.go | 17 +- pkg/bertyvcissuer/client.go | 34 +-- .../verifiable_public_key_fetcher.go | 4 +- pkg/cryptoutil/cryptoutil.go | 24 +- pkg/cryptoutil/cryptoutil_test.go | 6 +- pkg/errcode/error_test.go | 48 ++-- pkg/errcode/stdproto.go | 6 +- pkg/ipfsutil/keystore_datastore.go | 2 +- pkg/ipfsutil/repo.go | 14 +- pkg/logutil/file.go | 12 +- pkg/logutil/logutil.go | 2 +- pkg/protocoltypes/contact.go | 16 +- pkg/protocoltypes/events_account.go | 48 ++-- pkg/protocoltypes/group.go | 26 +- pkg/rendezvous/emitterio_sync_client.go | 2 +- pkg/rendezvous/emitterio_sync_provider.go | 2 +- pkg/secretstore/chain_key.go | 17 +- pkg/secretstore/datastore_keys.go | 4 +- pkg/secretstore/device_keystore_wrapper.go | 48 ++-- pkg/secretstore/keys_utils.go | 34 +-- pkg/secretstore/secret_store.go | 103 +++---- pkg/secretstore/secret_store_messages.go | 269 +++++++++--------- pkg/secretstore/secret_store_messages_test.go | 7 +- pkg/secretstore/secret_store_test.go | 17 +- pkg/testutil/filters.go | 6 +- pkg/tinder/driver_localdiscovery.go | 21 +- scenario_test.go | 51 ++-- service.go | 10 +- service_group.go | 70 ++--- service_outofstoremessage.go | 2 +- store_message.go | 66 ++--- store_message_metrics.go | 4 +- store_metadata.go | 267 +++++++++-------- store_metadata_index.go | 224 +++++++-------- store_metadata_test.go | 118 ++++---- store_options.go | 20 +- store_utils.go | 6 +- testing.go | 23 +- 75 files changed, 1555 insertions(+), 1433 deletions(-) diff --git a/account_export.go b/account_export.go index a1ed9679..63971229 100644 --- a/account_export.go +++ b/account_export.go @@ -15,6 +15,7 @@ import ( mh "github.com/multiformats/go-multihash" "go.uber.org/multierr" "go.uber.org/zap" + "google.golang.org/protobuf/proto" orbitdb "berty.tech/go-orbit-db" "berty.tech/weshnet/pkg/errcode" @@ -33,7 +34,7 @@ func (s *service) export(ctx context.Context, output io.Writer) error { defer tw.Close() if err := s.exportAccountKeys(tw); err != nil { - return errcode.ErrInternal.Wrap(err) + return errcode.ErrCode_ErrInternal.Wrap(err) } s.lock.RLock() @@ -47,7 +48,7 @@ func (s *service) export(ctx context.Context, output io.Writer) error { for _, gc := range groups { if err := s.exportGroupContext(ctx, gc, tw); err != nil { - return errcode.ErrInternal.Wrap(err) + return errcode.ErrCode_ErrInternal.Wrap(err) } } @@ -56,11 +57,11 @@ func (s *service) export(ctx context.Context, output io.Writer) error { func (s *service) exportGroupContext(ctx context.Context, gc *GroupContext, tw *tar.Writer) error { if err := s.exportOrbitDBStore(ctx, gc.metadataStore, tw); err != nil { - return errcode.ErrInternal.Wrap(err) + return errcode.ErrCode_ErrInternal.Wrap(err) } if err := s.exportOrbitDBStore(ctx, gc.messageStore, tw); err != nil { - return errcode.ErrInternal.Wrap(err) + return errcode.ErrCode_ErrInternal.Wrap(err) } metaRawHeads := gc.metadataStore.OpLog().RawHeads() @@ -76,7 +77,7 @@ func (s *service) exportGroupContext(ctx context.Context, gc *GroupContext, tw * } if err := s.exportOrbitDBGroupHeads(gc, cidsMeta, cidsMessages, tw); err != nil { - return errcode.ErrInternal.Wrap(err) + return errcode.ErrCode_ErrInternal.Wrap(err) } return nil @@ -95,7 +96,7 @@ func (s *service) exportOrbitDBStore(ctx context.Context, store orbitdb.Store, t err = multierr.Append(err, clErr) } - return errcode.ErrInternal.Wrap(err) + return errcode.ErrCode_ErrInternal.Wrap(err) } } @@ -105,17 +106,17 @@ func (s *service) exportOrbitDBStore(ctx context.Context, store orbitdb.Store, t func (s *service) exportAccountKeys(tw *tar.Writer) error { accountPrivateKeyBytes, accountProofPrivateKeyBytes, err := s.secretStore.ExportAccountKeysForBackup() if err != nil { - return errcode.ErrInternal.Wrap(err) + return errcode.ErrCode_ErrInternal.Wrap(err) } err = exportPrivateKey(tw, accountPrivateKeyBytes, exportAccountKeyFilename) if err != nil { - return errcode.ErrStreamWrite.Wrap(err) + return errcode.ErrCode_ErrStreamWrite.Wrap(err) } err = exportPrivateKey(tw, accountProofPrivateKeyBytes, exportAccountProofKeyFilename) if err != nil { - return errcode.ErrStreamWrite.Wrap(err) + return errcode.ErrCode_ErrStreamWrite.Wrap(err) } return nil @@ -134,32 +135,32 @@ func (s *service) exportOrbitDBGroupHeads(gc *GroupContext, headsMetadata []cid. spk, err := gc.group.GetSigningPubKey() if err != nil { - return errcode.ErrSerialization.Wrap(err) + return errcode.ErrCode_ErrSerialization.Wrap(err) } spkBytes, err := spk.Raw() if err != nil { - return errcode.ErrSerialization.Wrap(err) + return errcode.ErrCode_ErrSerialization.Wrap(err) } linkKeyArr, err := gc.group.GetLinkKeyArray() if err != nil { - return errcode.ErrSerialization.Wrap(err) + return errcode.ErrCode_ErrSerialization.Wrap(err) } headsExport := &protocoltypes.GroupHeadsExport{ PublicKey: gc.group.PublicKey, SignPub: spkBytes, - MetadataHeadsCIDs: cidsMeta, - MessagesHeadsCIDs: cidsMessages, + MetadataHeadsCids: cidsMeta, + MessagesHeadsCids: cidsMessages, LinkKey: linkKeyArr[:], } entryName := base64.RawURLEncoding.EncodeToString(gc.group.PublicKey) - data, err := headsExport.Marshal() + data, err := proto.Marshal(headsExport) if err != nil { - return errcode.ErrSerialization.Wrap(err) + return errcode.ErrCode_ErrSerialization.Wrap(err) } if err := tw.WriteHeader(&tar.Header{ @@ -168,16 +169,16 @@ func (s *service) exportOrbitDBGroupHeads(gc *GroupContext, headsMetadata []cid. Mode: 0o600, Size: int64(len(data)), }); err != nil { - return errcode.ErrStreamWrite.Wrap(err) + return errcode.ErrCode_ErrStreamWrite.Wrap(err) } size, err := tw.Write(data) if err != nil { - return errcode.ErrStreamWrite.Wrap(err) + return errcode.ErrCode_ErrStreamWrite.Wrap(err) } if size != len(data) { - return errcode.ErrStreamWrite.Wrap(fmt.Errorf("wrote %d bytes instead of %d", size, len(data))) + return errcode.ErrCode_ErrStreamWrite.Wrap(fmt.Errorf("wrote %d bytes instead of %d", size, len(data))) } return nil @@ -190,16 +191,16 @@ func exportPrivateKey(tw *tar.Writer, marshalledPrivateKey []byte, filename stri Mode: 0o600, Size: int64(len(marshalledPrivateKey)), }); err != nil { - return errcode.ErrStreamWrite.Wrap(err) + return errcode.ErrCode_ErrStreamWrite.Wrap(err) } size, err := tw.Write(marshalledPrivateKey) if err != nil { - return errcode.ErrStreamWrite.Wrap(err) + return errcode.ErrCode_ErrStreamWrite.Wrap(err) } if size != len(marshalledPrivateKey) { - return errcode.ErrStreamWrite.Wrap(fmt.Errorf("wrote %d bytes instead of %d", size, len(marshalledPrivateKey))) + return errcode.ErrCode_ErrStreamWrite.Wrap(fmt.Errorf("wrote %d bytes instead of %d", size, len(marshalledPrivateKey))) } return nil @@ -208,12 +209,12 @@ func exportPrivateKey(tw *tar.Writer, marshalledPrivateKey []byte, filename stri func (s *service) exportOrbitDBEntry(ctx context.Context, tw *tar.Writer, idStr string) error { id, err := cid.Parse(idStr) if err != nil { - return errcode.ErrSerialization.Wrap(err) + return errcode.ErrCode_ErrSerialization.Wrap(err) } dagNode, err := s.ipfsCoreAPI.Dag().Get(ctx, id) if err != nil { - return errcode.ErrInternal.Wrap(err) + return errcode.ErrCode_ErrInternal.Wrap(err) } dagNodeBytes := dagNode.RawData() @@ -224,16 +225,16 @@ func (s *service) exportOrbitDBEntry(ctx context.Context, tw *tar.Writer, idStr Mode: 0o600, Size: int64(len(dagNodeBytes)), }); err != nil { - return errcode.ErrStreamWrite.Wrap(err) + return errcode.ErrCode_ErrStreamWrite.Wrap(err) } size, err := tw.Write(dagNodeBytes) if err != nil { - return errcode.ErrStreamWrite.Wrap(err) + return errcode.ErrCode_ErrStreamWrite.Wrap(err) } if size != len(dagNodeBytes) { - return errcode.ErrStreamWrite.Wrap(fmt.Errorf("wrote %d bytes instead of %d", size, len(dagNodeBytes))) + return errcode.ErrCode_ErrStreamWrite.Wrap(fmt.Errorf("wrote %d bytes instead of %d", size, len(dagNodeBytes))) } return nil @@ -241,17 +242,17 @@ func (s *service) exportOrbitDBEntry(ctx context.Context, tw *tar.Writer, idStr func readExportSecretKeyFile(expectedSize int64, reader *tar.Reader) ([]byte, error) { if expectedSize == 0 { - return nil, errcode.ErrInvalidInput.Wrap(fmt.Errorf("invalid expected key size")) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("invalid expected key size")) } keyContents := new(bytes.Buffer) size, err := io.Copy(keyContents, reader) if err != nil { - return nil, errcode.ErrInternal.Wrap(fmt.Errorf("unable to read %d bytes: %w", expectedSize, err)) + return nil, errcode.ErrCode_ErrInternal.Wrap(fmt.Errorf("unable to read %d bytes: %w", expectedSize, err)) } if size != expectedSize { - return nil, errcode.ErrInternal.Wrap(fmt.Errorf("unexpected file size")) + return nil, errcode.ErrCode_ErrInternal.Wrap(fmt.Errorf("unexpected file size")) } return keyContents.Bytes(), nil @@ -259,37 +260,37 @@ func readExportSecretKeyFile(expectedSize int64, reader *tar.Reader) ([]byte, er func readExportOrbitDBGroupHeads(expectedSize int64, reader *tar.Reader) (*protocoltypes.GroupHeadsExport, []cid.Cid, []cid.Cid, error) { if expectedSize == 0 { - return nil, nil, nil, errcode.ErrInvalidInput.Wrap(fmt.Errorf("invalid expected node size")) + return nil, nil, nil, errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("invalid expected node size")) } nodeContents := new(bytes.Buffer) size, err := io.Copy(nodeContents, reader) if err != nil { - return nil, nil, nil, errcode.ErrInternal.Wrap(fmt.Errorf("unable to read %d bytes: %w", expectedSize, err)) + return nil, nil, nil, errcode.ErrCode_ErrInternal.Wrap(fmt.Errorf("unable to read %d bytes: %w", expectedSize, err)) } if size != expectedSize { - return nil, nil, nil, errcode.ErrInternal.Wrap(fmt.Errorf("unexpected file size")) + return nil, nil, nil, errcode.ErrCode_ErrInternal.Wrap(fmt.Errorf("unexpected file size")) } groupHeads := &protocoltypes.GroupHeadsExport{} - if err := groupHeads.Unmarshal(nodeContents.Bytes()); err != nil { - return nil, nil, nil, errcode.ErrDeserialization.Wrap(err) + if err := proto.Unmarshal(nodeContents.Bytes(), groupHeads); err != nil { + return nil, nil, nil, errcode.ErrCode_ErrDeserialization.Wrap(err) } - messagesCIDs := make([]cid.Cid, len(groupHeads.MessagesHeadsCIDs)) - for i, cidBytes := range groupHeads.MessagesHeadsCIDs { + messagesCIDs := make([]cid.Cid, len(groupHeads.MessagesHeadsCids)) + for i, cidBytes := range groupHeads.MessagesHeadsCids { messagesCIDs[i], err = cid.Parse(cidBytes) if err != nil { - return nil, nil, nil, errcode.ErrDeserialization.Wrap(err) + return nil, nil, nil, errcode.ErrCode_ErrDeserialization.Wrap(err) } } - metaCIDs := make([]cid.Cid, len(groupHeads.MetadataHeadsCIDs)) - for i, cidBytes := range groupHeads.MetadataHeadsCIDs { + metaCIDs := make([]cid.Cid, len(groupHeads.MetadataHeadsCids)) + for i, cidBytes := range groupHeads.MetadataHeadsCids { metaCIDs[i], err = cid.Parse(cidBytes) if err != nil { - return nil, nil, nil, errcode.ErrDeserialization.Wrap(err) + return nil, nil, nil, errcode.ErrCode_ErrDeserialization.Wrap(err) } } @@ -298,31 +299,31 @@ func readExportOrbitDBGroupHeads(expectedSize int64, reader *tar.Reader) (*proto func readExportCBORNode(expectedSize int64, cidStr string, reader *tar.Reader) (*cbornode.Node, error) { if expectedSize == 0 { - return nil, errcode.ErrInvalidInput.Wrap(fmt.Errorf("invalid expected node size")) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("invalid expected node size")) } nodeContents := new(bytes.Buffer) expectedCID, err := cid.Parse(cidStr) if err != nil { - return nil, errcode.ErrDeserialization.Wrap(fmt.Errorf("unable to parse CID in filename")) + return nil, errcode.ErrCode_ErrDeserialization.Wrap(fmt.Errorf("unable to parse CID in filename")) } size, err := io.Copy(nodeContents, reader) if err != nil { - return nil, errcode.ErrInternal.Wrap(fmt.Errorf("unable to read %d bytes: %w", expectedSize, err)) + return nil, errcode.ErrCode_ErrInternal.Wrap(fmt.Errorf("unable to read %d bytes: %w", expectedSize, err)) } if size != expectedSize { - return nil, errcode.ErrInternal.Wrap(fmt.Errorf("unexpected file size")) + return nil, errcode.ErrCode_ErrInternal.Wrap(fmt.Errorf("unexpected file size")) } node, err := cbornode.Decode(nodeContents.Bytes(), mh.SHA2_256, -1) if err != nil { - return nil, errcode.ErrDeserialization.Wrap(err) + return nil, errcode.ErrCode_ErrDeserialization.Wrap(err) } if !node.Cid().Equals(expectedCID) { - return nil, errcode.ErrInvalidInput.Wrap(fmt.Errorf("entry CID doesn't match file CID")) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("entry CID doesn't match file CID")) } return node, nil @@ -345,14 +346,14 @@ func (state *restoreAccountState) readKey(keyName string) RestoreAccountHandler } if state.keys[keyName] != nil { - return false, errcode.ErrInternal.Wrap(fmt.Errorf("multiple keys found in archive")) + return false, errcode.ErrCode_ErrInternal.Wrap(fmt.Errorf("multiple keys found in archive")) } var err error state.keys[keyName], err = readExportSecretKeyFile(header.Size, reader) if err != nil { - return true, errcode.ErrInternal.Wrap(err) + return true, errcode.ErrCode_ErrInternal.Wrap(err) } return true, nil @@ -364,7 +365,7 @@ func (state *restoreAccountState) restoreKeys(odb *WeshOrbitDB) RestoreAccountHa return RestoreAccountHandler{ PostProcess: func() error { if err := odb.secretStore.ImportAccountKeys(state.keys[exportAccountKeyFilename], state.keys[exportAccountProofKeyFilename]); err != nil { - return errcode.ErrInternal.Wrap(err) + return errcode.ErrCode_ErrInternal.Wrap(err) } return nil @@ -383,11 +384,11 @@ func restoreOrbitDBEntry(ctx context.Context, coreAPI coreiface.CoreAPI) Restore node, err := readExportCBORNode(header.Size, cidStr, reader) if err != nil { - return true, errcode.ErrInternal.Wrap(err) + return true, errcode.ErrCode_ErrInternal.Wrap(err) } if err := coreAPI.Dag().Add(ctx, node); err != nil { - return true, errcode.ErrInternal.Wrap(err) + return true, errcode.ErrCode_ErrInternal.Wrap(err) } return true, nil @@ -404,7 +405,7 @@ func restoreOrbitDBHeads(ctx context.Context, odb *WeshOrbitDB) RestoreAccountHa heads, metaCIDs, messageCIDs, err := readExportOrbitDBGroupHeads(header.Size, reader) if err != nil { - return true, errcode.ErrInternal.Wrap(err) + return true, errcode.ErrCode_ErrInternal.Wrap(err) } if err := odb.setHeadsForGroup(ctx, &protocoltypes.Group{ @@ -412,7 +413,7 @@ func restoreOrbitDBHeads(ctx context.Context, odb *WeshOrbitDB) RestoreAccountHa SignPub: heads.SignPub, LinkKey: heads.LinkKey, }, metaCIDs, messageCIDs); err != nil { - return true, errcode.ErrOrbitDBAppend.Wrap(fmt.Errorf("error while restoring db head: %w", err)) + return true, errcode.ErrCode_ErrOrbitDBAppend.Wrap(fmt.Errorf("error while restoring db head: %w", err)) } return true, nil @@ -443,7 +444,7 @@ func RestoreAccountExport(ctx context.Context, reader io.Reader, coreAPI coreifa if err == io.EOF { break } else if err != nil { - return errcode.ErrInternal.Wrap(err) + return errcode.ErrCode_ErrInternal.Wrap(err) } if header.Typeflag != tar.TypeReg { @@ -460,7 +461,7 @@ func RestoreAccountExport(ctx context.Context, reader io.Reader, coreAPI coreifa handled, err := h.Handler(header, tr) if err != nil { - return errcode.ErrInternal.Wrap(err) + return errcode.ErrCode_ErrInternal.Wrap(err) } if handled { @@ -480,7 +481,7 @@ func RestoreAccountExport(ctx context.Context, reader io.Reader, coreAPI coreifa } if err := h.PostProcess(); err != nil { - return errcode.ErrInternal.Wrap(err) + return errcode.ErrCode_ErrInternal.Wrap(err) } } diff --git a/account_export_test.go b/account_export_test.go index f147cf51..ef5ced22 100644 --- a/account_export_test.go +++ b/account_export_test.go @@ -145,7 +145,7 @@ func TestFlappyRestoreAccount(t *testing.T) { _, err = nodeA.Client.MultiMemberGroupJoin(ctx, &protocoltypes.MultiMemberGroupJoin_Request{Group: g}) require.NoError(t, err) - _, err = nodeA.Client.ActivateGroup(ctx, &protocoltypes.ActivateGroup_Request{GroupPK: g.PublicKey}) + _, err = nodeA.Client.ActivateGroup(ctx, &protocoltypes.ActivateGroup_Request{GroupPk: g.PublicKey}) require.NoError(t, err) op, err = serviceA.openedGroups[string(g.PublicKey)].messageStore.AddMessage(ctx, testPayload3) @@ -203,9 +203,9 @@ func TestFlappyRestoreAccount(t *testing.T) { require.NoError(t, err) require.NotNil(t, nodeBInstanceConfig) - require.Equal(t, nodeAInstanceConfig.AccountPK, nodeBInstanceConfig.AccountPK) - require.NotEqual(t, nodeAInstanceConfig.DevicePK, nodeBInstanceConfig.DevicePK) - require.Equal(t, nodeAInstanceConfig.AccountGroupPK, nodeBInstanceConfig.AccountGroupPK) + require.Equal(t, nodeAInstanceConfig.AccountPk, nodeBInstanceConfig.AccountPk) + require.NotEqual(t, nodeAInstanceConfig.DevicePk, nodeBInstanceConfig.DevicePk) + require.Equal(t, nodeAInstanceConfig.AccountGroupPk, nodeBInstanceConfig.AccountGroupPk) accountGroup := nodeB.Service.(*service).getAccountGroup() require.NotNil(t, accountGroup) @@ -216,14 +216,14 @@ func TestFlappyRestoreAccount(t *testing.T) { require.True(t, ok) } - _, err = nodeB.Service.ActivateGroup(ctx, &protocoltypes.ActivateGroup_Request{GroupPK: g.PublicKey}) + _, err = nodeB.Service.ActivateGroup(ctx, &protocoltypes.ActivateGroup_Request{GroupPk: g.PublicKey}) require.NoError(t, err) - for _, gPK := range [][]byte{nodeBInstanceConfig.AccountGroupPK, g.PublicKey} { + for _, gPK := range [][]byte{nodeBInstanceConfig.AccountGroupPk, g.PublicKey} { sub, err := nodeB.Client.GroupMessageList( ctx, &protocoltypes.GroupMessageList_Request{ - GroupPK: gPK, + GroupPk: gPK, UntilNow: true, }, ) @@ -236,7 +236,7 @@ func TestFlappyRestoreAccount(t *testing.T) { break } - id, err := cid.Parse(evt.EventContext.ID) + id, err := cid.Parse(evt.EventContext.Id) require.NoError(t, err) ref, ok := expectedMessages[id] diff --git a/api_app.go b/api_app.go index 9dc3ec07..81e57701 100644 --- a/api_app.go +++ b/api_app.go @@ -7,6 +7,7 @@ import ( "github.com/ipfs/go-cid" "go.uber.org/zap" + "google.golang.org/protobuf/proto" "berty.tech/weshnet/pkg/errcode" "berty.tech/weshnet/pkg/protocoltypes" @@ -14,46 +15,46 @@ import ( ) func (s *service) AppMetadataSend(ctx context.Context, req *protocoltypes.AppMetadataSend_Request) (_ *protocoltypes.AppMetadataSend_Reply, err error) { - ctx, _, endSection := tyber.Section(ctx, s.logger, fmt.Sprintf("Sending app metadata to group %s", base64.RawURLEncoding.EncodeToString(req.GroupPK))) + ctx, _, endSection := tyber.Section(ctx, s.logger, fmt.Sprintf("Sending app metadata to group %s", base64.RawURLEncoding.EncodeToString(req.GroupPk))) defer func() { endSection(err, "") }() - gc, err := s.GetContextGroupForID(req.GroupPK) + gc, err := s.GetContextGroupForID(req.GroupPk) if err != nil { - return nil, errcode.ErrGroupMissing.Wrap(err) + return nil, errcode.ErrCode_ErrGroupMissing.Wrap(err) } tyberLogGroupContext(ctx, s.logger, gc) op, err := gc.MetadataStore().SendAppMetadata(ctx, req.Payload) if err != nil { - return nil, errcode.ErrOrbitDBAppend.Wrap(err) + return nil, errcode.ErrCode_ErrOrbitDBAppend.Wrap(err) } - return &protocoltypes.AppMetadataSend_Reply{CID: op.GetEntry().GetHash().Bytes()}, nil + return &protocoltypes.AppMetadataSend_Reply{Cid: op.GetEntry().GetHash().Bytes()}, nil } func (s *service) AppMessageSend(ctx context.Context, req *protocoltypes.AppMessageSend_Request) (_ *protocoltypes.AppMessageSend_Reply, err error) { - ctx, _, endSection := tyber.Section(ctx, s.logger, fmt.Sprintf("Sending message to group %s", base64.RawURLEncoding.EncodeToString(req.GroupPK))) + ctx, _, endSection := tyber.Section(ctx, s.logger, fmt.Sprintf("Sending message to group %s", base64.RawURLEncoding.EncodeToString(req.GroupPk))) defer func() { endSection(err, "") }() - gc, err := s.GetContextGroupForID(req.GroupPK) + gc, err := s.GetContextGroupForID(req.GroupPk) if err != nil { - return nil, errcode.ErrGroupMissing.Wrap(err) + return nil, errcode.ErrCode_ErrGroupMissing.Wrap(err) } tyberLogGroupContext(ctx, s.logger, gc) op, err := gc.MessageStore().AddMessage(ctx, req.Payload) if err != nil { - return nil, errcode.ErrOrbitDBAppend.Wrap(err) + return nil, errcode.ErrCode_ErrOrbitDBAppend.Wrap(err) } - return &protocoltypes.AppMessageSend_Reply{CID: op.GetEntry().GetHash().Bytes()}, nil + return &protocoltypes.AppMessageSend_Reply{Cid: op.GetEntry().GetHash().Bytes()}, nil } // OutOfStoreReceive parses a payload received outside a synchronized store func (s *service) OutOfStoreReceive(ctx context.Context, request *protocoltypes.OutOfStoreReceive_Request) (*protocoltypes.OutOfStoreReceive_Reply, error) { outOfStoreMessage, group, clearPayload, alreadyDecrypted, err := s.secretStore.OpenOutOfStoreMessage(ctx, request.Payload) if err != nil { - return nil, errcode.ErrCryptoDecrypt.Wrap(err) + return nil, errcode.ErrCode_ErrCryptoDecrypt.Wrap(err) } return &protocoltypes.OutOfStoreReceive_Reply{ @@ -71,19 +72,19 @@ func (s *service) OutOfStoreSeal(ctx context.Context, request *protocoltypes.Out return nil, err } - _, c, err := cid.CidFromBytes(request.CID) + _, c, err := cid.CidFromBytes(request.Cid) if err != nil { - return nil, errcode.ErrInvalidInput.Wrap(err) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(err) } sealedMessageEnvelope, err := gc.messageStore.GetOutOfStoreMessageEnvelope(ctx, c) if err != nil { - return nil, errcode.ErrInternal.Wrap(err) + return nil, errcode.ErrCode_ErrInternal.Wrap(err) } - sealedMessageEnvelopeBytes, err := sealedMessageEnvelope.Marshal() + sealedMessageEnvelopeBytes, err := proto.Marshal(sealedMessageEnvelope) if err != nil { - return nil, errcode.ErrSerialization.Wrap(err) + return nil, errcode.ErrCode_ErrSerialization.Wrap(err) } return &protocoltypes.OutOfStoreSeal_Reply{ diff --git a/api_client.go b/api_client.go index 0c200283..f4dd33c6 100644 --- a/api_client.go +++ b/api_client.go @@ -31,19 +31,19 @@ func (s *service) ServiceExportData(_ *protocoltypes.ServiceExportData_Request, if err == io.EOF { break } else if err != nil { - exportErr = errcode.ErrStreamRead.Wrap(err) + exportErr = errcode.ErrCode_ErrStreamRead.Wrap(err) break } if err := server.Send(&protocoltypes.ServiceExportData_Reply{ExportedData: contents[:l]}); err != nil { - exportErr = errcode.ErrStreamWrite.Wrap(err) + exportErr = errcode.ErrCode_ErrStreamWrite.Wrap(err) break } } }() if err := s.export(ctx, w); err != nil { - return errcode.ErrInternal.Wrap(err) + return errcode.ErrCode_ErrInternal.Wrap(err) } _ = w.Close() @@ -59,12 +59,12 @@ func (s *service) ServiceExportData(_ *protocoltypes.ServiceExportData_Request, func (s *service) ServiceGetConfiguration(ctx context.Context, req *protocoltypes.ServiceGetConfiguration_Request) (*protocoltypes.ServiceGetConfiguration_Reply, error) { key, err := s.ipfsCoreAPI.Key().Self(ctx) if err != nil { - return nil, errcode.TODO.Wrap(err) + return nil, errcode.ErrCode_TODO.Wrap(err) } maddrs, err := s.ipfsCoreAPI.Swarm().ListenAddrs(ctx) if err != nil { - return nil, errcode.TODO.Wrap(err) + return nil, errcode.ErrCode_TODO.Wrap(err) } listeners := make([]string, len(maddrs)) @@ -74,24 +74,24 @@ func (s *service) ServiceGetConfiguration(ctx context.Context, req *protocoltype accountGroup := s.getAccountGroup() if accountGroup == nil { - return nil, errcode.ErrGroupMissing + return nil, errcode.ErrCode_ErrGroupMissing } member, err := accountGroup.MemberPubKey().Raw() if err != nil { - return nil, errcode.ErrSerialization.Wrap(err) + return nil, errcode.ErrCode_ErrSerialization.Wrap(err) } device, err := accountGroup.DevicePubKey().Raw() if err != nil { - return nil, errcode.ErrSerialization.Wrap(err) + return nil, errcode.ErrCode_ErrSerialization.Wrap(err) } return &protocoltypes.ServiceGetConfiguration_Reply{ - AccountPK: member, - DevicePK: device, - AccountGroupPK: accountGroup.Group().PublicKey, - PeerID: key.ID().String(), + AccountPk: member, + DevicePk: device, + AccountGroupPk: accountGroup.Group().PublicKey, + PeerId: key.ID().String(), Listeners: listeners, }, nil } diff --git a/api_contact.go b/api_contact.go index 8a0f72ca..fd1b3c15 100644 --- a/api_contact.go +++ b/api_contact.go @@ -16,13 +16,13 @@ func (s *service) ContactAliasKeySend(ctx context.Context, req *protocoltypes.Co ctx, _, endSection := tyber.Section(ctx, s.logger, "Sending contact alias key") defer func() { endSection(err, "") }() - g, err := s.GetContextGroupForID(req.GroupPK) + g, err := s.GetContextGroupForID(req.GroupPk) if err != nil { - return nil, errcode.ErrGroupMissing.Wrap(err) + return nil, errcode.ErrCode_ErrGroupMissing.Wrap(err) } if _, err := g.MetadataStore().ContactSendAliasKey(ctx); err != nil { - return nil, errcode.ErrOrbitDBAppend.Wrap(err) + return nil, errcode.ErrCode_ErrOrbitDBAppend.Wrap(err) } return &protocoltypes.ContactAliasKeySend_Reply{}, nil @@ -32,13 +32,13 @@ func (s *service) ContactBlock(ctx context.Context, req *protocoltypes.ContactBl ctx, _, endSection := tyber.Section(ctx, s.logger, "Blocking contact") defer func() { endSection(err, "") }() - pk, err := crypto.UnmarshalEd25519PublicKey(req.ContactPK) + pk, err := crypto.UnmarshalEd25519PublicKey(req.ContactPk) if err != nil { - return nil, errcode.ErrDeserialization.Wrap(err) + return nil, errcode.ErrCode_ErrDeserialization.Wrap(err) } if _, err := s.getAccountGroup().MetadataStore().ContactBlock(ctx, pk); err != nil { - return nil, errcode.ErrOrbitDBAppend.Wrap(err) + return nil, errcode.ErrCode_ErrOrbitDBAppend.Wrap(err) } return &protocoltypes.ContactBlock_Reply{}, nil @@ -48,21 +48,21 @@ func (s *service) ContactUnblock(ctx context.Context, req *protocoltypes.Contact ctx, _, endSection := tyber.Section(ctx, s.logger, "Unblocking contact") defer func() { endSection(err, "") }() - pk, err := crypto.UnmarshalEd25519PublicKey(req.ContactPK) + pk, err := crypto.UnmarshalEd25519PublicKey(req.ContactPk) if err != nil { - return nil, errcode.ErrDeserialization.Wrap(err) + return nil, errcode.ErrCode_ErrDeserialization.Wrap(err) } if _, err := s.getAccountGroup().MetadataStore().ContactUnblock(ctx, pk); err != nil { - return nil, errcode.ErrOrbitDBAppend.Wrap(err) + return nil, errcode.ErrCode_ErrOrbitDBAppend.Wrap(err) } return &protocoltypes.ContactUnblock_Reply{}, nil } func (s *service) RefreshContactRequest(ctx context.Context, req *protocoltypes.RefreshContactRequest_Request) (*protocoltypes.RefreshContactRequest_Reply, error) { - if len(req.ContactPK) == 0 { - return nil, errcode.ErrInternal + if len(req.ContactPk) == 0 { + return nil, errcode.ErrCode_ErrInternal } var cancel context.CancelFunc @@ -73,7 +73,7 @@ func (s *service) RefreshContactRequest(ctx context.Context, req *protocoltypes. } defer cancel() - key := string(req.ContactPK) + key := string(req.ContactPk) s.muRefreshprocess.Lock() if clfn, ok := s.refreshprocess[key]; ok { clfn() // close previous refresh method @@ -81,7 +81,7 @@ func (s *service) RefreshContactRequest(ctx context.Context, req *protocoltypes. s.refreshprocess[key] = cancel s.muRefreshprocess.Unlock() - peers, err := s.swiper.RefreshContactRequest(ctx, req.ContactPK) + peers, err := s.swiper.RefreshContactRequest(ctx, req.ContactPk) if err != nil { return nil, fmt.Errorf("unable to refresh group: %w", err) } @@ -101,7 +101,7 @@ func (s *service) RefreshContactRequest(ctx context.Context, req *protocoltypes. } res.PeersFound = append(res.PeersFound, &protocoltypes.RefreshContactRequest_Peer{ - ID: p.ID.String(), + Id: p.ID.String(), Addrs: addrs, }) } diff --git a/api_contact_request_test.go b/api_contact_request_test.go index 412cadff..f7ad4ad3 100644 --- a/api_contact_request_test.go +++ b/api_contact_request_test.go @@ -47,6 +47,6 @@ func TestShareContact(t *testing.T) { config, err := pts[0].Client.ServiceGetConfiguration(ctx, &protocoltypes.ServiceGetConfiguration_Request{}) require.NoError(t, err) - require.Equal(t, contact.Contact.PK, config.AccountPK) + require.Equal(t, contact.Contact.Pk, config.AccountPk) require.Equal(t, contact.Contact.PublicRendezvousSeed, contactRequestRef.PublicRendezvousSeed) } diff --git a/api_contactrequest.go b/api_contactrequest.go index 4451e23c..c5e07844 100644 --- a/api_contactrequest.go +++ b/api_contactrequest.go @@ -3,8 +3,8 @@ package weshnet import ( "context" - "github.com/gogo/protobuf/proto" "github.com/libp2p/go-libp2p/core/crypto" + "google.golang.org/protobuf/proto" "berty.tech/weshnet/pkg/errcode" "berty.tech/weshnet/pkg/protocoltypes" @@ -15,7 +15,7 @@ import ( func (s *service) ContactRequestReference(ctx context.Context, _ *protocoltypes.ContactRequestReference_Request) (*protocoltypes.ContactRequestReference_Reply, error) { accountGroup := s.getAccountGroup() if accountGroup == nil { - return nil, errcode.ErrGroupMissing + return nil, errcode.ErrCode_ErrGroupMissing } enabled, shareableContact := accountGroup.MetadataStore().GetIncomingContactRequestsStatus() @@ -38,11 +38,11 @@ func (s *service) ContactRequestDisable(ctx context.Context, _ *protocoltypes.Co accountGroup := s.getAccountGroup() if accountGroup == nil { - return nil, errcode.ErrGroupMissing + return nil, errcode.ErrCode_ErrGroupMissing } if _, err := accountGroup.MetadataStore().ContactRequestDisable(ctx); err != nil { - return nil, errcode.ErrOrbitDBAppend.Wrap(err) + return nil, errcode.ErrCode_ErrOrbitDBAppend.Wrap(err) } return &protocoltypes.ContactRequestDisable_Reply{}, nil @@ -55,11 +55,11 @@ func (s *service) ContactRequestEnable(ctx context.Context, _ *protocoltypes.Con accountGroup := s.getAccountGroup() if accountGroup == nil { - return nil, errcode.ErrGroupMissing + return nil, errcode.ErrCode_ErrGroupMissing } if _, err := accountGroup.MetadataStore().ContactRequestEnable(ctx); err != nil { - return nil, errcode.ErrOrbitDBAppend.Wrap(err) + return nil, errcode.ErrCode_ErrOrbitDBAppend.Wrap(err) } _, shareableContact := accountGroup.MetadataStore().GetIncomingContactRequestsStatus() @@ -81,11 +81,11 @@ func (s *service) ContactRequestResetReference(ctx context.Context, _ *protocolt accountGroup := s.getAccountGroup() if accountGroup == nil { - return nil, errcode.ErrGroupMissing + return nil, errcode.ErrCode_ErrGroupMissing } if _, err := accountGroup.MetadataStore().ContactRequestReferenceReset(ctx); err != nil { - return nil, errcode.ErrOrbitDBAppend.Wrap(err) + return nil, errcode.ErrCode_ErrOrbitDBAppend.Wrap(err) } _, shareableContact := accountGroup.MetadataStore().GetIncomingContactRequestsStatus() @@ -109,16 +109,16 @@ func (s *service) ContactRequestSend(ctx context.Context, req *protocoltypes.Con shareableContact := req.Contact if shareableContact == nil { - return nil, errcode.ErrInvalidInput + return nil, errcode.ErrCode_ErrInvalidInput } accountGroup := s.getAccountGroup() if accountGroup == nil { - return nil, errcode.ErrGroupMissing + return nil, errcode.ErrCode_ErrGroupMissing } if _, err := accountGroup.MetadataStore().ContactRequestOutgoingEnqueue(ctx, shareableContact, req.OwnMetadata); err != nil { - return nil, errcode.ErrOrbitDBAppend.Wrap(err) + return nil, errcode.ErrCode_ErrOrbitDBAppend.Wrap(err) } return &protocoltypes.ContactRequestSend_Reply{}, nil @@ -129,23 +129,23 @@ func (s *service) ContactRequestAccept(ctx context.Context, req *protocoltypes.C ctx, _, endSection := tyber.Section(ctx, s.logger, "Accepting contact request") defer func() { endSection(err, "") }() - pk, err := crypto.UnmarshalEd25519PublicKey(req.ContactPK) + pk, err := crypto.UnmarshalEd25519PublicKey(req.ContactPk) if err != nil { - return nil, errcode.ErrDeserialization.Wrap(err) + return nil, errcode.ErrCode_ErrDeserialization.Wrap(err) } group, err := s.secretStore.GetGroupForContact(pk) if err != nil { - return nil, errcode.ErrInternal.Wrap(err) + return nil, errcode.ErrCode_ErrInternal.Wrap(err) } accountGroup := s.getAccountGroup() if accountGroup == nil { - return nil, errcode.ErrGroupMissing + return nil, errcode.ErrCode_ErrGroupMissing } if _, err := accountGroup.MetadataStore().ContactRequestIncomingAccept(ctx, pk); err != nil { - return nil, errcode.ErrOrbitDBAppend.Wrap(err) + return nil, errcode.ErrCode_ErrOrbitDBAppend.Wrap(err) } if err = s.secretStore.PutGroup(ctx, group); err != nil { @@ -160,18 +160,18 @@ func (s *service) ContactRequestDiscard(ctx context.Context, req *protocoltypes. ctx, _, endSection := tyber.Section(ctx, s.logger, "Discarding contact request") defer func() { endSection(err, "") }() - pk, err := crypto.UnmarshalEd25519PublicKey(req.ContactPK) + pk, err := crypto.UnmarshalEd25519PublicKey(req.ContactPk) if err != nil { - return nil, errcode.ErrDeserialization.Wrap(err) + return nil, errcode.ErrCode_ErrDeserialization.Wrap(err) } accountGroup := s.getAccountGroup() if accountGroup == nil { - return nil, errcode.ErrGroupMissing + return nil, errcode.ErrCode_ErrGroupMissing } if _, err := accountGroup.MetadataStore().ContactRequestIncomingDiscard(ctx, pk); err != nil { - return nil, errcode.ErrOrbitDBAppend.Wrap(err) + return nil, errcode.ErrCode_ErrOrbitDBAppend.Wrap(err) } return &protocoltypes.ContactRequestDiscard_Reply{}, nil @@ -183,7 +183,7 @@ func (s *service) ContactRequestDiscard(ctx context.Context, req *protocoltypes. func (s *service) ShareContact(ctx context.Context, req *protocoltypes.ShareContact_Request) (_ *protocoltypes.ShareContact_Reply, err error) { accountGroup := s.getAccountGroup() if accountGroup == nil { - return nil, errcode.ErrGroupMissing + return nil, errcode.ErrCode_ErrGroupMissing } enabled, shareableContact := accountGroup.MetadataStore().GetIncomingContactRequestsStatus() @@ -196,11 +196,11 @@ func (s *service) ShareContact(ctx context.Context, req *protocoltypes.ShareCont if !enabled || len(rdvSeed) == 0 { // We need to enable and reset the contact request reference. if _, err := accountGroup.MetadataStore().ContactRequestEnable(ctx); err != nil { - return nil, errcode.ErrOrbitDBAppend.Wrap(err) + return nil, errcode.ErrCode_ErrOrbitDBAppend.Wrap(err) } if _, err := accountGroup.MetadataStore().ContactRequestReferenceReset(ctx); err != nil { - return nil, errcode.ErrOrbitDBAppend.Wrap(err) + return nil, errcode.ErrCode_ErrOrbitDBAppend.Wrap(err) } // Refresh the info. @@ -215,11 +215,11 @@ func (s *service) ShareContact(ctx context.Context, req *protocoltypes.ShareCont // Get the client's AccountPK. member, err := accountGroup.MemberPubKey().Raw() if err != nil { - return nil, errcode.ErrSerialization.Wrap(err) + return nil, errcode.ErrCode_ErrSerialization.Wrap(err) } encodedContact, err := proto.Marshal(&protocoltypes.ShareableContact{ - PK: member, + Pk: member, PublicRendezvousSeed: rdvSeed, }) if err != nil { diff --git a/api_debug.go b/api_debug.go index 02bbe1e5..88f83893 100644 --- a/api_debug.go +++ b/api_debug.go @@ -6,12 +6,12 @@ import ( "strings" "time" - "github.com/gogo/protobuf/proto" "github.com/libp2p/go-libp2p/core/crypto" "github.com/libp2p/go-libp2p/core/network" peer "github.com/libp2p/go-libp2p/core/peer" "go.uber.org/multierr" "go.uber.org/zap" + "google.golang.org/protobuf/proto" "berty.tech/go-orbit-db/stores/operation" "berty.tech/weshnet/internal/sysutil" @@ -22,31 +22,31 @@ import ( func (s *service) DebugListGroups(req *protocoltypes.DebugListGroups_Request, srv protocoltypes.ProtocolService_DebugListGroupsServer) error { accountGroup := s.getAccountGroup() if accountGroup == nil { - return errcode.ErrGroupMissing + return errcode.ErrCode_ErrGroupMissing } if err := srv.SendMsg(&protocoltypes.DebugListGroups_Reply{ - GroupPK: accountGroup.group.PublicKey, + GroupPk: accountGroup.group.PublicKey, GroupType: accountGroup.group.GroupType, }); err != nil { return err } - for _, c := range accountGroup.MetadataStore().ListContactsByStatus(protocoltypes.ContactStateAdded) { - pk, err := crypto.UnmarshalEd25519PublicKey(c.PK) + for _, c := range accountGroup.MetadataStore().ListContactsByStatus(protocoltypes.ContactState_ContactStateAdded) { + pk, err := crypto.UnmarshalEd25519PublicKey(c.Pk) if err != nil { - return errcode.ErrDeserialization.Wrap(err) + return errcode.ErrCode_ErrDeserialization.Wrap(err) } group, err := s.secretStore.GetGroupForContact(pk) if err != nil { - return errcode.ErrCryptoKeyGeneration.Wrap(err) + return errcode.ErrCode_ErrCryptoKeyGeneration.Wrap(err) } if err := srv.SendMsg(&protocoltypes.DebugListGroups_Reply{ - GroupPK: group.PublicKey, + GroupPk: group.PublicKey, GroupType: group.GroupType, - ContactPK: c.PK, + ContactPk: c.Pk, }); err != nil { return err } @@ -54,7 +54,7 @@ func (s *service) DebugListGroups(req *protocoltypes.DebugListGroups_Request, sr for _, g := range accountGroup.MetadataStore().ListMultiMemberGroups() { if err := srv.SendMsg(&protocoltypes.DebugListGroups_Reply{ - GroupPK: g.PublicKey, + GroupPk: g.PublicKey, GroupType: g.GroupType, }); err != nil { return err @@ -65,17 +65,17 @@ func (s *service) DebugListGroups(req *protocoltypes.DebugListGroups_Request, sr } func (s *service) DebugInspectGroupStore(req *protocoltypes.DebugInspectGroupStore_Request, srv protocoltypes.ProtocolService_DebugInspectGroupStoreServer) error { - if req.LogType == protocoltypes.DebugInspectGroupLogTypeUndefined { - return errcode.ErrInvalidInput.Wrap(fmt.Errorf("invalid log type specified")) + if req.LogType == protocoltypes.DebugInspectGroupLogType_DebugInspectGroupLogTypeUndefined { + return errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("invalid log type specified")) } - cg, err := s.GetContextGroupForID(req.GroupPK) + cg, err := s.GetContextGroupForID(req.GroupPk) if err != nil { - return errcode.ErrInvalidInput.Wrap(err) + return errcode.ErrCode_ErrInvalidInput.Wrap(err) } switch req.LogType { - case protocoltypes.DebugInspectGroupLogTypeMessage: + case protocoltypes.DebugInspectGroupLogType_DebugInspectGroupLogTypeMessage: for _, e := range cg.messageStore.OpLog().GetEntries().Slice() { var ( payload = []byte(nil) @@ -86,7 +86,7 @@ func (s *service) DebugInspectGroupStore(req *protocoltypes.DebugInspectGroupSto if evt, err := cg.messageStore.openMessage(srv.Context(), e); err != nil { s.logger.Error("unable to open message", zap.Error(err)) } else { - devicePK = evt.Headers.DevicePK + devicePK = evt.Headers.DevicePk payload = evt.Message } @@ -95,16 +95,16 @@ func (s *service) DebugInspectGroupStore(req *protocoltypes.DebugInspectGroupSto } if err := srv.SendMsg(&protocoltypes.DebugInspectGroupStore_Reply{ - CID: e.GetHash().Bytes(), - ParentCIDs: nexts, - DevicePK: devicePK, + Cid: e.GetHash().Bytes(), + ParentCids: nexts, + DevicePk: devicePK, Payload: payload, }); err != nil { return err } } - case protocoltypes.DebugInspectGroupLogTypeMetadata: + case protocoltypes.DebugInspectGroupLogType_DebugInspectGroupLogTypeMetadata: log := cg.metadataStore.OpLog() for _, e := range log.GetEntries().Slice() { @@ -142,11 +142,11 @@ func (s *service) DebugInspectGroupStore(req *protocoltypes.DebugInspectGroupSto } if err := srv.SendMsg(&protocoltypes.DebugInspectGroupStore_Reply{ - CID: e.GetHash().Bytes(), - ParentCIDs: nexts, + Cid: e.GetHash().Bytes(), + ParentCids: nexts, Payload: payload, MetadataEventType: eventType, - DevicePK: devicePK, + DevicePk: devicePK, }); err != nil { return err } @@ -164,12 +164,12 @@ func (s *service) DebugGroup(ctx context.Context, request *protocoltypes.DebugGr return nil, err } - topic := fmt.Sprintf("grp_%s", string(request.GroupPK)) + topic := fmt.Sprintf("grp_%s", string(request.GroupPk)) for _, p := range peers { tagInfo := s.ipfsCoreAPI.ConnMgr().GetTagInfo(p.ID()) if _, ok := tagInfo.Tags[topic]; ok { - rep.PeerIDs = append(rep.PeerIDs, p.ID().String()) + rep.PeerIds = append(rep.PeerIds, p.ID().String()) } } @@ -183,7 +183,7 @@ func (s *service) SystemInfo(ctx context.Context, request *protocoltypes.SystemI process, errs := sysutil.SystemInfoProcess() reply.Process = process reply.Process.StartedAt = s.startedAt.Unix() - reply.Process.UptimeMS = time.Since(s.startedAt).Milliseconds() + reply.Process.UptimeMs = time.Since(s.startedAt).Milliseconds() // gRPC // TODO @@ -210,10 +210,10 @@ func (s *service) SystemInfo(ctx context.Context, request *protocoltypes.SystemI // OrbitDB accountGroup := s.getAccountGroup() if accountGroup == nil { - return nil, errcode.ErrGroupMissing + return nil, errcode.ErrCode_ErrGroupMissing } status := accountGroup.metadataStore.ReplicationStatus() - reply.OrbitDB = &protocoltypes.SystemInfo_OrbitDB{ + reply.Orbitdb = &protocoltypes.SystemInfo_OrbitDB{ AccountMetadata: &protocoltypes.SystemInfo_OrbitDB_ReplicationStatus{ Progress: int64(status.GetProgress()), Maximum: int64(status.GetMax()), @@ -236,11 +236,11 @@ func (s *service) PeerList(ctx context.Context, request *protocoltypes.PeerList_ reply := protocoltypes.PeerList_Reply{} api := s.IpfsCoreAPI() if api == nil { - return nil, errcode.TODO.Wrap(fmt.Errorf("IPFS Core API is not available")) + return nil, errcode.ErrCode_TODO.Wrap(fmt.Errorf("IPFS Core API is not available")) } swarmPeers, err := api.Swarm().Peers(ctx) // https://pkg.go.dev/github.com/ipfs/interface-go-ipfs-core#ConnectionInfo if err != nil { - return nil, errcode.TODO.Wrap(err) + return nil, errcode.ErrCode_TODO.Wrap(err) } peers := map[peer.ID]*protocoltypes.PeerList_Peer{} @@ -248,7 +248,7 @@ func (s *service) PeerList(ctx context.Context, request *protocoltypes.PeerList_ // each peer in the swarm should be visible for _, swarmPeer := range swarmPeers { peers[swarmPeer.ID()] = &protocoltypes.PeerList_Peer{ - ID: swarmPeer.ID().String(), + Id: swarmPeer.ID().String(), Errors: []string{}, Routes: []*protocoltypes.PeerList_Route{}, } @@ -270,7 +270,7 @@ func (s *service) PeerList(ctx context.Context, request *protocoltypes.PeerList_ peer, ok := peers[swarmPeer.ID()] if !ok { peer = &protocoltypes.PeerList_Peer{ - ID: swarmPeer.ID().String(), + Id: swarmPeer.ID().String(), Errors: []string{}, Routes: []*protocoltypes.PeerList_Route{}, } @@ -306,9 +306,9 @@ func (s *service) PeerList(ctx context.Context, request *protocoltypes.PeerList_ { switch swarmPeer.Direction() { case network.DirInbound: - selectedRoute.Direction = protocoltypes.InboundDir + selectedRoute.Direction = protocoltypes.Direction_InboundDir case network.DirOutbound: - selectedRoute.Direction = protocoltypes.OutboundDir + selectedRoute.Direction = protocoltypes.Direction_OutboundDir } } // streams @@ -323,7 +323,7 @@ func (s *service) PeerList(ctx context.Context, request *protocoltypes.PeerList_ continue } selectedRoute.Streams = append(selectedRoute.Streams, &protocoltypes.PeerList_Stream{ - ID: string(peerStream), + Id: string(peerStream), }) } } @@ -336,21 +336,21 @@ func (s *service) PeerList(ctx context.Context, request *protocoltypes.PeerList_ for _, route := range peer.Routes { // FIXME: use the multiaddr library instead of string comparisons if strings.Contains(route.Address, "/quic") { - features[protocoltypes.QuicFeature] = true + features[protocoltypes.PeerList_QuicFeature] = true } if strings.Contains(route.Address, "/mc/") { - features[protocoltypes.BLEFeature] = true - features[protocoltypes.WeshFeature] = true + features[protocoltypes.PeerList_BLEFeature] = true + features[protocoltypes.PeerList_WeshFeature] = true } if strings.Contains(route.Address, "/tor/") { - features[protocoltypes.TorFeature] = true + features[protocoltypes.PeerList_TorFeature] = true } for _, stream := range route.Streams { - if stream.ID == "/wesh/contact_req/1.0.0" { - features[protocoltypes.WeshFeature] = true + if stream.Id == "/wesh/contact_req/1.0.0" { + features[protocoltypes.PeerList_WeshFeature] = true } - if stream.ID == "/rendezvous/1.0.0" { - features[protocoltypes.WeshFeature] = true + if stream.Id == "/rendezvous/1.0.0" { + features[protocoltypes.PeerList_WeshFeature] = true } } } @@ -363,20 +363,20 @@ func (s *service) PeerList(ctx context.Context, request *protocoltypes.PeerList_ for _, peer := range peers { // aggregate direction for _, route := range peer.Routes { - if route.Direction == protocoltypes.UnknownDir { + if route.Direction == protocoltypes.Direction_UnknownDir { continue } switch { - case peer.Direction == protocoltypes.UnknownDir: // first route with a direction + case peer.Direction == protocoltypes.Direction_UnknownDir: // first route with a direction peer.Direction = route.Direction - case peer.Direction == protocoltypes.BiDir: // peer aggregate is already maximal + case peer.Direction == protocoltypes.Direction_BiDir: // peer aggregate is already maximal // noop case route.Direction == peer.Direction: // another route with the same direction // noop - case route.Direction == protocoltypes.InboundDir && peer.Direction == protocoltypes.OutboundDir: - peer.Direction = protocoltypes.BiDir - case route.Direction == protocoltypes.OutboundDir && peer.Direction == protocoltypes.InboundDir: - peer.Direction = protocoltypes.BiDir + case route.Direction == protocoltypes.Direction_InboundDir && peer.Direction == protocoltypes.Direction_OutboundDir: + peer.Direction = protocoltypes.Direction_BiDir + case route.Direction == protocoltypes.Direction_OutboundDir && peer.Direction == protocoltypes.Direction_InboundDir: + peer.Direction = protocoltypes.Direction_BiDir default: peer.Errors = append(peer.Errors, "failed to compute direction aggregate") } diff --git a/api_event.go b/api_event.go index a98466eb..9c6af9dc 100644 --- a/api_event.go +++ b/api_event.go @@ -14,19 +14,19 @@ import ( func checkParametersConsistency(sinceID, untilID []byte, sinceNow, untilNow, reverseOrder bool) error { // Since can't be both set to an ID and to now if sinceID != nil && sinceNow { - return errcode.ErrInvalidInput.Wrap(errors.New("params SinceNow and SinceID are both set")) + return errcode.ErrCode_ErrInvalidInput.Wrap(errors.New("params SinceNow and SinceID are both set")) } // Until can't be both set to an ID and to now if untilID != nil && untilNow { - return errcode.ErrInvalidInput.Wrap(errors.New("params UntilNow and UntilID are both set")) + return errcode.ErrCode_ErrInvalidInput.Wrap(errors.New("params UntilNow and UntilID are both set")) } // Since and Until can't be both set to now at the same time if sinceNow && untilNow { - return errcode.ErrInvalidInput.Wrap(errors.New("params SinceNow and UntilNow are both set")) + return errcode.ErrCode_ErrInvalidInput.Wrap(errors.New("params SinceNow and UntilNow are both set")) } // Can't reverse events orders if subscribed to new events if untilID == nil && !untilNow && reverseOrder { - return errcode.ErrInvalidInput.Wrap(errors.New("reverse chronological order requested while subscribing to new events")) + return errcode.ErrCode_ErrInvalidInput.Wrap(errors.New("reverse chronological order requested while subscribing to new events")) } return nil @@ -38,19 +38,19 @@ func (s *service) GroupMetadataList(req *protocoltypes.GroupMetadataList_Request defer cancel() // Get group context / check if the group is opened - cg, err := s.GetContextGroupForID(req.GroupPK) + cg, err := s.GetContextGroupForID(req.GroupPk) if err != nil { - return errcode.ErrGroupMemberUnknownGroupID.Wrap(err) + return errcode.ErrCode_ErrGroupMemberUnknownGroupID.Wrap(err) } // Check parameters consistency - if err := checkParametersConsistency(req.SinceID, req.UntilID, req.SinceNow, req.UntilNow, req.ReverseOrder); err != nil { + if err := checkParametersConsistency(req.SinceId, req.UntilId, req.SinceNow, req.UntilNow, req.ReverseOrder); err != nil { return err } // Subscribe to new metadata events if requested var newEvents <-chan interface{} - if req.UntilID == nil && !req.UntilNow { + if req.UntilId == nil && !req.UntilNow { sub, err := cg.MetadataStore().EventBus().Subscribe([]interface{}{ // new(stores.EventReplicated), new(protocoltypes.GroupMetadataEvent), @@ -65,7 +65,7 @@ func (s *service) GroupMetadataList(req *protocoltypes.GroupMetadataList_Request // Subscribe to previous metadata events and stream them if requested previousEvents := make(chan protocoltypes.GroupMetadataEvent) if !req.SinceNow { - pevt, err := cg.MetadataStore().ListEvents(ctx, req.SinceID, req.UntilID, req.ReverseOrder) + pevt, err := cg.MetadataStore().ListEvents(ctx, req.SinceId, req.UntilId, req.ReverseOrder) if err != nil { return err } @@ -126,19 +126,19 @@ func (s *service) GroupMessageList(req *protocoltypes.GroupMessageList_Request, defer cancel() // Get group context / check if the group is opened - cg, err := s.GetContextGroupForID(req.GroupPK) + cg, err := s.GetContextGroupForID(req.GroupPk) if err != nil { - return errcode.ErrGroupMemberUnknownGroupID.Wrap(err) + return errcode.ErrCode_ErrGroupMemberUnknownGroupID.Wrap(err) } // Check parameters consistency - if err := checkParametersConsistency(req.SinceID, req.UntilID, req.SinceNow, req.UntilNow, req.ReverseOrder); err != nil { + if err := checkParametersConsistency(req.SinceId, req.UntilId, req.SinceNow, req.UntilNow, req.ReverseOrder); err != nil { return err } // Subscribe to new message events if requested var newEvents <-chan interface{} - if req.UntilID == nil && !req.UntilNow { + if req.UntilId == nil && !req.UntilNow { messageStoreSub, err := cg.MessageStore().EventBus().Subscribe([]interface{}{ new(protocoltypes.GroupMessageEvent), }, eventbus.Name("weshnet/api/group-message-list")) @@ -152,7 +152,7 @@ func (s *service) GroupMessageList(req *protocoltypes.GroupMessageList_Request, // Subscribe to previous message events and stream them if requested previousEvents := make(chan protocoltypes.GroupMessageEvent) if !req.SinceNow { - pevt, err := cg.MessageStore().ListEvents(ctx, req.SinceID, req.UntilID, req.ReverseOrder) + pevt, err := cg.MessageStore().ListEvents(ctx, req.SinceId, req.UntilId, req.ReverseOrder) if err != nil { return err } diff --git a/api_group.go b/api_group.go index 1aab77e2..5824bc62 100644 --- a/api_group.go +++ b/api_group.go @@ -10,6 +10,7 @@ import ( peer "github.com/libp2p/go-libp2p/core/peer" manet "github.com/multiformats/go-multiaddr/net" "go.uber.org/zap" + "google.golang.org/protobuf/proto" "berty.tech/weshnet/pkg/errcode" "berty.tech/weshnet/pkg/logutil" @@ -23,74 +24,74 @@ func (s *service) GroupInfo(ctx context.Context, req *protocoltypes.GroupInfo_Re ) switch { - case req.GroupPK != nil: - pk, err := crypto.UnmarshalEd25519PublicKey(req.GroupPK) + case req.GroupPk != nil: + pk, err := crypto.UnmarshalEd25519PublicKey(req.GroupPk) if err != nil { - return nil, errcode.ErrInvalidInput.Wrap(err) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(err) } g, err = s.getGroupForPK(ctx, pk) if err != nil { - return nil, errcode.TODO.Wrap(err) + return nil, errcode.ErrCode_TODO.Wrap(err) } - case req.ContactPK != nil: - pk, err := crypto.UnmarshalEd25519PublicKey(req.ContactPK) + case req.ContactPk != nil: + pk, err := crypto.UnmarshalEd25519PublicKey(req.ContactPk) if err != nil { - return nil, errcode.ErrInvalidInput.Wrap(err) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(err) } g, err = s.getContactGroup(pk) if err != nil { - return nil, errcode.ErrOrbitDBOpen.Wrap(err) + return nil, errcode.ErrCode_ErrOrbitDBOpen.Wrap(err) } default: - return nil, errcode.ErrInvalidInput + return nil, errcode.ErrCode_ErrInvalidInput } memberDevice, err := s.secretStore.GetOwnMemberDeviceForGroup(g) if err != nil { - return nil, errcode.TODO.Wrap(err) + return nil, errcode.ErrCode_TODO.Wrap(err) } member, err := memberDevice.Member().Raw() if err != nil { - return nil, errcode.ErrSerialization.Wrap(err) + return nil, errcode.ErrCode_ErrSerialization.Wrap(err) } device, err := memberDevice.Device().Raw() if err != nil { - return nil, errcode.ErrSerialization.Wrap(err) + return nil, errcode.ErrCode_ErrSerialization.Wrap(err) } return &protocoltypes.GroupInfo_Reply{ Group: g, - MemberPK: member, - DevicePK: device, + MemberPk: member, + DevicePk: device, }, nil } func (s *service) ActivateGroup(ctx context.Context, req *protocoltypes.ActivateGroup_Request) (*protocoltypes.ActivateGroup_Reply, error) { - pk, err := crypto.UnmarshalEd25519PublicKey(req.GroupPK) + pk, err := crypto.UnmarshalEd25519PublicKey(req.GroupPk) if err != nil { - return nil, errcode.ErrInvalidInput.Wrap(err) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(err) } err = s.activateGroup(ctx, pk, req.LocalOnly) if err != nil { - return nil, errcode.ErrInternal.Wrap(err) + return nil, errcode.ErrCode_ErrInternal.Wrap(err) } return &protocoltypes.ActivateGroup_Reply{}, nil } func (s *service) DeactivateGroup(_ context.Context, req *protocoltypes.DeactivateGroup_Request) (*protocoltypes.DeactivateGroup_Reply, error) { - pk, err := crypto.UnmarshalEd25519PublicKey(req.GroupPK) + pk, err := crypto.UnmarshalEd25519PublicKey(req.GroupPk) if err != nil { - return nil, errcode.ErrInvalidInput.Wrap(err) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(err) } if err := s.deactivateGroup(pk); err != nil { - return nil, errcode.ErrInternal.Wrap(err) + return nil, errcode.ErrCode_ErrInternal.Wrap(err) } return &protocoltypes.DeactivateGroup_Reply{}, nil @@ -98,7 +99,7 @@ func (s *service) DeactivateGroup(_ context.Context, req *protocoltypes.Deactiva func (s *service) GroupDeviceStatus(req *protocoltypes.GroupDeviceStatus_Request, srv protocoltypes.ProtocolService_GroupDeviceStatusServer) error { ctx := srv.Context() - gkey := hex.EncodeToString(req.GroupPK) + gkey := hex.EncodeToString(req.GroupPk) peers := PeersConnectedness{} logger := s.logger.Named("pstatus") @@ -117,34 +118,34 @@ func (s *service) GroupDeviceStatus(req *protocoltypes.GroupDeviceStatus_Request switch peers[peer] { case ConnectednessTypeConnected: - evt.Type = protocoltypes.TypePeerConnected + evt.Type = protocoltypes.GroupDeviceStatus_TypePeerConnected var connected *protocoltypes.GroupDeviceStatus_Reply_PeerConnected if connected, err = s.craftPeerConnectedMessage(peer); err == nil { - evt.Event, err = connected.Marshal() + evt.Event, err = proto.Marshal(connected) logger.Debug("peer connected", logutil.PrivateString("group_key", gkey), - logutil.PrivateString("peer", connected.PeerID), - logutil.PrivateString("devicePK", base64.URLEncoding.EncodeToString(connected.GetDevicePK()))) + logutil.PrivateString("peer", connected.PeerId), + logutil.PrivateString("devicePK", base64.URLEncoding.EncodeToString(connected.GetDevicePk()))) } case ConnectednessTypeDisconnected: - evt.Type = protocoltypes.TypePeerDisconnected + evt.Type = protocoltypes.GroupDeviceStatus_TypePeerDisconnected disconnected := s.craftDeviceDisconnectedMessage(peer) logger.Debug("peer disconnected", logutil.PrivateString("group_key", gkey), - logutil.PrivateString("peer", disconnected.PeerID)) - evt.Event, err = disconnected.Marshal() + logutil.PrivateString("peer", disconnected.PeerId)) + evt.Event, err = proto.Marshal(disconnected) case ConnectednessTypeReconnecting: - evt.Type = protocoltypes.TypePeerConnected + evt.Type = protocoltypes.GroupDeviceStatus_TypePeerConnected reconnecting := s.craftDeviceReconnectedMessage(peer) logger.Debug("peer reconnecting", logutil.PrivateString("group_key", gkey), - logutil.PrivateString("peer", reconnecting.PeerID)) - evt.Event, err = reconnecting.Marshal() + logutil.PrivateString("peer", reconnecting.PeerId)) + evt.Event, err = proto.Marshal(reconnecting) default: - evt.Type = protocoltypes.TypeUnknown + evt.Type = protocoltypes.GroupDeviceStatus_TypeUnknown } if err != nil { @@ -172,8 +173,8 @@ func (s *service) craftPeerConnectedMessage(peer peer.ID) (*protocoltypes.GroupD } connected := protocoltypes.GroupDeviceStatus_Reply_PeerConnected{ - PeerID: peer.String(), - DevicePK: devicePKRaw, + PeerId: peer.String(), + DevicePk: devicePKRaw, } activeConns := s.host.Network().ConnsToPeer(peer) @@ -189,16 +190,16 @@ CONN_LOOP: for _, protocol := range protocols { switch protocol.Name { case "nearby", "mc", "ble": - connected.Transports[i] = protocoltypes.TptProximity + connected.Transports[i] = protocoltypes.GroupDeviceStatus_TptProximity continue CONN_LOOP } } // otherwise, check for WAN/LAN addr if manet.IsPrivateAddr(conn.RemoteMultiaddr()) { - connected.Transports[i] = protocoltypes.TptLAN + connected.Transports[i] = protocoltypes.GroupDeviceStatus_TptLAN } else { - connected.Transports[i] = protocoltypes.TptWAN + connected.Transports[i] = protocoltypes.GroupDeviceStatus_TptWAN } } @@ -207,12 +208,12 @@ CONN_LOOP: func (s *service) craftDeviceDisconnectedMessage(peer peer.ID) *protocoltypes.GroupDeviceStatus_Reply_PeerDisconnected { return &protocoltypes.GroupDeviceStatus_Reply_PeerDisconnected{ - PeerID: peer.String(), + PeerId: peer.String(), } } func (s *service) craftDeviceReconnectedMessage(peer peer.ID) *protocoltypes.GroupDeviceStatus_Reply_PeerReconnecting { return &protocoltypes.GroupDeviceStatus_Reply_PeerReconnecting{ - PeerID: peer.String(), + PeerId: peer.String(), } } diff --git a/api_multimember.go b/api_multimember.go index 699fc8de..0b8dd89b 100644 --- a/api_multimember.go +++ b/api_multimember.go @@ -18,40 +18,40 @@ func (s *service) MultiMemberGroupCreate(ctx context.Context, req *protocoltypes group, groupPrivateKey, err := NewGroupMultiMember() if err != nil { - return nil, errcode.ErrCryptoKeyGeneration.Wrap(err) + return nil, errcode.ErrCode_ErrCryptoKeyGeneration.Wrap(err) } accountGroup := s.getAccountGroup() if accountGroup == nil { - return nil, errcode.ErrGroupMissing + return nil, errcode.ErrCode_ErrGroupMissing } _, err = accountGroup.MetadataStore().GroupJoin(ctx, group) if err != nil { - return nil, errcode.ErrOrbitDBAppend.Wrap(err) + return nil, errcode.ErrCode_ErrOrbitDBAppend.Wrap(err) } if err := s.secretStore.PutGroup(ctx, group); err != nil { - return nil, errcode.ErrInternal.Wrap(err) + return nil, errcode.ErrCode_ErrInternal.Wrap(err) } err = s.activateGroup(ctx, groupPrivateKey.GetPublic(), false) if err != nil { - return nil, errcode.ErrInternal.Wrap(fmt.Errorf("unable to activate group: %w", err)) + return nil, errcode.ErrCode_ErrInternal.Wrap(fmt.Errorf("unable to activate group: %w", err)) } cg, err := s.GetContextGroupForID(group.PublicKey) if err != nil { - return nil, errcode.ErrOrbitDBAppend.Wrap(err) + return nil, errcode.ErrCode_ErrOrbitDBAppend.Wrap(err) } _, err = cg.MetadataStore().ClaimGroupOwnership(ctx, groupPrivateKey) if err != nil { - return nil, errcode.ErrOrbitDBAppend.Wrap(err) + return nil, errcode.ErrCode_ErrOrbitDBAppend.Wrap(err) } return &protocoltypes.MultiMemberGroupCreate_Reply{ - GroupPK: group.PublicKey, + GroupPk: group.PublicKey, }, nil } @@ -62,11 +62,11 @@ func (s *service) MultiMemberGroupJoin(ctx context.Context, req *protocoltypes.M accountGroup := s.getAccountGroup() if accountGroup == nil { - return nil, errcode.ErrGroupMissing + return nil, errcode.ErrCode_ErrGroupMissing } if _, err := accountGroup.MetadataStore().GroupJoin(ctx, req.Group); err != nil { - return nil, errcode.ErrOrbitDBAppend.Wrap(err) + return nil, errcode.ErrCode_ErrOrbitDBAppend.Wrap(err) } return &protocoltypes.MultiMemberGroupJoin_Reply{}, nil @@ -77,23 +77,23 @@ func (s *service) MultiMemberGroupLeave(ctx context.Context, req *protocoltypes. ctx, _, endSection := tyber.Section(ctx, s.logger, "Leaving MultiMember group") defer func() { endSection(err, "") }() - pk, err := crypto.UnmarshalEd25519PublicKey(req.GroupPK) + pk, err := crypto.UnmarshalEd25519PublicKey(req.GroupPk) if err != nil { - return nil, errcode.ErrDeserialization.Wrap(err) + return nil, errcode.ErrCode_ErrDeserialization.Wrap(err) } accountGroup := s.getAccountGroup() if accountGroup == nil { - return nil, errcode.ErrGroupMissing + return nil, errcode.ErrCode_ErrGroupMissing } _, err = accountGroup.MetadataStore().GroupLeave(ctx, pk) if err != nil { - return nil, errcode.ErrOrbitDBAppend.Wrap(err) + return nil, errcode.ErrCode_ErrOrbitDBAppend.Wrap(err) } if err := s.deactivateGroup(pk); err != nil { - return nil, errcode.ErrOrbitDBAppend.Wrap(err) + return nil, errcode.ErrCode_ErrOrbitDBAppend.Wrap(err) } return &protocoltypes.MultiMemberGroupLeave_Reply{}, nil @@ -101,14 +101,14 @@ func (s *service) MultiMemberGroupLeave(ctx context.Context, req *protocoltypes. // MultiMemberGroupAliasResolverDisclose sends an deviceKeystore identity proof to the group members func (s *service) MultiMemberGroupAliasResolverDisclose(ctx context.Context, req *protocoltypes.MultiMemberGroupAliasResolverDisclose_Request) (*protocoltypes.MultiMemberGroupAliasResolverDisclose_Reply, error) { - cg, err := s.GetContextGroupForID(req.GroupPK) + cg, err := s.GetContextGroupForID(req.GroupPk) if err != nil { - return nil, errcode.ErrGroupMemberUnknownGroupID.Wrap(err) + return nil, errcode.ErrCode_ErrGroupMemberUnknownGroupID.Wrap(err) } _, err = cg.MetadataStore().SendAliasProof(ctx) if err != nil { - return nil, errcode.ErrOrbitDBAppend.Wrap(err) + return nil, errcode.ErrCode_ErrOrbitDBAppend.Wrap(err) } return &protocoltypes.MultiMemberGroupAliasResolverDisclose_Reply{}, nil @@ -116,14 +116,14 @@ func (s *service) MultiMemberGroupAliasResolverDisclose(ctx context.Context, req // MultiMemberGroupAdminRoleGrant grants admin role to another member of the group func (s *service) MultiMemberGroupAdminRoleGrant(context.Context, *protocoltypes.MultiMemberGroupAdminRoleGrant_Request) (*protocoltypes.MultiMemberGroupAdminRoleGrant_Reply, error) { - return nil, errcode.ErrNotImplemented + return nil, errcode.ErrCode_ErrNotImplemented } // MultiMemberGroupInvitationCreate creates a group invitation func (s *service) MultiMemberGroupInvitationCreate(ctx context.Context, req *protocoltypes.MultiMemberGroupInvitationCreate_Request) (*protocoltypes.MultiMemberGroupInvitationCreate_Reply, error) { - cg, err := s.GetContextGroupForID(req.GroupPK) + cg, err := s.GetContextGroupForID(req.GroupPk) if err != nil { - return nil, errcode.ErrGroupMemberUnknownGroupID.Wrap(err) + return nil, errcode.ErrCode_ErrGroupMemberUnknownGroupID.Wrap(err) } return &protocoltypes.MultiMemberGroupInvitationCreate_Reply{ diff --git a/api_replication.go b/api_replication.go index 7074db5a..7b8e038e 100644 --- a/api_replication.go +++ b/api_replication.go @@ -22,17 +22,17 @@ import ( func FilterGroupForReplication(m *protocoltypes.Group) (*protocoltypes.Group, error) { groupSigPK, err := m.GetSigningPubKey() if err != nil { - return nil, errcode.TODO.Wrap(err) + return nil, errcode.ErrCode_TODO.Wrap(err) } groupSigPKBytes, err := groupSigPK.Raw() if err != nil { - return nil, errcode.ErrSerialization.Wrap(err) + return nil, errcode.ErrCode_ErrSerialization.Wrap(err) } linkKey, err := m.GetLinkKeyArray() if err != nil { - return nil, errcode.TODO.Wrap(err) + return nil, errcode.ErrCode_TODO.Wrap(err) } return &protocoltypes.Group{ @@ -47,31 +47,31 @@ func (s *service) ReplicationServiceRegisterGroup(ctx context.Context, request * ctx, _, endSection := tyber.Section(ctx, s.logger, "Registering replication service for group") defer func() { endSection(err, "") }() - if request.GroupPK == nil { - return nil, errcode.ErrInvalidInput.Wrap(fmt.Errorf("invalid GroupPK")) + if request.GroupPk == nil { + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("invalid GroupPK")) } if request.Token == "" { - return nil, errcode.ErrInvalidInput.Wrap(fmt.Errorf("invalid token")) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("invalid token")) } if request.ReplicationServer == "" { - return nil, errcode.ErrInvalidInput.Wrap(fmt.Errorf("invalid replication server")) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("invalid replication server")) } - gc, err := s.GetContextGroupForID(request.GroupPK) + gc, err := s.GetContextGroupForID(request.GroupPk) if err != nil { - return nil, errcode.ErrInvalidInput.Wrap(err) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(err) } replGroup, err := FilterGroupForReplication(gc.group) if err != nil { - return nil, errcode.TODO.Wrap(err) + return nil, errcode.ErrCode_TODO.Wrap(err) } accountGroup := s.getAccountGroup() if accountGroup == nil { - return nil, errcode.ErrGroupMissing + return nil, errcode.ErrCode_ErrGroupMissing } gopts := []grpc.DialOption{ @@ -89,7 +89,7 @@ func (s *service) ReplicationServiceRegisterGroup(ctx context.Context, request * cc, err := grpc.DialContext(context.Background(), request.ReplicationServer, gopts...) if err != nil { - return nil, errcode.ErrStreamWrite.Wrap(err) + return nil, errcode.ErrCode_ErrStreamWrite.Wrap(err) } client := replicationtypes.NewReplicationServiceClient(cc) @@ -97,12 +97,12 @@ func (s *service) ReplicationServiceRegisterGroup(ctx context.Context, request * if _, err = client.ReplicateGroup(ctx, &replicationtypes.ReplicationServiceReplicateGroup_Request{ Group: replGroup, }); err != nil { - return nil, errcode.ErrServiceReplicationServer.Wrap(err) + return nil, errcode.ErrCode_ErrServiceReplicationServer.Wrap(err) } - s.logger.Info("group will be replicated", logutil.PrivateString("public-key", base64.RawURLEncoding.EncodeToString(request.GroupPK))) + s.logger.Info("group will be replicated", logutil.PrivateString("public-key", base64.RawURLEncoding.EncodeToString(request.GroupPk))) - if _, err := gc.metadataStore.SendGroupReplicating(ctx, request.AuthenticationURL, request.ReplicationServer); err != nil { + if _, err := gc.metadataStore.SendGroupReplicating(ctx, request.AuthenticationUrl, request.ReplicationServer); err != nil { s.logger.Error("error while notifying group about replication", zap.Error(err)) } diff --git a/api_verified_credentials.go b/api_verified_credentials.go index 56f8110d..98bec421 100644 --- a/api_verified_credentials.go +++ b/api_verified_credentials.go @@ -15,7 +15,7 @@ import ( func (s *service) CredentialVerificationServiceInitFlow(ctx context.Context, request *protocoltypes.CredentialVerificationServiceInitFlow_Request) (*protocoltypes.CredentialVerificationServiceInitFlow_Reply, error) { s.lock.Lock() - s.vcClient = bertyvcissuer.NewClient(request.ServiceURL) + s.vcClient = bertyvcissuer.NewClient(request.ServiceUrl) client := s.vcClient s.lock.Unlock() @@ -26,21 +26,21 @@ func (s *service) CredentialVerificationServiceInitFlow(ctx context.Context, req // TODO: avoid exporting account keys pkRaw, err := s.accountGroupCtx.ownMemberDevice.Member().Raw() if err != nil { - return nil, errcode.ErrInvalidInput + return nil, errcode.ErrCode_ErrInvalidInput } if !bytes.Equal(pkRaw, request.PublicKey) { - return nil, errcode.ErrInvalidInput + return nil, errcode.ErrCode_ErrInvalidInput } url, err := client.Init(ctx, request.Link, cryptoutil.NewFuncSigner(s.accountGroupCtx.ownMemberDevice.Member(), s.accountGroupCtx.ownMemberDevice.MemberSign)) if err != nil { - return nil, errcode.ErrInternal.Wrap(err) + return nil, errcode.ErrCode_ErrInternal.Wrap(err) } return &protocoltypes.CredentialVerificationServiceInitFlow_Reply{ - URL: url, - SecureURL: strings.HasPrefix(url, "https://"), + Url: url, + SecureUrl: strings.HasPrefix(url, "https://"), }, nil } @@ -50,12 +50,12 @@ func (s *service) CredentialVerificationServiceCompleteFlow(ctx context.Context, s.lock.Unlock() if client == nil { - return nil, errcode.ErrInvalidInput.Wrap(fmt.Errorf("a verification flow needs to be started first")) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("a verification flow needs to be started first")) } - credentials, identifier, parsedCredential, err := client.Complete(request.CallbackURI) + credentials, identifier, parsedCredential, err := client.Complete(request.CallbackUri) if err != nil { - return nil, errcode.ErrInternal.Wrap(err) + return nil, errcode.ErrCode_ErrInternal.Wrap(err) } _, err = s.accountGroupCtx.metadataStore.SendAccountVerifiedCredentialAdded(ctx, &protocoltypes.AccountVerifiedCredentialRegistered{ @@ -66,7 +66,7 @@ func (s *service) CredentialVerificationServiceCompleteFlow(ctx context.Context, Issuer: parsedCredential.Issuer.ID, }) if err != nil { - return nil, errcode.ErrInternal.Wrap(err) + return nil, errcode.ErrCode_ErrInternal.Wrap(err) } return &protocoltypes.CredentialVerificationServiceCompleteFlow_Reply{ @@ -94,7 +94,7 @@ func (s *service) VerifiedCredentialsList(request *protocoltypes.VerifiedCredent if err := server.Send(&protocoltypes.VerifiedCredentialsList_Reply{ Credential: credential, }); err != nil { - return errcode.ErrStreamWrite.Wrap(err) + return errcode.ErrCode_ErrStreamWrite.Wrap(err) } } diff --git a/blackbox_test.go b/blackbox_test.go index 74b91bc7..196288c7 100644 --- a/blackbox_test.go +++ b/blackbox_test.go @@ -94,7 +94,7 @@ func ExampleNewPersistentServiceClient_basic() { panic(err) } - peerid = ret.PeerID + peerid = ret.PeerId if err := client.Close(); err != nil { panic(err) @@ -114,7 +114,7 @@ func ExampleNewPersistentServiceClient_basic() { panic(err) } - if peerid != ret.PeerID { + if peerid != ret.PeerId { panic("peerid should be identical") } } diff --git a/contact_request_manager.go b/contact_request_manager.go index 09342827..aa5bc70a 100644 --- a/contact_request_manager.go +++ b/contact_request_manager.go @@ -6,17 +6,19 @@ import ( "encoding/base64" "encoding/hex" "fmt" + "io" "strings" "sync" "time" - ggio "github.com/gogo/protobuf/io" ipfscid "github.com/ipfs/go-cid" "github.com/libp2p/go-libp2p/core/crypto" "github.com/libp2p/go-libp2p/core/network" + inet "github.com/libp2p/go-libp2p/core/network" peer "github.com/libp2p/go-libp2p/core/peer" "github.com/libp2p/go-libp2p/p2p/host/eventbus" "go.uber.org/zap" + "google.golang.org/protobuf/proto" "berty.tech/weshnet/internal/handshake" "berty.tech/weshnet/pkg/errcode" @@ -103,14 +105,14 @@ func (c *contactRequestsManager) isClosed() bool { func (c *contactRequestsManager) metadataWatcher(ctx context.Context) { handlers := map[protocoltypes.EventType]func(context.Context, *protocoltypes.GroupMetadataEvent) error{ - protocoltypes.EventTypeAccountContactRequestDisabled: c.metadataRequestDisabled, - protocoltypes.EventTypeAccountContactRequestEnabled: c.metadataRequestEnabled, - protocoltypes.EventTypeAccountContactRequestReferenceReset: c.metadataRequestReset, - protocoltypes.EventTypeAccountContactRequestOutgoingEnqueued: c.metadataRequestEnqueued, + protocoltypes.EventType_EventTypeAccountContactRequestDisabled: c.metadataRequestDisabled, + protocoltypes.EventType_EventTypeAccountContactRequestEnabled: c.metadataRequestEnabled, + protocoltypes.EventType_EventTypeAccountContactRequestReferenceReset: c.metadataRequestReset, + protocoltypes.EventType_EventTypeAccountContactRequestOutgoingEnqueued: c.metadataRequestEnqueued, // @FIXME: looks like we don't need those events - protocoltypes.EventTypeAccountContactRequestOutgoingSent: c.metadataRequestSent, - protocoltypes.EventTypeAccountContactRequestIncomingReceived: c.metadataRequestReceived, + protocoltypes.EventType_EventTypeAccountContactRequestOutgoingSent: c.metadataRequestSent, + protocoltypes.EventType_EventTypeAccountContactRequestIncomingReceived: c.metadataRequestReceived, } // subscribe to new event @@ -136,9 +138,9 @@ func (c *contactRequestsManager) metadataWatcher(ctx context.Context) { c.muManager.Unlock() // enqueue all contact with the `ToRequest` state - for _, contact := range c.metadataStore.ListContactsByStatus(protocoltypes.ContactStateToRequest) { - if err := c.enqueueRequest(ctx, contact); err != nil { - c.logger.Warn("unable to enqueue contact request", logutil.PrivateBinary("pk", contact.PK), zap.Error(err)) + if err := c.enqueueRequest(ctx, contact); err != nil { + for _, contact := range c.metadataStore.ListContactsByStatus(protocoltypes.ContactState_ContactStateToRequest) { + c.logger.Warn("unable to enqueue contact request", logutil.PrivateBinary("pk", contact.Pk), zap.Error(err)) } } @@ -188,8 +190,8 @@ func (c *contactRequestsManager) metadataRequestDisabled(_ context.Context, _ *p func (c *contactRequestsManager) metadataRequestEnabled(ctx context.Context, evt *protocoltypes.GroupMetadataEvent) error { e := &protocoltypes.AccountContactRequestEnabled{} - if err := e.Unmarshal(evt.Event); err != nil { - return errcode.ErrDeserialization.Wrap(err) + if err := proto.Unmarshal(evt.Event, e); err != nil { + return errcode.ErrCode_ErrDeserialization.Wrap(err) } return c.enableContactRequest(ctx) @@ -234,8 +236,8 @@ func (c *contactRequestsManager) enableContactRequest(ctx context.Context) error func (c *contactRequestsManager) metadataRequestReset(ctx context.Context, evt *protocoltypes.GroupMetadataEvent) error { e := &protocoltypes.AccountContactRequestReferenceReset{} - if err := e.Unmarshal(evt.Event); err != nil { - return errcode.ErrDeserialization.Wrap(err) + if err := proto.Unmarshal(evt.Event, e); err != nil { + return errcode.ErrCode_ErrDeserialization.Wrap(err) } accPK, err := c.accountPrivateKey.GetPublic().Raw() @@ -263,14 +265,14 @@ func (c *contactRequestsManager) metadataRequestReset(ctx context.Context, evt * } func (c *contactRequestsManager) metadataRequestEnqueued(ctx context.Context, evt *protocoltypes.GroupMetadataEvent) error { - ctx = tyber.ContextWithConstantTraceID(ctx, "msgrcvd-"+cidBytesString(evt.EventContext.ID)) + ctx = tyber.ContextWithConstantTraceID(ctx, "msgrcvd-"+cidBytesString(evt.EventContext.Id)) traceName := fmt.Sprintf("Received %s on group %s", - strings.TrimPrefix(evt.Metadata.EventType.String(), "EventType"), base64.RawURLEncoding.EncodeToString(evt.EventContext.GroupPK)) + strings.TrimPrefix(evt.Metadata.EventType.String(), "EventType"), base64.RawURLEncoding.EncodeToString(evt.EventContext.GroupPk)) c.logger.Debug(traceName, tyber.FormatStepLogFields(ctx, []tyber.Detail{}, tyber.UpdateTraceName(traceName))...) e := &protocoltypes.AccountContactRequestOutgoingEnqueued{} - if err := e.Unmarshal(evt.Event); err != nil { + if err := proto.Unmarshal(evt.Event, e); err != nil { return tyber.LogError(ctx, c.logger, "Failed to unmarshal event", err) } @@ -284,25 +286,25 @@ func (c *contactRequestsManager) metadataRequestEnqueued(ctx context.Context, ev func (c *contactRequestsManager) metadataRequestSent(_ context.Context, evt *protocoltypes.GroupMetadataEvent) error { e := &protocoltypes.AccountContactRequestOutgoingSent{} - if err := e.Unmarshal(evt.Event); err != nil { - return errcode.ErrDeserialization.Wrap(err) + if err := proto.Unmarshal(evt.Event, e); err != nil { + return errcode.ErrCode_ErrDeserialization.Wrap(err) } // another device may have successfully sent contact request, try to cancel // lookup if needed - c.cancelContactLookup(e.ContactPK) + c.cancelContactLookup(e.ContactPk) return nil } func (c *contactRequestsManager) metadataRequestReceived(_ context.Context, evt *protocoltypes.GroupMetadataEvent) error { e := &protocoltypes.AccountContactRequestIncomingReceived{} - if err := e.Unmarshal(evt.Event); err != nil { - return errcode.ErrDeserialization.Wrap(err) + if err := proto.Unmarshal(evt.Event, e); err != nil { + return errcode.ErrCode_ErrDeserialization.Wrap(err) } // another device may have successfully sent contact request, try to cancel // lookup if needed - c.cancelContactLookup(e.ContactPK) + c.cancelContactLookup(e.ContactPk) return nil } @@ -365,14 +367,14 @@ func (c *contactRequestsManager) disableAnnounce() { } func (c *contactRequestsManager) enqueueRequest(ctx context.Context, to *protocoltypes.ShareableContact) (err error) { - ctx, _, endSection := tyber.Section(ctx, c.logger, "Enqueue contact request: "+base64.RawURLEncoding.EncodeToString(to.PK)) + ctx, _, endSection := tyber.Section(ctx, c.logger, "Enqueue contact request: "+base64.RawURLEncoding.EncodeToString(to.Pk)) - otherPK, err := crypto.UnmarshalEd25519PublicKey(to.PK) + otherPK, err := crypto.UnmarshalEd25519PublicKey(to.Pk) if err != nil { return err } - if ok := c.metadataStore.checkContactStatus(otherPK, protocoltypes.ContactStateAdded); ok { + if ok := c.metadataStore.checkContactStatus(otherPK, protocoltypes.ContactState_ContactStateAdded); ok { err = fmt.Errorf("contact already added") endSection(err, "") // contact already added, @@ -380,11 +382,11 @@ func (c *contactRequestsManager) enqueueRequest(ctx context.Context, to *protoco } // register lookup process - ctx = c.registerContactLookup(ctx, to.PK) + ctx = c.registerContactLookup(ctx, to.Pk) // start watching topic on swiper, this method should take care of calling // `FindPeer` as many times as needed - cpeers := c.swiper.WatchTopic(ctx, to.PK, to.PublicRendezvousSeed) + cpeers := c.swiper.WatchTopic(ctx, to.Pk, to.PublicRendezvousSeed) go func() { var err error for peer := range cpeers { @@ -402,7 +404,7 @@ func (c *contactRequestsManager) enqueueRequest(ctx context.Context, to *protoco } // cancel lookup process - c.cancelContactLookup(to.PK) + c.cancelContactLookup(to.Pk) endSection(err, "") }() @@ -424,7 +426,7 @@ func (c *contactRequestsManager) SendContactRequest(ctx context.Context, to *pro } // get own metadata for contact - ownMetadata, err := c.metadataStore.GetRequestOwnMetadataForContact(to.PK) + ownMetadata, err := c.metadataStore.GetRequestOwnMetadataForContact(to.Pk) if err != nil { c.logger.Warn("unable to get own metadata for contact", zap.Error(err)) ownMetadata = nil @@ -448,19 +450,20 @@ func (c *contactRequestsManager) SendContactRequest(ctx context.Context, to *pro } }() - reader := ggio.NewDelimitedReader(stream, 2048) - writer := ggio.NewDelimitedWriter(stream) - c.logger.Debug("performing handshake") tyber.LogStep(ctx, c.logger, "performing handshake") - if err := handshake.RequestUsingReaderWriter(ctx, c.logger, reader, writer, c.accountPrivateKey, otherPK); err != nil { + if err := handshake.RequestUsingReaderWriter(ctx, c.logger, stream, stream, c.accountPrivateKey, otherPK); err != nil { return fmt.Errorf("an error occurred during handshake: %w", err) } tyber.LogStep(ctx, c.logger, "sending own contact") + ownBytes, err := proto.Marshal(own) + if err != nil { + return err + } // send own contact information - if err := writer.WriteMsg(own); err != nil { + if _, err := stream.Write(ownBytes); err != nil { return fmt.Errorf("an error occurred while sending own contact information: %w", err) } @@ -474,12 +477,9 @@ func (c *contactRequestsManager) SendContactRequest(ctx context.Context, to *pro } func (c *contactRequestsManager) handleIncomingRequest(ctx context.Context, stream network.Stream) (err error) { - reader := ggio.NewDelimitedReader(stream, 2048) - writer := ggio.NewDelimitedWriter(stream) - tyber.LogStep(ctx, c.logger, "responding to handshake") - otherPK, err := handshake.ResponseUsingReaderWriter(ctx, c.logger, reader, writer, c.accountPrivateKey) + otherPK, err := handshake.ResponseUsingReaderWriter(ctx, c.logger, stream, stream, c.accountPrivateKey) if err != nil { return fmt.Errorf("handshake failed: %w", err) } @@ -493,13 +493,19 @@ func (c *contactRequestsManager) handleIncomingRequest(ctx context.Context, stre tyber.LogStep(ctx, c.logger, "checking remote contact information") + buffer := make([]byte, inet.MessageSizeMax) // read remote contact information - if err := reader.ReadMsg(contact); err != nil { - return fmt.Errorf("failed to retrieve contact information: %w", err) + n, err := stream.Read(buffer) + if err != nil && err != io.EOF { + return fmt.Errorf("failed to read contact information: %w", err) + } + + if err := proto.Unmarshal(buffer[:n], contact); err != nil { + return fmt.Errorf("failed to unmarshal contact information: %w", err) } // validate contact pk - if !bytes.Equal(otherPKBytes, contact.PK) { + if !bytes.Equal(otherPKBytes, contact.Pk) { return fmt.Errorf("contact information does not match handshake data") } @@ -512,11 +518,10 @@ func (c *contactRequestsManager) handleIncomingRequest(ctx context.Context, stre // mark contact request as received _, err = c.metadataStore.ContactRequestIncomingReceived(ctx, &protocoltypes.ShareableContact{ - PK: otherPKBytes, + Pk: otherPKBytes, PublicRendezvousSeed: contact.PublicRendezvousSeed, Metadata: contact.Metadata, }) - if err != nil { return fmt.Errorf("invalid contact information format: %w", err) } diff --git a/contact_request_manager_test.go b/contact_request_manager_test.go index 6b32aaec..69027e16 100644 --- a/contact_request_manager_test.go +++ b/contact_request_manager_test.go @@ -9,6 +9,7 @@ import ( libp2p_mocknet "github.com/berty/go-libp2p-mock" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "google.golang.org/protobuf/proto" "berty.tech/weshnet/pkg/protocoltypes" "berty.tech/weshnet/pkg/testutil" @@ -58,14 +59,14 @@ func TestContactRequestFlow(t *testing.T) { defer subCancel() subMeta0, err := pts[0].Client.GroupMetadataList(subCtx, &protocoltypes.GroupMetadataList_Request{ - GroupPK: config0.AccountGroupPK, + GroupPk: config0.AccountGroupPk, }) require.NoError(t, err) found := false _, err = pts[1].Client.ContactRequestSend(ctx, &protocoltypes.ContactRequestSend_Request{ Contact: &protocoltypes.ShareableContact{ - PK: config0.AccountPK, + Pk: config0.AccountPk, PublicRendezvousSeed: ref0.PublicRendezvousSeed, }, OwnMetadata: metadataSender1, @@ -80,15 +81,15 @@ func TestContactRequestFlow(t *testing.T) { require.NoError(t, err) - if evt == nil || evt.Metadata.EventType != protocoltypes.EventTypeAccountContactRequestIncomingReceived { + if evt == nil || evt.Metadata.EventType != protocoltypes.EventType_EventTypeAccountContactRequestIncomingReceived { continue } req := &protocoltypes.AccountContactRequestIncomingReceived{} - err = req.Unmarshal(evt.Event) + err = proto.Unmarshal(evt.Event, req) require.NoError(t, err) - require.Equal(t, config1.AccountPK, req.ContactPK) + require.Equal(t, config1.AccountPk, req.ContactPk) require.Equal(t, metadataSender1, req.ContactMetadata) found = true subCancel() @@ -97,42 +98,42 @@ func TestContactRequestFlow(t *testing.T) { require.True(t, found) _, err = pts[1].Client.ContactRequestAccept(ctx, &protocoltypes.ContactRequestAccept_Request{ - ContactPK: config0.AccountPK, + ContactPk: config0.AccountPk, }) require.Error(t, err) _, err = pts[1].Client.ContactRequestAccept(ctx, &protocoltypes.ContactRequestAccept_Request{ - ContactPK: config1.AccountPK, + ContactPk: config1.AccountPk, }) require.Error(t, err) _, err = pts[0].Client.ContactRequestAccept(ctx, &protocoltypes.ContactRequestAccept_Request{ - ContactPK: config0.AccountPK, + ContactPk: config0.AccountPk, }) require.Error(t, err) _, err = pts[0].Client.ContactRequestAccept(ctx, &protocoltypes.ContactRequestAccept_Request{ - ContactPK: config1.AccountPK, + ContactPk: config1.AccountPk, }) require.NoError(t, err) grpInfo, err := pts[0].Client.GroupInfo(ctx, &protocoltypes.GroupInfo_Request{ - ContactPK: config1.AccountPK, + ContactPk: config1.AccountPk, }) require.NoError(t, err) _, err = pts[0].Client.ActivateGroup(ctx, &protocoltypes.ActivateGroup_Request{ - GroupPK: grpInfo.Group.PublicKey, + GroupPk: grpInfo.Group.PublicKey, }) require.NoError(t, err) _, err = pts[1].Client.ActivateGroup(ctx, &protocoltypes.ActivateGroup_Request{ - GroupPK: grpInfo.Group.PublicKey, + GroupPk: grpInfo.Group.PublicKey, }) require.NoError(t, err) @@ -181,14 +182,14 @@ func TestContactRequestFlowWithoutIncoming(t *testing.T) { defer subCancel() subMeta0, err := pts[0].Client.GroupMetadataList(subCtx, &protocoltypes.GroupMetadataList_Request{ - GroupPK: config0.AccountGroupPK, + GroupPk: config0.AccountGroupPk, }) require.NoError(t, err) found := false _, err = pts[1].Client.ContactRequestSend(ctx, &protocoltypes.ContactRequestSend_Request{ Contact: &protocoltypes.ShareableContact{ - PK: config0.AccountPK, + Pk: config0.AccountPk, PublicRendezvousSeed: ref0.PublicRendezvousSeed, }, OwnMetadata: metadataSender1, @@ -204,15 +205,15 @@ func TestContactRequestFlowWithoutIncoming(t *testing.T) { require.NoError(t, err) - if evt == nil || evt.Metadata.EventType != protocoltypes.EventTypeAccountContactRequestIncomingReceived { + if evt == nil || evt.Metadata.EventType != protocoltypes.EventType_EventTypeAccountContactRequestIncomingReceived { continue } req := &protocoltypes.AccountContactRequestIncomingReceived{} - err = req.Unmarshal(evt.Event) + err = proto.Unmarshal(evt.Event, req) require.NoError(t, err) - require.Equal(t, config1.AccountPK, req.ContactPK) + require.Equal(t, config1.AccountPk, req.ContactPk) require.Equal(t, metadataSender1, req.ContactMetadata) found = true subCancel() @@ -221,13 +222,13 @@ func TestContactRequestFlowWithoutIncoming(t *testing.T) { require.True(t, found) _, err = pts[0].Client.ContactRequestAccept(ctx, &protocoltypes.ContactRequestAccept_Request{ - ContactPK: config1.AccountPK, + ContactPk: config1.AccountPk, }) require.NoError(t, err) _, err = pts[0].Client.GroupInfo(ctx, &protocoltypes.GroupInfo_Request{ - ContactPK: config1.AccountPK, + ContactPk: config1.AccountPk, }) require.NoError(t, err) } diff --git a/deactivate_test.go b/deactivate_test.go index 4c2d4e9e..b085e7f9 100644 --- a/deactivate_test.go +++ b/deactivate_test.go @@ -73,12 +73,12 @@ func TestReactivateAccountGroup(t *testing.T) { require.NotNil(t, nodeACfg) _, err = nodeA.Client.DeactivateGroup(ctx, &protocoltypes.DeactivateGroup_Request{ - GroupPK: nodeACfg.AccountGroupPK, + GroupPk: nodeACfg.AccountGroupPk, }) require.NoError(t, err) _, err = nodeA.Client.ActivateGroup(ctx, &protocoltypes.ActivateGroup_Request{ - GroupPK: nodeACfg.AccountGroupPK, + GroupPk: nodeACfg.AccountGroupPk, }) require.NoError(t, err) @@ -135,7 +135,7 @@ func TestRaceReactivateAccountGroup(t *testing.T) { deactivateFunc := func() { t.Log("DeactivateGroup") _, err := nodeA.Client.DeactivateGroup(ctx, &protocoltypes.DeactivateGroup_Request{ - GroupPK: nodeACfg.AccountGroupPK, + GroupPk: nodeACfg.AccountGroupPk, }) require.NoError(t, err) } @@ -143,7 +143,7 @@ func TestRaceReactivateAccountGroup(t *testing.T) { activateFunc := func() { t.Log("ActivateGroup") _, err := nodeA.Client.ActivateGroup(ctx, &protocoltypes.ActivateGroup_Request{ - GroupPK: nodeACfg.AccountGroupPK, + GroupPk: nodeACfg.AccountGroupPk, }) require.NoError(t, err) } @@ -187,13 +187,13 @@ func TestReactivateContactGroup(t *testing.T) { // deactivate contact group _, err := nodes[0].Client.DeactivateGroup(ctx, &protocoltypes.DeactivateGroup_Request{ - GroupPK: contactGroup.Group.PublicKey, + GroupPk: contactGroup.Group.PublicKey, }) require.NoError(t, err) // reactivate group _, err = nodes[0].Client.ActivateGroup(ctx, &protocoltypes.ActivateGroup_Request{ - GroupPK: contactGroup.Group.PublicKey, + GroupPk: contactGroup.Group.PublicKey, }) require.NoError(t, err) @@ -233,7 +233,7 @@ func TestRaceReactivateContactGroup(t *testing.T) { deactivateFunc := func() { t.Log("DeactivateGroup") _, err := nodes[0].Client.DeactivateGroup(ctx, &protocoltypes.DeactivateGroup_Request{ - GroupPK: contactGroup.Group.PublicKey, + GroupPk: contactGroup.Group.PublicKey, }) require.NoError(t, err) } @@ -242,7 +242,7 @@ func TestRaceReactivateContactGroup(t *testing.T) { activateFunc := func() { t.Log("ActivateGroup") _, err := nodes[0].Client.ActivateGroup(ctx, &protocoltypes.ActivateGroup_Request{ - GroupPK: contactGroup.Group.PublicKey, + GroupPk: contactGroup.Group.PublicKey, }) require.NoError(t, err) } @@ -281,13 +281,13 @@ func TestReactivateMultimemberGroup(t *testing.T) { // deactivate multimember group _, err := nodes[0].Client.DeactivateGroup(ctx, &protocoltypes.DeactivateGroup_Request{ - GroupPK: group.PublicKey, + GroupPk: group.PublicKey, }) require.NoError(t, err) // reactivate group _, err = nodes[0].Client.ActivateGroup(ctx, &protocoltypes.ActivateGroup_Request{ - GroupPK: group.PublicKey, + GroupPk: group.PublicKey, }) require.NoError(t, err) diff --git a/docs/Makefile b/docs/Makefile index 67023960..db0956df 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -27,7 +27,7 @@ $(gen_sum): $(gen_src) ) .PHONY: generate -protoc_opts := -I ../api:`go list -m -mod=mod -f {{.Dir}} github.com/grpc-ecosystem/grpc-gateway`/third_party/googleapis:`go list -m -mod=mod -f {{.Dir}} github.com/gogo/protobuf`:/protobuf +protoc_opts := -I ../api:`go list -m -mod=mod -f {{.Dir}} github.com/grpc-ecosystem/grpc-gateway`/third_party/googleapis generate_local: mkdir -p protocol diff --git a/events.go b/events.go index 4f740da2..1a086168 100644 --- a/events.go +++ b/events.go @@ -3,9 +3,9 @@ package weshnet import ( "fmt" - "github.com/gogo/protobuf/proto" cid "github.com/ipfs/go-cid" "golang.org/x/crypto/nacl/secretbox" + "google.golang.org/protobuf/proto" ipfslog "berty.tech/go-ipfs-log" "berty.tech/weshnet/pkg/cryptoutil" @@ -17,27 +17,27 @@ var eventTypesMapper = map[protocoltypes.EventType]struct { Message proto.Message SigChecker sigChecker }{ - protocoltypes.EventTypeGroupMemberDeviceAdded: {Message: &protocoltypes.GroupMemberDeviceAdded{}, SigChecker: sigCheckerGroupMemberDeviceAdded}, - protocoltypes.EventTypeGroupDeviceChainKeyAdded: {Message: &protocoltypes.GroupDeviceChainKeyAdded{}, SigChecker: sigCheckerDeviceSigned}, - protocoltypes.EventTypeAccountGroupJoined: {Message: &protocoltypes.AccountGroupJoined{}, SigChecker: sigCheckerDeviceSigned}, - protocoltypes.EventTypeAccountGroupLeft: {Message: &protocoltypes.AccountGroupLeft{}, SigChecker: sigCheckerDeviceSigned}, - protocoltypes.EventTypeAccountContactRequestDisabled: {Message: &protocoltypes.AccountContactRequestDisabled{}, SigChecker: sigCheckerDeviceSigned}, - protocoltypes.EventTypeAccountContactRequestEnabled: {Message: &protocoltypes.AccountContactRequestEnabled{}, SigChecker: sigCheckerDeviceSigned}, - protocoltypes.EventTypeAccountContactRequestReferenceReset: {Message: &protocoltypes.AccountContactRequestReferenceReset{}, SigChecker: sigCheckerDeviceSigned}, - protocoltypes.EventTypeAccountContactRequestOutgoingEnqueued: {Message: &protocoltypes.AccountContactRequestOutgoingEnqueued{}, SigChecker: sigCheckerDeviceSigned}, - protocoltypes.EventTypeAccountContactRequestOutgoingSent: {Message: &protocoltypes.AccountContactRequestOutgoingSent{}, SigChecker: sigCheckerDeviceSigned}, - protocoltypes.EventTypeAccountContactRequestIncomingReceived: {Message: &protocoltypes.AccountContactRequestIncomingReceived{}, SigChecker: sigCheckerDeviceSigned}, - protocoltypes.EventTypeAccountContactRequestIncomingDiscarded: {Message: &protocoltypes.AccountContactRequestIncomingDiscarded{}, SigChecker: sigCheckerDeviceSigned}, - protocoltypes.EventTypeAccountContactRequestIncomingAccepted: {Message: &protocoltypes.AccountContactRequestIncomingAccepted{}, SigChecker: sigCheckerDeviceSigned}, - protocoltypes.EventTypeAccountContactBlocked: {Message: &protocoltypes.AccountContactBlocked{}, SigChecker: sigCheckerDeviceSigned}, - protocoltypes.EventTypeAccountContactUnblocked: {Message: &protocoltypes.AccountContactUnblocked{}, SigChecker: sigCheckerDeviceSigned}, - protocoltypes.EventTypeContactAliasKeyAdded: {Message: &protocoltypes.ContactAliasKeyAdded{}, SigChecker: sigCheckerDeviceSigned}, - protocoltypes.EventTypeMultiMemberGroupAliasResolverAdded: {Message: &protocoltypes.MultiMemberGroupAliasResolverAdded{}, SigChecker: sigCheckerDeviceSigned}, - protocoltypes.EventTypeMultiMemberGroupInitialMemberAnnounced: {Message: &protocoltypes.MultiMemberGroupInitialMemberAnnounced{}, SigChecker: sigCheckerGroupSigned}, - protocoltypes.EventTypeMultiMemberGroupAdminRoleGranted: {Message: &protocoltypes.MultiMemberGroupAdminRoleGranted{}, SigChecker: sigCheckerDeviceSigned}, - protocoltypes.EventTypeGroupMetadataPayloadSent: {Message: &protocoltypes.GroupMetadataPayloadSent{}, SigChecker: sigCheckerDeviceSigned}, - protocoltypes.EventTypeGroupReplicating: {Message: &protocoltypes.GroupReplicating{}, SigChecker: sigCheckerDeviceSigned}, - protocoltypes.EventTypeAccountVerifiedCredentialRegistered: {Message: &protocoltypes.AccountVerifiedCredentialRegistered{}, SigChecker: sigCheckerDeviceSigned}, + protocoltypes.EventType_EventTypeGroupMemberDeviceAdded: {Message: &protocoltypes.GroupMemberDeviceAdded{}, SigChecker: sigCheckerGroupMemberDeviceAdded}, + protocoltypes.EventType_EventTypeGroupDeviceChainKeyAdded: {Message: &protocoltypes.GroupDeviceChainKeyAdded{}, SigChecker: sigCheckerDeviceSigned}, + protocoltypes.EventType_EventTypeAccountGroupJoined: {Message: &protocoltypes.AccountGroupJoined{}, SigChecker: sigCheckerDeviceSigned}, + protocoltypes.EventType_EventTypeAccountGroupLeft: {Message: &protocoltypes.AccountGroupLeft{}, SigChecker: sigCheckerDeviceSigned}, + protocoltypes.EventType_EventTypeAccountContactRequestDisabled: {Message: &protocoltypes.AccountContactRequestDisabled{}, SigChecker: sigCheckerDeviceSigned}, + protocoltypes.EventType_EventTypeAccountContactRequestEnabled: {Message: &protocoltypes.AccountContactRequestEnabled{}, SigChecker: sigCheckerDeviceSigned}, + protocoltypes.EventType_EventTypeAccountContactRequestReferenceReset: {Message: &protocoltypes.AccountContactRequestReferenceReset{}, SigChecker: sigCheckerDeviceSigned}, + protocoltypes.EventType_EventTypeAccountContactRequestOutgoingEnqueued: {Message: &protocoltypes.AccountContactRequestOutgoingEnqueued{}, SigChecker: sigCheckerDeviceSigned}, + protocoltypes.EventType_EventTypeAccountContactRequestOutgoingSent: {Message: &protocoltypes.AccountContactRequestOutgoingSent{}, SigChecker: sigCheckerDeviceSigned}, + protocoltypes.EventType_EventTypeAccountContactRequestIncomingReceived: {Message: &protocoltypes.AccountContactRequestIncomingReceived{}, SigChecker: sigCheckerDeviceSigned}, + protocoltypes.EventType_EventTypeAccountContactRequestIncomingDiscarded: {Message: &protocoltypes.AccountContactRequestIncomingDiscarded{}, SigChecker: sigCheckerDeviceSigned}, + protocoltypes.EventType_EventTypeAccountContactRequestIncomingAccepted: {Message: &protocoltypes.AccountContactRequestIncomingAccepted{}, SigChecker: sigCheckerDeviceSigned}, + protocoltypes.EventType_EventTypeAccountContactBlocked: {Message: &protocoltypes.AccountContactBlocked{}, SigChecker: sigCheckerDeviceSigned}, + protocoltypes.EventType_EventTypeAccountContactUnblocked: {Message: &protocoltypes.AccountContactUnblocked{}, SigChecker: sigCheckerDeviceSigned}, + protocoltypes.EventType_EventTypeContactAliasKeyAdded: {Message: &protocoltypes.ContactAliasKeyAdded{}, SigChecker: sigCheckerDeviceSigned}, + protocoltypes.EventType_EventTypeMultiMemberGroupAliasResolverAdded: {Message: &protocoltypes.MultiMemberGroupAliasResolverAdded{}, SigChecker: sigCheckerDeviceSigned}, + protocoltypes.EventType_EventTypeMultiMemberGroupInitialMemberAnnounced: {Message: &protocoltypes.MultiMemberGroupInitialMemberAnnounced{}, SigChecker: sigCheckerGroupSigned}, + protocoltypes.EventType_EventTypeMultiMemberGroupAdminRoleGranted: {Message: &protocoltypes.MultiMemberGroupAdminRoleGranted{}, SigChecker: sigCheckerDeviceSigned}, + protocoltypes.EventType_EventTypeGroupMetadataPayloadSent: {Message: &protocoltypes.GroupMetadataPayloadSent{}, SigChecker: sigCheckerDeviceSigned}, + protocoltypes.EventType_EventTypeGroupReplicating: {Message: &protocoltypes.GroupReplicating{}, SigChecker: sigCheckerDeviceSigned}, + protocoltypes.EventType_EventTypeAccountVerifiedCredentialRegistered: {Message: &protocoltypes.AccountVerifiedCredentialRegistered{}, SigChecker: sigCheckerDeviceSigned}, } func newEventContext(eventID cid.Cid, parentIDs []cid.Cid, g *protocoltypes.Group) *protocoltypes.EventContext { @@ -47,9 +47,9 @@ func newEventContext(eventID cid.Cid, parentIDs []cid.Cid, g *protocoltypes.Grou } return &protocoltypes.EventContext{ - ID: eventID.Bytes(), - ParentIDs: parentIDsBytes, - GroupPK: g.PublicKey, + Id: eventID.Bytes(), + ParentIds: parentIDsBytes, + GroupPk: g.PublicKey, } } @@ -89,7 +89,7 @@ func newGroupMetadataEventFromEntry(_ ipfslog.Log, e ipfslog.Entry, metadata *pr eventBytes, err := proto.Marshal(event) if err != nil { - return nil, errcode.ErrSerialization + return nil, errcode.ErrCode_ErrSerialization } // TODO(gfanton): getParentsCID use a lot of ressources, disable it until we need it @@ -107,53 +107,53 @@ func newGroupMetadataEventFromEntry(_ ipfslog.Log, e ipfslog.Entry, metadata *pr func openGroupEnvelope(g *protocoltypes.Group, envelopeBytes []byte) (*protocoltypes.GroupMetadata, proto.Message, error) { env := &protocoltypes.GroupEnvelope{} - if err := env.Unmarshal(envelopeBytes); err != nil { - return nil, nil, errcode.ErrInvalidInput.Wrap(err) + if err := proto.Unmarshal(envelopeBytes, env); err != nil { + return nil, nil, errcode.ErrCode_ErrInvalidInput.Wrap(err) } nonce, err := cryptoutil.NonceSliceToArray(env.Nonce) if err != nil { - return nil, nil, errcode.ErrSerialization.Wrap(err) + return nil, nil, errcode.ErrCode_ErrSerialization.Wrap(err) } data, ok := secretbox.Open(nil, env.Event, nonce, g.GetSharedSecret()) if !ok { - return nil, nil, errcode.ErrGroupMemberLogEventOpen + return nil, nil, errcode.ErrCode_ErrGroupMemberLogEventOpen } metadataEvent := &protocoltypes.GroupMetadata{} - err = metadataEvent.Unmarshal(data) + err = proto.Unmarshal(data, metadataEvent) if err != nil { - return nil, nil, errcode.TODO.Wrap(err) + return nil, nil, errcode.ErrCode_TODO.Wrap(err) } et, ok := eventTypesMapper[metadataEvent.EventType] if !ok { - return nil, nil, errcode.ErrInvalidInput.Wrap(fmt.Errorf("event type not found")) + return nil, nil, errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("event type not found")) } payload := proto.Clone(et.Message) if err := proto.Unmarshal(metadataEvent.Payload, payload); err != nil { - return nil, nil, errcode.ErrDeserialization.Wrap(err) + return nil, nil, errcode.ErrCode_ErrDeserialization.Wrap(err) } if err := et.SigChecker(g, metadataEvent, payload); err != nil { - return nil, nil, errcode.ErrCryptoSignatureVerification.Wrap(err) + return nil, nil, errcode.ErrCode_ErrCryptoSignatureVerification.Wrap(err) } return metadataEvent, payload, nil } -func sealGroupEnvelope(g *protocoltypes.Group, eventType protocoltypes.EventType, payload proto.Marshaler, payloadSig []byte) ([]byte, error) { - payloadBytes, err := payload.Marshal() +func sealGroupEnvelope(g *protocoltypes.Group, eventType protocoltypes.EventType, payload proto.Message, payloadSig []byte) ([]byte, error) { + payloadBytes, err := proto.Marshal(payload) if err != nil { - return nil, errcode.TODO.Wrap(err) + return nil, errcode.ErrCode_TODO.Wrap(err) } nonce, err := cryptoutil.GenerateNonce() if err != nil { - return nil, errcode.ErrCryptoNonceGeneration.Wrap(err) + return nil, errcode.ErrCode_ErrCryptoNonceGeneration.Wrap(err) } event := &protocoltypes.GroupMetadata{ @@ -163,9 +163,9 @@ func sealGroupEnvelope(g *protocoltypes.Group, eventType protocoltypes.EventType ProtocolMetadata: &protocoltypes.ProtocolMetadata{}, } - eventClearBytes, err := event.Marshal() + eventClearBytes, err := proto.Marshal(event) if err != nil { - return nil, errcode.ErrSerialization.Wrap(err) + return nil, errcode.ErrCode_ErrSerialization.Wrap(err) } eventBytes := secretbox.Seal(nil, eventClearBytes, nonce, g.GetSharedSecret()) @@ -175,5 +175,5 @@ func sealGroupEnvelope(g *protocoltypes.Group, eventType protocoltypes.EventType Nonce: nonce[:], } - return env.Marshal() + return proto.Marshal(env) } diff --git a/events_sig_checkers.go b/events_sig_checkers.go index 17991903..fbb3b4d5 100644 --- a/events_sig_checkers.go +++ b/events_sig_checkers.go @@ -1,8 +1,8 @@ package weshnet import ( - "github.com/gogo/protobuf/proto" "github.com/libp2p/go-libp2p/core/crypto" + "google.golang.org/protobuf/proto" "berty.tech/weshnet/pkg/errcode" "berty.tech/weshnet/pkg/protocoltypes" @@ -18,11 +18,11 @@ func sigCheckerGroupSigned(g *protocoltypes.Group, metadata *protocoltypes.Group ok, err := pk.Verify(metadata.Payload, metadata.Sig) if err != nil { - return errcode.ErrCryptoSignatureVerification.Wrap(err) + return errcode.ErrCode_ErrCryptoSignatureVerification.Wrap(err) } if !ok { - return errcode.ErrCryptoSignatureVerification + return errcode.ErrCode_ErrCryptoSignatureVerification } return nil @@ -36,21 +36,21 @@ type eventDeviceSigned interface { func sigCheckerDeviceSigned(g *protocoltypes.Group, metadata *protocoltypes.GroupMetadata, message proto.Message) error { msg, ok := message.(eventDeviceSigned) if !ok { - return errcode.ErrDeserialization + return errcode.ErrCode_ErrDeserialization } devPK, err := crypto.UnmarshalEd25519PublicKey(msg.GetDevicePK()) if err != nil { - return errcode.ErrDeserialization.Wrap(err) + return errcode.ErrCode_ErrDeserialization.Wrap(err) } ok, err = devPK.Verify(metadata.Payload, metadata.Sig) if err != nil { - return errcode.ErrCryptoSignatureVerification.Wrap(err) + return errcode.ErrCode_ErrCryptoSignatureVerification.Wrap(err) } if !ok { - return errcode.ErrCryptoSignatureVerification + return errcode.ErrCode_ErrCryptoSignatureVerification } return nil @@ -59,21 +59,21 @@ func sigCheckerDeviceSigned(g *protocoltypes.Group, metadata *protocoltypes.Grou func sigCheckerGroupMemberDeviceAdded(g *protocoltypes.Group, metadata *protocoltypes.GroupMetadata, message proto.Message) error { msg, ok := message.(*protocoltypes.GroupMemberDeviceAdded) if !ok { - return errcode.ErrDeserialization + return errcode.ErrCode_ErrDeserialization } - memPK, err := crypto.UnmarshalEd25519PublicKey(msg.MemberPK) + memPK, err := crypto.UnmarshalEd25519PublicKey(msg.MemberPk) if err != nil { - return errcode.ErrDeserialization.Wrap(err) + return errcode.ErrCode_ErrDeserialization.Wrap(err) } - ok, err = memPK.Verify(msg.DevicePK, msg.MemberSig) + ok, err = memPK.Verify(msg.DevicePk, msg.MemberSig) if err != nil { - return errcode.ErrCryptoSignatureVerification.Wrap(err) + return errcode.ErrCode_ErrCryptoSignatureVerification.Wrap(err) } if !ok { - return errcode.ErrCryptoSignatureVerification + return errcode.ErrCode_ErrCryptoSignatureVerification } return sigCheckerDeviceSigned(g, metadata, message) diff --git a/go.mod b/go.mod index c2c5b263..06b336a1 100644 --- a/go.mod +++ b/go.mod @@ -313,3 +313,5 @@ require ( moul.io/banner v1.0.1 // indirect moul.io/motd v1.0.0 // indirect ) + +replace github.com/berty/go-libp2p-rendezvous => /Users/remi/go-libp2p-rendezvous diff --git a/group.go b/group.go index adbecf99..57e6945f 100644 --- a/group.go +++ b/group.go @@ -2,6 +2,7 @@ package weshnet import ( "github.com/libp2p/go-libp2p/core/crypto" + "google.golang.org/protobuf/proto" "berty.tech/weshnet/pkg/errcode" "berty.tech/weshnet/pkg/protocoltypes" @@ -16,27 +17,27 @@ func NewGroupMultiMember() (*protocoltypes.Group, crypto.PrivKey, error) { } func getAndFilterGroupDeviceChainKeyAddedPayload(m *protocoltypes.GroupMetadata, localMemberPublicKey crypto.PubKey) (crypto.PubKey, []byte, error) { - if m == nil || m.EventType != protocoltypes.EventTypeGroupDeviceChainKeyAdded { - return nil, nil, errcode.ErrInvalidInput + if m == nil || m.EventType != protocoltypes.EventType_EventTypeGroupDeviceChainKeyAdded { + return nil, nil, errcode.ErrCode_ErrInvalidInput } s := &protocoltypes.GroupDeviceChainKeyAdded{} - if err := s.Unmarshal(m.Payload); err != nil { - return nil, nil, errcode.ErrDeserialization.Wrap(err) + if err := proto.Unmarshal(m.Payload, s); err != nil { + return nil, nil, errcode.ErrCode_ErrDeserialization.Wrap(err) } - senderDevicePubKey, err := crypto.UnmarshalEd25519PublicKey(s.DevicePK) + senderDevicePubKey, err := crypto.UnmarshalEd25519PublicKey(s.DevicePk) if err != nil { - return nil, nil, errcode.ErrDeserialization.Wrap(err) + return nil, nil, errcode.ErrCode_ErrDeserialization.Wrap(err) } - destMemberPubKey, err := crypto.UnmarshalEd25519PublicKey(s.DestMemberPK) + destMemberPubKey, err := crypto.UnmarshalEd25519PublicKey(s.DestMemberPk) if err != nil { - return nil, nil, errcode.ErrDeserialization.Wrap(err) + return nil, nil, errcode.ErrCode_ErrDeserialization.Wrap(err) } if !localMemberPublicKey.Equals(destMemberPubKey) { - return nil, nil, errcode.ErrGroupSecretOtherDestMember + return nil, nil, errcode.ErrCode_ErrGroupSecretOtherDestMember } return senderDevicePubKey, s.Payload, nil diff --git a/group_context.go b/group_context.go index 3dff9b21..f151b2c9 100644 --- a/group_context.go +++ b/group_context.go @@ -10,6 +10,7 @@ import ( "github.com/libp2p/go-libp2p/core/crypto" "go.uber.org/zap" + "google.golang.org/protobuf/proto" "berty.tech/go-orbit-db/stores" "berty.tech/weshnet/pkg/errcode" @@ -189,13 +190,13 @@ func (gc *GroupContext) ActivateGroupContext(contactPK crypto.PubKey) (err error func (gc *GroupContext) handleGroupMetadataEvent(e *protocoltypes.GroupMetadataEvent) (err error) { switch e.Metadata.EventType { - case protocoltypes.EventTypeGroupMemberDeviceAdded: + case protocoltypes.EventType_EventTypeGroupMemberDeviceAdded: event := &protocoltypes.GroupMemberDeviceAdded{} - if err := event.Unmarshal(e.Event); err != nil { + if err := proto.Unmarshal(e.Event, event); err != nil { gc.logger.Error("unable to unmarshal payload", zap.Error(err)) } - memberPK, err := crypto.UnmarshalEd25519PublicKey(event.MemberPK) + memberPK, err := crypto.UnmarshalEd25519PublicKey(event.MemberPk) if err != nil { return fmt.Errorf("unable to unmarshal sender member pk: %w", err) } @@ -205,16 +206,16 @@ func (gc *GroupContext) handleGroupMetadataEvent(e *protocoltypes.GroupMetadataE } if _, err := gc.MetadataStore().SendSecret(gc.ctx, memberPK); err != nil { - if !errcode.Is(err, errcode.ErrGroupSecretAlreadySentToMember) { + if !errcode.Is(err, errcode.ErrCode_ErrGroupSecretAlreadySentToMember) { return fmt.Errorf("unable to send secret to member: %w", err) } } - case protocoltypes.EventTypeGroupDeviceChainKeyAdded: + case protocoltypes.EventType_EventTypeGroupDeviceChainKeyAdded: senderPublicKey, encryptedDeviceChainKey, err := getAndFilterGroupDeviceChainKeyAddedPayload(e.Metadata, gc.ownMemberDevice.Member()) switch err { case nil: // ok - case errcode.ErrInvalidInput, errcode.ErrGroupSecretOtherDestMember: + case errcode.ErrCode_ErrInvalidInput, errcode.ErrCode_ErrGroupSecretOtherDestMember: // @FIXME(gfanton): should we log this ? return nil default: @@ -266,7 +267,7 @@ func (gc *GroupContext) metadataStoreListSecrets() map[crypto.PubKey][]byte { } pk, encryptedDeviceChainKey, err := getAndFilterGroupDeviceChainKeyAddedPayload(metadata.Metadata, gc.MemberPubKey()) - if errcode.Is(err, errcode.ErrInvalidInput) || errcode.Is(err, errcode.ErrGroupSecretOtherDestMember) { + if errcode.Is(err, errcode.ErrCode_ErrInvalidInput) || errcode.Is(err, errcode.ErrCode_ErrGroupSecretOtherDestMember) { continue } @@ -285,7 +286,7 @@ func (gc *GroupContext) sendSecretsToExistingMembers(contact crypto.PubKey) { members := gc.MetadataStore().ListMembers() // Force sending secret to contact member in contact group - if gc.group.GroupType == protocoltypes.GroupTypeContact && len(members) < 2 && contact != nil { + if gc.group.GroupType == protocoltypes.GroupType_GroupTypeContact && len(members) < 2 && contact != nil { // Check if contact member is already listed found := false for _, member := range members { @@ -308,7 +309,7 @@ func (gc *GroupContext) sendSecretsToExistingMembers(contact crypto.PubKey) { } if _, err := gc.MetadataStore().SendSecret(gc.ctx, pk); err != nil { - if !errcode.Is(err, errcode.ErrGroupSecretAlreadySentToMember) { + if !errcode.Is(err, errcode.ErrCode_ErrGroupSecretAlreadySentToMember) { gc.logger.Info("secret already sent secret to member", logutil.PrivateString("memberpk", base64.StdEncoding.EncodeToString(rawPK))) continue } diff --git a/internal/handshake/handshake.go b/internal/handshake/handshake.go index c0119924..167557e2 100644 --- a/internal/handshake/handshake.go +++ b/internal/handshake/handshake.go @@ -3,10 +3,12 @@ package handshake import ( crand "crypto/rand" "encoding/base64" + "io" - ggio "github.com/gogo/protobuf/io" p2pcrypto "github.com/libp2p/go-libp2p/core/crypto" + inet "github.com/libp2p/go-libp2p/core/network" "golang.org/x/crypto/nacl/box" + "google.golang.org/protobuf/proto" "berty.tech/weshnet/pkg/cryptoutil" "berty.tech/weshnet/pkg/errcode" @@ -21,8 +23,8 @@ var ( // Common struct and methods type handshakeContext struct { - reader ggio.Reader - writer ggio.Writer + reader io.Reader + writer io.Writer ownAccountID p2pcrypto.PrivKey peerAccountID p2pcrypto.PubKey ownEphemeral *[cryptoutil.KeySize]byte @@ -61,7 +63,7 @@ func (hc *handshakeContext) generateOwnEphemeralAndSendPubKey() error { // Generate own Ephemeral key pair ownEphemeralPub, ownEphemeralPriv, err := box.GenerateKey(crand.Reader) if err != nil { - return errcode.ErrCryptoKeyGeneration.Wrap(err) + return errcode.ErrCode_ErrCryptoKeyGeneration.Wrap(err) } // Set own Ephemeral priv key in Handshake Context @@ -69,8 +71,13 @@ func (hc *handshakeContext) generateOwnEphemeralAndSendPubKey() error { // Send own Ephemeral pub key to peer hello := HelloPayload{EphemeralPubKey: ownEphemeralPub[:]} - if err := hc.writer.WriteMsg(&hello); err != nil { - return errcode.ErrStreamWrite.Wrap(err) + helloBytes, err := proto.Marshal(&hello) + if err != nil { + return errcode.ErrCode_ErrSerialization.Wrap(err) + } + + if _, err := hc.writer.Write(helloBytes); err != nil { + return errcode.ErrCode_ErrStreamWrite.Wrap(err) } return nil @@ -81,15 +88,21 @@ func (hc *handshakeContext) receivePeerEphemeralPubKey() error { var err error // Receive peer's Ephemeral pub key + buffer := make([]byte, inet.MessageSizeMax) + n, err := hc.reader.Read(buffer) + if err != nil && err != io.EOF { + return errcode.ErrCode_ErrStreamRead.Wrap(err) + } + hello := HelloPayload{} - if err := hc.reader.ReadMsg(&hello); err != nil { - return errcode.ErrStreamRead.Wrap(err) + if err := proto.Unmarshal(buffer[:n], &hello); err != nil { + return errcode.ErrCode_ErrSerialization.Wrap(err) } // Set peer's Ephemeral pub key in Handshake Context hc.peerEphemeral, err = cryptoutil.KeySliceToArray(hello.EphemeralPubKey) if err != nil { - return errcode.ErrSerialization.Wrap(err) + return errcode.ErrCode_ErrSerialization.Wrap(err) } return nil @@ -104,7 +117,7 @@ func (hc *handshakeContext) computeRequesterAuthenticateBoxKey(asRequester bool) // Convert Ed25519 peer's AccountID key to X25519 key mongPeerAccountID, err := cryptoutil.EdwardsToMontgomeryPub(hc.peerAccountID) if err != nil { - return nil, errcode.ErrCryptoKeyConversion.Wrap(err) + return nil, errcode.ErrCode_ErrCryptoKeyConversion.Wrap(err) } // Compute shared key from own Ephemeral key and peer's AccountID key @@ -117,7 +130,7 @@ func (hc *handshakeContext) computeRequesterAuthenticateBoxKey(asRequester bool) // Convert Ed25519 own AccountID key to X25519 key mongOwnAccountID, err := cryptoutil.EdwardsToMontgomeryPriv(hc.ownAccountID) if err != nil { - return nil, errcode.ErrCryptoKeyConversion.Wrap(err) + return nil, errcode.ErrCode_ErrCryptoKeyConversion.Wrap(err) } // Compute shared key from peer's Ephemeral key and own AccountID key @@ -147,7 +160,7 @@ func (hc *handshakeContext) computeResponderAcceptBoxKey() (*[cryptoutil.KeySize hc.peerAccountID, ) if err != nil { - return nil, errcode.ErrCryptoKeyConversion.Wrap(err) + return nil, errcode.ErrCode_ErrCryptoKeyConversion.Wrap(err) } // Compute shared key from AccountID keys (X25519 converted) diff --git a/internal/handshake/handshake_test.go b/internal/handshake/handshake_test.go index df822b43..69c5a43e 100644 --- a/internal/handshake/handshake_test.go +++ b/internal/handshake/handshake_test.go @@ -7,12 +7,12 @@ import ( "testing" "time" - ggio "github.com/gogo/protobuf/io" p2pcrypto "github.com/libp2p/go-libp2p/core/crypto" p2pnetwork "github.com/libp2p/go-libp2p/core/network" "github.com/stretchr/testify/require" "go.uber.org/zap" "golang.org/x/crypto/nacl/box" + "google.golang.org/protobuf/proto" "berty.tech/weshnet/pkg/cryptoutil" "berty.tech/weshnet/pkg/errcode" @@ -22,18 +22,12 @@ import ( // Request init a handshake with the responder func Request(stream p2pnetwork.Stream, ownAccountID p2pcrypto.PrivKey, peerAccountID p2pcrypto.PubKey) error { - reader := ggio.NewDelimitedReader(stream, 2048) - writer := ggio.NewDelimitedWriter(stream) - - return RequestUsingReaderWriter(context.TODO(), zap.NewNop(), reader, writer, ownAccountID, peerAccountID) + return RequestUsingReaderWriter(context.TODO(), zap.NewNop(), stream, stream, ownAccountID, peerAccountID) } // Response handle the handshake inited by the requester func Response(stream p2pnetwork.Stream, ownAccountID p2pcrypto.PrivKey) (p2pcrypto.PubKey, error) { - reader := ggio.NewDelimitedReader(stream, 2048) - writer := ggio.NewDelimitedWriter(stream) - - return ResponseUsingReaderWriter(context.TODO(), zap.NewNop(), reader, writer, ownAccountID) + return ResponseUsingReaderWriter(context.TODO(), zap.NewNop(), stream, stream, ownAccountID) } func TestValidHandshake(t *testing.T) { @@ -101,8 +95,8 @@ func TestInvalidRequesterHello(t *testing.T) { defer ipfsutil.FullClose(stream) _, err := Response(stream, mh.responder.accountID) - require.Contains(t, errcode.Codes(err), errcode.ErrHandshakeRequesterHello) - require.Contains(t, errcode.Codes(err), errcode.ErrStreamRead) + require.Contains(t, errcode.Codes(err), errcode.ErrCode_ErrHandshakeRequesterHello) + require.Contains(t, errcode.Codes(err), errcode.ErrCode_ErrStreamRead) } runHandshakeTest(t, requesterTest, responderTest) @@ -129,7 +123,7 @@ func TestInvalidResponderHello(t *testing.T) { mh.requester.accountID, mh.responder.accountID.GetPublic(), ) - require.Equal(t, errcode.Codes(err), []errcode.ErrCode{errcode.ErrHandshakeResponderHello, errcode.ErrHandshakePeerEphemeralKeyRecv, errcode.ErrStreamRead}) + require.Equal(t, errcode.Codes(err), []errcode.ErrCode{errcode.ErrCode_ErrHandshakeResponderHello, errcode.ErrCode_ErrHandshakePeerEphemeralKeyRecv, errcode.ErrCode_ErrStreamRead}) } var responderTest responderTestFunc = func( @@ -191,7 +185,7 @@ func TestInvalidRequesterAuthenticate(t *testing.T) { defer ipfsutil.FullClose(stream) _, err := Response(stream, mh.requester.accountID) - require.Equal(t, errcode.Codes(err), []errcode.ErrCode{errcode.ErrHandshakeRequesterAuthenticate, errcode.ErrStreamRead}) + require.Equal(t, errcode.Codes(err), []errcode.ErrCode{errcode.ErrCode_ErrHandshakeRequesterAuthenticate, errcode.ErrCode_ErrStreamRead}) } runHandshakeTest(t, requesterTest, responderTest) @@ -226,7 +220,7 @@ func TestInvalidRequesterAuthenticate(t *testing.T) { request.RequesterAccountSig, err = hc.ownAccountID.Sign(hc.sharedEphemeral[:]) require.NoError(t, err, "sharedEphemeral signing failed") - requestBytes, err := request.Marshal() + requestBytes, err := proto.Marshal(&request) require.NoError(t, err, "request marshaling failed") boxKey, err := hc.computeRequesterAuthenticateBoxKey(true) @@ -239,7 +233,10 @@ func TestInvalidRequesterAuthenticate(t *testing.T) { boxKey, ) - hc.writer.WriteMsg(&BoxEnvelope{Box: boxContent}) + boxBytes, err := proto.Marshal(&BoxEnvelope{Box: boxContent}) + require.NoError(t, err, "box envelope marshaling failed") + + hc.writer.Write(boxBytes) ipfsutil.FullClose(stream) } @@ -254,7 +251,7 @@ func TestInvalidRequesterAuthenticate(t *testing.T) { defer ipfsutil.FullClose(stream) _, err := Response(stream, mh.responder.accountID) - require.Equal(t, errcode.Codes(err), []errcode.ErrCode{errcode.ErrHandshakeRequesterAuthenticate, errcode.ErrDeserialization}) + require.Equal(t, errcode.Codes(err), []errcode.ErrCode{errcode.ErrCode_ErrHandshakeRequesterAuthenticate, errcode.ErrCode_ErrDeserialization}) } runHandshakeTest(t, requesterTest, responderTest) @@ -294,7 +291,7 @@ func TestInvalidRequesterAuthenticate(t *testing.T) { request.RequesterAccountSig, err = hc.ownAccountID.Sign(hc.sharedEphemeral[:]) require.NoError(t, err, "sharedEphemeral signing failed") - requestBytes, err := request.Marshal() + requestBytes, err := proto.Marshal(&request) require.NoError(t, err, "request marshaling failed") boxKey, err := hc.computeRequesterAuthenticateBoxKey(true) @@ -307,7 +304,10 @@ func TestInvalidRequesterAuthenticate(t *testing.T) { boxKey, ) - hc.writer.WriteMsg(&BoxEnvelope{Box: boxContent}) + boxBytes, err := proto.Marshal(&BoxEnvelope{Box: boxContent}) + require.NoError(t, err, "box envelope marshaling failed") + + hc.writer.Write(boxBytes) ipfsutil.FullClose(stream) } @@ -322,7 +322,7 @@ func TestInvalidRequesterAuthenticate(t *testing.T) { defer ipfsutil.FullClose(stream) _, err := Response(stream, mh.responder.accountID) - require.Equal(t, errcode.Codes(err), []errcode.ErrCode{errcode.ErrHandshakeRequesterAuthenticate, errcode.ErrCryptoSignatureVerification}) + require.Equal(t, errcode.Codes(err), []errcode.ErrCode{errcode.ErrCode_ErrHandshakeRequesterAuthenticate, errcode.ErrCode_ErrCryptoSignatureVerification}) } runHandshakeTest(t, requesterTest, responderTest) @@ -362,7 +362,7 @@ func TestInvalidRequesterAuthenticate(t *testing.T) { request.RequesterAccountSig, err = wrongAccountID.Sign(hc.sharedEphemeral[:]) require.NoError(t, err, "sharedEphemeral signing failed") - requestBytes, err := request.Marshal() + requestBytes, err := proto.Marshal(&request) require.NoError(t, err, "request marshaling failed") boxKey, err := hc.computeRequesterAuthenticateBoxKey(true) @@ -375,7 +375,10 @@ func TestInvalidRequesterAuthenticate(t *testing.T) { boxKey, ) - hc.writer.WriteMsg(&BoxEnvelope{Box: boxContent}) + boxBytes, err := proto.Marshal(&BoxEnvelope{Box: boxContent}) + require.NoError(t, err, "box envelope marshaling failed") + + hc.writer.Write(boxBytes) ipfsutil.FullClose(stream) } @@ -390,7 +393,7 @@ func TestInvalidRequesterAuthenticate(t *testing.T) { defer ipfsutil.FullClose(stream) _, err := Response(stream, mh.responder.accountID) - require.Equal(t, errcode.Codes(err), []errcode.ErrCode{errcode.ErrHandshakeRequesterAuthenticate, errcode.ErrCryptoSignatureVerification}) + require.Equal(t, errcode.Codes(err), []errcode.ErrCode{errcode.ErrCode_ErrHandshakeRequesterAuthenticate, errcode.ErrCode_ErrCryptoSignatureVerification}) } runHandshakeTest(t, requesterTest, responderTest) @@ -427,7 +430,7 @@ func TestInvalidRequesterAuthenticate(t *testing.T) { request.RequesterAccountSig, err = hc.ownAccountID.Sign([]byte("WrongProof")) require.NoError(t, err, "sharedEphemeral signing failed") - requestBytes, err := request.Marshal() + requestBytes, err := proto.Marshal(&request) require.NoError(t, err, "request marshaling failed") boxKey, err := hc.computeRequesterAuthenticateBoxKey(true) @@ -440,7 +443,10 @@ func TestInvalidRequesterAuthenticate(t *testing.T) { boxKey, ) - hc.writer.WriteMsg(&BoxEnvelope{Box: boxContent}) + boxBytes, err := proto.Marshal(&BoxEnvelope{Box: boxContent}) + require.NoError(t, err, "box envelope marshaling failed") + + hc.writer.Write(boxBytes) ipfsutil.FullClose(stream) } @@ -455,7 +461,7 @@ func TestInvalidRequesterAuthenticate(t *testing.T) { defer ipfsutil.FullClose(stream) _, err := Response(stream, mh.responder.accountID) - require.Equal(t, errcode.Codes(err), []errcode.ErrCode{errcode.ErrHandshakeRequesterAuthenticate, errcode.ErrCryptoSignatureVerification}) + require.Equal(t, errcode.Codes(err), []errcode.ErrCode{errcode.ErrCode_ErrHandshakeRequesterAuthenticate, errcode.ErrCode_ErrCryptoSignatureVerification}) } runHandshakeTest(t, requesterTest, responderTest) @@ -496,7 +502,10 @@ func TestInvalidRequesterAuthenticate(t *testing.T) { boxKey, ) - hc.writer.WriteMsg(&BoxEnvelope{Box: boxContent}) + boxBytes, err := proto.Marshal(&BoxEnvelope{Box: boxContent}) + require.NoError(t, err, "box envelope marshaling failed") + + hc.writer.Write(boxBytes) ipfsutil.FullClose(stream) } @@ -511,7 +520,7 @@ func TestInvalidRequesterAuthenticate(t *testing.T) { defer ipfsutil.FullClose(stream) _, err := Response(stream, mh.responder.accountID) - require.Equal(t, errcode.Codes(err), []errcode.ErrCode{errcode.ErrHandshakeRequesterAuthenticate, errcode.ErrDeserialization}) + require.Equal(t, errcode.Codes(err), []errcode.ErrCode{errcode.ErrCode_ErrHandshakeRequesterAuthenticate, errcode.ErrCode_ErrDeserialization}) } runHandshakeTest(t, requesterTest, responderTest) @@ -547,7 +556,7 @@ func TestInvalidRequesterAuthenticate(t *testing.T) { request.RequesterAccountSig, err = hc.ownAccountID.Sign(hc.sharedEphemeral[:]) require.NoError(t, err, "sharedEphemeral signing failed") - requestBytes, err := request.Marshal() + requestBytes, err := proto.Marshal(&request) require.NoError(t, err, "request marshaling failed") // Seal box using another key @@ -561,7 +570,10 @@ func TestInvalidRequesterAuthenticate(t *testing.T) { wrongBoxKey, ) - hc.writer.WriteMsg(&BoxEnvelope{Box: boxContent}) + boxBytes, err := proto.Marshal(&BoxEnvelope{Box: boxContent}) + require.NoError(t, err, "box envelope marshaling failed") + + hc.writer.Write(boxBytes) ipfsutil.FullClose(stream) } @@ -576,7 +588,7 @@ func TestInvalidRequesterAuthenticate(t *testing.T) { defer ipfsutil.FullClose(stream) _, err := Response(stream, mh.responder.accountID) - require.Equal(t, errcode.Codes(err), []errcode.ErrCode{errcode.ErrHandshakeRequesterAuthenticate, errcode.ErrCryptoDecrypt}) + require.Equal(t, errcode.Codes(err), []errcode.ErrCode{errcode.ErrCode_ErrHandshakeRequesterAuthenticate, errcode.ErrCode_ErrCryptoDecrypt}) } runHandshakeTest(t, requesterTest, responderTest) @@ -612,7 +624,7 @@ func TestInvalidRequesterAuthenticate(t *testing.T) { request.RequesterAccountSig, err = hc.ownAccountID.Sign(hc.sharedEphemeral[:]) require.NoError(t, err, "sharedEphemeral signing failed") - requestBytes, err := request.Marshal() + requestBytes, err := proto.Marshal(&request) require.NoError(t, err, "request marshaling failed") boxKey, err := hc.computeRequesterAuthenticateBoxKey(true) @@ -629,7 +641,10 @@ func TestInvalidRequesterAuthenticate(t *testing.T) { boxKey, ) - hc.writer.WriteMsg(&BoxEnvelope{Box: boxContent}) + boxBytes, err := proto.Marshal(&BoxEnvelope{Box: boxContent}) + require.NoError(t, err, "box envelope marshaling failed") + + hc.writer.Write(boxBytes) ipfsutil.FullClose(stream) } @@ -644,7 +659,7 @@ func TestInvalidRequesterAuthenticate(t *testing.T) { defer ipfsutil.FullClose(stream) _, err := Response(stream, mh.responder.accountID) - require.Equal(t, errcode.Codes(err), []errcode.ErrCode{errcode.ErrHandshakeRequesterAuthenticate, errcode.ErrCryptoDecrypt}) + require.Equal(t, errcode.Codes(err), []errcode.ErrCode{errcode.ErrCode_ErrHandshakeRequesterAuthenticate, errcode.ErrCode_ErrCryptoDecrypt}) } runHandshakeTest(t, requesterTest, responderTest) @@ -673,7 +688,10 @@ func TestInvalidRequesterAuthenticate(t *testing.T) { require.NoError(t, err, "receive ResponderHello failed") // Send invalid box content - hc.writer.WriteMsg(&BoxEnvelope{Box: []byte("WrongBoxContent")}) + boxBytes, err := proto.Marshal(&BoxEnvelope{Box: []byte("WrongBoxContent")}) + require.NoError(t, err, "box envelope marshaling failed") + + hc.writer.Write(boxBytes) ipfsutil.FullClose(stream) } @@ -688,7 +706,7 @@ func TestInvalidRequesterAuthenticate(t *testing.T) { defer ipfsutil.FullClose(stream) _, err := Response(stream, mh.responder.accountID) - require.Equal(t, errcode.Codes(err), []errcode.ErrCode{errcode.ErrHandshakeRequesterAuthenticate, errcode.ErrCryptoDecrypt}) + require.Equal(t, errcode.Codes(err), []errcode.ErrCode{errcode.ErrCode_ErrHandshakeRequesterAuthenticate, errcode.ErrCode_ErrCryptoDecrypt}) } runHandshakeTest(t, requesterTest, responderTest) @@ -715,7 +733,7 @@ func TestInvalidResponderAccept(t *testing.T) { mh.requester.accountID, mh.responder.accountID.GetPublic(), ) - require.Equal(t, errcode.Codes(err), []errcode.ErrCode{errcode.ErrHandshakeResponderAccept, errcode.ErrStreamRead}) + require.Equal(t, errcode.Codes(err), []errcode.ErrCode{errcode.ErrCode_ErrHandshakeResponderAccept, errcode.ErrCode_ErrStreamRead}) } var responderTest responderTestFunc = func( @@ -760,7 +778,7 @@ func TestInvalidResponderAccept(t *testing.T) { mh.requester.accountID, mh.responder.accountID.GetPublic(), ) - require.Equal(t, errcode.Codes(err), []errcode.ErrCode{errcode.ErrHandshakeResponderAccept, errcode.ErrCryptoSignatureVerification}) + require.Equal(t, errcode.Codes(err), []errcode.ErrCode{errcode.ErrCode_ErrHandshakeResponderAccept, errcode.ErrCode_ErrCryptoSignatureVerification}) } var responderTest responderTestFunc = func( @@ -791,7 +809,7 @@ func TestInvalidResponderAccept(t *testing.T) { response.ResponderAccountSig, err = wrongAccountID.Sign(hc.sharedEphemeral[:]) require.NoError(t, err, "sharedEphemeral signing failed") - responseBytes, err := response.Marshal() + responseBytes, err := proto.Marshal(&response) require.NoError(t, err, "response marshaling failed") boxKey, err := hc.computeResponderAcceptBoxKey() @@ -804,7 +822,10 @@ func TestInvalidResponderAccept(t *testing.T) { boxKey, ) - hc.writer.WriteMsg(&BoxEnvelope{Box: boxContent}) + boxBytes, err := proto.Marshal(&BoxEnvelope{Box: boxContent}) + require.NoError(t, err, "box envelope marshaling failed") + + hc.writer.Write(boxBytes) ipfsutil.FullClose(stream) } @@ -829,7 +850,7 @@ func TestInvalidResponderAccept(t *testing.T) { mh.requester.accountID, mh.responder.accountID.GetPublic(), ) - require.Equal(t, errcode.Codes(err), []errcode.ErrCode{errcode.ErrHandshakeResponderAccept, errcode.ErrCryptoSignatureVerification}) + require.Equal(t, errcode.Codes(err), []errcode.ErrCode{errcode.ErrCode_ErrHandshakeResponderAccept, errcode.ErrCode_ErrCryptoSignatureVerification}) } var responderTest responderTestFunc = func( @@ -857,7 +878,7 @@ func TestInvalidResponderAccept(t *testing.T) { response.ResponderAccountSig, err = hc.ownAccountID.Sign([]byte("WrongProof")) require.NoError(t, err, "sharedEphemeral signing failed") - responseBytes, err := response.Marshal() + responseBytes, err := proto.Marshal(&response) require.NoError(t, err, "response marshaling failed") boxKey, err := hc.computeResponderAcceptBoxKey() @@ -870,7 +891,10 @@ func TestInvalidResponderAccept(t *testing.T) { boxKey, ) - hc.writer.WriteMsg(&BoxEnvelope{Box: boxContent}) + boxBytes, err := proto.Marshal(&BoxEnvelope{Box: boxContent}) + require.NoError(t, err, "box envelope marshaling failed") + + hc.writer.Write(boxBytes) ipfsutil.FullClose(stream) } @@ -895,7 +919,7 @@ func TestInvalidResponderAccept(t *testing.T) { mh.requester.accountID, mh.responder.accountID.GetPublic(), ) - require.Equal(t, errcode.Codes(err), []errcode.ErrCode{errcode.ErrHandshakeResponderAccept, errcode.ErrDeserialization}) + require.Equal(t, errcode.Codes(err), []errcode.ErrCode{errcode.ErrCode_ErrHandshakeResponderAccept, errcode.ErrCode_ErrDeserialization}) } var responderTest responderTestFunc = func( @@ -930,7 +954,10 @@ func TestInvalidResponderAccept(t *testing.T) { boxKey, ) - hc.writer.WriteMsg(&BoxEnvelope{Box: boxContent}) + boxBytes, err := proto.Marshal(&BoxEnvelope{Box: boxContent}) + require.NoError(t, err, "box envelope marshaling failed") + + hc.writer.Write(boxBytes) ipfsutil.FullClose(stream) } @@ -955,7 +982,7 @@ func TestInvalidResponderAccept(t *testing.T) { mh.requester.accountID, mh.responder.accountID.GetPublic(), ) - require.Equal(t, errcode.Codes(err), []errcode.ErrCode{errcode.ErrHandshakeResponderAccept, errcode.ErrCryptoDecrypt}) + require.Equal(t, errcode.Codes(err), []errcode.ErrCode{errcode.ErrCode_ErrHandshakeResponderAccept, errcode.ErrCode_ErrCryptoDecrypt}) } var responderTest responderTestFunc = func( @@ -982,7 +1009,7 @@ func TestInvalidResponderAccept(t *testing.T) { response.ResponderAccountSig, err = hc.ownAccountID.Sign(hc.sharedEphemeral[:]) require.NoError(t, err, "sharedEphemeral signing failed") - responseBytes, err := response.Marshal() + responseBytes, err := proto.Marshal(&response) require.NoError(t, err, "response marshaling failed") // Seal box using another key @@ -996,7 +1023,10 @@ func TestInvalidResponderAccept(t *testing.T) { wrongBoxKey, ) - hc.writer.WriteMsg(&BoxEnvelope{Box: boxContent}) + boxBytes, err := proto.Marshal(&BoxEnvelope{Box: boxContent}) + require.NoError(t, err, "box envelope marshaling failed") + + hc.writer.Write(boxBytes) ipfsutil.FullClose(stream) } @@ -1021,7 +1051,7 @@ func TestInvalidResponderAccept(t *testing.T) { mh.requester.accountID, mh.responder.accountID.GetPublic(), ) - require.Equal(t, errcode.Codes(err), []errcode.ErrCode{errcode.ErrHandshakeResponderAccept, errcode.ErrCryptoDecrypt}) + require.Equal(t, errcode.Codes(err), []errcode.ErrCode{errcode.ErrCode_ErrHandshakeResponderAccept, errcode.ErrCode_ErrCryptoDecrypt}) } var responderTest responderTestFunc = func( @@ -1048,7 +1078,7 @@ func TestInvalidResponderAccept(t *testing.T) { response.ResponderAccountSig, err = hc.ownAccountID.Sign(hc.sharedEphemeral[:]) require.NoError(t, err, "sharedEphemeral signing failed") - responseBytes, err := response.Marshal() + responseBytes, err := proto.Marshal(&response) require.NoError(t, err, "response marshaling failed") boxKey, err := hc.computeResponderAcceptBoxKey() @@ -1065,7 +1095,10 @@ func TestInvalidResponderAccept(t *testing.T) { boxKey, ) - hc.writer.WriteMsg(&BoxEnvelope{Box: boxContent}) + boxBytes, err := proto.Marshal(&BoxEnvelope{Box: boxContent}) + require.NoError(t, err, "box envelope marshaling failed") + + hc.writer.Write(boxBytes) ipfsutil.FullClose(stream) } @@ -1090,7 +1123,7 @@ func TestInvalidResponderAccept(t *testing.T) { mh.requester.accountID, mh.responder.accountID.GetPublic(), ) - require.Equal(t, errcode.Codes(err), []errcode.ErrCode{errcode.ErrHandshakeResponderAccept, errcode.ErrCryptoDecrypt}) + require.Equal(t, errcode.Codes(err), []errcode.ErrCode{errcode.ErrCode_ErrHandshakeResponderAccept, errcode.ErrCode_ErrCryptoDecrypt}) } var responderTest responderTestFunc = func( @@ -1113,7 +1146,10 @@ func TestInvalidResponderAccept(t *testing.T) { require.NoError(t, err, "receive RequesterAuthenticate failed") // Send wrong boxContent - hc.writer.WriteMsg(&BoxEnvelope{Box: []byte("WrongBoxContent")}) + boxBytes, err := proto.Marshal(&BoxEnvelope{Box: []byte("WrongBoxContent")}) + require.NoError(t, err, "box envelope marshaling failed") + + hc.writer.Write(boxBytes) ipfsutil.FullClose(stream) } @@ -1166,7 +1202,7 @@ func TestInvalidResponderAcceptAck(t *testing.T) { defer ipfsutil.FullClose(stream) _, err := Response(stream, mh.responder.accountID) - require.Equal(t, errcode.Codes(err), []errcode.ErrCode{errcode.ErrHandshakeRequesterAcknowledge, errcode.ErrStreamRead}) + require.Equal(t, errcode.Codes(err), []errcode.ErrCode{errcode.ErrCode_ErrHandshakeRequesterAcknowledge, errcode.ErrCode_ErrStreamRead}) } runHandshakeTest(t, requesterTest, responderTest) @@ -1201,7 +1237,10 @@ func TestInvalidResponderAcceptAck(t *testing.T) { require.NoError(t, err, "receive ResponderAccept failed") acknowledge := &RequesterAcknowledgePayload{Success: false} - hc.writer.WriteMsg(acknowledge) + ackBytes, err := proto.Marshal(acknowledge) + require.NoError(t, err, "acknowledge marshaling failed") + + hc.writer.Write(ackBytes) ipfsutil.FullClose(stream) } @@ -1216,7 +1255,7 @@ func TestInvalidResponderAcceptAck(t *testing.T) { defer ipfsutil.FullClose(stream) _, err := Response(stream, mh.responder.accountID) - require.Equal(t, errcode.Codes(err), []errcode.ErrCode{errcode.ErrHandshakeRequesterAcknowledge, errcode.ErrInvalidInput}) + require.Equal(t, errcode.Codes(err), []errcode.ErrCode{errcode.ErrCode_ErrHandshakeRequesterAcknowledge, errcode.ErrCode_ErrInvalidInput}) } runHandshakeTest(t, requesterTest, responderTest) diff --git a/internal/handshake/handshake_util_test.go b/internal/handshake/handshake_util_test.go index 6af948eb..0d18d7a0 100644 --- a/internal/handshake/handshake_util_test.go +++ b/internal/handshake/handshake_util_test.go @@ -8,7 +8,6 @@ import ( "time" p2pmocknet "github.com/berty/go-libp2p-mock" - ggio "github.com/gogo/protobuf/io" p2pcrypto "github.com/libp2p/go-libp2p/core/crypto" p2pnetwork "github.com/libp2p/go-libp2p/core/network" p2ppeer "github.com/libp2p/go-libp2p/core/peer" @@ -94,8 +93,8 @@ func (mh *mockedHandshake) close(t *testing.T) { func newTestHandshakeContext(stream p2pnetwork.Stream, ownAccountID p2pcrypto.PrivKey, peerAccountID p2pcrypto.PubKey) *handshakeContext { return &handshakeContext{ - reader: ggio.NewDelimitedReader(stream, 2048), - writer: ggio.NewDelimitedWriter(stream), + reader: stream, + writer: stream, ownAccountID: ownAccountID, peerAccountID: peerAccountID, sharedEphemeral: &[32]byte{}, diff --git a/internal/handshake/request.go b/internal/handshake/request.go index 229339dd..df51fa3d 100644 --- a/internal/handshake/request.go +++ b/internal/handshake/request.go @@ -3,19 +3,21 @@ package handshake import ( "context" "errors" + "io" - ggio "github.com/gogo/protobuf/io" p2pcrypto "github.com/libp2p/go-libp2p/core/crypto" + inet "github.com/libp2p/go-libp2p/core/network" "go.uber.org/zap" "golang.org/x/crypto/nacl/box" + "google.golang.org/protobuf/proto" "berty.tech/weshnet/pkg/cryptoutil" "berty.tech/weshnet/pkg/errcode" "berty.tech/weshnet/pkg/tyber" ) -// RequestUsingReaderWriter init a handshake with the responder, using provided ggio reader and writer -func RequestUsingReaderWriter(ctx context.Context, logger *zap.Logger, reader ggio.Reader, writer ggio.Writer, ownAccountID p2pcrypto.PrivKey, peerAccountID p2pcrypto.PubKey) error { +// RequestUsingReaderWriter init a handshake with the responder, using provided io reader and writer +func RequestUsingReaderWriter(ctx context.Context, logger *zap.Logger, reader io.Reader, writer io.Writer, ownAccountID p2pcrypto.PrivKey, peerAccountID p2pcrypto.PubKey) error { hc := &handshakeContext{ reader: reader, writer: writer, @@ -26,23 +28,23 @@ func RequestUsingReaderWriter(ctx context.Context, logger *zap.Logger, reader gg // Handshake steps on requester side (see comments below) if err := hc.sendRequesterHello(); err != nil { - return errcode.ErrHandshakeRequesterHello.Wrap(err) + return errcode.ErrCode_ErrHandshakeRequesterHello.Wrap(err) } tyber.LogStep(ctx, logger, "Sent hello", hc.toTyberStepMutator()) if err := hc.receiveResponderHello(); err != nil { - return errcode.ErrHandshakeResponderHello.Wrap(err) + return errcode.ErrCode_ErrHandshakeResponderHello.Wrap(err) } tyber.LogStep(ctx, logger, "Received hello", hc.toTyberStepMutator()) if err := hc.sendRequesterAuthenticate(); err != nil { - return errcode.ErrHandshakeRequesterAuthenticate.Wrap(err) + return errcode.ErrCode_ErrHandshakeRequesterAuthenticate.Wrap(err) } tyber.LogStep(ctx, logger, "Sent authenticate", hc.toTyberStepMutator()) if err := hc.receiveResponderAccept(); err != nil { - return errcode.ErrHandshakeResponderAccept.Wrap(err) + return errcode.ErrCode_ErrHandshakeResponderAccept.Wrap(err) } tyber.LogStep(ctx, logger, "Received accept", hc.toTyberStepMutator()) if err := hc.sendRequesterAcknowledge(); err != nil { - return errcode.ErrHandshakeRequesterAcknowledge.Wrap(err) + return errcode.ErrCode_ErrHandshakeRequesterAcknowledge.Wrap(err) } tyber.LogStep(ctx, logger, "Sent acknowledge", hc.toTyberStepMutator()) @@ -52,7 +54,7 @@ func RequestUsingReaderWriter(ctx context.Context, logger *zap.Logger, reader gg // 1st step - Requester sends: a func (hc *handshakeContext) sendRequesterHello() error { if err := hc.generateOwnEphemeralAndSendPubKey(); err != nil { - return errcode.ErrHandshakeOwnEphemeralKeyGenSend.Wrap(err) + return errcode.ErrCode_ErrHandshakeOwnEphemeralKeyGenSend.Wrap(err) } return nil @@ -61,7 +63,7 @@ func (hc *handshakeContext) sendRequesterHello() error { // 2nd step - Requester receives: b func (hc *handshakeContext) receiveResponderHello() error { if err := hc.receivePeerEphemeralPubKey(); err != nil { - return errcode.ErrHandshakePeerEphemeralKeyRecv.Wrap(err) + return errcode.ErrCode_ErrHandshakePeerEphemeralKeyRecv.Wrap(err) } // Compute shared key from Ephemeral keys @@ -81,22 +83,22 @@ func (hc *handshakeContext) sendRequesterAuthenticate() error { // in RequesterAuthenticatePayload message before marshaling it request.RequesterAccountId, err = p2pcrypto.MarshalPublicKey(hc.ownAccountID.GetPublic()) if err != nil { - return errcode.ErrSerialization.Wrap(err) + return errcode.ErrCode_ErrSerialization.Wrap(err) } request.RequesterAccountSig, err = hc.ownAccountID.Sign(hc.sharedEphemeral[:]) if err != nil { - return errcode.ErrCryptoSignature.Wrap(err) + return errcode.ErrCode_ErrCryptoSignature.Wrap(err) } - requestBytes, err := request.Marshal() + requestBytes, err := proto.Marshal(&request) if err != nil { - return errcode.ErrSerialization.Wrap(err) + return errcode.ErrCode_ErrSerialization.Wrap(err) } // Compute box key and seal marshaled RequesterAuthenticatePayload using // constant nonce (see handshake.go) boxKey, err := hc.computeRequesterAuthenticateBoxKey(true) if err != nil { - return errcode.ErrHandshakeRequesterAuthenticateBoxKeyGen.Wrap(err) + return errcode.ErrCode_ErrHandshakeRequesterAuthenticateBoxKeyGen.Wrap(err) } boxContent := box.SealAfterPrecomputation( nil, @@ -106,8 +108,13 @@ func (hc *handshakeContext) sendRequesterAuthenticate() error { ) // Send BoxEnvelope to responder - if err = hc.writer.WriteMsg(&BoxEnvelope{Box: boxContent}); err != nil { - return errcode.ErrStreamWrite.Wrap(err) + boxBytes, err := proto.Marshal(&BoxEnvelope{Box: boxContent}) + if err != nil { + return errcode.ErrCode_ErrSerialization.Wrap(err) + } + + if _, err = hc.writer.Write(boxBytes); err != nil { + return errcode.ErrCode_ErrStreamWrite.Wrap(err) } return nil @@ -121,15 +128,21 @@ func (hc *handshakeContext) receiveResponderAccept() error { ) // Receive BoxEnvelope from responder - if err := hc.reader.ReadMsg(&boxEnvelope); err != nil { - return errcode.ErrStreamRead.Wrap(err) + buffer := make([]byte, inet.MessageSizeMax) + n, err := hc.reader.Read(buffer) + if err != nil && err != io.EOF { + return errcode.ErrCode_ErrStreamRead.Wrap(err) + } + + if err := proto.Unmarshal(buffer[:n], &boxEnvelope); err != nil { + return errcode.ErrCode_ErrDeserialization.Wrap(err) } // Compute box key and open marshaled RequesterAuthenticatePayload using // constant nonce (see handshake.go) boxKey, err := hc.computeResponderAcceptBoxKey() if err != nil { - return errcode.ErrHandshakeResponderAcceptBoxKeyGen.Wrap(err) + return errcode.ErrCode_ErrHandshakeResponderAcceptBoxKeyGen.Wrap(err) } respBytes, _ := box.OpenAfterPrecomputation( @@ -140,13 +153,14 @@ func (hc *handshakeContext) receiveResponderAccept() error { ) if respBytes == nil { err := errors.New("box opening failed") - return errcode.ErrCryptoDecrypt.Wrap(err) + return errcode.ErrCode_ErrCryptoDecrypt.Wrap(err) } // Unmarshal ResponderAcceptPayload - err = response.Unmarshal(respBytes) + + err = proto.Unmarshal(respBytes, &response) if err != nil { - return errcode.ErrDeserialization.Wrap(err) + return errcode.ErrCode_ErrDeserialization.Wrap(err) } // Verify proof (shared_a_b signed by peer's AccountID) @@ -155,9 +169,9 @@ func (hc *handshakeContext) receiveResponderAccept() error { response.ResponderAccountSig, ) if err != nil { - return errcode.ErrCryptoSignatureVerification.Wrap(err) + return errcode.ErrCode_ErrCryptoSignatureVerification.Wrap(err) } else if !valid { - return errcode.ErrCryptoSignatureVerification + return errcode.ErrCode_ErrCryptoSignatureVerification } return nil @@ -167,9 +181,14 @@ func (hc *handshakeContext) receiveResponderAccept() error { func (hc *handshakeContext) sendRequesterAcknowledge() error { acknowledge := &RequesterAcknowledgePayload{Success: true} + ackBytes, err := proto.Marshal(acknowledge) + if err != nil { + return errcode.ErrCode_ErrSerialization.Wrap(err) + } + // Send Acknowledge to responder - if err := hc.writer.WriteMsg(acknowledge); err != nil { - return errcode.ErrStreamWrite.Wrap(err) + if _, err := hc.writer.Write(ackBytes); err != nil { + return errcode.ErrCode_ErrStreamWrite.Wrap(err) } return nil diff --git a/internal/handshake/response.go b/internal/handshake/response.go index 7f5cc0b2..a00ad826 100644 --- a/internal/handshake/response.go +++ b/internal/handshake/response.go @@ -3,19 +3,21 @@ package handshake import ( "context" "errors" + "io" - ggio "github.com/gogo/protobuf/io" p2pcrypto "github.com/libp2p/go-libp2p/core/crypto" + inet "github.com/libp2p/go-libp2p/core/network" "go.uber.org/zap" "golang.org/x/crypto/nacl/box" + "google.golang.org/protobuf/proto" "berty.tech/weshnet/pkg/cryptoutil" "berty.tech/weshnet/pkg/errcode" "berty.tech/weshnet/pkg/tyber" ) -// ResponseUsingReaderWriter handle the handshake inited by the requester, using provided ggio reader and writer -func ResponseUsingReaderWriter(ctx context.Context, logger *zap.Logger, reader ggio.Reader, writer ggio.Writer, ownAccountID p2pcrypto.PrivKey) (p2pcrypto.PubKey, error) { +// ResponseUsingReaderWriter handle the handshake inited by the requester, using provided io reader and writer +func ResponseUsingReaderWriter(ctx context.Context, logger *zap.Logger, reader io.Reader, writer io.Writer, ownAccountID p2pcrypto.PrivKey) (p2pcrypto.PubKey, error) { hc := &handshakeContext{ reader: reader, writer: writer, @@ -25,23 +27,23 @@ func ResponseUsingReaderWriter(ctx context.Context, logger *zap.Logger, reader g // Handshake steps on responder side (see comments below) if err := hc.receiveRequesterHello(); err != nil { - return nil, errcode.ErrHandshakeRequesterHello.Wrap(err) + return nil, errcode.ErrCode_ErrHandshakeRequesterHello.Wrap(err) } tyber.LogStep(ctx, logger, "Received hello", hc.toTyberStepMutator(), tyber.ForceReopen) if err := hc.sendResponderHello(); err != nil { - return nil, errcode.ErrHandshakeResponderHello.Wrap(err) + return nil, errcode.ErrCode_ErrHandshakeResponderHello.Wrap(err) } tyber.LogStep(ctx, logger, "Sent hello", hc.toTyberStepMutator(), tyber.ForceReopen) if err := hc.receiveRequesterAuthenticate(); err != nil { - return nil, errcode.ErrHandshakeRequesterAuthenticate.Wrap(err) + return nil, errcode.ErrCode_ErrHandshakeRequesterAuthenticate.Wrap(err) } tyber.LogStep(ctx, logger, "Received authenticate", hc.toTyberStepMutator(), tyber.ForceReopen) if err := hc.sendResponderAccept(); err != nil { - return nil, errcode.ErrHandshakeResponderAccept.Wrap(err) + return nil, errcode.ErrCode_ErrHandshakeResponderAccept.Wrap(err) } tyber.LogStep(ctx, logger, "Sent accept", hc.toTyberStepMutator(), tyber.ForceReopen) if err := hc.receiveRequesterAcknowledge(); err != nil { - return nil, errcode.ErrHandshakeRequesterAcknowledge.Wrap(err) + return nil, errcode.ErrCode_ErrHandshakeRequesterAcknowledge.Wrap(err) } tyber.LogStep(ctx, logger, "Received acknowledge", hc.toTyberStepMutator(), tyber.ForceReopen) @@ -51,7 +53,7 @@ func ResponseUsingReaderWriter(ctx context.Context, logger *zap.Logger, reader g // 1st step - Responder receives: a func (hc *handshakeContext) receiveRequesterHello() error { if err := hc.receivePeerEphemeralPubKey(); err != nil { - return errcode.ErrHandshakePeerEphemeralKeyRecv.Wrap(err) + return errcode.ErrCode_ErrHandshakePeerEphemeralKeyRecv.Wrap(err) } return nil @@ -60,7 +62,7 @@ func (hc *handshakeContext) receiveRequesterHello() error { // 2nd step - Responder sends: b func (hc *handshakeContext) sendResponderHello() error { if err := hc.generateOwnEphemeralAndSendPubKey(); err != nil { - return errcode.ErrHandshakeOwnEphemeralKeyGenSend.Wrap(err) + return errcode.ErrCode_ErrHandshakeOwnEphemeralKeyGenSend.Wrap(err) } // Compute shared key from Ephemeral keys @@ -77,15 +79,21 @@ func (hc *handshakeContext) receiveRequesterAuthenticate() error { ) // Receive BoxEnvelope from requester - if err := hc.reader.ReadMsg(&boxEnvelope); err != nil { - return errcode.ErrStreamRead.Wrap(err) + buffer := make([]byte, inet.MessageSizeMax) + n, err := hc.reader.Read(buffer) + if err != nil && err != io.EOF { + return errcode.ErrCode_ErrStreamRead.Wrap(err) + } + + if err := proto.Unmarshal(buffer[:n], &boxEnvelope); err != nil { + return errcode.ErrCode_ErrSerialization.Wrap(err) } // Compute box key and open marshaled RequesterAuthenticatePayload using // constant nonce (see handshake.go) boxKey, err := hc.computeRequesterAuthenticateBoxKey(false) if err != nil { - return errcode.ErrHandshakeRequesterAuthenticateBoxKeyGen.Wrap(err) + return errcode.ErrCode_ErrHandshakeRequesterAuthenticateBoxKeyGen.Wrap(err) } requestBytes, _ := box.OpenAfterPrecomputation( nil, @@ -95,17 +103,17 @@ func (hc *handshakeContext) receiveRequesterAuthenticate() error { ) if requestBytes == nil { err := errors.New("box opening failed") - return errcode.ErrCryptoDecrypt.Wrap(err) + return errcode.ErrCode_ErrCryptoDecrypt.Wrap(err) } // Unmarshal RequesterAuthenticatePayload and RequesterAccountId - err = request.Unmarshal(requestBytes) + err = proto.Unmarshal(requestBytes, &request) if err != nil { - return errcode.ErrDeserialization.Wrap(err) + return errcode.ErrCode_ErrDeserialization.Wrap(err) } hc.peerAccountID, err = p2pcrypto.UnmarshalPublicKey(request.RequesterAccountId) if err != nil { - return errcode.ErrDeserialization.Wrap(err) + return errcode.ErrCode_ErrDeserialization.Wrap(err) } // Verify proof (shared_a_b signed by peer's AccountID) @@ -114,9 +122,9 @@ func (hc *handshakeContext) receiveRequesterAuthenticate() error { request.RequesterAccountSig, ) if err != nil { - return errcode.ErrCryptoSignatureVerification.Wrap(err) + return errcode.ErrCode_ErrCryptoSignatureVerification.Wrap(err) } else if !valid { - return errcode.ErrCryptoSignatureVerification + return errcode.ErrCode_ErrCryptoSignatureVerification } return nil @@ -133,18 +141,18 @@ func (hc *handshakeContext) sendResponderAccept() error { // before marshaling it response.ResponderAccountSig, err = hc.ownAccountID.Sign(hc.sharedEphemeral[:]) if err != nil { - return errcode.ErrCryptoSignature.Wrap(err) + return errcode.ErrCode_ErrCryptoSignature.Wrap(err) } - responseBytes, err := response.Marshal() + responseBytes, err := proto.Marshal(&response) if err != nil { - return errcode.ErrSerialization.Wrap(err) + return errcode.ErrCode_ErrSerialization.Wrap(err) } // Compute box key and seal marshaled ResponderAcceptPayload using // constant nonce (see handshake.go) boxKey, err := hc.computeResponderAcceptBoxKey() if err != nil { - return errcode.ErrHandshakeResponderAcceptBoxKeyGen.Wrap(err) + return errcode.ErrCode_ErrHandshakeResponderAcceptBoxKeyGen.Wrap(err) } boxContent := box.SealAfterPrecomputation( nil, @@ -153,9 +161,14 @@ func (hc *handshakeContext) sendResponderAccept() error { boxKey, ) + boxBytes, err := proto.Marshal(&BoxEnvelope{Box: boxContent}) + if err != nil { + return errcode.ErrCode_ErrSerialization.Wrap(err) + } + // Send BoxEnvelope to requester - if err = hc.writer.WriteMsg(&BoxEnvelope{Box: boxContent}); err != nil { - return errcode.ErrStreamWrite.Wrap(err) + if _, err = hc.writer.Write(boxBytes); err != nil { + return errcode.ErrCode_ErrStreamWrite.Wrap(err) } return nil @@ -166,11 +179,18 @@ func (hc *handshakeContext) receiveRequesterAcknowledge() error { var acknowledge RequesterAcknowledgePayload // Receive Acknowledge from requester - if err := hc.reader.ReadMsg(&acknowledge); err != nil { - return errcode.ErrStreamRead.Wrap(err) + buffer := make([]byte, inet.MessageSizeMax) + n, err := hc.reader.Read(buffer) + if err != nil && err != io.EOF { + return errcode.ErrCode_ErrStreamRead.Wrap(err) + } + + if err := proto.Unmarshal(buffer[:n], &acknowledge); err != nil { + return errcode.ErrCode_ErrDeserialization.Wrap(err) } + if !acknowledge.Success { - return errcode.ErrInvalidInput + return errcode.ErrCode_ErrInvalidInput } return nil diff --git a/internal/sysutil/sysutil.go b/internal/sysutil/sysutil.go index 68a07ae6..64eefee3 100644 --- a/internal/sysutil/sysutil.go +++ b/internal/sysutil/sysutil.go @@ -31,7 +31,7 @@ func SystemInfoProcess() (*protocoltypes.SystemInfo_Process, error) { reply := protocoltypes.SystemInfo_Process{ Nofile: nofile, TooManyOpenFiles: openfiles.IsTooManyError(nofileErr), - NumCPU: int64(runtime.NumCPU()), + NumCpu: int64(runtime.NumCPU()), GoVersion: runtime.Version(), HostName: hn, NumGoroutine: int64(runtime.NumGoroutine()), @@ -39,9 +39,9 @@ func SystemInfoProcess() (*protocoltypes.SystemInfo_Process, error) { Arch: runtime.GOARCH, Version: bertyversion.Version, VcsRef: bertyversion.VcsRef, - PID: int64(syscall.Getpid()), - UID: int64(syscall.Getuid()), - PPID: int64(syscall.Getppid()), + Pid: int64(syscall.Getpid()), + Uid: int64(syscall.Getuid()), + Ppid: int64(syscall.Getppid()), WorkingDir: wd, SystemUsername: username.GetUsername(), } diff --git a/internal/sysutil/sysutil_unix.go b/internal/sysutil/sysutil_unix.go index f6c3b0bc..18ad0afc 100644 --- a/internal/sysutil/sysutil_unix.go +++ b/internal/sysutil/sysutil_unix.go @@ -25,8 +25,8 @@ func appendCustomSystemInfo(reply *protocoltypes.SystemInfo_Process) error { rusage := syscall.Rusage{} err = syscall.Getrusage(syscall.RUSAGE_SELF, &rusage) errs = multierr.Append(errs, err) - reply.UserCPUTimeMS = int64(rusage.Utime.Sec*1000) + int64(rusage.Utime.Usec/1000) // nolint:unconvert // on some archs, those vars may be int32 instead of int64 - reply.SystemCPUTimeMS = int64(rusage.Stime.Sec*1000) + int64(rusage.Stime.Usec/1000) // nolint:unconvert // on some archs, those vars may be int32 instead of int64 + reply.UserCpuTimeMs = int64(rusage.Utime.Sec*1000) + int64(rusage.Utime.Usec/1000) // nolint:unconvert // on some archs, those vars may be int32 instead of int64 + reply.SystemCpuTimeMs = int64(rusage.Stime.Sec*1000) + int64(rusage.Stime.Usec/1000) // nolint:unconvert // on some archs, those vars may be int32 instead of int64 // process priority prio, err := syscall.Getpriority(syscall.PRIO_PROCESS, 0) diff --git a/internal/tools/tools.go b/internal/tools/tools.go index b7d06115..8b89909b 100644 --- a/internal/tools/tools.go +++ b/internal/tools/tools.go @@ -12,8 +12,6 @@ import ( // required by Makefile _ "github.com/daixiang0/gci" // required by protoc - _ "github.com/gogo/protobuf/types" - // required by protoc _ "github.com/golang/protobuf/proto" // required by protoc _ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway" diff --git a/message_marshaler.go b/message_marshaler.go index 783ba121..8edd7761 100644 --- a/message_marshaler.go +++ b/message_marshaler.go @@ -5,9 +5,9 @@ import ( "fmt" "sync" - "github.com/gogo/protobuf/proto" "github.com/libp2p/go-libp2p/core/crypto" peer "github.com/libp2p/go-libp2p/core/peer" + "google.golang.org/protobuf/proto" "berty.tech/go-ipfs-log/enc" "berty.tech/go-ipfs-log/entry" @@ -114,8 +114,8 @@ func (m *OrbitDBMessageMarshaler) Marshal(msg *iface.MessageExchangeHeads) ([]by box := &protocoltypes.OrbitDBMessageHeads_Box{ Address: msg.Address, Heads: heads, - DevicePK: ownPK, - PeerID: pid, + DevicePk: ownPK, + PeerId: pid, } sealedBox, err := m.sealBox(msg.Address, box) @@ -168,13 +168,13 @@ func (m *OrbitDBMessageMarshaler) Unmarshal(payload []byte, msg *iface.MessageEx msg.Address = box.Address msg.Heads = entries - if box.DevicePK == nil { + if box.DevicePk == nil { // @NOTE(gfanton): this is probably a message from a replication server // which should not have a DevicePK return nil } - pid, err := peer.IDFromBytes(box.PeerID) + pid, err := peer.IDFromBytes(box.PeerId) if err != nil { return fmt.Errorf("unable to parse peer id: %w", err) } @@ -182,7 +182,7 @@ func (m *OrbitDBMessageMarshaler) Unmarshal(payload []byte, msg *iface.MessageEx // store device into cache var pdg PeerDeviceGroup - pub, err := crypto.UnmarshalEd25519PublicKey(box.DevicePK) + pub, err := crypto.UnmarshalEd25519PublicKey(box.DevicePk) if err != nil { return fmt.Errorf("unable to unmarshal remote device pk: %w", err) } diff --git a/orbitdb.go b/orbitdb.go index f6282a3a..ff72aadb 100644 --- a/orbitdb.go +++ b/orbitdb.go @@ -128,15 +128,15 @@ func (s *WeshOrbitDB) registerGroupPrivateKey(g *protocoltypes.Group) error { gSigSK, err := g.GetSigningPrivKey() if err != nil { - return errcode.TODO.Wrap(err) + return errcode.ErrCode_TODO.Wrap(err) } if err := s.SetGroupSigPubKey(groupID, gSigSK.GetPublic()); err != nil { - return errcode.TODO.Wrap(err) + return errcode.ErrCode_TODO.Wrap(err) } if err := s.keyStore.SetKey(gSigSK); err != nil { - return errcode.TODO.Wrap(err) + return errcode.ErrCode_TODO.Wrap(err) } return nil @@ -153,12 +153,12 @@ func (s *WeshOrbitDB) registerGroupSigningPubKey(g *protocoltypes.Group) error { } else { gSigPK, err = g.GetSigningPubKey() if err != nil { - return errcode.TODO.Wrap(err) + return errcode.ErrCode_TODO.Wrap(err) } } if err := s.SetGroupSigPubKey(groupID, gSigPK); err != nil { - return errcode.TODO.Wrap(err) + return errcode.ErrCode_TODO.Wrap(err) } return nil @@ -191,7 +191,7 @@ func NewWeshOrbitDB(ctx context.Context, ipfs coreiface.CoreAPI, options *NewOrb orbitDB, err := baseorbitdb.NewOrbitDB(ctx, ipfs, &options.NewOrbitDBOptions) if err != nil { - return nil, errcode.TODO.Wrap(err) + return nil, errcode.ErrCode_TODO.Wrap(err) } bertyDB := &WeshOrbitDB{ @@ -212,7 +212,7 @@ func NewWeshOrbitDB(ctx context.Context, ipfs coreiface.CoreAPI, options *NewOrb } if err := bertyDB.RegisterAccessControllerType(NewSimpleAccessController); err != nil { - return nil, errcode.TODO.Wrap(err) + return nil, errcode.ErrCode_TODO.Wrap(err) } bertyDB.RegisterStoreType(bertyDB.groupMetadataStoreType, constructorFactoryGroupMetadata(bertyDB, options.Logger)) bertyDB.RegisterStoreType(bertyDB.groupMessageStoreType, constructorFactoryGroupMessage(bertyDB, options.Logger)) @@ -233,21 +233,21 @@ func (s *WeshOrbitDB) openAccountGroup(ctx context.Context, options *orbitdb.Cre group, _, err := s.secretStore.GetGroupForAccount() if err != nil { - return nil, errcode.ErrOrbitDBOpen.Wrap(err) + return nil, errcode.ErrCode_ErrOrbitDBOpen.Wrap(err) } l.Debug("Got account group", tyber.FormatStepLogFields(ctx, []tyber.Detail{{Name: "Group", Description: group.String()}})...) gc, err := s.OpenGroup(ctx, group, options) if err != nil { - return nil, errcode.ErrGroupOpen.Wrap(err) + return nil, errcode.ErrCode_ErrGroupOpen.Wrap(err) } l.Debug("Opened account group", tyber.FormatStepLogFields(ctx, []tyber.Detail{})...) gc.TagGroupContextPeers(ipfsCoreAPI, 84) if err := gc.ActivateGroupContext(nil); err != nil { - return nil, errcode.TODO.Wrap(err) + return nil, errcode.ErrCode_TODO.Wrap(err) } l.Debug("TagGroupContextPeers done", tyber.FormatStepLogFields(ctx, []tyber.Detail{})...) return gc, nil @@ -262,8 +262,8 @@ func (s *WeshOrbitDB) setHeadsForGroup(ctx context.Context, g *protocoltypes.Gro ) existingGC, err := s.getGroupContext(groupID) - if err != nil && !errcode.Is(err, errcode.ErrMissingMapKey) { - return errcode.ErrInternal.Wrap(err) + if err != nil && !errcode.Is(err, errcode.ErrCode_ErrMissingMapKey) { + return errcode.ErrCode_ErrInternal.Wrap(err) } if err == nil { metaImpl = existingGC.metadataStore @@ -273,7 +273,7 @@ func (s *WeshOrbitDB) setHeadsForGroup(ctx context.Context, g *protocoltypes.Gro s.groups.Store(groupID, g) if err := s.registerGroupSigningPubKey(g); err != nil { - return errcode.ErrInternal.Wrap(err) + return errcode.ErrCode_ErrInternal.Wrap(err) } s.Logger().Debug("OpenGroup", zap.Any("public key", g.PublicKey), zap.Any("secret", g.Secret), zap.Stringer("type", g.GroupType)) @@ -281,7 +281,7 @@ func (s *WeshOrbitDB) setHeadsForGroup(ctx context.Context, g *protocoltypes.Gro if metaImpl == nil { metaImpl, err = s.storeForGroup(ctx, s, g, nil, s.groupMetadataStoreType, GroupOpenModeReplicate) if err != nil { - return errcode.ErrOrbitDBOpen.Wrap(err) + return errcode.ErrCode_ErrOrbitDBOpen.Wrap(err) } defer func() { _ = metaImpl.Close() }() @@ -290,7 +290,7 @@ func (s *WeshOrbitDB) setHeadsForGroup(ctx context.Context, g *protocoltypes.Gro if messagesImpl == nil { messagesImpl, err = s.storeForGroup(ctx, s, g, nil, s.groupMessageStoreType, GroupOpenModeReplicate) if err != nil { - return errcode.ErrOrbitDBOpen.Wrap(err) + return errcode.ErrCode_ErrOrbitDBOpen.Wrap(err) } defer func() { _ = messagesImpl.Close() }() @@ -298,11 +298,11 @@ func (s *WeshOrbitDB) setHeadsForGroup(ctx context.Context, g *protocoltypes.Gro } if messagesImpl == nil { - return errcode.ErrInternal.Wrap(fmt.Errorf("message store is nil")) + return errcode.ErrCode_ErrInternal.Wrap(fmt.Errorf("message store is nil")) } if metaImpl == nil { - return errcode.ErrInternal.Wrap(fmt.Errorf("metadata store is nil")) + return errcode.ErrCode_ErrInternal.Wrap(fmt.Errorf("metadata store is nil")) } var wg sync.WaitGroup @@ -381,14 +381,14 @@ func (s *WeshOrbitDB) loadHeads(ctx context.Context, store iface.Store, heads [] func (s *WeshOrbitDB) OpenGroup(ctx context.Context, g *protocoltypes.Group, options *orbitdb.CreateDBOptions) (*GroupContext, error) { if s.secretStore == nil { - return nil, errcode.ErrInvalidInput.Wrap(fmt.Errorf("db open in naive mode")) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("db open in naive mode")) } groupID := g.GroupIDAsString() existingGC, err := s.getGroupContext(groupID) - if err != nil && !errcode.Is(err, errcode.ErrMissingMapKey) { - return nil, errcode.ErrInternal.Wrap(err) + if err != nil && !errcode.Is(err, errcode.ErrCode_ErrMissingMapKey) { + return nil, errcode.ErrCode_ErrInternal.Wrap(err) } if err == nil { return existingGC, nil @@ -404,7 +404,7 @@ func (s *WeshOrbitDB) OpenGroup(ctx context.Context, g *protocoltypes.Group, opt memberDevice, err := s.secretStore.GetOwnMemberDeviceForGroup(g) if err != nil { - return nil, errcode.ErrCryptoKeyGeneration.Wrap(err) + return nil, errcode.ErrCode_ErrCryptoKeyGeneration.Wrap(err) } mpkb, err := crypto.MarshalPublicKey(memberDevice.Member()) @@ -415,14 +415,14 @@ func (s *WeshOrbitDB) OpenGroup(ctx context.Context, g *protocoltypes.Group, opt // Force secret generation if missing if _, err := s.secretStore.GetShareableChainKey(s.ctx, g, memberDevice.Member()); err != nil { - return nil, errcode.ErrCryptoKeyGeneration.Wrap(err) + return nil, errcode.ErrCode_ErrCryptoKeyGeneration.Wrap(err) } s.Logger().Debug("Got device chain key", tyber.FormatStepLogFields(s.ctx, []tyber.Detail{})...) metaImpl, err := s.groupMetadataStore(ctx, g, options) if err != nil { - return nil, errcode.ErrOrbitDBOpen.Wrap(err) + return nil, errcode.ErrCode_ErrOrbitDBOpen.Wrap(err) } s.messageMarshaler.RegisterGroup(metaImpl.Address().String(), g) @@ -438,7 +438,7 @@ func (s *WeshOrbitDB) OpenGroup(ctx context.Context, g *protocoltypes.Group, opt messagesImpl, err := s.groupMessageStore(ctx, g, options) if err != nil { metaImpl.Close() - return nil, errcode.ErrOrbitDBOpen.Wrap(err) + return nil, errcode.ErrCode_ErrOrbitDBOpen.Wrap(err) } s.messageMarshaler.RegisterGroup(messagesImpl.Address().String(), g) @@ -457,14 +457,14 @@ func (s *WeshOrbitDB) OpenGroup(ctx context.Context, g *protocoltypes.Group, opt func (s *WeshOrbitDB) OpenGroupReplication(ctx context.Context, g *protocoltypes.Group, options *orbitdb.CreateDBOptions) (iface.Store, iface.Store, error) { if g == nil || len(g.PublicKey) == 0 { - return nil, nil, errcode.ErrInvalidInput.Wrap(fmt.Errorf("missing group or group pubkey")) + return nil, nil, errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("missing group or group pubkey")) } groupID := g.GroupIDAsString() gc, err := s.getGroupContext(groupID) - if err != nil && !errcode.Is(err, errcode.ErrMissingMapKey) { - return nil, nil, errcode.ErrInternal.Wrap(err) + if err != nil && !errcode.Is(err, errcode.ErrCode_ErrMissingMapKey) { + return nil, nil, errcode.ErrCode_ErrInternal.Wrap(err) } if err == nil { return gc.metadataStore, gc.messageStore, nil @@ -493,7 +493,7 @@ func (s *WeshOrbitDB) OpenGroupReplication(ctx context.Context, g *protocoltypes func (s *WeshOrbitDB) getGroupContext(id string) (*GroupContext, error) { g, ok := s.groupContexts.Load(id) if !ok { - return nil, errcode.ErrMissingMapKey + return nil, errcode.ErrCode_ErrMissingMapKey } gc, ok := g.(*GroupContext) @@ -504,7 +504,7 @@ func (s *WeshOrbitDB) getGroupContext(id string) (*GroupContext, error) { if gc.IsClosed() { s.groupContexts.Delete(id) - return nil, errcode.ErrMissingMapKey + return nil, errcode.ErrCode_ErrMissingMapKey } return g.(*GroupContext), nil @@ -514,7 +514,7 @@ func (s *WeshOrbitDB) getGroupContext(id string) (*GroupContext, error) { // replicate a store data without needing to access to its content func (s *WeshOrbitDB) SetGroupSigPubKey(groupID string, pubKey crypto.PubKey) error { if pubKey == nil { - return errcode.ErrInvalidInput + return errcode.ErrCode_ErrInvalidInput } s.groupsSigPubKey.Store(groupID, pubKey) @@ -574,7 +574,7 @@ func (s *WeshOrbitDB) storeForGroup(ctx context.Context, o iface.BaseOrbitDB, g store, err := o.Open(ctx, name, options) if err != nil { - return nil, errcode.ErrOrbitDBOpen.Wrap(err) + return nil, errcode.ErrCode_ErrOrbitDBOpen.Wrap(err) } l.Debug("Loading store", tyber.FormatStepLogFields(ctx, []tyber.Detail{{Name: "Group", Description: g.String()}, {Name: "StoreType", Description: store.Type()}, {Name: "Store", Description: store.Address().String()}}, tyber.Status(tyber.Running))...) @@ -639,21 +639,21 @@ func (s *WeshOrbitDB) groupMessageStore(ctx context.Context, g *protocoltypes.Gr func (s *WeshOrbitDB) getGroupFromOptions(options *iface.NewStoreOptions) (*protocoltypes.Group, error) { groupIDs, err := options.AccessController.GetAuthorizedByRole(identityGroupIDKey) if err != nil { - return nil, errcode.TODO.Wrap(err) + return nil, errcode.ErrCode_TODO.Wrap(err) } if len(groupIDs) != 1 { - return nil, errcode.ErrInvalidInput + return nil, errcode.ErrCode_ErrInvalidInput } g, ok := s.groups.Load(groupIDs[0]) if !ok { - return nil, errcode.ErrInvalidInput + return nil, errcode.ErrCode_ErrInvalidInput } typed, ok := g.(*protocoltypes.Group) if !ok { - return nil, errcode.ErrInvalidInput + return nil, errcode.ErrCode_ErrInvalidInput } return typed, nil diff --git a/orbitdb_signed_entry_accesscontroller.go b/orbitdb_signed_entry_accesscontroller.go index baef744a..08a3a70b 100644 --- a/orbitdb_signed_entry_accesscontroller.go +++ b/orbitdb_signed_entry_accesscontroller.go @@ -52,7 +52,7 @@ func (o *simpleAccessController) Load(ctx context.Context, address string) error func simpleAccessControllerCID(allowedKeys map[string][]string) (cid.Cid, error) { d, err := json.Marshal(allowedKeys) if err != nil { - return cid.Undef, errcode.ErrInvalidInput.Wrap(err) + return cid.Undef, errcode.ErrCode_ErrInvalidInput.Wrap(err) } c, err := cid.Prefix{ @@ -62,7 +62,7 @@ func simpleAccessControllerCID(allowedKeys map[string][]string) (cid.Cid, error) MhLength: -1, }.Sum(d) if err != nil { - return cid.Undef, errcode.ErrInvalidInput.Wrap(err) + return cid.Undef, errcode.ErrCode_ErrInvalidInput.Wrap(err) } return c, nil @@ -71,7 +71,7 @@ func simpleAccessControllerCID(allowedKeys map[string][]string) (cid.Cid, error) func (o *simpleAccessController) Save(ctx context.Context) (accesscontroller.ManifestParams, error) { c, err := simpleAccessControllerCID(o.allowedKeys) if err != nil { - return nil, errcode.ErrInvalidInput.Wrap(err) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(err) } return accesscontroller.NewManifestParams(c, true, "simple"), nil diff --git a/orbitdb_signed_entry_identity_provider.go b/orbitdb_signed_entry_identity_provider.go index abdbef31..ad0cd10c 100644 --- a/orbitdb_signed_entry_identity_provider.go +++ b/orbitdb_signed_entry_identity_provider.go @@ -42,12 +42,12 @@ func (b *bertySignedIdentityProvider) VerifyIdentity(identity *identityprovider. func (b *bertySignedIdentityProvider) Sign(ctx context.Context, identity *identityprovider.Identity, bytes []byte) ([]byte, error) { key, err := b.keyStore.GetKey(ctx, identity.ID) if err != nil { - return nil, errcode.TODO.Wrap(err) + return nil, errcode.ErrCode_TODO.Wrap(err) } sig, err := key.Sign(bytes) if err != nil { - return nil, errcode.TODO.Wrap(err) + return nil, errcode.ErrCode_TODO.Wrap(err) } return sig, nil diff --git a/orbitdb_signed_entry_keystore.go b/orbitdb_signed_entry_keystore.go index bb5cb193..b6855a6c 100644 --- a/orbitdb_signed_entry_keystore.go +++ b/orbitdb_signed_entry_keystore.go @@ -18,7 +18,7 @@ type BertySignedKeyStore struct { func (s *BertySignedKeyStore) SetKey(pk crypto.PrivKey) error { pubKeyBytes, err := pk.GetPublic().Raw() if err != nil { - return errcode.TODO.Wrap(err) + return errcode.ErrCode_TODO.Wrap(err) } keyID := hex.EncodeToString(pubKeyBytes) @@ -45,7 +45,7 @@ func (s *BertySignedKeyStore) GetKey(ctx context.Context, id string) (crypto.Pri } } - return nil, errcode.ErrGroupMemberUnknownGroupID + return nil, errcode.ErrCode_ErrGroupMemberUnknownGroupID } func (s *BertySignedKeyStore) Sign(privKey crypto.PrivKey, bytes []byte) ([]byte, error) { @@ -59,7 +59,7 @@ func (s *BertySignedKeyStore) Verify(signature []byte, publicKey crypto.PubKey, } if !ok { - return errcode.ErrGroupMemberLogEventSignature + return errcode.ErrCode_ErrGroupMemberLogEventSignature } return nil diff --git a/orbitdb_utils_test.go b/orbitdb_utils_test.go index 2c5a07a8..1c58e8ab 100644 --- a/orbitdb_utils_test.go +++ b/orbitdb_utils_test.go @@ -7,6 +7,7 @@ import ( "github.com/libp2p/go-libp2p/core/crypto" "github.com/stretchr/testify/require" + "google.golang.org/protobuf/proto" "berty.tech/weshnet/pkg/protocoltypes" ) @@ -30,12 +31,12 @@ func inviteAllPeersToGroup(ctx context.Context, t *testing.T, peers []*mockedPee for e := range sub.Out() { evt := e.(protocoltypes.GroupMetadataEvent) - if evt.Metadata.EventType != protocoltypes.EventTypeGroupMemberDeviceAdded { + if evt.Metadata.EventType != protocoltypes.EventType_EventTypeGroupMemberDeviceAdded { continue } memdev := &protocoltypes.GroupMemberDeviceAdded{} - if err := memdev.Unmarshal(evt.Event); err != nil { + if err := proto.Unmarshal(evt.Event, memdev); err != nil { errChan <- err return } @@ -94,7 +95,7 @@ func waitForBertyEventType(ctx context.Context, t *testing.T, ms *MetadataStore, continue } - eID := string(evt.EventContext.ID) + eID := string(evt.EventContext.Id) if _, ok := handledEvents[eID]; ok { continue @@ -103,7 +104,7 @@ func waitForBertyEventType(ctx context.Context, t *testing.T, ms *MetadataStore, handledEvents[eID] = struct{}{} e := &protocoltypes.GroupDeviceChainKeyAdded{} - if err := e.Unmarshal(evt.Event); err != nil { + if err := proto.Unmarshal(evt.Event, e); err != nil { t.Fatalf(" err: %+v\n", err.Error()) } diff --git a/outofstoremessage_test.go b/outofstoremessage_test.go index bd6f458d..2e71401e 100644 --- a/outofstoremessage_test.go +++ b/outofstoremessage_test.go @@ -7,6 +7,7 @@ import ( "github.com/ipfs/go-cid" "github.com/stretchr/testify/require" + "google.golang.org/protobuf/proto" "berty.tech/weshnet/pkg/protocoltypes" "berty.tech/weshnet/pkg/secretstore" @@ -34,7 +35,7 @@ func Test_sealPushMessage_OutOfStoreReceive(t *testing.T) { gPKRaw, err := gPK.Raw() require.NoError(t, err) - _, err = s.ActivateGroup(ctx, &protocoltypes.ActivateGroup_Request{GroupPK: gPKRaw}) + _, err = s.ActivateGroup(ctx, &protocoltypes.ActivateGroup_Request{GroupPk: gPKRaw}) require.NoError(t, err) gc, err := s.(ServiceMethods).GetContextGroupForID(g.PublicKey) @@ -53,7 +54,7 @@ func Test_sealPushMessage_OutOfStoreReceive(t *testing.T) { oosMsgEnv, err := otherSecretStore.SealOutOfStoreMessageEnvelope(cid.Undef, env, headers, g) require.NoError(t, err) - oosMsgEnvBytes, err := oosMsgEnv.Marshal() + oosMsgEnvBytes, err := proto.Marshal(oosMsgEnv) require.NoError(t, err) outOfStoreMessage, group, clearPayload, alreadyDecrypted, err := gc.SecretStore().OpenOutOfStoreMessage(ctx, oosMsgEnvBytes) @@ -64,7 +65,7 @@ func Test_sealPushMessage_OutOfStoreReceive(t *testing.T) { require.False(t, alreadyDecrypted) require.Equal(t, headers.Counter, outOfStoreMessage.Counter) - require.Equal(t, headers.DevicePK, outOfStoreMessage.DevicePK) + require.Equal(t, headers.DevicePk, outOfStoreMessage.DevicePk) require.Equal(t, headers.Sig, outOfStoreMessage.Sig) require.Equal(t, env.Message, outOfStoreMessage.EncryptedPayload) } @@ -95,12 +96,12 @@ func Test_OutOfStoreMessageFlow(t *testing.T) { gPKRaw, err := gPK.Raw() require.NoError(t, err) - _, err = s.ActivateGroup(ctx, &protocoltypes.ActivateGroup_Request{GroupPK: gPKRaw}) + _, err = s.ActivateGroup(ctx, &protocoltypes.ActivateGroup_Request{GroupPk: gPKRaw}) require.NoError(t, err) // send a message sendReply, err := s.AppMessageSend(ctx, &protocoltypes.AppMessageSend_Request{ - GroupPK: gPKRaw, + GroupPk: gPKRaw, Payload: message, }) require.NoError(t, err) @@ -109,7 +110,7 @@ func Test_OutOfStoreMessageFlow(t *testing.T) { // craft an out of store message craftReply, err := s.OutOfStoreSeal(ctx, &protocoltypes.OutOfStoreSeal_Request{ - CID: sendReply.CID, + Cid: sendReply.Cid, GroupPublicKey: gPKRaw, }) require.NoError(t, err) @@ -120,8 +121,8 @@ func Test_OutOfStoreMessageFlow(t *testing.T) { }) require.NoError(t, err) - encryptedMessage := protocoltypes.EncryptedMessage{} - err = encryptedMessage.Unmarshal(openReply.Cleartext) + encryptedMessage := &protocoltypes.EncryptedMessage{} + err = proto.Unmarshal(openReply.Cleartext, encryptedMessage) require.NoError(t, err) require.Equal(t, message, encryptedMessage.Plaintext) diff --git a/pkg/bertyvcissuer/client.go b/pkg/bertyvcissuer/client.go index 0e0f7c71..2cd31c17 100644 --- a/pkg/bertyvcissuer/client.go +++ b/pkg/bertyvcissuer/client.go @@ -43,39 +43,39 @@ func (c *Client) Init(ctx context.Context, bertyURL string, accountPriv crypto.S req, err := http.NewRequestWithContext(ctx, http.MethodGet, fmt.Sprintf("%s/%s?%s=%s&%s=%s&%s=%s", c.serverRoot, PathChallenge, ParamBertyID, url.QueryEscape(bertyURL), ParamRedirectURI, url.QueryEscape(c.redirectURI), ParamState, url.QueryEscape(c.state)), nil) if err != nil { - return "", errcode.ErrInternal.Wrap(err) + return "", errcode.ErrCode_ErrInternal.Wrap(err) } res, err := c.httpClient.Do(req) if err != nil { - return "", errcode.ErrStreamRead.Wrap(err) + return "", errcode.ErrCode_ErrStreamRead.Wrap(err) } resBytes, err := io.ReadAll(res.Body) if err != nil { - return "", errcode.ErrStreamRead.Wrap(err) + return "", errcode.ErrCode_ErrStreamRead.Wrap(err) } _ = res.Body.Close() if res.StatusCode != http.StatusOK { - return "", errcode.ErrInternal.Wrap(fmt.Errorf(string(resBytes))) + return "", errcode.ErrCode_ErrInternal.Wrap(fmt.Errorf(string(resBytes))) } challengeStruct := &verifiablecredstypes.AccountCryptoChallenge{} err = json.Unmarshal(resBytes, challengeStruct) if err != nil { - return "", errcode.ErrDeserialization.Wrap(err) + return "", errcode.ErrCode_ErrDeserialization.Wrap(err) } challenge, err := base64.URLEncoding.DecodeString(challengeStruct.Challenge) if err != nil { - return "", errcode.ErrDeserialization.Wrap(err) + return "", errcode.ErrCode_ErrDeserialization.Wrap(err) } challengeSig, err := accountPriv.Sign(crand.Reader, challenge, crypto.Hash(0)) if err != nil { - return "", errcode.ErrCryptoSignature.Wrap(err) + return "", errcode.ErrCode_ErrCryptoSignature.Wrap(err) } return fmt.Sprintf("%s/%s?&%s=%s&%s=%s", c.serverRoot, PathAuthenticate, ParamChallenge, challengeStruct.Challenge, ParamChallengeSig, base64.URLEncoding.EncodeToString(challengeSig)), nil @@ -84,21 +84,21 @@ func (c *Client) Init(ctx context.Context, bertyURL string, accountPriv crypto.S func (c *Client) Complete(uri string) (string, string, *verifiable.Credential, error) { parsedURI, err := url.Parse(uri) if err != nil { - return "", "", nil, errcode.ErrInvalidInput.Wrap(err) + return "", "", nil, errcode.ErrCode_ErrInvalidInput.Wrap(err) } if parsedURI.Query().Get(ParamState) != c.state { - return "", "", nil, errcode.ErrInvalidInput.Wrap(fmt.Errorf("unexpected state value")) + return "", "", nil, errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("unexpected state value")) } credentialsStr := parsedURI.Query().Get(ParamCredentials) if len(credentialsStr) == 0 { - return "", "", nil, errcode.ErrInvalidInput.Wrap(fmt.Errorf("missing credentials value")) + return "", "", nil, errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("missing credentials value")) } credentials, err := base64.StdEncoding.DecodeString(credentialsStr) if err != nil { - return "", "", nil, errcode.ErrDeserialization.Wrap(err) + return "", "", nil, errcode.ErrCode_ErrDeserialization.Wrap(err) } parsedCredential, err := verifiable.ParseCredential( @@ -107,16 +107,16 @@ func (c *Client) Complete(uri string) (string, string, *verifiable.Credential, e verifiable.WithJSONLDDocumentLoader(ld.NewDefaultDocumentLoader(http.DefaultClient)), ) if err != nil { - return "", "", nil, errcode.ErrDeserialization.Wrap(err) + return "", "", nil, errcode.ErrCode_ErrDeserialization.Wrap(err) } if c.bertyURL != parsedCredential.ID { - return "", "", nil, errcode.ErrInvalidInput.Wrap(fmt.Errorf("credential is not delivered for the current berty url (%s != %s)", c.bertyURL, parsedCredential.ID)) + return "", "", nil, errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("credential is not delivered for the current berty url (%s != %s)", c.bertyURL, parsedCredential.ID)) } identifier, err := ExtractSubjectFromVC(parsedCredential) if err != nil { - return "", "", nil, errcode.ErrInvalidInput.Wrap(err) + return "", "", nil, errcode.ErrCode_ErrInvalidInput.Wrap(err) } return string(credentials), identifier, parsedCredential, nil @@ -124,12 +124,12 @@ func (c *Client) Complete(uri string) (string, string, *verifiable.Credential, e func ExtractSubjectFromVC(credential *verifiable.Credential) (string, error) { if credential.Subject == nil { - return "", errcode.ErrNotFound + return "", errcode.ErrCode_ErrNotFound } if subjectList, ok := credential.Subject.([]verifiable.Subject); ok { if len(subjectList) == 0 { - return "", errcode.ErrNotFound + return "", errcode.ErrCode_ErrNotFound } return subjectList[0].ID, nil @@ -137,5 +137,5 @@ func ExtractSubjectFromVC(credential *verifiable.Credential) (string, error) { return subject, nil } - return "", errcode.ErrNotFound + return "", errcode.ErrCode_ErrNotFound } diff --git a/pkg/bertyvcissuer/verifiable_public_key_fetcher.go b/pkg/bertyvcissuer/verifiable_public_key_fetcher.go index b853e07d..ad4d5d11 100644 --- a/pkg/bertyvcissuer/verifiable_public_key_fetcher.go +++ b/pkg/bertyvcissuer/verifiable_public_key_fetcher.go @@ -27,7 +27,7 @@ func embeddedPublicKeyFetcher(issuerID string, allowList []string) (*verifier.Pu } if !found { - return nil, errcode.ErrServicesDirectoryInvalidVerifiedCredentialID.Wrap(fmt.Errorf("issuer is not allowed")) + return nil, errcode.ErrCode_ErrServicesDirectoryInvalidVerifiedCredentialID.Wrap(fmt.Errorf("issuer is not allowed")) } } @@ -37,7 +37,7 @@ func embeddedPublicKeyFetcher(issuerID string, allowList []string) (*verifier.Pu } if len(rawData) != ed25519.PublicKeySize+2 { - return nil, errcode.ErrInvalidInput + return nil, errcode.ErrCode_ErrInvalidInput } return &verifier.PublicKey{ diff --git a/pkg/cryptoutil/cryptoutil.go b/pkg/cryptoutil/cryptoutil.go index 79b3736c..44e46caf 100644 --- a/pkg/cryptoutil/cryptoutil.go +++ b/pkg/cryptoutil/cryptoutil.go @@ -45,7 +45,7 @@ func GenerateNonce() (*[NonceSize]byte, error) { err = fmt.Errorf("size read: %d (required %d)", size, NonceSize) } if err != nil { - return nil, errcode.ErrCryptoRandomGeneration.Wrap(err) + return nil, errcode.ErrCode_ErrCryptoRandomGeneration.Wrap(err) } return &nonce, nil @@ -59,7 +59,7 @@ func GenerateNonceSize(size int) ([]byte, error) { err = fmt.Errorf("size read: %d (required %d)", readSize, size) } if err != nil { - return nil, errcode.ErrCryptoRandomGeneration.Wrap(err) + return nil, errcode.ErrCode_ErrCryptoRandomGeneration.Wrap(err) } return nonce, nil @@ -69,7 +69,7 @@ func NonceSliceToArray(nonceSlice []byte) (*[NonceSize]byte, error) { var nonceArray [NonceSize]byte if l := len(nonceSlice); l != NonceSize { - return nil, errcode.ErrInvalidInput.Wrap(fmt.Errorf("invalid nonce size, expected %d bytes, got %d", NonceSize, l)) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("invalid nonce size, expected %d bytes, got %d", NonceSize, l)) } copy(nonceArray[:], nonceSlice) @@ -80,7 +80,7 @@ func KeySliceToArray(keySlice []byte) (*[KeySize]byte, error) { var keyArray [KeySize]byte if l := len(keySlice); l != KeySize { - return nil, errcode.ErrInvalidInput.Wrap(fmt.Errorf("unable to convert slice to array, unexpected slice size: %d (expected %d)", l, KeySize)) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("unable to convert slice to array, unexpected slice size: %d (expected %d)", l, KeySize)) } copy(keyArray[:], keySlice) @@ -90,16 +90,16 @@ func KeySliceToArray(keySlice []byte) (*[KeySize]byte, error) { func SeedFromEd25519PrivateKey(key crypto.PrivKey) ([]byte, error) { // Similar to (*ed25519).Seed() if key.Type() != pb.KeyType_Ed25519 { - return nil, errcode.ErrInvalidInput + return nil, errcode.ErrCode_ErrInvalidInput } r, err := key.Raw() if err != nil { - return nil, errcode.ErrSerialization.Wrap(err) + return nil, errcode.ErrCode_ErrSerialization.Wrap(err) } if len(r) != ed25519.PrivateKeySize { - return nil, errcode.ErrInvalidInput + return nil, errcode.ErrCode_ErrInvalidInput } return r[:ed25519.PrivateKeySize-ed25519.PublicKeySize], nil @@ -125,7 +125,7 @@ func EdwardsToMontgomeryPub(pubKey crypto.PubKey) (*[KeySize]byte, error) { var mongPub [KeySize]byte if pubKey.Type() != pb.KeyType_Ed25519 { - return nil, errcode.ErrInvalidInput + return nil, errcode.ErrCode_ErrInvalidInput } rawPublicKey, err := pubKey.Raw() @@ -148,14 +148,14 @@ func EdwardsToMontgomeryPriv(privKey crypto.PrivKey) (*[KeySize]byte, error) { var mongPriv [KeySize]byte if privKey.Type() != pb.KeyType_Ed25519 { - return nil, errcode.ErrInvalidInput + return nil, errcode.ErrCode_ErrInvalidInput } rawPrivateKey, err := privKey.Raw() if err != nil { - return nil, errcode.ErrSerialization.Wrap(err) + return nil, errcode.ErrCode_ErrSerialization.Wrap(err) } else if len(rawPrivateKey) != ed25519.PrivateKeySize { - return nil, errcode.ErrInvalidInput + return nil, errcode.ErrCode_ErrInvalidInput } PrivateKeyToCurve25519(&mongPriv, rawPrivateKey) @@ -212,7 +212,7 @@ func AESGCMDecrypt(key, data []byte) ([]byte, error) { // AESCTRStream returns a CTR stream that can be used to produce ciphertext without padding. func AESCTRStream(key, iv []byte) (cipher.Stream, error) { if key == nil || iv == nil { - return nil, errcode.ErrInvalidInput + return nil, errcode.ErrCode_ErrInvalidInput } blockCipher, err := aes.NewCipher(key) diff --git a/pkg/cryptoutil/cryptoutil_test.go b/pkg/cryptoutil/cryptoutil_test.go index d365e05b..66274bac 100644 --- a/pkg/cryptoutil/cryptoutil_test.go +++ b/pkg/cryptoutil/cryptoutil_test.go @@ -33,7 +33,7 @@ func TestCurve25519Conversion(t *testing.T) { func TestSeedFromEd25519PrivateKey(t *testing.T) { priv, _, _ := crypto.GenerateECDSAKeyPair(rand.Reader) _, err := SeedFromEd25519PrivateKey(priv) - if err != errcode.ErrInvalidInput { + if err != errcode.ErrCode_ErrInvalidInput { t.Error("Should fail with ErrInvalidInput") } priv, _, _ = crypto.GenerateEd25519Key(rand.Reader) @@ -51,7 +51,7 @@ func TestEdwardsToMontgomeryPub(t *testing.T) { } _, pub, _ = crypto.GenerateECDSAKeyPair(rand.Reader) _, err = EdwardsToMontgomeryPub(pub) - if err != errcode.ErrInvalidInput { + if err != errcode.ErrCode_ErrInvalidInput { t.Error("Should fail with ErrInvalidInput") } } @@ -64,7 +64,7 @@ func TestEdwardsToMontgomeryPriv(t *testing.T) { } priv, _, _ = crypto.GenerateECDSAKeyPair(rand.Reader) _, err = EdwardsToMontgomeryPriv(priv) - if err != errcode.ErrInvalidInput { + if err != errcode.ErrCode_ErrInvalidInput { t.Error("Should fail with ErrInvalidInput") } } diff --git a/pkg/errcode/error_test.go b/pkg/errcode/error_test.go index 98a7f6d2..39fdafff 100644 --- a/pkg/errcode/error_test.go +++ b/pkg/errcode/error_test.go @@ -18,9 +18,9 @@ var ( func TestError(t *testing.T) { // test instance var ( - _ ErrCode = ErrNotImplemented - _ error = ErrNotImplemented - _ WithCode = ErrNotImplemented + _ ErrCode = ErrCode_ErrNotImplemented + _ error = ErrCode_ErrNotImplemented + _ WithCode = ErrCode_ErrNotImplemented ) // table-driven tests @@ -37,17 +37,17 @@ func TestError(t *testing.T) { is777 bool is888 bool }{ - {"ErrInternal", ErrInternal, "ErrInternal(#888)", ErrInternal, 888, 888, []ErrCode{888}, false, true, false, true}, - {"ErrNotImplemented", ErrNotImplemented, "ErrNotImplemented(#777)", ErrNotImplemented, 777, 777, []ErrCode{777}, true, false, true, false}, - {"ErrNotImplemented.Wrap(ErrInternal)", ErrNotImplemented.Wrap(ErrInternal), "ErrNotImplemented(#777): ErrInternal(#888)", ErrInternal, 777, 888, []ErrCode{777, 888}, true, true, true, false}, - {"ErrNotImplemented.Wrap(ErrInternal.Wrap(TODO))", ErrNotImplemented.Wrap(ErrInternal.Wrap(TODO)), "ErrNotImplemented(#777): ErrInternal(#888): TODO(#666)", TODO, 777, 666, []ErrCode{777, 888, 666}, true, true, true, false}, - {"ErrNotImplemented.Wrap(ErrInternal.Wrap(errStdHello))", ErrNotImplemented.Wrap(ErrInternal.Wrap(errStdHello)), "ErrNotImplemented(#777): ErrInternal(#888): hello", errStdHello, 777, 888, []ErrCode{777, 888}, true, true, true, false}, - {"ErrNotImplemented.Wrap(errStdHello)", ErrNotImplemented.Wrap(errStdHello), "ErrNotImplemented(#777): hello", errStdHello, 777, 777, []ErrCode{777}, true, false, true, false}, + {"ErrInternal", ErrCode_ErrInternal, "ErrInternal(#888)", ErrCode_ErrInternal, 888, 888, []ErrCode{888}, false, true, false, true}, + {"ErrNotImplemented", ErrCode_ErrNotImplemented, "ErrNotImplemented(#777)", ErrCode_ErrNotImplemented, 777, 777, []ErrCode{777}, true, false, true, false}, + {"ErrNotImplemented.Wrap(ErrInternal)", ErrCode_ErrNotImplemented.Wrap(ErrCode_ErrInternal), "ErrNotImplemented(#777): ErrInternal(#888)", ErrCode_ErrInternal, 777, 888, []ErrCode{777, 888}, true, true, true, false}, + {"ErrNotImplemented.Wrap(ErrInternal.Wrap(TODO))", ErrCode_ErrNotImplemented.Wrap(ErrCode_ErrInternal.Wrap(ErrCode_TODO)), "ErrNotImplemented(#777): ErrInternal(#888): TODO(#666)", ErrCode_TODO, 777, 666, []ErrCode{777, 888, 666}, true, true, true, false}, + {"ErrNotImplemented.Wrap(ErrInternal.Wrap(errStdHello))", ErrCode_ErrNotImplemented.Wrap(ErrCode_ErrInternal.Wrap(errStdHello)), "ErrNotImplemented(#777): ErrInternal(#888): hello", errStdHello, 777, 888, []ErrCode{777, 888}, true, true, true, false}, + {"ErrNotImplemented.Wrap(errStdHello)", ErrCode_ErrNotImplemented.Wrap(errStdHello), "ErrNotImplemented(#777): hello", errStdHello, 777, 777, []ErrCode{777}, true, false, true, false}, {"errCodeUndef", errCodeUndef, "UNKNOWN_ERRCODE(#65530)", errCodeUndef, 65530, 65530, []ErrCode{65530}, false, false, false, false}, {"errStdHello", errStdHello, "hello", errStdHello, -1, -1, []ErrCode{}, false, false, false, false}, {"nil", nil, "", nil, -1, -1, nil, false, false, false, false}, - {`errors.Wrap(ErrNotImplemented,blah)`, errors.Wrap(ErrNotImplemented, "blah"), "blah: ErrNotImplemented(#777)", ErrNotImplemented, 777, 777, []ErrCode{777}, true, false, false, false}, - {`errors.Wrap(ErrNotImplemented.Wrap(ErrInternal),blah)`, errors.Wrap(ErrNotImplemented.Wrap(ErrInternal), "blah"), "blah: ErrNotImplemented(#777): ErrInternal(#888)", ErrInternal, 777, 888, []ErrCode{777, 888}, true, true, false, false}, + {`errors.Wrap(ErrNotImplemented,blah)`, errors.Wrap(ErrCode_ErrNotImplemented, "blah"), "blah: ErrNotImplemented(#777)", ErrCode_ErrNotImplemented, 777, 777, []ErrCode{777}, true, false, false, false}, + {`errors.Wrap(ErrNotImplemented.Wrap(ErrInternal),blah)`, errors.Wrap(ErrCode_ErrNotImplemented.Wrap(ErrCode_ErrInternal), "blah"), "blah: ErrNotImplemented(#777): ErrInternal(#888)", ErrCode_ErrInternal, 777, 888, []ErrCode{777, 888}, true, true, false, false}, } for _, test := range tests { @@ -57,10 +57,10 @@ func TestError(t *testing.T) { assert.Equal(t, test.expectedLastCode, LastCode(test.input)) assert.Equal(t, test.expectedCause, errors.Cause(test.input)) assert.Equal(t, test.expectedCodes, Codes(test.input)) - assert.Equal(t, test.has777, Has(test.input, ErrNotImplemented)) - assert.Equal(t, test.has888, Has(test.input, ErrInternal)) - assert.Equal(t, test.is777, Is(test.input, ErrNotImplemented)) - assert.Equal(t, test.is888, Is(test.input, ErrInternal)) + assert.Equal(t, test.has777, Has(test.input, ErrCode_ErrNotImplemented)) + assert.Equal(t, test.has888, Has(test.input, ErrCode_ErrInternal)) + assert.Equal(t, test.is777, Is(test.input, ErrCode_ErrNotImplemented)) + assert.Equal(t, test.is888, Is(test.input, ErrCode_ErrInternal)) }) } } @@ -74,18 +74,18 @@ func TestStatus(t *testing.T) { expectedGrpcCode codes.Code hasGrpcStatus bool }{ - {"ErrInternal", ErrInternal, false, true, codes.Unavailable, true}, - {"ErrNotImplemented", ErrNotImplemented, true, false, codes.Unavailable, true}, - {"ErrNotImplemented.Wrap(ErrInternal)", ErrNotImplemented.Wrap(ErrInternal), true, true, codes.Unavailable, true}, - {"ErrNotImplemented.Wrap(ErrInternal.Wrap(ErrNotImplemented))", ErrNotImplemented.Wrap(ErrInternal.Wrap(ErrNotImplemented)), true, true, codes.Unavailable, true}, - {"ErrNotImplemented.Wrap(ErrInternal.Wrap(TODO))", ErrNotImplemented.Wrap(ErrInternal.Wrap(TODO)), true, true, codes.Unavailable, true}, - {"ErrNotImplemented.Wrap(ErrInternal.Wrap(errStdHello))", ErrNotImplemented.Wrap(ErrInternal.Wrap(errStdHello)), true, true, codes.Unavailable, true}, - {"ErrNotImplemented.Wrap(errStdHello)", ErrNotImplemented.Wrap(errStdHello), true, false, codes.Unavailable, true}, + {"ErrInternal", ErrCode_ErrInternal, false, true, codes.Unavailable, true}, + {"ErrNotImplemented", ErrCode_ErrNotImplemented, true, false, codes.Unavailable, true}, + {"ErrNotImplemented.Wrap(ErrInternal)", ErrCode_ErrNotImplemented.Wrap(ErrCode_ErrInternal), true, true, codes.Unavailable, true}, + {"ErrNotImplemented.Wrap(ErrInternal.Wrap(ErrNotImplemented))", ErrCode_ErrNotImplemented.Wrap(ErrCode_ErrInternal.Wrap(ErrCode_ErrNotImplemented)), true, true, codes.Unavailable, true}, + {"ErrNotImplemented.Wrap(ErrInternal.Wrap(TODO))", ErrCode_ErrNotImplemented.Wrap(ErrCode_ErrInternal.Wrap(ErrCode_TODO)), true, true, codes.Unavailable, true}, + {"ErrNotImplemented.Wrap(ErrInternal.Wrap(errStdHello))", ErrCode_ErrNotImplemented.Wrap(ErrCode_ErrInternal.Wrap(errStdHello)), true, true, codes.Unavailable, true}, + {"ErrNotImplemented.Wrap(errStdHello)", ErrCode_ErrNotImplemented.Wrap(errStdHello), true, false, codes.Unavailable, true}, {"errCodeUndef", errCodeUndef, false, false, codes.Unavailable, true}, {"errStdHello", errStdHello, false, false, codes.Unknown, false}, {"nil", nil, false, false, codes.OK, true}, - {`errors.Wrap(ErrNotImplemented,blah)`, errors.Wrap(ErrNotImplemented, "blah"), true, false, codes.Unavailable, true}, - {`errors.Wrap(ErrNotImplemented.Wrap(ErrInternal},blah)`, errors.Wrap(ErrNotImplemented.Wrap(ErrInternal), "blah"), true, true, codes.Unavailable, true}, + {`errors.Wrap(ErrNotImplemented,blah)`, errors.Wrap(ErrCode_ErrNotImplemented, "blah"), true, false, codes.Unavailable, true}, + {`errors.Wrap(ErrNotImplemented.Wrap(ErrInternal},blah)`, errors.Wrap(ErrCode_ErrNotImplemented.Wrap(ErrCode_ErrInternal), "blah"), true, true, codes.Unavailable, true}, } for _, test := range tests { diff --git a/pkg/errcode/stdproto.go b/pkg/errcode/stdproto.go index 9ae6a884..add1d0e6 100644 --- a/pkg/errcode/stdproto.go +++ b/pkg/errcode/stdproto.go @@ -1,11 +1,11 @@ package errcode -import proto "github.com/golang/protobuf/proto" // nolint:staticcheck // cannot use the new protobuf API while keeping gogoproto +// nolint:staticcheck // cannot use the new protobuf API while keeping gogoproto // nolint:gochecknoinits // cannot avoid using this init func // nolint:staticcheck // cannot use the new protobuf API while keeping gogoproto func init() { // the goal of this file is to register types on non-gogo proto (required by status.Details) - proto.RegisterEnum("weshnet.errcode.ErrCode", ErrCode_name, ErrCode_value) // nolint:staticcheck // cannot use the new protobuf API while keeping gogoproto - proto.RegisterType((*ErrDetails)(nil), "weshnet.errcode.ErrDetails") // nolint:staticcheck // cannot use the new protobuf API while keeping gogoproto + // proto.RegisterEnum("weshnet.errcode.ErrCode", ErrCode_name, ErrCode_value) // nolint:staticcheck // cannot use the new protobuf API while keeping gogoproto + // proto.RegisterType((*ErrDetails)(nil), "weshnet.errcode.ErrDetails") // nolint:staticcheck // cannot use the new protobuf API while keeping gogoproto } diff --git a/pkg/ipfsutil/keystore_datastore.go b/pkg/ipfsutil/keystore_datastore.go index b390108c..56bab792 100644 --- a/pkg/ipfsutil/keystore_datastore.go +++ b/pkg/ipfsutil/keystore_datastore.go @@ -43,7 +43,7 @@ func (k *datastoreKeystore) Delete(name string) error { } func (k *datastoreKeystore) List() ([]string, error) { - return nil, errcode.ErrNotImplemented + return nil, errcode.ErrCode_ErrNotImplemented } func NewDatastoreKeystore(ds datastore.Datastore) keystore.Keystore { diff --git a/pkg/ipfsutil/repo.go b/pkg/ipfsutil/repo.go index aed495e0..42c05089 100644 --- a/pkg/ipfsutil/repo.go +++ b/pkg/ipfsutil/repo.go @@ -99,7 +99,7 @@ func CreateBaseConfig() (*ipfs_cfg.Config, error) { // Identity if err := ResetRepoIdentity(&c); err != nil { - return nil, errcode.TODO.Wrap(err) + return nil, errcode.ErrCode_TODO.Wrap(err) } // Discovery @@ -127,17 +127,17 @@ func CreateBaseConfig() (*ipfs_cfg.Config, error) { func ResetRepoIdentity(c *ipfs_cfg.Config) error { priv, pub, err := p2p_ci.GenerateKeyPairWithReader(p2p_ci.Ed25519, 2048, crand.Reader) // nolint:staticcheck if err != nil { - return errcode.TODO.Wrap(err) + return errcode.ErrCode_TODO.Wrap(err) } pid, err := p2p_peer.IDFromPublicKey(pub) // nolint:staticcheck if err != nil { - return errcode.TODO.Wrap(err) + return errcode.ErrCode_TODO.Wrap(err) } privkeyb, err := p2p_ci.MarshalPrivateKey(priv) if err != nil { - return errcode.TODO.Wrap(err) + return errcode.ErrCode_TODO.Wrap(err) } // Identity @@ -208,11 +208,11 @@ func ResetExistingRepoIdentity(repo ipfs_repo.Repo) (ipfs_repo.Repo, error) { cfg, err := repo.Config() if err != nil { _ = repo.Close() - return nil, errcode.ErrInternal.Wrap(err) + return nil, errcode.ErrCode_ErrInternal.Wrap(err) } if err := ResetRepoIdentity(cfg); err != nil { - return nil, errcode.TODO.Wrap(err) + return nil, errcode.ErrCode_TODO.Wrap(err) } updatedCfg, err := upgradeToPersistentConfig(cfg) @@ -222,7 +222,7 @@ func ResetExistingRepoIdentity(repo ipfs_repo.Repo) (ipfs_repo.Repo, error) { err = repo.SetConfig(updatedCfg) if err != nil { - return nil, errcode.ErrInternal.Wrap(err) + return nil, errcode.ErrCode_ErrInternal.Wrap(err) } return repo, nil diff --git a/pkg/logutil/file.go b/pkg/logutil/file.go index ee3618e8..1f62d726 100644 --- a/pkg/logutil/file.go +++ b/pkg/logutil/file.go @@ -40,7 +40,7 @@ func newFileWriteCloser(target, kind string) (io.WriteCloser, error) { if dir := filepath.Dir(filename); !u.DirExists(dir) { err := os.MkdirAll(dir, 0o711) if err != nil { - return nil, errcode.TODO.Wrap(err) + return nil, errcode.ErrCode_TODO.Wrap(err) } } @@ -49,13 +49,13 @@ func newFileWriteCloser(target, kind string) (io.WriteCloser, error) { var err error writer, err = os.OpenFile(filename, os.O_APPEND|os.O_WRONLY, os.ModeAppend) if err != nil { - return nil, errcode.TODO.Wrap(err) + return nil, errcode.ErrCode_TODO.Wrap(err) } } else { var err error writer, err = os.Create(filename) if err != nil { - return nil, errcode.TODO.Wrap(err) + return nil, errcode.ErrCode_TODO.Wrap(err) } } @@ -83,14 +83,14 @@ var filePatternRegex = regexp.MustCompile(`(?m)^(.*)-(\d{4}-\d{2}-\d{2}T\d{2}-\d func LogfileList(logDir string) ([]*Logfile, error) { files, err := os.ReadDir(logDir) if err != nil { - return nil, errcode.TODO.Wrap(err) + return nil, errcode.ErrCode_TODO.Wrap(err) } infos := make([]fs.FileInfo, 0, len(files)) for _, entry := range files { info, err := entry.Info() if err != nil { - return nil, errcode.TODO.Wrap(err) + return nil, errcode.ErrCode_TODO.Wrap(err) } infos = append(infos, info) } @@ -164,7 +164,7 @@ func LogfileGC(logDir string, max int) error { } files, err := LogfileList(logDir) if err != nil { - return errcode.TODO.Wrap(err) + return errcode.ErrCode_TODO.Wrap(err) } if len(files) < max { return nil diff --git a/pkg/logutil/logutil.go b/pkg/logutil/logutil.go index 967c03f3..533b6c33 100644 --- a/pkg/logutil/logutil.go +++ b/pkg/logutil/logutil.go @@ -116,7 +116,7 @@ func NewLogger(streams ...Stream) (*zap.Logger, func(), error) { case typeFile: writer, err := newFileWriteCloser(opts.path, opts.sessionKind) if err != nil { - return nil, nil, errcode.TODO.Wrap(err) + return nil, nil, errcode.ErrCode_TODO.Wrap(err) } w := zapcore.AddSync(writer) core = zapcore.NewCore(enc, w, config.Level) diff --git a/pkg/protocoltypes/contact.go b/pkg/protocoltypes/contact.go index 8ec1ff13..6d25bca0 100644 --- a/pkg/protocoltypes/contact.go +++ b/pkg/protocoltypes/contact.go @@ -38,18 +38,18 @@ func (m *ShareableContact) CheckFormat(options ...ShareableContactOptions) error if l := len(m.PublicRendezvousSeed); l != RendezvousSeedLength { if !(l == 0 && optionMissingRDVSeedAllowed) { - return errcode.ErrInvalidInput.Wrap(fmt.Errorf("rendezvous seed length should not be %d", l)) + return errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("rendezvous seed length should not be %d", l)) } } - if l := len(m.PK); l == 0 && !optionMissingPKAllowed { - return errcode.ErrInvalidInput.Wrap(fmt.Errorf("contact public key is missing")) + if l := len(m.Pk); l == 0 && !optionMissingPKAllowed { + return errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("contact public key is missing")) } - if l := len(m.PK); l != 0 { - _, err := crypto.UnmarshalEd25519PublicKey(m.PK) + if l := len(m.Pk); l != 0 { + _, err := crypto.UnmarshalEd25519PublicKey(m.Pk) if err != nil { - return errcode.ErrDeserialization.Wrap(err) + return errcode.ErrCode_ErrDeserialization.Wrap(err) } } @@ -66,9 +66,9 @@ func (m *ShareableContact) IsSamePK(otherPK crypto.PubKey) bool { } func (m *ShareableContact) GetPubKey() (crypto.PubKey, error) { - pk, err := crypto.UnmarshalEd25519PublicKey(m.PK) + pk, err := crypto.UnmarshalEd25519PublicKey(m.Pk) if err != nil { - return nil, errcode.ErrDeserialization.Wrap(err) + return nil, errcode.ErrCode_ErrDeserialization.Wrap(err) } return pk, nil diff --git a/pkg/protocoltypes/events_account.go b/pkg/protocoltypes/events_account.go index 41a5782c..8130571f 100644 --- a/pkg/protocoltypes/events_account.go +++ b/pkg/protocoltypes/events_account.go @@ -1,97 +1,97 @@ package protocoltypes func (m *AccountGroupJoined) SetDevicePK(pk []byte) { - m.DevicePK = pk + m.DevicePk = pk } func (m *AccountGroupLeft) SetDevicePK(pk []byte) { - m.DevicePK = pk + m.DevicePk = pk } func (m *AccountContactRequestDisabled) SetDevicePK(pk []byte) { - m.DevicePK = pk + m.DevicePk = pk } func (m *AccountContactRequestEnabled) SetDevicePK(pk []byte) { - m.DevicePK = pk + m.DevicePk = pk } func (m *AccountContactRequestReferenceReset) SetDevicePK(pk []byte) { - m.DevicePK = pk + m.DevicePk = pk } func (m *AccountContactRequestOutgoingEnqueued) SetDevicePK(pk []byte) { - m.DevicePK = pk + m.DevicePk = pk } func (m *AccountContactRequestOutgoingSent) SetDevicePK(pk []byte) { - m.DevicePK = pk + m.DevicePk = pk } func (m *AccountContactRequestIncomingReceived) SetDevicePK(pk []byte) { - m.DevicePK = pk + m.DevicePk = pk } func (m *AccountContactRequestIncomingDiscarded) SetDevicePK(pk []byte) { - m.DevicePK = pk + m.DevicePk = pk } func (m *AccountContactRequestIncomingAccepted) SetDevicePK(pk []byte) { - m.DevicePK = pk + m.DevicePk = pk } func (m *AccountContactBlocked) SetDevicePK(pk []byte) { - m.DevicePK = pk + m.DevicePk = pk } func (m *AccountContactUnblocked) SetDevicePK(pk []byte) { - m.DevicePK = pk + m.DevicePk = pk } func (m *AccountContactRequestOutgoingSent) SetContactPK(pk []byte) { - m.ContactPK = pk + m.ContactPk = pk } func (m *AccountContactRequestIncomingDiscarded) SetContactPK(pk []byte) { - m.ContactPK = pk + m.ContactPk = pk } func (m *AccountContactRequestIncomingAccepted) SetContactPK(pk []byte) { - m.ContactPK = pk + m.ContactPk = pk } func (m *AccountContactBlocked) SetContactPK(pk []byte) { - m.ContactPK = pk + m.ContactPk = pk } func (m *AccountContactUnblocked) SetContactPK(pk []byte) { - m.ContactPK = pk + m.ContactPk = pk } func (m *AccountGroupLeft) SetGroupPK(pk []byte) { - m.GroupPK = pk + m.GroupPk = pk } func (m *ContactAliasKeyAdded) SetDevicePK(pk []byte) { - m.DevicePK = pk + m.DevicePk = pk } func (m *MultiMemberGroupAliasResolverAdded) SetDevicePK(pk []byte) { - m.DevicePK = pk + m.DevicePk = pk } func (m *MultiMemberGroupAdminRoleGranted) SetDevicePK(pk []byte) { - m.DevicePK = pk + m.DevicePk = pk } func (m *GroupMetadataPayloadSent) SetDevicePK(pk []byte) { - m.DevicePK = pk + m.DevicePk = pk } func (m *GroupReplicating) SetDevicePK(pk []byte) { - m.DevicePK = pk + m.DevicePk = pk } func (m *AccountVerifiedCredentialRegistered) SetDevicePK(pk []byte) { - m.DevicePK = pk + m.DevicePk = pk } diff --git a/pkg/protocoltypes/group.go b/pkg/protocoltypes/group.go index 2f8631d4..472409ab 100644 --- a/pkg/protocoltypes/group.go +++ b/pkg/protocoltypes/group.go @@ -16,7 +16,7 @@ import ( func (m *Group) GetSigningPrivKey() (crypto.PrivKey, error) { if len(m.Secret) == 0 { - return nil, errcode.ErrMissingInput + return nil, errcode.ErrCode_ErrMissingInput } edSK := ed25519.NewKeyFromSeed(m.Secret) @@ -49,16 +49,16 @@ func (m *Group) GetSigningPubKey() (crypto.PubKey, error) { func (m *Group) IsValid() error { pk, err := m.GetPubKey() if err != nil { - return errcode.ErrDeserialization.Wrap(err) + return errcode.ErrCode_ErrDeserialization.Wrap(err) } ok, err := pk.Verify(m.Secret, m.SecretSig) if err != nil { - return errcode.ErrCryptoSignatureVerification.Wrap(err) + return errcode.ErrCode_ErrCryptoSignatureVerification.Wrap(err) } if !ok { - return errcode.ErrCryptoSignatureVerification + return errcode.ErrCode_ErrCryptoSignatureVerification } return nil @@ -86,44 +86,44 @@ const CurrentGroupVersion = 1 func NewGroupMultiMember() (*Group, crypto.PrivKey, error) { priv, pub, err := crypto.GenerateEd25519Key(crand.Reader) if err != nil { - return nil, nil, errcode.ErrCryptoKeyGeneration.Wrap(err) + return nil, nil, errcode.ErrCode_ErrCryptoKeyGeneration.Wrap(err) } pubBytes, err := pub.Raw() if err != nil { - return nil, nil, errcode.ErrSerialization.Wrap(err) + return nil, nil, errcode.ErrCode_ErrSerialization.Wrap(err) } signing, _, err := crypto.GenerateEd25519Key(crand.Reader) if err != nil { - return nil, nil, errcode.ErrCryptoKeyGeneration.Wrap(err) + return nil, nil, errcode.ErrCode_ErrCryptoKeyGeneration.Wrap(err) } signingBytes, err := cryptoutil.SeedFromEd25519PrivateKey(signing) if err != nil { - return nil, nil, errcode.ErrSerialization.Wrap(err) + return nil, nil, errcode.ErrCode_ErrSerialization.Wrap(err) } skSig, err := priv.Sign(signingBytes) if err != nil { - return nil, nil, errcode.ErrCryptoSignature.Wrap(err) + return nil, nil, errcode.ErrCode_ErrCryptoSignature.Wrap(err) } group := &Group{ PublicKey: pubBytes, Secret: signingBytes, SecretSig: skSig, - GroupType: GroupTypeMultiMember, + GroupType: GroupType_GroupTypeMultiMember, } updateKey, err := group.GetLinkKeyArray() if err != nil { - return nil, nil, errcode.ErrCryptoKeyGeneration.Wrap(err) + return nil, nil, errcode.ErrCode_ErrCryptoKeyGeneration.Wrap(err) } linkKeySig, err := priv.Sign(updateKey[:]) if err != nil { - return nil, nil, errcode.ErrCryptoSignature.Wrap(err) + return nil, nil, errcode.ErrCode_ErrCryptoSignature.Wrap(err) } group.LinkKeySig = linkKeySig @@ -136,7 +136,7 @@ func ComputeLinkKey(publicKey, secret []byte) (*[cryptoutil.KeySize]byte, error) kdf := hkdf.New(sha3.New256, secret, nil, publicKey) if _, err := io.ReadFull(kdf, arr[:]); err != nil { - return nil, errcode.ErrStreamRead.Wrap(err) + return nil, errcode.ErrCode_ErrStreamRead.Wrap(err) } return &arr, nil diff --git a/pkg/rendezvous/emitterio_sync_client.go b/pkg/rendezvous/emitterio_sync_client.go index c6277d6f..0bfd7e36 100644 --- a/pkg/rendezvous/emitterio_sync_client.go +++ b/pkg/rendezvous/emitterio_sync_client.go @@ -11,10 +11,10 @@ import ( emitter "github.com/berty/emitter-go/v2" rendezvous "github.com/berty/go-libp2p-rendezvous" pb "github.com/berty/go-libp2p-rendezvous/pb" - "github.com/golang/protobuf/proto" // nolint:staticcheck // cannot use the new protobuf API while keeping gogoproto "github.com/libp2p/go-libp2p/core/peer" "github.com/multiformats/go-multiaddr" "go.uber.org/zap" + "google.golang.org/protobuf/proto" ) type SyncClient interface { diff --git a/pkg/rendezvous/emitterio_sync_provider.go b/pkg/rendezvous/emitterio_sync_provider.go index 84747102..22b7a725 100644 --- a/pkg/rendezvous/emitterio_sync_provider.go +++ b/pkg/rendezvous/emitterio_sync_provider.go @@ -9,9 +9,9 @@ import ( emitter "github.com/berty/emitter-go/v2" rendezvous "github.com/berty/go-libp2p-rendezvous" pb "github.com/berty/go-libp2p-rendezvous/pb" - "github.com/golang/protobuf/proto" // nolint:staticcheck // cannot use the new protobuf API while keeping gogoproto "github.com/libp2p/go-libp2p/core/peer" "go.uber.org/zap" + "google.golang.org/protobuf/proto" ) const EmitterServiceType = "emitter-io" diff --git a/pkg/secretstore/chain_key.go b/pkg/secretstore/chain_key.go index 58d3f348..e14fff70 100644 --- a/pkg/secretstore/chain_key.go +++ b/pkg/secretstore/chain_key.go @@ -6,6 +6,7 @@ import ( "github.com/libp2p/go-libp2p/core/crypto" "golang.org/x/crypto/nacl/box" + "google.golang.org/protobuf/proto" "berty.tech/weshnet/pkg/cryptoutil" "berty.tech/weshnet/pkg/errcode" @@ -17,7 +18,7 @@ func newDeviceChainKey() (*protocoltypes.DeviceChainKey, error) { chainKey := make([]byte, 32) _, err := crand.Read(chainKey) if err != nil { - return nil, errcode.ErrCryptoRandomGeneration.Wrap(err) + return nil, errcode.ErrCode_ErrCryptoRandomGeneration.Wrap(err) } return &protocoltypes.DeviceChainKey{ @@ -28,14 +29,14 @@ func newDeviceChainKey() (*protocoltypes.DeviceChainKey, error) { // encryptDeviceChainKey encrypts a device chain key for a target member func encryptDeviceChainKey(localDevicePrivateKey crypto.PrivKey, remoteMemberPubKey crypto.PubKey, deviceChainKey *protocoltypes.DeviceChainKey, group *protocoltypes.Group) ([]byte, error) { - chainKeyBytes, err := deviceChainKey.Marshal() + chainKeyBytes, err := proto.Marshal(deviceChainKey) if err != nil { - return nil, errcode.ErrSerialization.Wrap(err) + return nil, errcode.ErrCode_ErrSerialization.Wrap(err) } mongPriv, mongPub, err := cryptoutil.EdwardsToMontgomery(localDevicePrivateKey, remoteMemberPubKey) if err != nil { - return nil, errcode.ErrCryptoKeyConversion.Wrap(err) + return nil, errcode.ErrCode_ErrCryptoKeyConversion.Wrap(err) } nonce := groupIDToNonce(group) @@ -48,19 +49,19 @@ func encryptDeviceChainKey(localDevicePrivateKey crypto.PrivKey, remoteMemberPub func decryptDeviceChainKey(encryptedDeviceChainKey []byte, group *protocoltypes.Group, localMemberPrivateKey crypto.PrivKey, senderDevicePubKey crypto.PubKey) (*protocoltypes.DeviceChainKey, error) { mongPriv, mongPub, err := cryptoutil.EdwardsToMontgomery(localMemberPrivateKey, senderDevicePubKey) if err != nil { - return nil, errcode.ErrCryptoKeyConversion.Wrap(err) + return nil, errcode.ErrCode_ErrCryptoKeyConversion.Wrap(err) } nonce := groupIDToNonce(group) decryptedSecret := &protocoltypes.DeviceChainKey{} decryptedMessage, ok := box.Open(nil, encryptedDeviceChainKey, nonce, mongPub, mongPriv) if !ok { - return nil, errcode.ErrCryptoDecrypt.Wrap(fmt.Errorf("unable to decrypt message")) + return nil, errcode.ErrCode_ErrCryptoDecrypt.Wrap(fmt.Errorf("unable to decrypt message")) } - err = decryptedSecret.Unmarshal(decryptedMessage) + err = proto.Unmarshal(decryptedMessage, decryptedSecret) if err != nil { - return nil, errcode.ErrDeserialization.Wrap(err) + return nil, errcode.ErrCode_ErrDeserialization.Wrap(err) } return decryptedSecret, nil diff --git a/pkg/secretstore/datastore_keys.go b/pkg/secretstore/datastore_keys.go index 24a805f8..3da30c12 100644 --- a/pkg/secretstore/datastore_keys.go +++ b/pkg/secretstore/datastore_keys.go @@ -71,12 +71,12 @@ func dsKeyForPrecomputedMessageKey(groupPublicKey, devicePublicKey []byte, count func dsKeyForCurrentChainKey(groupPublicKey crypto.PubKey, devicePublicKey crypto.PubKey) (datastore.Key, error) { devicePublicKeyBytes, err := devicePublicKey.Raw() if err != nil { - return datastore.Key{}, errcode.ErrSerialization.Wrap(err) + return datastore.Key{}, errcode.ErrCode_ErrSerialization.Wrap(err) } groupPublicKeyBytes, err := groupPublicKey.Raw() if err != nil { - return datastore.Key{}, errcode.ErrSerialization.Wrap(err) + return datastore.Key{}, errcode.ErrCode_ErrSerialization.Wrap(err) } return datastore.KeyWithNamespaces([]string{ diff --git a/pkg/secretstore/device_keystore_wrapper.go b/pkg/secretstore/device_keystore_wrapper.go index 79477ec3..88e3053b 100644 --- a/pkg/secretstore/device_keystore_wrapper.go +++ b/pkg/secretstore/device_keystore_wrapper.go @@ -79,7 +79,7 @@ func (a *deviceKeystore) devicePrivateKey() (crypto.PrivKey, error) { func (a *deviceKeystore) contactGroupPrivateKey(contactPublicKey crypto.PubKey) (crypto.PrivKey, error) { accountPrivateKey, err := a.getAccountPrivateKey() if err != nil { - return nil, errcode.ErrInternal.Wrap(err) + return nil, errcode.ErrCode_ErrInternal.Wrap(err) } return a.getOrComputeECDH(keyContactGroup, contactPublicKey, accountPrivateKey) @@ -90,12 +90,12 @@ func (a *deviceKeystore) contactGroupPrivateKey(contactPublicKey crypto.PubKey) func (a *deviceKeystore) memberDeviceForMultiMemberGroup(groupPublicKey crypto.PubKey) (*ownMemberDevice, error) { memberPrivateKey, err := a.computeMemberKeyForMultiMemberGroup(groupPublicKey) if err != nil { - return nil, errcode.ErrInternal.Wrap(fmt.Errorf("unable to get or generate a device key for group member: %w", err)) + return nil, errcode.ErrCode_ErrInternal.Wrap(fmt.Errorf("unable to get or generate a device key for group member: %w", err)) } devicePrivateKey, err := a.getOrGenerateDeviceKeyForMultiMemberGroup(groupPublicKey) if err != nil { - return nil, errcode.ErrInternal.Wrap(err) + return nil, errcode.ErrCode_ErrInternal.Wrap(err) } return newOwnMemberDevice(memberPrivateKey, devicePrivateKey), nil @@ -106,28 +106,28 @@ func (a *deviceKeystore) memberDeviceForMultiMemberGroup(groupPublicKey crypto.P func (a *deviceKeystore) memberDeviceForGroup(group *protocoltypes.Group) (*ownMemberDevice, error) { publicKey, err := group.GetPubKey() if err != nil { - return nil, errcode.ErrInvalidInput.Wrap(fmt.Errorf("unable to get public key for group: %w", err)) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("unable to get public key for group: %w", err)) } switch group.GetGroupType() { - case protocoltypes.GroupTypeAccount, protocoltypes.GroupTypeContact: + case protocoltypes.GroupType_GroupTypeAccount, protocoltypes.GroupType_GroupTypeContact: memberPrivateKey, err := a.getAccountPrivateKey() if err != nil { - return nil, errcode.ErrInternal.Wrap(err) + return nil, errcode.ErrCode_ErrInternal.Wrap(err) } devicePrivateKey, err := a.devicePrivateKey() if err != nil { - return nil, errcode.ErrInternal.Wrap(err) + return nil, errcode.ErrCode_ErrInternal.Wrap(err) } return newOwnMemberDevice(memberPrivateKey, devicePrivateKey), nil - case protocoltypes.GroupTypeMultiMember: + case protocoltypes.GroupType_GroupTypeMultiMember: return a.memberDeviceForMultiMemberGroup(publicKey) } - return nil, errcode.ErrInvalidInput.Wrap(fmt.Errorf("unknown group type")) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("unknown group type")) } // getOrGenerateNamedKey retrieves a private key by its name, or generate it @@ -137,16 +137,16 @@ func (a *deviceKeystore) getOrGenerateNamedKey(name string) (crypto.PrivKey, err if err == nil { return privateKey, nil } else if err.Error() != keystore.ErrNoSuchKey.Error() { - return nil, errcode.ErrDBRead.Wrap(fmt.Errorf("unable to perform get operation on keystore: %w", err)) + return nil, errcode.ErrCode_ErrDBRead.Wrap(fmt.Errorf("unable to perform get operation on keystore: %w", err)) } privateKey, _, err = crypto.GenerateEd25519Key(crand.Reader) if err != nil { - return nil, errcode.ErrCryptoKeyGeneration.Wrap(fmt.Errorf("unable to generate an ed25519 key: %w", err)) + return nil, errcode.ErrCode_ErrCryptoKeyGeneration.Wrap(fmt.Errorf("unable to generate an ed25519 key: %w", err)) } if err := a.keystore.Put(name, privateKey); err != nil { - return nil, errcode.ErrDBWrite.Wrap(fmt.Errorf("unable to perform put operation on keystore: %w", err)) + return nil, errcode.ErrCode_ErrDBWrite.Wrap(fmt.Errorf("unable to perform put operation on keystore: %w", err)) } return privateKey, nil @@ -161,7 +161,7 @@ func (a *deviceKeystore) getOrGenerateDeviceKeyForMultiMemberGroup(groupPublicKe groupPublicKeyRaw, err := groupPublicKey.Raw() if err != nil { - return nil, errcode.ErrSerialization.Wrap(err) + return nil, errcode.ErrCode_ErrSerialization.Wrap(err) } name := strings.Join([]string{keyMemberDevice, hex.EncodeToString(groupPublicKeyRaw)}, "_") @@ -177,7 +177,7 @@ func (a *deviceKeystore) getOrComputeECDH(nameSpace string, publicKey crypto.Pub publicKeyRaw, err := publicKey.Raw() if err != nil { - return nil, errcode.ErrSerialization.Wrap(err) + return nil, errcode.ErrCode_ErrSerialization.Wrap(err) } name := strings.Join([]string{nameSpace, hex.EncodeToString(publicKeyRaw)}, "_") @@ -186,12 +186,12 @@ func (a *deviceKeystore) getOrComputeECDH(nameSpace string, publicKey crypto.Pub if err == nil { return privateKey, nil } else if err.Error() != keystore.ErrNoSuchKey.Error() { - return nil, errcode.ErrDBRead.Wrap(fmt.Errorf("unable to perform get operation on keystore: %w", err)) + return nil, errcode.ErrCode_ErrDBRead.Wrap(fmt.Errorf("unable to perform get operation on keystore: %w", err)) } privateKeyBytes, publicKeyBytes, err := cryptoutil.EdwardsToMontgomery(ownPrivateKey, publicKey) if err != nil { - return nil, errcode.ErrCryptoKeyConversion.Wrap(err) + return nil, errcode.ErrCode_ErrCryptoKeyConversion.Wrap(err) } secret := ecdh.X25519().ComputeSecret(privateKeyBytes, publicKeyBytes) @@ -199,11 +199,11 @@ func (a *deviceKeystore) getOrComputeECDH(nameSpace string, publicKey crypto.Pub privateKey, _, err = crypto.KeyPairFromStdKey(&groupSecretPrivateKey) if err != nil { - return nil, errcode.ErrCryptoKeyConversion.Wrap(err) + return nil, errcode.ErrCode_ErrCryptoKeyConversion.Wrap(err) } if err := a.keystore.Put(name, privateKey); err != nil { - return nil, errcode.ErrDBWrite.Wrap(err) + return nil, errcode.ErrCode_ErrDBWrite.Wrap(err) } return privateKey, nil @@ -215,7 +215,7 @@ func (a *deviceKeystore) getOrComputeECDH(nameSpace string, publicKey crypto.Pub func (a *deviceKeystore) computeMemberKeyForMultiMemberGroup(groupPublicKey crypto.PubKey) (crypto.PrivKey, error) { accountProofPrivateKey, err := a.getAccountProofPrivateKey() if err != nil { - return nil, errcode.ErrInternal.Wrap(err) + return nil, errcode.ErrCode_ErrInternal.Wrap(err) } return a.getOrComputeECDH(keyMember, groupPublicKey, accountProofPrivateKey) @@ -233,25 +233,25 @@ func (a *deviceKeystore) restoreAccountKeys(accountPrivateKeyBytes []byte, accou var err error privateKeys[keyName], err = getEd25519PrivateKeyFromLibP2PFormattedBytes(keyBytes) if err != nil { - return errcode.ErrDeserialization.Wrap(err) + return errcode.ErrCode_ErrDeserialization.Wrap(err) } } if privateKeys[keyAccount].Equals(privateKeys[keyAccountProof]) { - return errcode.ErrInvalidInput.Wrap(fmt.Errorf("the account key cannot be the same value as the account proof key")) + return errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("the account key cannot be the same value as the account proof key")) } for keyName := range privateKeys { if exists, err := a.keystore.Has(keyName); err != nil { - return errcode.ErrDBRead.Wrap(err) + return errcode.ErrCode_ErrDBRead.Wrap(err) } else if exists { - return errcode.ErrInvalidInput.Wrap(fmt.Errorf("an account is already set in this keystore")) + return errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("an account is already set in this keystore")) } } for keyName, privateKey := range privateKeys { if err := a.keystore.Put(keyName, privateKey); err != nil { - return errcode.ErrDBWrite.Wrap(err) + return errcode.ErrCode_ErrDBWrite.Wrap(err) } } diff --git a/pkg/secretstore/keys_utils.go b/pkg/secretstore/keys_utils.go index 3dd0d8b9..b1b78135 100644 --- a/pkg/secretstore/keys_utils.go +++ b/pkg/secretstore/keys_utils.go @@ -21,16 +21,16 @@ import ( // private key into a crypto.PrivKey instance, ensuring it is an ed25519 key func getEd25519PrivateKeyFromLibP2PFormattedBytes(rawKeyBytes []byte) (crypto.PrivKey, error) { if len(rawKeyBytes) == 0 { - return nil, errcode.ErrInvalidInput.Wrap(fmt.Errorf("missing key data")) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("missing key data")) } privateKey, err := crypto.UnmarshalPrivateKey(rawKeyBytes) if err != nil { - return nil, errcode.ErrInvalidInput.Wrap(err) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(err) } if privateKey.Type() != crypto_pb.KeyType_Ed25519 { - return nil, errcode.ErrInvalidInput.Wrap(fmt.Errorf("invalid key format")) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("invalid key format")) } return privateKey, nil @@ -44,13 +44,13 @@ func getKeysForGroupOfContact(contactPairPrivateKey crypto.PrivKey) (crypto.Priv contactPairPrivateKeyBytes, err := contactPairPrivateKey.Raw() if err != nil { - return nil, nil, errcode.ErrSerialization.Wrap(err) + return nil, nil, errcode.ErrCode_ErrSerialization.Wrap(err) } // Generate Pseudo Random Key using contactPairPrivateKeyBytes as IKM and salt prk := hkdf.Extract(hash, contactPairPrivateKeyBytes, nil) if len(prk) == 0 { - return nil, nil, errcode.ErrInternal.Wrap(fmt.Errorf("unable to instantiate pseudo random key")) + return nil, nil, errcode.ErrCode_ErrInternal.Wrap(fmt.Errorf("unable to instantiate pseudo random key")) } // Expand using extracted prk and groupID as info (kind of namespace) @@ -59,24 +59,24 @@ func getKeysForGroupOfContact(contactPairPrivateKey crypto.PrivKey) (crypto.Priv // Generate next KDF and message keys groupSeed, err := io.ReadAll(io.LimitReader(kdf, 32)) if err != nil { - return nil, nil, errcode.ErrCryptoKeyGeneration.Wrap(err) + return nil, nil, errcode.ErrCode_ErrCryptoKeyGeneration.Wrap(err) } groupSecretSeed, err := io.ReadAll(io.LimitReader(kdf, 32)) if err != nil { - return nil, nil, errcode.ErrCryptoKeyGeneration.Wrap(err) + return nil, nil, errcode.ErrCode_ErrCryptoKeyGeneration.Wrap(err) } stdGroupPrivateKey := ed25519.NewKeyFromSeed(groupSeed) groupPrivateKey, _, err := crypto.KeyPairFromStdKey(&stdGroupPrivateKey) if err != nil { - return nil, nil, errcode.ErrCryptoKeyGeneration.Wrap(err) + return nil, nil, errcode.ErrCode_ErrCryptoKeyGeneration.Wrap(err) } stdGroupSecretPrivateKey := ed25519.NewKeyFromSeed(groupSecretSeed) groupSecretPrivateKey, _, err := crypto.KeyPairFromStdKey(&stdGroupSecretPrivateKey) if err != nil { - return nil, nil, errcode.ErrCryptoKeyGeneration.Wrap(err) + return nil, nil, errcode.ErrCode_ErrCryptoKeyGeneration.Wrap(err) } return groupPrivateKey, groupSecretPrivateKey, nil @@ -87,38 +87,38 @@ func getKeysForGroupOfContact(contactPairPrivateKey crypto.PrivKey) (crypto.Priv func getGroupForContact(contactPairPrivateKey crypto.PrivKey) (*protocoltypes.Group, error) { groupPrivateKey, groupSecretPrivateKey, err := getKeysForGroupOfContact(contactPairPrivateKey) if err != nil { - return nil, errcode.ErrCryptoKeyGeneration.Wrap(err) + return nil, errcode.ErrCode_ErrCryptoKeyGeneration.Wrap(err) } pubBytes, err := groupPrivateKey.GetPublic().Raw() if err != nil { - return nil, errcode.ErrSerialization.Wrap(err) + return nil, errcode.ErrCode_ErrSerialization.Wrap(err) } signingBytes, err := cryptoutil.SeedFromEd25519PrivateKey(groupSecretPrivateKey) if err != nil { - return nil, errcode.ErrSerialization.Wrap(err) + return nil, errcode.ErrCode_ErrSerialization.Wrap(err) } return &protocoltypes.Group{ PublicKey: pubBytes, Secret: signingBytes, SecretSig: nil, - GroupType: protocoltypes.GroupTypeContact, + GroupType: protocoltypes.GroupType_GroupTypeContact, }, nil } // getGroupOutOfStoreSecret retrieves the out of store group secret func getGroupOutOfStoreSecret(m *protocoltypes.Group) ([]byte, error) { if len(m.GetSecret()) == 0 { - return nil, errcode.ErrInvalidInput.Wrap(fmt.Errorf("no secret known for group")) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("no secret known for group")) } arr := [cryptoutil.KeySize]byte{} kdf := hkdf.New(sha3.New256, m.GetSecret(), nil, []byte(namespaceOutOfStoreSecret)) if _, err := io.ReadFull(kdf, arr[:]); err != nil { - return nil, errcode.ErrStreamRead.Wrap(err) + return nil, errcode.ErrCode_ErrStreamRead.Wrap(err) } return arr[:], nil @@ -129,7 +129,7 @@ func getGroupOutOfStoreSecret(m *protocoltypes.Group) ([]byte, error) { func createOutOfStoreGroupReference(m *protocoltypes.Group, sender []byte, counter uint64) ([]byte, error) { secret, err := getGroupOutOfStoreSecret(m) if err != nil { - return nil, errcode.ErrInvalidInput.Wrap(err) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(err) } arr := [cryptoutil.KeySize]byte{} @@ -139,7 +139,7 @@ func createOutOfStoreGroupReference(m *protocoltypes.Group, sender []byte, count kdf := hkdf.New(sha3.New256, secret, nil, append(sender, buf...)) if _, err := io.ReadFull(kdf, arr[:]); err != nil { - return nil, errcode.ErrStreamRead.Wrap(err) + return nil, errcode.ErrCode_ErrStreamRead.Wrap(err) } return arr[:], nil diff --git a/pkg/secretstore/secret_store.go b/pkg/secretstore/secret_store.go index 777d9572..422e6d5e 100644 --- a/pkg/secretstore/secret_store.go +++ b/pkg/secretstore/secret_store.go @@ -11,6 +11,7 @@ import ( "github.com/libp2p/go-libp2p/core/crypto" "go.uber.org/zap" "golang.org/x/crypto/nacl/secretbox" + "google.golang.org/protobuf/proto" "berty.tech/weshnet/internal/datastoreutil" "berty.tech/weshnet/pkg/cryptoutil" @@ -61,7 +62,7 @@ func NewSecretStore(rootDatastore datastore.Datastore, opts *NewSecretStoreOptio // newSecretStore instantiates a new secretStore func newSecretStore(rootDatastore datastore.Datastore, opts *NewSecretStoreOptions) (*secretStore, error) { if rootDatastore == nil { - return nil, errcode.ErrInvalidInput.Wrap(fmt.Errorf("a datastore is required")) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("a datastore is required")) } if opts == nil { @@ -101,34 +102,34 @@ func (s *secretStore) Close() error { func (s *secretStore) PutGroup(ctx context.Context, g *protocoltypes.Group) error { pk, err := g.GetPubKey() if err != nil { - return errcode.ErrInvalidInput.Wrap(err) + return errcode.ErrCode_ErrInvalidInput.Wrap(err) } // TODO: check if partial group or full group and complete if necessary if ok, err := s.hasGroup(ctx, pk); err != nil { - return errcode.ErrInvalidInput.Wrap(err) + return errcode.ErrCode_ErrInvalidInput.Wrap(err) } else if ok { return nil } - data, err := g.Marshal() + data, err := proto.Marshal(g) if err != nil { - return errcode.ErrSerialization.Wrap(err) + return errcode.ErrCode_ErrSerialization.Wrap(err) } if err := s.datastore.Put(ctx, dsKeyForGroup(g.GetPublicKey()), data); err != nil { - return errcode.ErrKeystorePut.Wrap(err) + return errcode.ErrCode_ErrKeystorePut.Wrap(err) } memberDevice, err := s.GetOwnMemberDeviceForGroup(g) if err != nil { - return errcode.ErrInternal.Wrap(err) + return errcode.ErrCode_ErrInternal.Wrap(err) } // Force generation of chain key for own device _, err = s.GetShareableChainKey(ctx, g, memberDevice.Member()) if err != nil { - return errcode.ErrInternal.Wrap(err) + return errcode.ErrCode_ErrInternal.Wrap(err) } return nil @@ -140,28 +141,28 @@ func (s *secretStore) GetOwnMemberDeviceForGroup(g *protocoltypes.Group) (OwnMem func (s *secretStore) OpenOutOfStoreMessage(ctx context.Context, payload []byte) (*protocoltypes.OutOfStoreMessage, *protocoltypes.Group, []byte, bool, error) { oosMessageEnv := &protocoltypes.OutOfStoreMessageEnvelope{} - if err := oosMessageEnv.Unmarshal(payload); err != nil { - return nil, nil, nil, false, errcode.ErrDeserialization.Wrap(err) + if err := proto.Unmarshal(payload, oosMessageEnv); err != nil { + return nil, nil, nil, false, errcode.ErrCode_ErrDeserialization.Wrap(err) } groupPublicKey, err := s.OutOfStoreGetGroupPublicKeyByGroupReference(ctx, oosMessageEnv.GroupReference) if err != nil { - return nil, nil, nil, false, errcode.ErrNotFound.Wrap(err) + return nil, nil, nil, false, errcode.ErrCode_ErrNotFound.Wrap(err) } oosMessage, err := s.decryptOutOfStoreMessageEnv(ctx, oosMessageEnv, groupPublicKey) if err != nil { - return nil, nil, nil, false, errcode.ErrCryptoDecrypt.Wrap(err) + return nil, nil, nil, false, errcode.ErrCode_ErrCryptoDecrypt.Wrap(err) } clear, newlyDecrypted, err := s.OutOfStoreMessageOpen(ctx, oosMessage, groupPublicKey) if err != nil { - return nil, nil, nil, false, errcode.ErrCryptoDecrypt.Wrap(err) + return nil, nil, nil, false, errcode.ErrCode_ErrCryptoDecrypt.Wrap(err) } group, err := s.FetchGroupByPublicKey(ctx, groupPublicKey) if err == nil { - if err := s.UpdateOutOfStoreGroupReferences(ctx, oosMessage.DevicePK, oosMessage.Counter, group); err != nil { + if err := s.UpdateOutOfStoreGroupReferences(ctx, oosMessage.DevicePk, oosMessage.Counter, group); err != nil { s.logger.Error("unable to update push group references", zap.Error(err)) } } @@ -172,24 +173,24 @@ func (s *secretStore) OpenOutOfStoreMessage(ctx context.Context, payload []byte) func (s *secretStore) decryptOutOfStoreMessageEnv(ctx context.Context, env *protocoltypes.OutOfStoreMessageEnvelope, groupPK crypto.PubKey) (*protocoltypes.OutOfStoreMessage, error) { nonce, err := cryptoutil.NonceSliceToArray(env.Nonce) if err != nil { - return nil, errcode.ErrInvalidInput.Wrap(err) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(err) } g, err := s.FetchGroupByPublicKey(ctx, groupPK) if err != nil { - return nil, errcode.ErrInvalidInput.Wrap(fmt.Errorf("unable to find group, err: %w", err)) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("unable to find group, err: %w", err)) } secret := g.GetSharedSecret() data, ok := secretbox.Open(nil, env.Box, nonce, secret) if !ok { - return nil, errcode.ErrCryptoDecrypt.Wrap(fmt.Errorf("unable to decrypt message")) + return nil, errcode.ErrCode_ErrCryptoDecrypt.Wrap(fmt.Errorf("unable to decrypt message")) } outOfStoreMessage := &protocoltypes.OutOfStoreMessage{} - if err := outOfStoreMessage.Unmarshal(data); err != nil { - return nil, errcode.ErrDeserialization.Wrap(err) + if err := proto.Unmarshal(data, outOfStoreMessage); err != nil { + return nil, errcode.ErrCode_ErrDeserialization.Wrap(err) } return outOfStoreMessage, nil @@ -198,17 +199,17 @@ func (s *secretStore) decryptOutOfStoreMessageEnv(ctx context.Context, env *prot func (s *secretStore) FetchGroupByPublicKey(ctx context.Context, publicKey crypto.PubKey) (*protocoltypes.Group, error) { keyBytes, err := publicKey.Raw() if err != nil { - return nil, errcode.ErrSerialization.Wrap(err) + return nil, errcode.ErrCode_ErrSerialization.Wrap(err) } data, err := s.datastore.Get(ctx, dsKeyForGroup(keyBytes)) if err != nil { - return nil, errcode.ErrMissingMapKey.Wrap(err) + return nil, errcode.ErrCode_ErrMissingMapKey.Wrap(err) } g := &protocoltypes.Group{} - if err := g.Unmarshal(data); err != nil { - return nil, errcode.ErrDeserialization.Wrap(err) + if err := proto.Unmarshal(data, g); err != nil { + return nil, errcode.ErrCode_ErrDeserialization.Wrap(err) } return g, nil @@ -217,7 +218,7 @@ func (s *secretStore) FetchGroupByPublicKey(ctx context.Context, publicKey crypt func (s *secretStore) GetAccountProofPublicKey() (crypto.PubKey, error) { privateKey, err := s.deviceKeystore.getAccountPrivateKey() if err != nil { - return nil, errcode.ErrInternal.Wrap(err) + return nil, errcode.ErrCode_ErrInternal.Wrap(err) } return privateKey.GetPublic(), nil @@ -230,22 +231,22 @@ func (s *secretStore) ImportAccountKeys(accountPrivateKeyBytes []byte, accountPr func (s *secretStore) ExportAccountKeysForBackup() (accountPrivateKeyBytes []byte, accountProofPrivateKeyBytes []byte, err error) { accountPrivateKey, err := s.deviceKeystore.getAccountPrivateKey() if err != nil { - return nil, nil, errcode.ErrInternal.Wrap(err) + return nil, nil, errcode.ErrCode_ErrInternal.Wrap(err) } accountProofPrivateKey, err := s.deviceKeystore.getAccountProofPrivateKey() if err != nil { - return nil, nil, errcode.ErrInternal.Wrap(err) + return nil, nil, errcode.ErrCode_ErrInternal.Wrap(err) } accountPrivateKeyBytes, err = crypto.MarshalPrivateKey(accountPrivateKey) if err != nil { - return nil, nil, errcode.ErrSerialization.Wrap(err) + return nil, nil, errcode.ErrCode_ErrSerialization.Wrap(err) } accountProofPrivateKeyBytes, err = crypto.MarshalPrivateKey(accountProofPrivateKey) if err != nil { - return nil, nil, errcode.ErrSerialization.Wrap(err) + return nil, nil, errcode.ErrCode_ErrSerialization.Wrap(err) } return accountPrivateKeyBytes, accountProofPrivateKeyBytes, nil @@ -254,7 +255,7 @@ func (s *secretStore) ExportAccountKeysForBackup() (accountPrivateKeyBytes []byt func (s *secretStore) GetAccountPrivateKey() (crypto.PrivKey, error) { accountPrivateKey, err := s.deviceKeystore.getAccountPrivateKey() if err != nil { - return nil, errcode.ErrInternal.Wrap(err) + return nil, errcode.ErrCode_ErrInternal.Wrap(err) } return accountPrivateKey, nil @@ -263,41 +264,41 @@ func (s *secretStore) GetAccountPrivateKey() (crypto.PrivKey, error) { func (s *secretStore) GetGroupForAccount() (*protocoltypes.Group, OwnMemberDevice, error) { accountPrivateKey, err := s.deviceKeystore.getAccountPrivateKey() if err != nil { - return nil, nil, errcode.ErrOrbitDBOpen.Wrap(err) + return nil, nil, errcode.ErrCode_ErrOrbitDBOpen.Wrap(err) } accountProofPrivateKey, err := s.deviceKeystore.getAccountProofPrivateKey() if err != nil { - return nil, nil, errcode.ErrOrbitDBOpen.Wrap(err) + return nil, nil, errcode.ErrCode_ErrOrbitDBOpen.Wrap(err) } devicePrivateKey, err := s.deviceKeystore.devicePrivateKey() if err != nil { - return nil, nil, errcode.ErrInternal.Wrap(err) + return nil, nil, errcode.ErrCode_ErrInternal.Wrap(err) } pubBytes, err := accountPrivateKey.GetPublic().Raw() if err != nil { - return nil, nil, errcode.ErrSerialization.Wrap(err) + return nil, nil, errcode.ErrCode_ErrSerialization.Wrap(err) } signingBytes, err := cryptoutil.SeedFromEd25519PrivateKey(accountProofPrivateKey) if err != nil { - return nil, nil, errcode.ErrSerialization.Wrap(err) + return nil, nil, errcode.ErrCode_ErrSerialization.Wrap(err) } return &protocoltypes.Group{ PublicKey: pubBytes, Secret: signingBytes, SecretSig: nil, - GroupType: protocoltypes.GroupTypeAccount, + GroupType: protocoltypes.GroupType_GroupTypeAccount, }, newOwnMemberDevice(accountPrivateKey, devicePrivateKey), nil } func (s *secretStore) GetGroupForContact(contactPublicKey crypto.PubKey) (*protocoltypes.Group, error) { contactPairPrivateKey, err := s.deviceKeystore.contactGroupPrivateKey(contactPublicKey) if err != nil { - return nil, errcode.ErrCryptoKeyGeneration.Wrap(err) + return nil, errcode.ErrCode_ErrCryptoKeyGeneration.Wrap(err) } return getGroupForContact(contactPairPrivateKey) @@ -305,24 +306,24 @@ func (s *secretStore) GetGroupForContact(contactPublicKey crypto.PubKey) (*proto func (s *secretStore) OpenEnvelopeHeaders(data []byte, g *protocoltypes.Group) (*protocoltypes.MessageEnvelope, *protocoltypes.MessageHeaders, error) { env := &protocoltypes.MessageEnvelope{} - err := env.Unmarshal(data) + err := proto.Unmarshal(data, env) if err != nil { - return nil, nil, errcode.ErrDeserialization.Wrap(err) + return nil, nil, errcode.ErrCode_ErrDeserialization.Wrap(err) } nonce, err := cryptoutil.NonceSliceToArray(env.Nonce) if err != nil { - return nil, nil, errcode.ErrSerialization.Wrap(fmt.Errorf("unable to convert slice to array: %w", err)) + return nil, nil, errcode.ErrCode_ErrSerialization.Wrap(fmt.Errorf("unable to convert slice to array: %w", err)) } headersBytes, ok := secretbox.Open(nil, env.MessageHeaders, nonce, g.GetSharedSecret()) if !ok { - return nil, nil, errcode.ErrCryptoDecrypt.Wrap(fmt.Errorf("secretbox failed to open headers")) + return nil, nil, errcode.ErrCode_ErrCryptoDecrypt.Wrap(fmt.Errorf("secretbox failed to open headers")) } headers := &protocoltypes.MessageHeaders{} - if err := headers.Unmarshal(headersBytes); err != nil { - return nil, nil, errcode.ErrDeserialization.Wrap(err) + if err := proto.Unmarshal(headersBytes, headers); err != nil { + return nil, nil, errcode.ErrCode_ErrDeserialization.Wrap(err) } return env, headers, nil @@ -330,34 +331,34 @@ func (s *secretStore) OpenEnvelopeHeaders(data []byte, g *protocoltypes.Group) ( func (s *secretStore) SealOutOfStoreMessageEnvelope(id cid.Cid, env *protocoltypes.MessageEnvelope, headers *protocoltypes.MessageHeaders, group *protocoltypes.Group) (*protocoltypes.OutOfStoreMessageEnvelope, error) { oosMessage := &protocoltypes.OutOfStoreMessage{ - CID: id.Bytes(), - DevicePK: headers.DevicePK, + Cid: id.Bytes(), + DevicePk: headers.DevicePk, Counter: headers.Counter, Sig: headers.Sig, EncryptedPayload: env.Message, Nonce: env.Nonce, } - data, err := oosMessage.Marshal() + data, err := proto.Marshal(oosMessage) if err != nil { - return nil, errcode.ErrSerialization.Wrap(err) + return nil, errcode.ErrCode_ErrSerialization.Wrap(err) } nonce, err := cryptoutil.GenerateNonce() if err != nil { - return nil, errcode.ErrCryptoNonceGeneration.Wrap(err) + return nil, errcode.ErrCode_ErrCryptoNonceGeneration.Wrap(err) } secret, err := cryptoutil.KeySliceToArray(group.Secret) if err != nil { - return nil, errcode.ErrCryptoKeyConversion.Wrap(fmt.Errorf("unable to convert slice to array: %w", err)) + return nil, errcode.ErrCode_ErrCryptoKeyConversion.Wrap(fmt.Errorf("unable to convert slice to array: %w", err)) } encryptedData := secretbox.Seal(nil, data, nonce, secret) - pushGroupRef, err := createOutOfStoreGroupReference(group, headers.DevicePK, headers.Counter) + pushGroupRef, err := createOutOfStoreGroupReference(group, headers.DevicePk, headers.Counter) if err != nil { - return nil, errcode.ErrCryptoKeyGeneration.Wrap(err) + return nil, errcode.ErrCode_ErrCryptoKeyGeneration.Wrap(err) } return &protocoltypes.OutOfStoreMessageEnvelope{ @@ -371,7 +372,7 @@ func (s *secretStore) SealOutOfStoreMessageEnvelope(id cid.Cid, env *protocoltyp func (s *secretStore) hasGroup(ctx context.Context, key crypto.PubKey) (bool, error) { keyBytes, err := key.Raw() if err != nil { - return false, errcode.ErrSerialization.Wrap(err) + return false, errcode.ErrCode_ErrSerialization.Wrap(err) } return s.datastore.Has(ctx, dsKeyForGroup(keyBytes)) diff --git a/pkg/secretstore/secret_store_messages.go b/pkg/secretstore/secret_store_messages.go index c671081e..08ce0369 100644 --- a/pkg/secretstore/secret_store_messages.go +++ b/pkg/secretstore/secret_store_messages.go @@ -7,13 +7,13 @@ import ( "fmt" "io" - "github.com/gogo/protobuf/proto" "github.com/ipfs/go-cid" "github.com/ipfs/go-datastore" "github.com/libp2p/go-libp2p/core/crypto" "go.uber.org/zap" "golang.org/x/crypto/hkdf" "golang.org/x/crypto/nacl/secretbox" + "google.golang.org/protobuf/proto" "berty.tech/weshnet/pkg/cryptoutil" "berty.tech/weshnet/pkg/errcode" @@ -38,26 +38,26 @@ type computedMessageKey struct { // getDeviceChainKeyForGroupAndDevice returns the device chain key for the given group and device. func (s *secretStore) getDeviceChainKeyForGroupAndDevice(ctx context.Context, groupPublicKey crypto.PubKey, devicePublicKey crypto.PubKey) (*protocoltypes.DeviceChainKey, error) { if s == nil { - return nil, errcode.ErrInvalidInput.Wrap(fmt.Errorf("calling method of a non instantiated message keystore")) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("calling method of a non instantiated message keystore")) } key, err := dsKeyForCurrentChainKey(groupPublicKey, devicePublicKey) if err != nil { - return nil, errcode.ErrInternal.Wrap(err) + return nil, errcode.ErrCode_ErrInternal.Wrap(err) } // Not mutex here dsBytes, err := s.datastore.Get(ctx, key) if err == datastore.ErrNotFound { - return nil, errcode.ErrMissingInput.Wrap(err) + return nil, errcode.ErrCode_ErrMissingInput.Wrap(err) } else if err != nil { - return nil, errcode.ErrMessageKeyPersistenceGet.Wrap(err) + return nil, errcode.ErrCode_ErrMessageKeyPersistenceGet.Wrap(err) } ds := &protocoltypes.DeviceChainKey{} - if err := ds.Unmarshal(dsBytes); err != nil { - return nil, errcode.ErrInvalidInput.Wrap(err) + if err := proto.Unmarshal(dsBytes, ds); err != nil { + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(err) } return ds, nil @@ -85,25 +85,24 @@ func (s *secretStore) IsChainKeyKnownForDevice(ctx context.Context, groupPublicK // delPrecomputedKey deletes the message key in the cache namespace for the given group, device and counter. func (s *secretStore) delPrecomputedKey(ctx context.Context, groupPublicKey crypto.PubKey, devicePublicKey crypto.PubKey, msgCounter uint64) error { if s == nil { - return errcode.ErrInvalidInput.Wrap(fmt.Errorf("calling method of a non instantiated message keystore")) + return errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("calling method of a non instantiated message keystore")) } devicePublicKeyRaw, err := devicePublicKey.Raw() if err != nil { - return errcode.ErrSerialization.Wrap(err) + return errcode.ErrCode_ErrSerialization.Wrap(err) } groupPublicKeyRaw, err := groupPublicKey.Raw() if err != nil { - return errcode.ErrSerialization.Wrap(err) + return errcode.ErrCode_ErrSerialization.Wrap(err) } id := dsKeyForPrecomputedMessageKey(groupPublicKeyRaw, devicePublicKeyRaw, msgCounter) err = s.datastore.Delete(ctx, id) - if err != nil { - return errcode.ErrMessageKeyPersistencePut.Wrap(err) + return errcode.ErrCode_ErrMessageKeyPersistencePut.Wrap(err) } return nil @@ -114,7 +113,7 @@ func (s *secretStore) delPrecomputedKey(ctx context.Context, groupPublicKey cryp // It derives the chain key in the cache namespace. func (s *secretStore) postDecryptActions(ctx context.Context, decryptionCtx *decryptionContext, groupPublicKey crypto.PubKey, ownPublicKey crypto.PubKey, msgHeaders *protocoltypes.MessageHeaders) error { if s == nil { - return errcode.ErrInvalidInput.Wrap(fmt.Errorf("calling method of a non instantiated message keystore")) + return errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("calling method of a non instantiated message keystore")) } // Message was newly decrypted, we can save the message key and derive @@ -128,28 +127,28 @@ func (s *secretStore) postDecryptActions(ctx context.Context, decryptionCtx *dec err error ) - devicePublicKey, err := crypto.UnmarshalEd25519PublicKey(msgHeaders.DevicePK) + devicePublicKey, err := crypto.UnmarshalEd25519PublicKey(msgHeaders.DevicePk) if err != nil { - return errcode.ErrDeserialization.Wrap(err) + return errcode.ErrCode_ErrDeserialization.Wrap(err) } if err = s.putKeyForCID(ctx, decryptionCtx.cid, decryptionCtx.messageKey); err != nil { - return errcode.ErrInternal.Wrap(err) + return errcode.ErrCode_ErrInternal.Wrap(err) } if err = s.delPrecomputedKey(ctx, groupPublicKey, devicePublicKey, msgHeaders.Counter); err != nil { - return errcode.ErrInternal.Wrap(err) + return errcode.ErrCode_ErrInternal.Wrap(err) } if deviceChainKey, err = s.preComputeNextKey(ctx, groupPublicKey, devicePublicKey); err != nil { - return errcode.ErrInternal.Wrap(err) + return errcode.ErrCode_ErrInternal.Wrap(err) } // If the message was not emitted by the current Device we might need // to update the current chain key if ownPublicKey == nil || !ownPublicKey.Equals(devicePublicKey) { if err = s.updateCurrentKey(ctx, groupPublicKey, devicePublicKey, deviceChainKey); err != nil { - return errcode.ErrInternal.Wrap(err) + return errcode.ErrCode_ErrInternal.Wrap(err) } } @@ -159,17 +158,17 @@ func (s *secretStore) postDecryptActions(ctx context.Context, decryptionCtx *dec func (s *secretStore) GetShareableChainKey(ctx context.Context, group *protocoltypes.Group, targetMemberPublicKey crypto.PubKey) ([]byte, error) { deviceChainKey, err := s.getOwnDeviceChainKeyForGroup(ctx, group) if err != nil { - return nil, errcode.ErrInvalidInput.Wrap(err) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(err) } privateMemberDevice, err := s.deviceKeystore.memberDeviceForGroup(group) if err != nil { - return nil, errcode.ErrInvalidInput.Wrap(err) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(err) } encryptedDeviceChainKey, err := encryptDeviceChainKey(privateMemberDevice.device, targetMemberPublicKey, deviceChainKey, group) if err != nil { - return nil, errcode.ErrCryptoEncrypt.Wrap(err) + return nil, errcode.ErrCode_ErrCryptoEncrypt.Wrap(err) } return encryptedDeviceChainKey, nil @@ -181,42 +180,42 @@ func (s *secretStore) GetShareableChainKey(ctx context.Context, group *protocolt // registered. func (s *secretStore) getOwnDeviceChainKeyForGroup(ctx context.Context, group *protocoltypes.Group) (*protocoltypes.DeviceChainKey, error) { if s == nil { - return nil, errcode.ErrInvalidInput.Wrap(fmt.Errorf("calling method of a non instantiated message keystore")) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("calling method of a non instantiated message keystore")) } if s.deviceKeystore == nil { - return nil, errcode.ErrCryptoSignature.Wrap(fmt.Errorf("message keystore is opened in read-only mode")) + return nil, errcode.ErrCode_ErrCryptoSignature.Wrap(fmt.Errorf("message keystore is opened in read-only mode")) } md, err := s.deviceKeystore.memberDeviceForGroup(group) if err != nil { - return nil, errcode.ErrInternal.Wrap(err) + return nil, errcode.ErrCode_ErrInternal.Wrap(err) } groupPublicKey, err := group.GetPubKey() if err != nil { - return nil, errcode.ErrDeserialization.Wrap(err) + return nil, errcode.ErrCode_ErrDeserialization.Wrap(err) } s.messageMutex.Lock() defer s.messageMutex.Unlock() ds, err := s.getDeviceChainKeyForGroupAndDevice(ctx, groupPublicKey, md.Device()) - if errcode.Is(err, errcode.ErrMissingInput) { + if errcode.Is(err, errcode.ErrCode_ErrMissingInput) { // If secret does not exist, create it deviceChainKey, err := newDeviceChainKey() if err != nil { - return nil, errcode.ErrCryptoKeyGeneration.Wrap(err) + return nil, errcode.ErrCode_ErrCryptoKeyGeneration.Wrap(err) } if err = s.registerChainKey(ctx, group, md.Device(), deviceChainKey, true); err != nil { - return nil, errcode.ErrMessageKeyPersistencePut.Wrap(err) + return nil, errcode.ErrCode_ErrMessageKeyPersistencePut.Wrap(err) } return deviceChainKey, nil } if err != nil { - return nil, errcode.ErrMessageKeyPersistenceGet.Wrap(err) + return nil, errcode.ErrCode_ErrMessageKeyPersistenceGet.Wrap(err) } return ds, nil @@ -228,21 +227,21 @@ func (s *secretStore) getOwnDeviceChainKeyForGroup(ctx context.Context, group *p // It is the exported version of registerChainKey. func (s *secretStore) RegisterChainKey(ctx context.Context, group *protocoltypes.Group, senderDevicePublicKey crypto.PubKey, encryptedDeviceChainKey []byte) error { if s == nil { - return errcode.ErrInvalidInput.Wrap(fmt.Errorf("calling method of a non instantiated message keystore")) + return errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("calling method of a non instantiated message keystore")) } if s.deviceKeystore == nil { - return errcode.ErrCryptoSignature.Wrap(fmt.Errorf("message keystore is opened in read-only mode")) + return errcode.ErrCode_ErrCryptoSignature.Wrap(fmt.Errorf("message keystore is opened in read-only mode")) } localMemberDevice, err := s.deviceKeystore.memberDeviceForGroup(group) if err != nil { - return errcode.ErrGroupMemberUnknownGroupID.Wrap(err) + return errcode.ErrCode_ErrGroupMemberUnknownGroupID.Wrap(err) } deviceChainKey, err := decryptDeviceChainKey(encryptedDeviceChainKey, group, localMemberDevice.member, senderDevicePublicKey) if err != nil { - return errcode.ErrCryptoDecrypt.Wrap(err) + return errcode.ErrCode_ErrCryptoDecrypt.Wrap(err) } hasSecretBeenSentByCurrentDevice := localMemberDevice.Member().Equals(senderDevicePublicKey) @@ -255,12 +254,12 @@ func (s *secretStore) RegisterChainKey(ctx context.Context, group *protocoltypes // precompute and store in the cache namespace the next message keys. func (s *secretStore) registerChainKey(ctx context.Context, group *protocoltypes.Group, devicePublicKey crypto.PubKey, deviceChainKey *protocoltypes.DeviceChainKey, isCurrentDeviceChainKey bool) error { if s == nil { - return errcode.ErrInvalidInput.Wrap(fmt.Errorf("calling method of a non instantiated message keystore")) + return errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("calling method of a non instantiated message keystore")) } groupPublicKey, err := group.GetPubKey() if err != nil { - return errcode.ErrDeserialization.Wrap(err) + return errcode.ErrCode_ErrDeserialization.Wrap(err) } if _, err := s.getDeviceChainKeyForGroupAndDevice(ctx, groupPublicKey, devicePublicKey); err == nil { @@ -280,7 +279,7 @@ func (s *secretStore) registerChainKey(ctx context.Context, group *protocoltypes // If own Device store key as is, no need to precompute future keys if isCurrentDeviceChainKey { if err := s.putDeviceChainKey(ctx, groupPublicKey, devicePublicKey, deviceChainKey); err != nil { - return errcode.ErrInternal.Wrap(err) + return errcode.ErrCode_ErrInternal.Wrap(err) } return nil @@ -290,12 +289,12 @@ func (s *secretStore) registerChainKey(ctx context.Context, group *protocoltypes if deviceChainKey, err = s.preComputeKeys(ctx, devicePublicKey, groupPublicKey, deviceChainKey); err != nil { s.messageMutex.Unlock() - return errcode.ErrCryptoKeyGeneration.Wrap(err) + return errcode.ErrCode_ErrCryptoKeyGeneration.Wrap(err) } if err := s.putDeviceChainKey(ctx, groupPublicKey, devicePublicKey, deviceChainKey); err != nil { s.messageMutex.Unlock() - return errcode.ErrInternal.Wrap(err) + return errcode.ErrCode_ErrInternal.Wrap(err) } s.messageMutex.Unlock() @@ -313,7 +312,7 @@ func (s *secretStore) registerChainKey(ctx context.Context, group *protocoltypes // preComputeKeys precomputes the next m.preComputedKeysCount keys for the given device and group and put them in the cache namespace. func (s *secretStore) preComputeKeys(ctx context.Context, devicePublicKey crypto.PubKey, groupPublicKey crypto.PubKey, deviceChainKey *protocoltypes.DeviceChainKey) (*protocoltypes.DeviceChainKey, error) { if s == nil { - return nil, errcode.ErrInvalidInput.Wrap(fmt.Errorf("calling method of a non instantiated message keystore")) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("calling method of a non instantiated message keystore")) } chainKeyValue := deviceChainKey.ChainKey @@ -321,12 +320,12 @@ func (s *secretStore) preComputeKeys(ctx context.Context, devicePublicKey crypto groupPublicKeyBytes, err := groupPublicKey.Raw() if err != nil { - return nil, errcode.ErrSerialization.Wrap(err) + return nil, errcode.ErrCode_ErrSerialization.Wrap(err) } knownDeviceChainKey, err := s.getDeviceChainKeyForGroupAndDevice(ctx, groupPublicKey, devicePublicKey) - if err != nil && !errcode.Is(err, errcode.ErrMissingInput) { - return nil, errcode.ErrInternal.Wrap(err) + if err != nil && !errcode.Is(err, errcode.ErrCode_ErrMissingInput) { + return nil, errcode.ErrCode_ErrInternal.Wrap(err) } var preComputedKeys []computedMessageKey @@ -334,13 +333,13 @@ func (s *secretStore) preComputeKeys(ctx context.Context, devicePublicKey crypto counter++ knownMK, err := s.getPrecomputedMessageKey(ctx, groupPublicKey, devicePublicKey, counter) - if err != nil && !errcode.Is(err, errcode.ErrMissingInput) { - return nil, errcode.ErrInternal.Wrap(err) + if err != nil && !errcode.Is(err, errcode.ErrCode_ErrMissingInput) { + return nil, errcode.ErrCode_ErrInternal.Wrap(err) } newChainKeyValue, mk, err := deriveNextKeys(chainKeyValue, nil, groupPublicKeyBytes) if err != nil { - return nil, errcode.TODO.Wrap(err) + return nil, errcode.ErrCode_TODO.Wrap(err) } chainKeyValue = newChainKeyValue @@ -356,7 +355,7 @@ func (s *secretStore) preComputeKeys(ctx context.Context, devicePublicKey crypto err = s.putPrecomputedKeys(ctx, groupPublicKey, devicePublicKey, preComputedKeys) if err != nil { - return nil, errcode.TODO.Wrap(err) + return nil, errcode.ErrCode_TODO.Wrap(err) } return &protocoltypes.DeviceChainKey{ @@ -378,21 +377,21 @@ func (s *secretStore) getPrecomputedKeyExpectedCount() int { // preComputeNextKey precomputes the next key for the given group and device and adds it to the cache namespace. func (s *secretStore) preComputeNextKey(ctx context.Context, groupPublicKey crypto.PubKey, devicePublicKey crypto.PubKey) (*protocoltypes.DeviceChainKey, error) { if s == nil { - return nil, errcode.ErrInvalidInput.Wrap(fmt.Errorf("calling method of a non instantiated message keystore")) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("calling method of a non instantiated message keystore")) } if devicePublicKey == nil { - return nil, errcode.ErrInvalidInput.Wrap(fmt.Errorf("devicePublicKey cannot be nil")) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("devicePublicKey cannot be nil")) } groupPublicKeyBytes, err := groupPublicKey.Raw() if err != nil { - return nil, errcode.ErrSerialization.Wrap(err) + return nil, errcode.ErrCode_ErrSerialization.Wrap(err) } ds, err := s.getDeviceChainKeyForGroupAndDevice(ctx, groupPublicKey, devicePublicKey) if err != nil { - return nil, errcode.ErrInternal.Wrap(err) + return nil, errcode.ErrCode_ErrInternal.Wrap(err) } newCounter := ds.Counter + 1 @@ -400,12 +399,12 @@ func (s *secretStore) preComputeNextKey(ctx context.Context, groupPublicKey cryp // TODO: Salt? newCK, mk, err := deriveNextKeys(ds.ChainKey, nil, groupPublicKeyBytes) if err != nil { - return nil, errcode.TODO.Wrap(err) + return nil, errcode.ErrCode_TODO.Wrap(err) } err = s.putPrecomputedKeys(ctx, groupPublicKey, devicePublicKey, []computedMessageKey{{newCounter, &mk}}) if err != nil { - return nil, errcode.TODO.Wrap(err) + return nil, errcode.ErrCode_TODO.Wrap(err) } return &protocoltypes.DeviceChainKey{ @@ -418,17 +417,17 @@ func (s *secretStore) preComputeNextKey(ctx context.Context, groupPublicKey cryp // namespace for the given group and device at the given counter. func (s *secretStore) getPrecomputedMessageKey(ctx context.Context, groupPublicKey crypto.PubKey, devicePublicKey crypto.PubKey, counter uint64) (*messageKey, error) { if s == nil { - return nil, errcode.ErrInvalidInput.Wrap(fmt.Errorf("calling method of a non instantiated message keystore")) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("calling method of a non instantiated message keystore")) } deviceRaw, err := devicePublicKey.Raw() if err != nil { - return nil, errcode.ErrSerialization.Wrap(err) + return nil, errcode.ErrCode_ErrSerialization.Wrap(err) } groupRaw, err := groupPublicKey.Raw() if err != nil { - return nil, errcode.ErrSerialization.Wrap(err) + return nil, errcode.ErrCode_ErrSerialization.Wrap(err) } id := dsKeyForPrecomputedMessageKey(groupRaw, deviceRaw, counter) @@ -436,15 +435,15 @@ func (s *secretStore) getPrecomputedMessageKey(ctx context.Context, groupPublicK key, err := s.datastore.Get(ctx, id) if err == datastore.ErrNotFound { - return nil, errcode.ErrMissingInput.Wrap(fmt.Errorf("key for message does not exist in datastore")) + return nil, errcode.ErrCode_ErrMissingInput.Wrap(fmt.Errorf("key for message does not exist in datastore")) } if err != nil { - return nil, errcode.ErrMessageKeyPersistenceGet.Wrap(err) + return nil, errcode.ErrCode_ErrMessageKeyPersistenceGet.Wrap(err) } keyArray, err := cryptoutil.KeySliceToArray(key) if err != nil { - return nil, errcode.ErrSerialization.Wrap(err) + return nil, errcode.ErrCode_ErrSerialization.Wrap(err) } return (*messageKey)(keyArray), nil @@ -454,7 +453,7 @@ func (s *secretStore) getPrecomputedMessageKey(ctx context.Context, groupPublicK // It will try to use a batch if the store supports it. func (s *secretStore) putPrecomputedKeys(ctx context.Context, groupPublicKey crypto.PubKey, devicePublicKey crypto.PubKey, preComputedMessageKeys []computedMessageKey) error { if s == nil { - return errcode.ErrInvalidInput.Wrap(fmt.Errorf("calling method of a non instantiated message keystore")) + return errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("calling method of a non instantiated message keystore")) } s.logger.Debug("putting precomputed keys", zap.Int("count", len(preComputedMessageKeys))) @@ -465,12 +464,12 @@ func (s *secretStore) putPrecomputedKeys(ctx context.Context, groupPublicKey cry deviceRaw, err := devicePublicKey.Raw() if err != nil { - return errcode.ErrSerialization.Wrap(err) + return errcode.ErrCode_ErrSerialization.Wrap(err) } groupRaw, err := groupPublicKey.Raw() if err != nil { - return errcode.ErrSerialization.Wrap(err) + return errcode.ErrCode_ErrSerialization.Wrap(err) } if batchedDatastore, ok := s.datastore.(datastore.BatchingFeature); ok { @@ -490,12 +489,12 @@ func (s *secretStore) putPrecomputedKeysBatched(ctx context.Context, batch datas id := dsKeyForPrecomputedMessageKey(groupRaw, deviceRaw, preComputedKey.counter) if err := batch.Put(ctx, id, preComputedKey.messageKey[:]); err != nil { - return errcode.ErrMessageKeyPersistencePut.Wrap(err) + return errcode.ErrCode_ErrMessageKeyPersistencePut.Wrap(err) } } if err := batch.Commit(ctx); err != nil { - return errcode.ErrMessageKeyPersistencePut.Wrap(err) + return errcode.ErrCode_ErrMessageKeyPersistencePut.Wrap(err) } return nil @@ -507,7 +506,7 @@ func (s *secretStore) putPrecomputedKeysNonBatched(ctx context.Context, groupRaw id := dsKeyForPrecomputedMessageKey(groupRaw, deviceRaw, preComputedKey.counter) if err := s.datastore.Put(ctx, id, preComputedKey.messageKey[:]); err != nil { - return errcode.ErrMessageKeyPersistencePut.Wrap(err) + return errcode.ErrCode_ErrMessageKeyPersistencePut.Wrap(err) } } @@ -517,7 +516,7 @@ func (s *secretStore) putPrecomputedKeysNonBatched(ctx context.Context, groupRaw // putKeyForCID puts the given message key in the datastore for a specified CID. func (s *secretStore) putKeyForCID(ctx context.Context, messageCID cid.Cid, messageKey *messageKey) error { if s == nil { - return errcode.ErrInvalidInput.Wrap(fmt.Errorf("calling method of a non instantiated message keystore")) + return errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("calling method of a non instantiated message keystore")) } if !messageCID.Defined() { @@ -526,7 +525,7 @@ func (s *secretStore) putKeyForCID(ctx context.Context, messageCID cid.Cid, mess err := s.datastore.Put(ctx, dsKeyForMessageKeyByCID(messageCID), messageKey[:]) if err != nil { - return errcode.ErrMessageKeyPersistencePut.Wrap(err) + return errcode.ErrCode_ErrMessageKeyPersistencePut.Wrap(err) } return nil @@ -541,17 +540,17 @@ func (s *secretStore) OpenEnvelopePayload(ctx context.Context, msgEnvelope *prot msgBytes, decryptionCtx, err := s.openPayload(ctx, msgCID, groupPublicKey, msgEnvelope.Message, msgHeaders) if err != nil { - return nil, errcode.ErrCryptoDecryptPayload.Wrap(err) + return nil, errcode.ErrCode_ErrCryptoDecryptPayload.Wrap(err) } if err := s.postDecryptActions(ctx, decryptionCtx, groupPublicKey, ownDevicePublicKey, msgHeaders); err != nil { - return nil, errcode.TODO.Wrap(err) + return nil, errcode.ErrCode_TODO.Wrap(err) } var msg protocoltypes.EncryptedMessage - err = msg.Unmarshal(msgBytes) + err = proto.Unmarshal(msgBytes, &msg) if err != nil { - return nil, errcode.ErrDeserialization.Wrap(err) + return nil, errcode.ErrCode_ErrDeserialization.Wrap(err) } return &msg, nil @@ -563,7 +562,7 @@ func (s *secretStore) OpenEnvelopePayload(ctx context.Context, msgEnvelope *prot // the message. func (s *secretStore) openPayload(ctx context.Context, msgCID cid.Cid, groupPublicKey crypto.PubKey, payload []byte, msgHeaders *protocoltypes.MessageHeaders) ([]byte, *decryptionContext, error) { if s == nil { - return nil, nil, errcode.ErrInvalidInput.Wrap(fmt.Errorf("calling method of a non instantiated message keystore")) + return nil, nil, errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("calling method of a non instantiated message keystore")) } var ( @@ -578,14 +577,14 @@ func (s *secretStore) openPayload(ctx context.Context, msgCID cid.Cid, groupPubl if decryptionCtx.messageKey, err = s.getKeyForCID(ctx, msgCID); err == nil { decryptionCtx.newlyDecrypted = false } else { - publicKey, err = crypto.UnmarshalEd25519PublicKey(msgHeaders.DevicePK) + publicKey, err = crypto.UnmarshalEd25519PublicKey(msgHeaders.DevicePk) if err != nil { - return nil, nil, errcode.ErrDeserialization.Wrap(err) + return nil, nil, errcode.ErrCode_ErrDeserialization.Wrap(err) } decryptionCtx.messageKey, err = s.getPrecomputedMessageKey(ctx, groupPublicKey, publicKey, msgHeaders.Counter) if err != nil { - return nil, nil, errcode.ErrCryptoDecrypt.Wrap(err) + return nil, nil, errcode.ErrCode_ErrCryptoDecrypt.Wrap(err) } } @@ -598,14 +597,14 @@ func (s *secretStore) openPayload(ctx context.Context, msgCID cid.Cid, groupPubl func (s *secretStore) openPayloadWithMessageKey(decryptionCtx *decryptionContext, devicePublicKey crypto.PubKey, payload []byte, headers *protocoltypes.MessageHeaders) ([]byte, *decryptionContext, error) { msg, ok := secretbox.Open(nil, payload, uint64AsNonce(headers.Counter), (*[32]byte)(decryptionCtx.messageKey)) if !ok { - return nil, nil, errcode.ErrCryptoDecrypt.Wrap(fmt.Errorf("secret box failed to open message payload")) + return nil, nil, errcode.ErrCode_ErrCryptoDecrypt.Wrap(fmt.Errorf("secret box failed to open message payload")) } if decryptionCtx.newlyDecrypted { if ok, err := devicePublicKey.Verify(msg, headers.Sig); !ok { - return nil, nil, errcode.ErrCryptoSignatureVerification.Wrap(fmt.Errorf("unable to verify message signature")) + return nil, nil, errcode.ErrCode_ErrCryptoSignatureVerification.Wrap(fmt.Errorf("unable to verify message signature")) } else if err != nil { - return nil, nil, errcode.ErrCryptoSignatureVerification.Wrap(err) + return nil, nil, errcode.ErrCode_ErrCryptoSignatureVerification.Wrap(err) } } @@ -617,22 +616,22 @@ func (s *secretStore) openPayloadWithMessageKey(decryptionCtx *decryptionContext // getKeyForCID retrieves the message key for the given message CID. func (s *secretStore) getKeyForCID(ctx context.Context, msgCID cid.Cid) (*messageKey, error) { if s == nil { - return nil, errcode.ErrInvalidInput.Wrap(fmt.Errorf("calling method of a non instantiated message keystore")) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("calling method of a non instantiated message keystore")) } if !msgCID.Defined() { - return nil, errcode.ErrInvalidInput.Wrap(fmt.Errorf("undefined message CID")) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("undefined message CID")) } msgKey, err := s.datastore.Get(ctx, dsKeyForMessageKeyByCID(msgCID)) if err == datastore.ErrNotFound { - return nil, errcode.ErrInvalidInput.Wrap(err) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(err) } msgKeyArray, err := cryptoutil.KeySliceToArray(msgKey) if err != nil { - return nil, errcode.ErrSerialization.Wrap(err) + return nil, errcode.ErrCode_ErrSerialization.Wrap(err) } return (*messageKey)(msgKeyArray), nil @@ -641,22 +640,22 @@ func (s *secretStore) getKeyForCID(ctx context.Context, msgCID cid.Cid) (*messag // putDeviceChainKey stores the chain key for the given group and device. func (s *secretStore) putDeviceChainKey(ctx context.Context, groupPublicKey crypto.PubKey, devicePublicKey crypto.PubKey, deviceChainKey *protocoltypes.DeviceChainKey) error { if s == nil { - return errcode.ErrInvalidInput.Wrap(fmt.Errorf("calling method of a non instantiated message keystore")) + return errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("calling method of a non instantiated message keystore")) } - deviceChainKeyBytes, err := deviceChainKey.Marshal() + deviceChainKeyBytes, err := proto.Marshal(deviceChainKey) if err != nil { - return errcode.ErrSerialization.Wrap(err) + return errcode.ErrCode_ErrSerialization.Wrap(err) } datastoreKey, err := dsKeyForCurrentChainKey(groupPublicKey, devicePublicKey) if err != nil { - return errcode.ErrSerialization.Wrap(err) + return errcode.ErrCode_ErrSerialization.Wrap(err) } err = s.datastore.Put(ctx, datastoreKey, deviceChainKeyBytes) if err != nil { - return errcode.ErrMessageKeyPersistencePut.Wrap(err) + return errcode.ErrCode_ErrMessageKeyPersistencePut.Wrap(err) } return nil @@ -670,25 +669,25 @@ func (s *secretStore) putDeviceChainKey(ctx context.Context, groupPublicKey cryp // stores the next message key in the cache. func (s *secretStore) SealEnvelope(ctx context.Context, group *protocoltypes.Group, messagePayload []byte) ([]byte, error) { if s == nil { - return nil, errcode.ErrInvalidInput.Wrap(fmt.Errorf("calling method of a non instantiated message keystore")) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("calling method of a non instantiated message keystore")) } if s.deviceKeystore == nil { - return nil, errcode.ErrCryptoSignature.Wrap(fmt.Errorf("message keystore is opened in read-only mode")) + return nil, errcode.ErrCode_ErrCryptoSignature.Wrap(fmt.Errorf("message keystore is opened in read-only mode")) } if group == nil { - return nil, errcode.ErrInvalidInput.Wrap(fmt.Errorf("group cannot be nil")) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("group cannot be nil")) } localMemberDevice, err := s.deviceKeystore.memberDeviceForGroup(group) if err != nil { - return nil, errcode.ErrGroupMemberUnknownGroupID.Wrap(err) + return nil, errcode.ErrCode_ErrGroupMemberUnknownGroupID.Wrap(err) } groupPublicKey, err := group.GetPubKey() if err != nil { - return nil, errcode.ErrDeserialization.Wrap(err) + return nil, errcode.ErrCode_ErrDeserialization.Wrap(err) } s.messageMutex.Lock() @@ -696,16 +695,16 @@ func (s *secretStore) SealEnvelope(ctx context.Context, group *protocoltypes.Gro deviceChainKey, err := s.getDeviceChainKeyForGroupAndDevice(ctx, groupPublicKey, localMemberDevice.Device()) if err != nil { - return nil, errcode.ErrInternal.Wrap(fmt.Errorf("unable to get device chainkey: %w", err)) + return nil, errcode.ErrCode_ErrInternal.Wrap(fmt.Errorf("unable to get device chainkey: %w", err)) } env, err := sealEnvelope(messagePayload, deviceChainKey, localMemberDevice.device, group) if err != nil { - return nil, errcode.ErrCryptoEncrypt.Wrap(fmt.Errorf("unable to seal envelope: %w", err)) + return nil, errcode.ErrCode_ErrCryptoEncrypt.Wrap(fmt.Errorf("unable to seal envelope: %w", err)) } if err := s.deriveDeviceChainKey(ctx, group, localMemberDevice.Device()); err != nil { - return nil, errcode.ErrCryptoKeyGeneration.Wrap(err) + return nil, errcode.ErrCode_ErrCryptoKeyGeneration.Wrap(err) } return env, nil @@ -715,25 +714,25 @@ func (s *secretStore) SealEnvelope(ctx context.Context, group *protocoltypes.Gro // It also updates the device chain key in the keystore. func (s *secretStore) deriveDeviceChainKey(ctx context.Context, group *protocoltypes.Group, devicePublicKey crypto.PubKey) error { if s == nil { - return errcode.ErrInvalidInput.Wrap(fmt.Errorf("calling method of a non instantiated message keystore")) + return errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("calling method of a non instantiated message keystore")) } if devicePublicKey == nil { - return errcode.ErrInvalidInput.Wrap(fmt.Errorf("device public key cannot be nil")) + return errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("device public key cannot be nil")) } groupPublicKey, err := group.GetPubKey() if err != nil { - return errcode.ErrDeserialization.Wrap(err) + return errcode.ErrCode_ErrDeserialization.Wrap(err) } deviceChainKey, err := s.preComputeNextKey(ctx, groupPublicKey, devicePublicKey) if err != nil { - return errcode.ErrCryptoKeyGeneration.Wrap(err) + return errcode.ErrCode_ErrCryptoKeyGeneration.Wrap(err) } if err = s.updateCurrentKey(ctx, groupPublicKey, devicePublicKey, deviceChainKey); err != nil { - return errcode.ErrCryptoKeyGeneration.Wrap(err) + return errcode.ErrCode_ErrCryptoKeyGeneration.Wrap(err) } return nil @@ -743,12 +742,12 @@ func (s *secretStore) deriveDeviceChainKey(ctx context.Context, group *protocolt // given device secret has a higher counter. func (s *secretStore) updateCurrentKey(ctx context.Context, groupPublicKey crypto.PubKey, devicePublicKey crypto.PubKey, deviceChainKey *protocoltypes.DeviceChainKey) error { if s == nil { - return errcode.ErrInvalidInput.Wrap(fmt.Errorf("calling method of a non instantiated message keystore")) + return errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("calling method of a non instantiated message keystore")) } currentDeviceChainKey, err := s.getDeviceChainKeyForGroupAndDevice(ctx, groupPublicKey, devicePublicKey) if err != nil { - return errcode.ErrInternal.Wrap(err) + return errcode.ErrCode_ErrInternal.Wrap(err) } // FIXME: counter is set randomly and can overflow to 0 @@ -757,7 +756,7 @@ func (s *secretStore) updateCurrentKey(ctx context.Context, groupPublicKey crypt } if err = s.putDeviceChainKey(ctx, groupPublicKey, devicePublicKey, deviceChainKey); err != nil { - return errcode.ErrInternal.Wrap(err) + return errcode.ErrCode_ErrInternal.Wrap(err) } return nil @@ -770,27 +769,27 @@ func (s *secretStore) updateCurrentKey(ctx context.Context, groupPublicKey crypt // update the device's chain key. func (s *secretStore) OutOfStoreMessageOpen(ctx context.Context, envelope *protocoltypes.OutOfStoreMessage, groupPublicKey crypto.PubKey) ([]byte, bool, error) { if s == nil { - return nil, false, errcode.ErrInvalidInput.Wrap(fmt.Errorf("calling method of a non instantiated message keystore")) + return nil, false, errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("calling method of a non instantiated message keystore")) } if envelope == nil { - return nil, false, errcode.ErrInvalidInput.Wrap(fmt.Errorf("envelope cannot be nil")) + return nil, false, errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("envelope cannot be nil")) } if groupPublicKey == nil { - return nil, false, errcode.ErrInvalidInput.Wrap(fmt.Errorf("group public key cannot be nil")) + return nil, false, errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("group public key cannot be nil")) } - devicePublicKey, err := crypto.UnmarshalEd25519PublicKey(envelope.DevicePK) + devicePublicKey, err := crypto.UnmarshalEd25519PublicKey(envelope.DevicePk) if err != nil { - return nil, false, errcode.ErrDeserialization.Wrap(err) + return nil, false, errcode.ErrCode_ErrDeserialization.Wrap(err) } c := cid.Undef - if len(envelope.CID) > 0 { - _, c, err = cid.CidFromBytes(envelope.CID) + if len(envelope.Cid) > 0 { + _, c, err = cid.CidFromBytes(envelope.Cid) if err != nil { - return nil, false, errcode.ErrDeserialization.Wrap(err) + return nil, false, errcode.ErrCode_ErrDeserialization.Wrap(err) } } @@ -803,27 +802,27 @@ func (s *secretStore) OutOfStoreMessageOpen(ctx context.Context, envelope *proto } else { decryptionCtx.messageKey, err = s.getPrecomputedMessageKey(ctx, groupPublicKey, devicePublicKey, envelope.Counter) if err != nil { - return nil, false, errcode.ErrCryptoDecrypt.Wrap(err) + return nil, false, errcode.ErrCode_ErrCryptoDecrypt.Wrap(err) } } clear, decryptionCtx, err := s.openPayloadWithMessageKey(decryptionCtx, devicePublicKey, envelope.EncryptedPayload, &protocoltypes.MessageHeaders{ Counter: envelope.Counter, - DevicePK: envelope.DevicePK, + DevicePk: envelope.DevicePk, Sig: envelope.Sig, }) if err != nil { - return nil, false, errcode.ErrCryptoDecrypt.Wrap(err) + return nil, false, errcode.ErrCode_ErrCryptoDecrypt.Wrap(err) } if ok, err := devicePublicKey.Verify(clear, envelope.Sig); !ok { - return nil, false, errcode.ErrCryptoSignatureVerification.Wrap(fmt.Errorf("unable to verify message signature")) + return nil, false, errcode.ErrCode_ErrCryptoSignatureVerification.Wrap(fmt.Errorf("unable to verify message signature")) } else if err != nil { - return nil, false, errcode.ErrCryptoSignatureVerification.Wrap(err) + return nil, false, errcode.ErrCode_ErrCryptoSignatureVerification.Wrap(err) } if _, err = s.preComputeNextKey(ctx, groupPublicKey, devicePublicKey); err != nil { - return nil, false, errcode.ErrInternal.Wrap(err) + return nil, false, errcode.ErrCode_ErrInternal.Wrap(err) } return clear, decryptionCtx.newlyDecrypted, nil @@ -838,12 +837,12 @@ func (s *secretStore) OutOfStoreGetGroupPublicKeyByGroupReference(ctx context.Co s.messageMutex.RUnlock() if err != nil { - return nil, errcode.ErrNotFound.Wrap(err) + return nil, errcode.ErrCode_ErrNotFound.Wrap(err) } groupPublicKey, err := crypto.UnmarshalEd25519PublicKey(pk) if err != nil { - return nil, errcode.ErrDeserialization.Wrap(err) + return nil, errcode.ErrCode_ErrDeserialization.Wrap(err) } return groupPublicKey, nil @@ -934,12 +933,12 @@ func (s *secretStore) firstLastCachedGroupRefsForMember(ctx context.Context, dev // No mutex here bytes, err := s.datastore.Get(ctx, key) if err != nil { - return 0, 0, errcode.ErrDBRead.Wrap(err) + return 0, 0, errcode.ErrCode_ErrDBRead.Wrap(err) } ret := protocoltypes.FirstLastCounters{} - if err := ret.Unmarshal(bytes); err != nil { - return 0, 0, errcode.ErrDeserialization.Wrap(err) + if err := proto.Unmarshal(bytes, &ret); err != nil { + return 0, 0, errcode.ErrCode_ErrDeserialization.Wrap(err) } return ret.First, ret.Last, nil @@ -954,9 +953,9 @@ func (s *secretStore) putFirstLastCachedGroupRefsForMember(ctx context.Context, First: first, Last: last, } - bytes, err := fistLast.Marshal() + bytes, err := proto.Marshal(&fistLast) if err != nil { - return errcode.ErrSerialization.Wrap(err) + return errcode.ErrCode_ErrSerialization.Wrap(err) } // Not mutex here @@ -971,11 +970,11 @@ func sealPayload(payload []byte, ds *protocoltypes.DeviceChainKey, devicePrivate sig, err := devicePrivateKey.Sign(payload) if err != nil { - return nil, nil, errcode.ErrCryptoSignature.Wrap(err) + return nil, nil, errcode.ErrCode_ErrCryptoSignature.Wrap(err) } if _, msgKey, err = deriveNextKeys(ds.ChainKey, nil, g.GetPublicKey()); err != nil { - return nil, nil, errcode.ErrCryptoKeyGeneration.Wrap(err) + return nil, nil, errcode.ErrCode_ErrCryptoKeyGeneration.Wrap(err) } return secretbox.Seal(nil, payload, uint64AsNonce(ds.Counter+1), &msgKey), sig, nil @@ -984,28 +983,28 @@ func sealPayload(payload []byte, ds *protocoltypes.DeviceChainKey, devicePrivate func sealEnvelope(messagePayload []byte, deviceChainKey *protocoltypes.DeviceChainKey, devicePrivateKey crypto.PrivKey, g *protocoltypes.Group) ([]byte, error) { encryptedPayload, sig, err := sealPayload(messagePayload, deviceChainKey, devicePrivateKey, g) if err != nil { - return nil, errcode.ErrCryptoEncrypt.Wrap(err) + return nil, errcode.ErrCode_ErrCryptoEncrypt.Wrap(err) } devicePublicKeyRaw, err := devicePrivateKey.GetPublic().Raw() if err != nil { - return nil, errcode.ErrSerialization.Wrap(err) + return nil, errcode.ErrCode_ErrSerialization.Wrap(err) } h := &protocoltypes.MessageHeaders{ Counter: deviceChainKey.Counter + 1, - DevicePK: devicePublicKeyRaw, + DevicePk: devicePublicKeyRaw, Sig: sig, } headers, err := proto.Marshal(h) if err != nil { - return nil, errcode.ErrSerialization.Wrap(err) + return nil, errcode.ErrCode_ErrSerialization.Wrap(err) } nonce, err := cryptoutil.GenerateNonce() if err != nil { - return nil, errcode.ErrCryptoNonceGeneration.Wrap(err) + return nil, errcode.ErrCode_ErrCryptoNonceGeneration.Wrap(err) } encryptedHeaders := secretbox.Seal(nil, headers, nonce, g.GetSharedSecret()) @@ -1016,7 +1015,7 @@ func sealEnvelope(messagePayload []byte, deviceChainKey *protocoltypes.DeviceCha Nonce: nonce[:], }) if err != nil { - return nil, errcode.ErrSerialization.Wrap(err) + return nil, errcode.ErrCode_ErrSerialization.Wrap(err) } return env, nil @@ -1035,7 +1034,7 @@ func deriveNextKeys(chainKeyValue []byte, salt []byte, groupID []byte) ([]byte, // Generate Pseudo Random Key using chainKeyValue as IKM and salt prk := hkdf.Extract(hash, chainKeyValue, salt) if len(prk) == 0 { - return nil, nextMsg, errcode.ErrInternal.Wrap(fmt.Errorf("unable to instantiate pseudo random key")) + return nil, nextMsg, errcode.ErrCode_ErrInternal.Wrap(fmt.Errorf("unable to instantiate pseudo random key")) } // Expand using extracted prk and groupID as info (kind of namespace) @@ -1044,12 +1043,12 @@ func deriveNextKeys(chainKeyValue []byte, salt []byte, groupID []byte) ([]byte, // Generate next KDF and message keys nextCK, err := io.ReadAll(io.LimitReader(kdf, 32)) if err != nil { - return nil, nextMsg, errcode.ErrCryptoKeyGeneration.Wrap(err) + return nil, nextMsg, errcode.ErrCode_ErrCryptoKeyGeneration.Wrap(err) } nextMsgSlice, err := io.ReadAll(io.LimitReader(kdf, 32)) if err != nil { - return nil, nextMsg, errcode.ErrCryptoKeyGeneration.Wrap(err) + return nil, nextMsg, errcode.ErrCode_ErrCryptoKeyGeneration.Wrap(err) } copy(nextMsg[:], nextMsgSlice) diff --git a/pkg/secretstore/secret_store_messages_test.go b/pkg/secretstore/secret_store_messages_test.go index f9248320..1e650e81 100644 --- a/pkg/secretstore/secret_store_messages_test.go +++ b/pkg/secretstore/secret_store_messages_test.go @@ -12,6 +12,7 @@ import ( "github.com/libp2p/go-libp2p/core/crypto" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "google.golang.org/protobuf/proto" "berty.tech/weshnet" "berty.tech/weshnet/pkg/protocoltypes" @@ -80,7 +81,7 @@ func Test_EncryptMessageEnvelope(t *testing.T) { omd2, err := secretStore2.GetOwnMemberDeviceForGroup(g) assert.NoError(t, err) - payloadRef1, err := (&protocoltypes.EncryptedMessage{Plaintext: []byte("Test payload 1")}).Marshal() + payloadRef1, err := proto.Marshal(&protocoltypes.EncryptedMessage{Plaintext: []byte("Test payload 1")}) assert.NoError(t, err) deviceChainKey1For2, err := secretStore1.GetShareableChainKey(ctx, g, omd2.Member()) @@ -102,9 +103,9 @@ func Test_EncryptMessageEnvelope(t *testing.T) { assert.NoError(t, err) devRaw, err := omd1.Device().Raw() - assert.Equal(t, headers.DevicePK, devRaw) + assert.Equal(t, headers.DevicePk, devRaw) - payloadClrlBytes, err := payloadClr1.Marshal() + payloadClrlBytes, err := proto.Marshal(payloadClr1) assert.NoError(t, err) assert.Equal(t, payloadRef1, payloadClrlBytes) } diff --git a/pkg/secretstore/secret_store_test.go b/pkg/secretstore/secret_store_test.go index 37ff1bf0..2fb674ef 100644 --- a/pkg/secretstore/secret_store_test.go +++ b/pkg/secretstore/secret_store_test.go @@ -12,6 +12,7 @@ import ( "github.com/libp2p/go-libp2p/core/crypto" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "google.golang.org/protobuf/proto" "berty.tech/weshnet/pkg/protocoltypes" ) @@ -208,7 +209,7 @@ func Test_OutOfStoreDeserialize(t *testing.T) { outOfStoreMessageEnvelope, err := secretStore1.SealOutOfStoreMessageEnvelope(dummyCID, envHeaders, msgHeaders, group) require.NoError(t, err) - outOfStoreMessageEnvelopeBytes, err := outOfStoreMessageEnvelope.Marshal() + outOfStoreMessageEnvelopeBytes, err := proto.Marshal(outOfStoreMessageEnvelope) require.NoError(t, err) // Attempting to decrypt the message without a relay @@ -217,8 +218,8 @@ func Test_OutOfStoreDeserialize(t *testing.T) { require.NoError(t, err) require.Equal(t, testPayload, clearPayload) - require.Equal(t, device1Raw, openedOutOfStoreMessage.DevicePK) - require.Equal(t, dummyCID.Bytes(), openedOutOfStoreMessage.CID) + require.Equal(t, device1Raw, openedOutOfStoreMessage.DevicePk) + require.Equal(t, dummyCID.Bytes(), openedOutOfStoreMessage.Cid) require.Equal(t, group.PublicKey, groupFound.PublicKey) require.False(t, alreadyDecrypted) } @@ -278,7 +279,7 @@ func Test_EncryptMessageEnvelopeAndDerive(t *testing.T) { initialCounter := ds1.Counter for i := 0; i < 1000; i++ { - payloadRef, err := (&protocoltypes.EncryptedMessage{Plaintext: []byte("Test payload 1")}).Marshal() + payloadRef, err := proto.Marshal(&protocoltypes.EncryptedMessage{Plaintext: []byte("Test payload 1")}) assert.NoError(t, err) envEncrypted, err := mkh1.SealEnvelope(ctx, g, payloadRef) assert.NoError(t, err) @@ -303,9 +304,9 @@ func Test_EncryptMessageEnvelopeAndDerive(t *testing.T) { devRaw, err := omd1.Device().Raw() assert.NoError(t, err) - assert.Equal(t, headers.DevicePK, devRaw) + assert.Equal(t, headers.DevicePk, devRaw) - payloadClrBytes, err := payloadClr.Marshal() + payloadClrBytes, err := proto.Marshal(payloadClr) assert.NoError(t, err) assert.Equal(t, payloadRef, payloadClrBytes) } else { @@ -341,7 +342,7 @@ func mustMessageHeaders(t testing.TB, omd OwnMemberDevice, counter uint64, paylo return &protocoltypes.MessageHeaders{ Counter: counter, - DevicePK: pkB, + DevicePk: pkB, Sig: sig, } } @@ -549,7 +550,7 @@ func TestGetGroupForContact(t *testing.T) { group, err := getGroupForContact(privateKey) require.NoError(t, err) - require.Equal(t, group.GroupType, protocoltypes.GroupTypeContact) + require.Equal(t, group.GroupType, protocoltypes.GroupType_GroupTypeContact) require.Equal(t, len(group.PublicKey), 32) require.Equal(t, len(group.Secret), 32) } diff --git a/pkg/testutil/filters.go b/pkg/testutil/filters.go index 9d1cdfc4..133e9fff 100644 --- a/pkg/testutil/filters.go +++ b/pkg/testutil/filters.go @@ -3,6 +3,8 @@ package testutil import ( "testing" + "google.golang.org/protobuf/proto" + "berty.tech/weshnet/pkg/protocoltypes" ) @@ -16,12 +18,12 @@ func TestFilterGroupMetadataPayloadSent(t *testing.T, events <-chan *protocoltyp continue } - if evt.Metadata.EventType != protocoltypes.EventTypeGroupMetadataPayloadSent { + if evt.Metadata.EventType != protocoltypes.EventType_EventTypeGroupMetadataPayloadSent { continue } m := &protocoltypes.GroupMetadataPayloadSent{} - if err := m.Unmarshal(evt.Event); err != nil { + if err := proto.Unmarshal(evt.Event, m); err != nil { continue } diff --git a/pkg/tinder/driver_localdiscovery.go b/pkg/tinder/driver_localdiscovery.go index 55198ae9..c2bc1f42 100644 --- a/pkg/tinder/driver_localdiscovery.go +++ b/pkg/tinder/driver_localdiscovery.go @@ -5,11 +5,11 @@ import ( "context" "encoding/hex" "fmt" + "io" "math/rand" "sync" "time" - ggio "github.com/gogo/protobuf/io" "github.com/libp2p/go-libp2p/core/discovery" "github.com/libp2p/go-libp2p/core/event" "github.com/libp2p/go-libp2p/core/host" @@ -20,6 +20,7 @@ import ( ma "github.com/multiformats/go-multiaddr" manet "github.com/multiformats/go-multiaddr/net" "go.uber.org/zap" + "google.golang.org/protobuf/proto" nearby "berty.tech/weshnet/pkg/androidnearby" ble "berty.tech/weshnet/pkg/ble-driver" @@ -318,13 +319,19 @@ func (ld *LocalDiscovery) sendRecordsToProximityPeers(ctx context.Context, recor func (ld *LocalDiscovery) handleStream(s network.Stream) { defer s.Reset() // nolint:errcheck - reader := ggio.NewDelimitedReader(s, network.MessageSizeMax) records := Records{} - if err := reader.ReadMsg(&records); err != nil { + buffer := make([]byte, network.MessageSizeMax) + n, err := s.Read(buffer) + if err != nil && err != io.EOF { ld.logger.Error("handleStream receive an invalid local record", zap.Error(err)) return } + if err := proto.Unmarshal(buffer[:n], &records); err != nil { + ld.logger.Error("handleStream unable to unmarshal local record", zap.Error(err)) + return + } + info := peer.AddrInfo{ ID: s.Conn().RemotePeer(), Addrs: []ma.Multiaddr{s.Conn().RemoteMultiaddr()}, @@ -375,8 +382,12 @@ func (ld *LocalDiscovery) sendRecordsTo(ctx context.Context, p peer.ID, records } defer s.Close() - pbw := ggio.NewDelimitedWriter(s) - if err := pbw.WriteMsg(records); err != nil { + recordsBytes, err := proto.Marshal(records) + if err != nil { + return fmt.Errorf("unable to marshal local record: %w", err) + } + + if _, err := s.Write(recordsBytes); err != nil { return fmt.Errorf("write error: %w", err) } diff --git a/scenario_test.go b/scenario_test.go index 09c2349c..4bf7e686 100644 --- a/scenario_test.go +++ b/scenario_test.go @@ -17,6 +17,7 @@ import ( "github.com/stretchr/testify/require" "go.uber.org/goleak" "go.uber.org/zap" + "google.golang.org/protobuf/proto" weshnet "berty.tech/weshnet" "berty.tech/weshnet/pkg/errcode" @@ -120,7 +121,7 @@ func testGroupDeviceStatus(ctx context.Context, t *testing.T, groupID []byte, tp defer cancel() sub, inErr := tp.Client.GroupDeviceStatus(ctx, &protocoltypes.GroupDeviceStatus_Request{ - GroupPK: groupID, + GroupPk: groupID, }) if inErr != nil { assert.NoError(t, inErr, fmt.Sprintf("error for client %d", i)) @@ -137,13 +138,13 @@ func testGroupDeviceStatus(ctx context.Context, t *testing.T, groupID []byte, tp break } - assert.Equal(t, evt.Type, protocoltypes.TypePeerConnected) + assert.Equal(t, evt.Type, protocoltypes.GroupDeviceStatus_TypePeerConnected) connected := &protocoltypes.GroupDeviceStatus_Reply_PeerConnected{} - err := connected.Unmarshal(evt.Event) + err := proto.Unmarshal(evt.Event, connected) assert.NoError(t, err, fmt.Sprintf("Unmarshal error for client %d", i)) statusReceivedLock.Lock() - statusReceived[i][connected.PeerID] = struct{}{} + statusReceived[i][connected.PeerId] = struct{}{} done := len(statusReceived[i]) == ntps-1 statusReceivedLock.Unlock() @@ -269,7 +270,7 @@ func TestScenario_MessageAccountGroup(t *testing.T) { // Send messages on account group messages := []string{"test1", "test2", "test3"} - sendMessageOnGroup(ctx, t, tps, tps, config.AccountGroupPK, messages) + sendMessageOnGroup(ctx, t, tps, tps, config.AccountGroupPk, messages) }) } @@ -286,7 +287,7 @@ func TestScenario_MessageAccountGroup_NonMocked(t *testing.T) { // Send messages on account group messages := []string{"test1", "test2", "test3"} - sendMessageOnGroup(ctx, t, tps, tps, config.AccountGroupPK, messages) + sendMessageOnGroup(ctx, t, tps, tps, config.AccountGroupPk, messages) }) } @@ -322,7 +323,7 @@ func TestScenario_MessageAccountAndMultiMemberGroups(t *testing.T) { // Send messages on account group messages = []string{"account1", "account2", "account3"} - sendMessageOnGroup(ctx, t, []*weshnet.TestingProtocol{account}, []*weshnet.TestingProtocol{account}, config.AccountGroupPK, messages) + sendMessageOnGroup(ctx, t, []*weshnet.TestingProtocol{account}, []*weshnet.TestingProtocol{account}, config.AccountGroupPk, messages) } t.Log("===== Send Messages again on MultiMember Group =====") @@ -359,7 +360,7 @@ func TestScenario_MessageAccountAndContactGroups(t *testing.T) { // Send messages on account group messages = []string{"account1", "account2", "account3"} - sendMessageOnGroup(ctx, t, []*weshnet.TestingProtocol{account}, []*weshnet.TestingProtocol{account}, config.AccountGroupPK, messages) + sendMessageOnGroup(ctx, t, []*weshnet.TestingProtocol{account}, []*weshnet.TestingProtocol{account}, config.AccountGroupPk, messages) } t.Log("===== Send Messages again on Contact Group =====") @@ -506,7 +507,7 @@ func addAsContact(ctx context.Context, t *testing.T, senders, receivers []*weshn } receiverSharableContact := &protocoltypes.ShareableContact{ - PK: receiverCfg.AccountPK, + Pk: receiverCfg.AccountPk, PublicRendezvousSeed: receiverRDVSeed, } @@ -516,8 +517,8 @@ func addAsContact(ctx context.Context, t *testing.T, senders, receivers []*weshn }) // Check if sender and receiver are the same account, should return the right error and skip - if bytes.Equal(senderCfg.AccountPK, receiverCfg.AccountPK) { - require.Equal(t, errcode.LastCode(err), errcode.ErrContactRequestSameAccount) + if bytes.Equal(senderCfg.AccountPk, receiverCfg.AccountPk) { + require.Equal(t, errcode.LastCode(err), errcode.ErrCode_ErrContactRequestSameAccount) continue } @@ -539,7 +540,7 @@ func addAsContact(ctx context.Context, t *testing.T, senders, receivers []*weshn } if receiverWasSender && senderWasReceiver { - require.Equal(t, errcode.LastCode(err), errcode.ErrContactRequestContactAlreadyAdded) + require.Equal(t, errcode.LastCode(err), errcode.ErrCode_ErrContactRequestContactAlreadyAdded) continue } @@ -552,7 +553,7 @@ func addAsContact(ctx context.Context, t *testing.T, senders, receivers []*weshn // Receiver subscribes to handle incoming contact request subCtx, subCancel := context.WithCancel(ctx) subReceiver, err := receiver.Client.GroupMetadataList(subCtx, &protocoltypes.GroupMetadataList_Request{ - GroupPK: receiverCfg.AccountGroupPK, + GroupPk: receiverCfg.AccountGroupPk, }) require.NoError(t, err) found := false @@ -566,16 +567,16 @@ func addAsContact(ctx context.Context, t *testing.T, senders, receivers []*weshn require.NoError(t, err) - if evt == nil || evt.Metadata.EventType != protocoltypes.EventTypeAccountContactRequestIncomingReceived { + if evt == nil || evt.Metadata.EventType != protocoltypes.EventType_EventTypeAccountContactRequestIncomingReceived { continue } req := &protocoltypes.AccountContactRequestIncomingReceived{} - err = req.Unmarshal(evt.Event) + err = proto.Unmarshal(evt.Event, req) require.NoError(t, err) - if bytes.Equal(senderCfg.AccountPK, req.ContactPK) { + if bytes.Equal(senderCfg.AccountPk, req.ContactPk) { found = true break } @@ -589,7 +590,7 @@ func addAsContact(ctx context.Context, t *testing.T, senders, receivers []*weshn // Receiver accepts contact request _, err = receiver.Client.ContactRequestAccept(ctx, &protocoltypes.ContactRequestAccept_Request{ - ContactPK: senderCfg.AccountPK, + ContactPk: senderCfg.AccountPk, }) require.NoError(t, err) @@ -599,25 +600,25 @@ func addAsContact(ctx context.Context, t *testing.T, senders, receivers []*weshn // Both receiver and sender activate the contact group grpInfo, err := sender.Client.GroupInfo(ctx, &protocoltypes.GroupInfo_Request{ - ContactPK: receiverCfg.AccountPK, + ContactPk: receiverCfg.AccountPk, }) require.NoError(t, err) _, err = sender.Client.ActivateGroup(ctx, &protocoltypes.ActivateGroup_Request{ - GroupPK: grpInfo.Group.PublicKey, + GroupPk: grpInfo.Group.PublicKey, }) require.NoError(t, err) grpInfo2, err := receiver.Client.GroupInfo(ctx, &protocoltypes.GroupInfo_Request{ - ContactPK: senderCfg.AccountPK, + ContactPk: senderCfg.AccountPk, }) require.NoError(t, err) require.Equal(t, grpInfo.Group.PublicKey, grpInfo2.Group.PublicKey) _, err = receiver.Client.ActivateGroup(ctx, &protocoltypes.ActivateGroup_Request{ - GroupPK: grpInfo2.Group.PublicKey, + GroupPk: grpInfo2.Group.PublicKey, }) require.NoError(t, err) @@ -641,7 +642,7 @@ func addAsContact(ctx context.Context, t *testing.T, senders, receivers []*weshn func getContactGroup(ctx context.Context, t *testing.T, source *weshnet.TestingProtocol, contact *weshnet.TestingProtocol) *protocoltypes.GroupInfo_Reply { // Get contact group contactGroup, err := source.Client.GroupInfo(ctx, &protocoltypes.GroupInfo_Request{ - ContactPK: getAccountPubKey(t, contact), + ContactPk: getAccountPubKey(t, contact), }) require.NoError(t, err) require.NotNil(t, contactGroup) @@ -713,7 +714,7 @@ func sendMessageOnGroup(ctx context.Context, t *testing.T, senders, receivers [] senderID := getAccountB64PubKey(t, sender) for _, message := range messages { _, err := sender.Client.AppMessageSend(ctx, &protocoltypes.AppMessageSend_Request{ - GroupPK: groupPK, + GroupPk: groupPK, Payload: []byte(senderID + " - " + message), }) @@ -740,7 +741,7 @@ func sendMessageOnGroup(ctx context.Context, t *testing.T, senders, receivers [] defer wg.Done() sub, err := receiver.Client.GroupMessageList(subCtx, &protocoltypes.GroupMessageList_Request{ - GroupPK: groupPK, + GroupPk: groupPK, }) if !assert.NoError(t, err) { return @@ -819,7 +820,7 @@ func sendMessageOnGroup(ctx context.Context, t *testing.T, senders, receivers [] defer wg.Done() req := protocoltypes.GroupMessageList_Request{ - GroupPK: groupPK, + GroupPk: groupPK, UntilNow: true, } diff --git a/service.go b/service.go index 78c095fb..51d1f1e5 100644 --- a/service.go +++ b/service.go @@ -163,7 +163,7 @@ func (opts *Opts) applyDefaults(ctx context.Context) error { Logger: opts.Logger, }) if err != nil { - return errcode.ErrInternal.Wrap(err) + return errcode.ErrCode_ErrInternal.Wrap(err) } opts.SecretStore = secretStore @@ -316,7 +316,7 @@ func NewService(opts Opts) (_ Service, err error) { if err := opts.applyDefaults(ctx); err != nil { cancel() - return nil, errcode.TODO.Wrap(err) + return nil, errcode.ErrCode_TODO.Wrap(err) } opts.Logger = opts.Logger.Named("pt") @@ -335,7 +335,7 @@ func NewService(opts Opts) (_ Service, err error) { accountGroupCtx, err := opts.OrbitDB.openAccountGroup(ctx, dbOpts, opts.IpfsCoreAPI) if err != nil { cancel() - return nil, errcode.TODO.Wrap(err) + return nil, errcode.ErrCode_TODO.Wrap(err) } opts.Logger.Debug("Opened account group", tyber.FormatStepLogFields(ctx, []tyber.Detail{{Name: "AccountGroup", Description: accountGroupCtx.group.String()}})...) @@ -348,7 +348,7 @@ func NewService(opts Opts) (_ Service, err error) { if contactRequestsManager, err = newContactRequestsManager(swiper, accountGroupCtx.metadataStore, opts.IpfsCoreAPI, opts.Logger); err != nil { cancel() - return nil, errcode.TODO.Wrap(err) + return nil, errcode.ErrCode_TODO.Wrap(err) } } else { opts.Logger.Warn("No tinder driver provided, incoming and outgoing contact requests won't be enabled", tyber.FormatStepLogFields(ctx, []tyber.Detail{})...) @@ -356,7 +356,7 @@ func NewService(opts Opts) (_ Service, err error) { if err := opts.SecretStore.PutGroup(ctx, accountGroupCtx.Group()); err != nil { cancel() - return nil, errcode.ErrInternal.Wrap(fmt.Errorf("unable to add account group to group datastore, err: %w", err)) + return nil, errcode.ErrCode_ErrInternal.Wrap(fmt.Errorf("unable to add account group to group datastore, err: %w", err)) } s := &service{ diff --git a/service_group.go b/service_group.go index fa294238..87ca3504 100644 --- a/service_group.go +++ b/service_group.go @@ -16,7 +16,7 @@ import ( func (s *service) getContactGroup(key crypto.PubKey) (*protocoltypes.Group, error) { group, err := s.secretStore.GetGroupForContact(key) if err != nil { - return nil, errcode.ErrOrbitDBOpen.Wrap(err) + return nil, errcode.ErrCode_ErrOrbitDBOpen.Wrap(err) } return group, nil @@ -26,33 +26,33 @@ func (s *service) getGroupForPK(ctx context.Context, pk crypto.PubKey) (*protoco group, err := s.secretStore.FetchGroupByPublicKey(ctx, pk) if err == nil { return group, nil - } else if !errcode.Is(err, errcode.ErrMissingMapKey) { - return nil, errcode.ErrInternal.Wrap(err) + } else if !errcode.Is(err, errcode.ErrCode_ErrMissingMapKey) { + return nil, errcode.ErrCode_ErrInternal.Wrap(err) } accountGroup := s.getAccountGroup() if accountGroup == nil { - return nil, errcode.ErrGroupMissing + return nil, errcode.ErrCode_ErrGroupMissing } if err = reindexGroupDatastore(ctx, s.secretStore, accountGroup.metadataStore); err != nil { - return nil, errcode.TODO.Wrap(err) + return nil, errcode.ErrCode_TODO.Wrap(err) } group, err = s.secretStore.FetchGroupByPublicKey(ctx, pk) if err == nil { return group, nil - } else if errcode.Is(err, errcode.ErrMissingMapKey) { - return nil, errcode.ErrInvalidInput.Wrap(fmt.Errorf("unknown group specified")) + } else if errcode.Is(err, errcode.ErrCode_ErrMissingMapKey) { + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("unknown group specified")) } - return nil, errcode.ErrInternal.Wrap(err) + return nil, errcode.ErrCode_ErrInternal.Wrap(err) } func (s *service) deactivateGroup(pk crypto.PubKey) error { id, err := pk.Raw() if err != nil { - return errcode.ErrSerialization.Wrap(err) + return errcode.ErrCode_ErrSerialization.Wrap(err) } cg, err := s.GetContextGroupForID(id) @@ -71,7 +71,7 @@ func (s *service) deactivateGroup(pk crypto.PubKey) error { delete(s.openedGroups, string(id)) - if cg.group.GroupType == protocoltypes.GroupTypeAccount { + if cg.group.GroupType == protocoltypes.GroupType_GroupTypeAccount { s.accountGroupCtx = nil } @@ -81,17 +81,17 @@ func (s *service) deactivateGroup(pk crypto.PubKey) error { func (s *service) activateGroup(ctx context.Context, pk crypto.PubKey, localOnly bool) error { id, err := pk.Raw() if err != nil { - return errcode.ErrSerialization.Wrap(err) + return errcode.ErrCode_ErrSerialization.Wrap(err) } _, err = s.GetContextGroupForID(id) - if err != nil && err != errcode.ErrGroupUnknown { + if err != nil && err != errcode.ErrCode_ErrGroupUnknown { return err } g, err := s.getGroupForPK(ctx, pk) if err != nil { - return errcode.ErrInternal.Wrap(err) + return errcode.ErrCode_ErrInternal.Wrap(err) } s.lock.Lock() @@ -100,22 +100,22 @@ func (s *service) activateGroup(ctx context.Context, pk crypto.PubKey, localOnly // @WIP(gfanton): do we need to use contactPK var contactPK crypto.PubKey switch g.GroupType { - case protocoltypes.GroupTypeMultiMember: + case protocoltypes.GroupType_GroupTypeMultiMember: // nothing to get here, simply continue, open and activate the group - case protocoltypes.GroupTypeContact: + case protocoltypes.GroupType_GroupTypeContact: if s.accountGroupCtx == nil { - return errcode.ErrGroupActivate.Wrap(fmt.Errorf("accountGroupCtx is deactivated")) + return errcode.ErrCode_ErrGroupActivate.Wrap(fmt.Errorf("accountGroupCtx is deactivated")) } contact := s.accountGroupCtx.metadataStore.GetContactFromGroupPK(id) if contact != nil { contactPK, err = contact.GetPubKey() if err != nil { - return errcode.TODO.Wrap(err) + return errcode.ErrCode_TODO.Wrap(err) } } - case protocoltypes.GroupTypeAccount: + case protocoltypes.GroupType_GroupTypeAccount: localOnly = true if s.accountGroupCtx, err = s.odb.openAccountGroup(ctx, &iface.CreateDBOptions{EventBus: s.accountEventBus, LocalOnly: &localOnly}, s.ipfsCoreAPI); err != nil { return err @@ -127,23 +127,23 @@ func (s *service) activateGroup(ctx context.Context, pk crypto.PubKey, localOnly s.contactRequestsManager.close() if s.contactRequestsManager, err = newContactRequestsManager(s.swiper, s.accountGroupCtx.metadataStore, s.ipfsCoreAPI, s.logger); err != nil { - return errcode.TODO.Wrap(err) + return errcode.ErrCode_TODO.Wrap(err) } } return nil default: - return errcode.ErrInternal.Wrap(fmt.Errorf("unknown group type")) + return errcode.ErrCode_ErrInternal.Wrap(fmt.Errorf("unknown group type")) } dbOpts := &iface.CreateDBOptions{LocalOnly: &localOnly} gc, err := s.odb.OpenGroup(ctx, g, dbOpts) if err != nil { - return errcode.ErrGroupOpen.Wrap(err) + return errcode.ErrCode_ErrGroupOpen.Wrap(err) } if err = gc.ActivateGroupContext(contactPK); err != nil { gc.Close() - return errcode.ErrGroupActivate.Wrap(err) + return errcode.ErrCode_ErrGroupActivate.Wrap(err) } s.openedGroups[string(id)] = gc @@ -154,7 +154,7 @@ func (s *service) activateGroup(ctx context.Context, pk crypto.PubKey, localOnly func (s *service) GetContextGroupForID(id []byte) (*GroupContext, error) { if len(id) == 0 { - return nil, errcode.ErrInternal.Wrap(fmt.Errorf("no group id provided")) + return nil, errcode.ErrCode_ErrInternal.Wrap(fmt.Errorf("no group id provided")) } s.lock.RLock() @@ -166,40 +166,40 @@ func (s *service) GetContextGroupForID(id []byte) (*GroupContext, error) { return cg, nil } - return nil, errcode.ErrGroupUnknown + return nil, errcode.ErrCode_ErrGroupUnknown } func reindexGroupDatastore(ctx context.Context, secretStore secretstore.SecretStore, m *MetadataStore) error { if secretStore == nil { - return errcode.ErrInvalidInput.Wrap(fmt.Errorf("missing device keystore")) + return errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("missing device keystore")) } for _, g := range m.ListMultiMemberGroups() { if err := secretStore.PutGroup(ctx, g); err != nil { - return errcode.ErrInternal.Wrap(err) + return errcode.ErrCode_ErrInternal.Wrap(err) } } for _, contact := range m.ListContactsByStatus( - protocoltypes.ContactStateToRequest, - protocoltypes.ContactStateReceived, - protocoltypes.ContactStateAdded, - protocoltypes.ContactStateRemoved, - protocoltypes.ContactStateDiscarded, - protocoltypes.ContactStateBlocked, + protocoltypes.ContactState_ContactStateToRequest, + protocoltypes.ContactState_ContactStateReceived, + protocoltypes.ContactState_ContactStateAdded, + protocoltypes.ContactState_ContactStateRemoved, + protocoltypes.ContactState_ContactStateDiscarded, + protocoltypes.ContactState_ContactStateBlocked, ) { cPK, err := contact.GetPubKey() if err != nil { - return errcode.TODO.Wrap(err) + return errcode.ErrCode_TODO.Wrap(err) } group, err := secretStore.GetGroupForContact(cPK) if err != nil { - return errcode.ErrInternal.Wrap(err) + return errcode.ErrCode_ErrInternal.Wrap(err) } if err := secretStore.PutGroup(ctx, group); err != nil { - return errcode.ErrInternal.Wrap(err) + return errcode.ErrCode_ErrInternal.Wrap(err) } } diff --git a/service_outofstoremessage.go b/service_outofstoremessage.go index 5e5ad052..47a4e30b 100644 --- a/service_outofstoremessage.go +++ b/service_outofstoremessage.go @@ -138,7 +138,7 @@ func (s *oosmService) IpfsCoreAPI() coreiface.CoreAPI { func (s *oosmService) OutOfStoreReceive(ctx context.Context, request *protocoltypes.OutOfStoreReceive_Request) (*protocoltypes.OutOfStoreReceive_Reply, error) { outOfStoreMessage, group, clearPayload, alreadyDecrypted, err := s.secretStore.OpenOutOfStoreMessage(ctx, request.Payload) if err != nil { - return nil, errcode.ErrCryptoDecrypt.Wrap(err) + return nil, errcode.ErrCode_ErrCryptoDecrypt.Wrap(err) } return &protocoltypes.OutOfStoreReceive_Reply{ diff --git a/store_message.go b/store_message.go index d4b92366..d69f4f35 100644 --- a/store_message.go +++ b/store_message.go @@ -13,6 +13,7 @@ import ( "github.com/libp2p/go-libp2p/core/event" "github.com/libp2p/go-libp2p/p2p/host/eventbus" "go.uber.org/zap" + "google.golang.org/protobuf/proto" ipfslog "berty.tech/go-ipfs-log" "berty.tech/go-ipfs-log/identityprovider" @@ -64,7 +65,7 @@ func (m *MessageStore) setLogger(l *zap.Logger) { func (m *MessageStore) openMessage(ctx context.Context, e ipfslog.Entry) (*protocoltypes.GroupMessageEvent, error) { if e == nil { - return nil, errcode.ErrInvalidInput + return nil, errcode.ErrCode_ErrInvalidInput } op, err := operation.ParseOperation(e) @@ -75,12 +76,12 @@ func (m *MessageStore) openMessage(ctx context.Context, e ipfslog.Entry) (*proto env, headers, err := m.secretStore.OpenEnvelopeHeaders(op.GetValue(), m.group) if err != nil { - return nil, errcode.ErrCryptoDecrypt.Wrap(err) + return nil, errcode.ErrCode_ErrCryptoDecrypt.Wrap(err) } - devicePublicKey, err := crypto.UnmarshalEd25519PublicKey(headers.DevicePK) + devicePublicKey, err := crypto.UnmarshalEd25519PublicKey(headers.DevicePk) if err != nil { - return nil, errcode.ErrDeserialization.Wrap(err) + return nil, errcode.ErrCode_ErrDeserialization.Wrap(err) } if !m.secretStore.IsChainKeyKnownForDevice(ctx, m.groupPublicKey, devicePublicKey) { @@ -140,7 +141,7 @@ func (m *MessageStore) processMessage(ctx context.Context, message *messageItem) return nil, fmt.Errorf("unable to open the envelope: %w", err) } - err = m.secretStore.UpdateOutOfStoreGroupReferences(ctx, message.headers.DevicePK, message.headers.Counter, m.group) + err = m.secretStore.UpdateOutOfStoreGroupReferences(ctx, message.headers.DevicePk, message.headers.Counter, m.group) if err != nil { m.logger.Error("unable to update push group references", zap.Error(err)) } @@ -198,22 +199,22 @@ func (m *MessageStore) processMessageLoop(ctx context.Context, tracer *messageMe } func (m *MessageStore) getOrCreateDeviceCache(ctx context.Context, message *messageItem, tracer *messageMetricsTracer) (device *groupCache, hasKnownChainKey bool) { - devicePublicKeyString := string(message.headers.DevicePK) + devicePublicKeyString := string(message.headers.DevicePk) m.muDeviceCaches.Lock() defer m.muDeviceCaches.Unlock() device, ok := m.deviceCaches[devicePublicKeyString] if !ok { - devicePublicKey, err := crypto.UnmarshalEd25519PublicKey(message.headers.DevicePK) + devicePublicKey, err := crypto.UnmarshalEd25519PublicKey(message.headers.DevicePk) if err != nil { - m.logger.Error("unable to process message, unmarshal of device pk failed", logutil.PrivateBinary("devicepk", message.headers.DevicePK)) + m.logger.Error("unable to process message, unmarshal of device pk failed", logutil.PrivateBinary("devicepk", message.headers.DevicePk)) return nil, false } hasSecret := m.secretStore.IsChainKeyKnownForDevice(ctx, m.groupPublicKey, devicePublicKey) device = &groupCache{ - self: bytes.Equal(m.currentDevicePublicKeyRaw, message.headers.DevicePK), + self: bytes.Equal(m.currentDevicePublicKeyRaw, message.headers.DevicePk), queue: newPriorityMessageQueue("undecrypted", tracer), locker: &sync.RWMutex{}, hasKnownChainKey: hasSecret, @@ -234,7 +235,7 @@ func (m *MessageStore) processDeviceMessagesInQueue(device *groupCache) { func (m *MessageStore) addToMessageQueue(_ context.Context, e ipfslog.Entry) error { if e == nil { - return errcode.ErrInvalidInput + return errcode.ErrCode_ErrInvalidInput } op, err := operation.ParseOperation(e) @@ -244,7 +245,7 @@ func (m *MessageStore) addToMessageQueue(_ context.Context, e ipfslog.Entry) err env, headers, err := m.secretStore.OpenEnvelopeHeaders(op.GetValue(), m.group) if err != nil { - return errcode.ErrCryptoDecrypt.Wrap(err) + return errcode.ErrCode_ErrCryptoDecrypt.Wrap(err) } msg := &messageItem{ @@ -310,24 +311,25 @@ func (m *MessageStore) AddMessage(ctx context.Context, payload []byte) (operatio } func messageStoreAddMessage(ctx context.Context, g *protocoltypes.Group, m *MessageStore, payload []byte) (operation.Operation, error) { - msg, err := (&protocoltypes.EncryptedMessage{ + msg := &protocoltypes.EncryptedMessage{ Plaintext: payload, ProtocolMetadata: &protocoltypes.ProtocolMetadata{}, - }).Marshal() + } + msgBytes, err := proto.Marshal(msg) if err != nil { - return nil, errcode.ErrInternal.Wrap(err) + return nil, errcode.ErrCode_ErrInternal.Wrap(err) } - sealedEnvelope, err := m.secretStore.SealEnvelope(ctx, g, msg) + sealedEnvelope, err := m.secretStore.SealEnvelope(ctx, g, msgBytes) if err != nil { - return nil, errcode.ErrCryptoEncrypt.Wrap(err) + return nil, errcode.ErrCode_ErrCryptoEncrypt.Wrap(err) } m.logger.Debug( "Message sealed successfully in secretbox envelope", tyber.FormatStepLogFields( ctx, []tyber.Detail{ - {Name: "Cleartext size", Description: fmt.Sprintf("%d bytes", len(msg))}, + {Name: "Cleartext size", Description: fmt.Sprintf("%d bytes", len(msgBytes))}, {Name: "Cyphertext size", Description: fmt.Sprintf("%d bytes", len(sealedEnvelope))}, }, )..., @@ -337,7 +339,7 @@ func messageStoreAddMessage(ctx context.Context, g *protocoltypes.Group, m *Mess e, err := m.AddOperation(ctx, op, nil) if err != nil { - return nil, errcode.ErrOrbitDBAppend.Wrap(err) + return nil, errcode.ErrCode_ErrOrbitDBAppend.Wrap(err) } m.logger.Debug( "Envelope added to orbit-DB log successfully", @@ -346,7 +348,7 @@ func messageStoreAddMessage(ctx context.Context, g *protocoltypes.Group, m *Mess op, err = operation.ParseOperation(e) if err != nil { - return nil, errcode.ErrOrbitDBDeserialization.Wrap(err) + return nil, errcode.ErrCode_ErrOrbitDBDeserialization.Wrap(err) } m.logger.Debug( @@ -362,12 +364,12 @@ func constructorFactoryGroupMessage(s *WeshOrbitDB, logger *zap.Logger) iface.St return func(ipfs coreiface.CoreAPI, identity *identityprovider.Identity, addr address.Address, options *iface.NewStoreOptions) (iface.Store, error) { g, err := s.getGroupFromOptions(options) if err != nil { - return nil, errcode.ErrInvalidInput.Wrap(err) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(err) } groupPublicKey, err := g.GetPubKey() if err != nil { - return nil, errcode.ErrDeserialization.Wrap(err) + return nil, errcode.ErrCode_ErrDeserialization.Wrap(err) } if options.EventBus == nil { @@ -392,16 +394,16 @@ func constructorFactoryGroupMessage(s *WeshOrbitDB, logger *zap.Logger) iface.St currentMemberDevice, err := s.secretStore.GetOwnMemberDeviceForGroup(g) if err != nil { - if errcode.Is(err, errcode.ErrInvalidInput) { + if errcode.Is(err, errcode.ErrCode_ErrInvalidInput) { replication = true } else { - return nil, errcode.ErrOrbitDBInit.Wrap(err) + return nil, errcode.ErrCode_ErrOrbitDBInit.Wrap(err) } } else { store.currentDevicePublicKey = currentMemberDevice.Device() store.currentDevicePublicKeyRaw, err = store.currentDevicePublicKey.Raw() if err != nil { - return nil, errcode.ErrOrbitDBInit.Wrap(err) + return nil, errcode.ErrCode_ErrOrbitDBInit.Wrap(err) } } } @@ -415,20 +417,20 @@ func constructorFactoryGroupMessage(s *WeshOrbitDB, logger *zap.Logger) iface.St if store.emitters.groupMessage, err = store.eventBus.Emitter(new(protocoltypes.GroupMessageEvent)); err != nil { store.cancel() - return nil, errcode.ErrOrbitDBInit.Wrap(err) + return nil, errcode.ErrCode_ErrOrbitDBInit.Wrap(err) } // for debug/test purpose if store.emitters.groupCacheMessage, err = store.eventBus.Emitter(new(messageItem)); err != nil { store.cancel() - return nil, errcode.ErrOrbitDBInit.Wrap(err) + return nil, errcode.ErrCode_ErrOrbitDBInit.Wrap(err) } options.Index = basestore.NewNoopIndex if err := store.InitBaseStore(ipfs, identity, addr, options); err != nil { store.cancel() - return nil, errcode.ErrOrbitDBInit.Wrap(err) + return nil, errcode.ErrCode_ErrOrbitDBInit.Wrap(err) } if replication { @@ -485,12 +487,12 @@ func constructorFactoryGroupMessage(s *WeshOrbitDB, logger *zap.Logger) iface.St func (m *MessageStore) GetMessageByCID(c cid.Cid) (operation.Operation, error) { logEntry, ok := m.OpLog().Get(c) if !ok { - return nil, errcode.ErrInvalidInput.Wrap(fmt.Errorf("unable to find message entry")) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("unable to find message entry")) } op, err := operation.ParseOperation(logEntry) if err != nil { - return nil, errcode.ErrDeserialization.Wrap(err) + return nil, errcode.ErrCode_ErrDeserialization.Wrap(err) } return op, nil @@ -499,17 +501,17 @@ func (m *MessageStore) GetMessageByCID(c cid.Cid) (operation.Operation, error) { func (m *MessageStore) GetOutOfStoreMessageEnvelope(ctx context.Context, c cid.Cid) (*protocoltypes.OutOfStoreMessageEnvelope, error) { op, err := m.GetMessageByCID(c) if err != nil { - return nil, errcode.ErrInvalidInput.Wrap(err) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(err) } env, headers, err := m.secretStore.OpenEnvelopeHeaders(op.GetValue(), m.group) if err != nil { - return nil, errcode.ErrDeserialization.Wrap(err) + return nil, errcode.ErrCode_ErrDeserialization.Wrap(err) } sealedMessageEnvelope, err := m.secretStore.SealOutOfStoreMessageEnvelope(c, env, headers, m.group) if err != nil { - return nil, errcode.ErrInternal.Wrap(err) + return nil, errcode.ErrCode_ErrInternal.Wrap(err) } return sealedMessageEnvelope, nil diff --git a/store_message_metrics.go b/store_message_metrics.go index bbb98bfe..a455aaa9 100644 --- a/store_message_metrics.go +++ b/store_message_metrics.go @@ -47,12 +47,12 @@ func newMessageMetricsTracer(reg prometheus.Registerer) (mt *messageMetricsTrace func (s *messageMetricsTracer) ItemQueued(name string, m *messageItem) { collectorMessageStoreQueueLength.WithLabelValues( - name, hex.EncodeToString(m.headers.DevicePK), + name, hex.EncodeToString(m.headers.DevicePk), ).Inc() } func (s *messageMetricsTracer) ItemPop(name string, m *messageItem) { collectorMessageStoreQueueLength.WithLabelValues( - name, hex.EncodeToString(m.headers.DevicePK), + name, hex.EncodeToString(m.headers.DevicePk), ).Dec() } diff --git a/store_metadata.go b/store_metadata.go index 354a30bb..2c50c3b4 100644 --- a/store_metadata.go +++ b/store_metadata.go @@ -8,12 +8,12 @@ import ( "io" "strings" - "github.com/gogo/protobuf/proto" coreiface "github.com/ipfs/kubo/core/coreiface" "github.com/libp2p/go-libp2p/core/crypto" "github.com/libp2p/go-libp2p/core/event" "github.com/libp2p/go-libp2p/p2p/host/eventbus" "go.uber.org/zap" + "google.golang.org/protobuf/proto" ipfslog "berty.tech/go-ipfs-log" "berty.tech/go-ipfs-log/identityprovider" @@ -48,15 +48,15 @@ type MetadataStore struct { } func isMultiMemberGroup(m *MetadataStore) bool { - return m.group.GroupType == protocoltypes.GroupTypeMultiMember + return m.group.GroupType == protocoltypes.GroupType_GroupTypeMultiMember } func isAccountGroup(m *MetadataStore) bool { - return m.group.GroupType == protocoltypes.GroupTypeAccount + return m.group.GroupType == protocoltypes.GroupType_GroupTypeAccount } func isContactGroup(m *MetadataStore) bool { - return m.group.GroupType == protocoltypes.GroupTypeContact + return m.group.GroupType == protocoltypes.GroupType_GroupTypeContact } func (m *MetadataStore) typeChecker(types ...func(m *MetadataStore) bool) bool { @@ -139,7 +139,7 @@ func (m *MetadataStore) ListEvents(ctx context.Context, since, until []byte, rev func (m *MetadataStore) AddDeviceToGroup(ctx context.Context) (operation.Operation, error) { md, err := m.secretStore.GetOwnMemberDeviceForGroup(m.group) if err != nil { - return nil, errcode.ErrInternal.Wrap(err) + return nil, errcode.ErrCode_ErrInternal.Wrap(err) } return MetadataStoreAddDeviceToGroup(ctx, m, m.group, md) @@ -148,12 +148,12 @@ func (m *MetadataStore) AddDeviceToGroup(ctx context.Context) (operation.Operati func MetadataStoreAddDeviceToGroup(ctx context.Context, m *MetadataStore, g *protocoltypes.Group, md secretstore.OwnMemberDevice) (operation.Operation, error) { device, err := md.Device().Raw() if err != nil { - return nil, errcode.ErrSerialization.Wrap(err) + return nil, errcode.ErrCode_ErrSerialization.Wrap(err) } member, err := md.Member().Raw() if err != nil { - return nil, errcode.ErrSerialization.Wrap(err) + return nil, errcode.ErrCode_ErrSerialization.Wrap(err) } k, err := m.GetMemberByDevice(md.Device()) @@ -163,33 +163,33 @@ func MetadataStoreAddDeviceToGroup(ctx context.Context, m *MetadataStore, g *pro memberSig, err := md.MemberSign(device) if err != nil { - return nil, errcode.ErrCryptoSignature.Wrap(err) + return nil, errcode.ErrCode_ErrCryptoSignature.Wrap(err) } event := &protocoltypes.GroupMemberDeviceAdded{ - MemberPK: member, - DevicePK: device, + MemberPk: member, + DevicePk: device, MemberSig: memberSig, } sig, err := signProtoWithDevice(event, md) if err != nil { - return nil, errcode.ErrCryptoSignature.Wrap(err) + return nil, errcode.ErrCode_ErrCryptoSignature.Wrap(err) } m.logger.Info("announcing device on store") - return metadataStoreAddEvent(ctx, m, g, protocoltypes.EventTypeGroupMemberDeviceAdded, event, sig) + return metadataStoreAddEvent(ctx, m, g, protocoltypes.EventType_EventTypeGroupMemberDeviceAdded, event, sig) } func (m *MetadataStore) SendSecret(ctx context.Context, memberPK crypto.PubKey) (operation.Operation, error) { ok, err := m.Index().(*metadataStoreIndex).areSecretsAlreadySent(memberPK) if err != nil { - return nil, errcode.ErrInvalidInput.Wrap(err) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(err) } if ok { - return nil, errcode.ErrGroupSecretAlreadySentToMember + return nil, errcode.ErrCode_ErrGroupSecretAlreadySentToMember } if devs, err := m.GetDevicesForMember(memberPK); len(devs) == 0 || err != nil { @@ -198,7 +198,7 @@ func (m *MetadataStore) SendSecret(ctx context.Context, memberPK crypto.PubKey) encryptedSecret, err := m.secretStore.GetShareableChainKey(ctx, m.group, memberPK) if err != nil { - return nil, errcode.ErrCryptoEncrypt.Wrap(err) + return nil, errcode.ErrCode_ErrCryptoEncrypt.Wrap(err) } return MetadataStoreSendSecret(ctx, m, m.group, m.memberDevice, memberPK, encryptedSecret) @@ -207,54 +207,54 @@ func (m *MetadataStore) SendSecret(ctx context.Context, memberPK crypto.PubKey) func MetadataStoreSendSecret(ctx context.Context, m *MetadataStore, g *protocoltypes.Group, md secretstore.OwnMemberDevice, memberPK crypto.PubKey, encryptedSecret []byte) (operation.Operation, error) { devicePKRaw, err := md.Device().Raw() if err != nil { - return nil, errcode.ErrSerialization.Wrap(err) + return nil, errcode.ErrCode_ErrSerialization.Wrap(err) } memberPKRaw, err := memberPK.Raw() if err != nil { - return nil, errcode.ErrSerialization.Wrap(err) + return nil, errcode.ErrCode_ErrSerialization.Wrap(err) } event := &protocoltypes.GroupDeviceChainKeyAdded{ - DevicePK: devicePKRaw, - DestMemberPK: memberPKRaw, + DevicePk: devicePKRaw, + DestMemberPk: memberPKRaw, Payload: encryptedSecret, } sig, err := signProtoWithDevice(event, md) if err != nil { - return nil, errcode.ErrCryptoSignature.Wrap(err) + return nil, errcode.ErrCode_ErrCryptoSignature.Wrap(err) } - return metadataStoreAddEvent(ctx, m, g, protocoltypes.EventTypeGroupDeviceChainKeyAdded, event, sig) + return metadataStoreAddEvent(ctx, m, g, protocoltypes.EventType_EventTypeGroupDeviceChainKeyAdded, event, sig) } func (m *MetadataStore) ClaimGroupOwnership(ctx context.Context, groupSK crypto.PrivKey) (operation.Operation, error) { if !m.typeChecker(isMultiMemberGroup) { - return nil, errcode.ErrGroupInvalidType + return nil, errcode.ErrCode_ErrGroupInvalidType } event := &protocoltypes.MultiMemberGroupInitialMemberAnnounced{ - MemberPK: m.devicePublicKeyRaw, + MemberPk: m.devicePublicKeyRaw, } sig, err := signProtoWithPrivateKey(event, groupSK) if err != nil { - return nil, errcode.ErrCryptoSignature.Wrap(err) + return nil, errcode.ErrCode_ErrCryptoSignature.Wrap(err) } - return metadataStoreAddEvent(ctx, m, m.group, protocoltypes.EventTypeMultiMemberGroupInitialMemberAnnounced, event, sig) + return metadataStoreAddEvent(ctx, m, m.group, protocoltypes.EventType_EventTypeMultiMemberGroupInitialMemberAnnounced, event, sig) } func signProtoWithDevice(message proto.Message, memberDevice secretstore.OwnMemberDevice) ([]byte, error) { data, err := proto.Marshal(message) if err != nil { - return nil, errcode.ErrSerialization.Wrap(err) + return nil, errcode.ErrCode_ErrSerialization.Wrap(err) } sig, err := memberDevice.DeviceSign(data) if err != nil { - return nil, errcode.ErrCryptoSignature.Wrap(err) + return nil, errcode.ErrCode_ErrCryptoSignature.Wrap(err) } return sig, nil @@ -263,18 +263,18 @@ func signProtoWithDevice(message proto.Message, memberDevice secretstore.OwnMemb func signProtoWithPrivateKey(message proto.Message, sk crypto.PrivKey) ([]byte, error) { data, err := proto.Marshal(message) if err != nil { - return nil, errcode.ErrSerialization.Wrap(err) + return nil, errcode.ErrCode_ErrSerialization.Wrap(err) } sig, err := sk.Sign(data) if err != nil { - return nil, errcode.ErrCryptoSignature.Wrap(err) + return nil, errcode.ErrCode_ErrCryptoSignature.Wrap(err) } return sig, nil } -func metadataStoreAddEvent(ctx context.Context, m *MetadataStore, g *protocoltypes.Group, eventType protocoltypes.EventType, event proto.Marshaler, sig []byte) (operation.Operation, error) { +func metadataStoreAddEvent(ctx context.Context, m *MetadataStore, g *protocoltypes.Group, eventType protocoltypes.EventType, event proto.Message, sig []byte) (operation.Operation, error) { ctx, newTrace := tyber.ContextWithTraceID(ctx) tyberLogError := tyber.LogError if newTrace { @@ -284,14 +284,14 @@ func metadataStoreAddEvent(ctx context.Context, m *MetadataStore, g *protocoltyp env, err := sealGroupEnvelope(g, eventType, event, sig) if err != nil { - return nil, tyberLogError(ctx, m.logger, "Failed to seal group envelope", errcode.ErrCryptoSignature.Wrap(err)) + return nil, tyberLogError(ctx, m.logger, "Failed to seal group envelope", errcode.ErrCode_ErrCryptoSignature.Wrap(err)) } m.logger.Debug(fmt.Sprintf("Sealed group envelope (%d bytes)", len(env)), tyber.FormatStepLogFields(ctx, []tyber.Detail{})...) op := operation.NewOperation(nil, "ADD", env) e, err := m.AddOperation(ctx, op, nil) if err != nil { - return nil, tyberLogError(ctx, m.logger, "Failed to add operation on log", errcode.ErrOrbitDBAppend.Wrap(err)) + return nil, tyberLogError(ctx, m.logger, "Failed to add operation on log", errcode.ErrCode_ErrOrbitDBAppend.Wrap(err)) } m.logger.Debug("Added operation on log", tyber.FormatStepLogFields(ctx, []tyber.Detail{ {Name: "CID", Description: e.GetHash().String()}, @@ -299,7 +299,7 @@ func metadataStoreAddEvent(ctx context.Context, m *MetadataStore, g *protocoltyp op, err = operation.ParseOperation(e) if err != nil { - return nil, tyberLogError(ctx, m.logger, "Failed to parse operation returned by log", errcode.ErrOrbitDBDeserialization.Wrap(err)) + return nil, tyberLogError(ctx, m.logger, "Failed to parse operation returned by log", errcode.ErrCode_ErrOrbitDBDeserialization.Wrap(err)) } if newTrace { @@ -347,7 +347,7 @@ func (m *MetadataStore) GetIncomingContactRequestsStatus() (bool, *protocoltypes } contactRef := &protocoltypes.ShareableContact{ - PK: rawMemberDevice, + Pk: rawMemberDevice, PublicRendezvousSeed: seed, } @@ -398,7 +398,7 @@ func (m *MetadataStore) ListOtherMembersDevices() []crypto.PubKey { func (m *MetadataStore) GetRequestOwnMetadataForContact(pk []byte) ([]byte, error) { idx, ok := m.Index().(*metadataStoreIndex) if !ok { - return nil, errcode.ErrInvalidInput.Wrap(fmt.Errorf("invalid index type")) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("invalid index type")) } idx.lock.Lock() @@ -406,7 +406,7 @@ func (m *MetadataStore) GetRequestOwnMetadataForContact(pk []byte) ([]byte, erro meta, ok := idx.contactRequestMetadata[string(pk)] if !ok { - return nil, errcode.ErrMissingMapKey.Wrap(fmt.Errorf("no metadata found for specified contact")) + return nil, errcode.ErrCode_ErrMissingMapKey.Wrap(fmt.Errorf("no metadata found for specified contact")) } return meta, nil @@ -482,76 +482,76 @@ func (m *MetadataStore) checkIfInGroup(pk []byte) bool { // GroupJoin indicates the payload includes that the deviceKeystore has joined a group func (m *MetadataStore) GroupJoin(ctx context.Context, g *protocoltypes.Group) (operation.Operation, error) { if !m.typeChecker(isAccountGroup) { - return nil, errcode.ErrGroupInvalidType + return nil, errcode.ErrCode_ErrGroupInvalidType } if err := g.IsValid(); err != nil { - return nil, errcode.ErrDeserialization.Wrap(err) + return nil, errcode.ErrCode_ErrDeserialization.Wrap(err) } if m.checkIfInGroup(g.PublicKey) { - return nil, errcode.ErrInvalidInput.Wrap(fmt.Errorf("already present in group")) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("already present in group")) } return m.attributeSignAndAddEvent(ctx, &protocoltypes.AccountGroupJoined{ Group: g, - }, protocoltypes.EventTypeAccountGroupJoined) + }, protocoltypes.EventType_EventTypeAccountGroupJoined) } // GroupLeave indicates the payload includes that the deviceKeystore has left a group func (m *MetadataStore) GroupLeave(ctx context.Context, pk crypto.PubKey) (operation.Operation, error) { if !m.typeChecker(isAccountGroup) { - return nil, errcode.ErrGroupInvalidType + return nil, errcode.ErrCode_ErrGroupInvalidType } if pk == nil { - return nil, errcode.ErrInvalidInput + return nil, errcode.ErrCode_ErrInvalidInput } bytes, err := pk.Raw() if err != nil { - return nil, errcode.ErrSerialization.Wrap(err) + return nil, errcode.ErrCode_ErrSerialization.Wrap(err) } if !m.checkIfInGroup(bytes) { - return nil, errcode.ErrInvalidInput + return nil, errcode.ErrCode_ErrInvalidInput } - return m.groupAction(ctx, pk, &protocoltypes.AccountGroupLeft{}, protocoltypes.EventTypeAccountGroupLeft) + return m.groupAction(ctx, pk, &protocoltypes.AccountGroupLeft{}, protocoltypes.EventType_EventTypeAccountGroupLeft) } // ContactRequestDisable indicates the payload includes that the deviceKeystore has disabled incoming contact requests func (m *MetadataStore) ContactRequestDisable(ctx context.Context) (operation.Operation, error) { if !m.typeChecker(isAccountGroup) { - return nil, errcode.ErrGroupInvalidType + return nil, errcode.ErrCode_ErrGroupInvalidType } - return m.attributeSignAndAddEvent(ctx, &protocoltypes.AccountContactRequestDisabled{}, protocoltypes.EventTypeAccountContactRequestDisabled) + return m.attributeSignAndAddEvent(ctx, &protocoltypes.AccountContactRequestDisabled{}, protocoltypes.EventType_EventTypeAccountContactRequestDisabled) } // ContactRequestEnable indicates the payload includes that the deviceKeystore has enabled incoming contact requests func (m *MetadataStore) ContactRequestEnable(ctx context.Context) (operation.Operation, error) { if !m.typeChecker(isAccountGroup) { - return nil, errcode.ErrGroupInvalidType + return nil, errcode.ErrCode_ErrGroupInvalidType } - return m.attributeSignAndAddEvent(ctx, &protocoltypes.AccountContactRequestEnabled{}, protocoltypes.EventTypeAccountContactRequestEnabled) + return m.attributeSignAndAddEvent(ctx, &protocoltypes.AccountContactRequestEnabled{}, protocoltypes.EventType_EventTypeAccountContactRequestEnabled) } // ContactRequestReferenceReset indicates the payload includes that the deviceKeystore has a new contact request reference func (m *MetadataStore) ContactRequestReferenceReset(ctx context.Context) (operation.Operation, error) { if !m.typeChecker(isAccountGroup) { - return nil, errcode.ErrGroupInvalidType + return nil, errcode.ErrCode_ErrGroupInvalidType } seed, err := genNewSeed() if err != nil { - return nil, errcode.ErrCryptoKeyGeneration.Wrap(err) + return nil, errcode.ErrCode_ErrCryptoKeyGeneration.Wrap(err) } return m.attributeSignAndAddEvent(ctx, &protocoltypes.AccountContactRequestReferenceReset{ PublicRendezvousSeed: seed, - }, protocoltypes.EventTypeAccountContactRequestReferenceReset) + }, protocoltypes.EventType_EventTypeAccountContactRequestReferenceReset) } // ContactRequestOutgoingEnqueue indicates the payload includes that the deviceKeystore will attempt to send a new contact request @@ -562,39 +562,39 @@ func (m *MetadataStore) ContactRequestOutgoingEnqueue(ctx context.Context, conta m.logger.Debug("Enqueuing contact request", tyber.FormatStepLogFields(ctx, []tyber.Detail{{Name: "GroupPK", Description: fmt.Sprint(b64GroupPK)}})...) if !m.typeChecker(isAccountGroup) { - return nil, errcode.ErrGroupInvalidType + return nil, errcode.ErrCode_ErrGroupInvalidType } if err := contact.CheckFormat(); err != nil { - return nil, errcode.ErrInvalidInput.Wrap(err) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(err) } accountPublicKey := m.memberDevice.Member() if contact.IsSamePK(accountPublicKey) { - return nil, errcode.ErrContactRequestSameAccount + return nil, errcode.ErrCode_ErrContactRequestSameAccount } pk, err := contact.GetPubKey() if err != nil { - return nil, errcode.ErrDeserialization.Wrap(err) + return nil, errcode.ErrCode_ErrDeserialization.Wrap(err) } - if m.checkContactStatus(pk, protocoltypes.ContactStateAdded) { - return nil, errcode.ErrContactRequestContactAlreadyAdded + if m.checkContactStatus(pk, protocoltypes.ContactState_ContactStateAdded) { + return nil, errcode.ErrCode_ErrContactRequestContactAlreadyAdded } - if m.checkContactStatus(pk, protocoltypes.ContactStateRemoved, protocoltypes.ContactStateDiscarded, protocoltypes.ContactStateReceived) { + if m.checkContactStatus(pk, protocoltypes.ContactState_ContactStateRemoved, protocoltypes.ContactState_ContactStateDiscarded, protocoltypes.ContactState_ContactStateReceived) { return m.ContactRequestOutgoingSent(ctx, pk) } op, err := m.attributeSignAndAddEvent(ctx, &protocoltypes.AccountContactRequestOutgoingEnqueued{ Contact: &protocoltypes.ShareableContact{ - PK: contact.PK, + Pk: contact.Pk, PublicRendezvousSeed: contact.PublicRendezvousSeed, Metadata: contact.Metadata, }, OwnMetadata: ownMetadata, - }, protocoltypes.EventTypeAccountContactRequestOutgoingEnqueued) + }, protocoltypes.EventType_EventTypeAccountContactRequestOutgoingEnqueued) m.logger.Debug("Enqueued contact request", tyber.FormatStepLogFields(ctx, []tyber.Detail{})...) @@ -604,26 +604,26 @@ func (m *MetadataStore) ContactRequestOutgoingEnqueue(ctx context.Context, conta // ContactRequestOutgoingSent indicates the payload includes that the deviceKeystore has sent a contact request func (m *MetadataStore) ContactRequestOutgoingSent(ctx context.Context, pk crypto.PubKey) (operation.Operation, error) { if !m.typeChecker(isAccountGroup) { - return nil, errcode.ErrGroupInvalidType + return nil, errcode.ErrCode_ErrGroupInvalidType } switch m.getContactStatus(pk) { - case protocoltypes.ContactStateToRequest: - case protocoltypes.ContactStateReceived: - case protocoltypes.ContactStateRemoved: - case protocoltypes.ContactStateDiscarded: - - case protocoltypes.ContactStateUndefined: - return nil, errcode.ErrContactRequestContactUndefined - case protocoltypes.ContactStateAdded: - return nil, errcode.ErrContactRequestContactAlreadyAdded - case protocoltypes.ContactStateBlocked: - return nil, errcode.ErrContactRequestContactBlocked + case protocoltypes.ContactState_ContactStateToRequest: + case protocoltypes.ContactState_ContactStateReceived: + case protocoltypes.ContactState_ContactStateRemoved: + case protocoltypes.ContactState_ContactStateDiscarded: + + case protocoltypes.ContactState_ContactStateUndefined: + return nil, errcode.ErrCode_ErrContactRequestContactUndefined + case protocoltypes.ContactState_ContactStateAdded: + return nil, errcode.ErrCode_ErrContactRequestContactAlreadyAdded + case protocoltypes.ContactState_ContactStateBlocked: + return nil, errcode.ErrCode_ErrContactRequestContactBlocked default: - return nil, errcode.ErrInvalidInput + return nil, errcode.ErrCode_ErrInvalidInput } - return m.contactAction(ctx, pk, &protocoltypes.AccountContactRequestOutgoingSent{}, protocoltypes.EventTypeAccountContactRequestOutgoingSent) + return m.contactAction(ctx, pk, &protocoltypes.AccountContactRequestOutgoingSent{}, protocoltypes.EventType_EventTypeAccountContactRequestOutgoingSent) } // ContactRequestIncomingReceived indicates the payload includes that the deviceKeystore has received a contact request @@ -631,131 +631,131 @@ func (m *MetadataStore) ContactRequestIncomingReceived(ctx context.Context, cont m.logger.Debug("Sending ContactRequestIncomingReceived on Account group", tyber.FormatStepLogFields(ctx, []tyber.Detail{})...) if !m.typeChecker(isAccountGroup) { - return nil, errcode.ErrGroupInvalidType + return nil, errcode.ErrCode_ErrGroupInvalidType } if err := contact.CheckFormat(protocoltypes.ShareableContactOptionsAllowMissingRDVSeed); err != nil { - return nil, errcode.ErrInvalidInput.Wrap(err) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(err) } accountPublicKey := m.memberDevice.Member() if contact.IsSamePK(accountPublicKey) { - return nil, errcode.ErrContactRequestSameAccount + return nil, errcode.ErrCode_ErrContactRequestSameAccount } pk, err := contact.GetPubKey() if err != nil { - return nil, errcode.ErrDeserialization.Wrap(err) + return nil, errcode.ErrCode_ErrDeserialization.Wrap(err) } switch m.getContactStatus(pk) { - case protocoltypes.ContactStateUndefined: - case protocoltypes.ContactStateRemoved: - case protocoltypes.ContactStateDiscarded: + case protocoltypes.ContactState_ContactStateUndefined: + case protocoltypes.ContactState_ContactStateRemoved: + case protocoltypes.ContactState_ContactStateDiscarded: // If incoming request comes from an account for which an outgoing request // is in "sending" state, mark the outgoing request as "sent" - case protocoltypes.ContactStateToRequest: + case protocoltypes.ContactState_ContactStateToRequest: return m.ContactRequestOutgoingSent(ctx, pk) // Errors - case protocoltypes.ContactStateReceived: - return nil, errcode.ErrContactRequestIncomingAlreadyReceived - case protocoltypes.ContactStateAdded: - return nil, errcode.ErrContactRequestContactAlreadyAdded - case protocoltypes.ContactStateBlocked: - return nil, errcode.ErrContactRequestContactBlocked + case protocoltypes.ContactState_ContactStateReceived: + return nil, errcode.ErrCode_ErrContactRequestIncomingAlreadyReceived + case protocoltypes.ContactState_ContactStateAdded: + return nil, errcode.ErrCode_ErrContactRequestContactAlreadyAdded + case protocoltypes.ContactState_ContactStateBlocked: + return nil, errcode.ErrCode_ErrContactRequestContactBlocked default: - return nil, errcode.ErrInvalidInput + return nil, errcode.ErrCode_ErrInvalidInput } return m.attributeSignAndAddEvent(ctx, &protocoltypes.AccountContactRequestIncomingReceived{ - ContactPK: contact.PK, + ContactPk: contact.Pk, ContactRendezvousSeed: contact.PublicRendezvousSeed, ContactMetadata: contact.Metadata, - }, protocoltypes.EventTypeAccountContactRequestIncomingReceived) + }, protocoltypes.EventType_EventTypeAccountContactRequestIncomingReceived) } // ContactRequestIncomingDiscard indicates the payload includes that the deviceKeystore has ignored a contact request func (m *MetadataStore) ContactRequestIncomingDiscard(ctx context.Context, pk crypto.PubKey) (operation.Operation, error) { if !m.typeChecker(isAccountGroup) { - return nil, errcode.ErrGroupInvalidType + return nil, errcode.ErrCode_ErrGroupInvalidType } - if !m.checkContactStatus(pk, protocoltypes.ContactStateReceived) { - return nil, errcode.ErrInvalidInput + if !m.checkContactStatus(pk, protocoltypes.ContactState_ContactStateReceived) { + return nil, errcode.ErrCode_ErrInvalidInput } - return m.contactAction(ctx, pk, &protocoltypes.AccountContactRequestIncomingDiscarded{}, protocoltypes.EventTypeAccountContactRequestIncomingDiscarded) + return m.contactAction(ctx, pk, &protocoltypes.AccountContactRequestIncomingDiscarded{}, protocoltypes.EventType_EventTypeAccountContactRequestIncomingDiscarded) } // ContactRequestIncomingAccept indicates the payload includes that the deviceKeystore has accepted a contact request func (m *MetadataStore) ContactRequestIncomingAccept(ctx context.Context, pk crypto.PubKey) (operation.Operation, error) { if !m.typeChecker(isAccountGroup) { - return nil, errcode.ErrGroupInvalidType + return nil, errcode.ErrCode_ErrGroupInvalidType } - if !m.checkContactStatus(pk, protocoltypes.ContactStateReceived) { - return nil, errcode.ErrInvalidInput + if !m.checkContactStatus(pk, protocoltypes.ContactState_ContactStateReceived) { + return nil, errcode.ErrCode_ErrInvalidInput } - return m.contactAction(ctx, pk, &protocoltypes.AccountContactRequestIncomingAccepted{}, protocoltypes.EventTypeAccountContactRequestIncomingAccepted) + return m.contactAction(ctx, pk, &protocoltypes.AccountContactRequestIncomingAccepted{}, protocoltypes.EventType_EventTypeAccountContactRequestIncomingAccepted) } // ContactBlock indicates the payload includes that the deviceKeystore has blocked a contact func (m *MetadataStore) ContactBlock(ctx context.Context, pk crypto.PubKey) (operation.Operation, error) { if !m.typeChecker(isAccountGroup) { - return nil, errcode.ErrGroupInvalidType + return nil, errcode.ErrCode_ErrGroupInvalidType } accountPublicKey := m.memberDevice.Member() if accountPublicKey.Equals(pk) { - return nil, errcode.ErrInvalidInput + return nil, errcode.ErrCode_ErrInvalidInput } - if m.checkContactStatus(pk, protocoltypes.ContactStateBlocked) { - return nil, errcode.ErrInvalidInput + if m.checkContactStatus(pk, protocoltypes.ContactState_ContactStateBlocked) { + return nil, errcode.ErrCode_ErrInvalidInput } - return m.contactAction(ctx, pk, &protocoltypes.AccountContactBlocked{}, protocoltypes.EventTypeAccountContactBlocked) + return m.contactAction(ctx, pk, &protocoltypes.AccountContactBlocked{}, protocoltypes.EventType_EventTypeAccountContactBlocked) } // ContactUnblock indicates the payload includes that the deviceKeystore has unblocked a contact func (m *MetadataStore) ContactUnblock(ctx context.Context, pk crypto.PubKey) (operation.Operation, error) { if !m.typeChecker(isAccountGroup) { - return nil, errcode.ErrGroupInvalidType + return nil, errcode.ErrCode_ErrGroupInvalidType } - if !m.checkContactStatus(pk, protocoltypes.ContactStateBlocked) { - return nil, errcode.ErrInvalidInput + if !m.checkContactStatus(pk, protocoltypes.ContactState_ContactStateBlocked) { + return nil, errcode.ErrCode_ErrInvalidInput } - return m.contactAction(ctx, pk, &protocoltypes.AccountContactUnblocked{}, protocoltypes.EventTypeAccountContactUnblocked) + return m.contactAction(ctx, pk, &protocoltypes.AccountContactUnblocked{}, protocoltypes.EventType_EventTypeAccountContactUnblocked) } func (m *MetadataStore) ContactSendAliasKey(ctx context.Context) (operation.Operation, error) { if !m.typeChecker(isContactGroup) { - return nil, errcode.ErrGroupInvalidType + return nil, errcode.ErrCode_ErrGroupInvalidType } accountProofPublicKey, err := m.secretStore.GetAccountProofPublicKey() if err != nil { - return nil, errcode.ErrInternal.Wrap(err) + return nil, errcode.ErrCode_ErrInternal.Wrap(err) } alias, err := accountProofPublicKey.Raw() if err != nil { - return nil, errcode.ErrInternal.Wrap(err) + return nil, errcode.ErrCode_ErrInternal.Wrap(err) } return m.attributeSignAndAddEvent(ctx, &protocoltypes.ContactAliasKeyAdded{ - AliasPK: alias, - }, protocoltypes.EventTypeContactAliasKeyAdded) + AliasPk: alias, + }, protocoltypes.EventType_EventTypeContactAliasKeyAdded) } func (m *MetadataStore) SendAliasProof(ctx context.Context) (operation.Operation, error) { if !m.typeChecker(isMultiMemberGroup) { - return nil, errcode.ErrGroupInvalidType + return nil, errcode.ErrCode_ErrGroupInvalidType } resolver := []byte(nil) // TODO: should be a hmac value of something for quicker searches @@ -764,33 +764,32 @@ func (m *MetadataStore) SendAliasProof(ctx context.Context) (operation.Operation return m.attributeSignAndAddEvent(ctx, &protocoltypes.MultiMemberGroupAliasResolverAdded{ AliasResolver: resolver, AliasProof: proof, - }, protocoltypes.EventTypeMultiMemberGroupAliasResolverAdded) + }, protocoltypes.EventType_EventTypeMultiMemberGroupAliasResolverAdded) } func (m *MetadataStore) SendAppMetadata(ctx context.Context, message []byte) (operation.Operation, error) { return m.attributeSignAndAddEvent(ctx, &protocoltypes.GroupMetadataPayloadSent{ Message: message, - }, protocoltypes.EventTypeGroupMetadataPayloadSent) + }, protocoltypes.EventType_EventTypeGroupMetadataPayloadSent) } func (m *MetadataStore) SendAccountVerifiedCredentialAdded(ctx context.Context, token *protocoltypes.AccountVerifiedCredentialRegistered) (operation.Operation, error) { if !m.typeChecker(isAccountGroup) { - return nil, errcode.ErrGroupInvalidType + return nil, errcode.ErrCode_ErrGroupInvalidType } - return m.attributeSignAndAddEvent(ctx, token, protocoltypes.EventTypeAccountVerifiedCredentialRegistered) + return m.attributeSignAndAddEvent(ctx, token, protocoltypes.EventType_EventTypeAccountVerifiedCredentialRegistered) } func (m *MetadataStore) SendGroupReplicating(ctx context.Context, authenticationURL, replicationServer string) (operation.Operation, error) { return m.attributeSignAndAddEvent(ctx, &protocoltypes.GroupReplicating{ - AuthenticationURL: authenticationURL, + AuthenticationUrl: authenticationURL, ReplicationServer: replicationServer, - }, protocoltypes.EventTypeGroupReplicating) + }, protocoltypes.EventType_EventTypeGroupReplicating) } type accountSignableEvent interface { proto.Message - proto.Marshaler SetDevicePK([]byte) } @@ -809,7 +808,7 @@ func (m *MetadataStore) attributeSignAndAddEvent(ctx context.Context, evt accoun sig, err := signProtoWithDevice(evt, m.memberDevice) if err != nil { - return nil, errcode.ErrCryptoSignature.Wrap(err) + return nil, errcode.ErrCode_ErrCryptoSignature.Wrap(err) } m.logger.Debug("Signed event", tyber.FormatStepLogFields(ctx, []tyber.Detail{{Name: "Signature", Description: base64.RawURLEncoding.EncodeToString(sig)}})...) @@ -828,12 +827,12 @@ func (m *MetadataStore) contactAction(ctx context.Context, pk crypto.PubKey, eve m.logger.Debug("Sending "+strings.TrimPrefix(evtType.String(), "EventType")+" on Account group", tyberFields...) if pk == nil || event == nil { - return nil, errcode.ErrInvalidInput + return nil, errcode.ErrCode_ErrInvalidInput } pkBytes, err := pk.Raw() if err != nil { - return nil, errcode.ErrSerialization.Wrap(err) + return nil, errcode.ErrCode_ErrSerialization.Wrap(err) } event.SetContactPK(pkBytes) @@ -852,7 +851,7 @@ func (m *MetadataStore) contactAction(ctx context.Context, pk crypto.PubKey, eve func (m *MetadataStore) groupAction(ctx context.Context, pk crypto.PubKey, event accountGroupEvent, evtType protocoltypes.EventType) (operation.Operation, error) { pkBytes, err := pk.Raw() if err != nil { - return nil, errcode.ErrSerialization.Wrap(err) + return nil, errcode.ErrCode_ErrSerialization.Wrap(err) } event.SetGroupPK(pkBytes) @@ -862,13 +861,13 @@ func (m *MetadataStore) groupAction(ctx context.Context, pk crypto.PubKey, event func (m *MetadataStore) getContactStatus(pk crypto.PubKey) protocoltypes.ContactState { if pk == nil { - return protocoltypes.ContactStateUndefined + return protocoltypes.ContactState_ContactStateUndefined } contact, err := m.Index().(*metadataStoreIndex).getContact(pk) if err != nil { m.logger.Warn("unable to get contact for public key", zap.Error(err)) - return protocoltypes.ContactStateUndefined + return protocoltypes.ContactState_ContactStateUndefined } return contact.state @@ -895,7 +894,7 @@ func constructorFactoryGroupMetadata(s *WeshOrbitDB, logger *zap.Logger) iface.S return func(ipfs coreiface.CoreAPI, identity *identityprovider.Identity, addr address.Address, options *iface.NewStoreOptions) (iface.Store, error) { g, err := s.getGroupFromOptions(options) if err != nil { - return nil, errcode.ErrInvalidInput.Wrap(err) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(err) } shortGroupType := strings.TrimPrefix(g.GetGroupType().String(), "GroupType") b64GroupPK := base64.RawURLEncoding.EncodeToString(g.PublicKey) @@ -920,15 +919,15 @@ func constructorFactoryGroupMetadata(s *WeshOrbitDB, logger *zap.Logger) iface.S store.memberDevice, err = s.secretStore.GetOwnMemberDeviceForGroup(g) if err != nil { - if errcode.Is(err, errcode.ErrInvalidInput) { + if errcode.Is(err, errcode.ErrCode_ErrInvalidInput) { replication = true } else { - return nil, errcode.ErrOrbitDBInit.Wrap(err) + return nil, errcode.ErrCode_ErrOrbitDBInit.Wrap(err) } } else { store.devicePublicKeyRaw, err = store.memberDevice.Device().Raw() if err != nil { - return nil, errcode.ErrOrbitDBInit.Wrap(err) + return nil, errcode.ErrCode_ErrOrbitDBInit.Wrap(err) } } } @@ -943,7 +942,7 @@ func constructorFactoryGroupMetadata(s *WeshOrbitDB, logger *zap.Logger) iface.S options.Index = basestore.NewNoopIndex if err := store.InitBaseStore(ipfs, identity, addr, options); err != nil { store.cancel() - return nil, errcode.ErrOrbitDBInit.Wrap(err) + return nil, errcode.ErrCode_ErrOrbitDBInit.Wrap(err) } return store, nil @@ -1019,7 +1018,7 @@ func constructorFactoryGroupMetadata(s *WeshOrbitDB, logger *zap.Logger) iface.S options.Index = newMetadataIndex(store.ctx, g, store.memberDevice, s.secretStore) if err := store.InitBaseStore(ipfs, identity, addr, options); err != nil { store.cancel() - return nil, errcode.ErrOrbitDBInit.Wrap(err) + return nil, errcode.ErrCode_ErrOrbitDBInit.Wrap(err) } return store, nil diff --git a/store_metadata_index.go b/store_metadata_index.go index 5cf79237..7dce2754 100644 --- a/store_metadata_index.go +++ b/store_metadata_index.go @@ -5,9 +5,9 @@ import ( "fmt" "sync" - "github.com/gogo/protobuf/proto" "github.com/libp2p/go-libp2p/core/crypto" "go.uber.org/zap" + "google.golang.org/protobuf/proto" ipfslog "berty.tech/go-ipfs-log" "berty.tech/go-orbit-db/iface" @@ -78,7 +78,7 @@ func (m *metadataStoreIndex) UpdateIndex(log ipfslog.Log, _ []ipfslog.Entry) err _, alreadyHandledEvent := m.handledEvents[e.GetHash().String()] // TODO: improve account events handling - if m.group.GroupType != protocoltypes.GroupTypeAccount && alreadyHandledEvent { + if m.group.GroupType != protocoltypes.GroupType_GroupTypeAccount && alreadyHandledEvent { continue } @@ -115,7 +115,7 @@ func (m *metadataStoreIndex) UpdateIndex(log ipfslog.Log, _ []ipfslog.Entry) err for _, h := range m.postIndexActions { if err := h(); err != nil { - return errcode.ErrInternal.Wrap(err) + return errcode.ErrCode_ErrInternal.Wrap(err) } } @@ -125,27 +125,27 @@ func (m *metadataStoreIndex) UpdateIndex(log ipfslog.Log, _ []ipfslog.Entry) err func (m *metadataStoreIndex) handleGroupMemberDeviceAdded(event proto.Message) error { e, ok := event.(*protocoltypes.GroupMemberDeviceAdded) if !ok { - return errcode.ErrInvalidInput + return errcode.ErrCode_ErrInvalidInput } - member, err := crypto.UnmarshalEd25519PublicKey(e.MemberPK) + member, err := crypto.UnmarshalEd25519PublicKey(e.MemberPk) if err != nil { - return errcode.ErrDeserialization.Wrap(err) + return errcode.ErrCode_ErrDeserialization.Wrap(err) } - device, err := crypto.UnmarshalEd25519PublicKey(e.DevicePK) + device, err := crypto.UnmarshalEd25519PublicKey(e.DevicePk) if err != nil { - return errcode.ErrDeserialization.Wrap(err) + return errcode.ErrCode_ErrDeserialization.Wrap(err) } - if _, ok := m.devices[string(e.DevicePK)]; ok { + if _, ok := m.devices[string(e.DevicePk)]; ok { return nil } memberDevice := secretstore.NewMemberDevice(member, device) - m.devices[string(e.DevicePK)] = memberDevice - m.members[string(e.MemberPK)] = append(m.members[string(e.MemberPK)], memberDevice) + m.devices[string(e.DevicePk)] = memberDevice + m.members[string(e.MemberPk)] = append(m.members[string(e.MemberPk)], memberDevice) return nil } @@ -153,21 +153,21 @@ func (m *metadataStoreIndex) handleGroupMemberDeviceAdded(event proto.Message) e func (m *metadataStoreIndex) handleGroupDeviceChainKeyAdded(event proto.Message) error { e, ok := event.(*protocoltypes.GroupDeviceChainKeyAdded) if !ok { - return errcode.ErrInvalidInput + return errcode.ErrCode_ErrInvalidInput } - _, err := crypto.UnmarshalEd25519PublicKey(e.DestMemberPK) + _, err := crypto.UnmarshalEd25519PublicKey(e.DestMemberPk) if err != nil { - return errcode.ErrDeserialization.Wrap(err) + return errcode.ErrCode_ErrDeserialization.Wrap(err) } - senderPK, err := crypto.UnmarshalEd25519PublicKey(e.DevicePK) + senderPK, err := crypto.UnmarshalEd25519PublicKey(e.DevicePk) if err != nil { - return errcode.ErrDeserialization.Wrap(err) + return errcode.ErrCode_ErrDeserialization.Wrap(err) } if m.ownMemberDevice.Device().Equals(senderPK) { - m.sentSecrets[string(e.DestMemberPK)] = struct{}{} + m.sentSecrets[string(e.DestMemberPk)] = struct{}{} } return nil @@ -179,7 +179,7 @@ func (m *metadataStoreIndex) getMemberByDevice(devicePublicKey crypto.PubKey) (c publicKeyBytes, err := devicePublicKey.Raw() if err != nil { - return nil, errcode.ErrInvalidInput.Wrap(err) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(err) } return m.unsafeGetMemberByDevice(publicKeyBytes) @@ -187,12 +187,12 @@ func (m *metadataStoreIndex) getMemberByDevice(devicePublicKey crypto.PubKey) (c func (m *metadataStoreIndex) unsafeGetMemberByDevice(publicKeyBytes []byte) (crypto.PubKey, error) { if l := len(publicKeyBytes); l != cryptoutil.KeySize { - return nil, errcode.ErrInvalidInput.Wrap(fmt.Errorf("invalid private key size, expected %d got %d", cryptoutil.KeySize, l)) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("invalid private key size, expected %d got %d", cryptoutil.KeySize, l)) } device, ok := m.devices[string(publicKeyBytes)] if !ok { - return nil, errcode.ErrMissingInput + return nil, errcode.ErrCode_ErrMissingInput } return device.Member(), nil @@ -204,12 +204,12 @@ func (m *metadataStoreIndex) getDevicesForMember(pk crypto.PubKey) ([]crypto.Pub id, err := pk.Raw() if err != nil { - return nil, errcode.ErrInvalidInput.Wrap(err) + return nil, errcode.ErrCode_ErrInvalidInput.Wrap(err) } mds, ok := m.members[string(id)] if !ok { - return nil, errcode.ErrInvalidInput + return nil, errcode.ErrCode_ErrInvalidInput } ret := make([]crypto.PubKey, len(mds)) @@ -244,7 +244,7 @@ func (m *metadataStoreIndex) listContacts() map[string]*AccountContact { contacts[k] = &AccountContact{ state: contact.state, contact: &protocoltypes.ShareableContact{ - PK: contact.contact.PK, + Pk: contact.contact.Pk, PublicRendezvousSeed: contact.contact.PublicRendezvousSeed, Metadata: contact.contact.Metadata, }, @@ -297,7 +297,7 @@ func (m *metadataStoreIndex) areSecretsAlreadySent(pk crypto.PubKey) (bool, erro key, err := pk.Raw() if err != nil { - return false, errcode.ErrInvalidInput.Wrap(err) + return false, errcode.ErrCode_ErrInvalidInput.Wrap(err) } _, ok := m.sentSecrets[string(key)] @@ -324,7 +324,7 @@ type AccountContact struct { func (m *metadataStoreIndex) handleGroupJoined(event proto.Message) error { evt, ok := event.(*protocoltypes.AccountGroupJoined) if !ok { - return errcode.ErrInvalidInput + return errcode.ErrCode_ErrInvalidInput } _, ok = m.groups[string(evt.Group.PublicKey)] @@ -343,15 +343,15 @@ func (m *metadataStoreIndex) handleGroupJoined(event proto.Message) error { func (m *metadataStoreIndex) handleGroupLeft(event proto.Message) error { evt, ok := event.(*protocoltypes.AccountGroupLeft) if !ok { - return errcode.ErrInvalidInput + return errcode.ErrCode_ErrInvalidInput } - _, ok = m.groups[string(evt.GroupPK)] + _, ok = m.groups[string(evt.GroupPk)] if ok { return nil } - m.groups[string(evt.GroupPK)] = &accountGroup{ + m.groups[string(evt.GroupPk)] = &accountGroup{ state: accountGroupJoinedStateLeft, } @@ -365,7 +365,7 @@ func (m *metadataStoreIndex) handleContactRequestDisabled(event proto.Message) e _, ok := event.(*protocoltypes.AccountContactRequestDisabled) if !ok { - return errcode.ErrInvalidInput + return errcode.ErrCode_ErrInvalidInput } f := false @@ -381,7 +381,7 @@ func (m *metadataStoreIndex) handleContactRequestEnabled(event proto.Message) er _, ok := event.(*protocoltypes.AccountContactRequestEnabled) if !ok { - return errcode.ErrInvalidInput + return errcode.ErrCode_ErrInvalidInput } t := true @@ -393,7 +393,7 @@ func (m *metadataStoreIndex) handleContactRequestEnabled(event proto.Message) er func (m *metadataStoreIndex) handleContactRequestReferenceReset(event proto.Message) error { evt, ok := event.(*protocoltypes.AccountContactRequestReferenceReset) if !ok { - return errcode.ErrInvalidInput + return errcode.ErrCode_ErrInvalidInput } if m.contactRequestSeed != nil { @@ -406,18 +406,18 @@ func (m *metadataStoreIndex) handleContactRequestReferenceReset(event proto.Mess } func (m *metadataStoreIndex) registerContactFromGroupPK(ac *AccountContact) error { - if m.group.GroupType != protocoltypes.GroupTypeAccount { - return errcode.ErrGroupInvalidType + if m.group.GroupType != protocoltypes.GroupType_GroupTypeAccount { + return errcode.ErrCode_ErrGroupInvalidType } - contactPK, err := crypto.UnmarshalEd25519PublicKey(ac.contact.PK) + contactPK, err := crypto.UnmarshalEd25519PublicKey(ac.contact.Pk) if err != nil { - return errcode.ErrDeserialization.Wrap(err) + return errcode.ErrCode_ErrDeserialization.Wrap(err) } group, err := m.secretStore.GetGroupForContact(contactPK) if err != nil { - return errcode.ErrOrbitDBOpen.Wrap(err) + return errcode.ErrCode_ErrOrbitDBOpen.Wrap(err) } m.contactsFromGroupPK[string(group.PublicKey)] = ac @@ -428,35 +428,35 @@ func (m *metadataStoreIndex) registerContactFromGroupPK(ac *AccountContact) erro func (m *metadataStoreIndex) handleContactRequestOutgoingEnqueued(event proto.Message) error { evt, ok := event.(*protocoltypes.AccountContactRequestOutgoingEnqueued) if ko := !ok || evt.Contact == nil; ko { - return errcode.ErrInvalidInput + return errcode.ErrCode_ErrInvalidInput } - if _, ok := m.contacts[string(evt.Contact.PK)]; ok { - if m.contacts[string(evt.Contact.PK)].contact.Metadata == nil { - m.contacts[string(evt.Contact.PK)].contact.Metadata = evt.Contact.Metadata + if _, ok := m.contacts[string(evt.Contact.Pk)]; ok { + if m.contacts[string(evt.Contact.Pk)].contact.Metadata == nil { + m.contacts[string(evt.Contact.Pk)].contact.Metadata = evt.Contact.Metadata } - if m.contacts[string(evt.Contact.PK)].contact.PublicRendezvousSeed == nil { - m.contacts[string(evt.Contact.PK)].contact.PublicRendezvousSeed = evt.Contact.PublicRendezvousSeed + if m.contacts[string(evt.Contact.Pk)].contact.PublicRendezvousSeed == nil { + m.contacts[string(evt.Contact.Pk)].contact.PublicRendezvousSeed = evt.Contact.PublicRendezvousSeed } return nil } - if data, ok := m.contactRequestMetadata[string(evt.Contact.PK)]; !ok || len(data) == 0 { - m.contactRequestMetadata[string(evt.Contact.PK)] = evt.OwnMetadata + if data, ok := m.contactRequestMetadata[string(evt.Contact.Pk)]; !ok || len(data) == 0 { + m.contactRequestMetadata[string(evt.Contact.Pk)] = evt.OwnMetadata } ac := &AccountContact{ - state: protocoltypes.ContactStateToRequest, + state: protocoltypes.ContactState_ContactStateToRequest, contact: &protocoltypes.ShareableContact{ - PK: evt.Contact.PK, + Pk: evt.Contact.Pk, Metadata: evt.Contact.Metadata, PublicRendezvousSeed: evt.Contact.PublicRendezvousSeed, }, } - m.contacts[string(evt.Contact.PK)] = ac + m.contacts[string(evt.Contact.Pk)] = ac err := m.registerContactFromGroupPK(ac) return err @@ -465,21 +465,21 @@ func (m *metadataStoreIndex) handleContactRequestOutgoingEnqueued(event proto.Me func (m *metadataStoreIndex) handleContactRequestOutgoingSent(event proto.Message) error { evt, ok := event.(*protocoltypes.AccountContactRequestOutgoingSent) if !ok { - return errcode.ErrInvalidInput + return errcode.ErrCode_ErrInvalidInput } - if _, ok := m.contacts[string(evt.ContactPK)]; ok { + if _, ok := m.contacts[string(evt.ContactPk)]; ok { return nil } ac := &AccountContact{ - state: protocoltypes.ContactStateAdded, + state: protocoltypes.ContactState_ContactStateAdded, contact: &protocoltypes.ShareableContact{ - PK: evt.ContactPK, + Pk: evt.ContactPk, }, } - m.contacts[string(evt.ContactPK)] = ac + m.contacts[string(evt.ContactPk)] = ac err := m.registerContactFromGroupPK(ac) return err @@ -488,31 +488,31 @@ func (m *metadataStoreIndex) handleContactRequestOutgoingSent(event proto.Messag func (m *metadataStoreIndex) handleContactRequestIncomingReceived(event proto.Message) error { evt, ok := event.(*protocoltypes.AccountContactRequestIncomingReceived) if !ok { - return errcode.ErrInvalidInput + return errcode.ErrCode_ErrInvalidInput } - if _, ok := m.contacts[string(evt.ContactPK)]; ok { - if m.contacts[string(evt.ContactPK)].contact.Metadata == nil { - m.contacts[string(evt.ContactPK)].contact.Metadata = evt.ContactMetadata + if _, ok := m.contacts[string(evt.ContactPk)]; ok { + if m.contacts[string(evt.ContactPk)].contact.Metadata == nil { + m.contacts[string(evt.ContactPk)].contact.Metadata = evt.ContactMetadata } - if m.contacts[string(evt.ContactPK)].contact.PublicRendezvousSeed == nil { - m.contacts[string(evt.ContactPK)].contact.PublicRendezvousSeed = evt.ContactRendezvousSeed + if m.contacts[string(evt.ContactPk)].contact.PublicRendezvousSeed == nil { + m.contacts[string(evt.ContactPk)].contact.PublicRendezvousSeed = evt.ContactRendezvousSeed } return nil } ac := &AccountContact{ - state: protocoltypes.ContactStateReceived, + state: protocoltypes.ContactState_ContactStateReceived, contact: &protocoltypes.ShareableContact{ - PK: evt.ContactPK, + Pk: evt.ContactPk, Metadata: evt.ContactMetadata, PublicRendezvousSeed: evt.ContactRendezvousSeed, }, } - m.contacts[string(evt.ContactPK)] = ac + m.contacts[string(evt.ContactPk)] = ac err := m.registerContactFromGroupPK(ac) return err @@ -521,21 +521,21 @@ func (m *metadataStoreIndex) handleContactRequestIncomingReceived(event proto.Me func (m *metadataStoreIndex) handleContactRequestIncomingDiscarded(event proto.Message) error { evt, ok := event.(*protocoltypes.AccountContactRequestIncomingDiscarded) if !ok { - return errcode.ErrInvalidInput + return errcode.ErrCode_ErrInvalidInput } - if _, ok := m.contacts[string(evt.ContactPK)]; ok { + if _, ok := m.contacts[string(evt.ContactPk)]; ok { return nil } ac := &AccountContact{ - state: protocoltypes.ContactStateDiscarded, + state: protocoltypes.ContactState_ContactStateDiscarded, contact: &protocoltypes.ShareableContact{ - PK: evt.ContactPK, + Pk: evt.ContactPk, }, } - m.contacts[string(evt.ContactPK)] = ac + m.contacts[string(evt.ContactPk)] = ac err := m.registerContactFromGroupPK(ac) return err @@ -544,21 +544,21 @@ func (m *metadataStoreIndex) handleContactRequestIncomingDiscarded(event proto.M func (m *metadataStoreIndex) handleContactRequestIncomingAccepted(event proto.Message) error { evt, ok := event.(*protocoltypes.AccountContactRequestIncomingAccepted) if !ok { - return errcode.ErrInvalidInput + return errcode.ErrCode_ErrInvalidInput } - if _, ok := m.contacts[string(evt.ContactPK)]; ok { + if _, ok := m.contacts[string(evt.ContactPk)]; ok { return nil } ac := &AccountContact{ - state: protocoltypes.ContactStateAdded, + state: protocoltypes.ContactState_ContactStateAdded, contact: &protocoltypes.ShareableContact{ - PK: evt.ContactPK, + Pk: evt.ContactPk, }, } - m.contacts[string(evt.ContactPK)] = ac + m.contacts[string(evt.ContactPk)] = ac err := m.registerContactFromGroupPK(ac) return err @@ -567,21 +567,21 @@ func (m *metadataStoreIndex) handleContactRequestIncomingAccepted(event proto.Me func (m *metadataStoreIndex) handleContactBlocked(event proto.Message) error { evt, ok := event.(*protocoltypes.AccountContactBlocked) if !ok { - return errcode.ErrInvalidInput + return errcode.ErrCode_ErrInvalidInput } - if _, ok := m.contacts[string(evt.ContactPK)]; ok { + if _, ok := m.contacts[string(evt.ContactPk)]; ok { return nil } ac := &AccountContact{ - state: protocoltypes.ContactStateBlocked, + state: protocoltypes.ContactState_ContactStateBlocked, contact: &protocoltypes.ShareableContact{ - PK: evt.ContactPK, + Pk: evt.ContactPk, }, } - m.contacts[string(evt.ContactPK)] = ac + m.contacts[string(evt.ContactPk)] = ac err := m.registerContactFromGroupPK(ac) return err @@ -590,21 +590,21 @@ func (m *metadataStoreIndex) handleContactBlocked(event proto.Message) error { func (m *metadataStoreIndex) handleContactUnblocked(event proto.Message) error { evt, ok := event.(*protocoltypes.AccountContactUnblocked) if !ok { - return errcode.ErrInvalidInput + return errcode.ErrCode_ErrInvalidInput } - if _, ok := m.contacts[string(evt.ContactPK)]; ok { + if _, ok := m.contacts[string(evt.ContactPk)]; ok { return nil } ac := &AccountContact{ - state: protocoltypes.ContactStateRemoved, + state: protocoltypes.ContactState_ContactStateRemoved, contact: &protocoltypes.ShareableContact{ - PK: evt.ContactPK, + Pk: evt.ContactPk, }, } - m.contacts[string(evt.ContactPK)] = ac + m.contacts[string(evt.ContactPk)] = ac err := m.registerContactFromGroupPK(ac) return err @@ -613,7 +613,7 @@ func (m *metadataStoreIndex) handleContactUnblocked(event proto.Message) error { func (m *metadataStoreIndex) handleContactAliasKeyAdded(event proto.Message) error { evt, ok := event.(*protocoltypes.ContactAliasKeyAdded) if !ok { - return errcode.ErrInvalidInput + return errcode.ErrCode_ErrInvalidInput } m.eventsContactAddAliasKey = append(m.eventsContactAddAliasKey, evt) @@ -624,16 +624,16 @@ func (m *metadataStoreIndex) handleContactAliasKeyAdded(event proto.Message) err func (m *metadataStoreIndex) handleMultiMemberInitialMember(event proto.Message) error { e, ok := event.(*protocoltypes.MultiMemberGroupInitialMemberAnnounced) if !ok { - return errcode.ErrInvalidInput + return errcode.ErrCode_ErrInvalidInput } - pk, err := crypto.UnmarshalEd25519PublicKey(e.MemberPK) + pk, err := crypto.UnmarshalEd25519PublicKey(e.MemberPk) if err != nil { - return errcode.ErrDeserialization.Wrap(err) + return errcode.ErrCode_ErrDeserialization.Wrap(err) } if _, ok := m.admins[pk]; ok { - return errcode.ErrInternal + return errcode.ErrCode_ErrInternal } m.admins[pk] = struct{}{} @@ -654,7 +654,7 @@ func (m *metadataStoreIndex) handleGroupMetadataPayloadSent(_ proto.Message) err func (m *metadataStoreIndex) handleAccountVerifiedCredentialRegistered(event proto.Message) error { e, ok := event.(*protocoltypes.AccountVerifiedCredentialRegistered) if !ok { - return errcode.ErrInvalidInput + return errcode.ErrCode_ErrInvalidInput } m.verifiedCredentials = append(m.verifiedCredentials, e) @@ -725,12 +725,12 @@ func (m *metadataStoreIndex) getContact(pk crypto.PubKey) (*AccountContact, erro bytes, err := pk.Raw() if err != nil { - return nil, errcode.ErrSerialization.Wrap(err) + return nil, errcode.ErrCode_ErrSerialization.Wrap(err) } contact, ok := m.contacts[string(bytes)] if !ok { - return nil, errcode.ErrMissingMapKey.Wrap(err) + return nil, errcode.ErrCode_ErrMissingMapKey.Wrap(err) } return contact, nil @@ -738,7 +738,7 @@ func (m *metadataStoreIndex) getContact(pk crypto.PubKey) (*AccountContact, erro func (m *metadataStoreIndex) postHandlerSentAliases() error { for _, evt := range m.eventsContactAddAliasKey { - memberPublicKey, err := m.unsafeGetMemberByDevice(evt.DevicePK) + memberPublicKey, err := m.unsafeGetMemberByDevice(evt.DevicePk) if err != nil { return fmt.Errorf("couldn't get member for device") } @@ -748,11 +748,11 @@ func (m *metadataStoreIndex) postHandlerSentAliases() error { continue } - if l := len(evt.AliasPK); l != cryptoutil.KeySize { - return errcode.ErrInvalidInput.Wrap(fmt.Errorf("invalid alias key size, expected %d, got %d", cryptoutil.KeySize, l)) + if l := len(evt.AliasPk); l != cryptoutil.KeySize { + return errcode.ErrCode_ErrInvalidInput.Wrap(fmt.Errorf("invalid alias key size, expected %d, got %d", cryptoutil.KeySize, l)) } - m.otherAliasKey = evt.AliasPK + m.otherAliasKey = evt.AliasPk } m.eventsContactAddAliasKey = nil @@ -782,25 +782,25 @@ func newMetadataIndex(ctx context.Context, g *protocoltypes.Group, md secretstor } m.eventHandlers = map[protocoltypes.EventType][]func(event proto.Message) error{ - protocoltypes.EventTypeAccountContactBlocked: {m.handleContactBlocked}, - protocoltypes.EventTypeAccountContactRequestDisabled: {m.handleContactRequestDisabled}, - protocoltypes.EventTypeAccountContactRequestEnabled: {m.handleContactRequestEnabled}, - protocoltypes.EventTypeAccountContactRequestIncomingAccepted: {m.handleContactRequestIncomingAccepted}, - protocoltypes.EventTypeAccountContactRequestIncomingDiscarded: {m.handleContactRequestIncomingDiscarded}, - protocoltypes.EventTypeAccountContactRequestIncomingReceived: {m.handleContactRequestIncomingReceived}, - protocoltypes.EventTypeAccountContactRequestOutgoingEnqueued: {m.handleContactRequestOutgoingEnqueued}, - protocoltypes.EventTypeAccountContactRequestOutgoingSent: {m.handleContactRequestOutgoingSent}, - protocoltypes.EventTypeAccountContactRequestReferenceReset: {m.handleContactRequestReferenceReset}, - protocoltypes.EventTypeAccountContactUnblocked: {m.handleContactUnblocked}, - protocoltypes.EventTypeAccountGroupJoined: {m.handleGroupJoined}, - protocoltypes.EventTypeAccountGroupLeft: {m.handleGroupLeft}, - protocoltypes.EventTypeContactAliasKeyAdded: {m.handleContactAliasKeyAdded}, - protocoltypes.EventTypeGroupDeviceChainKeyAdded: {m.handleGroupDeviceChainKeyAdded}, - protocoltypes.EventTypeGroupMemberDeviceAdded: {m.handleGroupMemberDeviceAdded}, - protocoltypes.EventTypeMultiMemberGroupAdminRoleGranted: {m.handleMultiMemberGrantAdminRole}, - protocoltypes.EventTypeMultiMemberGroupInitialMemberAnnounced: {m.handleMultiMemberInitialMember}, - protocoltypes.EventTypeGroupMetadataPayloadSent: {m.handleGroupMetadataPayloadSent}, - protocoltypes.EventTypeAccountVerifiedCredentialRegistered: {m.handleAccountVerifiedCredentialRegistered}, + protocoltypes.EventType_EventTypeAccountContactBlocked: {m.handleContactBlocked}, + protocoltypes.EventType_EventTypeAccountContactRequestDisabled: {m.handleContactRequestDisabled}, + protocoltypes.EventType_EventTypeAccountContactRequestEnabled: {m.handleContactRequestEnabled}, + protocoltypes.EventType_EventTypeAccountContactRequestIncomingAccepted: {m.handleContactRequestIncomingAccepted}, + protocoltypes.EventType_EventTypeAccountContactRequestIncomingDiscarded: {m.handleContactRequestIncomingDiscarded}, + protocoltypes.EventType_EventTypeAccountContactRequestIncomingReceived: {m.handleContactRequestIncomingReceived}, + protocoltypes.EventType_EventTypeAccountContactRequestOutgoingEnqueued: {m.handleContactRequestOutgoingEnqueued}, + protocoltypes.EventType_EventTypeAccountContactRequestOutgoingSent: {m.handleContactRequestOutgoingSent}, + protocoltypes.EventType_EventTypeAccountContactRequestReferenceReset: {m.handleContactRequestReferenceReset}, + protocoltypes.EventType_EventTypeAccountContactUnblocked: {m.handleContactUnblocked}, + protocoltypes.EventType_EventTypeAccountGroupJoined: {m.handleGroupJoined}, + protocoltypes.EventType_EventTypeAccountGroupLeft: {m.handleGroupLeft}, + protocoltypes.EventType_EventTypeContactAliasKeyAdded: {m.handleContactAliasKeyAdded}, + protocoltypes.EventType_EventTypeGroupDeviceChainKeyAdded: {m.handleGroupDeviceChainKeyAdded}, + protocoltypes.EventType_EventTypeGroupMemberDeviceAdded: {m.handleGroupMemberDeviceAdded}, + protocoltypes.EventType_EventTypeMultiMemberGroupAdminRoleGranted: {m.handleMultiMemberGrantAdminRole}, + protocoltypes.EventType_EventTypeMultiMemberGroupInitialMemberAnnounced: {m.handleMultiMemberInitialMember}, + protocoltypes.EventType_EventTypeGroupMetadataPayloadSent: {m.handleGroupMetadataPayloadSent}, + protocoltypes.EventType_EventTypeAccountVerifiedCredentialRegistered: {m.handleAccountVerifiedCredentialRegistered}, } m.postIndexActions = []func() error{ diff --git a/store_metadata_test.go b/store_metadata_test.go index aa5f06d8..17b6ab05 100644 --- a/store_metadata_test.go +++ b/store_metadata_test.go @@ -40,8 +40,8 @@ func TestMetadataStoreSecret_Basic(t *testing.T) { msA := peers[0].GC.MetadataStore() msB := peers[1].GC.MetadataStore() - go waitForBertyEventType(ctx, t, msA, protocoltypes.EventTypeGroupDeviceChainKeyAdded, 2, secretsAdded) - go waitForBertyEventType(ctx, t, msB, protocoltypes.EventTypeGroupDeviceChainKeyAdded, 2, secretsAdded) + go waitForBertyEventType(ctx, t, msA, protocoltypes.EventType_EventTypeGroupDeviceChainKeyAdded, 2, secretsAdded) + go waitForBertyEventType(ctx, t, msB, protocoltypes.EventType_EventTypeGroupDeviceChainKeyAdded, 2, secretsAdded) inviteAllPeersToGroup(ctx, t, peers, groupSK) devPkA := peers[0].GC.DevicePubKey() @@ -95,7 +95,7 @@ func testMemberStore(t *testing.T, memberCount, deviceCount int) { done := make(chan struct{}) for _, peer := range peers { - go waitForBertyEventType(ctx, t, peer.GC.MetadataStore(), protocoltypes.EventTypeGroupMemberDeviceAdded, len(peers), done) + go waitForBertyEventType(ctx, t, peer.GC.MetadataStore(), protocoltypes.EventType_EventTypeGroupMemberDeviceAdded, len(peers), done) } for i, peer := range peers { @@ -189,7 +189,7 @@ func TestMetadataRendezvousPointLifecycle(t *testing.T) { enabled, shareableContact = meta.GetIncomingContactRequestsStatus() assert.False(t, enabled) assert.NotNil(t, shareableContact) - assert.Equal(t, accPK, shareableContact.PK) + assert.Equal(t, accPK, shareableContact.Pk) assert.Equal(t, 32, len(shareableContact.PublicRendezvousSeed)) _, err = meta.ContactRequestEnable(ctx) @@ -206,7 +206,7 @@ func TestMetadataRendezvousPointLifecycle(t *testing.T) { enabled, shareableContact = meta.GetIncomingContactRequestsStatus() assert.True(t, enabled) assert.NotNil(t, shareableContact) - assert.Equal(t, accPK, shareableContact.PK) + assert.Equal(t, accPK, shareableContact.Pk) assert.Equal(t, 32, len(shareableContact.PublicRendezvousSeed)) // Disable incoming contact requests @@ -216,7 +216,7 @@ func TestMetadataRendezvousPointLifecycle(t *testing.T) { enabled, shareableContact = meta.GetIncomingContactRequestsStatus() assert.False(t, enabled) assert.NotNil(t, shareableContact) - assert.Equal(t, accPK, shareableContact.PK) + assert.Equal(t, accPK, shareableContact.Pk) assert.Equal(t, 32, len(shareableContact.PublicRendezvousSeed)) } @@ -262,7 +262,7 @@ func TestMetadataContactLifecycle(t *testing.T) { _, err = meta[0].ContactRequestReferenceReset(ctx) require.NoError(t, err) - contact2PK := contacts[1].PK + contact2PK := contacts[1].Pk contact2RDVS := contacts[1].PublicRendezvousSeed // Enqueuing outgoing @@ -278,8 +278,8 @@ func TestMetadataContactLifecycle(t *testing.T) { require.Equal(t, len(meta[0].Index().(*metadataStoreIndex).contacts), 1) require.NotNil(t, meta[0].Index().(*metadataStoreIndex).contacts[string(contact2PK)]) - require.Equal(t, meta[0].Index().(*metadataStoreIndex).contacts[string(contact2PK)].state, protocoltypes.ContactStateToRequest) - require.Equal(t, meta[0].Index().(*metadataStoreIndex).contacts[string(contact2PK)].contact.PK, contact2PK) + require.Equal(t, meta[0].Index().(*metadataStoreIndex).contacts[string(contact2PK)].state, protocoltypes.ContactState_ContactStateToRequest) + require.Equal(t, meta[0].Index().(*metadataStoreIndex).contacts[string(contact2PK)].contact.Pk, contact2PK) require.Equal(t, meta[0].Index().(*metadataStoreIndex).contacts[string(contact2PK)].contact.PublicRendezvousSeed, contact2RDVS) require.Equal(t, contacts[0].Metadata, meta[0].Index().(*metadataStoreIndex).contactRequestMetadata[string(contact2PK)]) @@ -291,25 +291,25 @@ func TestMetadataContactLifecycle(t *testing.T) { _, err = meta[0].ContactRequestOutgoingEnqueue(ctx, contacts[1], contacts[0].Metadata) require.Error(t, err) - contacts[1].PK = nil + contacts[1].Pk = nil contacts[1].PublicRendezvousSeed = contact2RDVS _, err = meta[0].ContactRequestOutgoingEnqueue(ctx, contacts[1], contacts[0].Metadata) require.Error(t, err) - contacts[1].PK = []byte("invalid") + contacts[1].Pk = []byte("invalid") _, err = meta[0].ContactRequestOutgoingEnqueue(ctx, contacts[1], contacts[0].Metadata) require.Error(t, err) require.Equal(t, 1, len(meta[0].Index().(*metadataStoreIndex).contacts)) require.NotNil(t, meta[0].Index().(*metadataStoreIndex).contacts[string(contact2PK)]) - require.Equal(t, protocoltypes.ContactStateToRequest, meta[0].Index().(*metadataStoreIndex).contacts[string(contact2PK)].state) - require.Equal(t, contact2PK, meta[0].Index().(*metadataStoreIndex).contacts[string(contact2PK)].contact.PK) + require.Equal(t, protocoltypes.ContactState_ContactStateToRequest, meta[0].Index().(*metadataStoreIndex).contacts[string(contact2PK)].state) + require.Equal(t, contact2PK, meta[0].Index().(*metadataStoreIndex).contacts[string(contact2PK)].contact.Pk) require.Equal(t, contact2RDVS, meta[0].Index().(*metadataStoreIndex).contacts[string(contact2PK)].contact.PublicRendezvousSeed) require.Equal(t, contacts[0].Metadata, meta[0].Index().(*metadataStoreIndex).contactRequestMetadata[string(contact2PK)]) - contacts[1].PK = contact2PK + contacts[1].Pk = contact2PK contacts[1].PublicRendezvousSeed = contact2RDVS - meta[0].Index().(*metadataStoreIndex).contactRequestMetadata[string(contacts[1].PK)] = contacts[0].Metadata + meta[0].Index().(*metadataStoreIndex).contactRequestMetadata[string(contacts[1].Pk)] = contacts[0].Metadata // Marking as sent @@ -322,32 +322,32 @@ func TestMetadataContactLifecycle(t *testing.T) { _, err = meta[0].ContactRequestOutgoingSent(ctx, ownCG[0].MemberPubKey()) require.Error(t, err) - meta[0].Index().(*metadataStoreIndex).contacts[string(contacts[1].PK)].state = protocoltypes.ContactStateAdded + meta[0].Index().(*metadataStoreIndex).contacts[string(contacts[1].Pk)].state = protocoltypes.ContactState_ContactStateAdded _, err = meta[0].ContactRequestOutgoingSent(ctx, ownCG[1].MemberPubKey()) require.Error(t, err) - meta[0].Index().(*metadataStoreIndex).contacts[string(contacts[1].PK)].state = protocoltypes.ContactStateToRequest + meta[0].Index().(*metadataStoreIndex).contacts[string(contacts[1].Pk)].state = protocoltypes.ContactState_ContactStateToRequest _, err = meta[0].ContactRequestOutgoingSent(ctx, ownCG[1].MemberPubKey()) require.NoError(t, err) require.Equal(t, len(meta[0].Index().(*metadataStoreIndex).contacts), 1) - require.NotNil(t, meta[0].Index().(*metadataStoreIndex).contacts[string(contacts[1].PK)]) - require.Equal(t, protocoltypes.ContactStateAdded, meta[0].Index().(*metadataStoreIndex).contacts[string(contacts[1].PK)].state) - require.Equal(t, contacts[1].PK, meta[0].Index().(*metadataStoreIndex).contacts[string(contacts[1].PK)].contact.PK) - require.Equal(t, contacts[1].PublicRendezvousSeed, meta[0].Index().(*metadataStoreIndex).contacts[string(contacts[1].PK)].contact.PublicRendezvousSeed) + require.NotNil(t, meta[0].Index().(*metadataStoreIndex).contacts[string(contacts[1].Pk)]) + require.Equal(t, protocoltypes.ContactState_ContactStateAdded, meta[0].Index().(*metadataStoreIndex).contacts[string(contacts[1].Pk)].state) + require.Equal(t, contacts[1].Pk, meta[0].Index().(*metadataStoreIndex).contacts[string(contacts[1].Pk)].contact.Pk) + require.Equal(t, contacts[1].PublicRendezvousSeed, meta[0].Index().(*metadataStoreIndex).contacts[string(contacts[1].Pk)].contact.PublicRendezvousSeed) // Marking as received _, err = meta[1].ContactRequestIncomingReceived(ctx, &protocoltypes.ShareableContact{}) require.Error(t, err) - _, err = meta[1].ContactRequestIncomingReceived(ctx, &protocoltypes.ShareableContact{PK: []byte("invalid"), PublicRendezvousSeed: []byte("invalid")}) + _, err = meta[1].ContactRequestIncomingReceived(ctx, &protocoltypes.ShareableContact{Pk: []byte("invalid"), PublicRendezvousSeed: []byte("invalid")}) require.Error(t, err) - _, err = meta[1].ContactRequestIncomingReceived(ctx, &protocoltypes.ShareableContact{PK: []byte("invalid"), PublicRendezvousSeed: contacts[0].PublicRendezvousSeed}) + _, err = meta[1].ContactRequestIncomingReceived(ctx, &protocoltypes.ShareableContact{Pk: []byte("invalid"), PublicRendezvousSeed: contacts[0].PublicRendezvousSeed}) require.Error(t, err) - _, err = meta[1].ContactRequestIncomingReceived(ctx, &protocoltypes.ShareableContact{PK: contacts[0].PK, PublicRendezvousSeed: []byte("invalid")}) + _, err = meta[1].ContactRequestIncomingReceived(ctx, &protocoltypes.ShareableContact{Pk: contacts[0].Pk, PublicRendezvousSeed: []byte("invalid")}) require.Error(t, err) _, err = meta[1].ContactRequestIncomingReceived(ctx, contacts[1]) @@ -357,11 +357,11 @@ func TestMetadataContactLifecycle(t *testing.T) { require.NoError(t, err) require.Equal(t, len(meta[1].Index().(*metadataStoreIndex).contacts), 1) - require.NotNil(t, meta[1].Index().(*metadataStoreIndex).contacts[string(contacts[0].PK)]) - require.Equal(t, protocoltypes.ContactStateReceived, meta[1].Index().(*metadataStoreIndex).contacts[string(contacts[0].PK)].state) - require.Equal(t, contacts[0].PK, meta[1].Index().(*metadataStoreIndex).contacts[string(contacts[0].PK)].contact.PK) - require.Equal(t, contacts[0].PublicRendezvousSeed, meta[1].Index().(*metadataStoreIndex).contacts[string(contacts[0].PK)].contact.PublicRendezvousSeed) - require.Equal(t, contacts[0].Metadata, meta[1].Index().(*metadataStoreIndex).contacts[string(contacts[0].PK)].contact.Metadata) + require.NotNil(t, meta[1].Index().(*metadataStoreIndex).contacts[string(contacts[0].Pk)]) + require.Equal(t, protocoltypes.ContactState_ContactStateReceived, meta[1].Index().(*metadataStoreIndex).contacts[string(contacts[0].Pk)].state) + require.Equal(t, contacts[0].Pk, meta[1].Index().(*metadataStoreIndex).contacts[string(contacts[0].Pk)].contact.Pk) + require.Equal(t, contacts[0].PublicRendezvousSeed, meta[1].Index().(*metadataStoreIndex).contacts[string(contacts[0].Pk)].contact.PublicRendezvousSeed) + require.Equal(t, contacts[0].Metadata, meta[1].Index().(*metadataStoreIndex).contacts[string(contacts[0].Pk)].contact.Metadata) // Accepting received @@ -378,10 +378,10 @@ func TestMetadataContactLifecycle(t *testing.T) { require.NoError(t, err) require.Equal(t, len(meta[1].Index().(*metadataStoreIndex).contacts), 1) - require.NotNil(t, meta[1].Index().(*metadataStoreIndex).contacts[string(contacts[0].PK)]) - require.Equal(t, protocoltypes.ContactStateAdded, meta[1].Index().(*metadataStoreIndex).contacts[string(contacts[0].PK)].state) - require.Equal(t, contacts[0].PK, meta[1].Index().(*metadataStoreIndex).contacts[string(contacts[0].PK)].contact.PK) - require.Equal(t, contacts[0].PublicRendezvousSeed, meta[1].Index().(*metadataStoreIndex).contacts[string(contacts[0].PK)].contact.PublicRendezvousSeed) + require.NotNil(t, meta[1].Index().(*metadataStoreIndex).contacts[string(contacts[0].Pk)]) + require.Equal(t, protocoltypes.ContactState_ContactStateAdded, meta[1].Index().(*metadataStoreIndex).contacts[string(contacts[0].Pk)].state) + require.Equal(t, contacts[0].Pk, meta[1].Index().(*metadataStoreIndex).contacts[string(contacts[0].Pk)].contact.Pk) + require.Equal(t, contacts[0].PublicRendezvousSeed, meta[1].Index().(*metadataStoreIndex).contacts[string(contacts[0].Pk)].contact.PublicRendezvousSeed) _, err = meta[1].ContactRequestIncomingReceived(ctx, contacts[0]) require.Error(t, err) @@ -396,7 +396,7 @@ func TestMetadataContactLifecycle(t *testing.T) { require.Equal(t, 2, len(meta[1].Index().(*metadataStoreIndex).contacts)) - require.Equal(t, meta[1].Index().(*metadataStoreIndex).contacts[string(contacts[3].PK)].state, protocoltypes.ContactStateAdded) + require.Equal(t, meta[1].Index().(*metadataStoreIndex).contacts[string(contacts[3].Pk)].state, protocoltypes.ContactState_ContactStateAdded) // Refuse contact @@ -404,7 +404,7 @@ func TestMetadataContactLifecycle(t *testing.T) { require.NoError(t, err) require.Equal(t, len(meta[1].Index().(*metadataStoreIndex).contacts), 3) - require.Equal(t, meta[1].Index().(*metadataStoreIndex).contacts[string(contacts[2].PK)].state, protocoltypes.ContactStateReceived) + require.Equal(t, meta[1].Index().(*metadataStoreIndex).contacts[string(contacts[2].Pk)].state, protocoltypes.ContactState_ContactStateReceived) _, err = meta[1].ContactRequestIncomingDiscard(ctx, nil) require.Error(t, err) @@ -422,7 +422,7 @@ func TestMetadataContactLifecycle(t *testing.T) { require.NoError(t, err) require.Equal(t, len(meta[1].Index().(*metadataStoreIndex).contacts), 3) - require.Equal(t, meta[1].Index().(*metadataStoreIndex).contacts[string(contacts[2].PK)].state, protocoltypes.ContactStateDiscarded) + require.Equal(t, meta[1].Index().(*metadataStoreIndex).contacts[string(contacts[2].Pk)].state, protocoltypes.ContactState_ContactStateDiscarded) // Allow receiving requests again after discarded @@ -430,23 +430,23 @@ func TestMetadataContactLifecycle(t *testing.T) { require.NoError(t, err) require.Equal(t, len(meta[1].Index().(*metadataStoreIndex).contacts), 3) - require.Equal(t, meta[1].Index().(*metadataStoreIndex).contacts[string(contacts[2].PK)].state, protocoltypes.ContactStateReceived) + require.Equal(t, meta[1].Index().(*metadataStoreIndex).contacts[string(contacts[2].Pk)].state, protocoltypes.ContactState_ContactStateReceived) _, err = meta[1].ContactRequestOutgoingEnqueue(ctx, contacts[2], contacts[1].Metadata) require.NoError(t, err) require.Equal(t, len(meta[1].Index().(*metadataStoreIndex).contacts), 3) - require.Equal(t, meta[1].Index().(*metadataStoreIndex).contacts[string(contacts[2].PK)].state, protocoltypes.ContactStateAdded) + require.Equal(t, meta[1].Index().(*metadataStoreIndex).contacts[string(contacts[2].Pk)].state, protocoltypes.ContactState_ContactStateAdded) // Auto accept discarded requests - meta[1].Index().(*metadataStoreIndex).contacts[string(contacts[2].PK)].state = protocoltypes.ContactStateDiscarded + meta[1].Index().(*metadataStoreIndex).contacts[string(contacts[2].Pk)].state = protocoltypes.ContactState_ContactStateDiscarded _, err = meta[1].ContactRequestOutgoingEnqueue(ctx, contacts[2], contacts[1].Metadata) require.NoError(t, err) require.Equal(t, len(meta[1].Index().(*metadataStoreIndex).contacts), 3) - require.Equal(t, meta[1].Index().(*metadataStoreIndex).contacts[string(contacts[2].PK)].state, protocoltypes.ContactStateAdded) + require.Equal(t, meta[1].Index().(*metadataStoreIndex).contacts[string(contacts[2].Pk)].state, protocoltypes.ContactState_ContactStateAdded) // Block contact @@ -459,29 +459,29 @@ func TestMetadataContactLifecycle(t *testing.T) { _, err = meta[2].ContactBlock(ctx, ownCG[0].MemberPubKey()) require.NoError(t, err) require.Equal(t, len(meta[2].Index().(*metadataStoreIndex).contacts), 1) - require.Equal(t, meta[2].Index().(*metadataStoreIndex).contacts[string(contacts[0].PK)].state, protocoltypes.ContactStateBlocked) + require.Equal(t, meta[2].Index().(*metadataStoreIndex).contacts[string(contacts[0].Pk)].state, protocoltypes.ContactState_ContactStateBlocked) _, err = meta[2].ContactBlock(ctx, ownCG[0].MemberPubKey()) require.Error(t, err) require.Equal(t, len(meta[2].Index().(*metadataStoreIndex).contacts), 1) - require.Equal(t, meta[2].Index().(*metadataStoreIndex).contacts[string(contacts[0].PK)].state, protocoltypes.ContactStateBlocked) + require.Equal(t, meta[2].Index().(*metadataStoreIndex).contacts[string(contacts[0].Pk)].state, protocoltypes.ContactState_ContactStateBlocked) // Unblock contact _, err = meta[2].ContactUnblock(ctx, ownCG[1].MemberPubKey()) require.Error(t, err) require.Equal(t, len(meta[2].Index().(*metadataStoreIndex).contacts), 1) - require.Equal(t, meta[2].Index().(*metadataStoreIndex).contacts[string(contacts[0].PK)].state, protocoltypes.ContactStateBlocked) + require.Equal(t, meta[2].Index().(*metadataStoreIndex).contacts[string(contacts[0].Pk)].state, protocoltypes.ContactState_ContactStateBlocked) _, err = meta[2].ContactUnblock(ctx, ownCG[0].MemberPubKey()) require.NoError(t, err) require.Equal(t, len(meta[2].Index().(*metadataStoreIndex).contacts), 1) - require.Equal(t, meta[2].Index().(*metadataStoreIndex).contacts[string(contacts[0].PK)].state, protocoltypes.ContactStateRemoved) + require.Equal(t, meta[2].Index().(*metadataStoreIndex).contacts[string(contacts[0].Pk)].state, protocoltypes.ContactState_ContactStateRemoved) _, err = meta[2].ContactUnblock(ctx, ownCG[0].MemberPubKey()) require.Error(t, err) require.Equal(t, len(meta[2].Index().(*metadataStoreIndex).contacts), 1) - require.Equal(t, meta[2].Index().(*metadataStoreIndex).contacts[string(contacts[0].PK)].state, protocoltypes.ContactStateRemoved) + require.Equal(t, meta[2].Index().(*metadataStoreIndex).contacts[string(contacts[0].Pk)].state, protocoltypes.ContactState_ContactStateRemoved) } func TestMetadataAliasLifecycle(t *testing.T) { @@ -593,7 +593,7 @@ func TestMetadataGroupsLifecycle(t *testing.T) { PublicKey: []byte("invalid_pk"), Secret: g3.Secret, SecretSig: g3.SecretSig, - GroupType: protocoltypes.GroupTypeMultiMember, + GroupType: protocoltypes.GroupType_GroupTypeMultiMember, }) require.Error(t, err) @@ -604,7 +604,7 @@ func TestMetadataGroupsLifecycle(t *testing.T) { PublicKey: g3.PublicKey, Secret: nil, SecretSig: g3.SecretSig, - GroupType: protocoltypes.GroupTypeMultiMember, + GroupType: protocoltypes.GroupType_GroupTypeMultiMember, }) require.Error(t, err) @@ -612,7 +612,7 @@ func TestMetadataGroupsLifecycle(t *testing.T) { PublicKey: g3.PublicKey, Secret: g3.Secret, SecretSig: []byte("invalid_sig"), - GroupType: protocoltypes.GroupTypeMultiMember, + GroupType: protocoltypes.GroupType_GroupTypeMultiMember, }) require.Error(t, err) @@ -706,10 +706,10 @@ func TestFlappyMultiDevices_Basic(t *testing.T) { } syncChan := make(chan struct{}) - go waitForBertyEventType(ctx, t, meta[pi[0][0]], protocoltypes.EventTypeAccountContactRequestOutgoingEnqueued, 1, syncChan) - go waitForBertyEventType(ctx, t, meta[pi[0][1]], protocoltypes.EventTypeAccountContactRequestOutgoingEnqueued, 1, syncChan) - go waitForBertyEventType(ctx, t, meta[pi[1][0]], protocoltypes.EventTypeAccountContactRequestIncomingReceived, 1, syncChan) - go waitForBertyEventType(ctx, t, meta[pi[1][1]], protocoltypes.EventTypeAccountContactRequestIncomingReceived, 1, syncChan) + go waitForBertyEventType(ctx, t, meta[pi[0][0]], protocoltypes.EventType_EventTypeAccountContactRequestOutgoingEnqueued, 1, syncChan) + go waitForBertyEventType(ctx, t, meta[pi[0][1]], protocoltypes.EventType_EventTypeAccountContactRequestOutgoingEnqueued, 1, syncChan) + go waitForBertyEventType(ctx, t, meta[pi[1][0]], protocoltypes.EventType_EventTypeAccountContactRequestIncomingReceived, 1, syncChan) + go waitForBertyEventType(ctx, t, meta[pi[1][1]], protocoltypes.EventType_EventTypeAccountContactRequestIncomingReceived, 1, syncChan) // Add peers to contact // Enqueuing outgoing @@ -739,24 +739,24 @@ func TestFlappyMultiDevices_Basic(t *testing.T) { // test if contact is established listContacts = meta[pi[0][0]].ListContacts() require.Equal(t, 1, len(listContacts)) - require.NotNil(t, listContacts[string(contacts[pi[1][0]].PK)]) + require.NotNil(t, listContacts[string(contacts[pi[1][0]].Pk)]) listContacts = meta[pi[1][0]].ListContacts() require.Equal(t, 1, len(listContacts)) - require.NotNil(t, listContacts[string(contacts[pi[0][0]].PK)]) + require.NotNil(t, listContacts[string(contacts[pi[0][0]].Pk)]) // test if 2nd devices have also the contact listContacts = meta[pi[0][1]].ListContacts() require.Equal(t, 1, len(listContacts)) - require.NotNil(t, listContacts[string(contacts[pi[1][0]].PK)]) + require.NotNil(t, listContacts[string(contacts[pi[1][0]].Pk)]) listContacts = meta[pi[1][1]].ListContacts() require.Equal(t, 1, len(listContacts)) - require.NotNil(t, listContacts[string(contacts[pi[0][0]].PK)]) + require.NotNil(t, listContacts[string(contacts[pi[0][0]].Pk)]) // Activate group for 2nd peer's 1st device groups = meta[pi[1][0]].ListMultiMemberGroups() require.Len(t, groups, 0) - go waitForBertyEventType(ctx, t, meta[pi[1][0]], protocoltypes.EventTypeAccountGroupJoined, 1, syncChan) - go waitForBertyEventType(ctx, t, meta[pi[1][1]], protocoltypes.EventTypeAccountGroupJoined, 1, syncChan) + go waitForBertyEventType(ctx, t, meta[pi[1][0]], protocoltypes.EventType_EventTypeAccountGroupJoined, 1, syncChan) + go waitForBertyEventType(ctx, t, meta[pi[1][1]], protocoltypes.EventType_EventTypeAccountGroupJoined, 1, syncChan) _, err = meta[pi[1][0]].GroupJoin(ctx, peers[pi[1][0]].GC.group) require.NoError(t, err) for i := 0; i < 2; i++ { @@ -784,7 +784,7 @@ func TestFlappyMultiDevices_Basic(t *testing.T) { listContacts = meta[pi[1][2]].ListContacts() require.Equal(t, 1, len(listContacts)) - require.NotNil(t, listContacts[string(contacts[0].PK)]) + require.NotNil(t, listContacts[string(contacts[0].Pk)]) // Test for group groups = meta[pi[1][2]].ListMultiMemberGroups() diff --git a/store_options.go b/store_options.go index 07513cc3..38c10022 100644 --- a/store_options.go +++ b/store_options.go @@ -43,7 +43,7 @@ func DefaultOrbitDBOptions(g *protocoltypes.Group, options *orbitdb.CreateDBOpti if options.AccessController == nil { options.AccessController, err = defaultACForGroup(g, storeType) if err != nil { - return nil, errcode.TODO.Wrap(err) + return nil, errcode.ErrCode_TODO.Wrap(err) } } @@ -51,12 +51,12 @@ func DefaultOrbitDBOptions(g *protocoltypes.Group, options *orbitdb.CreateDBOpti if groupOpenMode != GroupOpenModeReplicate { options.Identity, err = defaultIdentityForGroup(context.TODO(), g, keystore) if err != nil { - return nil, errcode.TODO.Wrap(err) + return nil, errcode.ErrCode_TODO.Wrap(err) } } else { options.Identity, err = readIdentityForGroup(g, keystore) if err != nil { - return nil, errcode.TODO.Wrap(err) + return nil, errcode.ErrCode_TODO.Wrap(err) } } @@ -68,12 +68,12 @@ func defaultACForGroup(g *protocoltypes.Group, storeType string) (accesscontroll sigPK, err := g.GetSigningPubKey() if err != nil { - return nil, errcode.TODO.Wrap(err) + return nil, errcode.ErrCode_TODO.Wrap(err) } signingKeyBytes, err := sigPK.Raw() if err != nil { - return nil, errcode.TODO.Wrap(err) + return nil, errcode.ErrCode_TODO.Wrap(err) } access := map[string][]string{ @@ -100,12 +100,12 @@ func defaultACForGroup(g *protocoltypes.Group, storeType string) (accesscontroll func defaultIdentityForGroup(ctx context.Context, g *protocoltypes.Group, ks *BertySignedKeyStore) (*identityprovider.Identity, error) { sigPK, err := g.GetSigningPubKey() if err != nil { - return nil, errcode.TODO.Wrap(err) + return nil, errcode.ErrCode_TODO.Wrap(err) } signingKeyBytes, err := sigPK.Raw() if err != nil { - return nil, errcode.TODO.Wrap(err) + return nil, errcode.ErrCode_TODO.Wrap(err) } identity, err := ks.getIdentityProvider().createIdentity(ctx, &identityprovider.CreateIdentityOptions{ @@ -114,7 +114,7 @@ func defaultIdentityForGroup(ctx context.Context, g *protocoltypes.Group, ks *Be ID: hex.EncodeToString(signingKeyBytes), }) if err != nil { - return nil, errcode.TODO.Wrap(err) + return nil, errcode.ErrCode_TODO.Wrap(err) } return identity, nil @@ -123,12 +123,12 @@ func defaultIdentityForGroup(ctx context.Context, g *protocoltypes.Group, ks *Be func readIdentityForGroup(g *protocoltypes.Group, ks *BertySignedKeyStore) (*identityprovider.Identity, error) { sigPK, err := g.GetSigningPubKey() if err != nil { - return nil, errcode.TODO.Wrap(err) + return nil, errcode.ErrCode_TODO.Wrap(err) } signingKeyBytes, err := sigPK.Raw() if err != nil { - return nil, errcode.TODO.Wrap(err) + return nil, errcode.ErrCode_TODO.Wrap(err) } return &identityprovider.Identity{ diff --git a/store_utils.go b/store_utils.go index 0a058c74..1abed84c 100644 --- a/store_utils.go +++ b/store_utils.go @@ -38,13 +38,13 @@ func getEntriesInRange(entries []ipliface.IPFSLogEntry, since, until []byte) ([] } if !startFound { - return nil, errcode.ErrInvalidRange.Wrap(errors.New("since ID not found")) + return nil, errcode.ErrCode_ErrInvalidRange.Wrap(errors.New("since ID not found")) } if !stopFound { - return nil, errcode.ErrInvalidRange.Wrap(errors.New("until ID not found")) + return nil, errcode.ErrCode_ErrInvalidRange.Wrap(errors.New("until ID not found")) } if startIndex > stopIndex && len(entries) > 0 { - return nil, errcode.ErrInvalidRange.Wrap(errors.New("since ID is after until ID")) + return nil, errcode.ErrCode_ErrInvalidRange.Wrap(errors.New("since ID is after until ID")) } return entries[startIndex : stopIndex+1], nil diff --git a/testing.go b/testing.go index 5e2d8e1d..3650d6b1 100644 --- a/testing.go +++ b/testing.go @@ -24,6 +24,7 @@ import ( "github.com/stretchr/testify/require" "go.uber.org/zap" "google.golang.org/grpc" + "google.golang.org/protobuf/proto" encrepo "berty.tech/go-ipfs-repo-encrypted" orbitdb "berty.tech/go-orbit-db" @@ -488,14 +489,14 @@ func GetRootDatastoreForPath(dir string, key []byte, salt []byte, logger *zap.Lo } else { err := os.MkdirAll(dir, os.ModePerm) if err != nil { - return nil, errcode.TODO.Wrap(err) + return nil, errcode.ErrCode_TODO.Wrap(err) } dbPath := filepath.Join(dir, "datastore.sqlite") sqldsOpts := encrepo.SQLCipherDatastoreOptions{JournalMode: "WAL", PlaintextHeader: len(salt) != 0, Salt: salt} ds, err = encrepo.NewSQLCipherDatastore("sqlite3", dbPath, "blocks", key, sqldsOpts) if err != nil { - return nil, errcode.TODO.Wrap(err) + return nil, errcode.ErrCode_TODO.Wrap(err) } } @@ -555,13 +556,13 @@ func CreateMultiMemberGroupInstance(ctx context.Context, t *testing.T, tps ...*T for i, pt := range tps { res, err := pt.Client.GroupInfo(ctx, &protocoltypes.GroupInfo_Request{ - GroupPK: group.PublicKey, + GroupPk: group.PublicKey, }) require.NoError(t, err) assert.Equal(t, group.PublicKey, res.Group.PublicKey) - memberPKs[i] = res.MemberPK - devicePKs[i] = res.DevicePK + memberPKs[i] = res.MemberPk + devicePKs[i] = res.DevicePk } testutil.LogTree(t, "duration: %s", 1, false, time.Since(start)) @@ -574,7 +575,7 @@ func CreateMultiMemberGroupInstance(ctx context.Context, t *testing.T, tps ...*T for i, pt := range tps { _, err := pt.Client.ActivateGroup(ctx, &protocoltypes.ActivateGroup_Request{ - GroupPK: group.PublicKey, + GroupPk: group.PublicKey, }) assert.NoError(t, err, fmt.Sprintf("error for client %d", i)) @@ -606,7 +607,7 @@ func CreateMultiMemberGroupInstance(ctx context.Context, t *testing.T, tps ...*T defer cancel() sub, inErr := tp.Client.GroupMetadataList(ctx, &protocoltypes.GroupMetadataList_Request{ - GroupPK: group.PublicKey, + GroupPk: group.PublicKey, }) if inErr != nil { assert.NoError(t, err, fmt.Sprintf("error for client %d", i)) @@ -668,20 +669,20 @@ func CreateMultiMemberGroupInstance(ctx context.Context, t *testing.T, tps ...*T func isEventAddSecretTargetedToMember(ownRawPK []byte, evt *protocoltypes.GroupMetadataEvent) ([]byte, error) { // Only count EventTypeGroupDeviceChainKeyAdded events - if evt.Metadata.EventType != protocoltypes.EventTypeGroupDeviceChainKeyAdded { + if evt.Metadata.EventType != protocoltypes.EventType_EventTypeGroupDeviceChainKeyAdded { return nil, nil } sec := &protocoltypes.GroupDeviceChainKeyAdded{} - err := sec.Unmarshal(evt.Event) + err := proto.Unmarshal(evt.Event, sec) if err != nil { return nil, err } // Filter out events targeted at other members - if !bytes.Equal(ownRawPK, sec.DestMemberPK) { + if !bytes.Equal(ownRawPK, sec.DestMemberPk) { return nil, nil } - return sec.DevicePK, nil + return sec.DevicePk, nil } From 9cc346eb680aceea8e3651ac1d4bb014ae1ba226 Mon Sep 17 00:00:00 2001 From: D4ryl00 Date: Thu, 1 Aug 2024 14:59:16 +0200 Subject: [PATCH 05/20] chore: use libp2 mocknet Signed-off-by: D4ryl00 --- account_export_test.go | 2 +- api_contact_request_test.go | 4 ++-- api_debug.go | 2 +- contact_request_manager_test.go | 6 +++--- deactivate_test.go | 12 ++++++------ events_sig_checkers.go | 4 ++-- go.mod | 3 +-- go.sum | 4 ---- internal/handshake/handshake_util_test.go | 4 ++-- message_marshaler_test.go | 2 +- orbitdb_test.go | 2 +- pkg/errcode/error_test.go | 1 - pkg/ipfsutil/testing.go | 16 ++++++++-------- pkg/rendezvous/emitterio_sync_test.go | 2 +- pkg/tinder/driver_localdiscovery_test.go | 2 +- pkg/tinder/driver_mock_test.go | 2 +- pkg/tinder/driver_service_test.go | 2 +- pkg/tinder/service_mocked_test.go | 2 +- pkg/tinder/testing_test.go | 2 +- scenario_test.go | 6 +++--- store_metadata_test.go | 4 ++-- testing.go | 16 ++++++++-------- tinder_swiper_test.go | 4 ++-- 23 files changed, 49 insertions(+), 55 deletions(-) diff --git a/account_export_test.go b/account_export_test.go index ef5ced22..23ceb236 100644 --- a/account_export_test.go +++ b/account_export_test.go @@ -7,10 +7,10 @@ import ( "os" "testing" - mocknet "github.com/berty/go-libp2p-mock" "github.com/ipfs/go-cid" ds "github.com/ipfs/go-datastore" dsync "github.com/ipfs/go-datastore/sync" + mocknet "github.com/libp2p/go-libp2p/p2p/net/mock" "github.com/stretchr/testify/require" orbitdb "berty.tech/go-orbit-db" diff --git a/api_contact_request_test.go b/api_contact_request_test.go index f7ad4ad3..9d8481fd 100644 --- a/api_contact_request_test.go +++ b/api_contact_request_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - libp2p_mocknet "github.com/berty/go-libp2p-mock" + mocknet "github.com/libp2p/go-libp2p/p2p/net/mock" "github.com/stretchr/testify/require" "berty.tech/weshnet/pkg/protocoltypes" @@ -19,7 +19,7 @@ func TestShareContact(t *testing.T) { defer cleanup() opts := TestingOpts{ - Mocknet: libp2p_mocknet.New(), + Mocknet: mocknet.New(), Logger: logger, } diff --git a/api_debug.go b/api_debug.go index 88f83893..afe25299 100644 --- a/api_debug.go +++ b/api_debug.go @@ -129,7 +129,7 @@ func (s *service) DebugInspectGroupStore(req *protocoltypes.DebugInspectGroupSto p := proto.Clone(typeData.Message) if err := proto.Unmarshal(metaEvent.Event, p); err == nil { if msg, ok := p.(eventDeviceSigned); ok { - devicePK = msg.GetDevicePK() + devicePK = msg.GetDevicePk() } } } else { diff --git a/contact_request_manager_test.go b/contact_request_manager_test.go index 69027e16..ef8ae988 100644 --- a/contact_request_manager_test.go +++ b/contact_request_manager_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - libp2p_mocknet "github.com/berty/go-libp2p-mock" + mocknet "github.com/libp2p/go-libp2p/p2p/net/mock" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "google.golang.org/protobuf/proto" @@ -24,7 +24,7 @@ func TestContactRequestFlow(t *testing.T) { defer cleanup() opts := TestingOpts{ - Mocknet: libp2p_mocknet.New(), + Mocknet: mocknet.New(), Logger: logger, } @@ -150,7 +150,7 @@ func TestContactRequestFlowWithoutIncoming(t *testing.T) { logger, cleanup := testutil.Logger(t) defer cleanup() - mn := libp2p_mocknet.New() + mn := mocknet.New() defer mn.Close() opts := TestingOpts{ diff --git a/deactivate_test.go b/deactivate_test.go index b085e7f9..8928fcb2 100644 --- a/deactivate_test.go +++ b/deactivate_test.go @@ -5,9 +5,9 @@ import ( "testing" "time" - libp2p_mocknet "github.com/berty/go-libp2p-mock" ds "github.com/ipfs/go-datastore" dsync "github.com/ipfs/go-datastore/sync" + mocknet "github.com/libp2p/go-libp2p/p2p/net/mock" "github.com/stretchr/testify/require" "berty.tech/weshnet" @@ -25,7 +25,7 @@ func TestReactivateAccountGroup(t *testing.T) { logger, cleanup := testutil.Logger(t) defer cleanup() - mn := libp2p_mocknet.New() + mn := mocknet.New() defer mn.Close() msrv := tinder.NewMockDriverServer() @@ -98,7 +98,7 @@ func TestRaceReactivateAccountGroup(t *testing.T) { logger, cleanup := testutil.Logger(t) defer cleanup() - mn := libp2p_mocknet.New() + mn := mocknet.New() defer mn.Close() msrv := tinder.NewMockDriverServer() @@ -169,7 +169,7 @@ func TestReactivateContactGroup(t *testing.T) { defer cleanup() opts := weshnet.TestingOpts{ - Mocknet: libp2p_mocknet.New(), + Mocknet: mocknet.New(), Logger: logger, ConnectFunc: weshnet.ConnectAll, } @@ -211,7 +211,7 @@ func TestRaceReactivateContactGroup(t *testing.T) { defer cleanup() opts := weshnet.TestingOpts{ - Mocknet: libp2p_mocknet.New(), + Mocknet: mocknet.New(), Logger: logger, ConnectFunc: weshnet.ConnectAll, } @@ -265,7 +265,7 @@ func TestReactivateMultimemberGroup(t *testing.T) { defer cleanup() opts := weshnet.TestingOpts{ - Mocknet: libp2p_mocknet.New(), + Mocknet: mocknet.New(), Logger: logger, ConnectFunc: weshnet.ConnectAll, } diff --git a/events_sig_checkers.go b/events_sig_checkers.go index fbb3b4d5..f2a13dfa 100644 --- a/events_sig_checkers.go +++ b/events_sig_checkers.go @@ -30,7 +30,7 @@ func sigCheckerGroupSigned(g *protocoltypes.Group, metadata *protocoltypes.Group type eventDeviceSigned interface { proto.Message - GetDevicePK() []byte + GetDevicePk() []byte } func sigCheckerDeviceSigned(g *protocoltypes.Group, metadata *protocoltypes.GroupMetadata, message proto.Message) error { @@ -39,7 +39,7 @@ func sigCheckerDeviceSigned(g *protocoltypes.Group, metadata *protocoltypes.Grou return errcode.ErrCode_ErrDeserialization } - devPK, err := crypto.UnmarshalEd25519PublicKey(msg.GetDevicePK()) + devPK, err := crypto.UnmarshalEd25519PublicKey(msg.GetDevicePk()) if err != nil { return errcode.ErrCode_ErrDeserialization.Wrap(err) } diff --git a/go.mod b/go.mod index 06b336a1..66d681c7 100644 --- a/go.mod +++ b/go.mod @@ -11,13 +11,11 @@ require ( filippo.io/edwards25519 v1.0.0 github.com/aead/ecdh v0.2.0 github.com/berty/emitter-go v0.0.0-20221031144724-5dae963c3622 - github.com/berty/go-libp2p-mock v1.0.2-0.20240719150538-d7088679a8a7 github.com/berty/go-libp2p-rendezvous v0.5.1-0.20240719154654-269ed907d248 github.com/buicongtan1997/protoc-gen-swagger-config v0.0.0-20200705084907-1342b78c1a7e github.com/daixiang0/gci v0.8.2 github.com/dgraph-io/badger/v2 v2.2007.3 github.com/gofrs/uuid v4.3.1+incompatible - github.com/gogo/protobuf v1.3.2 github.com/golang/protobuf v1.5.4 github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 github.com/grpc-ecosystem/grpc-gateway v1.16.0 @@ -119,6 +117,7 @@ require ( github.com/go-logr/stdr v1.2.2 // indirect github.com/go-task/slim-sprig/v3 v3.0.0 // indirect github.com/godbus/dbus/v5 v5.1.0 // indirect + github.com/gogo/protobuf v1.3.2 // indirect github.com/golang/glog v1.2.0 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/snappy v0.0.4 // indirect diff --git a/go.sum b/go.sum index 447ab7ee..a5f6a7ae 100644 --- a/go.sum +++ b/go.sum @@ -107,10 +107,6 @@ github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= github.com/berty/emitter-go v0.0.0-20221031144724-5dae963c3622 h1:kJqfCXKR5EJdh9HYh4rjYL3QvxjP5cnCssIU141m79c= github.com/berty/emitter-go v0.0.0-20221031144724-5dae963c3622/go.mod h1:G66sIy+q6BKIoKoKNqFU7sxSnrS5d8Z8meQ3Iu0ZJ4o= -github.com/berty/go-libp2p-mock v1.0.2-0.20240719150538-d7088679a8a7 h1:PDDJoHz7nIpeLhoNNRCO1pKqtwl8q4dEJAT0f+fEqH0= -github.com/berty/go-libp2p-mock v1.0.2-0.20240719150538-d7088679a8a7/go.mod h1:EFApuF26i3EW00yju+Gu0+yM3ozxrZQmnWi5R5AdsNM= -github.com/berty/go-libp2p-rendezvous v0.5.1-0.20240719154654-269ed907d248 h1:mTb8iAIh/QLLb2sCAxkJ1k/DIk/EzA6jwb1/4DpTbBc= -github.com/berty/go-libp2p-rendezvous v0.5.1-0.20240719154654-269ed907d248/go.mod h1:CpFr4YLnSK4ZOqPzTm5lfAxJb4pD/LtvcE9AAQmjuHM= github.com/blang/semver/v4 v4.0.0 h1:1PFHFE6yCCTv8C1TeyNNarDzntLi7wMI5i/pzqYIsAM= github.com/blang/semver/v4 v4.0.0/go.mod h1:IbckMUScFkM3pff0VJDNKRiT6TG/YpiHIM2yvyW5YoQ= github.com/bradfitz/go-smtpd v0.0.0-20170404230938-deb6d6237625/go.mod h1:HYsPBTaaSFSlLx/70C2HPIMNZpVV8+vt/A+FMnYP11g= diff --git a/internal/handshake/handshake_util_test.go b/internal/handshake/handshake_util_test.go index 0d18d7a0..1507a7cf 100644 --- a/internal/handshake/handshake_util_test.go +++ b/internal/handshake/handshake_util_test.go @@ -7,10 +7,10 @@ import ( "testing" "time" - p2pmocknet "github.com/berty/go-libp2p-mock" p2pcrypto "github.com/libp2p/go-libp2p/core/crypto" p2pnetwork "github.com/libp2p/go-libp2p/core/network" p2ppeer "github.com/libp2p/go-libp2p/core/peer" + mocknet "github.com/libp2p/go-libp2p/p2p/net/mock" "github.com/stretchr/testify/require" "berty.tech/weshnet/pkg/ipfsutil" @@ -60,7 +60,7 @@ func newMockedPeer(t *testing.T, ctx context.Context, ipfsOpts *ipfsutil.Testing func newMockedHandshake(t *testing.T, ctx context.Context) *mockedHandshake { t.Helper() - mn := p2pmocknet.New() + mn := mocknet.New() t.Cleanup(func() { mn.Close() }) opts := &ipfsutil.TestingAPIOpts{ diff --git a/message_marshaler_test.go b/message_marshaler_test.go index e6ef5619..4c761619 100644 --- a/message_marshaler_test.go +++ b/message_marshaler_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - mocknet "github.com/berty/go-libp2p-mock" + mocknet "github.com/libp2p/go-libp2p/p2p/net/mock" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/orbitdb_test.go b/orbitdb_test.go index 2f8c366c..85e8831e 100644 --- a/orbitdb_test.go +++ b/orbitdb_test.go @@ -8,9 +8,9 @@ import ( "testing" "time" - mocknet "github.com/berty/go-libp2p-mock" datastore "github.com/ipfs/go-datastore" sync_ds "github.com/ipfs/go-datastore/sync" + mocknet "github.com/libp2p/go-libp2p/p2p/net/mock" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "go.uber.org/zap" diff --git a/pkg/errcode/error_test.go b/pkg/errcode/error_test.go index 39fdafff..27f81f73 100644 --- a/pkg/errcode/error_test.go +++ b/pkg/errcode/error_test.go @@ -102,7 +102,6 @@ func TestStatus(t *testing.T) { assert.NotNil(t, st) assert.Error(t, stErr) } - fmt.Println("remi: ", stErr) assert.Equal(t, st.Code().String(), test.expectedGrpcCode.String()) assert.Equal(t, Code(test.input), Code(stErr)) assert.Equal(t, LastCode(test.input), LastCode(stErr)) diff --git a/pkg/ipfsutil/testing.go b/pkg/ipfsutil/testing.go index ee34cebd..66b761f4 100644 --- a/pkg/ipfsutil/testing.go +++ b/pkg/ipfsutil/testing.go @@ -6,7 +6,6 @@ import ( "encoding/base64" "testing" - p2p_mocknet "github.com/berty/go-libp2p-mock" rendezvous "github.com/berty/go-libp2p-rendezvous" p2p_rpdb "github.com/berty/go-libp2p-rendezvous/db/sqlcipher" ds "github.com/ipfs/go-datastore" @@ -23,6 +22,7 @@ import ( p2p_peer "github.com/libp2p/go-libp2p/core/peer" "github.com/libp2p/go-libp2p/core/peerstore" "github.com/libp2p/go-libp2p/core/protocol" + mocknet "github.com/libp2p/go-libp2p/p2p/net/mock" "github.com/stretchr/testify/require" "go.uber.org/zap" @@ -36,7 +36,7 @@ type CoreAPIMock interface { PubSub() *pubsub.PubSub Tinder() *tinder.Service - MockNetwork() p2p_mocknet.Mocknet + MockNetwork() mocknet.Mocknet MockNode() *ipfs_core.IpfsNode Close() } @@ -108,7 +108,7 @@ func TestingRepo(t testing.TB, ctx context.Context, datastore ds.Datastore) ipfs type TestingAPIOpts struct { Logger *zap.Logger - Mocknet p2p_mocknet.Mocknet + Mocknet mocknet.Mocknet Datastore ds.Batching DiscoveryServer *tinder.MockDriverServer } @@ -185,7 +185,7 @@ func TestingCoreAPIUsingMockNet(ctx context.Context, t testing.TB, opts *Testing func TestingCoreAPI(ctx context.Context, t testing.TB) CoreAPIMock { t.Helper() - m := p2p_mocknet.New() + m := mocknet.New() t.Cleanup(func() { m.Close() }) api := TestingCoreAPIUsingMockNet(ctx, t, &TestingAPIOpts{ @@ -214,7 +214,7 @@ type coreAPIMock struct { coreapi ExtendedCoreAPI pubsub *pubsub.PubSub - mocknet p2p_mocknet.Mocknet + mocknet mocknet.Mocknet node *ipfs_core.IpfsNode tinder *tinder.Service } @@ -239,7 +239,7 @@ func (m *coreAPIMock) API() ExtendedCoreAPI { return m.coreapi } -func (m *coreAPIMock) MockNetwork() p2p_mocknet.Mocknet { +func (m *coreAPIMock) MockNetwork() mocknet.Mocknet { return m.mocknet } @@ -259,8 +259,8 @@ func (m *coreAPIMock) Close() { m.node.Close() } -func MockHostOption(mn p2p_mocknet.Mocknet) ipfs_p2p.HostOption { +func MockHostOption(mn mocknet.Mocknet) ipfs_p2p.HostOption { return func(id p2p_peer.ID, ps peerstore.Peerstore, _ ...libp2p.Option) (host.Host, error) { - return mn.AddPeerWithPeerstore(id, ps) + return ipfs_p2p.DefaultHostOption(id, ps) } } diff --git a/pkg/rendezvous/emitterio_sync_test.go b/pkg/rendezvous/emitterio_sync_test.go index a146d0c4..601c80a6 100644 --- a/pkg/rendezvous/emitterio_sync_test.go +++ b/pkg/rendezvous/emitterio_sync_test.go @@ -8,11 +8,11 @@ import ( "testing" "time" - mocknet "github.com/berty/go-libp2p-mock" rendezvous "github.com/berty/go-libp2p-rendezvous" db "github.com/berty/go-libp2p-rendezvous/db/sqlcipher" "github.com/berty/go-libp2p-rendezvous/test_utils" "github.com/libp2p/go-libp2p/core/host" + mocknet "github.com/libp2p/go-libp2p/p2p/net/mock" "github.com/stretchr/testify/require" "go.uber.org/zap" diff --git a/pkg/tinder/driver_localdiscovery_test.go b/pkg/tinder/driver_localdiscovery_test.go index ac18f637..8da403a2 100644 --- a/pkg/tinder/driver_localdiscovery_test.go +++ b/pkg/tinder/driver_localdiscovery_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - mocknet "github.com/berty/go-libp2p-mock" + mocknet "github.com/libp2p/go-libp2p/p2p/net/mock" "github.com/stretchr/testify/require" "berty.tech/weshnet/pkg/testutil" diff --git a/pkg/tinder/driver_mock_test.go b/pkg/tinder/driver_mock_test.go index 6edf2a1c..dad1ac77 100644 --- a/pkg/tinder/driver_mock_test.go +++ b/pkg/tinder/driver_mock_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - mocknet "github.com/berty/go-libp2p-mock" "github.com/libp2p/go-libp2p/core/peer" + mocknet "github.com/libp2p/go-libp2p/p2p/net/mock" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pkg/tinder/driver_service_test.go b/pkg/tinder/driver_service_test.go index 25dbbdaa..737c433c 100644 --- a/pkg/tinder/driver_service_test.go +++ b/pkg/tinder/driver_service_test.go @@ -7,11 +7,11 @@ import ( "testing" "time" - mocknet "github.com/berty/go-libp2p-mock" rendezvous "github.com/berty/go-libp2p-rendezvous" dht "github.com/libp2p/go-libp2p-kad-dht" "github.com/libp2p/go-libp2p/core/host" "github.com/libp2p/go-libp2p/core/peer" + mocknet "github.com/libp2p/go-libp2p/p2p/net/mock" "github.com/stretchr/testify/require" "go.uber.org/zap" diff --git a/pkg/tinder/service_mocked_test.go b/pkg/tinder/service_mocked_test.go index 98766831..d430460f 100644 --- a/pkg/tinder/service_mocked_test.go +++ b/pkg/tinder/service_mocked_test.go @@ -6,9 +6,9 @@ import ( "testing" "time" - mocknet "github.com/berty/go-libp2p-mock" "github.com/libp2p/go-libp2p/core/host" "github.com/libp2p/go-libp2p/core/peer" + mocknet "github.com/libp2p/go-libp2p/p2p/net/mock" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "go.uber.org/zap" diff --git a/pkg/tinder/testing_test.go b/pkg/tinder/testing_test.go index f9f658f8..bfa32158 100644 --- a/pkg/tinder/testing_test.go +++ b/pkg/tinder/testing_test.go @@ -6,12 +6,12 @@ import ( "testing" "time" - mocknet "github.com/berty/go-libp2p-mock" rendezvous "github.com/berty/go-libp2p-rendezvous" dbrdvp "github.com/berty/go-libp2p-rendezvous/db/sqlite" p2putil "github.com/libp2p/go-libp2p-testing/netutil" "github.com/libp2p/go-libp2p/core/host" "github.com/libp2p/go-libp2p/core/peer" + mocknet "github.com/libp2p/go-libp2p/p2p/net/mock" ma "github.com/multiformats/go-multiaddr" "github.com/stretchr/testify/require" ) diff --git a/scenario_test.go b/scenario_test.go index 4bf7e686..ba0ec942 100644 --- a/scenario_test.go +++ b/scenario_test.go @@ -12,7 +12,7 @@ import ( "testing" "time" - libp2p_mocknet "github.com/berty/go-libp2p-mock" + mocknet "github.com/libp2p/go-libp2p/p2p/net/mock" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "go.uber.org/goleak" @@ -395,7 +395,7 @@ func testingScenario(t *testing.T, tcs []testCase, tf testFunc) { logger, cleanup := testutil.Logger(t) defer cleanup() - mn := libp2p_mocknet.New() + mn := mocknet.New() defer mn.Close() opts := weshnet.TestingOpts{ @@ -444,7 +444,7 @@ func testingScenarioNonMocked(t *testing.T, tcs []testCase, tf testFunc) { logger, cleanup := testutil.Logger(t) defer cleanup() - mn := libp2p_mocknet.New() + mn := mocknet.New() defer mn.Close() opts := weshnet.TestingOpts{ diff --git a/store_metadata_test.go b/store_metadata_test.go index 17b6ab05..7df4e187 100644 --- a/store_metadata_test.go +++ b/store_metadata_test.go @@ -9,10 +9,10 @@ import ( "testing" "time" - libp2p_mocknet "github.com/berty/go-libp2p-mock" datastore "github.com/ipfs/go-datastore" ds_sync "github.com/ipfs/go-datastore/sync" "github.com/libp2p/go-libp2p/core/crypto" + mocknet "github.com/libp2p/go-libp2p/p2p/net/mock" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "go.uber.org/zap" @@ -146,7 +146,7 @@ func testMemberStore(t *testing.T, memberCount, deviceCount int) { func ipfsAPIUsingMockNet(ctx context.Context, t *testing.T) ipfsutil.ExtendedCoreAPI { ipfsopts := &ipfsutil.TestingAPIOpts{ Logger: zap.NewNop(), - Mocknet: libp2p_mocknet.New(), + Mocknet: mocknet.New(), Datastore: ds_sync.MutexWrap(datastore.NewMapDatastore()), } diff --git a/testing.go b/testing.go index 3650d6b1..4ad63a18 100644 --- a/testing.go +++ b/testing.go @@ -12,7 +12,6 @@ import ( "testing" "time" - libp2p_mocknet "github.com/berty/go-libp2p-mock" grpc_middleware "github.com/grpc-ecosystem/go-grpc-middleware" grpc_zap "github.com/grpc-ecosystem/go-grpc-middleware/logging/zap" grpc_ctxtags "github.com/grpc-ecosystem/go-grpc-middleware/tags" @@ -20,6 +19,7 @@ import ( ds_sync "github.com/ipfs/go-datastore/sync" "github.com/libp2p/go-libp2p/core/crypto" "github.com/libp2p/go-libp2p/core/peer" + mocknet "github.com/libp2p/go-libp2p/p2p/net/mock" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "go.uber.org/zap" @@ -97,7 +97,7 @@ type TestingProtocol struct { type TestingOpts struct { Logger *zap.Logger - Mocknet libp2p_mocknet.Mocknet + Mocknet mocknet.Mocknet DiscoveryServer *tinder.MockDriverServer SecretStore secretstore.SecretStore CoreAPIMock ipfsutil.CoreAPIMock @@ -211,7 +211,7 @@ func (opts *TestingOpts) applyDefaults(ctx context.Context, t testing.TB) { } if opts.Mocknet == nil { - opts.Mocknet = libp2p_mocknet.New() + opts.Mocknet = mocknet.New() t.Cleanup(func() { opts.Mocknet.Close() }) } @@ -312,10 +312,10 @@ func TestingClient(ctx context.Context, t testing.TB, svc Service, clientOpts [] } // Connect Peers Helper -type ConnectTestingProtocolFunc func(testing.TB, libp2p_mocknet.Mocknet) +type ConnectTestingProtocolFunc func(testing.TB, mocknet.Mocknet) // ConnectAll peers between themselves -func ConnectAll(t testing.TB, m libp2p_mocknet.Mocknet) { +func ConnectAll(t testing.TB, m mocknet.Mocknet) { t.Helper() err := m.LinkAll() @@ -330,7 +330,7 @@ func ConnectAll(t testing.TB, m libp2p_mocknet.Mocknet) { // │ 1 │───▶│ 2 │───▶│ 3 │─ ─ ─ ─ ▶│ x │ // └───┘ └───┘ └───┘ └───┘ -func ConnectInLine(t testing.TB, m libp2p_mocknet.Mocknet) { +func ConnectInLine(t testing.TB, m mocknet.Mocknet) { t.Helper() peers := m.Peers() @@ -358,7 +358,7 @@ func CreatePeersWithGroupTest(ctx context.Context, t testing.TB, pathBase string t.Fatal(err) } - mn := libp2p_mocknet.New() + mn := mocknet.New() t.Cleanup(func() { mn.Close() }) ipfsopts := ipfsutil.TestingAPIOpts{ @@ -442,7 +442,7 @@ func CreatePeersWithGroupTest(ctx context.Context, t testing.TB, pathBase string } } -func connectPeers(ctx context.Context, t testing.TB, mn libp2p_mocknet.Mocknet) { +func connectPeers(ctx context.Context, t testing.TB, mn mocknet.Mocknet) { t.Helper() err := mn.LinkAll() diff --git a/tinder_swiper_test.go b/tinder_swiper_test.go index 65af89e3..62da9b44 100644 --- a/tinder_swiper_test.go +++ b/tinder_swiper_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - p2pmocknet "github.com/berty/go-libp2p-mock" + mocknet "github.com/libp2p/go-libp2p/p2p/net/mock" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" @@ -48,7 +48,7 @@ func TestAnnounceWatchForPeriod(t *testing.T) { ctx, cancel := context.WithCancel(context.Background()) defer cancel() - mn := p2pmocknet.New() + mn := mocknet.New() defer mn.Close() opts := &ipfsutil.TestingAPIOpts{ From 6bd8bc895f009dad6b10e5328d5faf521117a77d Mon Sep 17 00:00:00 2001 From: D4ryl00 Date: Mon, 5 Aug 2024 14:56:55 +0200 Subject: [PATCH 06/20] chore: reintegrate local copy of ggio Signed-off-by: D4ryl00 --- contact_request_manager.go | 27 +++---- internal/handshake/handshake.go | 24 ++----- internal/handshake/handshake_test.go | 85 +++++++---------------- internal/handshake/handshake_util_test.go | 5 +- internal/handshake/request.go | 27 ++----- internal/handshake/response.go | 27 ++----- pkg/tinder/driver_localdiscovery.go | 21 ++---- 7 files changed, 59 insertions(+), 157 deletions(-) diff --git a/contact_request_manager.go b/contact_request_manager.go index aa5bc70a..0b34e190 100644 --- a/contact_request_manager.go +++ b/contact_request_manager.go @@ -6,7 +6,6 @@ import ( "encoding/base64" "encoding/hex" "fmt" - "io" "strings" "sync" "time" @@ -14,7 +13,6 @@ import ( ipfscid "github.com/ipfs/go-cid" "github.com/libp2p/go-libp2p/core/crypto" "github.com/libp2p/go-libp2p/core/network" - inet "github.com/libp2p/go-libp2p/core/network" peer "github.com/libp2p/go-libp2p/core/peer" "github.com/libp2p/go-libp2p/p2p/host/eventbus" "go.uber.org/zap" @@ -25,6 +23,7 @@ import ( "berty.tech/weshnet/pkg/ipfsutil" "berty.tech/weshnet/pkg/logutil" "berty.tech/weshnet/pkg/protocoltypes" + "berty.tech/weshnet/pkg/protoio" "berty.tech/weshnet/pkg/tyber" ) @@ -450,20 +449,19 @@ func (c *contactRequestsManager) SendContactRequest(ctx context.Context, to *pro } }() + reader := protoio.NewDelimitedReader(stream, 2048) + writer := protoio.NewDelimitedWriter(stream) + c.logger.Debug("performing handshake") tyber.LogStep(ctx, c.logger, "performing handshake") - if err := handshake.RequestUsingReaderWriter(ctx, c.logger, stream, stream, c.accountPrivateKey, otherPK); err != nil { + if err := handshake.RequestUsingReaderWriter(ctx, c.logger, reader, writer, c.accountPrivateKey, otherPK); err != nil { return fmt.Errorf("an error occurred during handshake: %w", err) } tyber.LogStep(ctx, c.logger, "sending own contact") - ownBytes, err := proto.Marshal(own) - if err != nil { - return err - } // send own contact information - if _, err := stream.Write(ownBytes); err != nil { + if err := writer.WriteMsg(own); err != nil { return fmt.Errorf("an error occurred while sending own contact information: %w", err) } @@ -477,9 +475,12 @@ func (c *contactRequestsManager) SendContactRequest(ctx context.Context, to *pro } func (c *contactRequestsManager) handleIncomingRequest(ctx context.Context, stream network.Stream) (err error) { + reader := protoio.NewDelimitedReader(stream, 2048) + writer := protoio.NewDelimitedWriter(stream) + tyber.LogStep(ctx, c.logger, "responding to handshake") - otherPK, err := handshake.ResponseUsingReaderWriter(ctx, c.logger, stream, stream, c.accountPrivateKey) + otherPK, err := handshake.ResponseUsingReaderWriter(ctx, c.logger, reader, writer, c.accountPrivateKey) if err != nil { return fmt.Errorf("handshake failed: %w", err) } @@ -493,17 +494,11 @@ func (c *contactRequestsManager) handleIncomingRequest(ctx context.Context, stre tyber.LogStep(ctx, c.logger, "checking remote contact information") - buffer := make([]byte, inet.MessageSizeMax) // read remote contact information - n, err := stream.Read(buffer) - if err != nil && err != io.EOF { + if err := reader.ReadMsg(contact); err != nil { return fmt.Errorf("failed to read contact information: %w", err) } - if err := proto.Unmarshal(buffer[:n], contact); err != nil { - return fmt.Errorf("failed to unmarshal contact information: %w", err) - } - // validate contact pk if !bytes.Equal(otherPKBytes, contact.Pk) { return fmt.Errorf("contact information does not match handshake data") diff --git a/internal/handshake/handshake.go b/internal/handshake/handshake.go index 167557e2..99e2ee62 100644 --- a/internal/handshake/handshake.go +++ b/internal/handshake/handshake.go @@ -3,15 +3,13 @@ package handshake import ( crand "crypto/rand" "encoding/base64" - "io" p2pcrypto "github.com/libp2p/go-libp2p/core/crypto" - inet "github.com/libp2p/go-libp2p/core/network" "golang.org/x/crypto/nacl/box" - "google.golang.org/protobuf/proto" "berty.tech/weshnet/pkg/cryptoutil" "berty.tech/weshnet/pkg/errcode" + "berty.tech/weshnet/pkg/protoio" "berty.tech/weshnet/pkg/tyber" ) @@ -23,8 +21,8 @@ var ( // Common struct and methods type handshakeContext struct { - reader io.Reader - writer io.Writer + reader protoio.Reader + writer protoio.Writer ownAccountID p2pcrypto.PrivKey peerAccountID p2pcrypto.PubKey ownEphemeral *[cryptoutil.KeySize]byte @@ -71,12 +69,8 @@ func (hc *handshakeContext) generateOwnEphemeralAndSendPubKey() error { // Send own Ephemeral pub key to peer hello := HelloPayload{EphemeralPubKey: ownEphemeralPub[:]} - helloBytes, err := proto.Marshal(&hello) - if err != nil { - return errcode.ErrCode_ErrSerialization.Wrap(err) - } - if _, err := hc.writer.Write(helloBytes); err != nil { + if err := hc.writer.WriteMsg(&hello); err != nil { return errcode.ErrCode_ErrStreamWrite.Wrap(err) } @@ -88,15 +82,9 @@ func (hc *handshakeContext) receivePeerEphemeralPubKey() error { var err error // Receive peer's Ephemeral pub key - buffer := make([]byte, inet.MessageSizeMax) - n, err := hc.reader.Read(buffer) - if err != nil && err != io.EOF { - return errcode.ErrCode_ErrStreamRead.Wrap(err) - } - hello := HelloPayload{} - if err := proto.Unmarshal(buffer[:n], &hello); err != nil { - return errcode.ErrCode_ErrSerialization.Wrap(err) + if err := hc.reader.ReadMsg(&hello); err != nil { + return errcode.ErrCode_ErrStreamRead.Wrap(err) } // Set peer's Ephemeral pub key in Handshake Context diff --git a/internal/handshake/handshake_test.go b/internal/handshake/handshake_test.go index 69c5a43e..b62b7b9f 100644 --- a/internal/handshake/handshake_test.go +++ b/internal/handshake/handshake_test.go @@ -17,17 +17,24 @@ import ( "berty.tech/weshnet/pkg/cryptoutil" "berty.tech/weshnet/pkg/errcode" "berty.tech/weshnet/pkg/ipfsutil" + "berty.tech/weshnet/pkg/protoio" "berty.tech/weshnet/pkg/testutil" ) // Request init a handshake with the responder func Request(stream p2pnetwork.Stream, ownAccountID p2pcrypto.PrivKey, peerAccountID p2pcrypto.PubKey) error { - return RequestUsingReaderWriter(context.TODO(), zap.NewNop(), stream, stream, ownAccountID, peerAccountID) + reader := protoio.NewDelimitedReader(stream, 2048) + writer := protoio.NewDelimitedWriter(stream) + + return RequestUsingReaderWriter(context.TODO(), zap.NewNop(), reader, writer, ownAccountID, peerAccountID) } // Response handle the handshake inited by the requester func Response(stream p2pnetwork.Stream, ownAccountID p2pcrypto.PrivKey) (p2pcrypto.PubKey, error) { - return ResponseUsingReaderWriter(context.TODO(), zap.NewNop(), stream, stream, ownAccountID) + reader := protoio.NewDelimitedReader(stream, 2048) + writer := protoio.NewDelimitedWriter(stream) + + return ResponseUsingReaderWriter(context.TODO(), zap.NewNop(), reader, writer, ownAccountID) } func TestValidHandshake(t *testing.T) { @@ -233,10 +240,7 @@ func TestInvalidRequesterAuthenticate(t *testing.T) { boxKey, ) - boxBytes, err := proto.Marshal(&BoxEnvelope{Box: boxContent}) - require.NoError(t, err, "box envelope marshaling failed") - - hc.writer.Write(boxBytes) + hc.writer.WriteMsg(&BoxEnvelope{Box: boxContent}) ipfsutil.FullClose(stream) } @@ -304,10 +308,7 @@ func TestInvalidRequesterAuthenticate(t *testing.T) { boxKey, ) - boxBytes, err := proto.Marshal(&BoxEnvelope{Box: boxContent}) - require.NoError(t, err, "box envelope marshaling failed") - - hc.writer.Write(boxBytes) + hc.writer.WriteMsg(&BoxEnvelope{Box: boxContent}) ipfsutil.FullClose(stream) } @@ -375,10 +376,7 @@ func TestInvalidRequesterAuthenticate(t *testing.T) { boxKey, ) - boxBytes, err := proto.Marshal(&BoxEnvelope{Box: boxContent}) - require.NoError(t, err, "box envelope marshaling failed") - - hc.writer.Write(boxBytes) + hc.writer.WriteMsg(&BoxEnvelope{Box: boxContent}) ipfsutil.FullClose(stream) } @@ -443,10 +441,7 @@ func TestInvalidRequesterAuthenticate(t *testing.T) { boxKey, ) - boxBytes, err := proto.Marshal(&BoxEnvelope{Box: boxContent}) - require.NoError(t, err, "box envelope marshaling failed") - - hc.writer.Write(boxBytes) + hc.writer.WriteMsg(&BoxEnvelope{Box: boxContent}) ipfsutil.FullClose(stream) } @@ -502,10 +497,7 @@ func TestInvalidRequesterAuthenticate(t *testing.T) { boxKey, ) - boxBytes, err := proto.Marshal(&BoxEnvelope{Box: boxContent}) - require.NoError(t, err, "box envelope marshaling failed") - - hc.writer.Write(boxBytes) + hc.writer.WriteMsg(&BoxEnvelope{Box: boxContent}) ipfsutil.FullClose(stream) } @@ -570,10 +562,7 @@ func TestInvalidRequesterAuthenticate(t *testing.T) { wrongBoxKey, ) - boxBytes, err := proto.Marshal(&BoxEnvelope{Box: boxContent}) - require.NoError(t, err, "box envelope marshaling failed") - - hc.writer.Write(boxBytes) + hc.writer.WriteMsg(&BoxEnvelope{Box: boxContent}) ipfsutil.FullClose(stream) } @@ -641,10 +630,7 @@ func TestInvalidRequesterAuthenticate(t *testing.T) { boxKey, ) - boxBytes, err := proto.Marshal(&BoxEnvelope{Box: boxContent}) - require.NoError(t, err, "box envelope marshaling failed") - - hc.writer.Write(boxBytes) + hc.writer.WriteMsg(&BoxEnvelope{Box: boxContent}) ipfsutil.FullClose(stream) } @@ -688,10 +674,7 @@ func TestInvalidRequesterAuthenticate(t *testing.T) { require.NoError(t, err, "receive ResponderHello failed") // Send invalid box content - boxBytes, err := proto.Marshal(&BoxEnvelope{Box: []byte("WrongBoxContent")}) - require.NoError(t, err, "box envelope marshaling failed") - - hc.writer.Write(boxBytes) + hc.writer.WriteMsg(&BoxEnvelope{Box: []byte("WrongBoxContent")}) ipfsutil.FullClose(stream) } @@ -822,10 +805,7 @@ func TestInvalidResponderAccept(t *testing.T) { boxKey, ) - boxBytes, err := proto.Marshal(&BoxEnvelope{Box: boxContent}) - require.NoError(t, err, "box envelope marshaling failed") - - hc.writer.Write(boxBytes) + hc.writer.WriteMsg(&BoxEnvelope{Box: boxContent}) ipfsutil.FullClose(stream) } @@ -891,10 +871,7 @@ func TestInvalidResponderAccept(t *testing.T) { boxKey, ) - boxBytes, err := proto.Marshal(&BoxEnvelope{Box: boxContent}) - require.NoError(t, err, "box envelope marshaling failed") - - hc.writer.Write(boxBytes) + hc.writer.WriteMsg(&BoxEnvelope{Box: boxContent}) ipfsutil.FullClose(stream) } @@ -954,10 +931,7 @@ func TestInvalidResponderAccept(t *testing.T) { boxKey, ) - boxBytes, err := proto.Marshal(&BoxEnvelope{Box: boxContent}) - require.NoError(t, err, "box envelope marshaling failed") - - hc.writer.Write(boxBytes) + hc.writer.WriteMsg(&BoxEnvelope{Box: boxContent}) ipfsutil.FullClose(stream) } @@ -1023,10 +997,7 @@ func TestInvalidResponderAccept(t *testing.T) { wrongBoxKey, ) - boxBytes, err := proto.Marshal(&BoxEnvelope{Box: boxContent}) - require.NoError(t, err, "box envelope marshaling failed") - - hc.writer.Write(boxBytes) + hc.writer.WriteMsg(&BoxEnvelope{Box: boxContent}) ipfsutil.FullClose(stream) } @@ -1095,10 +1066,7 @@ func TestInvalidResponderAccept(t *testing.T) { boxKey, ) - boxBytes, err := proto.Marshal(&BoxEnvelope{Box: boxContent}) - require.NoError(t, err, "box envelope marshaling failed") - - hc.writer.Write(boxBytes) + hc.writer.WriteMsg(&BoxEnvelope{Box: boxContent}) ipfsutil.FullClose(stream) } @@ -1146,10 +1114,7 @@ func TestInvalidResponderAccept(t *testing.T) { require.NoError(t, err, "receive RequesterAuthenticate failed") // Send wrong boxContent - boxBytes, err := proto.Marshal(&BoxEnvelope{Box: []byte("WrongBoxContent")}) - require.NoError(t, err, "box envelope marshaling failed") - - hc.writer.Write(boxBytes) + hc.writer.WriteMsg(&BoxEnvelope{Box: []byte("WrongBoxContent")}) ipfsutil.FullClose(stream) } @@ -1237,10 +1202,8 @@ func TestInvalidResponderAcceptAck(t *testing.T) { require.NoError(t, err, "receive ResponderAccept failed") acknowledge := &RequesterAcknowledgePayload{Success: false} - ackBytes, err := proto.Marshal(acknowledge) - require.NoError(t, err, "acknowledge marshaling failed") - hc.writer.Write(ackBytes) + hc.writer.WriteMsg(acknowledge) ipfsutil.FullClose(stream) } diff --git a/internal/handshake/handshake_util_test.go b/internal/handshake/handshake_util_test.go index 1507a7cf..b94adb36 100644 --- a/internal/handshake/handshake_util_test.go +++ b/internal/handshake/handshake_util_test.go @@ -14,6 +14,7 @@ import ( "github.com/stretchr/testify/require" "berty.tech/weshnet/pkg/ipfsutil" + "berty.tech/weshnet/pkg/protoio" "berty.tech/weshnet/pkg/tinder" ) @@ -93,8 +94,8 @@ func (mh *mockedHandshake) close(t *testing.T) { func newTestHandshakeContext(stream p2pnetwork.Stream, ownAccountID p2pcrypto.PrivKey, peerAccountID p2pcrypto.PubKey) *handshakeContext { return &handshakeContext{ - reader: stream, - writer: stream, + reader: protoio.NewDelimitedReader(stream, 2048), + writer: protoio.NewDelimitedWriter(stream), ownAccountID: ownAccountID, peerAccountID: peerAccountID, sharedEphemeral: &[32]byte{}, diff --git a/internal/handshake/request.go b/internal/handshake/request.go index df51fa3d..f5a9eeff 100644 --- a/internal/handshake/request.go +++ b/internal/handshake/request.go @@ -3,21 +3,20 @@ package handshake import ( "context" "errors" - "io" p2pcrypto "github.com/libp2p/go-libp2p/core/crypto" - inet "github.com/libp2p/go-libp2p/core/network" "go.uber.org/zap" "golang.org/x/crypto/nacl/box" "google.golang.org/protobuf/proto" "berty.tech/weshnet/pkg/cryptoutil" "berty.tech/weshnet/pkg/errcode" + "berty.tech/weshnet/pkg/protoio" "berty.tech/weshnet/pkg/tyber" ) // RequestUsingReaderWriter init a handshake with the responder, using provided io reader and writer -func RequestUsingReaderWriter(ctx context.Context, logger *zap.Logger, reader io.Reader, writer io.Writer, ownAccountID p2pcrypto.PrivKey, peerAccountID p2pcrypto.PubKey) error { +func RequestUsingReaderWriter(ctx context.Context, logger *zap.Logger, reader protoio.Reader, writer protoio.Writer, ownAccountID p2pcrypto.PrivKey, peerAccountID p2pcrypto.PubKey) error { hc := &handshakeContext{ reader: reader, writer: writer, @@ -108,12 +107,7 @@ func (hc *handshakeContext) sendRequesterAuthenticate() error { ) // Send BoxEnvelope to responder - boxBytes, err := proto.Marshal(&BoxEnvelope{Box: boxContent}) - if err != nil { - return errcode.ErrCode_ErrSerialization.Wrap(err) - } - - if _, err = hc.writer.Write(boxBytes); err != nil { + if err = hc.writer.WriteMsg(&BoxEnvelope{Box: boxContent}); err != nil { return errcode.ErrCode_ErrStreamWrite.Wrap(err) } @@ -128,16 +122,10 @@ func (hc *handshakeContext) receiveResponderAccept() error { ) // Receive BoxEnvelope from responder - buffer := make([]byte, inet.MessageSizeMax) - n, err := hc.reader.Read(buffer) - if err != nil && err != io.EOF { + if err := hc.reader.ReadMsg(&boxEnvelope); err != nil { return errcode.ErrCode_ErrStreamRead.Wrap(err) } - if err := proto.Unmarshal(buffer[:n], &boxEnvelope); err != nil { - return errcode.ErrCode_ErrDeserialization.Wrap(err) - } - // Compute box key and open marshaled RequesterAuthenticatePayload using // constant nonce (see handshake.go) boxKey, err := hc.computeResponderAcceptBoxKey() @@ -181,13 +169,8 @@ func (hc *handshakeContext) receiveResponderAccept() error { func (hc *handshakeContext) sendRequesterAcknowledge() error { acknowledge := &RequesterAcknowledgePayload{Success: true} - ackBytes, err := proto.Marshal(acknowledge) - if err != nil { - return errcode.ErrCode_ErrSerialization.Wrap(err) - } - // Send Acknowledge to responder - if _, err := hc.writer.Write(ackBytes); err != nil { + if err := hc.writer.WriteMsg(acknowledge); err != nil { return errcode.ErrCode_ErrStreamWrite.Wrap(err) } diff --git a/internal/handshake/response.go b/internal/handshake/response.go index a00ad826..28353635 100644 --- a/internal/handshake/response.go +++ b/internal/handshake/response.go @@ -6,18 +6,18 @@ import ( "io" p2pcrypto "github.com/libp2p/go-libp2p/core/crypto" - inet "github.com/libp2p/go-libp2p/core/network" "go.uber.org/zap" "golang.org/x/crypto/nacl/box" "google.golang.org/protobuf/proto" "berty.tech/weshnet/pkg/cryptoutil" "berty.tech/weshnet/pkg/errcode" + "berty.tech/weshnet/pkg/protoio" "berty.tech/weshnet/pkg/tyber" ) // ResponseUsingReaderWriter handle the handshake inited by the requester, using provided io reader and writer -func ResponseUsingReaderWriter(ctx context.Context, logger *zap.Logger, reader io.Reader, writer io.Writer, ownAccountID p2pcrypto.PrivKey) (p2pcrypto.PubKey, error) { +func ResponseUsingReaderWriter(ctx context.Context, logger *zap.Logger, reader protoio.Reader, writer protoio.Writer, ownAccountID p2pcrypto.PrivKey) (p2pcrypto.PubKey, error) { hc := &handshakeContext{ reader: reader, writer: writer, @@ -79,16 +79,10 @@ func (hc *handshakeContext) receiveRequesterAuthenticate() error { ) // Receive BoxEnvelope from requester - buffer := make([]byte, inet.MessageSizeMax) - n, err := hc.reader.Read(buffer) - if err != nil && err != io.EOF { + if err := hc.reader.ReadMsg(&boxEnvelope); err != nil { return errcode.ErrCode_ErrStreamRead.Wrap(err) } - if err := proto.Unmarshal(buffer[:n], &boxEnvelope); err != nil { - return errcode.ErrCode_ErrSerialization.Wrap(err) - } - // Compute box key and open marshaled RequesterAuthenticatePayload using // constant nonce (see handshake.go) boxKey, err := hc.computeRequesterAuthenticateBoxKey(false) @@ -161,13 +155,8 @@ func (hc *handshakeContext) sendResponderAccept() error { boxKey, ) - boxBytes, err := proto.Marshal(&BoxEnvelope{Box: boxContent}) - if err != nil { - return errcode.ErrCode_ErrSerialization.Wrap(err) - } - // Send BoxEnvelope to requester - if _, err = hc.writer.Write(boxBytes); err != nil { + if err = hc.writer.WriteMsg(&BoxEnvelope{Box: boxContent}); err != nil { return errcode.ErrCode_ErrStreamWrite.Wrap(err) } @@ -179,16 +168,10 @@ func (hc *handshakeContext) receiveRequesterAcknowledge() error { var acknowledge RequesterAcknowledgePayload // Receive Acknowledge from requester - buffer := make([]byte, inet.MessageSizeMax) - n, err := hc.reader.Read(buffer) - if err != nil && err != io.EOF { + if err := hc.reader.ReadMsg(&acknowledge); err != nil && err != io.EOF { return errcode.ErrCode_ErrStreamRead.Wrap(err) } - if err := proto.Unmarshal(buffer[:n], &acknowledge); err != nil { - return errcode.ErrCode_ErrDeserialization.Wrap(err) - } - if !acknowledge.Success { return errcode.ErrCode_ErrInvalidInput } diff --git a/pkg/tinder/driver_localdiscovery.go b/pkg/tinder/driver_localdiscovery.go index c2bc1f42..a8eb86b3 100644 --- a/pkg/tinder/driver_localdiscovery.go +++ b/pkg/tinder/driver_localdiscovery.go @@ -5,7 +5,6 @@ import ( "context" "encoding/hex" "fmt" - "io" "math/rand" "sync" "time" @@ -20,12 +19,12 @@ import ( ma "github.com/multiformats/go-multiaddr" manet "github.com/multiformats/go-multiaddr/net" "go.uber.org/zap" - "google.golang.org/protobuf/proto" nearby "berty.tech/weshnet/pkg/androidnearby" ble "berty.tech/weshnet/pkg/ble-driver" "berty.tech/weshnet/pkg/logutil" mc "berty.tech/weshnet/pkg/multipeer-connectivity-driver" + "berty.tech/weshnet/pkg/protoio" ) const ( @@ -319,19 +318,13 @@ func (ld *LocalDiscovery) sendRecordsToProximityPeers(ctx context.Context, recor func (ld *LocalDiscovery) handleStream(s network.Stream) { defer s.Reset() // nolint:errcheck + reader := protoio.NewDelimitedReader(s, 2048) records := Records{} - buffer := make([]byte, network.MessageSizeMax) - n, err := s.Read(buffer) - if err != nil && err != io.EOF { + if err := reader.ReadMsg(&records); err != nil { ld.logger.Error("handleStream receive an invalid local record", zap.Error(err)) return } - if err := proto.Unmarshal(buffer[:n], &records); err != nil { - ld.logger.Error("handleStream unable to unmarshal local record", zap.Error(err)) - return - } - info := peer.AddrInfo{ ID: s.Conn().RemotePeer(), Addrs: []ma.Multiaddr{s.Conn().RemoteMultiaddr()}, @@ -382,12 +375,8 @@ func (ld *LocalDiscovery) sendRecordsTo(ctx context.Context, p peer.ID, records } defer s.Close() - recordsBytes, err := proto.Marshal(records) - if err != nil { - return fmt.Errorf("unable to marshal local record: %w", err) - } - - if _, err := s.Write(recordsBytes); err != nil { + pbw := protoio.NewDelimitedWriter(s) + if err := pbw.WriteMsg(records); err != nil { return fmt.Errorf("write error: %w", err) } From 19eff59e764ac0a38824007889a99f107f80e5c0 Mon Sep 17 00:00:00 2001 From: D4ryl00 Date: Mon, 5 Aug 2024 14:57:39 +0200 Subject: [PATCH 07/20] fix: use quic-v1 which is used by default instead of quic Signed-off-by: D4ryl00 --- pkg/ipfsutil/repo.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/ipfsutil/repo.go b/pkg/ipfsutil/repo.go index 42c05089..0b31dd07 100644 --- a/pkg/ipfsutil/repo.go +++ b/pkg/ipfsutil/repo.go @@ -84,8 +84,8 @@ func LoadRepoFromPath(path string) (ipfs_repo.Repo, error) { } var DefaultSwarmListeners = []string{ - "/ip4/0.0.0.0/udp/0/quic", - "/ip6/::/udp/0/quic", + "/ip4/0.0.0.0/udp/0/quic-v1", + "/ip6/::/udp/0/quic-v1", // "/ip4/0.0.0.0/tcp/0", // "/ip6/::/tcp/0", } From 48e1e2a6bdb69b9e91faf536e3c9610fe58136c2 Mon Sep 17 00:00:00 2001 From: D4ryl00 Date: Mon, 5 Aug 2024 14:58:28 +0200 Subject: [PATCH 08/20] fix: test group field instead of group struct which differs after unmarshalling Signed-off-by: D4ryl00 --- outofstoremessage_test.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/outofstoremessage_test.go b/outofstoremessage_test.go index 2e71401e..a066678b 100644 --- a/outofstoremessage_test.go +++ b/outofstoremessage_test.go @@ -60,7 +60,13 @@ func Test_sealPushMessage_OutOfStoreReceive(t *testing.T) { outOfStoreMessage, group, clearPayload, alreadyDecrypted, err := gc.SecretStore().OpenOutOfStoreMessage(ctx, oosMsgEnvBytes) require.NoError(t, err) - require.Equal(t, g, group) + require.Equal(t, g.PublicKey, group.PublicKey) + require.Equal(t, g.Secret, group.Secret) + require.Equal(t, g.SecretSig, group.SecretSig) + require.Equal(t, g.GroupType, group.GroupType) + require.Equal(t, g.SignPub, group.SignPub) + require.Equal(t, g.LinkKey, group.LinkKey) + require.Equal(t, g.LinkKeySig, group.LinkKeySig) require.Equal(t, []byte("test payload"), clearPayload) require.False(t, alreadyDecrypted) @@ -138,6 +144,7 @@ func createVirtualOtherPeerSecrets(t testing.TB, ctx context.Context, gc *GroupC // Manually adding another member to the group otherMD, err := secretStore.GetOwnMemberDeviceForGroup(gc.Group()) + require.NoError(t, err) _, err = MetadataStoreAddDeviceToGroup(ctx, gc.MetadataStore(), gc.Group(), otherMD) require.NoError(t, err) @@ -145,6 +152,7 @@ func createVirtualOtherPeerSecrets(t testing.TB, ctx context.Context, gc *GroupC require.NoError(t, err) ds, err := secretStore.GetShareableChainKey(ctx, gc.Group(), memberDevice.Member()) + require.NoError(t, err) _, err = MetadataStoreSendSecret(ctx, gc.MetadataStore(), gc.Group(), otherMD, memberDevice.Member(), ds) require.NoError(t, err) From 434bb4cbd0524938819060c9c061d7105c79a9b4 Mon Sep 17 00:00:00 2001 From: D4ryl00 Date: Mon, 5 Aug 2024 14:59:03 +0200 Subject: [PATCH 09/20] fix: remove extra ouput in tests Signed-off-by: D4ryl00 --- blackbox_test.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/blackbox_test.go b/blackbox_test.go index 196288c7..7a7242bf 100644 --- a/blackbox_test.go +++ b/blackbox_test.go @@ -63,7 +63,6 @@ func ExampleNewInMemoryServiceClient_basic() { } // Output: - // go-libp2p resource manager protection disabled // /p2p-circuit } @@ -120,8 +119,6 @@ func ExampleNewPersistentServiceClient_basic() { } // Output: - // go-libp2p resource manager protection disabled - // go-libp2p resource manager protection disabled } func ExampleNewServiceClient_basic() { @@ -149,7 +146,6 @@ func ExampleNewServiceClient_basic() { } // Output: - // go-libp2p resource manager protection disabled // /p2p-circuit } @@ -178,7 +174,6 @@ func ExampleNewService_basic() { } // Output: - // go-libp2p resource manager protection disabled // /p2p-circuit } From d806672da559d7c34b7519b011956e0729fb69a2 Mon Sep 17 00:00:00 2001 From: D4ryl00 Date: Mon, 5 Aug 2024 14:59:23 +0200 Subject: [PATCH 10/20] fix: add local version of ggio Signed-off-by: D4ryl00 --- pkg/protoio/full.go | 103 +++++++++++++++++++++++++++++++ pkg/protoio/io.go | 71 ++++++++++++++++++++++ pkg/protoio/uint32.go | 138 ++++++++++++++++++++++++++++++++++++++++++ pkg/protoio/varint.go | 134 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 446 insertions(+) create mode 100644 pkg/protoio/full.go create mode 100644 pkg/protoio/io.go create mode 100644 pkg/protoio/uint32.go create mode 100644 pkg/protoio/varint.go diff --git a/pkg/protoio/full.go b/pkg/protoio/full.go new file mode 100644 index 00000000..d3d038a1 --- /dev/null +++ b/pkg/protoio/full.go @@ -0,0 +1,103 @@ +// Protocol Buffers for Go with Gadgets +// +// Copyright (c) 2013, The GoGo Authors. All rights reserved. +// http://github.com/gogo/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +package protoio + +import ( + "io" + + "google.golang.org/protobuf/proto" +) + +func NewFullWriter(w io.Writer) WriteCloser { + return &fullWriter{w, nil} +} + +type fullWriter struct { + w io.Writer + buffer []byte +} + +func (this *fullWriter) WriteMsg(msg proto.Message) (err error) { + var data []byte + if m, ok := msg.(marshaler); ok { + n, ok := getSize(m) + if !ok { + data, err = proto.Marshal(msg) + if err != nil { + return err + } + } + if n >= len(this.buffer) { + this.buffer = make([]byte, n) + } + _, err = m.MarshalTo(this.buffer) + if err != nil { + return err + } + data = this.buffer[:n] + } else { + data, err = proto.Marshal(msg) + if err != nil { + return err + } + } + _, err = this.w.Write(data) + return err +} + +func (this *fullWriter) Close() error { + if closer, ok := this.w.(io.Closer); ok { + return closer.Close() + } + return nil +} + +type fullReader struct { + r io.Reader + buf []byte +} + +func NewFullReader(r io.Reader, maxSize int) ReadCloser { + return &fullReader{r, make([]byte, maxSize)} +} + +func (this *fullReader) ReadMsg(msg proto.Message) error { + length, err := this.r.Read(this.buf) + if err != nil { + return err + } + return proto.Unmarshal(this.buf[:length], msg) +} + +func (this *fullReader) Close() error { + if closer, ok := this.r.(io.Closer); ok { + return closer.Close() + } + return nil +} diff --git a/pkg/protoio/io.go b/pkg/protoio/io.go new file mode 100644 index 00000000..4bf80422 --- /dev/null +++ b/pkg/protoio/io.go @@ -0,0 +1,71 @@ +// Protocol Buffers for Go with Gadgets +// +// Copyright (c) 2013, The GoGo Authors. All rights reserved. +// http://github.com/gogo/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +package protoio + +import ( + "io" + + "google.golang.org/protobuf/proto" +) + +type Writer interface { + WriteMsg(proto.Message) error +} + +type WriteCloser interface { + Writer + io.Closer +} + +type Reader interface { + ReadMsg(msg proto.Message) error +} + +type ReadCloser interface { + Reader + io.Closer +} + +type marshaler interface { + MarshalTo(data []byte) (n int, err error) +} + +func getSize(v interface{}) (int, bool) { + if sz, ok := v.(interface { + Size() (n int) + }); ok { + return sz.Size(), true + } else if sz, ok := v.(interface { + ProtoSize() (n int) + }); ok { + return sz.ProtoSize(), true + } else { + return 0, false + } +} diff --git a/pkg/protoio/uint32.go b/pkg/protoio/uint32.go new file mode 100644 index 00000000..160dcdfc --- /dev/null +++ b/pkg/protoio/uint32.go @@ -0,0 +1,138 @@ +// Protocol Buffers for Go with Gadgets +// +// Copyright (c) 2013, The GoGo Authors. All rights reserved. +// http://github.com/gogo/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +package protoio + +import ( + "encoding/binary" + "io" + + "google.golang.org/protobuf/proto" +) + +const uint32BinaryLen = 4 + +func NewUint32DelimitedWriter(w io.Writer, byteOrder binary.ByteOrder) WriteCloser { + return &uint32Writer{w, byteOrder, nil, make([]byte, uint32BinaryLen)} +} + +func NewSizeUint32DelimitedWriter(w io.Writer, byteOrder binary.ByteOrder, size int) WriteCloser { + return &uint32Writer{w, byteOrder, make([]byte, size), make([]byte, uint32BinaryLen)} +} + +type uint32Writer struct { + w io.Writer + byteOrder binary.ByteOrder + buffer []byte + lenBuf []byte +} + +func (this *uint32Writer) writeFallback(msg proto.Message) error { + data, err := proto.Marshal(msg) + if err != nil { + return err + } + + length := uint32(len(data)) + this.byteOrder.PutUint32(this.lenBuf, length) + if _, err = this.w.Write(this.lenBuf); err != nil { + return err + } + _, err = this.w.Write(data) + return err +} + +func (this *uint32Writer) WriteMsg(msg proto.Message) error { + m, ok := msg.(marshaler) + if !ok { + return this.writeFallback(msg) + } + + n, ok := getSize(m) + if !ok { + return this.writeFallback(msg) + } + + size := n + uint32BinaryLen + if size > len(this.buffer) { + this.buffer = make([]byte, size) + } + + this.byteOrder.PutUint32(this.buffer, uint32(n)) + if _, err := m.MarshalTo(this.buffer[uint32BinaryLen:]); err != nil { + return err + } + + _, err := this.w.Write(this.buffer[:size]) + return err +} + +func (this *uint32Writer) Close() error { + if closer, ok := this.w.(io.Closer); ok { + return closer.Close() + } + return nil +} + +type uint32Reader struct { + r io.Reader + byteOrder binary.ByteOrder + lenBuf []byte + buf []byte + maxSize int +} + +func NewUint32DelimitedReader(r io.Reader, byteOrder binary.ByteOrder, maxSize int) ReadCloser { + return &uint32Reader{r, byteOrder, make([]byte, 4), nil, maxSize} +} + +func (this *uint32Reader) ReadMsg(msg proto.Message) error { + if _, err := io.ReadFull(this.r, this.lenBuf); err != nil { + return err + } + length32 := this.byteOrder.Uint32(this.lenBuf) + length := int(length32) + if length < 0 || length > this.maxSize { + return io.ErrShortBuffer + } + if length > len(this.buf) { + this.buf = make([]byte, length) + } + _, err := io.ReadFull(this.r, this.buf[:length]) + if err != nil { + return err + } + return proto.Unmarshal(this.buf[:length], msg) +} + +func (this *uint32Reader) Close() error { + if closer, ok := this.r.(io.Closer); ok { + return closer.Close() + } + return nil +} diff --git a/pkg/protoio/varint.go b/pkg/protoio/varint.go new file mode 100644 index 00000000..1e2a3b81 --- /dev/null +++ b/pkg/protoio/varint.go @@ -0,0 +1,134 @@ +// Protocol Buffers for Go with Gadgets +// +// Copyright (c) 2013, The GoGo Authors. All rights reserved. +// http://github.com/gogo/protobuf +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +package protoio + +import ( + "bufio" + "encoding/binary" + "errors" + "io" + + "google.golang.org/protobuf/proto" +) + +var ( + errSmallBuffer = errors.New("Buffer Too Small") + errLargeValue = errors.New("Value is Larger than 64 bits") +) + +func NewDelimitedWriter(w io.Writer) WriteCloser { + return &varintWriter{w, make([]byte, binary.MaxVarintLen64), nil} +} + +type varintWriter struct { + w io.Writer + lenBuf []byte + buffer []byte +} + +func (this *varintWriter) WriteMsg(msg proto.Message) (err error) { + var data []byte + if m, ok := msg.(marshaler); ok { + n, ok := getSize(m) + if ok { + if n+binary.MaxVarintLen64 >= len(this.buffer) { + this.buffer = make([]byte, n+binary.MaxVarintLen64) + } + lenOff := binary.PutUvarint(this.buffer, uint64(n)) + _, err = m.MarshalTo(this.buffer[lenOff:]) + if err != nil { + return err + } + _, err = this.w.Write(this.buffer[:lenOff+n]) + return err + } + } + + // fallback + data, err = proto.Marshal(msg) + if err != nil { + return err + } + length := uint64(len(data)) + n := binary.PutUvarint(this.lenBuf, length) + _, err = this.w.Write(this.lenBuf[:n]) + if err != nil { + return err + } + _, err = this.w.Write(data) + return err +} + +func (this *varintWriter) Close() error { + if closer, ok := this.w.(io.Closer); ok { + return closer.Close() + } + return nil +} + +func NewDelimitedReader(r io.Reader, maxSize int) ReadCloser { + var closer io.Closer + if c, ok := r.(io.Closer); ok { + closer = c + } + return &varintReader{bufio.NewReader(r), nil, maxSize, closer} +} + +type varintReader struct { + r *bufio.Reader + buf []byte + maxSize int + closer io.Closer +} + +func (this *varintReader) ReadMsg(msg proto.Message) error { + length64, err := binary.ReadUvarint(this.r) + if err != nil { + return err + } + length := int(length64) + if length < 0 || length > this.maxSize { + return io.ErrShortBuffer + } + if len(this.buf) < length { + this.buf = make([]byte, length) + } + buf := this.buf[:length] + if _, err := io.ReadFull(this.r, buf); err != nil { + return err + } + return proto.Unmarshal(buf, msg) +} + +func (this *varintReader) Close() error { + if this.closer != nil { + return this.closer.Close() + } + return nil +} From 4d8cc2e76f2336b7c8f07cd044ef529abb16eb7e Mon Sep 17 00:00:00 2001 From: D4ryl00 Date: Mon, 5 Aug 2024 15:51:42 +0200 Subject: [PATCH 11/20] fix: remove EOF in read test error Signed-off-by: D4ryl00 --- internal/handshake/response.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/handshake/response.go b/internal/handshake/response.go index 28353635..18fa7e3f 100644 --- a/internal/handshake/response.go +++ b/internal/handshake/response.go @@ -3,7 +3,6 @@ package handshake import ( "context" "errors" - "io" p2pcrypto "github.com/libp2p/go-libp2p/core/crypto" "go.uber.org/zap" @@ -168,7 +167,7 @@ func (hc *handshakeContext) receiveRequesterAcknowledge() error { var acknowledge RequesterAcknowledgePayload // Receive Acknowledge from requester - if err := hc.reader.ReadMsg(&acknowledge); err != nil && err != io.EOF { + if err := hc.reader.ReadMsg(&acknowledge); err != nil { return errcode.ErrCode_ErrStreamRead.Wrap(err) } From 5a6e8dd15d0df4dd45167883f47a4c5a635d6a1f Mon Sep 17 00:00:00 2001 From: D4ryl00 Date: Mon, 5 Aug 2024 15:52:13 +0200 Subject: [PATCH 12/20] fix: in mocknet, add peer in peerstore and mocknet Signed-off-by: D4ryl00 --- pkg/ipfsutil/testing.go | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/pkg/ipfsutil/testing.go b/pkg/ipfsutil/testing.go index 66b761f4..8b6c43b5 100644 --- a/pkg/ipfsutil/testing.go +++ b/pkg/ipfsutil/testing.go @@ -4,6 +4,8 @@ import ( "context" crand "crypto/rand" "encoding/base64" + "fmt" + "net" "testing" rendezvous "github.com/berty/go-libp2p-rendezvous" @@ -23,6 +25,7 @@ import ( "github.com/libp2p/go-libp2p/core/peerstore" "github.com/libp2p/go-libp2p/core/protocol" mocknet "github.com/libp2p/go-libp2p/p2p/net/mock" + ma "github.com/multiformats/go-multiaddr" "github.com/stretchr/testify/require" "go.uber.org/zap" @@ -261,6 +264,35 @@ func (m *coreAPIMock) Close() { func MockHostOption(mn mocknet.Mocknet) ipfs_p2p.HostOption { return func(id p2p_peer.ID, ps peerstore.Peerstore, _ ...libp2p.Option) (host.Host, error) { - return ipfs_p2p.DefaultHostOption(id, ps) + blackholeIP6 := net.ParseIP("100::") + + pkey := ps.PrivKey(id) + if pkey == nil { + return nil, fmt.Errorf("missing private key for node ID: %s", id) + } + + suffix := id + if len(id) > 8 { + suffix = id[len(id)-8:] + } + ip := append(net.IP{}, blackholeIP6...) + copy(ip[net.IPv6len-len(suffix):], suffix) + a, err := ma.NewMultiaddr(fmt.Sprintf("/ip6/%s/tcp/4242", ip)) + if err != nil { + return nil, fmt.Errorf("failed to create test multiaddr: %s", err) + } + + ps.AddAddr(id, a, peerstore.PermanentAddrTTL) + err = ps.AddPrivKey(id, pkey) + if err != nil { + return nil, err + } + + err = ps.AddPubKey(id, pkey.GetPublic()) + if err != nil { + return nil, err + } + + return mn.AddPeerWithPeerstore(id, ps) } } From 3a83c6630c5cef5d9c2acc2041650945bc4b0cfb Mon Sep 17 00:00:00 2001 From: D4ryl00 Date: Mon, 5 Aug 2024 17:17:51 +0200 Subject: [PATCH 13/20] chore: use latest go-libp2p-rendezvous + fix lint in protoio Signed-off-by: D4ryl00 --- go.mod | 4 +--- go.sum | 2 ++ pkg/protoio/full.go | 2 +- pkg/protoio/varint.go | 6 ------ 4 files changed, 4 insertions(+), 10 deletions(-) diff --git a/go.mod b/go.mod index 66d681c7..6e645f8e 100644 --- a/go.mod +++ b/go.mod @@ -11,7 +11,7 @@ require ( filippo.io/edwards25519 v1.0.0 github.com/aead/ecdh v0.2.0 github.com/berty/emitter-go v0.0.0-20221031144724-5dae963c3622 - github.com/berty/go-libp2p-rendezvous v0.5.1-0.20240719154654-269ed907d248 + github.com/berty/go-libp2p-rendezvous v0.5.1 github.com/buicongtan1997/protoc-gen-swagger-config v0.0.0-20200705084907-1342b78c1a7e github.com/daixiang0/gci v0.8.2 github.com/dgraph-io/badger/v2 v2.2007.3 @@ -312,5 +312,3 @@ require ( moul.io/banner v1.0.1 // indirect moul.io/motd v1.0.0 // indirect ) - -replace github.com/berty/go-libp2p-rendezvous => /Users/remi/go-libp2p-rendezvous diff --git a/go.sum b/go.sum index a5f6a7ae..4196118e 100644 --- a/go.sum +++ b/go.sum @@ -107,6 +107,8 @@ github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= github.com/berty/emitter-go v0.0.0-20221031144724-5dae963c3622 h1:kJqfCXKR5EJdh9HYh4rjYL3QvxjP5cnCssIU141m79c= github.com/berty/emitter-go v0.0.0-20221031144724-5dae963c3622/go.mod h1:G66sIy+q6BKIoKoKNqFU7sxSnrS5d8Z8meQ3Iu0ZJ4o= +github.com/berty/go-libp2p-rendezvous v0.5.1 h1:6KnCOlyMIKAZq5COJeglWK5M8MhSJ2cKtMDf6x0KQm0= +github.com/berty/go-libp2p-rendezvous v0.5.1/go.mod h1:gNhPX2RnxaGHLKxj/hWiaQKR2TwYnKxjtFXoVhzUBYE= github.com/blang/semver/v4 v4.0.0 h1:1PFHFE6yCCTv8C1TeyNNarDzntLi7wMI5i/pzqYIsAM= github.com/blang/semver/v4 v4.0.0/go.mod h1:IbckMUScFkM3pff0VJDNKRiT6TG/YpiHIM2yvyW5YoQ= github.com/bradfitz/go-smtpd v0.0.0-20170404230938-deb6d6237625/go.mod h1:HYsPBTaaSFSlLx/70C2HPIMNZpVV8+vt/A+FMnYP11g= diff --git a/pkg/protoio/full.go b/pkg/protoio/full.go index d3d038a1..05c26194 100644 --- a/pkg/protoio/full.go +++ b/pkg/protoio/full.go @@ -48,7 +48,7 @@ func (this *fullWriter) WriteMsg(msg proto.Message) (err error) { if m, ok := msg.(marshaler); ok { n, ok := getSize(m) if !ok { - data, err = proto.Marshal(msg) + _, err = proto.Marshal(msg) if err != nil { return err } diff --git a/pkg/protoio/varint.go b/pkg/protoio/varint.go index 1e2a3b81..63e85122 100644 --- a/pkg/protoio/varint.go +++ b/pkg/protoio/varint.go @@ -31,17 +31,11 @@ package protoio import ( "bufio" "encoding/binary" - "errors" "io" "google.golang.org/protobuf/proto" ) -var ( - errSmallBuffer = errors.New("Buffer Too Small") - errLargeValue = errors.New("Value is Larger than 64 bits") -) - func NewDelimitedWriter(w io.Writer) WriteCloser { return &varintWriter{w, make([]byte, binary.MaxVarintLen64), nil} } From c0ab50907fa76081f254265fdddd1db1cdb76784 Mon Sep 17 00:00:00 2001 From: D4ryl00 Date: Wed, 7 Aug 2024 12:36:29 +0200 Subject: [PATCH 14/20] fix: golangci-lint errors Signed-off-by: D4ryl00 --- .github/workflows/go.yml | 10 ++-- .golangci.yml | 6 +-- .tool-versions | 11 +---- api_client.go | 2 +- api_contactrequest.go | 6 +-- api_debug.go | 6 +-- api_event.go | 24 +++++----- api_multimember.go | 4 +- api_replication.go | 2 +- contact_request_manager.go | 10 ++-- events_sig_checkers.go | 4 +- group_context.go | 6 +-- internal/queue/metrics.go | 5 +- orbitdb_datastore_cache.go | 2 + orbitdb_many_adds_berty_test.go | 2 +- orbitdb_signed_entry_accesscontroller.go | 7 ++- orbitdb_signed_entry_identity_provider.go | 5 +- orbitdb_signed_entry_keystore.go | 4 +- orbitdb_utils_test.go | 8 ++-- .../verifiable_public_key_fetcher.go | 2 + pkg/errcode/error.go | 2 +- pkg/grpcutil/buf_listener.go | 4 +- pkg/grpcutil/simple_auth.go | 3 +- pkg/ipfsutil/collector_host.go | 8 ++-- pkg/ipfsutil/conn_logger.go | 12 ++--- pkg/ipfsutil/conn_manager.go | 6 +-- pkg/ipfsutil/localrecord.go | 6 +-- pkg/ipfsutil/pubsub_api.go | 8 ++-- pkg/logutil/logger_native.go | 4 +- pkg/protoio/full.go | 26 +++++----- pkg/protoio/io.go | 4 +- pkg/protoio/uint32.go | 48 +++++++++---------- pkg/protoio/varint.go | 42 ++++++++-------- pkg/proximitytransport/conn.go | 6 +-- pkg/rendezvous/emitterio_sync_client.go | 4 +- pkg/rendezvous/emitterio_sync_provider.go | 1 + pkg/rendezvous/rotation.go | 8 ++-- pkg/tinder/driver_localdiscovery.go | 6 +-- pkg/tinder/driver_mock.go | 8 ++-- pkg/tinder/driver_rdvp.go | 2 +- pkg/tinder/notify_network.go | 2 +- pkg/tinder/peer_cache.go | 4 +- pkg/tinder/service_adaptater.go | 4 +- pkg/tyber/format.go | 2 +- store_message.go | 6 +-- store_message_test.go | 6 +-- store_metadata.go | 6 +-- store_metadata_index.go | 4 +- tinder_swiper.go | 2 +- 49 files changed, 189 insertions(+), 181 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 316ca6bd..ada305cf 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -25,7 +25,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup asdf uses: asdf-vm/actions/setup@v1 @@ -77,7 +77,7 @@ jobs: uses: actions/cache@v2.1.6 with: path: ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ env.go_version }}-${{ env.json_cache-versions_go }}-${{ hashFiles('**/go.sum') }} + key: ${{ runner.os }}-go-${{ env.go_version }}-${{ env.json_cache-versions_go }}-${{ hashFiles('**/go.sum') }} restore-keys: ${{ runner.os }}-go-${{ env.go_version }}-${{ env.json_cache-versions_go }}- - name: Avoid triggering make generate @@ -127,7 +127,7 @@ jobs: uses: actions/cache@v2.1.6 with: path: ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ env.go_version }}-${{ env.json_cache-versions_go }}-${{ hashFiles('**/go.sum') }} + key: ${{ runner.os }}-go-${{ env.go_version }}-${{ env.json_cache-versions_go }}-${{ hashFiles('**/go.sum') }} restore-keys: ${{ runner.os }}-go-${{ env.go_version }}-${{ env.json_cache-versions_go }}- - name: Check go.mod and go.sum @@ -191,7 +191,7 @@ jobs: uses: actions/cache@v2.1.6 with: path: ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ env.go_version }}-${{ env.json_cache-versions_go }}-${{ hashFiles('**/go.sum') }} + key: ${{ runner.os }}-go-${{ env.go_version }}-${{ env.json_cache-versions_go }}-${{ hashFiles('**/go.sum') }} restore-keys: ${{ runner.os }}-go-${{ env.go_version }}-${{ env.json_cache-versions_go }}- - name: Check go.mod and go.sum @@ -235,7 +235,7 @@ jobs: uses: actions/cache@v2.1.6 with: path: ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ env.go_version }}-${{ env.json_cache-versions_go }}-${{ hashFiles('**/go.sum') }} + key: ${{ runner.os }}-go-${{ env.go_version }}-${{ env.json_cache-versions_go }}-${{ hashFiles('**/go.sum') }} restore-keys: ${{ runner.os }}-go-${{ env.go_version }}-${{ env.json_cache-versions_go }}- - name: Check go.mod and go.sum diff --git a/.golangci.yml b/.golangci.yml index 6c969d53..63136f48 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,7 +1,8 @@ run: deadline: 1m tests: false - skip-files: +issues: + exclude-files: - ".*\\.pb\\.go$" - ".*\\.pb\\.gw\\.go$" - ".*\\.gen\\.go$" @@ -29,7 +30,7 @@ linters: enable: - asciicheck - bodyclose - - depguard + #- depguard - dogsled - errcheck #- exhaustive # nice to have @@ -62,4 +63,3 @@ linters: - unparam - unused - whitespace - - unused diff --git a/.tool-versions b/.tool-versions index 9887ac49..747645fb 100644 --- a/.tool-versions +++ b/.tool-versions @@ -10,15 +10,8 @@ golang 1.22.5 #----- # This is simply the most recent golangci-lint version available to date. -# -# @TODO(gfanton): check if we still have this issue -# The current version of golangci-lint also has a problem displaying logs on -# Github actions, see: https://github.com/golangci/golangci-lint-action/issues/119 -# -# It would be good to update it (when possible) to a version that fixes this log -# issue and to update the golangci-lint Github Actions step accordingly. -#----- -golangci-lint 1.51.2 +#----- +golangci-lint 1.59.1 #----- # This is simply the most recent jq version available to date. diff --git a/api_client.go b/api_client.go index f4dd33c6..f629f342 100644 --- a/api_client.go +++ b/api_client.go @@ -56,7 +56,7 @@ func (s *service) ServiceExportData(_ *protocoltypes.ServiceExportData_Request, return nil } -func (s *service) ServiceGetConfiguration(ctx context.Context, req *protocoltypes.ServiceGetConfiguration_Request) (*protocoltypes.ServiceGetConfiguration_Reply, error) { +func (s *service) ServiceGetConfiguration(ctx context.Context, _ *protocoltypes.ServiceGetConfiguration_Request) (*protocoltypes.ServiceGetConfiguration_Reply, error) { key, err := s.ipfsCoreAPI.Key().Self(ctx) if err != nil { return nil, errcode.ErrCode_TODO.Wrap(err) diff --git a/api_contactrequest.go b/api_contactrequest.go index c5e07844..95d38d91 100644 --- a/api_contactrequest.go +++ b/api_contactrequest.go @@ -12,7 +12,7 @@ import ( ) // ContactRequestReference retrieves the necessary information to create a contact link -func (s *service) ContactRequestReference(ctx context.Context, _ *protocoltypes.ContactRequestReference_Request) (*protocoltypes.ContactRequestReference_Reply, error) { +func (s *service) ContactRequestReference(context.Context, *protocoltypes.ContactRequestReference_Request) (*protocoltypes.ContactRequestReference_Reply, error) { accountGroup := s.getAccountGroup() if accountGroup == nil { return nil, errcode.ErrCode_ErrGroupMissing @@ -180,7 +180,7 @@ func (s *service) ContactRequestDiscard(ctx context.Context, req *protocoltypes. // ShareContact uses ContactRequestReference to get the contact information for the current account and // returns the Protobuf encoding which you can further encode and share. If needed, his will reset the // contact request reference and enable contact requests. -func (s *service) ShareContact(ctx context.Context, req *protocoltypes.ShareContact_Request) (_ *protocoltypes.ShareContact_Reply, err error) { +func (s *service) ShareContact(ctx context.Context, _ *protocoltypes.ShareContact_Request) (_ *protocoltypes.ShareContact_Reply, err error) { accountGroup := s.getAccountGroup() if accountGroup == nil { return nil, errcode.ErrCode_ErrGroupMissing @@ -232,7 +232,7 @@ func (s *service) ShareContact(ctx context.Context, req *protocoltypes.ShareCont } // DecodeContact decodes the Protobuf encoding of a shareable contact which was returned by ShareContact. -func (s *service) DecodeContact(ctx context.Context, req *protocoltypes.DecodeContact_Request) (_ *protocoltypes.DecodeContact_Reply, err error) { +func (s *service) DecodeContact(_ context.Context, req *protocoltypes.DecodeContact_Request) (_ *protocoltypes.DecodeContact_Reply, err error) { contact := &protocoltypes.ShareableContact{} if err := proto.Unmarshal(req.EncodedContact, contact); err != nil { panic(err) diff --git a/api_debug.go b/api_debug.go index afe25299..4d2aa642 100644 --- a/api_debug.go +++ b/api_debug.go @@ -19,7 +19,7 @@ import ( "berty.tech/weshnet/pkg/protocoltypes" ) -func (s *service) DebugListGroups(req *protocoltypes.DebugListGroups_Request, srv protocoltypes.ProtocolService_DebugListGroupsServer) error { +func (s *service) DebugListGroups(_ *protocoltypes.DebugListGroups_Request, srv protocoltypes.ProtocolService_DebugListGroupsServer) error { accountGroup := s.getAccountGroup() if accountGroup == nil { return errcode.ErrCode_ErrGroupMissing @@ -176,7 +176,7 @@ func (s *service) DebugGroup(ctx context.Context, request *protocoltypes.DebugGr return rep, nil } -func (s *service) SystemInfo(ctx context.Context, request *protocoltypes.SystemInfo_Request) (*protocoltypes.SystemInfo_Reply, error) { +func (s *service) SystemInfo(ctx context.Context, _ *protocoltypes.SystemInfo_Request) (*protocoltypes.SystemInfo_Reply, error) { reply := protocoltypes.SystemInfo_Reply{} // process @@ -232,7 +232,7 @@ func (s *service) SystemInfo(ctx context.Context, request *protocoltypes.SystemI return &reply, nil } -func (s *service) PeerList(ctx context.Context, request *protocoltypes.PeerList_Request) (*protocoltypes.PeerList_Reply, error) { +func (s *service) PeerList(ctx context.Context, _ *protocoltypes.PeerList_Request) (*protocoltypes.PeerList_Reply, error) { reply := protocoltypes.PeerList_Reply{} api := s.IpfsCoreAPI() if api == nil { diff --git a/api_event.go b/api_event.go index 9c6af9dc..cf61540b 100644 --- a/api_event.go +++ b/api_event.go @@ -53,7 +53,7 @@ func (s *service) GroupMetadataList(req *protocoltypes.GroupMetadataList_Request if req.UntilId == nil && !req.UntilNow { sub, err := cg.MetadataStore().EventBus().Subscribe([]interface{}{ // new(stores.EventReplicated), - new(protocoltypes.GroupMetadataEvent), + new(*protocoltypes.GroupMetadataEvent), }, eventbus.Name("weshnet/api/group-metadata-list"), eventbus.BufSize(32)) if err != nil { return fmt.Errorf("unable to subscribe to new events") @@ -63,7 +63,7 @@ func (s *service) GroupMetadataList(req *protocoltypes.GroupMetadataList_Request } // Subscribe to previous metadata events and stream them if requested - previousEvents := make(chan protocoltypes.GroupMetadataEvent) + previousEvents := make(chan *protocoltypes.GroupMetadataEvent) if !req.SinceNow { pevt, err := cg.MetadataStore().ListEvents(ctx, req.SinceId, req.UntilId, req.ReverseOrder) if err != nil { @@ -84,7 +84,7 @@ func (s *service) GroupMetadataList(req *protocoltypes.GroupMetadataList_Request if req.UntilNow { cancel() } else { - previousEvents <- protocoltypes.GroupMetadataEvent{EventContext: nil} + previousEvents <- &protocoltypes.GroupMetadataEvent{EventContext: nil} } cg.logger.Debug("GroupMetadataList: previous events stream ended") @@ -92,7 +92,7 @@ func (s *service) GroupMetadataList(req *protocoltypes.GroupMetadataList_Request return } - previousEvents <- *evt + previousEvents <- evt } }() } @@ -107,12 +107,12 @@ func (s *service) GroupMetadataList(req *protocoltypes.GroupMetadataList_Request case event = <-newEvents: } - msg := event.(protocoltypes.GroupMetadataEvent) + msg := event.(*protocoltypes.GroupMetadataEvent) if msg.EventContext == nil { continue } - if err := sub.Send(&msg); err != nil { + if err := sub.Send(msg); err != nil { return err } @@ -140,7 +140,7 @@ func (s *service) GroupMessageList(req *protocoltypes.GroupMessageList_Request, var newEvents <-chan interface{} if req.UntilId == nil && !req.UntilNow { messageStoreSub, err := cg.MessageStore().EventBus().Subscribe([]interface{}{ - new(protocoltypes.GroupMessageEvent), + new(*protocoltypes.GroupMessageEvent), }, eventbus.Name("weshnet/api/group-message-list")) if err != nil { return fmt.Errorf("unable to subscribe to new events") @@ -150,7 +150,7 @@ func (s *service) GroupMessageList(req *protocoltypes.GroupMessageList_Request, } // Subscribe to previous message events and stream them if requested - previousEvents := make(chan protocoltypes.GroupMessageEvent) + previousEvents := make(chan *protocoltypes.GroupMessageEvent) if !req.SinceNow { pevt, err := cg.MessageStore().ListEvents(ctx, req.SinceId, req.UntilId, req.ReverseOrder) if err != nil { @@ -171,7 +171,7 @@ func (s *service) GroupMessageList(req *protocoltypes.GroupMessageList_Request, if req.UntilNow { cancel() } else { - previousEvents <- protocoltypes.GroupMessageEvent{EventContext: nil} + previousEvents <- &protocoltypes.GroupMessageEvent{EventContext: nil} } cg.logger.Debug("GroupMessageList: previous events stream ended") @@ -179,7 +179,7 @@ func (s *service) GroupMessageList(req *protocoltypes.GroupMessageList_Request, return } - previousEvents <- *evt + previousEvents <- evt } }() } @@ -195,12 +195,12 @@ func (s *service) GroupMessageList(req *protocoltypes.GroupMessageList_Request, case event = <-newEvents: } - msg := event.(protocoltypes.GroupMessageEvent) + msg := event.(*protocoltypes.GroupMessageEvent) if msg.EventContext == nil { continue } - if err := sub.Send(&msg); err != nil { + if err := sub.Send(msg); err != nil { return err } diff --git a/api_multimember.go b/api_multimember.go index 0b8dd89b..03003b40 100644 --- a/api_multimember.go +++ b/api_multimember.go @@ -12,7 +12,7 @@ import ( ) // MultiMemberGroupCreate creates a new MultiMember group -func (s *service) MultiMemberGroupCreate(ctx context.Context, req *protocoltypes.MultiMemberGroupCreate_Request) (_ *protocoltypes.MultiMemberGroupCreate_Reply, err error) { +func (s *service) MultiMemberGroupCreate(ctx context.Context, _ *protocoltypes.MultiMemberGroupCreate_Request) (_ *protocoltypes.MultiMemberGroupCreate_Reply, err error) { ctx, _, endSection := tyber.Section(ctx, s.logger, "Creating MultiMember group") defer func() { endSection(err, "") }() @@ -120,7 +120,7 @@ func (s *service) MultiMemberGroupAdminRoleGrant(context.Context, *protocoltypes } // MultiMemberGroupInvitationCreate creates a group invitation -func (s *service) MultiMemberGroupInvitationCreate(ctx context.Context, req *protocoltypes.MultiMemberGroupInvitationCreate_Request) (*protocoltypes.MultiMemberGroupInvitationCreate_Reply, error) { +func (s *service) MultiMemberGroupInvitationCreate(_ context.Context, req *protocoltypes.MultiMemberGroupInvitationCreate_Request) (*protocoltypes.MultiMemberGroupInvitationCreate_Reply, error) { cg, err := s.GetContextGroupForID(req.GroupPk) if err != nil { return nil, errcode.ErrCode_ErrGroupMemberUnknownGroupID.Wrap(err) diff --git a/api_replication.go b/api_replication.go index 7b8e038e..441dda3b 100644 --- a/api_replication.go +++ b/api_replication.go @@ -87,7 +87,7 @@ func (s *service) ReplicationServiceRegisterGroup(ctx context.Context, request * gopts = append(gopts, grpc.WithTransportCredentials(tlsconfig)) } - cc, err := grpc.DialContext(context.Background(), request.ReplicationServer, gopts...) + cc, err := grpc.NewClient("passthrough://"+request.ReplicationServer, gopts...) if err != nil { return nil, errcode.ErrCode_ErrStreamWrite.Wrap(err) } diff --git a/contact_request_manager.go b/contact_request_manager.go index 0b34e190..3be1e1de 100644 --- a/contact_request_manager.go +++ b/contact_request_manager.go @@ -115,7 +115,7 @@ func (c *contactRequestsManager) metadataWatcher(ctx context.Context) { } // subscribe to new event - sub, err := c.metadataStore.EventBus().Subscribe(new(protocoltypes.GroupMetadataEvent), + sub, err := c.metadataStore.EventBus().Subscribe(new(*protocoltypes.GroupMetadataEvent), eventbus.Name("weshnet/rqmngr/metadata-watcher")) if err != nil { c.logger.Warn("unable to subscribe to group metadata event", zap.Error(err)) @@ -153,7 +153,7 @@ func (c *contactRequestsManager) metadataWatcher(ctx context.Context) { } // handle new events - e := evt.(protocoltypes.GroupMetadataEvent) + e := evt.(*protocoltypes.GroupMetadataEvent) typ := e.GetMetadata().GetEventType() hctx, _, endSection := tyber.Section(ctx, c.logger, fmt.Sprintf("handling event - %s", typ.String())) @@ -161,7 +161,7 @@ func (c *contactRequestsManager) metadataWatcher(ctx context.Context) { var err error if handler, ok := handlers[typ]; ok { - if err = handler(hctx, &e); err != nil { + if err = handler(hctx, e); err != nil { c.logger.Error("metadata store event handler", zap.String("event", typ.String()), zap.Error(err)) } } @@ -421,7 +421,7 @@ func (c *contactRequestsManager) SendContactRequest(ctx context.Context, to *pro _, own := c.metadataStore.GetIncomingContactRequestsStatus() if own == nil { err = fmt.Errorf("unable to retrieve own contact information") - return + return err } // get own metadata for contact @@ -438,7 +438,7 @@ func (c *contactRequestsManager) SendContactRequest(ctx context.Context, to *pro } // create a new stream with the remote peer - stream, err := c.ipfs.NewStream(network.WithUseTransient(ctx, "req_mngr"), peer.ID, contactRequestV1) + stream, err := c.ipfs.NewStream(network.WithAllowLimitedConn(ctx, "req_mngr"), peer.ID, contactRequestV1) if err != nil { return fmt.Errorf("unable to open stream: %w", err) } diff --git a/events_sig_checkers.go b/events_sig_checkers.go index f2a13dfa..eca58ce3 100644 --- a/events_sig_checkers.go +++ b/events_sig_checkers.go @@ -10,7 +10,7 @@ import ( type sigChecker func(g *protocoltypes.Group, metadata *protocoltypes.GroupMetadata, message proto.Message) error -func sigCheckerGroupSigned(g *protocoltypes.Group, metadata *protocoltypes.GroupMetadata, message proto.Message) error { +func sigCheckerGroupSigned(g *protocoltypes.Group, metadata *protocoltypes.GroupMetadata, _ proto.Message) error { pk, err := g.GetPubKey() if err != nil { return err @@ -33,7 +33,7 @@ type eventDeviceSigned interface { GetDevicePk() []byte } -func sigCheckerDeviceSigned(g *protocoltypes.Group, metadata *protocoltypes.GroupMetadata, message proto.Message) error { +func sigCheckerDeviceSigned(_ *protocoltypes.Group, metadata *protocoltypes.GroupMetadata, message proto.Message) error { msg, ok := message.(eventDeviceSigned) if !ok { return errcode.ErrCode_ErrDeserialization diff --git a/group_context.go b/group_context.go index f151b2c9..a6535fa9 100644 --- a/group_context.go +++ b/group_context.go @@ -113,7 +113,7 @@ func (gc *GroupContext) ActivateGroupContext(contactPK crypto.PubKey) (err error // chainkey of new members. { m := gc.MetadataStore() - sub, err := m.EventBus().Subscribe(new(protocoltypes.GroupMetadataEvent)) + sub, err := m.EventBus().Subscribe(new(*protocoltypes.GroupMetadataEvent)) if err != nil { return fmt.Errorf("unable to subscribe to group metadata event: %w", err) } @@ -132,9 +132,9 @@ func (gc *GroupContext) ActivateGroupContext(contactPK crypto.PubKey) (err error } // @TODO(gfanton): should we handle this in a sub gorouting ? - e := evt.(protocoltypes.GroupMetadataEvent) + e := evt.(*protocoltypes.GroupMetadataEvent) // start := time.Now() - if err := gc.handleGroupMetadataEvent(&e); err != nil { + if err := gc.handleGroupMetadataEvent(e); err != nil { gc.logger.Error("unable to handle EventTypeGroupDeviceSecretAdded", zap.Error(err)) } diff --git a/internal/queue/metrics.go b/internal/queue/metrics.go index 9bbd6fee..6bb5d11a 100644 --- a/internal/queue/metrics.go +++ b/internal/queue/metrics.go @@ -9,5 +9,8 @@ var _ MetricsTracer[any] = (*noopTracer[any])(nil) type noopTracer[T any] struct{} +// nolint:revive func (*noopTracer[T]) ItemQueued(name string, item T) {} -func (*noopTracer[T]) ItemPop(name string, item T) {} + +// nolint:revive +func (*noopTracer[T]) ItemPop(name string, item T) {} diff --git a/orbitdb_datastore_cache.go b/orbitdb_datastore_cache.go index a5fd79ed..175a8c56 100644 --- a/orbitdb_datastore_cache.go +++ b/orbitdb_datastore_cache.go @@ -15,6 +15,7 @@ type datastoreCache struct { ds datastore.Batching } +//nolint:revive func (d *datastoreCache) Load(directory string, dbAddress address.Address) (datastore.Datastore, error) { return datastoreutil.NewNamespacedDatastore(d.ds, datastore.NewKey(dbAddress.String())), nil } @@ -23,6 +24,7 @@ func (d *datastoreCache) Close() error { return nil } +//nolint:revive func (d *datastoreCache) Destroy(directory string, dbAddress address.Address) error { keys, err := datastoreutil.NewNamespacedDatastore(d.ds, datastore.NewKey(dbAddress.String())).Query(context.TODO(), query.Query{KeysOnly: true}) if err != nil { diff --git a/orbitdb_many_adds_berty_test.go b/orbitdb_many_adds_berty_test.go index 236ea317..768e67d0 100644 --- a/orbitdb_many_adds_berty_test.go +++ b/orbitdb_many_adds_berty_test.go @@ -76,7 +76,7 @@ func testAddBerty(ctx context.Context, t *testing.T, node ipfsutil.CoreAPIMock, amountCurrentlyFound++ } - sub, err := gc.MessageStore().EventBus().Subscribe(new(protocoltypes.GroupMessageEvent)) + sub, err := gc.MessageStore().EventBus().Subscribe(new(*protocoltypes.GroupMessageEvent)) require.NoError(t, err) defer sub.Close() diff --git a/orbitdb_signed_entry_accesscontroller.go b/orbitdb_signed_entry_accesscontroller.go index 08a3a70b..ea9eb52e 100644 --- a/orbitdb_signed_entry_accesscontroller.go +++ b/orbitdb_signed_entry_accesscontroller.go @@ -37,14 +37,17 @@ func (o *simpleAccessController) Logger() *zap.Logger { return o.logger } +//nolint:revive func (o *simpleAccessController) Grant(ctx context.Context, capability string, keyID string) error { return nil } +//nolint:revive func (o *simpleAccessController) Revoke(ctx context.Context, capability string, keyID string) error { return nil } +//nolint:revive func (o *simpleAccessController) Load(ctx context.Context, address string) error { return nil } @@ -68,7 +71,7 @@ func simpleAccessControllerCID(allowedKeys map[string][]string) (cid.Cid, error) return c, nil } -func (o *simpleAccessController) Save(ctx context.Context) (accesscontroller.ManifestParams, error) { +func (o *simpleAccessController) Save(context.Context) (accesscontroller.ManifestParams, error) { c, err := simpleAccessControllerCID(o.allowedKeys) if err != nil { return nil, errcode.ErrCode_ErrInvalidInput.Wrap(err) @@ -89,7 +92,7 @@ func (o *simpleAccessController) GetAuthorizedByRole(role string) ([]string, err return o.allowedKeys[role], nil } -func (o *simpleAccessController) CanAppend(e logac.LogEntry, p identityprovider.Interface, additionalContext accesscontroller.CanAppendAdditionalContext) error { +func (o *simpleAccessController) CanAppend(e logac.LogEntry, _ identityprovider.Interface, _ accesscontroller.CanAppendAdditionalContext) error { for _, id := range o.allowedKeys["write"] { if e.GetIdentity().ID == id || id == "*" { return nil diff --git a/orbitdb_signed_entry_identity_provider.go b/orbitdb_signed_entry_identity_provider.go index ad0cd10c..8f276552 100644 --- a/orbitdb_signed_entry_identity_provider.go +++ b/orbitdb_signed_entry_identity_provider.go @@ -23,10 +23,11 @@ func (b *bertySignedIdentityProvider) UnmarshalPublicKey(data []byte) (crypto.Pu return crypto.UnmarshalPublicKey(data) } -func (b *bertySignedIdentityProvider) GetID(ctx context.Context, opts *identityprovider.CreateIdentityOptions) (string, error) { +func (b *bertySignedIdentityProvider) GetID(_ context.Context, opts *identityprovider.CreateIdentityOptions) (string, error) { return opts.ID, nil } +//nolint:revive func (b *bertySignedIdentityProvider) SignIdentity(ctx context.Context, data []byte, id string) ([]byte, error) { return nil, nil } @@ -35,7 +36,7 @@ func (b *bertySignedIdentityProvider) GetType() string { return identityType } -func (b *bertySignedIdentityProvider) VerifyIdentity(identity *identityprovider.Identity) error { +func (b *bertySignedIdentityProvider) VerifyIdentity(*identityprovider.Identity) error { return nil } diff --git a/orbitdb_signed_entry_keystore.go b/orbitdb_signed_entry_keystore.go index b6855a6c..0fc2eebf 100644 --- a/orbitdb_signed_entry_keystore.go +++ b/orbitdb_signed_entry_keystore.go @@ -28,7 +28,7 @@ func (s *BertySignedKeyStore) SetKey(pk crypto.PrivKey) error { return nil } -func (s *BertySignedKeyStore) HasKey(ctx context.Context, id string) (bool, error) { +func (s *BertySignedKeyStore) HasKey(_ context.Context, id string) (bool, error) { _, ok := s.Load(id) return ok, nil @@ -38,7 +38,7 @@ func (s *BertySignedKeyStore) CreateKey(ctx context.Context, id string) (crypto. return s.GetKey(ctx, id) } -func (s *BertySignedKeyStore) GetKey(ctx context.Context, id string) (crypto.PrivKey, error) { +func (s *BertySignedKeyStore) GetKey(_ context.Context, id string) (crypto.PrivKey, error) { if privKey, ok := s.Load(id); ok { if pk, ok := privKey.(crypto.PrivKey); ok { return pk, nil diff --git a/orbitdb_utils_test.go b/orbitdb_utils_test.go index 1c58e8ab..25577c9b 100644 --- a/orbitdb_utils_test.go +++ b/orbitdb_utils_test.go @@ -21,7 +21,7 @@ func inviteAllPeersToGroup(ctx context.Context, t *testing.T, peers []*mockedPee errChan := make(chan error, len(peers)) for i, p := range peers { - sub, err := p.GC.MetadataStore().EventBus().Subscribe(new(protocoltypes.GroupMetadataEvent)) + sub, err := p.GC.MetadataStore().EventBus().Subscribe(new(*protocoltypes.GroupMetadataEvent)) require.NoError(t, err) go func(p *mockedPeer, peerIndex int) { defer sub.Close() @@ -30,7 +30,7 @@ func inviteAllPeersToGroup(ctx context.Context, t *testing.T, peers []*mockedPee eventReceived := 0 for e := range sub.Out() { - evt := e.(protocoltypes.GroupMetadataEvent) + evt := e.(*protocoltypes.GroupMetadataEvent) if evt.Metadata.EventType != protocoltypes.EventType_EventTypeGroupMemberDeviceAdded { continue } @@ -76,7 +76,7 @@ func waitForBertyEventType(ctx context.Context, t *testing.T, ms *MetadataStore, handledEvents := map[string]struct{}{} - sub, err := ms.EventBus().Subscribe(new(protocoltypes.GroupMetadataEvent)) + sub, err := ms.EventBus().Subscribe(new(*protocoltypes.GroupMetadataEvent)) require.NoError(t, err) defer sub.Close() @@ -90,7 +90,7 @@ func waitForBertyEventType(ctx context.Context, t *testing.T, ms *MetadataStore, } switch evt := e.(type) { - case protocoltypes.GroupMetadataEvent: + case *protocoltypes.GroupMetadataEvent: if evt.Metadata.EventType != eventType { continue } diff --git a/pkg/bertyvcissuer/verifiable_public_key_fetcher.go b/pkg/bertyvcissuer/verifiable_public_key_fetcher.go index ad4d5d11..6c996a60 100644 --- a/pkg/bertyvcissuer/verifiable_public_key_fetcher.go +++ b/pkg/bertyvcissuer/verifiable_public_key_fetcher.go @@ -47,10 +47,12 @@ func embeddedPublicKeyFetcher(issuerID string, allowList []string) (*verifier.Pu }, nil } +// nolint:revive func EmbeddedPublicKeyFetcher(issuerID, keyID string) (*verifier.PublicKey, error) { return embeddedPublicKeyFetcher(issuerID, nil) } +// nolint:revive func EmbeddedPublicKeyFetcherAllowList(allowList []string) func(issuerID, keyID string) (*verifier.PublicKey, error) { return func(issuerID, keyID string) (*verifier.PublicKey, error) { return embeddedPublicKeyFetcher(issuerID, allowList) diff --git a/pkg/errcode/error.go b/pkg/errcode/error.go index 963636d4..d8f5818f 100644 --- a/pkg/errcode/error.go +++ b/pkg/errcode/error.go @@ -271,7 +271,7 @@ func codesFromGRPCStatus(st *status.Status) []ErrCode { return nil } -func grpcCodeFromWithCode(err WithCode) codes.Code { +func grpcCodeFromWithCode(WithCode) codes.Code { // here, we can do a big switch case if we plan to make accurate gRPC codes // but we probably don't care return codes.Unavailable diff --git a/pkg/grpcutil/buf_listener.go b/pkg/grpcutil/buf_listener.go index 44ffbff8..597feda9 100644 --- a/pkg/grpcutil/buf_listener.go +++ b/pkg/grpcutil/buf_listener.go @@ -23,11 +23,11 @@ func (bl *BufListener) dialer(context.Context, string) (net.Conn, error) { return bl.Dial() } -func (bl *BufListener) NewClientConn(ctx context.Context, opts ...grpc.DialOption) (*grpc.ClientConn, error) { +func (bl *BufListener) NewClientConn(_ context.Context, opts ...grpc.DialOption) (*grpc.ClientConn, error) { mendatoryOpts := []grpc.DialOption{ grpc.WithTransportCredentials(insecure.NewCredentials()), grpc.WithContextDialer(bl.dialer), // set pipe dialer } - return grpc.DialContext(ctx, "buf", append(opts, mendatoryOpts...)...) + return grpc.NewClient("passthrough://buf", append(opts, mendatoryOpts...)...) } diff --git a/pkg/grpcutil/simple_auth.go b/pkg/grpcutil/simple_auth.go index 650cd9d4..9e9e26f0 100644 --- a/pkg/grpcutil/simple_auth.go +++ b/pkg/grpcutil/simple_auth.go @@ -21,7 +21,8 @@ func NewUnsecureSimpleAuthAccess(scheme, token string) credentials.PerRPCCredent return &unsecureSimpleAuthAccess{token: token, scheme: scheme} } -func (sa *unsecureSimpleAuthAccess) GetRequestMetadata(ctx context.Context, uri ...string) (map[string]string, error) { +// nolint:revive +func (sa *unsecureSimpleAuthAccess) GetRequestMetadata(_ context.Context, uri ...string) (map[string]string, error) { return map[string]string{ headerAuthorize: "bearer " + sa.token, }, nil diff --git a/pkg/ipfsutil/collector_host.go b/pkg/ipfsutil/collector_host.go index 0de58577..7b71061b 100644 --- a/pkg/ipfsutil/collector_host.go +++ b/pkg/ipfsutil/collector_host.go @@ -79,16 +79,16 @@ func (cc *HostCollector) Describe(ch chan<- *prometheus.Desc) { func (cc *HostCollector) Listen(network.Network, ma.Multiaddr) {} func (cc *HostCollector) ListenClose(network.Network, ma.Multiaddr) {} -func (cc *HostCollector) Connected(n network.Network, c network.Conn) { +func (cc *HostCollector) Connected(network.Network, network.Conn) { cc.connsCollector.Inc() } -func (cc *HostCollector) Disconnected(n network.Network, c network.Conn) { +func (cc *HostCollector) Disconnected(network.Network, network.Conn) { cc.connsCollector.Dec() } -func (cc *HostCollector) OpenedStream(n network.Network, s network.Stream) {} -func (cc *HostCollector) ClosedStream(n network.Network, s network.Stream) { +func (cc *HostCollector) OpenedStream(network.Network, network.Stream) {} +func (cc *HostCollector) ClosedStream(network.Network, network.Stream) { // elpased := time.Since(s.Stat().Opened) // cc.streamsCollector.WithLabelValues(string(s.Protocol())).Observe(elpased.Seconds()) } diff --git a/pkg/ipfsutil/conn_logger.go b/pkg/ipfsutil/conn_logger.go index 01a77633..c0a7e566 100644 --- a/pkg/ipfsutil/conn_logger.go +++ b/pkg/ipfsutil/conn_logger.go @@ -55,15 +55,15 @@ func (cl *connLogger) getPeerTags(p peer.ID) []string { return nil } -func (cl *connLogger) Listen(n network.Network, m ma.Multiaddr) { +func (cl *connLogger) Listen(_ network.Network, m ma.Multiaddr) { cl.logger.Debug("Listener opened", logutil.PrivateString("Multiaddr", m.String())) } -func (cl *connLogger) ListenClose(n network.Network, m ma.Multiaddr) { +func (cl *connLogger) ListenClose(_ network.Network, m ma.Multiaddr) { cl.logger.Debug("Listener closed", logutil.PrivateString("Multiaddr", m.String())) } -func (cl *connLogger) Connected(net network.Network, c network.Conn) { +func (cl *connLogger) Connected(_ network.Network, c network.Conn) { // Wait 10 ms until the peer has been tagged by orbit-db go func() { <-time.After(10 * time.Millisecond) @@ -78,7 +78,7 @@ func (cl *connLogger) Connected(net network.Network, c network.Conn) { }() } -func (cl *connLogger) Disconnected(n network.Network, c network.Conn) { +func (cl *connLogger) Disconnected(_ network.Network, c network.Conn) { if tags := cl.getPeerTags(c.RemotePeer()); tags != nil { cl.logger.Info("Disconnected", logutil.PrivateString("peer", c.RemotePeer().String()), @@ -89,7 +89,7 @@ func (cl *connLogger) Disconnected(n network.Network, c network.Conn) { } } -func (cl *connLogger) OpenedStream(n network.Network, s network.Stream) { +func (cl *connLogger) OpenedStream(_ network.Network, s network.Stream) { if tags := cl.getPeerTags(s.Conn().RemotePeer()); tags != nil { cl.logger.Debug("Stream opened", logutil.PrivateString("peer", s.Conn().RemotePeer().String()), @@ -101,7 +101,7 @@ func (cl *connLogger) OpenedStream(n network.Network, s network.Stream) { } } -func (cl *connLogger) ClosedStream(n network.Network, s network.Stream) { +func (cl *connLogger) ClosedStream(_ network.Network, s network.Stream) { if tags := cl.getPeerTags(s.Conn().RemotePeer()); tags != nil { cl.logger.Debug("Stream closed", logutil.PrivateString("peer", s.Conn().RemotePeer().String()), diff --git a/pkg/ipfsutil/conn_manager.go b/pkg/ipfsutil/conn_manager.go index e5e2c88b..cdb1bd8d 100644 --- a/pkg/ipfsutil/conn_manager.go +++ b/pkg/ipfsutil/conn_manager.go @@ -130,13 +130,13 @@ func (c *BertyConnManager) UpsertTag(p peer.ID, tag string, upsert func(int) int } } -func (c *BertyConnManager) computePeerScore(p peer.ID) (old, new int) { +func (c *BertyConnManager) computePeerScore(p peer.ID) (old, newScore int) { c.muMarked.Lock() old = c.marked[p] if info := c.ConnManager.GetTagInfo(p); info != nil { - if new = info.Value; new > 0 { - c.marked[p] = new + if newScore = info.Value; newScore > 0 { + c.marked[p] = newScore } else { delete(c.marked, p) } diff --git a/pkg/ipfsutil/localrecord.go b/pkg/ipfsutil/localrecord.go index 1d520993..7955676d 100644 --- a/pkg/ipfsutil/localrecord.go +++ b/pkg/ipfsutil/localrecord.go @@ -23,7 +23,7 @@ type LocalRecord struct { } // OptionLocalRecord is given to CoreAPIOption.Options when the ipfs node setup -func OptionLocalRecord(node *ipfs_core.IpfsNode, api coreiface.CoreAPI) error { +func OptionLocalRecord(node *ipfs_core.IpfsNode, _ coreiface.CoreAPI) error { lr := &LocalRecord{ host: node.PeerHost, } @@ -40,7 +40,7 @@ func (lr *LocalRecord) Listen(network.Network, ma.Multiaddr) {} func (lr *LocalRecord) ListenClose(network.Network, ma.Multiaddr) {} // called when a connection opened -func (lr *LocalRecord) Connected(net network.Network, c network.Conn) { +func (lr *LocalRecord) Connected(_ network.Network, c network.Conn) { ctx := context.Background() // FIXME: since go-libp2p-core@0.8.0 adds support for passed context on new call, we should think if we have a better context to pass here go func() { if manet.IsPrivateAddr(c.RemoteMultiaddr()) || mafmt.Base(mc.ProtocolCode).Matches(c.RemoteMultiaddr()) { @@ -68,6 +68,6 @@ func (lr *LocalRecord) sendLocalRecord(ctx context.Context, c network.Conn) erro return s.SetProtocol(recProtocolID) } -func (lr *LocalRecord) handleLocalRecords(s network.Stream) { +func (lr *LocalRecord) handleLocalRecords(network.Stream) { os.Stderr.WriteString("handleLocalRecords") } diff --git a/pkg/ipfsutil/pubsub_api.go b/pkg/ipfsutil/pubsub_api.go index 422bba86..e19c4542 100644 --- a/pkg/ipfsutil/pubsub_api.go +++ b/pkg/ipfsutil/pubsub_api.go @@ -21,7 +21,7 @@ type PubSubAPI struct { topics map[string]*p2p_pubsub.Topic } -func NewPubSubAPI(ctx context.Context, logger *zap.Logger, ps *p2p_pubsub.PubSub) coreiface.PubSubAPI { +func NewPubSubAPI(_ context.Context, logger *zap.Logger, ps *p2p_pubsub.PubSub) coreiface.PubSubAPI { return &PubSubAPI{ PubSub: ps, @@ -65,12 +65,12 @@ func (ps *PubSubAPI) topicJoin(topic string, opts ...p2p_pubsub.TopicOpt) (*p2p_ // } // Ls lists subscribed topics by name -func (ps *PubSubAPI) Ls(ctx context.Context) ([]string, error) { +func (ps *PubSubAPI) Ls(context.Context) ([]string, error) { return ps.PubSub.GetTopics(), nil } // Peers list peers we are currently pubsubbing with -func (ps *PubSubAPI) Peers(ctx context.Context, opts ...coreiface_options.PubSubPeersOption) ([]p2p_peer.ID, error) { +func (ps *PubSubAPI) Peers(_ context.Context, opts ...coreiface_options.PubSubPeersOption) ([]p2p_peer.ID, error) { s, err := coreiface_options.PubSubPeersOptions(opts...) if err != nil { return nil, err @@ -92,7 +92,7 @@ func (ps *PubSubAPI) Publish(ctx context.Context, topic string, msg []byte) erro } // Subscribe to messages on a given topic -func (ps *PubSubAPI) Subscribe(ctx context.Context, topic string, opts ...coreiface_options.PubSubSubscribeOption) (coreiface.PubSubSubscription, error) { +func (ps *PubSubAPI) Subscribe(_ context.Context, topic string, _ ...coreiface_options.PubSubSubscribeOption) (coreiface.PubSubSubscription, error) { t, err := ps.topicJoin(topic) if err != nil { return nil, err diff --git a/pkg/logutil/logger_native.go b/pkg/logutil/logger_native.go index f4473762..2707e068 100644 --- a/pkg/logutil/logger_native.go +++ b/pkg/logutil/logger_native.go @@ -16,11 +16,11 @@ func NewNativeDriverCore(subsystem string, enc zapcore.Encoder) zapcore.Core { return &nativeCore{subsystem: subsystem, enc: enc} } -func (nc *nativeCore) Enabled(level zapcore.Level) bool { +func (nc *nativeCore) Enabled(zapcore.Level) bool { return true } -func (nc *nativeCore) With(fields []zapcore.Field) zapcore.Core { +func (nc *nativeCore) With([]zapcore.Field) zapcore.Core { return &nativeCore{enc: nc.enc} } diff --git a/pkg/protoio/full.go b/pkg/protoio/full.go index 05c26194..d7595d09 100644 --- a/pkg/protoio/full.go +++ b/pkg/protoio/full.go @@ -43,7 +43,7 @@ type fullWriter struct { buffer []byte } -func (this *fullWriter) WriteMsg(msg proto.Message) (err error) { +func (writer *fullWriter) WriteMsg(msg proto.Message) (err error) { var data []byte if m, ok := msg.(marshaler); ok { n, ok := getSize(m) @@ -53,26 +53,26 @@ func (this *fullWriter) WriteMsg(msg proto.Message) (err error) { return err } } - if n >= len(this.buffer) { - this.buffer = make([]byte, n) + if n >= len(writer.buffer) { + writer.buffer = make([]byte, n) } - _, err = m.MarshalTo(this.buffer) + _, err = m.MarshalTo(writer.buffer) if err != nil { return err } - data = this.buffer[:n] + data = writer.buffer[:n] } else { data, err = proto.Marshal(msg) if err != nil { return err } } - _, err = this.w.Write(data) + _, err = writer.w.Write(data) return err } -func (this *fullWriter) Close() error { - if closer, ok := this.w.(io.Closer); ok { +func (writer *fullWriter) Close() error { + if closer, ok := writer.w.(io.Closer); ok { return closer.Close() } return nil @@ -87,16 +87,16 @@ func NewFullReader(r io.Reader, maxSize int) ReadCloser { return &fullReader{r, make([]byte, maxSize)} } -func (this *fullReader) ReadMsg(msg proto.Message) error { - length, err := this.r.Read(this.buf) +func (reader *fullReader) ReadMsg(msg proto.Message) error { + length, err := reader.r.Read(reader.buf) if err != nil { return err } - return proto.Unmarshal(this.buf[:length], msg) + return proto.Unmarshal(reader.buf[:length], msg) } -func (this *fullReader) Close() error { - if closer, ok := this.r.(io.Closer); ok { +func (reader *fullReader) Close() error { + if closer, ok := reader.r.(io.Closer); ok { return closer.Close() } return nil diff --git a/pkg/protoio/io.go b/pkg/protoio/io.go index 4bf80422..c1a673bb 100644 --- a/pkg/protoio/io.go +++ b/pkg/protoio/io.go @@ -65,7 +65,7 @@ func getSize(v interface{}) (int, bool) { ProtoSize() (n int) }); ok { return sz.ProtoSize(), true - } else { - return 0, false } + + return 0, false } diff --git a/pkg/protoio/uint32.go b/pkg/protoio/uint32.go index 160dcdfc..b701e84a 100644 --- a/pkg/protoio/uint32.go +++ b/pkg/protoio/uint32.go @@ -52,48 +52,48 @@ type uint32Writer struct { lenBuf []byte } -func (this *uint32Writer) writeFallback(msg proto.Message) error { +func (writer *uint32Writer) writeFallback(msg proto.Message) error { data, err := proto.Marshal(msg) if err != nil { return err } length := uint32(len(data)) - this.byteOrder.PutUint32(this.lenBuf, length) - if _, err = this.w.Write(this.lenBuf); err != nil { + writer.byteOrder.PutUint32(writer.lenBuf, length) + if _, err = writer.w.Write(writer.lenBuf); err != nil { return err } - _, err = this.w.Write(data) + _, err = writer.w.Write(data) return err } -func (this *uint32Writer) WriteMsg(msg proto.Message) error { +func (writer *uint32Writer) WriteMsg(msg proto.Message) error { m, ok := msg.(marshaler) if !ok { - return this.writeFallback(msg) + return writer.writeFallback(msg) } n, ok := getSize(m) if !ok { - return this.writeFallback(msg) + return writer.writeFallback(msg) } size := n + uint32BinaryLen - if size > len(this.buffer) { - this.buffer = make([]byte, size) + if size > len(writer.buffer) { + writer.buffer = make([]byte, size) } - this.byteOrder.PutUint32(this.buffer, uint32(n)) - if _, err := m.MarshalTo(this.buffer[uint32BinaryLen:]); err != nil { + writer.byteOrder.PutUint32(writer.buffer, uint32(n)) + if _, err := m.MarshalTo(writer.buffer[uint32BinaryLen:]); err != nil { return err } - _, err := this.w.Write(this.buffer[:size]) + _, err := writer.w.Write(writer.buffer[:size]) return err } -func (this *uint32Writer) Close() error { - if closer, ok := this.w.(io.Closer); ok { +func (writer *uint32Writer) Close() error { + if closer, ok := writer.w.(io.Closer); ok { return closer.Close() } return nil @@ -111,27 +111,27 @@ func NewUint32DelimitedReader(r io.Reader, byteOrder binary.ByteOrder, maxSize i return &uint32Reader{r, byteOrder, make([]byte, 4), nil, maxSize} } -func (this *uint32Reader) ReadMsg(msg proto.Message) error { - if _, err := io.ReadFull(this.r, this.lenBuf); err != nil { +func (reader *uint32Reader) ReadMsg(msg proto.Message) error { + if _, err := io.ReadFull(reader.r, reader.lenBuf); err != nil { return err } - length32 := this.byteOrder.Uint32(this.lenBuf) + length32 := reader.byteOrder.Uint32(reader.lenBuf) length := int(length32) - if length < 0 || length > this.maxSize { + if length < 0 || length > reader.maxSize { return io.ErrShortBuffer } - if length > len(this.buf) { - this.buf = make([]byte, length) + if length > len(reader.buf) { + reader.buf = make([]byte, length) } - _, err := io.ReadFull(this.r, this.buf[:length]) + _, err := io.ReadFull(reader.r, reader.buf[:length]) if err != nil { return err } - return proto.Unmarshal(this.buf[:length], msg) + return proto.Unmarshal(reader.buf[:length], msg) } -func (this *uint32Reader) Close() error { - if closer, ok := this.r.(io.Closer); ok { +func (reader *uint32Reader) Close() error { + if closer, ok := reader.r.(io.Closer); ok { return closer.Close() } return nil diff --git a/pkg/protoio/varint.go b/pkg/protoio/varint.go index 63e85122..f30d8ef8 100644 --- a/pkg/protoio/varint.go +++ b/pkg/protoio/varint.go @@ -46,20 +46,20 @@ type varintWriter struct { buffer []byte } -func (this *varintWriter) WriteMsg(msg proto.Message) (err error) { +func (writer *varintWriter) WriteMsg(msg proto.Message) (err error) { var data []byte if m, ok := msg.(marshaler); ok { n, ok := getSize(m) if ok { - if n+binary.MaxVarintLen64 >= len(this.buffer) { - this.buffer = make([]byte, n+binary.MaxVarintLen64) + if n+binary.MaxVarintLen64 >= len(writer.buffer) { + writer.buffer = make([]byte, n+binary.MaxVarintLen64) } - lenOff := binary.PutUvarint(this.buffer, uint64(n)) - _, err = m.MarshalTo(this.buffer[lenOff:]) + lenOff := binary.PutUvarint(writer.buffer, uint64(n)) + _, err = m.MarshalTo(writer.buffer[lenOff:]) if err != nil { return err } - _, err = this.w.Write(this.buffer[:lenOff+n]) + _, err = writer.w.Write(writer.buffer[:lenOff+n]) return err } } @@ -70,17 +70,17 @@ func (this *varintWriter) WriteMsg(msg proto.Message) (err error) { return err } length := uint64(len(data)) - n := binary.PutUvarint(this.lenBuf, length) - _, err = this.w.Write(this.lenBuf[:n]) + n := binary.PutUvarint(writer.lenBuf, length) + _, err = writer.w.Write(writer.lenBuf[:n]) if err != nil { return err } - _, err = this.w.Write(data) + _, err = writer.w.Write(data) return err } -func (this *varintWriter) Close() error { - if closer, ok := this.w.(io.Closer); ok { +func (writer *varintWriter) Close() error { + if closer, ok := writer.w.(io.Closer); ok { return closer.Close() } return nil @@ -101,28 +101,28 @@ type varintReader struct { closer io.Closer } -func (this *varintReader) ReadMsg(msg proto.Message) error { - length64, err := binary.ReadUvarint(this.r) +func (reader *varintReader) ReadMsg(msg proto.Message) error { + length64, err := binary.ReadUvarint(reader.r) if err != nil { return err } length := int(length64) - if length < 0 || length > this.maxSize { + if length < 0 || length > reader.maxSize { return io.ErrShortBuffer } - if len(this.buf) < length { - this.buf = make([]byte, length) + if len(reader.buf) < length { + reader.buf = make([]byte, length) } - buf := this.buf[:length] - if _, err := io.ReadFull(this.r, buf); err != nil { + buf := reader.buf[:length] + if _, err := io.ReadFull(reader.r, buf); err != nil { return err } return proto.Unmarshal(buf, msg) } -func (this *varintReader) Close() error { - if this.closer != nil { - return this.closer.Close() +func (reader *varintReader) Close() error { + if reader.closer != nil { + return reader.closer.Close() } return nil } diff --git a/pkg/proximitytransport/conn.go b/pkg/proximitytransport/conn.go index b14b7cfd..60064ca9 100644 --- a/pkg/proximitytransport/conn.go +++ b/pkg/proximitytransport/conn.go @@ -191,10 +191,10 @@ func (c *Conn) RemoteMultiaddr() ma.Multiaddr { return c.remoteMa } // Noop deadline methods, handled by the native driver. // SetDeadline does nothing -func (c *Conn) SetDeadline(t time.Time) error { return nil } +func (c *Conn) SetDeadline(time.Time) error { return nil } // SetReadDeadline does nothing -func (c *Conn) SetReadDeadline(t time.Time) error { return nil } +func (c *Conn) SetReadDeadline(time.Time) error { return nil } // SetWriteDeadline does nothing -func (c *Conn) SetWriteDeadline(t time.Time) error { return nil } +func (c *Conn) SetWriteDeadline(time.Time) error { return nil } diff --git a/pkg/rendezvous/emitterio_sync_client.go b/pkg/rendezvous/emitterio_sync_client.go index 0bfd7e36..ad9113e2 100644 --- a/pkg/rendezvous/emitterio_sync_client.go +++ b/pkg/rendezvous/emitterio_sync_client.go @@ -64,7 +64,7 @@ func (e *emitterClient) Close() (err error) { func (e *emitterClient) subscribeToServerUpdates(inChan chan *registrationMessage, psDetails *EmitterPubSubSubscriptionDetails) (err error) { e.logger.Debug("subscribing", zap.String("chan", psDetails.ChannelName)) - return e.client.Subscribe(psDetails.ReadKey, psDetails.ChannelName, func(client *emitter.Client, message emitter.Message) { + return e.client.Subscribe(psDetails.ReadKey, psDetails.ChannelName, func(_ *emitter.Client, message emitter.Message) { reg := &pb.RegistrationRecord{} e.logger.Debug("receiving a message", zap.Any("topic", message.Topic())) @@ -117,7 +117,7 @@ func (e *emitterClientManager) getClient(psDetails *EmitterPubSubSubscriptionDet return } - noophandler := func(client *emitter.Client, message emitter.Message) {} + noophandler := func(*emitter.Client, emitter.Message) {} cl, err := emitter.Connect(psDetails.ServerAddr, noophandler, emitter.WithLogger(e.logger.Named("cl"))) if err != nil { return diff --git a/pkg/rendezvous/emitterio_sync_provider.go b/pkg/rendezvous/emitterio_sync_provider.go index 22b7a725..9a2d786c 100644 --- a/pkg/rendezvous/emitterio_sync_provider.go +++ b/pkg/rendezvous/emitterio_sync_provider.go @@ -70,6 +70,7 @@ func NewEmitterServer(serverAddr string, adminKey string, options *EmitterOption return ps, nil } +// nolint:revive func (p *EmitterPubSub) Register(pid peer.ID, ns string, addrs [][]byte, ttlAsSeconds int, counter uint64) { p.logger.Debug("register", zap.String("pid", pid.String()), zap.String("ns", ns)) diff --git a/pkg/rendezvous/rotation.go b/pkg/rendezvous/rotation.go index 230d64e7..fc97ea0b 100644 --- a/pkg/rendezvous/rotation.go +++ b/pkg/rendezvous/rotation.go @@ -103,12 +103,12 @@ func (r *RotationInterval) registerPoint(point *Point) { } func (r *RotationInterval) rotate(old *Point, graceperiod time.Duration) *Point { - new := old.NextPoint() + newPoint := old.NextPoint() // register new point - r.registerPoint(new) + r.registerPoint(newPoint) - cleanuptime := time.Until(new.Deadline().Add(graceperiod)) + cleanuptime := time.Until(newPoint.Deadline().Add(graceperiod)) if cleanuptime < 0 { cleanuptime = 0 } @@ -120,7 +120,7 @@ func (r *RotationInterval) rotate(old *Point, graceperiod time.Duration) *Point r.muCache.Unlock() }) - return new + return newPoint } type Point struct { diff --git a/pkg/tinder/driver_localdiscovery.go b/pkg/tinder/driver_localdiscovery.go index a8eb86b3..892020f4 100644 --- a/pkg/tinder/driver_localdiscovery.go +++ b/pkg/tinder/driver_localdiscovery.go @@ -74,7 +74,7 @@ func newLinkedCache() *linkedCache { } } -func NewLocalDiscovery(logger *zap.Logger, host host.Host, rng *rand.Rand) (*LocalDiscovery, error) { +func NewLocalDiscovery(logger *zap.Logger, host host.Host, _ *rand.Rand) (*LocalDiscovery, error) { ctx, cancel := context.WithCancel(context.Background()) ld := &LocalDiscovery{ rootctx: ctx, @@ -140,7 +140,7 @@ func (ld *LocalDiscovery) Advertise(ctx context.Context, cid string, opts ...dis return ttl, nil } -func (ld *LocalDiscovery) FindPeers(ctx context.Context, cid string, opts ...discovery.Option) (<-chan peer.AddrInfo, error) { +func (ld *LocalDiscovery) FindPeers(_ context.Context, cid string, opts ...discovery.Option) (<-chan peer.AddrInfo, error) { // Get options var options discovery.Options err := options.Apply(opts...) @@ -283,7 +283,7 @@ func (ld *LocalDiscovery) getLocalReccord() *Records { return &Records{Records: records} } -func (ld *LocalDiscovery) Unregister(ctx context.Context, cid string, _ ...discovery.Option) error { +func (ld *LocalDiscovery) Unregister(_ context.Context, cid string, _ ...discovery.Option) error { ld.muRecs.Lock() delete(ld.recs, cid) ld.muRecs.Unlock() diff --git a/pkg/tinder/driver_mock.go b/pkg/tinder/driver_mock.go index d797cce9..4f7b14c6 100644 --- a/pkg/tinder/driver_mock.go +++ b/pkg/tinder/driver_mock.go @@ -77,7 +77,7 @@ func (s *MockDriverServer) Unregister(ctx context.Context, topic string, p peer. s.mx.Unlock() } -func (s *MockDriverServer) Exist(topic string, p peer.ID) (ok bool) { +func (s *MockDriverServer) Exist(topic string, _ peer.ID) (ok bool) { peers := s.pc.GetPeersForTopics(topic) return len(peers) == 1 } @@ -153,7 +153,7 @@ func (s *MockIDriverClient) Name() string { return "mock" } -func (s *MockIDriverClient) FindPeers(ctx context.Context, topic string, opts ...discovery.Option) (<-chan peer.AddrInfo, error) { +func (s *MockIDriverClient) FindPeers(_ context.Context, topic string, opts ...discovery.Option) (<-chan peer.AddrInfo, error) { var options discovery.Options err := options.Apply(opts...) if err != nil { @@ -167,7 +167,7 @@ func (s *MockIDriverClient) FindPeers(ctx context.Context, topic string, opts .. return s.serv.FindPeers(topic, options.Limit), nil } -func (s *MockIDriverClient) Advertise(ctx context.Context, topic string, opts ...discovery.Option) (time.Duration, error) { +func (s *MockIDriverClient) Advertise(_ context.Context, topic string, opts ...discovery.Option) (time.Duration, error) { var options discovery.Options err := options.Apply(opts...) if err != nil { @@ -201,7 +201,7 @@ func (s *MockIDriverClient) Subscribe(ctx context.Context, topic string, opts .. return out, nil } -func (s *MockIDriverClient) Unregister(ctx context.Context, topic string, opts ...discovery.Option) error { +func (s *MockIDriverClient) Unregister(ctx context.Context, topic string, _ ...discovery.Option) error { s.serv.Unregister(ctx, topic, s.h.ID()) return nil } diff --git a/pkg/tinder/driver_rdvp.go b/pkg/tinder/driver_rdvp.go index 179d7d00..75f5baf8 100644 --- a/pkg/tinder/driver_rdvp.go +++ b/pkg/tinder/driver_rdvp.go @@ -183,7 +183,7 @@ func (c *rendezvousDiscovery) Subscribe(ctx context.Context, topic string, _ ... return ch, err } -func (c *rendezvousDiscovery) Unregister(ctx context.Context, topic string, opts ...discovery.Option) error { +func (c *rendezvousDiscovery) Unregister(ctx context.Context, topic string, _ ...discovery.Option) error { c.peerCacheMux.RLock() cache, ok := c.peerCache[topic] if ok { diff --git a/pkg/tinder/notify_network.go b/pkg/tinder/notify_network.go index 9de8e032..4aba7113 100644 --- a/pkg/tinder/notify_network.go +++ b/pkg/tinder/notify_network.go @@ -63,7 +63,7 @@ func (n *NetworkUpdate) WaitForUpdate(ctx context.Context, currentAddrs []ma.Mul } } -func (n *NetworkUpdate) GetLastUpdatedAddrs(ctx context.Context) (addrs []ma.Multiaddr) { +func (n *NetworkUpdate) GetLastUpdatedAddrs(context.Context) (addrs []ma.Multiaddr) { n.locker.Lock() addrs = n.currentAddrs n.locker.Unlock() diff --git a/pkg/tinder/peer_cache.go b/pkg/tinder/peer_cache.go index 6af635c3..10e883ee 100644 --- a/pkg/tinder/peer_cache.go +++ b/pkg/tinder/peer_cache.go @@ -62,7 +62,7 @@ func (c *peersCache) UpdatePeer(topic string, p peer.AddrInfo) (isNew bool) { c.peers[p.ID] = *combined } else if exist { // we already know this peer, and no change have been provided - return + return isNew } } else { c.peers[p.ID] = p @@ -126,7 +126,7 @@ func (c *peersCache) WaitForPeerUpdate(ctx context.Context, topic string, curren return } -func (c *peersCache) RemoveFromCache(ctx context.Context, topic string, p peer.ID) (ok bool) { +func (c *peersCache) RemoveFromCache(_ context.Context, topic string, p peer.ID) (ok bool) { c.muCache.Lock() var tu *topicUpdate if tu, ok = c.topics[topic]; ok { diff --git a/pkg/tinder/service_adaptater.go b/pkg/tinder/service_adaptater.go index 3d91dc66..63231507 100644 --- a/pkg/tinder/service_adaptater.go +++ b/pkg/tinder/service_adaptater.go @@ -55,7 +55,7 @@ func NewDiscoveryAdaptater(logger *zap.Logger, service *Service, defaultOpts ... } } -func (a *DiscoveryAdaptater) FindPeers(ctx context.Context, topic string, opts ...discovery.Option) (<-chan peer.AddrInfo, error) { +func (a *DiscoveryAdaptater) FindPeers(_ context.Context, topic string, _ ...discovery.Option) (<-chan peer.AddrInfo, error) { a.muDiscover.Lock() defer a.muDiscover.Unlock() @@ -104,7 +104,7 @@ func (a *DiscoveryAdaptater) FindPeers(ctx context.Context, topic string, opts . return sub.Out(), nil } -func (a *DiscoveryAdaptater) Advertise(_ context.Context, topic string, opts ...discovery.Option) (time.Duration, error) { +func (a *DiscoveryAdaptater) Advertise(_ context.Context, topic string, _ ...discovery.Option) (time.Duration, error) { ctx := a.ctx a.muAdvertiser.Lock() diff --git a/pkg/tyber/format.go b/pkg/tyber/format.go index cba42952..ac54d0cb 100644 --- a/pkg/tyber/format.go +++ b/pkg/tyber/format.go @@ -85,7 +85,7 @@ func FormatTraceLogFields(ctx context.Context) []zapcore.Field { } } -func FormatEventLogFields(ctx context.Context, details []Detail) []zapcore.Field { +func FormatEventLogFields(_ context.Context, details []Detail) []zapcore.Field { return []zapcore.Field{ zap.String("tyberLogType", string(EventType)), zap.Any("event", Event{ diff --git a/store_message.go b/store_message.go index d69f4f35..a79c6ddb 100644 --- a/store_message.go +++ b/store_message.go @@ -192,7 +192,7 @@ func (m *MessageStore) processMessageLoop(ctx context.Context, tracer *messageMe m.processDeviceMessagesInQueue(device) // emit new message event - if err := m.emitters.groupMessage.Emit(*evt); err != nil { + if err := m.emitters.groupMessage.Emit(evt); err != nil { m.logger.Warn("unable to emit group message event", zap.Error(err)) } } @@ -415,7 +415,7 @@ func constructorFactoryGroupMessage(s *WeshOrbitDB, logger *zap.Logger) iface.St logger.Debug("store message process loop ended", zap.Error(store.ctx.Err())) }() - if store.emitters.groupMessage, err = store.eventBus.Emitter(new(protocoltypes.GroupMessageEvent)); err != nil { + if store.emitters.groupMessage, err = store.eventBus.Emitter(new(*protocoltypes.GroupMessageEvent)); err != nil { store.cancel() return nil, errcode.ErrCode_ErrOrbitDBInit.Wrap(err) } @@ -498,7 +498,7 @@ func (m *MessageStore) GetMessageByCID(c cid.Cid) (operation.Operation, error) { return op, nil } -func (m *MessageStore) GetOutOfStoreMessageEnvelope(ctx context.Context, c cid.Cid) (*protocoltypes.OutOfStoreMessageEnvelope, error) { +func (m *MessageStore) GetOutOfStoreMessageEnvelope(_ context.Context, c cid.Cid) (*protocoltypes.OutOfStoreMessageEnvelope, error) { op, err := m.GetMessageByCID(c) if err != nil { return nil, errcode.ErrCode_ErrInvalidInput.Wrap(err) diff --git a/store_message_test.go b/store_message_test.go index 96424280..ddab0703 100644 --- a/store_message_test.go +++ b/store_message_test.go @@ -60,7 +60,7 @@ func Test_AddMessage_ListMessages_manually_supplying_secrets(t *testing.T) { require.Equal(t, 1, countEntries(out)) watcherCtx, watcherCancel := context.WithTimeout(ctx, time.Second*5) - chSub, err := peers[1].GC.MessageStore().EventBus().Subscribe(new(protocoltypes.GroupMessageEvent)) + chSub, err := peers[1].GC.MessageStore().EventBus().Subscribe(new(*protocoltypes.GroupMessageEvent)) require.NoError(t, err) defer chSub.Close() @@ -141,7 +141,7 @@ func Test_Add_Messages_To_Cache(t *testing.T) { require.NotNil(t, ds0For1) cevent, err := peers[0].GC.MessageStore().EventBus().Subscribe( - new(protocoltypes.GroupMessageEvent), eventbus.BufSize(entriesCount)) + new(*protocoltypes.GroupMessageEvent), eventbus.BufSize(entriesCount)) require.NoError(t, err) cadded, err := peers[1].GC.MessageStore().EventBus().Subscribe( @@ -191,7 +191,7 @@ func Test_Add_Messages_To_Cache(t *testing.T) { require.NoError(t, err) cevent, err = peers[1].GC.MessageStore().EventBus().Subscribe( - new(protocoltypes.GroupMessageEvent), eventbus.BufSize(entriesCount)) + new(*protocoltypes.GroupMessageEvent), eventbus.BufSize(entriesCount)) require.NoError(t, err) peers[1].GC.MessageStore().ProcessMessageQueueForDevicePK(ctx, dPK0Raw) diff --git a/store_metadata.go b/store_metadata.go index 2c50c3b4..5beb595f 100644 --- a/store_metadata.go +++ b/store_metadata.go @@ -107,7 +107,7 @@ func openMetadataEntry(log ipfslog.Log, e ipfslog.Entry, g *protocoltypes.Group) // } // FIXME: use iterator instead to reduce resource usage (require go-ipfs-log improvements) -func (m *MetadataStore) ListEvents(ctx context.Context, since, until []byte, reverse bool) (<-chan *protocoltypes.GroupMetadataEvent, error) { +func (m *MetadataStore) ListEvents(_ context.Context, since, until []byte, reverse bool) (<-chan *protocoltypes.GroupMetadataEvent, error) { entries, err := getEntriesInRange(m.OpLog().GetEntries().Reverse().Slice(), since, until) if err != nil { return nil, err @@ -1008,7 +1008,7 @@ func constructorFactoryGroupMetadata(s *WeshOrbitDB, logger *zap.Logger) iface.S store.logger.Warn("unable to emit recv event", zap.Error(err)) } - if err := store.emitters.groupMetadata.Emit(*metaEvent); err != nil { + if err := store.emitters.groupMetadata.Emit(metaEvent); err != nil { store.logger.Warn("unable to emit group metadata event", zap.Error(err)) } } @@ -1030,7 +1030,7 @@ func (m *MetadataStore) initEmitter() (err error) { return } - if m.emitters.groupMetadata, err = m.eventBus.Emitter(new(protocoltypes.GroupMetadataEvent)); err != nil { + if m.emitters.groupMetadata, err = m.eventBus.Emitter(new(*protocoltypes.GroupMetadataEvent)); err != nil { return } diff --git a/store_metadata_index.go b/store_metadata_index.go index 7dce2754..5b03d733 100644 --- a/store_metadata_index.go +++ b/store_metadata_index.go @@ -44,6 +44,7 @@ type metadataStoreIndex struct { logger *zap.Logger } +//nolint:revive func (m *metadataStoreIndex) Get(key string) interface{} { return nil } @@ -641,6 +642,7 @@ func (m *metadataStoreIndex) handleMultiMemberInitialMember(event proto.Message) return nil } +//nolint:revive func (m *metadataStoreIndex) handleMultiMemberGrantAdminRole(event proto.Message) error { // TODO: @@ -760,7 +762,7 @@ func (m *metadataStoreIndex) postHandlerSentAliases() error { return nil } -// nolint:staticcheck +// nolint:staticcheck,revive // newMetadataIndex returns a new index to manage the list of the group members func newMetadataIndex(ctx context.Context, g *protocoltypes.Group, md secretstore.MemberDevice, secretStore secretstore.SecretStore) iface.IndexConstructor { return func(publicKey []byte) iface.StoreIndex { diff --git a/tinder_swiper.go b/tinder_swiper.go index 3e452a78..d3578584 100644 --- a/tinder_swiper.go +++ b/tinder_swiper.go @@ -71,7 +71,7 @@ func (s *Swiper) RefreshContactRequest(ctx context.Context, topic []byte) (addrs if !ok { err = fmt.Errorf("unknown topic") s.muRequest.Unlock() - return + return addrs, err } // add a refresh job process From 46a5dbe1cb3ffb69f13aecbf91abf7d848b46f8d Mon Sep 17 00:00:00 2001 From: D4ryl00 Date: Wed, 7 Aug 2024 14:44:58 +0200 Subject: [PATCH 15/20] chore: update buf version Signed-off-by: D4ryl00 --- .tool-versions | 2 +- Makefile | 2 +- api/go-internal/buf.lock | 7 +------ api/go-internal/buf.yaml | 14 ++++++-------- api/protocol/buf.lock | 13 +++---------- api/protocol/buf.yaml | 4 ++-- gen.sum | 2 +- tool/docker-protoc/Makefile | 2 +- 8 files changed, 16 insertions(+), 30 deletions(-) diff --git a/.tool-versions b/.tool-versions index 747645fb..8bbed829 100644 --- a/.tool-versions +++ b/.tool-versions @@ -23,4 +23,4 @@ jq 1.6 # This is simply the most recent buf version available to date. # There is no contraindication for updating it. #----- -buf 1.15.1 +buf 1.36.0 diff --git a/Makefile b/Makefile index 4247816e..4158f1cd 100644 --- a/Makefile +++ b/Makefile @@ -154,7 +154,7 @@ $(gen_sum): $(gen_src) --workdir="/go/src/berty.tech/weshnet" \ --entrypoint="sh" \ --rm \ - bertytech/buf:3 \ + bertytech/buf:4 \ -xec 'make generate_local'; \ $(MAKE) tidy \ ) diff --git a/api/go-internal/buf.lock b/api/go-internal/buf.lock index 6b033f6f..4f98143f 100644 --- a/api/go-internal/buf.lock +++ b/api/go-internal/buf.lock @@ -1,7 +1,2 @@ # Generated by buf. DO NOT EDIT. -version: v1 -deps: - - remote: buf.build - owner: gogo - repository: protobuf - commit: 5461a3dfa9d941da82028ab185dc2a0e +version: v2 diff --git a/api/go-internal/buf.yaml b/api/go-internal/buf.yaml index c6c98eb6..801689d0 100644 --- a/api/go-internal/buf.yaml +++ b/api/go-internal/buf.yaml @@ -1,10 +1,8 @@ -version: v1 -name: buf.build/berty/weshnet -deps: - - buf.build/gogo/protobuf +version: v2 +name: buf.build/berty-technologies/weshnet breaking: - use: - - FILE + use: + - FILE lint: - use: - - DEFAULT + use: + - DEFAULT diff --git a/api/protocol/buf.lock b/api/protocol/buf.lock index 84040c46..67a7cfcf 100644 --- a/api/protocol/buf.lock +++ b/api/protocol/buf.lock @@ -1,13 +1,6 @@ # Generated by buf. DO NOT EDIT. -version: v1 +version: v2 deps: - - remote: buf.build - owner: googleapis - repository: googleapis - commit: 62f35d8aed1149c291d606d958a7ce32 - digest: shake256:c5f5c2401cf70b7c9719834954f31000a978397fdfebda861419bb4ab90fa8efae92710fddab0820533908a1e25ed692a8e119432b7b260c895087a4975b32f3 - - remote: buf.build - owner: srikrsna - repository: protoc-gen-gotag + - name: buf.build/srikrsna/protoc-gen-gotag commit: 7a85d3ad2e7642c198480e92bf730c14 - digest: shake256:059f136681cd47abe2d6e83d20b9594071c481572d16cebfafbc81ba3d3e7924aef6974f99da53d67a01d033e30b7bf57985a206b4e856fc82508545de84a70c + digest: b5:ddf7a4ac7e22f21751aac6e8b9a0e0ca576062e1babeaad6a31a71c410e043526a25c6ab07edf9ec1e51f6d671daa738cb3ffbe6ddcdddb5131a054061d47b89 diff --git a/api/protocol/buf.yaml b/api/protocol/buf.yaml index ed0ea075..4a393ec0 100644 --- a/api/protocol/buf.yaml +++ b/api/protocol/buf.yaml @@ -1,5 +1,5 @@ -version: v1 -name: buf.build/berty/weshnet +version: v2 +name: buf.build/berty-technologies/weshnet deps: - buf.build/srikrsna/protoc-gen-gotag breaking: diff --git a/gen.sum b/gen.sum index 9f825853..36f9c72d 100644 --- a/gen.sum +++ b/gen.sum @@ -1 +1 @@ -58bfdff78c72df7c80f0da16582c323600220202 Makefile +5c2cb692d768a8f1afb037311ad55074aa61bf93 Makefile diff --git a/tool/docker-protoc/Makefile b/tool/docker-protoc/Makefile index 73f1484a..310e4d4c 100644 --- a/tool/docker-protoc/Makefile +++ b/tool/docker-protoc/Makefile @@ -1,5 +1,5 @@ IMAGE ?= bertytech/buf -VERSION ?= 3 +VERSION ?= 4 build: cd ../../ && docker build -f ./tool/docker-protoc/Dockerfile -t $(IMAGE):$(VERSION) -t $(IMAGE):latest . From affc039f8d6dd9ac1f13c8c3bb0001e5e58c578e Mon Sep 17 00:00:00 2001 From: D4ryl00 Date: Fri, 13 Sep 2024 16:52:39 +0200 Subject: [PATCH 16/20] chore: update buf to 1.39.0 and update buf.yaml file Signed-off-by: D4ryl00 --- .tool-versions | 2 +- buf.gen.yaml | 24 ++++++++++----------- go.mod | 20 ++++++++--------- go.sum | 43 ++++++++++++++++++++----------------- internal/tools/tools.go | 2 +- tool/docker-protoc/Makefile | 2 +- 6 files changed, 48 insertions(+), 45 deletions(-) diff --git a/.tool-versions b/.tool-versions index 8bbed829..9594a0f3 100644 --- a/.tool-versions +++ b/.tool-versions @@ -23,4 +23,4 @@ jq 1.6 # This is simply the most recent buf version available to date. # There is no contraindication for updating it. #----- -buf 1.36.0 +buf 1.39.0 diff --git a/buf.gen.yaml b/buf.gen.yaml index 28239e15..a07a9b9e 100644 --- a/buf.gen.yaml +++ b/buf.gen.yaml @@ -1,13 +1,13 @@ -version: v1 +version: v2 plugins: - - name: go - out: ./ - opt: module=berty.tech/weshnet - - plugin: go-grpc - out: ./ - opt: module=berty.tech/weshnet - - plugin: grpc-gateway - out: ./ - opt: - - module=berty.tech/weshnet - - generate_unbound_methods=true + - local: protoc-gen-go + out: ./ + opt: module=berty.tech/weshnet + - local: protoc-gen-go-grpc + out: ./ + opt: module=berty.tech/weshnet + - local: protoc-gen-grpc-gateway + out: ./ + opt: + - module=berty.tech/weshnet + - generate_unbound_methods=true diff --git a/go.mod b/go.mod index 6e645f8e..f1cf12f1 100644 --- a/go.mod +++ b/go.mod @@ -17,7 +17,7 @@ require ( github.com/dgraph-io/badger/v2 v2.2007.3 github.com/gofrs/uuid v4.3.1+incompatible github.com/golang/protobuf v1.5.4 - github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 + github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 github.com/grpc-ecosystem/grpc-gateway v1.16.0 github.com/hyperledger/aries-framework-go v0.1.9-0.20221202141134-083803ecf0a3 github.com/ipfs/go-cid v0.4.1 @@ -47,13 +47,13 @@ require ( go.uber.org/goleak v1.3.0 go.uber.org/multierr v1.11.0 go.uber.org/zap v1.27.0 - golang.org/x/crypto v0.23.0 - golang.org/x/tools v0.21.0 + golang.org/x/crypto v0.24.0 + golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 - google.golang.org/grpc v1.64.0 - google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.3.0 + google.golang.org/grpc v1.65.0 + google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.5.1 google.golang.org/grpc/examples v0.0.0-20200922230038-4e932bbcb079 - google.golang.org/protobuf v1.34.1 + google.golang.org/protobuf v1.34.2 moul.io/openfiles v1.2.0 moul.io/srand v1.6.1 moul.io/testman v1.5.0 @@ -118,7 +118,7 @@ require ( github.com/go-task/slim-sprig/v3 v3.0.0 // indirect github.com/godbus/dbus/v5 v5.1.0 // indirect github.com/gogo/protobuf v1.3.2 // indirect - github.com/golang/glog v1.2.0 // indirect + github.com/golang/glog v1.2.1 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/snappy v0.0.4 // indirect github.com/google/go-cmp v0.6.0 // indirect @@ -298,11 +298,11 @@ require ( go4.org v0.0.0-20230225012048-214862532bf5 // indirect golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842 // indirect golang.org/x/mod v0.17.0 // indirect - golang.org/x/net v0.25.0 // indirect + golang.org/x/net v0.26.0 // indirect golang.org/x/oauth2 v0.20.0 // indirect golang.org/x/sync v0.7.0 // indirect - golang.org/x/sys v0.20.0 // indirect - golang.org/x/text v0.15.0 // indirect + golang.org/x/sys v0.21.0 // indirect + golang.org/x/text v0.16.0 // indirect gonum.org/v1/gonum v0.15.0 // indirect google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd // indirect gopkg.in/square/go-jose.v2 v2.6.0 // indirect diff --git a/go.sum b/go.sum index 4196118e..c3da2df8 100644 --- a/go.sum +++ b/go.sum @@ -35,7 +35,7 @@ cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvf cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= -cloud.google.com/go/compute v1.25.1 h1:ZRpHJedLtTpKgr3RV1Fx23NuaAEN1Zfx9hw1u4aJdjU= +cloud.google.com/go/compute v1.13.0 h1:AYrLkB8NPdDRslNp4Jxmzrhdr03fUAIDbiGFjLWowoU= cloud.google.com/go/compute/metadata v0.3.0 h1:Tz+eQXMEqDIKRsmY3cHTL6FVaynIjX2QxYC4trgAKZc= cloud.google.com/go/compute/metadata v0.3.0/go.mod h1:zFmK7XCadkQkj6TtorcaGlCW1hT1fIilQDwofLpJ20k= cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= @@ -282,8 +282,8 @@ github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXP github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= -github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= +github.com/golang/glog v1.2.1 h1:OptwRhECazUx5ix5TTWC3EZhsZEHWcYWY4FQHTIubm4= +github.com/golang/glog v1.2.1/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= @@ -378,8 +378,8 @@ github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/ad github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/QY= github.com/gorilla/websocket v1.5.1/go.mod h1:x3kM2JMyaluk02fnUJpQuwD2dCS5NDG2ZHL0uE0tcaY= github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= -github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 h1:+9834+KizmvFV7pXQGSXQTsaWhq2GjuNUt0aUU0YBYw= -github.com/grpc-ecosystem/go-grpc-middleware v1.3.0/go.mod h1:z0ButlSOZa5vEBq9m2m2hlwIgKw+rp3sdCBRoJY+30Y= +github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 h1:UH//fgunKIs4JdUbpDl1VZCDaL56wXCB/5+wF6uHfaI= +github.com/grpc-ecosystem/go-grpc-middleware v1.4.0/go.mod h1:g5qyo/la0ALbONm6Vbp88Yd8NsDy6rZz+RcrMPxvld8= github.com/grpc-ecosystem/grpc-gateway v1.5.0/go.mod h1:RSKVYQBd5MCa4OVpNdGskqpgL2+G+NZTnrVHpWWfpdw= github.com/grpc-ecosystem/grpc-gateway v1.16.0 h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= @@ -1139,6 +1139,7 @@ go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9E go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= go.uber.org/zap v1.14.1/go.mod h1:Mb2vm2krFEG5DV0W9qcHBYFtp/Wku1cvYaqPsS/WYfc= go.uber.org/zap v1.16.0/go.mod h1:MA8QOfq0BHJwdXa996Y4dYkAqRKB8/1K1QMMZVaNZjQ= +go.uber.org/zap v1.18.1/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI= go.uber.org/zap v1.19.0/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI= go.uber.org/zap v1.19.1/go.mod h1:j3DNczoxDZroyBnOT1L/Q79cfUMGZxlv/9dzN7SM1rI= go.uber.org/zap v1.20.0/go.mod h1:wjWOCqI0f2ZZrJF/UufIOkiC8ii6tm1iqIsLo76RfJw= @@ -1177,8 +1178,8 @@ golang.org/x/crypto v0.12.0/go.mod h1:NF0Gs7EO5K4qLn+Ylc+fih8BSTeIjAP05siRnAh98y golang.org/x/crypto v0.18.0/go.mod h1:R0j02AL6hcrfOiy9T4ZYp/rcWeMxM3L6QYxlOuEG1mg= golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= golang.org/x/crypto v0.21.0/go.mod h1:0BP7YvVV9gBbVKyeTG0Gyn+gZm94bibOW5BjDEYAOMs= -golang.org/x/crypto v0.23.0 h1:dIJU/v2J8Mdglj/8rJ6UUOM3Zc9zLZxVZwwxMooUSAI= -golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8= +golang.org/x/crypto v0.24.0 h1:mnl8DM0o513X8fdIkmyFE/5hTYxbwYOjDS/+rK6qpRI= +golang.org/x/crypto v0.24.0/go.mod h1:Z1PMYSOR5nyMcyAVAIQSKCDwalqy85Aqn1x3Ws4L5DM= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -1279,8 +1280,8 @@ golang.org/x/net v0.14.0/go.mod h1:PpSgVXXLK0OxS0F31C1/tv6XNguvCrnXIDrFMspZIUI= golang.org/x/net v0.20.0/go.mod h1:z8BVo6PvndSri0LbOE3hAn0apkU+1YvI6E70E9jsnvY= golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44= golang.org/x/net v0.22.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg= -golang.org/x/net v0.25.0 h1:d/OCCoBEUq33pjydKrGQhw7IlUPI2Oylr+8qLx49kac= -golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM= +golang.org/x/net v0.26.0 h1:soB7SVo0PWrY4vPW/+ay0jKDNScG2X9wFeYlXIvJsOQ= +golang.org/x/net v0.26.0/go.mod h1:5YKkiSynbBIh3p6iOc/vibscux0x38BZDkn8sCUPxHE= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20181017192945-9dcd33a902f4/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20181203162652-d668ce993890/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= @@ -1381,6 +1382,7 @@ golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211025201205-69cdffdb9359/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -1397,8 +1399,8 @@ golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.20.0 h1:Od9JTbYCk261bKm4M/mw7AklTlFYIa0bIp9BgSm1S8Y= -golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws= +golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= @@ -1424,8 +1426,8 @@ golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/text v0.11.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.12.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= -golang.org/x/text v0.15.0 h1:h1V/4gjBv8v9cjcR6+AR5+/cIYK5N/WAgiv4xlsEtAk= -golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= +golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= @@ -1495,8 +1497,8 @@ golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= -golang.org/x/tools v0.21.0 h1:qc0xYgIbsSDt9EyWz05J5wfa7LOVW0YTLOXrqdLAWIw= -golang.org/x/tools v0.21.0/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk= +golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d h1:vU5i/LfpvrRCpgM/VPfJLg5KjxD3E+hfT1SH+d9zLwg= +golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -1601,10 +1603,10 @@ google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTp google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= google.golang.org/grpc v1.34.0/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA51WJ8= google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= -google.golang.org/grpc v1.64.0 h1:KH3VH9y/MgNQg1dE7b3XfVK0GsPSIzJwdF617gUSbvY= -google.golang.org/grpc v1.64.0/go.mod h1:oxjF8E3FBnjp+/gVFYdWacaLDx9na1aqy9oovLpxQYg= -google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.3.0 h1:rNBFJjBCOgVr9pWD7rs/knKL4FRTKgpZmsRfV214zcA= -google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.3.0/go.mod h1:Dk1tviKTvMCz5tvh7t+fh94dhmQVHuCt2OzJB3CTW9Y= +google.golang.org/grpc v1.65.0 h1:bs/cUb4lp1G5iImFFd3u5ixQzweKizoZJAwBNLR42lc= +google.golang.org/grpc v1.65.0/go.mod h1:WgYC2ypjlB0EiQi6wdKixMqukr6lBc0Vo+oOgjrM5ZQ= +google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.5.1 h1:F29+wU6Ee6qgu9TddPgooOdaqsxTMunOoj8KA5yuS5A= +google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.5.1/go.mod h1:5KF+wpkbTSbGcR9zteSqZV6fqFOWBl4Yde8En8MryZA= google.golang.org/grpc/examples v0.0.0-20200922230038-4e932bbcb079 h1:unzgkDPNegIn/czOcgxzQaTzEzOiBH1V1j55rsEzVEg= google.golang.org/grpc/examples v0.0.0-20200922230038-4e932bbcb079/go.mod h1:Lh55/1hxmVHEkOvSIQ2uj0P12QyOCUNyRwnUlSS13hw= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= @@ -1621,8 +1623,9 @@ google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp0 google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= -google.golang.org/protobuf v1.34.1 h1:9ddQBjfCyZPOHPUiPxpYESBLc+T8P3E+Vo4IbKZgFWg= google.golang.org/protobuf v1.34.1/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= +google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= diff --git a/internal/tools/tools.go b/internal/tools/tools.go index 8b89909b..8f1e6295 100644 --- a/internal/tools/tools.go +++ b/internal/tools/tools.go @@ -12,7 +12,7 @@ import ( // required by Makefile _ "github.com/daixiang0/gci" // required by protoc - _ "github.com/golang/protobuf/proto" + _ "google.golang.org/protobuf/proto" // required by protoc _ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway" // required by protoc diff --git a/tool/docker-protoc/Makefile b/tool/docker-protoc/Makefile index 310e4d4c..ac3b8922 100644 --- a/tool/docker-protoc/Makefile +++ b/tool/docker-protoc/Makefile @@ -1,5 +1,5 @@ IMAGE ?= bertytech/buf -VERSION ?= 4 +VERSION ?= 5 build: cd ../../ && docker build -f ./tool/docker-protoc/Dockerfile -t $(IMAGE):$(VERSION) -t $(IMAGE):latest . From 2a02c21e28c1ba5965e2a07cd62184eb900258ed Mon Sep 17 00:00:00 2001 From: D4ryl00 Date: Fri, 13 Sep 2024 16:57:48 +0200 Subject: [PATCH 17/20] chore: update buf to 1.39.0 and update buf.yaml file Signed-off-by: D4ryl00 --- Makefile | 2 +- docs/Makefile | 2 +- docs/apis/protocoltypes.swagger.json | 22 +- docs/gen.sum | 2 +- gen.sum | 2 +- internal/handshake/handshake.pb.go | 14 +- internal/tools/tools.go | 4 +- pkg/errcode/errcode.pb.go | 6 +- .../outofstoremessage.pb.go | 4 +- .../outofstoremessage_grpc.pb.go | 34 +- pkg/protocoltypes/protocoltypes.pb.go | 358 +++++++------- pkg/protocoltypes/protocoltypes_grpc.pb.go | 459 +++++++----------- pkg/replicationtypes/bertyreplication.pb.go | 26 +- .../bertyreplication_grpc.pb.go | 38 +- pkg/tinder/records.pb.go | 8 +- .../bertyverifiablecreds.pb.go | 10 +- 16 files changed, 458 insertions(+), 533 deletions(-) diff --git a/Makefile b/Makefile index 4158f1cd..72990320 100644 --- a/Makefile +++ b/Makefile @@ -154,7 +154,7 @@ $(gen_sum): $(gen_src) --workdir="/go/src/berty.tech/weshnet" \ --entrypoint="sh" \ --rm \ - bertytech/buf:4 \ + bertytech/buf:5 \ -xec 'make generate_local'; \ $(MAKE) tidy \ ) diff --git a/docs/Makefile b/docs/Makefile index db0956df..b9ea011b 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -22,7 +22,7 @@ $(gen_sum): $(gen_src) --workdir="/go/src/berty.tech/berty/docs" \ --entrypoint="sh" \ --rm \ - bertytech/buf:2 \ + bertytech/buf:5 \ -xec 'make generate_local' \ ) .PHONY: generate diff --git a/docs/apis/protocoltypes.swagger.json b/docs/apis/protocoltypes.swagger.json index f1f5a586..e851dfd7 100644 --- a/docs/apis/protocoltypes.swagger.json +++ b/docs/apis/protocoltypes.swagger.json @@ -12,6 +12,16 @@ ], "paths": {}, "definitions": { + "GroupDeviceStatusType": { + "type": "string", + "enum": [ + "TypeUnknown", + "TypePeerDisconnected", + "TypePeerConnected", + "TypePeerReconnecting" + ], + "default": "TypeUnknown" + }, "OrbitDBReplicationStatus": { "type": "object", "properties": { @@ -569,7 +579,7 @@ "type": "object", "properties": { "type": { - "$ref": "#/definitions/v1GroupDeviceStatusType" + "$ref": "#/definitions/GroupDeviceStatusType" }, "event": { "type": "string", @@ -577,16 +587,6 @@ } } }, - "v1GroupDeviceStatusType": { - "type": "string", - "enum": [ - "TypeUnknown", - "TypePeerDisconnected", - "TypePeerConnected", - "TypePeerReconnecting" - ], - "default": "TypeUnknown" - }, "v1GroupInfoReply": { "type": "object", "properties": { diff --git a/docs/gen.sum b/docs/gen.sum index 4d99fddf..b9e6632c 100644 --- a/docs/gen.sum +++ b/docs/gen.sum @@ -1 +1 @@ -1874a7a933c38866216b36435e426d3f7c74561e Makefile +10db4498e1b002bb5bbfeb67ec3ce4d259b35c3d Makefile diff --git a/gen.sum b/gen.sum index 36f9c72d..6992d6ec 100644 --- a/gen.sum +++ b/gen.sum @@ -1 +1 @@ -5c2cb692d768a8f1afb037311ad55074aa61bf93 Makefile +78cfa180bfe8caf1572068cd6ea6bee4b89b3348 Makefile diff --git a/internal/handshake/handshake.pb.go b/internal/handshake/handshake.pb.go index bd0ae9a6..4cf99846 100644 --- a/internal/handshake/handshake.pb.go +++ b/internal/handshake/handshake.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: handshake/handshake.proto @@ -310,7 +310,7 @@ func file_handshake_handshake_proto_rawDescGZIP() []byte { } var file_handshake_handshake_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_handshake_handshake_proto_goTypes = []interface{}{ +var file_handshake_handshake_proto_goTypes = []any{ (*BoxEnvelope)(nil), // 0: handshake.BoxEnvelope (*HelloPayload)(nil), // 1: handshake.HelloPayload (*RequesterAuthenticatePayload)(nil), // 2: handshake.RequesterAuthenticatePayload @@ -331,7 +331,7 @@ func file_handshake_handshake_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_handshake_handshake_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_handshake_handshake_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*BoxEnvelope); i { case 0: return &v.state @@ -343,7 +343,7 @@ func file_handshake_handshake_proto_init() { return nil } } - file_handshake_handshake_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_handshake_handshake_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*HelloPayload); i { case 0: return &v.state @@ -355,7 +355,7 @@ func file_handshake_handshake_proto_init() { return nil } } - file_handshake_handshake_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_handshake_handshake_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*RequesterAuthenticatePayload); i { case 0: return &v.state @@ -367,7 +367,7 @@ func file_handshake_handshake_proto_init() { return nil } } - file_handshake_handshake_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_handshake_handshake_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*ResponderAcceptPayload); i { case 0: return &v.state @@ -379,7 +379,7 @@ func file_handshake_handshake_proto_init() { return nil } } - file_handshake_handshake_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_handshake_handshake_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*RequesterAcknowledgePayload); i { case 0: return &v.state diff --git a/internal/tools/tools.go b/internal/tools/tools.go index 8f1e6295..0de4e3e1 100644 --- a/internal/tools/tools.go +++ b/internal/tools/tools.go @@ -12,8 +12,6 @@ import ( // required by Makefile _ "github.com/daixiang0/gci" // required by protoc - _ "google.golang.org/protobuf/proto" - // required by protoc _ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway" // required by protoc _ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger" @@ -31,6 +29,8 @@ import ( _ "google.golang.org/grpc/cmd/protoc-gen-go-grpc" // required by protoc _ "google.golang.org/protobuf/cmd/protoc-gen-go" + // required by protoc + _ "google.golang.org/protobuf/proto" // required by Makefile _ "moul.io/testman" // required by Makefile diff --git a/pkg/errcode/errcode.pb.go b/pkg/errcode/errcode.pb.go index 7e847571..65b19f1c 100644 --- a/pkg/errcode/errcode.pb.go +++ b/pkg/errcode/errcode.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: errcode/errcode.proto @@ -551,7 +551,7 @@ func file_errcode_errcode_proto_rawDescGZIP() []byte { var file_errcode_errcode_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_errcode_errcode_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_errcode_errcode_proto_goTypes = []interface{}{ +var file_errcode_errcode_proto_goTypes = []any{ (ErrCode)(0), // 0: weshnet.errcode.ErrCode (*ErrDetails)(nil), // 1: weshnet.errcode.ErrDetails } @@ -570,7 +570,7 @@ func file_errcode_errcode_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_errcode_errcode_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_errcode_errcode_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*ErrDetails); i { case 0: return &v.state diff --git a/pkg/outofstoremessagetypes/outofstoremessage.pb.go b/pkg/outofstoremessagetypes/outofstoremessage.pb.go index c018a44e..1f2b0ab2 100644 --- a/pkg/outofstoremessagetypes/outofstoremessage.pb.go +++ b/pkg/outofstoremessagetypes/outofstoremessage.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: outofstoremessagetypes/outofstoremessage.proto @@ -44,7 +44,7 @@ var file_outofstoremessagetypes_outofstoremessage_proto_rawDesc = []byte{ 0x79, 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -var file_outofstoremessagetypes_outofstoremessage_proto_goTypes = []interface{}{ +var file_outofstoremessagetypes_outofstoremessage_proto_goTypes = []any{ (*protocoltypes.OutOfStoreReceive_Request)(nil), // 0: weshnet.protocol.v1.OutOfStoreReceive.Request (*protocoltypes.OutOfStoreReceive_Reply)(nil), // 1: weshnet.protocol.v1.OutOfStoreReceive.Reply } diff --git a/pkg/outofstoremessagetypes/outofstoremessage_grpc.pb.go b/pkg/outofstoremessagetypes/outofstoremessage_grpc.pb.go index 8bf6f75e..cfeb1049 100644 --- a/pkg/outofstoremessagetypes/outofstoremessage_grpc.pb.go +++ b/pkg/outofstoremessagetypes/outofstoremessage_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 +// - protoc-gen-go-grpc v1.5.1 // - protoc (unknown) // source: outofstoremessagetypes/outofstoremessage.proto @@ -16,8 +16,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( OutOfStoreMessageService_OutOfStoreReceive_FullMethodName = "/weshnet.outofstoremessage.v1.OutOfStoreMessageService/OutOfStoreReceive" @@ -26,6 +26,9 @@ const ( // OutOfStoreMessageServiceClient is the client API for OutOfStoreMessageService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// OutOfStoreMessageService is the service used to open out-of-store messages (e.g. push notifications) +// It is used to open messages with a lightweight protocol service for mobile backgroup processes. type OutOfStoreMessageServiceClient interface { // OutOfStoreReceive parses a payload received outside a synchronized store OutOfStoreReceive(ctx context.Context, in *protocoltypes.OutOfStoreReceive_Request, opts ...grpc.CallOption) (*protocoltypes.OutOfStoreReceive_Reply, error) @@ -40,8 +43,9 @@ func NewOutOfStoreMessageServiceClient(cc grpc.ClientConnInterface) OutOfStoreMe } func (c *outOfStoreMessageServiceClient) OutOfStoreReceive(ctx context.Context, in *protocoltypes.OutOfStoreReceive_Request, opts ...grpc.CallOption) (*protocoltypes.OutOfStoreReceive_Reply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(protocoltypes.OutOfStoreReceive_Reply) - err := c.cc.Invoke(ctx, OutOfStoreMessageService_OutOfStoreReceive_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OutOfStoreMessageService_OutOfStoreReceive_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -50,22 +54,29 @@ func (c *outOfStoreMessageServiceClient) OutOfStoreReceive(ctx context.Context, // OutOfStoreMessageServiceServer is the server API for OutOfStoreMessageService service. // All implementations must embed UnimplementedOutOfStoreMessageServiceServer -// for forward compatibility +// for forward compatibility. +// +// OutOfStoreMessageService is the service used to open out-of-store messages (e.g. push notifications) +// It is used to open messages with a lightweight protocol service for mobile backgroup processes. type OutOfStoreMessageServiceServer interface { // OutOfStoreReceive parses a payload received outside a synchronized store OutOfStoreReceive(context.Context, *protocoltypes.OutOfStoreReceive_Request) (*protocoltypes.OutOfStoreReceive_Reply, error) mustEmbedUnimplementedOutOfStoreMessageServiceServer() } -// UnimplementedOutOfStoreMessageServiceServer must be embedded to have forward compatible implementations. -type UnimplementedOutOfStoreMessageServiceServer struct { -} +// UnimplementedOutOfStoreMessageServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedOutOfStoreMessageServiceServer struct{} func (UnimplementedOutOfStoreMessageServiceServer) OutOfStoreReceive(context.Context, *protocoltypes.OutOfStoreReceive_Request) (*protocoltypes.OutOfStoreReceive_Reply, error) { return nil, status.Errorf(codes.Unimplemented, "method OutOfStoreReceive not implemented") } func (UnimplementedOutOfStoreMessageServiceServer) mustEmbedUnimplementedOutOfStoreMessageServiceServer() { } +func (UnimplementedOutOfStoreMessageServiceServer) testEmbeddedByValue() {} // UnsafeOutOfStoreMessageServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to OutOfStoreMessageServiceServer will @@ -75,6 +86,13 @@ type UnsafeOutOfStoreMessageServiceServer interface { } func RegisterOutOfStoreMessageServiceServer(s grpc.ServiceRegistrar, srv OutOfStoreMessageServiceServer) { + // If the following call pancis, it indicates UnimplementedOutOfStoreMessageServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&OutOfStoreMessageService_ServiceDesc, srv) } diff --git a/pkg/protocoltypes/protocoltypes.pb.go b/pkg/protocoltypes/protocoltypes.pb.go index 44ca12a6..3fdc10ba 100644 --- a/pkg/protocoltypes/protocoltypes.pb.go +++ b/pkg/protocoltypes/protocoltypes.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: protocoltypes.proto @@ -11239,7 +11239,7 @@ func file_protocoltypes_proto_rawDescGZIP() []byte { var file_protocoltypes_proto_enumTypes = make([]protoimpl.EnumInfo, 9) var file_protocoltypes_proto_msgTypes = make([]protoimpl.MessageInfo, 178) -var file_protocoltypes_proto_goTypes = []interface{}{ +var file_protocoltypes_proto_goTypes = []any{ (GroupType)(0), // 0: weshnet.protocol.v1.GroupType (EventType)(0), // 1: weshnet.protocol.v1.EventType (DebugInspectGroupLogType)(0), // 2: weshnet.protocol.v1.DebugInspectGroupLogType @@ -11563,7 +11563,7 @@ func file_protocoltypes_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_protocoltypes_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*Account); i { case 0: return &v.state @@ -11575,7 +11575,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*Group); i { case 0: return &v.state @@ -11587,7 +11587,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*GroupHeadsExport); i { case 0: return &v.state @@ -11599,7 +11599,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*GroupMetadata); i { case 0: return &v.state @@ -11611,7 +11611,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*GroupEnvelope); i { case 0: return &v.state @@ -11623,7 +11623,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*MessageHeaders); i { case 0: return &v.state @@ -11635,7 +11635,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*ProtocolMetadata); i { case 0: return &v.state @@ -11647,7 +11647,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*EncryptedMessage); i { case 0: return &v.state @@ -11659,7 +11659,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[8].Exporter = func(v any, i int) any { switch v := v.(*MessageEnvelope); i { case 0: return &v.state @@ -11671,7 +11671,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[9].Exporter = func(v any, i int) any { switch v := v.(*EventContext); i { case 0: return &v.state @@ -11683,7 +11683,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[10].Exporter = func(v any, i int) any { switch v := v.(*GroupMetadataPayloadSent); i { case 0: return &v.state @@ -11695,7 +11695,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[11].Exporter = func(v any, i int) any { switch v := v.(*ContactAliasKeyAdded); i { case 0: return &v.state @@ -11707,7 +11707,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[12].Exporter = func(v any, i int) any { switch v := v.(*GroupMemberDeviceAdded); i { case 0: return &v.state @@ -11719,7 +11719,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[13].Exporter = func(v any, i int) any { switch v := v.(*DeviceChainKey); i { case 0: return &v.state @@ -11731,7 +11731,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[14].Exporter = func(v any, i int) any { switch v := v.(*GroupDeviceChainKeyAdded); i { case 0: return &v.state @@ -11743,7 +11743,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[15].Exporter = func(v any, i int) any { switch v := v.(*MultiMemberGroupAliasResolverAdded); i { case 0: return &v.state @@ -11755,7 +11755,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[16].Exporter = func(v any, i int) any { switch v := v.(*MultiMemberGroupAdminRoleGranted); i { case 0: return &v.state @@ -11767,7 +11767,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[17].Exporter = func(v any, i int) any { switch v := v.(*MultiMemberGroupInitialMemberAnnounced); i { case 0: return &v.state @@ -11779,7 +11779,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[18].Exporter = func(v any, i int) any { switch v := v.(*GroupAddAdditionalRendezvousSeed); i { case 0: return &v.state @@ -11791,7 +11791,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[19].Exporter = func(v any, i int) any { switch v := v.(*GroupRemoveAdditionalRendezvousSeed); i { case 0: return &v.state @@ -11803,7 +11803,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[20].Exporter = func(v any, i int) any { switch v := v.(*AccountGroupJoined); i { case 0: return &v.state @@ -11815,7 +11815,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[21].Exporter = func(v any, i int) any { switch v := v.(*AccountGroupLeft); i { case 0: return &v.state @@ -11827,7 +11827,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[22].Exporter = func(v any, i int) any { switch v := v.(*AccountContactRequestDisabled); i { case 0: return &v.state @@ -11839,7 +11839,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[23].Exporter = func(v any, i int) any { switch v := v.(*AccountContactRequestEnabled); i { case 0: return &v.state @@ -11851,7 +11851,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[24].Exporter = func(v any, i int) any { switch v := v.(*AccountContactRequestReferenceReset); i { case 0: return &v.state @@ -11863,7 +11863,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[25].Exporter = func(v any, i int) any { switch v := v.(*AccountContactRequestOutgoingEnqueued); i { case 0: return &v.state @@ -11875,7 +11875,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[26].Exporter = func(v any, i int) any { switch v := v.(*AccountContactRequestOutgoingSent); i { case 0: return &v.state @@ -11887,7 +11887,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[27].Exporter = func(v any, i int) any { switch v := v.(*AccountContactRequestIncomingReceived); i { case 0: return &v.state @@ -11899,7 +11899,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[28].Exporter = func(v any, i int) any { switch v := v.(*AccountContactRequestIncomingDiscarded); i { case 0: return &v.state @@ -11911,7 +11911,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[29].Exporter = func(v any, i int) any { switch v := v.(*AccountContactRequestIncomingAccepted); i { case 0: return &v.state @@ -11923,7 +11923,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[30].Exporter = func(v any, i int) any { switch v := v.(*AccountContactBlocked); i { case 0: return &v.state @@ -11935,7 +11935,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[31].Exporter = func(v any, i int) any { switch v := v.(*AccountContactUnblocked); i { case 0: return &v.state @@ -11947,7 +11947,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[32].Exporter = func(v any, i int) any { switch v := v.(*GroupReplicating); i { case 0: return &v.state @@ -11959,7 +11959,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[33].Exporter = func(v any, i int) any { switch v := v.(*ServiceExportData); i { case 0: return &v.state @@ -11971,7 +11971,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[34].Exporter = func(v any, i int) any { switch v := v.(*ServiceGetConfiguration); i { case 0: return &v.state @@ -11983,7 +11983,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[35].Exporter = func(v any, i int) any { switch v := v.(*ContactRequestReference); i { case 0: return &v.state @@ -11995,7 +11995,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[36].Exporter = func(v any, i int) any { switch v := v.(*ContactRequestDisable); i { case 0: return &v.state @@ -12007,7 +12007,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[37].Exporter = func(v any, i int) any { switch v := v.(*ContactRequestEnable); i { case 0: return &v.state @@ -12019,7 +12019,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[38].Exporter = func(v any, i int) any { switch v := v.(*ContactRequestResetReference); i { case 0: return &v.state @@ -12031,7 +12031,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[39].Exporter = func(v any, i int) any { switch v := v.(*ContactRequestSend); i { case 0: return &v.state @@ -12043,7 +12043,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[40].Exporter = func(v any, i int) any { switch v := v.(*ContactRequestAccept); i { case 0: return &v.state @@ -12055,7 +12055,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[41].Exporter = func(v any, i int) any { switch v := v.(*ContactRequestDiscard); i { case 0: return &v.state @@ -12067,7 +12067,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[42].Exporter = func(v any, i int) any { switch v := v.(*ShareContact); i { case 0: return &v.state @@ -12079,7 +12079,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[43].Exporter = func(v any, i int) any { switch v := v.(*DecodeContact); i { case 0: return &v.state @@ -12091,7 +12091,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[44].Exporter = func(v any, i int) any { switch v := v.(*ContactBlock); i { case 0: return &v.state @@ -12103,7 +12103,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[45].Exporter = func(v any, i int) any { switch v := v.(*ContactUnblock); i { case 0: return &v.state @@ -12115,7 +12115,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[46].Exporter = func(v any, i int) any { switch v := v.(*ContactAliasKeySend); i { case 0: return &v.state @@ -12127,7 +12127,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[47].Exporter = func(v any, i int) any { switch v := v.(*MultiMemberGroupCreate); i { case 0: return &v.state @@ -12139,7 +12139,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[48].Exporter = func(v any, i int) any { switch v := v.(*MultiMemberGroupJoin); i { case 0: return &v.state @@ -12151,7 +12151,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[49].Exporter = func(v any, i int) any { switch v := v.(*MultiMemberGroupLeave); i { case 0: return &v.state @@ -12163,7 +12163,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[50].Exporter = func(v any, i int) any { switch v := v.(*MultiMemberGroupAliasResolverDisclose); i { case 0: return &v.state @@ -12175,7 +12175,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[51].Exporter = func(v any, i int) any { switch v := v.(*MultiMemberGroupAdminRoleGrant); i { case 0: return &v.state @@ -12187,7 +12187,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[52].Exporter = func(v any, i int) any { switch v := v.(*MultiMemberGroupInvitationCreate); i { case 0: return &v.state @@ -12199,7 +12199,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[53].Exporter = func(v any, i int) any { switch v := v.(*AppMetadataSend); i { case 0: return &v.state @@ -12211,7 +12211,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[54].Exporter = func(v any, i int) any { switch v := v.(*AppMessageSend); i { case 0: return &v.state @@ -12223,7 +12223,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[55].Exporter = func(v any, i int) any { switch v := v.(*GroupMetadataEvent); i { case 0: return &v.state @@ -12235,7 +12235,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[56].Exporter = func(v any, i int) any { switch v := v.(*GroupMessageEvent); i { case 0: return &v.state @@ -12247,7 +12247,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[57].Exporter = func(v any, i int) any { switch v := v.(*GroupMetadataList); i { case 0: return &v.state @@ -12259,7 +12259,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[58].Exporter = func(v any, i int) any { switch v := v.(*GroupMessageList); i { case 0: return &v.state @@ -12271,7 +12271,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[59].Exporter = func(v any, i int) any { switch v := v.(*GroupInfo); i { case 0: return &v.state @@ -12283,7 +12283,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[60].Exporter = func(v any, i int) any { switch v := v.(*ActivateGroup); i { case 0: return &v.state @@ -12295,7 +12295,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[61].Exporter = func(v any, i int) any { switch v := v.(*DeactivateGroup); i { case 0: return &v.state @@ -12307,7 +12307,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[62].Exporter = func(v any, i int) any { switch v := v.(*GroupDeviceStatus); i { case 0: return &v.state @@ -12319,7 +12319,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[63].Exporter = func(v any, i int) any { switch v := v.(*DebugListGroups); i { case 0: return &v.state @@ -12331,7 +12331,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[64].Exporter = func(v any, i int) any { switch v := v.(*DebugInspectGroupStore); i { case 0: return &v.state @@ -12343,7 +12343,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[65].Exporter = func(v any, i int) any { switch v := v.(*DebugGroup); i { case 0: return &v.state @@ -12355,7 +12355,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[66].Exporter = func(v any, i int) any { switch v := v.(*ShareableContact); i { case 0: return &v.state @@ -12367,7 +12367,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[67].Exporter = func(v any, i int) any { switch v := v.(*ServiceTokenSupportedService); i { case 0: return &v.state @@ -12379,7 +12379,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[68].Exporter = func(v any, i int) any { switch v := v.(*ServiceToken); i { case 0: return &v.state @@ -12391,7 +12391,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[69].Exporter = func(v any, i int) any { switch v := v.(*CredentialVerificationServiceInitFlow); i { case 0: return &v.state @@ -12403,7 +12403,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[70].Exporter = func(v any, i int) any { switch v := v.(*CredentialVerificationServiceCompleteFlow); i { case 0: return &v.state @@ -12415,7 +12415,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[71].Exporter = func(v any, i int) any { switch v := v.(*VerifiedCredentialsList); i { case 0: return &v.state @@ -12427,7 +12427,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[72].Exporter = func(v any, i int) any { switch v := v.(*ReplicationServiceRegisterGroup); i { case 0: return &v.state @@ -12439,7 +12439,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[73].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[73].Exporter = func(v any, i int) any { switch v := v.(*ReplicationServiceReplicateGroup); i { case 0: return &v.state @@ -12451,7 +12451,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[74].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[74].Exporter = func(v any, i int) any { switch v := v.(*SystemInfo); i { case 0: return &v.state @@ -12463,7 +12463,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[75].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[75].Exporter = func(v any, i int) any { switch v := v.(*PeerList); i { case 0: return &v.state @@ -12475,7 +12475,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[76].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[76].Exporter = func(v any, i int) any { switch v := v.(*Progress); i { case 0: return &v.state @@ -12487,7 +12487,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[77].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[77].Exporter = func(v any, i int) any { switch v := v.(*OutOfStoreMessage); i { case 0: return &v.state @@ -12499,7 +12499,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[78].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[78].Exporter = func(v any, i int) any { switch v := v.(*OutOfStoreMessageEnvelope); i { case 0: return &v.state @@ -12511,7 +12511,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[79].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[79].Exporter = func(v any, i int) any { switch v := v.(*OutOfStoreReceive); i { case 0: return &v.state @@ -12523,7 +12523,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[80].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[80].Exporter = func(v any, i int) any { switch v := v.(*OutOfStoreSeal); i { case 0: return &v.state @@ -12535,7 +12535,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[81].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[81].Exporter = func(v any, i int) any { switch v := v.(*AccountVerifiedCredentialRegistered); i { case 0: return &v.state @@ -12547,7 +12547,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[82].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[82].Exporter = func(v any, i int) any { switch v := v.(*FirstLastCounters); i { case 0: return &v.state @@ -12559,7 +12559,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[83].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[83].Exporter = func(v any, i int) any { switch v := v.(*OrbitDBMessageHeads); i { case 0: return &v.state @@ -12571,7 +12571,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[84].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[84].Exporter = func(v any, i int) any { switch v := v.(*RefreshContactRequest); i { case 0: return &v.state @@ -12583,7 +12583,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[86].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[86].Exporter = func(v any, i int) any { switch v := v.(*ServiceExportData_Request); i { case 0: return &v.state @@ -12595,7 +12595,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[87].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[87].Exporter = func(v any, i int) any { switch v := v.(*ServiceExportData_Reply); i { case 0: return &v.state @@ -12607,7 +12607,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[88].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[88].Exporter = func(v any, i int) any { switch v := v.(*ServiceGetConfiguration_Request); i { case 0: return &v.state @@ -12619,7 +12619,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[89].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[89].Exporter = func(v any, i int) any { switch v := v.(*ServiceGetConfiguration_Reply); i { case 0: return &v.state @@ -12631,7 +12631,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[90].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[90].Exporter = func(v any, i int) any { switch v := v.(*ContactRequestReference_Request); i { case 0: return &v.state @@ -12643,7 +12643,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[91].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[91].Exporter = func(v any, i int) any { switch v := v.(*ContactRequestReference_Reply); i { case 0: return &v.state @@ -12655,7 +12655,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[92].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[92].Exporter = func(v any, i int) any { switch v := v.(*ContactRequestDisable_Request); i { case 0: return &v.state @@ -12667,7 +12667,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[93].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[93].Exporter = func(v any, i int) any { switch v := v.(*ContactRequestDisable_Reply); i { case 0: return &v.state @@ -12679,7 +12679,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[94].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[94].Exporter = func(v any, i int) any { switch v := v.(*ContactRequestEnable_Request); i { case 0: return &v.state @@ -12691,7 +12691,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[95].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[95].Exporter = func(v any, i int) any { switch v := v.(*ContactRequestEnable_Reply); i { case 0: return &v.state @@ -12703,7 +12703,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[96].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[96].Exporter = func(v any, i int) any { switch v := v.(*ContactRequestResetReference_Request); i { case 0: return &v.state @@ -12715,7 +12715,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[97].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[97].Exporter = func(v any, i int) any { switch v := v.(*ContactRequestResetReference_Reply); i { case 0: return &v.state @@ -12727,7 +12727,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[98].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[98].Exporter = func(v any, i int) any { switch v := v.(*ContactRequestSend_Request); i { case 0: return &v.state @@ -12739,7 +12739,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[99].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[99].Exporter = func(v any, i int) any { switch v := v.(*ContactRequestSend_Reply); i { case 0: return &v.state @@ -12751,7 +12751,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[100].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[100].Exporter = func(v any, i int) any { switch v := v.(*ContactRequestAccept_Request); i { case 0: return &v.state @@ -12763,7 +12763,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[101].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[101].Exporter = func(v any, i int) any { switch v := v.(*ContactRequestAccept_Reply); i { case 0: return &v.state @@ -12775,7 +12775,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[102].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[102].Exporter = func(v any, i int) any { switch v := v.(*ContactRequestDiscard_Request); i { case 0: return &v.state @@ -12787,7 +12787,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[103].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[103].Exporter = func(v any, i int) any { switch v := v.(*ContactRequestDiscard_Reply); i { case 0: return &v.state @@ -12799,7 +12799,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[104].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[104].Exporter = func(v any, i int) any { switch v := v.(*ShareContact_Request); i { case 0: return &v.state @@ -12811,7 +12811,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[105].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[105].Exporter = func(v any, i int) any { switch v := v.(*ShareContact_Reply); i { case 0: return &v.state @@ -12823,7 +12823,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[106].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[106].Exporter = func(v any, i int) any { switch v := v.(*DecodeContact_Request); i { case 0: return &v.state @@ -12835,7 +12835,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[107].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[107].Exporter = func(v any, i int) any { switch v := v.(*DecodeContact_Reply); i { case 0: return &v.state @@ -12847,7 +12847,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[108].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[108].Exporter = func(v any, i int) any { switch v := v.(*ContactBlock_Request); i { case 0: return &v.state @@ -12859,7 +12859,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[109].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[109].Exporter = func(v any, i int) any { switch v := v.(*ContactBlock_Reply); i { case 0: return &v.state @@ -12871,7 +12871,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[110].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[110].Exporter = func(v any, i int) any { switch v := v.(*ContactUnblock_Request); i { case 0: return &v.state @@ -12883,7 +12883,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[111].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[111].Exporter = func(v any, i int) any { switch v := v.(*ContactUnblock_Reply); i { case 0: return &v.state @@ -12895,7 +12895,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[112].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[112].Exporter = func(v any, i int) any { switch v := v.(*ContactAliasKeySend_Request); i { case 0: return &v.state @@ -12907,7 +12907,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[113].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[113].Exporter = func(v any, i int) any { switch v := v.(*ContactAliasKeySend_Reply); i { case 0: return &v.state @@ -12919,7 +12919,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[114].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[114].Exporter = func(v any, i int) any { switch v := v.(*MultiMemberGroupCreate_Request); i { case 0: return &v.state @@ -12931,7 +12931,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[115].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[115].Exporter = func(v any, i int) any { switch v := v.(*MultiMemberGroupCreate_Reply); i { case 0: return &v.state @@ -12943,7 +12943,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[116].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[116].Exporter = func(v any, i int) any { switch v := v.(*MultiMemberGroupJoin_Request); i { case 0: return &v.state @@ -12955,7 +12955,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[117].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[117].Exporter = func(v any, i int) any { switch v := v.(*MultiMemberGroupJoin_Reply); i { case 0: return &v.state @@ -12967,7 +12967,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[118].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[118].Exporter = func(v any, i int) any { switch v := v.(*MultiMemberGroupLeave_Request); i { case 0: return &v.state @@ -12979,7 +12979,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[119].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[119].Exporter = func(v any, i int) any { switch v := v.(*MultiMemberGroupLeave_Reply); i { case 0: return &v.state @@ -12991,7 +12991,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[120].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[120].Exporter = func(v any, i int) any { switch v := v.(*MultiMemberGroupAliasResolverDisclose_Request); i { case 0: return &v.state @@ -13003,7 +13003,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[121].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[121].Exporter = func(v any, i int) any { switch v := v.(*MultiMemberGroupAliasResolverDisclose_Reply); i { case 0: return &v.state @@ -13015,7 +13015,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[122].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[122].Exporter = func(v any, i int) any { switch v := v.(*MultiMemberGroupAdminRoleGrant_Request); i { case 0: return &v.state @@ -13027,7 +13027,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[123].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[123].Exporter = func(v any, i int) any { switch v := v.(*MultiMemberGroupAdminRoleGrant_Reply); i { case 0: return &v.state @@ -13039,7 +13039,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[124].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[124].Exporter = func(v any, i int) any { switch v := v.(*MultiMemberGroupInvitationCreate_Request); i { case 0: return &v.state @@ -13051,7 +13051,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[125].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[125].Exporter = func(v any, i int) any { switch v := v.(*MultiMemberGroupInvitationCreate_Reply); i { case 0: return &v.state @@ -13063,7 +13063,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[126].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[126].Exporter = func(v any, i int) any { switch v := v.(*AppMetadataSend_Request); i { case 0: return &v.state @@ -13075,7 +13075,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[127].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[127].Exporter = func(v any, i int) any { switch v := v.(*AppMetadataSend_Reply); i { case 0: return &v.state @@ -13087,7 +13087,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[128].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[128].Exporter = func(v any, i int) any { switch v := v.(*AppMessageSend_Request); i { case 0: return &v.state @@ -13099,7 +13099,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[129].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[129].Exporter = func(v any, i int) any { switch v := v.(*AppMessageSend_Reply); i { case 0: return &v.state @@ -13111,7 +13111,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[130].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[130].Exporter = func(v any, i int) any { switch v := v.(*GroupMetadataList_Request); i { case 0: return &v.state @@ -13123,7 +13123,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[131].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[131].Exporter = func(v any, i int) any { switch v := v.(*GroupMessageList_Request); i { case 0: return &v.state @@ -13135,7 +13135,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[132].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[132].Exporter = func(v any, i int) any { switch v := v.(*GroupInfo_Request); i { case 0: return &v.state @@ -13147,7 +13147,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[133].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[133].Exporter = func(v any, i int) any { switch v := v.(*GroupInfo_Reply); i { case 0: return &v.state @@ -13159,7 +13159,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[134].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[134].Exporter = func(v any, i int) any { switch v := v.(*ActivateGroup_Request); i { case 0: return &v.state @@ -13171,7 +13171,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[135].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[135].Exporter = func(v any, i int) any { switch v := v.(*ActivateGroup_Reply); i { case 0: return &v.state @@ -13183,7 +13183,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[136].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[136].Exporter = func(v any, i int) any { switch v := v.(*DeactivateGroup_Request); i { case 0: return &v.state @@ -13195,7 +13195,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[137].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[137].Exporter = func(v any, i int) any { switch v := v.(*DeactivateGroup_Reply); i { case 0: return &v.state @@ -13207,7 +13207,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[138].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[138].Exporter = func(v any, i int) any { switch v := v.(*GroupDeviceStatus_Request); i { case 0: return &v.state @@ -13219,7 +13219,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[139].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[139].Exporter = func(v any, i int) any { switch v := v.(*GroupDeviceStatus_Reply); i { case 0: return &v.state @@ -13231,7 +13231,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[140].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[140].Exporter = func(v any, i int) any { switch v := v.(*GroupDeviceStatus_Reply_PeerConnected); i { case 0: return &v.state @@ -13243,7 +13243,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[141].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[141].Exporter = func(v any, i int) any { switch v := v.(*GroupDeviceStatus_Reply_PeerReconnecting); i { case 0: return &v.state @@ -13255,7 +13255,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[142].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[142].Exporter = func(v any, i int) any { switch v := v.(*GroupDeviceStatus_Reply_PeerDisconnected); i { case 0: return &v.state @@ -13267,7 +13267,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[143].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[143].Exporter = func(v any, i int) any { switch v := v.(*DebugListGroups_Request); i { case 0: return &v.state @@ -13279,7 +13279,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[144].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[144].Exporter = func(v any, i int) any { switch v := v.(*DebugListGroups_Reply); i { case 0: return &v.state @@ -13291,7 +13291,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[145].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[145].Exporter = func(v any, i int) any { switch v := v.(*DebugInspectGroupStore_Request); i { case 0: return &v.state @@ -13303,7 +13303,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[146].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[146].Exporter = func(v any, i int) any { switch v := v.(*DebugInspectGroupStore_Reply); i { case 0: return &v.state @@ -13315,7 +13315,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[147].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[147].Exporter = func(v any, i int) any { switch v := v.(*DebugGroup_Request); i { case 0: return &v.state @@ -13327,7 +13327,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[148].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[148].Exporter = func(v any, i int) any { switch v := v.(*DebugGroup_Reply); i { case 0: return &v.state @@ -13339,7 +13339,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[149].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[149].Exporter = func(v any, i int) any { switch v := v.(*CredentialVerificationServiceInitFlow_Request); i { case 0: return &v.state @@ -13351,7 +13351,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[150].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[150].Exporter = func(v any, i int) any { switch v := v.(*CredentialVerificationServiceInitFlow_Reply); i { case 0: return &v.state @@ -13363,7 +13363,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[151].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[151].Exporter = func(v any, i int) any { switch v := v.(*CredentialVerificationServiceCompleteFlow_Request); i { case 0: return &v.state @@ -13375,7 +13375,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[152].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[152].Exporter = func(v any, i int) any { switch v := v.(*CredentialVerificationServiceCompleteFlow_Reply); i { case 0: return &v.state @@ -13387,7 +13387,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[153].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[153].Exporter = func(v any, i int) any { switch v := v.(*VerifiedCredentialsList_Request); i { case 0: return &v.state @@ -13399,7 +13399,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[154].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[154].Exporter = func(v any, i int) any { switch v := v.(*VerifiedCredentialsList_Reply); i { case 0: return &v.state @@ -13411,7 +13411,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[155].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[155].Exporter = func(v any, i int) any { switch v := v.(*ReplicationServiceRegisterGroup_Request); i { case 0: return &v.state @@ -13423,7 +13423,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[156].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[156].Exporter = func(v any, i int) any { switch v := v.(*ReplicationServiceRegisterGroup_Reply); i { case 0: return &v.state @@ -13435,7 +13435,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[157].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[157].Exporter = func(v any, i int) any { switch v := v.(*ReplicationServiceReplicateGroup_Request); i { case 0: return &v.state @@ -13447,7 +13447,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[158].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[158].Exporter = func(v any, i int) any { switch v := v.(*ReplicationServiceReplicateGroup_Reply); i { case 0: return &v.state @@ -13459,7 +13459,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[159].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[159].Exporter = func(v any, i int) any { switch v := v.(*SystemInfo_Request); i { case 0: return &v.state @@ -13471,7 +13471,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[160].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[160].Exporter = func(v any, i int) any { switch v := v.(*SystemInfo_Reply); i { case 0: return &v.state @@ -13483,7 +13483,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[161].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[161].Exporter = func(v any, i int) any { switch v := v.(*SystemInfo_OrbitDB); i { case 0: return &v.state @@ -13495,7 +13495,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[162].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[162].Exporter = func(v any, i int) any { switch v := v.(*SystemInfo_P2P); i { case 0: return &v.state @@ -13507,7 +13507,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[163].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[163].Exporter = func(v any, i int) any { switch v := v.(*SystemInfo_Process); i { case 0: return &v.state @@ -13519,7 +13519,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[164].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[164].Exporter = func(v any, i int) any { switch v := v.(*SystemInfo_OrbitDB_ReplicationStatus); i { case 0: return &v.state @@ -13531,7 +13531,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[165].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[165].Exporter = func(v any, i int) any { switch v := v.(*PeerList_Request); i { case 0: return &v.state @@ -13543,7 +13543,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[166].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[166].Exporter = func(v any, i int) any { switch v := v.(*PeerList_Reply); i { case 0: return &v.state @@ -13555,7 +13555,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[167].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[167].Exporter = func(v any, i int) any { switch v := v.(*PeerList_Peer); i { case 0: return &v.state @@ -13567,7 +13567,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[168].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[168].Exporter = func(v any, i int) any { switch v := v.(*PeerList_Route); i { case 0: return &v.state @@ -13579,7 +13579,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[169].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[169].Exporter = func(v any, i int) any { switch v := v.(*PeerList_Stream); i { case 0: return &v.state @@ -13591,7 +13591,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[170].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[170].Exporter = func(v any, i int) any { switch v := v.(*OutOfStoreReceive_Request); i { case 0: return &v.state @@ -13603,7 +13603,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[171].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[171].Exporter = func(v any, i int) any { switch v := v.(*OutOfStoreReceive_Reply); i { case 0: return &v.state @@ -13615,7 +13615,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[172].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[172].Exporter = func(v any, i int) any { switch v := v.(*OutOfStoreSeal_Request); i { case 0: return &v.state @@ -13627,7 +13627,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[173].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[173].Exporter = func(v any, i int) any { switch v := v.(*OutOfStoreSeal_Reply); i { case 0: return &v.state @@ -13639,7 +13639,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[174].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[174].Exporter = func(v any, i int) any { switch v := v.(*OrbitDBMessageHeads_Box); i { case 0: return &v.state @@ -13651,7 +13651,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[175].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[175].Exporter = func(v any, i int) any { switch v := v.(*RefreshContactRequest_Peer); i { case 0: return &v.state @@ -13663,7 +13663,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[176].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[176].Exporter = func(v any, i int) any { switch v := v.(*RefreshContactRequest_Request); i { case 0: return &v.state @@ -13675,7 +13675,7 @@ func file_protocoltypes_proto_init() { return nil } } - file_protocoltypes_proto_msgTypes[177].Exporter = func(v interface{}, i int) interface{} { + file_protocoltypes_proto_msgTypes[177].Exporter = func(v any, i int) any { switch v := v.(*RefreshContactRequest_Reply); i { case 0: return &v.state diff --git a/pkg/protocoltypes/protocoltypes_grpc.pb.go b/pkg/protocoltypes/protocoltypes_grpc.pb.go index dcf2ec4b..51d0a398 100644 --- a/pkg/protocoltypes/protocoltypes_grpc.pb.go +++ b/pkg/protocoltypes/protocoltypes_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 +// - protoc-gen-go-grpc v1.5.1 // - protoc (unknown) // source: protocoltypes.proto @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( ProtocolService_ServiceExportData_FullMethodName = "/weshnet.protocol.v1.ProtocolService/ServiceExportData" @@ -64,9 +64,12 @@ const ( // ProtocolServiceClient is the client API for ProtocolService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// ProtocolService is the top-level API to manage the Wesh protocol service. +// Each active Wesh protocol service is considered as a Wesh device and is associated with a Wesh user. type ProtocolServiceClient interface { // ServiceExportData exports the current data of the protocol service - ServiceExportData(ctx context.Context, in *ServiceExportData_Request, opts ...grpc.CallOption) (ProtocolService_ServiceExportDataClient, error) + ServiceExportData(ctx context.Context, in *ServiceExportData_Request, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ServiceExportData_Reply], error) // ServiceGetConfiguration gets the current configuration of the protocol service ServiceGetConfiguration(ctx context.Context, in *ServiceGetConfiguration_Request, opts ...grpc.CallOption) (*ServiceGetConfiguration_Reply, error) // ContactRequestReference retrieves the information required to create a reference (ie. included in a shareable link) to the current account @@ -112,9 +115,9 @@ type ProtocolServiceClient interface { // AppMessageSend adds an app event to the message store, the message is encrypted using a derived key and readable by current group members AppMessageSend(ctx context.Context, in *AppMessageSend_Request, opts ...grpc.CallOption) (*AppMessageSend_Reply, error) // GroupMetadataList replays previous and subscribes to new metadata events from the group - GroupMetadataList(ctx context.Context, in *GroupMetadataList_Request, opts ...grpc.CallOption) (ProtocolService_GroupMetadataListClient, error) + GroupMetadataList(ctx context.Context, in *GroupMetadataList_Request, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GroupMetadataEvent], error) // GroupMessageList replays previous and subscribes to new message events from the group - GroupMessageList(ctx context.Context, in *GroupMessageList_Request, opts ...grpc.CallOption) (ProtocolService_GroupMessageListClient, error) + GroupMessageList(ctx context.Context, in *GroupMessageList_Request, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GroupMessageEvent], error) // GroupInfo retrieves information about a group GroupInfo(ctx context.Context, in *GroupInfo_Request, opts ...grpc.CallOption) (*GroupInfo_Reply, error) // ActivateGroup explicitly opens a group @@ -122,9 +125,9 @@ type ProtocolServiceClient interface { // DeactivateGroup closes a group DeactivateGroup(ctx context.Context, in *DeactivateGroup_Request, opts ...grpc.CallOption) (*DeactivateGroup_Reply, error) // GroupDeviceStatus monitor device status - GroupDeviceStatus(ctx context.Context, in *GroupDeviceStatus_Request, opts ...grpc.CallOption) (ProtocolService_GroupDeviceStatusClient, error) - DebugListGroups(ctx context.Context, in *DebugListGroups_Request, opts ...grpc.CallOption) (ProtocolService_DebugListGroupsClient, error) - DebugInspectGroupStore(ctx context.Context, in *DebugInspectGroupStore_Request, opts ...grpc.CallOption) (ProtocolService_DebugInspectGroupStoreClient, error) + GroupDeviceStatus(ctx context.Context, in *GroupDeviceStatus_Request, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GroupDeviceStatus_Reply], error) + DebugListGroups(ctx context.Context, in *DebugListGroups_Request, opts ...grpc.CallOption) (grpc.ServerStreamingClient[DebugListGroups_Reply], error) + DebugInspectGroupStore(ctx context.Context, in *DebugInspectGroupStore_Request, opts ...grpc.CallOption) (grpc.ServerStreamingClient[DebugInspectGroupStore_Reply], error) DebugGroup(ctx context.Context, in *DebugGroup_Request, opts ...grpc.CallOption) (*DebugGroup_Reply, error) SystemInfo(ctx context.Context, in *SystemInfo_Request, opts ...grpc.CallOption) (*SystemInfo_Reply, error) // CredentialVerificationServiceInitFlow Initialize a credential verification flow @@ -132,7 +135,7 @@ type ProtocolServiceClient interface { // CredentialVerificationServiceCompleteFlow Completes a credential verification flow CredentialVerificationServiceCompleteFlow(ctx context.Context, in *CredentialVerificationServiceCompleteFlow_Request, opts ...grpc.CallOption) (*CredentialVerificationServiceCompleteFlow_Reply, error) // VerifiedCredentialsList Retrieves the list of verified credentials - VerifiedCredentialsList(ctx context.Context, in *VerifiedCredentialsList_Request, opts ...grpc.CallOption) (ProtocolService_VerifiedCredentialsListClient, error) + VerifiedCredentialsList(ctx context.Context, in *VerifiedCredentialsList_Request, opts ...grpc.CallOption) (grpc.ServerStreamingClient[VerifiedCredentialsList_Reply], error) // ReplicationServiceRegisterGroup Asks a replication service to distribute a group contents ReplicationServiceRegisterGroup(ctx context.Context, in *ReplicationServiceRegisterGroup_Request, opts ...grpc.CallOption) (*ReplicationServiceRegisterGroup_Reply, error) // PeerList returns a list of P2P peers @@ -153,12 +156,13 @@ func NewProtocolServiceClient(cc grpc.ClientConnInterface) ProtocolServiceClient return &protocolServiceClient{cc} } -func (c *protocolServiceClient) ServiceExportData(ctx context.Context, in *ServiceExportData_Request, opts ...grpc.CallOption) (ProtocolService_ServiceExportDataClient, error) { - stream, err := c.cc.NewStream(ctx, &ProtocolService_ServiceDesc.Streams[0], ProtocolService_ServiceExportData_FullMethodName, opts...) +func (c *protocolServiceClient) ServiceExportData(ctx context.Context, in *ServiceExportData_Request, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ServiceExportData_Reply], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &ProtocolService_ServiceDesc.Streams[0], ProtocolService_ServiceExportData_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &protocolServiceServiceExportDataClient{stream} + x := &grpc.GenericClientStream[ServiceExportData_Request, ServiceExportData_Reply]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -168,26 +172,13 @@ func (c *protocolServiceClient) ServiceExportData(ctx context.Context, in *Servi return x, nil } -type ProtocolService_ServiceExportDataClient interface { - Recv() (*ServiceExportData_Reply, error) - grpc.ClientStream -} - -type protocolServiceServiceExportDataClient struct { - grpc.ClientStream -} - -func (x *protocolServiceServiceExportDataClient) Recv() (*ServiceExportData_Reply, error) { - m := new(ServiceExportData_Reply) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type ProtocolService_ServiceExportDataClient = grpc.ServerStreamingClient[ServiceExportData_Reply] func (c *protocolServiceClient) ServiceGetConfiguration(ctx context.Context, in *ServiceGetConfiguration_Request, opts ...grpc.CallOption) (*ServiceGetConfiguration_Reply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ServiceGetConfiguration_Reply) - err := c.cc.Invoke(ctx, ProtocolService_ServiceGetConfiguration_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ProtocolService_ServiceGetConfiguration_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -195,8 +186,9 @@ func (c *protocolServiceClient) ServiceGetConfiguration(ctx context.Context, in } func (c *protocolServiceClient) ContactRequestReference(ctx context.Context, in *ContactRequestReference_Request, opts ...grpc.CallOption) (*ContactRequestReference_Reply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ContactRequestReference_Reply) - err := c.cc.Invoke(ctx, ProtocolService_ContactRequestReference_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ProtocolService_ContactRequestReference_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -204,8 +196,9 @@ func (c *protocolServiceClient) ContactRequestReference(ctx context.Context, in } func (c *protocolServiceClient) ContactRequestDisable(ctx context.Context, in *ContactRequestDisable_Request, opts ...grpc.CallOption) (*ContactRequestDisable_Reply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ContactRequestDisable_Reply) - err := c.cc.Invoke(ctx, ProtocolService_ContactRequestDisable_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ProtocolService_ContactRequestDisable_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -213,8 +206,9 @@ func (c *protocolServiceClient) ContactRequestDisable(ctx context.Context, in *C } func (c *protocolServiceClient) ContactRequestEnable(ctx context.Context, in *ContactRequestEnable_Request, opts ...grpc.CallOption) (*ContactRequestEnable_Reply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ContactRequestEnable_Reply) - err := c.cc.Invoke(ctx, ProtocolService_ContactRequestEnable_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ProtocolService_ContactRequestEnable_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -222,8 +216,9 @@ func (c *protocolServiceClient) ContactRequestEnable(ctx context.Context, in *Co } func (c *protocolServiceClient) ContactRequestResetReference(ctx context.Context, in *ContactRequestResetReference_Request, opts ...grpc.CallOption) (*ContactRequestResetReference_Reply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ContactRequestResetReference_Reply) - err := c.cc.Invoke(ctx, ProtocolService_ContactRequestResetReference_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ProtocolService_ContactRequestResetReference_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -231,8 +226,9 @@ func (c *protocolServiceClient) ContactRequestResetReference(ctx context.Context } func (c *protocolServiceClient) ContactRequestSend(ctx context.Context, in *ContactRequestSend_Request, opts ...grpc.CallOption) (*ContactRequestSend_Reply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ContactRequestSend_Reply) - err := c.cc.Invoke(ctx, ProtocolService_ContactRequestSend_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ProtocolService_ContactRequestSend_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -240,8 +236,9 @@ func (c *protocolServiceClient) ContactRequestSend(ctx context.Context, in *Cont } func (c *protocolServiceClient) ContactRequestAccept(ctx context.Context, in *ContactRequestAccept_Request, opts ...grpc.CallOption) (*ContactRequestAccept_Reply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ContactRequestAccept_Reply) - err := c.cc.Invoke(ctx, ProtocolService_ContactRequestAccept_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ProtocolService_ContactRequestAccept_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -249,8 +246,9 @@ func (c *protocolServiceClient) ContactRequestAccept(ctx context.Context, in *Co } func (c *protocolServiceClient) ContactRequestDiscard(ctx context.Context, in *ContactRequestDiscard_Request, opts ...grpc.CallOption) (*ContactRequestDiscard_Reply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ContactRequestDiscard_Reply) - err := c.cc.Invoke(ctx, ProtocolService_ContactRequestDiscard_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ProtocolService_ContactRequestDiscard_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -258,8 +256,9 @@ func (c *protocolServiceClient) ContactRequestDiscard(ctx context.Context, in *C } func (c *protocolServiceClient) ShareContact(ctx context.Context, in *ShareContact_Request, opts ...grpc.CallOption) (*ShareContact_Reply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ShareContact_Reply) - err := c.cc.Invoke(ctx, ProtocolService_ShareContact_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ProtocolService_ShareContact_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -267,8 +266,9 @@ func (c *protocolServiceClient) ShareContact(ctx context.Context, in *ShareConta } func (c *protocolServiceClient) DecodeContact(ctx context.Context, in *DecodeContact_Request, opts ...grpc.CallOption) (*DecodeContact_Reply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DecodeContact_Reply) - err := c.cc.Invoke(ctx, ProtocolService_DecodeContact_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ProtocolService_DecodeContact_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -276,8 +276,9 @@ func (c *protocolServiceClient) DecodeContact(ctx context.Context, in *DecodeCon } func (c *protocolServiceClient) ContactBlock(ctx context.Context, in *ContactBlock_Request, opts ...grpc.CallOption) (*ContactBlock_Reply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ContactBlock_Reply) - err := c.cc.Invoke(ctx, ProtocolService_ContactBlock_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ProtocolService_ContactBlock_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -285,8 +286,9 @@ func (c *protocolServiceClient) ContactBlock(ctx context.Context, in *ContactBlo } func (c *protocolServiceClient) ContactUnblock(ctx context.Context, in *ContactUnblock_Request, opts ...grpc.CallOption) (*ContactUnblock_Reply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ContactUnblock_Reply) - err := c.cc.Invoke(ctx, ProtocolService_ContactUnblock_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ProtocolService_ContactUnblock_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -294,8 +296,9 @@ func (c *protocolServiceClient) ContactUnblock(ctx context.Context, in *ContactU } func (c *protocolServiceClient) ContactAliasKeySend(ctx context.Context, in *ContactAliasKeySend_Request, opts ...grpc.CallOption) (*ContactAliasKeySend_Reply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ContactAliasKeySend_Reply) - err := c.cc.Invoke(ctx, ProtocolService_ContactAliasKeySend_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ProtocolService_ContactAliasKeySend_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -303,8 +306,9 @@ func (c *protocolServiceClient) ContactAliasKeySend(ctx context.Context, in *Con } func (c *protocolServiceClient) MultiMemberGroupCreate(ctx context.Context, in *MultiMemberGroupCreate_Request, opts ...grpc.CallOption) (*MultiMemberGroupCreate_Reply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(MultiMemberGroupCreate_Reply) - err := c.cc.Invoke(ctx, ProtocolService_MultiMemberGroupCreate_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ProtocolService_MultiMemberGroupCreate_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -312,8 +316,9 @@ func (c *protocolServiceClient) MultiMemberGroupCreate(ctx context.Context, in * } func (c *protocolServiceClient) MultiMemberGroupJoin(ctx context.Context, in *MultiMemberGroupJoin_Request, opts ...grpc.CallOption) (*MultiMemberGroupJoin_Reply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(MultiMemberGroupJoin_Reply) - err := c.cc.Invoke(ctx, ProtocolService_MultiMemberGroupJoin_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ProtocolService_MultiMemberGroupJoin_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -321,8 +326,9 @@ func (c *protocolServiceClient) MultiMemberGroupJoin(ctx context.Context, in *Mu } func (c *protocolServiceClient) MultiMemberGroupLeave(ctx context.Context, in *MultiMemberGroupLeave_Request, opts ...grpc.CallOption) (*MultiMemberGroupLeave_Reply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(MultiMemberGroupLeave_Reply) - err := c.cc.Invoke(ctx, ProtocolService_MultiMemberGroupLeave_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ProtocolService_MultiMemberGroupLeave_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -330,8 +336,9 @@ func (c *protocolServiceClient) MultiMemberGroupLeave(ctx context.Context, in *M } func (c *protocolServiceClient) MultiMemberGroupAliasResolverDisclose(ctx context.Context, in *MultiMemberGroupAliasResolverDisclose_Request, opts ...grpc.CallOption) (*MultiMemberGroupAliasResolverDisclose_Reply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(MultiMemberGroupAliasResolverDisclose_Reply) - err := c.cc.Invoke(ctx, ProtocolService_MultiMemberGroupAliasResolverDisclose_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ProtocolService_MultiMemberGroupAliasResolverDisclose_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -339,8 +346,9 @@ func (c *protocolServiceClient) MultiMemberGroupAliasResolverDisclose(ctx contex } func (c *protocolServiceClient) MultiMemberGroupAdminRoleGrant(ctx context.Context, in *MultiMemberGroupAdminRoleGrant_Request, opts ...grpc.CallOption) (*MultiMemberGroupAdminRoleGrant_Reply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(MultiMemberGroupAdminRoleGrant_Reply) - err := c.cc.Invoke(ctx, ProtocolService_MultiMemberGroupAdminRoleGrant_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ProtocolService_MultiMemberGroupAdminRoleGrant_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -348,8 +356,9 @@ func (c *protocolServiceClient) MultiMemberGroupAdminRoleGrant(ctx context.Conte } func (c *protocolServiceClient) MultiMemberGroupInvitationCreate(ctx context.Context, in *MultiMemberGroupInvitationCreate_Request, opts ...grpc.CallOption) (*MultiMemberGroupInvitationCreate_Reply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(MultiMemberGroupInvitationCreate_Reply) - err := c.cc.Invoke(ctx, ProtocolService_MultiMemberGroupInvitationCreate_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ProtocolService_MultiMemberGroupInvitationCreate_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -357,8 +366,9 @@ func (c *protocolServiceClient) MultiMemberGroupInvitationCreate(ctx context.Con } func (c *protocolServiceClient) AppMetadataSend(ctx context.Context, in *AppMetadataSend_Request, opts ...grpc.CallOption) (*AppMetadataSend_Reply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AppMetadataSend_Reply) - err := c.cc.Invoke(ctx, ProtocolService_AppMetadataSend_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ProtocolService_AppMetadataSend_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -366,20 +376,22 @@ func (c *protocolServiceClient) AppMetadataSend(ctx context.Context, in *AppMeta } func (c *protocolServiceClient) AppMessageSend(ctx context.Context, in *AppMessageSend_Request, opts ...grpc.CallOption) (*AppMessageSend_Reply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AppMessageSend_Reply) - err := c.cc.Invoke(ctx, ProtocolService_AppMessageSend_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ProtocolService_AppMessageSend_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -func (c *protocolServiceClient) GroupMetadataList(ctx context.Context, in *GroupMetadataList_Request, opts ...grpc.CallOption) (ProtocolService_GroupMetadataListClient, error) { - stream, err := c.cc.NewStream(ctx, &ProtocolService_ServiceDesc.Streams[1], ProtocolService_GroupMetadataList_FullMethodName, opts...) +func (c *protocolServiceClient) GroupMetadataList(ctx context.Context, in *GroupMetadataList_Request, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GroupMetadataEvent], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &ProtocolService_ServiceDesc.Streams[1], ProtocolService_GroupMetadataList_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &protocolServiceGroupMetadataListClient{stream} + x := &grpc.GenericClientStream[GroupMetadataList_Request, GroupMetadataEvent]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -389,29 +401,16 @@ func (c *protocolServiceClient) GroupMetadataList(ctx context.Context, in *Group return x, nil } -type ProtocolService_GroupMetadataListClient interface { - Recv() (*GroupMetadataEvent, error) - grpc.ClientStream -} - -type protocolServiceGroupMetadataListClient struct { - grpc.ClientStream -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type ProtocolService_GroupMetadataListClient = grpc.ServerStreamingClient[GroupMetadataEvent] -func (x *protocolServiceGroupMetadataListClient) Recv() (*GroupMetadataEvent, error) { - m := new(GroupMetadataEvent) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *protocolServiceClient) GroupMessageList(ctx context.Context, in *GroupMessageList_Request, opts ...grpc.CallOption) (ProtocolService_GroupMessageListClient, error) { - stream, err := c.cc.NewStream(ctx, &ProtocolService_ServiceDesc.Streams[2], ProtocolService_GroupMessageList_FullMethodName, opts...) +func (c *protocolServiceClient) GroupMessageList(ctx context.Context, in *GroupMessageList_Request, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GroupMessageEvent], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &ProtocolService_ServiceDesc.Streams[2], ProtocolService_GroupMessageList_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &protocolServiceGroupMessageListClient{stream} + x := &grpc.GenericClientStream[GroupMessageList_Request, GroupMessageEvent]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -421,26 +420,13 @@ func (c *protocolServiceClient) GroupMessageList(ctx context.Context, in *GroupM return x, nil } -type ProtocolService_GroupMessageListClient interface { - Recv() (*GroupMessageEvent, error) - grpc.ClientStream -} - -type protocolServiceGroupMessageListClient struct { - grpc.ClientStream -} - -func (x *protocolServiceGroupMessageListClient) Recv() (*GroupMessageEvent, error) { - m := new(GroupMessageEvent) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type ProtocolService_GroupMessageListClient = grpc.ServerStreamingClient[GroupMessageEvent] func (c *protocolServiceClient) GroupInfo(ctx context.Context, in *GroupInfo_Request, opts ...grpc.CallOption) (*GroupInfo_Reply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GroupInfo_Reply) - err := c.cc.Invoke(ctx, ProtocolService_GroupInfo_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ProtocolService_GroupInfo_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -448,8 +434,9 @@ func (c *protocolServiceClient) GroupInfo(ctx context.Context, in *GroupInfo_Req } func (c *protocolServiceClient) ActivateGroup(ctx context.Context, in *ActivateGroup_Request, opts ...grpc.CallOption) (*ActivateGroup_Reply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ActivateGroup_Reply) - err := c.cc.Invoke(ctx, ProtocolService_ActivateGroup_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ProtocolService_ActivateGroup_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -457,20 +444,22 @@ func (c *protocolServiceClient) ActivateGroup(ctx context.Context, in *ActivateG } func (c *protocolServiceClient) DeactivateGroup(ctx context.Context, in *DeactivateGroup_Request, opts ...grpc.CallOption) (*DeactivateGroup_Reply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeactivateGroup_Reply) - err := c.cc.Invoke(ctx, ProtocolService_DeactivateGroup_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ProtocolService_DeactivateGroup_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -func (c *protocolServiceClient) GroupDeviceStatus(ctx context.Context, in *GroupDeviceStatus_Request, opts ...grpc.CallOption) (ProtocolService_GroupDeviceStatusClient, error) { - stream, err := c.cc.NewStream(ctx, &ProtocolService_ServiceDesc.Streams[3], ProtocolService_GroupDeviceStatus_FullMethodName, opts...) +func (c *protocolServiceClient) GroupDeviceStatus(ctx context.Context, in *GroupDeviceStatus_Request, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GroupDeviceStatus_Reply], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &ProtocolService_ServiceDesc.Streams[3], ProtocolService_GroupDeviceStatus_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &protocolServiceGroupDeviceStatusClient{stream} + x := &grpc.GenericClientStream[GroupDeviceStatus_Request, GroupDeviceStatus_Reply]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -480,29 +469,16 @@ func (c *protocolServiceClient) GroupDeviceStatus(ctx context.Context, in *Group return x, nil } -type ProtocolService_GroupDeviceStatusClient interface { - Recv() (*GroupDeviceStatus_Reply, error) - grpc.ClientStream -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type ProtocolService_GroupDeviceStatusClient = grpc.ServerStreamingClient[GroupDeviceStatus_Reply] -type protocolServiceGroupDeviceStatusClient struct { - grpc.ClientStream -} - -func (x *protocolServiceGroupDeviceStatusClient) Recv() (*GroupDeviceStatus_Reply, error) { - m := new(GroupDeviceStatus_Reply) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *protocolServiceClient) DebugListGroups(ctx context.Context, in *DebugListGroups_Request, opts ...grpc.CallOption) (ProtocolService_DebugListGroupsClient, error) { - stream, err := c.cc.NewStream(ctx, &ProtocolService_ServiceDesc.Streams[4], ProtocolService_DebugListGroups_FullMethodName, opts...) +func (c *protocolServiceClient) DebugListGroups(ctx context.Context, in *DebugListGroups_Request, opts ...grpc.CallOption) (grpc.ServerStreamingClient[DebugListGroups_Reply], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &ProtocolService_ServiceDesc.Streams[4], ProtocolService_DebugListGroups_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &protocolServiceDebugListGroupsClient{stream} + x := &grpc.GenericClientStream[DebugListGroups_Request, DebugListGroups_Reply]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -512,29 +488,16 @@ func (c *protocolServiceClient) DebugListGroups(ctx context.Context, in *DebugLi return x, nil } -type ProtocolService_DebugListGroupsClient interface { - Recv() (*DebugListGroups_Reply, error) - grpc.ClientStream -} - -type protocolServiceDebugListGroupsClient struct { - grpc.ClientStream -} - -func (x *protocolServiceDebugListGroupsClient) Recv() (*DebugListGroups_Reply, error) { - m := new(DebugListGroups_Reply) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type ProtocolService_DebugListGroupsClient = grpc.ServerStreamingClient[DebugListGroups_Reply] -func (c *protocolServiceClient) DebugInspectGroupStore(ctx context.Context, in *DebugInspectGroupStore_Request, opts ...grpc.CallOption) (ProtocolService_DebugInspectGroupStoreClient, error) { - stream, err := c.cc.NewStream(ctx, &ProtocolService_ServiceDesc.Streams[5], ProtocolService_DebugInspectGroupStore_FullMethodName, opts...) +func (c *protocolServiceClient) DebugInspectGroupStore(ctx context.Context, in *DebugInspectGroupStore_Request, opts ...grpc.CallOption) (grpc.ServerStreamingClient[DebugInspectGroupStore_Reply], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &ProtocolService_ServiceDesc.Streams[5], ProtocolService_DebugInspectGroupStore_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &protocolServiceDebugInspectGroupStoreClient{stream} + x := &grpc.GenericClientStream[DebugInspectGroupStore_Request, DebugInspectGroupStore_Reply]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -544,26 +507,13 @@ func (c *protocolServiceClient) DebugInspectGroupStore(ctx context.Context, in * return x, nil } -type ProtocolService_DebugInspectGroupStoreClient interface { - Recv() (*DebugInspectGroupStore_Reply, error) - grpc.ClientStream -} - -type protocolServiceDebugInspectGroupStoreClient struct { - grpc.ClientStream -} - -func (x *protocolServiceDebugInspectGroupStoreClient) Recv() (*DebugInspectGroupStore_Reply, error) { - m := new(DebugInspectGroupStore_Reply) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type ProtocolService_DebugInspectGroupStoreClient = grpc.ServerStreamingClient[DebugInspectGroupStore_Reply] func (c *protocolServiceClient) DebugGroup(ctx context.Context, in *DebugGroup_Request, opts ...grpc.CallOption) (*DebugGroup_Reply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DebugGroup_Reply) - err := c.cc.Invoke(ctx, ProtocolService_DebugGroup_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ProtocolService_DebugGroup_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -571,8 +521,9 @@ func (c *protocolServiceClient) DebugGroup(ctx context.Context, in *DebugGroup_R } func (c *protocolServiceClient) SystemInfo(ctx context.Context, in *SystemInfo_Request, opts ...grpc.CallOption) (*SystemInfo_Reply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SystemInfo_Reply) - err := c.cc.Invoke(ctx, ProtocolService_SystemInfo_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ProtocolService_SystemInfo_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -580,8 +531,9 @@ func (c *protocolServiceClient) SystemInfo(ctx context.Context, in *SystemInfo_R } func (c *protocolServiceClient) CredentialVerificationServiceInitFlow(ctx context.Context, in *CredentialVerificationServiceInitFlow_Request, opts ...grpc.CallOption) (*CredentialVerificationServiceInitFlow_Reply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CredentialVerificationServiceInitFlow_Reply) - err := c.cc.Invoke(ctx, ProtocolService_CredentialVerificationServiceInitFlow_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ProtocolService_CredentialVerificationServiceInitFlow_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -589,20 +541,22 @@ func (c *protocolServiceClient) CredentialVerificationServiceInitFlow(ctx contex } func (c *protocolServiceClient) CredentialVerificationServiceCompleteFlow(ctx context.Context, in *CredentialVerificationServiceCompleteFlow_Request, opts ...grpc.CallOption) (*CredentialVerificationServiceCompleteFlow_Reply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CredentialVerificationServiceCompleteFlow_Reply) - err := c.cc.Invoke(ctx, ProtocolService_CredentialVerificationServiceCompleteFlow_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ProtocolService_CredentialVerificationServiceCompleteFlow_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -func (c *protocolServiceClient) VerifiedCredentialsList(ctx context.Context, in *VerifiedCredentialsList_Request, opts ...grpc.CallOption) (ProtocolService_VerifiedCredentialsListClient, error) { - stream, err := c.cc.NewStream(ctx, &ProtocolService_ServiceDesc.Streams[6], ProtocolService_VerifiedCredentialsList_FullMethodName, opts...) +func (c *protocolServiceClient) VerifiedCredentialsList(ctx context.Context, in *VerifiedCredentialsList_Request, opts ...grpc.CallOption) (grpc.ServerStreamingClient[VerifiedCredentialsList_Reply], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &ProtocolService_ServiceDesc.Streams[6], ProtocolService_VerifiedCredentialsList_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &protocolServiceVerifiedCredentialsListClient{stream} + x := &grpc.GenericClientStream[VerifiedCredentialsList_Request, VerifiedCredentialsList_Reply]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -612,26 +566,13 @@ func (c *protocolServiceClient) VerifiedCredentialsList(ctx context.Context, in return x, nil } -type ProtocolService_VerifiedCredentialsListClient interface { - Recv() (*VerifiedCredentialsList_Reply, error) - grpc.ClientStream -} - -type protocolServiceVerifiedCredentialsListClient struct { - grpc.ClientStream -} - -func (x *protocolServiceVerifiedCredentialsListClient) Recv() (*VerifiedCredentialsList_Reply, error) { - m := new(VerifiedCredentialsList_Reply) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type ProtocolService_VerifiedCredentialsListClient = grpc.ServerStreamingClient[VerifiedCredentialsList_Reply] func (c *protocolServiceClient) ReplicationServiceRegisterGroup(ctx context.Context, in *ReplicationServiceRegisterGroup_Request, opts ...grpc.CallOption) (*ReplicationServiceRegisterGroup_Reply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ReplicationServiceRegisterGroup_Reply) - err := c.cc.Invoke(ctx, ProtocolService_ReplicationServiceRegisterGroup_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ProtocolService_ReplicationServiceRegisterGroup_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -639,8 +580,9 @@ func (c *protocolServiceClient) ReplicationServiceRegisterGroup(ctx context.Cont } func (c *protocolServiceClient) PeerList(ctx context.Context, in *PeerList_Request, opts ...grpc.CallOption) (*PeerList_Reply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(PeerList_Reply) - err := c.cc.Invoke(ctx, ProtocolService_PeerList_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ProtocolService_PeerList_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -648,8 +590,9 @@ func (c *protocolServiceClient) PeerList(ctx context.Context, in *PeerList_Reque } func (c *protocolServiceClient) OutOfStoreReceive(ctx context.Context, in *OutOfStoreReceive_Request, opts ...grpc.CallOption) (*OutOfStoreReceive_Reply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(OutOfStoreReceive_Reply) - err := c.cc.Invoke(ctx, ProtocolService_OutOfStoreReceive_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ProtocolService_OutOfStoreReceive_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -657,8 +600,9 @@ func (c *protocolServiceClient) OutOfStoreReceive(ctx context.Context, in *OutOf } func (c *protocolServiceClient) OutOfStoreSeal(ctx context.Context, in *OutOfStoreSeal_Request, opts ...grpc.CallOption) (*OutOfStoreSeal_Reply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(OutOfStoreSeal_Reply) - err := c.cc.Invoke(ctx, ProtocolService_OutOfStoreSeal_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ProtocolService_OutOfStoreSeal_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -666,8 +610,9 @@ func (c *protocolServiceClient) OutOfStoreSeal(ctx context.Context, in *OutOfSto } func (c *protocolServiceClient) RefreshContactRequest(ctx context.Context, in *RefreshContactRequest_Request, opts ...grpc.CallOption) (*RefreshContactRequest_Reply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RefreshContactRequest_Reply) - err := c.cc.Invoke(ctx, ProtocolService_RefreshContactRequest_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ProtocolService_RefreshContactRequest_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -676,10 +621,13 @@ func (c *protocolServiceClient) RefreshContactRequest(ctx context.Context, in *R // ProtocolServiceServer is the server API for ProtocolService service. // All implementations must embed UnimplementedProtocolServiceServer -// for forward compatibility +// for forward compatibility. +// +// ProtocolService is the top-level API to manage the Wesh protocol service. +// Each active Wesh protocol service is considered as a Wesh device and is associated with a Wesh user. type ProtocolServiceServer interface { // ServiceExportData exports the current data of the protocol service - ServiceExportData(*ServiceExportData_Request, ProtocolService_ServiceExportDataServer) error + ServiceExportData(*ServiceExportData_Request, grpc.ServerStreamingServer[ServiceExportData_Reply]) error // ServiceGetConfiguration gets the current configuration of the protocol service ServiceGetConfiguration(context.Context, *ServiceGetConfiguration_Request) (*ServiceGetConfiguration_Reply, error) // ContactRequestReference retrieves the information required to create a reference (ie. included in a shareable link) to the current account @@ -725,9 +673,9 @@ type ProtocolServiceServer interface { // AppMessageSend adds an app event to the message store, the message is encrypted using a derived key and readable by current group members AppMessageSend(context.Context, *AppMessageSend_Request) (*AppMessageSend_Reply, error) // GroupMetadataList replays previous and subscribes to new metadata events from the group - GroupMetadataList(*GroupMetadataList_Request, ProtocolService_GroupMetadataListServer) error + GroupMetadataList(*GroupMetadataList_Request, grpc.ServerStreamingServer[GroupMetadataEvent]) error // GroupMessageList replays previous and subscribes to new message events from the group - GroupMessageList(*GroupMessageList_Request, ProtocolService_GroupMessageListServer) error + GroupMessageList(*GroupMessageList_Request, grpc.ServerStreamingServer[GroupMessageEvent]) error // GroupInfo retrieves information about a group GroupInfo(context.Context, *GroupInfo_Request) (*GroupInfo_Reply, error) // ActivateGroup explicitly opens a group @@ -735,9 +683,9 @@ type ProtocolServiceServer interface { // DeactivateGroup closes a group DeactivateGroup(context.Context, *DeactivateGroup_Request) (*DeactivateGroup_Reply, error) // GroupDeviceStatus monitor device status - GroupDeviceStatus(*GroupDeviceStatus_Request, ProtocolService_GroupDeviceStatusServer) error - DebugListGroups(*DebugListGroups_Request, ProtocolService_DebugListGroupsServer) error - DebugInspectGroupStore(*DebugInspectGroupStore_Request, ProtocolService_DebugInspectGroupStoreServer) error + GroupDeviceStatus(*GroupDeviceStatus_Request, grpc.ServerStreamingServer[GroupDeviceStatus_Reply]) error + DebugListGroups(*DebugListGroups_Request, grpc.ServerStreamingServer[DebugListGroups_Reply]) error + DebugInspectGroupStore(*DebugInspectGroupStore_Request, grpc.ServerStreamingServer[DebugInspectGroupStore_Reply]) error DebugGroup(context.Context, *DebugGroup_Request) (*DebugGroup_Reply, error) SystemInfo(context.Context, *SystemInfo_Request) (*SystemInfo_Reply, error) // CredentialVerificationServiceInitFlow Initialize a credential verification flow @@ -745,7 +693,7 @@ type ProtocolServiceServer interface { // CredentialVerificationServiceCompleteFlow Completes a credential verification flow CredentialVerificationServiceCompleteFlow(context.Context, *CredentialVerificationServiceCompleteFlow_Request) (*CredentialVerificationServiceCompleteFlow_Reply, error) // VerifiedCredentialsList Retrieves the list of verified credentials - VerifiedCredentialsList(*VerifiedCredentialsList_Request, ProtocolService_VerifiedCredentialsListServer) error + VerifiedCredentialsList(*VerifiedCredentialsList_Request, grpc.ServerStreamingServer[VerifiedCredentialsList_Reply]) error // ReplicationServiceRegisterGroup Asks a replication service to distribute a group contents ReplicationServiceRegisterGroup(context.Context, *ReplicationServiceRegisterGroup_Request) (*ReplicationServiceRegisterGroup_Reply, error) // PeerList returns a list of P2P peers @@ -759,11 +707,14 @@ type ProtocolServiceServer interface { mustEmbedUnimplementedProtocolServiceServer() } -// UnimplementedProtocolServiceServer must be embedded to have forward compatible implementations. -type UnimplementedProtocolServiceServer struct { -} +// UnimplementedProtocolServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedProtocolServiceServer struct{} -func (UnimplementedProtocolServiceServer) ServiceExportData(*ServiceExportData_Request, ProtocolService_ServiceExportDataServer) error { +func (UnimplementedProtocolServiceServer) ServiceExportData(*ServiceExportData_Request, grpc.ServerStreamingServer[ServiceExportData_Reply]) error { return status.Errorf(codes.Unimplemented, "method ServiceExportData not implemented") } func (UnimplementedProtocolServiceServer) ServiceGetConfiguration(context.Context, *ServiceGetConfiguration_Request) (*ServiceGetConfiguration_Reply, error) { @@ -829,10 +780,10 @@ func (UnimplementedProtocolServiceServer) AppMetadataSend(context.Context, *AppM func (UnimplementedProtocolServiceServer) AppMessageSend(context.Context, *AppMessageSend_Request) (*AppMessageSend_Reply, error) { return nil, status.Errorf(codes.Unimplemented, "method AppMessageSend not implemented") } -func (UnimplementedProtocolServiceServer) GroupMetadataList(*GroupMetadataList_Request, ProtocolService_GroupMetadataListServer) error { +func (UnimplementedProtocolServiceServer) GroupMetadataList(*GroupMetadataList_Request, grpc.ServerStreamingServer[GroupMetadataEvent]) error { return status.Errorf(codes.Unimplemented, "method GroupMetadataList not implemented") } -func (UnimplementedProtocolServiceServer) GroupMessageList(*GroupMessageList_Request, ProtocolService_GroupMessageListServer) error { +func (UnimplementedProtocolServiceServer) GroupMessageList(*GroupMessageList_Request, grpc.ServerStreamingServer[GroupMessageEvent]) error { return status.Errorf(codes.Unimplemented, "method GroupMessageList not implemented") } func (UnimplementedProtocolServiceServer) GroupInfo(context.Context, *GroupInfo_Request) (*GroupInfo_Reply, error) { @@ -844,13 +795,13 @@ func (UnimplementedProtocolServiceServer) ActivateGroup(context.Context, *Activa func (UnimplementedProtocolServiceServer) DeactivateGroup(context.Context, *DeactivateGroup_Request) (*DeactivateGroup_Reply, error) { return nil, status.Errorf(codes.Unimplemented, "method DeactivateGroup not implemented") } -func (UnimplementedProtocolServiceServer) GroupDeviceStatus(*GroupDeviceStatus_Request, ProtocolService_GroupDeviceStatusServer) error { +func (UnimplementedProtocolServiceServer) GroupDeviceStatus(*GroupDeviceStatus_Request, grpc.ServerStreamingServer[GroupDeviceStatus_Reply]) error { return status.Errorf(codes.Unimplemented, "method GroupDeviceStatus not implemented") } -func (UnimplementedProtocolServiceServer) DebugListGroups(*DebugListGroups_Request, ProtocolService_DebugListGroupsServer) error { +func (UnimplementedProtocolServiceServer) DebugListGroups(*DebugListGroups_Request, grpc.ServerStreamingServer[DebugListGroups_Reply]) error { return status.Errorf(codes.Unimplemented, "method DebugListGroups not implemented") } -func (UnimplementedProtocolServiceServer) DebugInspectGroupStore(*DebugInspectGroupStore_Request, ProtocolService_DebugInspectGroupStoreServer) error { +func (UnimplementedProtocolServiceServer) DebugInspectGroupStore(*DebugInspectGroupStore_Request, grpc.ServerStreamingServer[DebugInspectGroupStore_Reply]) error { return status.Errorf(codes.Unimplemented, "method DebugInspectGroupStore not implemented") } func (UnimplementedProtocolServiceServer) DebugGroup(context.Context, *DebugGroup_Request) (*DebugGroup_Reply, error) { @@ -865,7 +816,7 @@ func (UnimplementedProtocolServiceServer) CredentialVerificationServiceInitFlow( func (UnimplementedProtocolServiceServer) CredentialVerificationServiceCompleteFlow(context.Context, *CredentialVerificationServiceCompleteFlow_Request) (*CredentialVerificationServiceCompleteFlow_Reply, error) { return nil, status.Errorf(codes.Unimplemented, "method CredentialVerificationServiceCompleteFlow not implemented") } -func (UnimplementedProtocolServiceServer) VerifiedCredentialsList(*VerifiedCredentialsList_Request, ProtocolService_VerifiedCredentialsListServer) error { +func (UnimplementedProtocolServiceServer) VerifiedCredentialsList(*VerifiedCredentialsList_Request, grpc.ServerStreamingServer[VerifiedCredentialsList_Reply]) error { return status.Errorf(codes.Unimplemented, "method VerifiedCredentialsList not implemented") } func (UnimplementedProtocolServiceServer) ReplicationServiceRegisterGroup(context.Context, *ReplicationServiceRegisterGroup_Request) (*ReplicationServiceRegisterGroup_Reply, error) { @@ -884,6 +835,7 @@ func (UnimplementedProtocolServiceServer) RefreshContactRequest(context.Context, return nil, status.Errorf(codes.Unimplemented, "method RefreshContactRequest not implemented") } func (UnimplementedProtocolServiceServer) mustEmbedUnimplementedProtocolServiceServer() {} +func (UnimplementedProtocolServiceServer) testEmbeddedByValue() {} // UnsafeProtocolServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ProtocolServiceServer will @@ -893,6 +845,13 @@ type UnsafeProtocolServiceServer interface { } func RegisterProtocolServiceServer(s grpc.ServiceRegistrar, srv ProtocolServiceServer) { + // If the following call pancis, it indicates UnimplementedProtocolServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ProtocolService_ServiceDesc, srv) } @@ -901,21 +860,11 @@ func _ProtocolService_ServiceExportData_Handler(srv interface{}, stream grpc.Ser if err := stream.RecvMsg(m); err != nil { return err } - return srv.(ProtocolServiceServer).ServiceExportData(m, &protocolServiceServiceExportDataServer{stream}) -} - -type ProtocolService_ServiceExportDataServer interface { - Send(*ServiceExportData_Reply) error - grpc.ServerStream + return srv.(ProtocolServiceServer).ServiceExportData(m, &grpc.GenericServerStream[ServiceExportData_Request, ServiceExportData_Reply]{ServerStream: stream}) } -type protocolServiceServiceExportDataServer struct { - grpc.ServerStream -} - -func (x *protocolServiceServiceExportDataServer) Send(m *ServiceExportData_Reply) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type ProtocolService_ServiceExportDataServer = grpc.ServerStreamingServer[ServiceExportData_Reply] func _ProtocolService_ServiceGetConfiguration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ServiceGetConfiguration_Request) @@ -1300,42 +1249,22 @@ func _ProtocolService_GroupMetadataList_Handler(srv interface{}, stream grpc.Ser if err := stream.RecvMsg(m); err != nil { return err } - return srv.(ProtocolServiceServer).GroupMetadataList(m, &protocolServiceGroupMetadataListServer{stream}) + return srv.(ProtocolServiceServer).GroupMetadataList(m, &grpc.GenericServerStream[GroupMetadataList_Request, GroupMetadataEvent]{ServerStream: stream}) } -type ProtocolService_GroupMetadataListServer interface { - Send(*GroupMetadataEvent) error - grpc.ServerStream -} - -type protocolServiceGroupMetadataListServer struct { - grpc.ServerStream -} - -func (x *protocolServiceGroupMetadataListServer) Send(m *GroupMetadataEvent) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type ProtocolService_GroupMetadataListServer = grpc.ServerStreamingServer[GroupMetadataEvent] func _ProtocolService_GroupMessageList_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(GroupMessageList_Request) if err := stream.RecvMsg(m); err != nil { return err } - return srv.(ProtocolServiceServer).GroupMessageList(m, &protocolServiceGroupMessageListServer{stream}) -} - -type ProtocolService_GroupMessageListServer interface { - Send(*GroupMessageEvent) error - grpc.ServerStream -} - -type protocolServiceGroupMessageListServer struct { - grpc.ServerStream + return srv.(ProtocolServiceServer).GroupMessageList(m, &grpc.GenericServerStream[GroupMessageList_Request, GroupMessageEvent]{ServerStream: stream}) } -func (x *protocolServiceGroupMessageListServer) Send(m *GroupMessageEvent) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type ProtocolService_GroupMessageListServer = grpc.ServerStreamingServer[GroupMessageEvent] func _ProtocolService_GroupInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GroupInfo_Request) @@ -1396,63 +1325,33 @@ func _ProtocolService_GroupDeviceStatus_Handler(srv interface{}, stream grpc.Ser if err := stream.RecvMsg(m); err != nil { return err } - return srv.(ProtocolServiceServer).GroupDeviceStatus(m, &protocolServiceGroupDeviceStatusServer{stream}) -} - -type ProtocolService_GroupDeviceStatusServer interface { - Send(*GroupDeviceStatus_Reply) error - grpc.ServerStream + return srv.(ProtocolServiceServer).GroupDeviceStatus(m, &grpc.GenericServerStream[GroupDeviceStatus_Request, GroupDeviceStatus_Reply]{ServerStream: stream}) } -type protocolServiceGroupDeviceStatusServer struct { - grpc.ServerStream -} - -func (x *protocolServiceGroupDeviceStatusServer) Send(m *GroupDeviceStatus_Reply) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type ProtocolService_GroupDeviceStatusServer = grpc.ServerStreamingServer[GroupDeviceStatus_Reply] func _ProtocolService_DebugListGroups_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(DebugListGroups_Request) if err := stream.RecvMsg(m); err != nil { return err } - return srv.(ProtocolServiceServer).DebugListGroups(m, &protocolServiceDebugListGroupsServer{stream}) -} - -type ProtocolService_DebugListGroupsServer interface { - Send(*DebugListGroups_Reply) error - grpc.ServerStream -} - -type protocolServiceDebugListGroupsServer struct { - grpc.ServerStream + return srv.(ProtocolServiceServer).DebugListGroups(m, &grpc.GenericServerStream[DebugListGroups_Request, DebugListGroups_Reply]{ServerStream: stream}) } -func (x *protocolServiceDebugListGroupsServer) Send(m *DebugListGroups_Reply) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type ProtocolService_DebugListGroupsServer = grpc.ServerStreamingServer[DebugListGroups_Reply] func _ProtocolService_DebugInspectGroupStore_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(DebugInspectGroupStore_Request) if err := stream.RecvMsg(m); err != nil { return err } - return srv.(ProtocolServiceServer).DebugInspectGroupStore(m, &protocolServiceDebugInspectGroupStoreServer{stream}) -} - -type ProtocolService_DebugInspectGroupStoreServer interface { - Send(*DebugInspectGroupStore_Reply) error - grpc.ServerStream + return srv.(ProtocolServiceServer).DebugInspectGroupStore(m, &grpc.GenericServerStream[DebugInspectGroupStore_Request, DebugInspectGroupStore_Reply]{ServerStream: stream}) } -type protocolServiceDebugInspectGroupStoreServer struct { - grpc.ServerStream -} - -func (x *protocolServiceDebugInspectGroupStoreServer) Send(m *DebugInspectGroupStore_Reply) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type ProtocolService_DebugInspectGroupStoreServer = grpc.ServerStreamingServer[DebugInspectGroupStore_Reply] func _ProtocolService_DebugGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DebugGroup_Request) @@ -1531,21 +1430,11 @@ func _ProtocolService_VerifiedCredentialsList_Handler(srv interface{}, stream gr if err := stream.RecvMsg(m); err != nil { return err } - return srv.(ProtocolServiceServer).VerifiedCredentialsList(m, &protocolServiceVerifiedCredentialsListServer{stream}) + return srv.(ProtocolServiceServer).VerifiedCredentialsList(m, &grpc.GenericServerStream[VerifiedCredentialsList_Request, VerifiedCredentialsList_Reply]{ServerStream: stream}) } -type ProtocolService_VerifiedCredentialsListServer interface { - Send(*VerifiedCredentialsList_Reply) error - grpc.ServerStream -} - -type protocolServiceVerifiedCredentialsListServer struct { - grpc.ServerStream -} - -func (x *protocolServiceVerifiedCredentialsListServer) Send(m *VerifiedCredentialsList_Reply) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type ProtocolService_VerifiedCredentialsListServer = grpc.ServerStreamingServer[VerifiedCredentialsList_Reply] func _ProtocolService_ReplicationServiceRegisterGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ReplicationServiceRegisterGroup_Request) diff --git a/pkg/replicationtypes/bertyreplication.pb.go b/pkg/replicationtypes/bertyreplication.pb.go index c6fc8b98..09e4622a 100644 --- a/pkg/replicationtypes/bertyreplication.pb.go +++ b/pkg/replicationtypes/bertyreplication.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: replicationtypes/bertyreplication.proto @@ -759,7 +759,7 @@ func file_replicationtypes_bertyreplication_proto_rawDescGZIP() []byte { } var file_replicationtypes_bertyreplication_proto_msgTypes = make([]protoimpl.MessageInfo, 11) -var file_replicationtypes_bertyreplication_proto_goTypes = []interface{}{ +var file_replicationtypes_bertyreplication_proto_goTypes = []any{ (*ReplicatedGroup)(nil), // 0: weshnet.replication.v1.ReplicatedGroup (*ReplicatedGroupToken)(nil), // 1: weshnet.replication.v1.ReplicatedGroupToken (*ReplicationServiceReplicateGroup)(nil), // 2: weshnet.replication.v1.ReplicationServiceReplicateGroup @@ -796,7 +796,7 @@ func file_replicationtypes_bertyreplication_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_replicationtypes_bertyreplication_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_replicationtypes_bertyreplication_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*ReplicatedGroup); i { case 0: return &v.state @@ -808,7 +808,7 @@ func file_replicationtypes_bertyreplication_proto_init() { return nil } } - file_replicationtypes_bertyreplication_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_replicationtypes_bertyreplication_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*ReplicatedGroupToken); i { case 0: return &v.state @@ -820,7 +820,7 @@ func file_replicationtypes_bertyreplication_proto_init() { return nil } } - file_replicationtypes_bertyreplication_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_replicationtypes_bertyreplication_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*ReplicationServiceReplicateGroup); i { case 0: return &v.state @@ -832,7 +832,7 @@ func file_replicationtypes_bertyreplication_proto_init() { return nil } } - file_replicationtypes_bertyreplication_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_replicationtypes_bertyreplication_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*ReplicateGlobalStats); i { case 0: return &v.state @@ -844,7 +844,7 @@ func file_replicationtypes_bertyreplication_proto_init() { return nil } } - file_replicationtypes_bertyreplication_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_replicationtypes_bertyreplication_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*ReplicateGroupStats); i { case 0: return &v.state @@ -856,7 +856,7 @@ func file_replicationtypes_bertyreplication_proto_init() { return nil } } - file_replicationtypes_bertyreplication_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_replicationtypes_bertyreplication_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*ReplicationServiceReplicateGroup_Request); i { case 0: return &v.state @@ -868,7 +868,7 @@ func file_replicationtypes_bertyreplication_proto_init() { return nil } } - file_replicationtypes_bertyreplication_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_replicationtypes_bertyreplication_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*ReplicationServiceReplicateGroup_Reply); i { case 0: return &v.state @@ -880,7 +880,7 @@ func file_replicationtypes_bertyreplication_proto_init() { return nil } } - file_replicationtypes_bertyreplication_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_replicationtypes_bertyreplication_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*ReplicateGlobalStats_Request); i { case 0: return &v.state @@ -892,7 +892,7 @@ func file_replicationtypes_bertyreplication_proto_init() { return nil } } - file_replicationtypes_bertyreplication_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_replicationtypes_bertyreplication_proto_msgTypes[8].Exporter = func(v any, i int) any { switch v := v.(*ReplicateGlobalStats_Reply); i { case 0: return &v.state @@ -904,7 +904,7 @@ func file_replicationtypes_bertyreplication_proto_init() { return nil } } - file_replicationtypes_bertyreplication_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_replicationtypes_bertyreplication_proto_msgTypes[9].Exporter = func(v any, i int) any { switch v := v.(*ReplicateGroupStats_Request); i { case 0: return &v.state @@ -916,7 +916,7 @@ func file_replicationtypes_bertyreplication_proto_init() { return nil } } - file_replicationtypes_bertyreplication_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_replicationtypes_bertyreplication_proto_msgTypes[10].Exporter = func(v any, i int) any { switch v := v.(*ReplicateGroupStats_Reply); i { case 0: return &v.state diff --git a/pkg/replicationtypes/bertyreplication_grpc.pb.go b/pkg/replicationtypes/bertyreplication_grpc.pb.go index 33ff7c9a..39042a0b 100644 --- a/pkg/replicationtypes/bertyreplication_grpc.pb.go +++ b/pkg/replicationtypes/bertyreplication_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 +// - protoc-gen-go-grpc v1.5.1 // - protoc (unknown) // source: replicationtypes/bertyreplication.proto @@ -15,8 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( ReplicationService_ReplicateGroup_FullMethodName = "/weshnet.replication.v1.ReplicationService/ReplicateGroup" @@ -27,6 +27,8 @@ const ( // ReplicationServiceClient is the client API for ReplicationService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +// +// ReplicationService type ReplicationServiceClient interface { // ReplicateGroup ReplicateGroup(ctx context.Context, in *ReplicationServiceReplicateGroup_Request, opts ...grpc.CallOption) (*ReplicationServiceReplicateGroup_Reply, error) @@ -43,8 +45,9 @@ func NewReplicationServiceClient(cc grpc.ClientConnInterface) ReplicationService } func (c *replicationServiceClient) ReplicateGroup(ctx context.Context, in *ReplicationServiceReplicateGroup_Request, opts ...grpc.CallOption) (*ReplicationServiceReplicateGroup_Reply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ReplicationServiceReplicateGroup_Reply) - err := c.cc.Invoke(ctx, ReplicationService_ReplicateGroup_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReplicationService_ReplicateGroup_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -52,8 +55,9 @@ func (c *replicationServiceClient) ReplicateGroup(ctx context.Context, in *Repli } func (c *replicationServiceClient) ReplicateGlobalStats(ctx context.Context, in *ReplicateGlobalStats_Request, opts ...grpc.CallOption) (*ReplicateGlobalStats_Reply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ReplicateGlobalStats_Reply) - err := c.cc.Invoke(ctx, ReplicationService_ReplicateGlobalStats_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReplicationService_ReplicateGlobalStats_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -61,8 +65,9 @@ func (c *replicationServiceClient) ReplicateGlobalStats(ctx context.Context, in } func (c *replicationServiceClient) ReplicateGroupStats(ctx context.Context, in *ReplicateGroupStats_Request, opts ...grpc.CallOption) (*ReplicateGroupStats_Reply, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ReplicateGroupStats_Reply) - err := c.cc.Invoke(ctx, ReplicationService_ReplicateGroupStats_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReplicationService_ReplicateGroupStats_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -71,7 +76,9 @@ func (c *replicationServiceClient) ReplicateGroupStats(ctx context.Context, in * // ReplicationServiceServer is the server API for ReplicationService service. // All implementations must embed UnimplementedReplicationServiceServer -// for forward compatibility +// for forward compatibility. +// +// ReplicationService type ReplicationServiceServer interface { // ReplicateGroup ReplicateGroup(context.Context, *ReplicationServiceReplicateGroup_Request) (*ReplicationServiceReplicateGroup_Reply, error) @@ -80,9 +87,12 @@ type ReplicationServiceServer interface { mustEmbedUnimplementedReplicationServiceServer() } -// UnimplementedReplicationServiceServer must be embedded to have forward compatible implementations. -type UnimplementedReplicationServiceServer struct { -} +// UnimplementedReplicationServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedReplicationServiceServer struct{} func (UnimplementedReplicationServiceServer) ReplicateGroup(context.Context, *ReplicationServiceReplicateGroup_Request) (*ReplicationServiceReplicateGroup_Reply, error) { return nil, status.Errorf(codes.Unimplemented, "method ReplicateGroup not implemented") @@ -94,6 +104,7 @@ func (UnimplementedReplicationServiceServer) ReplicateGroupStats(context.Context return nil, status.Errorf(codes.Unimplemented, "method ReplicateGroupStats not implemented") } func (UnimplementedReplicationServiceServer) mustEmbedUnimplementedReplicationServiceServer() {} +func (UnimplementedReplicationServiceServer) testEmbeddedByValue() {} // UnsafeReplicationServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ReplicationServiceServer will @@ -103,6 +114,13 @@ type UnsafeReplicationServiceServer interface { } func RegisterReplicationServiceServer(s grpc.ServiceRegistrar, srv ReplicationServiceServer) { + // If the following call pancis, it indicates UnimplementedReplicationServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ReplicationService_ServiceDesc, srv) } diff --git a/pkg/tinder/records.pb.go b/pkg/tinder/records.pb.go index 4efc17ad..48f193ed 100644 --- a/pkg/tinder/records.pb.go +++ b/pkg/tinder/records.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: tinder/records.proto @@ -151,7 +151,7 @@ func file_tinder_records_proto_rawDescGZIP() []byte { } var file_tinder_records_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_tinder_records_proto_goTypes = []interface{}{ +var file_tinder_records_proto_goTypes = []any{ (*Records)(nil), // 0: tinder.Records (*Record)(nil), // 1: tinder.Record } @@ -170,7 +170,7 @@ func file_tinder_records_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_tinder_records_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_tinder_records_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*Records); i { case 0: return &v.state @@ -182,7 +182,7 @@ func file_tinder_records_proto_init() { return nil } } - file_tinder_records_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_tinder_records_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*Record); i { case 0: return &v.state diff --git a/pkg/verifiablecredstypes/bertyverifiablecreds.pb.go b/pkg/verifiablecredstypes/bertyverifiablecreds.pb.go index db423796..9fad4dbe 100644 --- a/pkg/verifiablecredstypes/bertyverifiablecreds.pb.go +++ b/pkg/verifiablecredstypes/bertyverifiablecreds.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: verifiablecredstypes/bertyverifiablecreds.proto @@ -423,7 +423,7 @@ func file_verifiablecredstypes_bertyverifiablecreds_proto_rawDescGZIP() []byte { var file_verifiablecredstypes_bertyverifiablecreds_proto_enumTypes = make([]protoimpl.EnumInfo, 2) var file_verifiablecredstypes_bertyverifiablecreds_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_verifiablecredstypes_bertyverifiablecreds_proto_goTypes = []interface{}{ +var file_verifiablecredstypes_bertyverifiablecreds_proto_goTypes = []any{ (FlowType)(0), // 0: weshnet.account.v1.FlowType (CodeStrategy)(0), // 1: weshnet.account.v1.CodeStrategy (*StateChallenge)(nil), // 2: weshnet.account.v1.StateChallenge @@ -445,7 +445,7 @@ func file_verifiablecredstypes_bertyverifiablecreds_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_verifiablecredstypes_bertyverifiablecreds_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_verifiablecredstypes_bertyverifiablecreds_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*StateChallenge); i { case 0: return &v.state @@ -457,7 +457,7 @@ func file_verifiablecredstypes_bertyverifiablecreds_proto_init() { return nil } } - file_verifiablecredstypes_bertyverifiablecreds_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_verifiablecredstypes_bertyverifiablecreds_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*StateCode); i { case 0: return &v.state @@ -469,7 +469,7 @@ func file_verifiablecredstypes_bertyverifiablecreds_proto_init() { return nil } } - file_verifiablecredstypes_bertyverifiablecreds_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_verifiablecredstypes_bertyverifiablecreds_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*AccountCryptoChallenge); i { case 0: return &v.state From 7c7409150926c3eafc77c6606970b465361508f3 Mon Sep 17 00:00:00 2001 From: D4ryl00 Date: Wed, 2 Oct 2024 10:04:03 +0200 Subject: [PATCH 18/20] chore: use os.Stat in LogfileList Signed-off-by: D4ryl00 --- pkg/logutil/file.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkg/logutil/file.go b/pkg/logutil/file.go index 1f62d726..cede76d0 100644 --- a/pkg/logutil/file.go +++ b/pkg/logutil/file.go @@ -107,10 +107,17 @@ func LogfileList(logDir string) ([]*Logfile, error) { errs = multierr.Append(errs, err) } + // use os.Stat to get the file size (updated than fs.FileInfo.Size() + filepath := filepath.Join(logDir, info.Name()) + fi, err := os.Stat(filepath) + if err != nil { + errs = multierr.Append(errs, err) + } + logfiles = append(logfiles, &Logfile{ Dir: logDir, Name: info.Name(), - Size: info.Size(), + Size: fi.Size(), Kind: sub[1], Time: t, Errs: errs, From 0334304f12d2e85dfe3c8e780ad932b58f2c6c5f Mon Sep 17 00:00:00 2001 From: D4ryl00 Date: Thu, 3 Oct 2024 17:02:53 +0200 Subject: [PATCH 19/20] fix: reverte unwanted changes Signed-off-by: D4ryl00 --- contact_request_manager.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contact_request_manager.go b/contact_request_manager.go index 3be1e1de..60cf79cc 100644 --- a/contact_request_manager.go +++ b/contact_request_manager.go @@ -137,8 +137,8 @@ func (c *contactRequestsManager) metadataWatcher(ctx context.Context) { c.muManager.Unlock() // enqueue all contact with the `ToRequest` state - if err := c.enqueueRequest(ctx, contact); err != nil { - for _, contact := range c.metadataStore.ListContactsByStatus(protocoltypes.ContactState_ContactStateToRequest) { + for _, contact := range c.metadataStore.ListContactsByStatus(protocoltypes.ContactState_ContactStateToRequest) { + if err := c.enqueueRequest(ctx, contact); err != nil { c.logger.Warn("unable to enqueue contact request", logutil.PrivateBinary("pk", contact.Pk), zap.Error(err)) } } From c32d6f06b3f97d800ccb4082ee996b31e984deee Mon Sep 17 00:00:00 2001 From: D4ryl00 Date: Fri, 4 Oct 2024 18:03:18 +0200 Subject: [PATCH 20/20] fix: convert topic into UTF-8 compatible Signed-off-by: D4ryl00 --- pkg/rendezvous/rotation.go | 5 +++-- tinder_swiper.go | 15 ++++++++------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/pkg/rendezvous/rotation.go b/pkg/rendezvous/rotation.go index fc97ea0b..f8a72d30 100644 --- a/pkg/rendezvous/rotation.go +++ b/pkg/rendezvous/rotation.go @@ -1,6 +1,7 @@ package rendezvous import ( + "encoding/base64" "fmt" "sync" "time" @@ -49,7 +50,7 @@ func (r *RotationInterval) NextTimePeriod(at time.Time) time.Time { } func (r *RotationInterval) PointForRawRotation(rotation []byte) (*Point, error) { - return r.PointForRotation(string(rotation)) + return r.PointForRotation(base64.StdEncoding.EncodeToString(rotation)) } func (r *RotationInterval) PointForRotation(rotation string) (*Point, error) { @@ -158,7 +159,7 @@ func (p *Point) RawTopic() []byte { } func (p *Point) RotationTopic() string { - return string(p.rotation) + return base64.StdEncoding.EncodeToString(p.rotation) } func (p *Point) RawRotationTopic() []byte { diff --git a/tinder_swiper.go b/tinder_swiper.go index d3578584..6afbceb4 100644 --- a/tinder_swiper.go +++ b/tinder_swiper.go @@ -2,6 +2,7 @@ package weshnet import ( "context" + "encoding/base64" "encoding/hex" "fmt" mrand "math/rand" @@ -67,7 +68,7 @@ func (s *Swiper) RefreshContactRequest(ctx context.Context, topic []byte) (addrs // canceling find peers s.muRequest.Lock() - req, ok := s.inprogressLookup[string(topic)] + req, ok := s.inprogressLookup[base64.StdEncoding.EncodeToString(topic)] if !ok { err = fmt.Errorf("unknown topic") s.muRequest.Unlock() @@ -109,7 +110,7 @@ func (s *Swiper) WatchTopic(ctx context.Context, topic, seed []byte) <-chan peer defer s.muRequest.Unlock() s.logger.Debug("start watch for peer with", - logutil.PrivateString("topic", string(topic)), + logutil.PrivateString("topic", base64.StdEncoding.EncodeToString(topic)), zap.String("seed", string(seed))) var point *rendezvous.Point @@ -124,7 +125,7 @@ func (s *Swiper) WatchTopic(ctx context.Context, topic, seed []byte) <-chan peer for ctx.Err() == nil { if point == nil || time.Now().After(point.Deadline()) { - point = s.rp.NewRendezvousPointForPeriod(time.Now(), string(topic), seed) + point = s.rp.NewRendezvousPointForPeriod(time.Now(), base64.StdEncoding.EncodeToString(topic), seed) } bstrat := s.backoffFactory() @@ -132,7 +133,7 @@ func (s *Swiper) WatchTopic(ctx context.Context, topic, seed []byte) <-chan peer // store watch peers informations to be later use by the refresh method to force a lookup s.muRequest.Lock() wctx, cancel := context.WithCancel(ctx) - s.inprogressLookup[string(topic)] = &swiperRequest{ + s.inprogressLookup[base64.StdEncoding.EncodeToString(topic)] = &swiperRequest{ bstrat: bstrat, wgRefresh: &wgRefresh, ctx: wctx, @@ -156,7 +157,7 @@ func (s *Swiper) WatchTopic(ctx context.Context, topic, seed []byte) <-chan peer } s.muRequest.Lock() - delete(s.inprogressLookup, string(topic)) + delete(s.inprogressLookup, base64.StdEncoding.EncodeToString(topic)) s.muRequest.Unlock() // wait all refresh job are done before closing the channel @@ -212,13 +213,13 @@ func (s *Swiper) Announce(ctx context.Context, topic, seed []byte) { var point *rendezvous.Point s.logger.Debug("start announce for peer with", - logutil.PrivateString("topic", string(topic)), + logutil.PrivateString("topic", base64.StdEncoding.EncodeToString(topic)), logutil.PrivateString("seed", string(seed))) go func() { for ctx.Err() == nil { if point == nil || time.Now().After(point.Deadline()) { - point = s.rp.NewRendezvousPointForPeriod(time.Now(), string(topic), seed) + point = s.rp.NewRendezvousPointForPeriod(time.Now(), base64.StdEncoding.EncodeToString(topic), seed) } s.logger.Debug("self announce topic for time", logutil.PrivateString("topic", point.RotationTopic()))